/* ═══════════════════════════════════════════════════════════════
   RUUT — landing page
   Brand system per Archivos_Finales (brandbook 11_Brandbook) and the
   app theme in yucatours/lib/theme/app_theme.dart.

   Warm, editorial, boxy. Offwhite canvas, black hairline borders,
   flat colour blocks, hard offset shadows. Windsor Elongated for
   display, Futura Book for everything else. Light-only — the brand
   has no dark variant, so the page commits to one look.
   ═══════════════════════════════════════════════════════════════ */

/* ── Fonts ──────────────────────────────────────────────────── */
@font-face {
  font-family: 'Windsor Elongated';
  src: url('../fonts/WindsorElongated.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Futura Book';
  src: url('../fonts/FuturaBook.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  /* Ruut palette — 03_Colores */
  --negro: #000000;
  --mostaza: #f2c047;
  --verde-lima: #b7c956;
  --azul-cielo: #8cc0e7;
  --rosa-malva: #e297b8;
  --rojo-salmon: #cf5036;
  --offwhite: #f2f0ec;
  --azul-jade: #badacd;
  --naranja-caqui: #e68e3f;
  --marron: #875927;
  --gris-seda: #cdbda1;
  --naranja-bienvenida: #dc934f;

  /* Semantic */
  --canvas: var(--offwhite);
  --card: #fbfaf7;
  --surface: #e7e2d8;
  --ink: #1c1917;
  --ink-2: #5c5349;
  --ink-3: #9c9488;
  --line: var(--negro);

  --border-w: 1.5px;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 14px;
  --r-full: 100px;

  --shadow: 5px 5px 0 var(--negro);
  --shadow-sm: 3px 3px 0 var(--negro);

  --display: 'Windsor Elongated', 'Playfair Display', Georgia, serif;
  --body: 'Futura Book', 'Futura', 'Avenir Next', 'Century Gothic',
    system-ui, -apple-system, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --wrap: 1200px;
  --nav-h: 68px;
}

/* ── Reset-ish ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* `height: auto` is load-bearing: every <img> carries width/height
   attributes for layout stability, and those map to presentational
   `height`, which would otherwise beat both `aspect-ratio` and any
   CSS-set width and render every image at full intrinsic height. */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* Windsor ships one heavy weight — never synthesise bold or italic,
   it produces smeared faux-bold artefacts at display sizes. */
h1,
h2,
h3,
h4,
.display {
  font-family: var(--display);
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.04;
  letter-spacing: -0.005em;
  margin: 0;
}

p,
figure,
figcaption {
  margin: 0;
}

:where(a, button, summary, input):focus-visible {
  outline: 3px solid var(--rojo-salmon);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Layout helpers ─────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  border-top: var(--border-w) solid var(--line);
  position: relative;
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--negro);
  color: var(--offwhite);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--r-md) var(--r-md);
  transition: transform 0.18s ease;
}
.skip-link:focus {
  transform: translate(-50%, 0);
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 0.9rem;
}

.section-title {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  max-width: 24ch;
}

.section-lede {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--ink-2);
  max-width: 56ch;
  margin-top: 1.25rem;
  line-height: 1.65;
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border: var(--border-w) solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  /* Explicit, not inherited: buttons sit inside the salmon CTA block,
     which sets an offwhite text colour that would be unreadable on the
     light button fills. */
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.14s ease, box-shadow 0.14s ease,
    background-color 0.14s ease;
}

.btn--shadow {
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--negro);
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--negro);
}

/* Black on salmon, never offwhite. Offwhite on #cf5036 measures 3.8:1
   and fails AA for anything below display size; black measures 4.85:1.
   It also matches the brandbook — every salmon fill in the mockups
   (the Gastronomía card, the passport stamps) carries black type. */
.btn--primary {
  background: var(--rojo-salmon);
  color: var(--negro);
}
.btn--jade {
  background: var(--azul-jade);
}
.btn--lime {
  background: var(--verde-lima);
}
.btn--mustard {
  background: var(--mostaza);
}
.btn--ink {
  background: var(--negro);
  color: var(--offwhite);
}

.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

/* ── Platform chips (pre-launch) ────────────────────────────
   The app is not released, so these are deliberately NOT links and
   NOT buttons — <li> elements with a dashed border, the one place the
   page breaks its solid-hairline rule. Nothing here is clickable, so
   nothing can promise a download that does not exist yet. */
.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}

.platform {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.35rem;
  border: var(--border-w) dashed var(--line);
  border-radius: var(--r-md);
  text-align: left;
}

.platform svg {
  flex: none;
  width: 26px;
  height: 26px;
}

