/* ==========================================================================
   Free Tours Free · Base
   Tokens, reset, tipografía y utilidades de maquetación.
   ========================================================================== */

:root {
  /* Papel y tinta */
  --paper: #f6f1e7;
  --paper-deep: #ede4d3;
  --card: #fffdf8;
  --ink: #1f1a15;
  --ink-soft: #5b5148;
  --ink-mute: #8a7f73;
  --line: rgba(31, 26, 21, 0.12);
  --line-strong: rgba(31, 26, 21, 0.22);

  /* Acentos */
  --terra: #c4532f;
  --terra-deep: #a03f1f;
  --terra-tint: #f6dfd3;
  --night: #151a2e;
  --night-soft: #222a47;
  --moon: #c9c2ff;
  --olive: #4c6b47;
  --olive-tint: #dfe8d6;
  --sun: #e6a940;

  /* Acento del tema activo (lo cambian las clases .theme-*) */
  --accent: var(--terra);
  --accent-deep: var(--terra-deep);
  --accent-tint: var(--terra-tint);

  /* Tipografía */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Forma */
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(48, 32, 16, 0.06), 0 2px 8px rgba(48, 32, 16, 0.05);
  --shadow: 0 2px 4px rgba(48, 32, 16, 0.05), 0 14px 34px -12px rgba(48, 32, 16, 0.22);
  --shadow-lg: 0 4px 10px rgba(48, 32, 16, 0.06), 0 30px 60px -20px rgba(48, 32, 16, 0.35);

  /* Espaciado */
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 140px);
  --max: 1240px;
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-history { --accent: var(--terra); --accent-deep: var(--terra-deep); --accent-tint: var(--terra-tint); }
.theme-mystery { --accent: #5a4bd0; --accent-deep: #4535b5; --accent-tint: #e6e2ff; }
.theme-essential { --accent: var(--olive); --accent-deep: #39543a; --accent-tint: var(--olive-tint); }

/* --- Reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p, h1, h2, h3, h4, figure, blockquote, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--accent-tint); color: var(--ink); }

/* --- Tipografía ------------------------------------------------------------ */

h1, h2, h3, h4, .serif {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.display { font-size: clamp(2.9rem, 7.4vw, 6.2rem); letter-spacing: -0.035em; line-height: 0.98; }
.h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); letter-spacing: -0.03em; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.15; }

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.muted { color: var(--ink-soft); }

/* --- Maquetación ---------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell-narrow { max-width: calc(760px + var(--gutter) * 2); }

.section { padding-block: var(--section); }
.section-tight { padding-block: calc(var(--section) * 0.6); }
.section-tight + .section:not(.band):not(.band-dark) { padding-top: calc(var(--section) * 0.4); }
.section:not(.band):not(.band-dark) + .section:not(.band):not(.band-dark) { padding-top: 0; }

.band { background: var(--paper-deep); }
.band-dark { background: var(--night); color: #f3efe6; }
.band-dark .lead, .band-dark .muted { color: rgba(243, 239, 230, 0.72); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head > div { max-width: 640px; }
.section-head > .lead { max-width: 25em; font-size: 1.1rem; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head .lead { margin-top: 18px; }
.section-head.centered { justify-content: center; text-align: center; }
.section-head.centered > div { margin-inline: auto; }

.stack > * + * { margin-top: 1em; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* Entrada suave de los héroes */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.rise { animation: rise 0.9s var(--ease) both; }
.rise-2 { animation-delay: 0.08s; }
.rise-3 { animation-delay: 0.16s; }
.rise-4 { animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Las <picture> no deben alterar la maquetación de su <img> */
picture { display: contents; }