.platform-kicker {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.3;
}

.platform-name {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--canvas);
  border-bottom: var(--border-w) solid var(--line);
}

.site-header__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
}
.brand img {
  height: 26px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
  font-size: 0.9rem;
}

.nav a {
  position: relative;
  padding-block: 0.35rem;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--negro);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}

/* Language switch — a two-cell segmented control, the same shape the
   app uses for its Rutas/Likes/Saves tabs. */
.lang-switch {
  display: inline-flex;
  border: var(--border-w) solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.lang-switch a {
  padding: 0.4rem 0.7rem;
  background: var(--card);
  transition: background-color 0.15s ease;
}

.lang-switch a + a {
  border-left: var(--border-w) solid var(--line);
}

.lang-switch a[aria-current='true'] {
  background: var(--negro);
  color: var(--offwhite);
}

.lang-switch a:not([aria-current='true']):hover {
  background: var(--surface);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: var(--border-w) solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--negro);
  position: relative;
  transition: background-color 0.15s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--negro);
  transition: transform 0.2s ease;
}
.nav-toggle span::before {
  top: -6px;
}
.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded='true'] span {
  background: transparent;
}
.nav-toggle[aria-expanded='true'] span::before {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: var(--naranja-bienvenida);
  border-bottom: var(--border-w) solid var(--line);
  overflow: hidden;
  position: relative;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}


.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  max-width: 14ch;
}

/* The wordmark set inline in the headline, as on the App_01 welcome
   screen. Sized in `em` so it tracks the clamped headline. */
.hero h1 .wordmark-inline {
  height: 0.78em;
  width: auto;
  display: inline-block;
  vertical-align: -0.06em;
  margin-inline: 0.06em;
}

.hero__lede {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  line-height: 1.55;
  max-width: 34ch;
}


.hero__note {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 480px;
}

.hero__art .phone {
  position: relative;
  z-index: 2;
  width: min(276px, 72%);
}

.hero__art .phone--back {
  position: absolute;
  z-index: 1;
  width: min(224px, 58%);
  left: 0;
  bottom: 8%;
  transform: rotate(-7deg);
  opacity: 0.98;
}

/* The guide stands *behind* the front phone (z-index 1, below the
   phone's 2). Placed in front he covers the tour detail, which is the
   one thing this composition exists to show. */
.hero__mascot {
  position: absolute;
  right: -18px;
  bottom: 0;
  width: clamp(96px, 12vw, 132px);
  z-index: 1;
  filter: drop-shadow(-6px 4px 0 rgba(0, 0, 0, 0.13));
}

/* Floating illustration confetti behind the phones. */
.hero__sticker {
  position: absolute;
  z-index: 0;
  width: clamp(52px, 7vw, 84px);
  opacity: 0.95;
  animation: bob 6s ease-in-out infinite;
}
/* Tucked into the corners the phone cluster leaves free — the phones
   sit centre-right, so everything anchors left or to the far top-right. */
.hero__sticker--1 {
  bottom: -10px;
  left: -12px;
  animation-delay: -1s;
}
.hero__sticker--3 {
  top: 2%;
  right: -2%;
  animation-delay: -5s;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-12px) rotate(4deg);
  }
}

/* ── Phone frame ────────────────────────────────────────────── */
.phone {
  border: 3px solid var(--negro);
  border-radius: 30px;
  background: var(--negro);
  padding: 7px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.22);
}

.phone img {
  border-radius: 22px;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  background: var(--offwhite);
}

/* ── Marquee ────────────────────────────────────────────────── */
.marquee {
  background: var(--negro);
  color: var(--offwhite);
  border-bottom: var(--border-w) solid var(--line);
  overflow: hidden;
  padding-block: 0.85rem;
  display: flex;
  user-select: none;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex: none;
  padding-right: 2.5rem;
  animation: scroll-x 34s linear infinite;
  white-space: nowrap;
}

.marquee__track span {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  letter-spacing: 0.02em;
}

.marquee__track img {
  height: clamp(24px, 3vw, 34px);
  width: auto;
}

@keyframes scroll-x {
  to {
    transform: translateX(-100%);
  }
}

/* ── Feature strip ──────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

/* `align-items` must never be `stretch` here: this is a column flex
   container, so stretch pulls the icon out to the full card width while
   its `height` stays pinned at 54px, distorting the artwork instead of
   scaling it. `center` both fixes that and centres the icon. */
.feature {
  border: var(--border-w) solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.35rem 1.35rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
  min-height: 210px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.feature:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--negro);
}

.feature img {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.feature h3 {
  font-size: 1.5rem;
  margin-top: auto;
}

.feature p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.feature--mustard {
  background: var(--mostaza);
}
.feature--lime {
  background: var(--verde-lima);
}
.feature--sky {
  background: var(--azul-cielo);
}
.feature--jade {
  background: var(--azul-jade);
}
.feature--pink {
  background: var(--rosa-malva);
}
.feature--salmon {
  background: var(--rojo-salmon);
}

/* ── Steps ──────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.step {
  border: var(--border-w) solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.step__num {
  font-family: var(--display);
  font-size: 3.25rem;
  line-height: 1;
  color: var(--rojo-salmon);
  display: block;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.step p {
  font-size: 0.95rem;
  color: var(--ink-2);
}

.step__illo {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 88px;
  opacity: 0.16;
  pointer-events: none;
}

/* ── Route / category stack (mirrors App_05) ────────────────── */
.routes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.route-stack {
  display: flex;
  flex-direction: column;
}

/* Cards deliberately overlap by 1px so adjacent black borders collapse
   into a single hairline — the stacked look from the mockup. */
.route {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: var(--border-w) solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.35rem 1.5rem;
  margin-bottom: -1.5px;
  position: relative;
  transition: transform 0.16s ease, z-index 0s;
}

.route:hover {
  transform: translateX(6px);
  z-index: 3;
}

.route__body {
  flex: 1;
  min-width: 0;
}

.route__kicker {
  font-size: 0.85rem;
  line-height: 1.3;
}

.route__name {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  margin-top: 0.15rem;
}

.route__price {
  font-size: 1rem;
  white-space: nowrap;
  flex: none;
}


.route--mustard {
  background: var(--mostaza);
}
.route--lime {
  background: var(--verde-lima);
}
.route--sky {
  background: var(--azul-cielo);
}
.route--pink {
  background: var(--rosa-malva);
}
.route--salmon {
  background: var(--rojo-salmon);
}
.route--sand {
  background: var(--gris-seda);
}

/* ── Split (image + copy) ───────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

.split--reverse .split__art {
  order: 2;
}

.split__art {
  display: flex;
  justify-content: center;
  position: relative;
}

.split__art .phone {
  width: min(290px, 80%);
}

.split__art .badge {
  position: absolute;
  border: var(--border-w) solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  line-height: 1.35;
  max-width: 200px;
}

.split__art .badge strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.2rem;
  display: block;
}

.split__art .badge--tl {
  top: 8%;
  left: 0;
  background: var(--mostaza);
}
.split__art .badge--br {
  bottom: 12%;
  right: 0;
  background: var(--azul-jade);
}

.checklist {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.checklist li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 1rem;
  line-height: 1.55;
}

.checklist li::before {
  content: '';
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.22em;
  border: var(--border-w) solid var(--line);
  border-radius: var(--r-sm);
  background: var(--verde-lima)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 12.5 9.5 18 20 6.5'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

/* ── Passport ───────────────────────────────────────────────── */
.dna-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.dna-pill {
  border: var(--border-w) solid var(--line);
  border-radius: var(--r-full);
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
}

.stamps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

/* The perforated edge of a postage stamp. Drawn as four background
   layers of canvas-coloured half-circles, one per edge, biting into the
   white frame. A `mask` would be the obvious tool but masks apply to the
   whole subtree — it punched holes through the artwork inside too. */
.stamp {
  background-color: var(--card);
  background-image: radial-gradient(
      circle 4px at 50% 0,
      var(--canvas) 97%,
      transparent 100%
    ),
    radial-gradient(circle 4px at 50% 100%, var(--canvas) 97%, transparent 100%),
    radial-gradient(circle 4px at 0 50%, var(--canvas) 97%, transparent 100%),
    radial-gradient(circle 4px at 100% 50%, var(--canvas) 97%, transparent 100%);
  background-size: 12px 8px, 12px 8px, 8px 12px, 8px 12px;
  background-position: 0 0, 0 100%, 0 0, 100% 0;
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  padding: 9px;
}

.stamp__inner {
  border-radius: 2px;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem;
  text-align: center;
}

.stamp__inner img {
  height: 52px;
  width: auto;
}

.stamp__label {
  font-family: var(--display);
  font-size: 0.95rem;
  line-height: 1.1;
}

.stamp--locked .stamp__inner {
  background: var(--negro);
}
.stamp--locked .stamp__label {
  color: var(--ink-3);
}

/* ── Gallery ────────────────────────────────────────────────── */
.gallery {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0.5rem var(--gutter) 2rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.gallery__item {
  flex: none;
  width: min(240px, 62vw);
  scroll-snap-align: center;
}

.gallery__item figcaption {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--ink-2);
  text-align: center;
}

/* Nudge alternating frames off-baseline so the row reads as a hand-laid
   contact sheet rather than a grid. */
.gallery__item:nth-child(even) {
  transform: translateY(22px);
}

/* ── FAQ ────────────────────────────────────────────────────── */
.faq {
  border-top: var(--border-w) solid var(--line);
  max-width: 860px;
}

.faq details {
  border-bottom: var(--border-w) solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0.25rem;
  cursor: pointer;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.2;
  list-style: none;
  transition: color 0.15s ease;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--rojo-salmon);
}

.faq summary::after {
  content: '';
  flex: none;
  width: 26px;
  height: 26px;
  border: var(--border-w) solid var(--line);
  border-radius: 50%;
  background: var(--card)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")
    center / 13px no-repeat;
  transition: transform 0.22s ease, background-color 0.15s ease;
}

.faq details[open] summary::after {
  transform: rotate(135deg);
  background-color: var(--mostaza);
}

.faq__answer {
  padding: 0 0.25rem 1.6rem;
  max-width: 68ch;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.7;
  display: grid;
  gap: 0.9rem;
}

/* ── CTA ────────────────────────────────────────────────────── */
.cta {
  background: var(--rojo-salmon);
  color: var(--negro);
  border-top: var(--border-w) solid var(--line);
  border-bottom: var(--border-w) solid var(--line);
  position: relative;
  overflow: hidden;
}

.cta__inner {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 2;
}

.cta h2 {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  max-width: 16ch;
}

.cta p {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  max-width: 42ch;
  opacity: 0.95;
}



.cta__art {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.cta__art img {
  width: min(230px, 70%);
  filter: drop-shadow(-8px 6px 0 rgba(0, 0, 0, 0.18));
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--canvas);
  padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: var(--border-w) solid var(--line);
}

.footer-brand img {
  height: 30px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.92rem;
  color: var(--ink-2);
  max-width: 34ch;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  font-size: 0.92rem;
}

.footer-col a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ink-2);
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* ── Scroll reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .routes,
  .split,
  .cta__inner {
    grid-template-columns: 1fr;
  }
  .split--reverse .split__art {
    order: 0;
  }
  .routes__aside,
  .cta__art {
    display: none;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--canvas);
    border-bottom: var(--border-w) solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
    margin-left: 0;
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.9rem 0;
    border-bottom: var(--border-w) solid rgba(0, 0, 0, 0.12);
    font-size: 1rem;
  }
  .nav a::after {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions .btn--store,
  .header-actions .btn--primary {
    display: none;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  /* Single-column below 860: without a cap the two phones, the guide and
     the sticker spread across the full page width and stop reading as one
     composition. */
  .hero__art {
    min-height: 420px;
    max-width: 460px;
    margin-inline: auto;
    width: 100%;
  }

  .hero__mascot {
    right: 0;
    width: 105px;
  }

  .stamps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .stamps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .route {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }
  .route img {
    height: 38px;
  }
  .gallery__item:nth-child(even) {
    transform: none;
  }
  .hero__sticker {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .marquee__track {
    animation: none;
  }
}

@media print {
  .site-header,
  .marquee,
  .hero__sticker {
    display: none;
  }
}

/* ── 404 ────────────────────────────────────────────────────────
   Served by Netlify from /404.html on any unmatched path. Bilingual
   because the visitor's language is unknown — an unmatched URL carries
   no locale, so both copies show and both home links are offered. */
.notfound {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: clamp(3rem, 8vw, 5rem);
}

/* No max-width cap here on purpose — the wrap's own 1200px is what keeps
   the mascot clear of the copy. Capping this box to the text's width puts
   `right: 0` directly on top of the paragraphs. The text is bounded by its
   own max-widths below instead. */
.notfound__inner {
  position: relative;
}

.notfound__brand {
  margin-bottom: clamp(2rem, 6vw, 3.5rem);
}

.notfound__title {
  font-size: clamp(2.25rem, 7vw, 4rem);
  max-width: 16ch;
}

.notfound__lede {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  color: var(--ink-2);
  max-width: 52ch;
  line-height: 1.65;
}

.notfound__lede + .notfound__lede {
  margin-top: 0.75rem;
}

.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.notfound__art {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(120px, 20vw, 190px);
  opacity: 0.9;
  pointer-events: none;
}

@media (max-width: 760px) {
  .notfound__art {
    display: none;
  }
}
