/* ==========================================================
   LOS CRISTALES - Agencia de viajes y turismo
   Hoja de estilos única para todo el sitio
   Estilo: tema claro por defecto (lienzo blanco, aireado) con tema oscuro
   de pizarra profunda vía [data-theme="dark"]. Paleta 60-30-10:
   Deep Slate #2D3436, Pure White #FFFFFF, Teal #008080 (acciones),
   Mist Gray #F5F6FA (fondos sutiles) y Aged Gold #C4A77D (acentos).
   Titulares en Playfair Display, texto e interfaz en Lato.
   ========================================================== */

/* Fonts are loaded with <link> in every page's <head> (Lato 400/700 +
   italic 400, Playfair Display 600, display=swap). */

/* ---------- Tokens ---------- */

:root {
  /* Brand palette (theme-independent) */
  --pizarra: #2D3436;      /* Deep Slate: dark base, light-mode text, footer */
  --blanco: #FFFFFF;       /* Pure White: light base, cards */
  --teal: #008080;         /* primary actions (white text: 4.77:1) */
  --teal-hover: #007373;   /* ~10% darker on hover (white text: 5.68:1) */
  --niebla: #F5F6FA;       /* Mist Gray: subtle backgrounds */
  --oro: #C4A77D;          /* Aged Gold: icons, decorative lines, accents */
  --sobre-oro: var(--pizarra); /* text on gold fills (5.54:1) */

  /* Surfaces that stay dark in both themes */
  --vidrio-oscuro: rgba(35, 41, 43, 0.78); /* glass over photos (WhatsApp, badges) */
  --desenfoque: blur(20px) saturate(1.2);
  --brillo-oro: 0 0 14px rgba(196, 167, 125, 0.35), inset 0 0 10px rgba(196, 167, 125, 0.12);
  --brillo-oro-fuerte: 0 0 22px rgba(196, 167, 125, 0.55), inset 0 0 12px rgba(196, 167, 125, 0.18);

  /* Field fill: the page tone, so fields read as inset on cards */
  --relleno-campo: var(--lienzo);

  /* Legacy aliases (inline styles in libro-de-reclamaciones.html) */
  --gris: var(--texto-3);
  --divisor: var(--linea);
  --verde-oscuro: var(--texto);

  /* Typography */
  --fuente-titulo: "Playfair Display", Georgia, "Times New Roman", serif;
  --fuente: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Shapes */
  --radio: 24px;           /* cards and containers */
  --radio-medio: 16px;     /* gallery images and small panels */
  --radio-enlace: 10px;    /* link hit areas */
  --pill: 9999px;          /* buttons */
  --pill-campo: 210px;     /* single-line fields */

  /* Sizes */
  --alto-cabecera: 64px;

  /* Vertical rhythm of the home sections: one gap between plain sections,
     three quarters of it on each side of a tinted band, one for the opener. */
  --ritmo: clamp(64px, 7.5vw, 96px);
  --ritmo-banda: calc(var(--ritmo) * 0.75);
  --ritmo-titulo: clamp(32px, 4vw, 48px);

  /* Motion */
  --suave: cubic-bezier(0.25, 0.1, 0.25, 1);
  --curva: cubic-bezier(0.28, 0.11, 0.32, 1);   /* cinematic entrances */
  --salida: cubic-bezier(0.23, 1, 0.32, 1);     /* strong ease-out for UI responses (press, hover, show/hide) */
  --paso: 80ms;            /* stagger between revealed elements */
}

/* Light theme (default, also without JS): airy white canvas, slate text,
   soft cool-grey surfaces; teal and gold stay. */
:root,
:root[data-theme="light"] {
  color-scheme: light;
  --lienzo: #FFFFFF;
  --lienzo-alterno: #F6F8FA;   /* alternating band */
  --superficie: #F3F5F8;       /* cards */
  --superficie-banda: #FFFFFF; /* cards on the alternating band */
  --superficie-2: #E8ECF1;     /* secondary fills, notices */
  --superficie-3: #DCE1E8;     /* hover on secondary fills */
  --texto: #2D3436;            /* 12.7:1 on white */
  --texto-2: #3F484B;
  --texto-3: #566165;          /* >= 5.3:1 up to superficie-2 */
  --linea: #E6EAF0;
  --linea-fuerte: #8A9498;     /* 3.1:1 on white */
  --enlace: #006B6B;           /* darker teal for small text on white (6.3:1) */
  --foco: #006B6B;
  --oro-texto: #7D5F34;        /* darker gold for text/icons on white (5.9:1) */
  --error: #B3261E;
  --exito: #1E7B4A;
  --cabecera-fondo: #FFFFFF;
  --marca-fondo: transparent;  /* the logo's greens read on white */
  --vidrio: rgba(255, 255, 255, 0.82);
  --vidrio-hover: rgba(232, 236, 241, 0.95);
  --pie-fondo: #2D3436;
  --portada-fundido: rgba(25, 29, 30, 0.9);
  /* Light cards float on a very soft, cool shadow (none on dark) */
  --sombra: 0 1px 2px rgba(45, 52, 54, 0.04), 0 12px 32px -16px rgba(45, 52, 54, 0.16);
}

/* Dark theme (the toggle's other option). Also re-declared on the parts that
   stay dark in both themes: photo heroes, the footer, the top bar, the
   lightbox and the transparent header over the home hero. */
:root[data-theme="dark"],
.hero,
.portada-tour,
.pie,
.barra-superior,
.lightbox,
.inicio .cabecera.dinamica:not(.solida) {
  color-scheme: dark;
  --lienzo: #2D3436;           /* page */
  --lienzo-alterno: #262C2E;   /* alternating band */
  --superficie: #363E41;       /* cards */
  --superficie-banda: #363E41; /* cards on the alternating band */
  --superficie-2: #414A4D;     /* secondary fills, notices */
  --superficie-3: #4C5659;     /* hover on secondary fills */
  --texto: #F5F6FA;            /* primary text (11.7:1 on page) */
  --texto-2: #D3D8DB;          /* long-form body (7.6:1 on cards) */
  --texto-3: #AFB8BC;          /* muted text, metadata (>= 4.5:1 up to superficie-2) */
  --linea: rgba(245, 246, 250, 0.14);  /* dividers */
  --linea-fuerte: #808B8F;     /* field borders and ghost buttons (>= 3:1 on page) */
  --enlace: #5FC9C9;           /* teal for text links / active links on dark (6.4:1) */
  --foco: #5FC9C9;             /* focus ring */
  --oro-texto: #C4A77D;        /* gold as text/icon on dark (5.5:1) */
  --error: #FF9A8F;
  --exito: #6FCF97;            /* valid field border (>= 3:1 on page and cards) */
  --cabecera-fondo: #2D3436;
  --marca-fondo: #F5F6FA;      /* light chip behind the full-colour logo */
  --vidrio: rgba(65, 74, 77, 0.72);
  --vidrio-hover: rgba(65, 74, 77, 0.92);
  --sombra: none;
}
/* Dark page: the footer and top bar sit one step below the page tone */
:root[data-theme="dark"] {
  --pie-fondo: #23292B;
  --portada-fundido: #2D3436;  /* tour covers fade into the page colour */
}

/* Theme switch: every colour changes in the same frame (script.js adds
   this class for one frame), so links and buttons don't fade on their own. */
.cambiando-tema *,
.cambiando-tema *::before,
.cambiando-tema *::after { transition: none !important; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--alto-cabecera);
  /* Touch: no gray tap flash (every control has its own :active/:focus-visible
     feedback) and no landscape font inflation */
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Icon set: one inline-SVG line style (24 grid, 1.75 stroke, round caps and
   joins, currentColor). Each context only sets the size. */
.ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Taps fire immediately (no double-tap-zoom wait) */
a, button, label, summary, select { touch-action: manipulation; }

body {
  font-family: var(--fuente);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--texto);
  background: var(--lienzo);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: var(--enlace); text-decoration: none; border-radius: var(--radio-enlace); }
/* Hover only on precise pointers: a tap would leave it stuck on touch screens */
@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .marca:hover { text-decoration: none; }
}

:focus-visible { outline: 2px solid var(--foco); outline-offset: 3px; }

b, strong, th { font-weight: 700; }

h1, h2, h3, h4 {
  font-family: var(--fuente-titulo);
  font-weight: 600;
  color: var(--texto);
  line-height: 1.15;
  letter-spacing: 0;
  text-wrap: balance;
}
p { text-wrap: pretty; }

.contenedor { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* Eyebrow: small gold uppercase label above a heading */
.eyebrow {
  display: block;
  color: var(--oro-texto);
  font-family: var(--fuente);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* "Saber más" link: teal text with a › arrow */
.enlace {
  display: inline-block;
  color: var(--enlace);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}
/* The › arrow slides right on hover or focus */
.enlace > span[aria-hidden] { display: inline-block; transition: translate 0.2s var(--salida); }
.enlace .ico { width: 1.1em; height: 1.1em; vertical-align: -0.2em; }
.enlace:focus-visible > span[aria-hidden] { translate: 3px 0; }
@media (hover: hover) and (pointer: fine) {
  .enlace:hover > span[aria-hidden] { translate: 3px 0; }
}

/* Contained panel within the page width (distinct from the footer) */
.banda-oscura {
  position: relative;
  overflow: hidden;
  width: min(1200px, 100% - 32px);
  margin: 0 auto 120px;
  border-radius: var(--radio);
  background: var(--superficie);
  color: var(--texto);
  box-shadow: var(--sombra);
}
.banda-oscura > .contenedor { width: min(1040px, 100% - 48px); }
.banda-oscura p { color: var(--texto-2); }

/* Alternating band (e.g. home tours): one step off the page tone */
.banda-clara {
  background: var(--lienzo-alterno);
  color: var(--texto);
  --superficie: var(--superficie-banda);
}
.banda-clara p { color: var(--texto-2); }

/* ---------- 1. PARTE SUPERIOR ---------- */

/* Contact strip: deep slate in both themes */
.barra-superior {
  color: var(--texto-3);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  background: var(--pie-fondo);
}
.barra-superior .contenedor {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 28px;
  padding: 10px 0;
}
.barra-superior a { color: var(--enlace); }
.barra-superior span { white-space: nowrap; }
.barra-superior .ico { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; color: var(--oro); }

/* Header: solid (slate / white) everywhere; transparent over the home hero
   until the visitor scrolls (script.js adds .dinamica and toggles .solida) */
.cabecera {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--texto);
  background-color: var(--cabecera-fondo);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--salida), border-color 0.3s var(--suave), translate 0.3s var(--salida);
}
.cabecera.solida { border-bottom-color: var(--linea); }
.inicio .cabecera.dinamica:not(.solida) { background-color: transparent; }
/* Home: the header overlays the hero (which reserves its height) */
.inicio .cabecera { margin-bottom: calc(-1 * var(--alto-cabecera)); }

.cabecera .contenedor {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: calc(var(--alto-cabecera) - 1px);
}

/* The full-colour logo has dark greens: on dark it sits on a light chip */
.marca {
  justify-self: start;
  display: flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--marca-fondo);
  border-radius: var(--radio-enlace);
  text-decoration: none;
}
.marca img { height: 36px; width: auto; object-fit: contain; }
/* Large screens: a bigger logo, and on the home page (header transparent over
   the hero) a much bigger one while the page sits at the top. The scale is
   visual only (transform), so the header keeps its height and nothing shifts
   when it settles back on scroll. */
.marca { transform-origin: left top; transition: transform 0.3s var(--salida); }
@media (min-width: 1024px) {
  .marca img { height: 44px; }
  .inicio .cabecera.dinamica:not(.solida) .marca { transform: translateY(10px) scale(1.7); }
}
@media (prefers-reduced-motion: reduce) { .marca { transition: none; } }

/* Right side: theme switch + booking CTA */
.cabecera-acciones {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme switch: round icon button in gold. Invisible (but keeping its
   space, so nothing shifts) until script.js wires it up. */
.tema-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--linea);
  border-radius: var(--pill);
  background: transparent;
  color: var(--oro-texto);
  cursor: pointer;
  visibility: hidden;
  transition: background-color 0.2s ease, border-color 0.2s ease, scale 0.16s var(--salida);
}
.tema-listo .tema-toggle { visibility: visible; }
.tema-toggle .ico { width: 20px; height: 20px; }
/* Light theme (default) shows the moon (switch to dark); dark shows the sun */
.tema-toggle .icono-sol,
:root[data-theme="dark"] .tema-toggle .icono-luna { display: none; }
:root[data-theme="dark"] .tema-toggle .icono-sol { display: block; }
.tema-toggle:active { scale: 0.92; }
@media (hover: hover) and (pointer: fine) {
  .tema-toggle:hover { background: var(--superficie-2); border-color: var(--linea-fuerte); }
}

/* Language switch (ES | EN): a compact pill with two links; the current
   language carries a filled tone plus a gold underline (state is never
   colour alone) and aria-current. Tokens follow the theme, including the
   dark tokens over the transparent home header. */
.idioma {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--linea);
  border-radius: var(--pill);
}
.idioma a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0 8px;
  border-radius: var(--pill);
  color: var(--texto-2);
  font-family: var(--fuente);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, scale 0.16s var(--salida);
}
.idioma a[aria-current="true"] {
  background: var(--superficie-2);
  color: var(--texto);
  box-shadow: inset 0 -2px 0 var(--oro);
}
.idioma a:active { scale: 0.94; }
.idioma a:focus-visible { outline: 2px solid var(--foco); outline-offset: 1px; }
@media (hover: hover) and (pointer: fine) {
  .idioma a:not([aria-current="true"]):hover { background: var(--superficie-2); color: var(--enlace); text-decoration: none; }
}

/* Header CTA: outlined pill with a glowing gold border */
.boton-reservar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 20px;
  border: 1px solid var(--oro);
  border-radius: var(--pill);
  color: var(--texto);
  font-family: var(--fuente);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--brillo-oro);
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, scale 0.2s var(--salida);
}
@media (hover: hover) and (pointer: fine) {
  .boton-reservar:hover { background: rgba(196, 167, 125, 0.14); box-shadow: var(--brillo-oro-fuerte); scale: 1.02; text-decoration: none; }
}
.boton-reservar:active { scale: 0.97; }

/* ---------- Menú ---------- */

#menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.boton-menu {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--texto);
  background: transparent;
  border-radius: var(--radio-enlace);
  user-select: none;
  -webkit-user-select: none;
  transition: opacity 0.2s ease, scale 0.16s var(--salida);
}
.boton-menu .ico { width: 24px; height: 24px; }
.boton-menu:active { scale: 0.92; }
@media (hover: hover) and (pointer: fine) {
  .boton-menu:hover { opacity: 0.8; }
}
#menu-toggle:focus-visible + .boton-menu { outline: 2px solid var(--foco); outline-offset: 2px; }

.menu { list-style: none; display: flex; align-items: center; gap: 8px; }
.menu > li { position: relative; }
.menu > li > a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  color: var(--texto-2);
  border-radius: var(--radio-enlace);
  text-decoration: none;
  transition: color 0.2s ease;
}
.menu .ico-chevron { width: 14px; height: 14px; margin-left: 2px; vertical-align: -2px; }
.menu > li:focus-within > a { color: var(--texto); }
/* Active page: teal text */
.menu > li > a[aria-current="page"] { color: var(--enlace); }
@media (hover: hover) and (pointer: fine) {
  .menu > li > a:hover { color: var(--texto); text-decoration: none; }
  .menu > li > a[aria-current="page"]:hover { color: var(--enlace); }
}

/* Dropdown centred under its trigger */
.submenu {
  list-style: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  min-width: 300px;
  padding: 10px;
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: var(--radio-medio);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.2s var(--salida), transform 0.2s var(--salida), visibility 0.2s;
}
/* invisible bridge so hover survives the gap */
.submenu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.menu li:hover > .submenu,
.menu li:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu a {
  display: block;
  padding: 10px 14px;
  color: var(--texto);
  font-size: 15px;
  border-radius: var(--radio-enlace);
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .submenu a:hover { background: var(--superficie-2); text-decoration: none; }
}

/* ---------- Botones ---------- */

/* Primary action: teal pill */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--fuente);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--blanco);
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  background: var(--teal);
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, scale 0.2s var(--salida);
}
/* Hover: background ~10% darker and a slight lift in scale */
@media (hover: hover) and (pointer: fine) {
  .boton:hover { background-color: var(--teal-hover); scale: 1.02; text-decoration: none; }
}
/* Press feedback on touch-down, on every input type */
.boton:active { scale: 0.97; }
.boton:disabled { cursor: progress; opacity: 0.7; }

/* WhatsApp on each tour and the claim form submit: the same primary action */
.boton.verde { background-color: var(--teal); color: var(--blanco); }
@media (hover: hover) and (pointer: fine) {
  .boton.verde:hover { background-color: var(--teal-hover); }
}

/* Secondary: ghost pill */
.boton.fantasma {
  background: transparent;
  color: var(--texto);
  border-color: var(--linea-fuerte);
}
@media (hover: hover) and (pointer: fine) {
  .boton.fantasma:hover { border-color: var(--texto); background: var(--superficie-2); }
}

/* Secondary on cards: high-contrast neutral pill (inverts with the theme) */
.boton.claro { background: var(--texto); color: var(--lienzo); }
@media (hover: hover) and (pointer: fine) {
  .boton.claro:hover { background: var(--texto); background: color-mix(in srgb, var(--texto) 90%, var(--lienzo)); }
}

/* ---------- 2. PARTE MEDIA: INICIO ---------- */

/* Hero = the "Próximamente" announcement. Dark in both themes. A full-bleed
   photo stage covers the whole first screen at every width; the text sits on
   its left-hand scrim (phones: on its lower scrim).
   Layers, back to front: photo stage (parallax + Ken Burns), scrims, text,
   photo controls. */
.hero { position: relative; isolation: isolate; background: var(--lienzo); color: var(--texto); overflow: hidden; }
.hero-grid {
  display: flex;
  align-items: center;
  min-height: clamp(620px, calc(100vh - 40px), 1400px);
  min-height: clamp(620px, calc(100svh - 40px), 1400px);
  /* Room for the header (it overlays the hero) and the photo controls */
  padding: calc(var(--alto-cabecera) + 40px) 0 104px;
}
.hero-texto { position: relative; z-index: 2; max-width: 38rem; }

/* "Próximamente" label: gold pill with a softly pulsing dot */
.hero-insignia {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 7px 14px;
  border: 1px solid rgba(196, 167, 125, 0.45);
  border-radius: var(--pill);
  background: rgba(196, 167, 125, 0.12);
  color: var(--oro-texto);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.33;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-insignia::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--oro);
  animation: latido 2.4s ease-in-out infinite;
}
.hero-titular {
  font-size: clamp(38px, 5.4vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.hero-anuncio { margin-top: 28px; max-width: 34ch; }
.hero-anuncio p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--texto-2);
}
.hero-destino {
  display: block;
  margin-bottom: 6px;
  font-family: var(--fuente-titulo);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--texto);
}
.hero-anuncio .enlace { margin-top: 12px; }
.hero-acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 28px;
}
.hero-meta {
  margin-top: 28px;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--texto-3);
}

/* Photo stage: full-bleed at every width (edge to edge, top to bottom,
   behind the header). One scrim layer on .hero-medio keeps the header, the
   text and the controls AA over bright crystals: a left-to-right gradient
   (the text column sits in the left half), a header scrim on top and a
   bottom one for the controls. */
.hero-medio { position: absolute; inset: 0; z-index: 1; }
.hero-foto {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  overflow: hidden; /* the Ken Burns zoom must not spill past the stage */
}
.hero-medio::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(25, 29, 30, 0.8), rgba(25, 29, 30, 0.45) 110px, rgba(25, 29, 30, 0) 240px),
    linear-gradient(to top, rgba(25, 29, 30, 0.72), rgba(25, 29, 30, 0) 38%),
    linear-gradient(to right, rgba(25, 29, 30, 0.9), rgba(25, 29, 30, 0.84) 42%, rgba(25, 29, 30, 0.6) 60%, rgba(25, 29, 30, 0.16) 84%, rgba(25, 29, 30, 0) 100%);
}
.hero-diapositivas { position: absolute; inset: 0; }
/* Slides are stacked and only .activa is visible (the first one carries it in
   the HTML, so no-JS shows it). The container takes the scroll parallax; each
   slide only changes its own opacity and runs the slow Ken Burns zoom. */
.hero-diapositiva {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--encuadre, 50% 40%);
  transform-origin: var(--origen, 50% 50%);
  opacity: 0;
}
/* The incoming slide fades in on top; the outgoing one stays opaque beneath
   it until script.js drops .saliente, so the crossfade never dips to black.
   Both run the same animation, so the zoom carries on while it fades out. */
.hero-diapositiva.activa {
  z-index: 2;
  opacity: 1;
  transition: opacity 1s cubic-bezier(0.45, 0, 0.55, 1);
}
.hero-diapositiva.saliente { z-index: 1; opacity: 1; }
.hero-diapositiva.activa,
.hero-diapositiva.saliente { animation: recorrer 9s linear both; }
.hero-medio.en-pausa .hero-diapositiva { animation-play-state: paused; }

/* Photo controls (hidden until script.js starts): indicators + pause, bottom
   left on the container's grid, clear of the floating WhatsApp button */
.hero-controles {
  position: absolute;
  z-index: 4;
  left: max(16px, calc((100% - 1200px) / 2));
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-controles[hidden] { display: none; }
.hero-indicadores { display: flex; gap: 6px; }
.hero-punto {
  display: grid;
  align-items: center;
  width: 56px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.hero-punto span {
  position: relative;
  display: block;
  height: 3px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(245, 246, 250, 0.4);
}
.hero-punto span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--texto);
  transform: scaleX(0);
  transform-origin: left;
}
.hero-punto.activo span::after { transform: scaleX(1); }
/* While the photos rotate the active bar fills over one interval (script.js
   restarts it with each timer, so it never drifts from the real change) */
.hero-punto.activo.corre span::after { animation: llenar var(--intervalo, 5.5s) linear both; }
.hero-punto:focus-visible { outline: 2px solid var(--oro); outline-offset: -2px; border-radius: 6px; }

/* Pause/play (WCAG 2.2.2): round glass button */
.hero-pausa {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--pill);
  background: var(--vidrio);
  -webkit-backdrop-filter: var(--desenfoque);
  backdrop-filter: var(--desenfoque);
  color: var(--texto);
  cursor: pointer;
  transition: background-color 0.2s ease, scale 0.16s var(--salida);
}
.hero-pausa[hidden] { display: none; }
.hero-pausa .ico { width: 20px; height: 20px; }
.hero-pausa .icono-reanudar,
.hero-pausa.pausado .icono-pausa { display: none; }
.hero-pausa.pausado .icono-reanudar { display: block; }
.hero-pausa:active { scale: 0.95; }
@media (hover: hover) and (pointer: fine) {
  .hero-pausa:hover { background: var(--vidrio-hover); }
}

/* ---------- Secciones ---------- */

.seccion { padding: var(--ritmo) 0; }
/* Consecutive plain sections share one gap (the top padding folds away) */
.seccion:not(.banda-clara) + .seccion:not(.banda-clara) { padding-top: 0; }
/* Either side of a tinted band the gap is three quarters, so the colour edge
   adds no more air than a plain gap does. */
.seccion.banda-clara { padding: var(--ritmo-banda) 0; }
.seccion:not(.banda-clara):has(+ .banda-clara) { padding-bottom: var(--ritmo-banda); }
.banda-clara + .seccion:not(.banda-clara) { padding-top: var(--ritmo-banda); }
.seccion > .banda-oscura { margin-bottom: 0; }

/* Section opener: heading on the left, link on the right */
.titulo-seccion {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  margin-bottom: var(--ritmo-titulo);
}
.titulo-seccion h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
}
.titulo-seccion p {
  /* Full-width row under the heading (a max-width would let it share the line) */
  flex: 0 0 100%;
  order: 3;
  color: var(--texto-3);
  font-size: 20px;
  line-height: 1.45;
}

/* Fact cards */
.grid-datos {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.tarjeta-dato {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 232px;
  padding: clamp(24px, 2.4vw, 32px);
  background: var(--superficie);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  transition: translate 0.2s var(--salida);
}
/* Fact cards lift a few px on precise pointers; the icon chip nudges with them */
@media (hover: hover) and (pointer: fine) {
  .tarjeta-dato:hover { translate: 0 -3px; }
}
/* Icon tile: gold line icon on a page-toned chip */
.tarjeta-dato .icono-dato {
  box-sizing: content-box;
  width: 24px;
  height: 24px;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 16px;
  background: var(--lienzo);
  color: var(--oro-texto);
}
.tarjeta-dato .etiqueta-dato {
  color: var(--oro-texto);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tarjeta-dato h3 {
  font-size: clamp(22px, 2.1vw, 26px);
  line-height: 1.2;
  text-wrap: balance;
}
.tarjeta-dato p { margin-top: auto; color: var(--texto-2); }

/* Statement: short sentences (hook for the word-by-word highlight). A short
   gold rule opens it so it reads as a pause between the tours and the photos. */
.declaracion {
  max-width: 21ch;
  font-family: var(--fuente-titulo);
  font-size: clamp(34px, 5.4vw, 72px);
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance;
  color: var(--texto);
}
.declaracion::before {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-bottom: clamp(20px, 2.4vw, 32px);
  background: var(--oro);
}

/* Tingo María photo slider (home): a native scroll-snap strip. Its first
   photo lines up with .contenedor and the next one peeks into the margin;
   script.js adds the arrows, the indicators and the .activa state. The
   section is a size container so the gutter can be measured in cqw. */
.panorama { container-type: inline-size; }
.panorama-cabecera { margin-bottom: var(--ritmo-titulo); }
.panorama-controles { display: flex; gap: 8px; }
.panorama-controles[hidden], .panorama-puntos[hidden] { display: none; }
.panorama-flecha {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--texto);
  background: var(--superficie);
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--pill);
  cursor: pointer;
  transition: background-color 0.2s var(--salida), opacity 0.2s var(--salida), scale 0.16s var(--salida);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.panorama-flecha .ico { width: 22px; height: 22px; }
.panorama-flecha:active:not(:disabled) { scale: 0.94; }
.panorama-flecha:disabled { opacity: 0.35; cursor: default; }
.panorama-flecha:focus-visible { outline: 2px solid var(--foco); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .panorama-flecha:hover:not(:disabled) { background: var(--superficie-2); }
}

.panorama-pista {
  --margen: 16px;
  --ancho-slide: calc(100% - 2 * var(--margen) - 40px);
  position: relative;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--margen);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.panorama-pista::-webkit-scrollbar { display: none; }
.panorama-pista:focus-visible { outline: 2px solid var(--foco); outline-offset: -4px; }
@supports (width: 1cqw) {
  .panorama-pista {
    --margen: max(16px, calc((100cqw - 1200px) / 2));
    --ancho-slide: calc(100cqw - 2 * var(--margen) - 40px);
  }
}
.panorama-lista {
  display: flex;
  gap: 16px;
  width: max-content;
  padding-inline: var(--margen);
  list-style: none;
}
.panorama-slide {
  position: relative;
  flex: 0 0 var(--ancho-slide);
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: var(--superficie-2);
  border-radius: var(--radio);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.panorama-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--encuadre, 50% 50%);
}
/* With JS the photos beside the current one are dimmed (opacity only) */
.panorama-pista[data-listo] .panorama-slide img { transition: opacity 0.3s var(--salida); }
.panorama-pista[data-listo] .panorama-slide:not(.activa) img { opacity: 0.55; }

/* The dots' 44px hit area carries 20px of slack below the bar: pull it back */
.panorama-puntos { display: flex; margin: 12px 0 -20px; }
.panorama-punto {
  display: grid;
  place-items: center;
  width: 40px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.panorama-punto span {
  display: block;
  width: 24px;
  height: 4px;
  border-radius: var(--pill);
  background: var(--linea-fuerte);
  transition: width 0.25s var(--salida), background-color 0.25s var(--salida);
}
.panorama-punto[aria-current="true"] span { width: 32px; background: var(--oro-texto); }
.panorama-punto:focus-visible { outline: 2px solid var(--foco); outline-offset: -2px; border-radius: 8px; }
@media (hover: hover) and (pointer: fine) {
  .panorama-punto:hover span { background: var(--texto-3); }
  .panorama-punto[aria-current="true"]:hover span { background: var(--oro-texto); }
}
@media (max-width: 1024px) {
  .panorama-slide { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .panorama-lista { gap: 12px; }
  .panorama-slide { aspect-ratio: 4 / 5; border-radius: var(--radio-medio); }
  .panorama-flecha { width: 44px; height: 44px; }
}

.grid-tours {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* Tour card: a large square photo with the name over a dark scrim at the
   bottom. Dark tokens in both themes (text sits on the photo). */
.tarjeta-tour {
  color-scheme: dark;
  --texto: #F5F6FA;
  --enlace: #5FC9C9;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  color: var(--texto);
  background: var(--pizarra);
  border-radius: var(--radio);
  text-decoration: none;
  transition: translate 0.3s var(--salida), scale 0.16s var(--salida);
}
.tarjeta-tour:focus-visible { translate: 0 -4px; outline-offset: 4px; }
.tarjeta-tour:active { scale: 0.98; }
/* Frame: the photo fills the card and zooms inside without spilling */
.tarjeta-tour .marco { position: absolute; inset: 0; display: block; overflow: hidden; }
.tarjeta-tour img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--salida);
}
.tarjeta-tour:focus-visible img { transform: scale(1.05); }
.tarjeta-tour .nombre {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 72px 28px 28px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0));
}
.tarjeta-tour .nombre h3 {
  font-size: 28px;
  line-height: 1.18;
  color: var(--texto);
}
/* Gold underline that grows beneath the destination name (space reserved) */
.tarjeta-tour .nombre h3::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 10px;
  background: var(--oro);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--salida);
}
.tarjeta-tour:focus-visible .nombre h3::after { transform: scaleX(1); }
.tarjeta-tour .nombre > span {
  color: var(--enlace);
  font-size: 16px;
  font-weight: 700;
}
.tarjeta-tour .nombre .ico { width: 18px; height: 18px; vertical-align: -4px; }
.tarjeta-tour .nombre .flecha {
  display: inline-block;
  transition: transform 0.2s var(--salida);
}
.tarjeta-tour:focus-visible .nombre .flecha { transform: translateX(4px); }
@media (hover: hover) and (pointer: fine) {
  .tarjeta-tour:hover { translate: 0 -4px; text-decoration: none; }
  .tarjeta-tour:hover img { transform: scale(1.05); }
  .tarjeta-tour:hover .nombre h3::after { transform: scaleX(1); }
  .tarjeta-tour:hover .nombre .flecha { transform: translateX(4px); }
}
@media (max-width: 1024px) {
  .grid-tours { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-tours { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tarjeta-tour .nombre { padding: 64px 24px 24px; }
  .tarjeta-tour .nombre h3 { font-size: 24px; }
}

/* Numbered badge: gold */
.tarjeta-tour .numero {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--oro);
  color: var(--sobre-oro);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  border-radius: var(--pill);
}

/* Call-to-action panel (home): copy on the left, actions on the right, a soft
   gold glow in the top-right corner (static, no motion). */
.banda-cta { padding: clamp(40px, 6vw, 72px) 0; }
.banda-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 130% at 100% 0%, rgba(196, 167, 125, 0.2), rgba(196, 167, 125, 0) 65%);
}
.banda-cta > .contenedor {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  grid-template-areas: "titulo acciones" "texto acciones";
  align-items: center;
  column-gap: clamp(32px, 6vw, 80px);
}
.banda-cta h2 {
  grid-area: titulo;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.1;
}
.banda-cta p { grid-area: texto; max-width: 560px; margin: 16px 0 0; font-size: 19px; }
.banda-cta-acciones {
  grid-area: acciones;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.banda-cta-acciones .boton { width: 100%; }
.banda-cta-acciones .ico { width: 20px; height: 20px; vertical-align: -4px; }
@media (max-width: 860px) {
  .banda-cta > .contenedor {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "titulo" "texto" "acciones";
  }
  .banda-cta-acciones { margin-top: 28px; }
}
@media (min-width: 561px) and (max-width: 860px) {
  .banda-cta-acciones { flex-direction: row; flex-wrap: wrap; }
  .banda-cta-acciones .boton { width: auto; }
}

/* ---------- Página de cada tour ---------- */

/* Cover: full-bleed photo, dark in both themes */
.portada-tour {
  position: relative;
  isolation: isolate;
  height: clamp(460px, 56vw, 720px);
  overflow: hidden;
  background-color: var(--lienzo);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.portada-tour::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, var(--portada-fundido) 0%, rgba(25, 29, 30, 0.55) 32%, rgba(25, 29, 30, 0) 62%),
    radial-gradient(ellipse 80% 90% at 50% 40%, rgba(25, 29, 30, 0) 45%, rgba(25, 29, 30, 0.8) 100%);
}
.portada-tour .contenedor {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(40px, 6vw, 72px);
  color: var(--texto);
}
/* "TOUR 03 · DÍA COMPLETO": gold eyebrow */
.portada-tour small {
  display: block;
  color: var(--oro);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.portada-tour h1 {
  color: var(--blanco);
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-top: 12px;
  max-width: 16ch;
}

.migas { padding: 28px 0; font-size: 14px; color: var(--texto-3); }
.migas a { color: var(--texto-3); }
@media (hover: hover) and (pointer: fine) {
  .migas a:hover { color: var(--texto); }
}

/* Block: card on the page */
.bloque {
  background: var(--superficie);
  border-radius: var(--radio);
  padding: clamp(28px, 5vw, 56px);
  margin-bottom: 20px;
  box-shadow: var(--sombra);
}
.bloque h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
  margin-bottom: 32px;
}

/* Itinerary: thin line with gold dots */
.itinerario { list-style: none; position: relative; padding-left: 36px; max-width: 760px; color: var(--texto-2); }
.itinerario::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: var(--linea-fuerte);
}
.itinerario li { position: relative; padding: 10px 0; }
.itinerario li::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 20px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--oro);
}
.itinerario li strong { color: var(--texto); font-weight: 700; }

.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.galeria a {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radio-medio);
  overflow: hidden;
  background: var(--superficie-2);
}
.galeria img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--salida);
}
.galeria a:focus-visible img { transform: scale(1.05); }
@media (hover: hover) and (pointer: fine) {
  .galeria a:hover img { transform: scale(1.05); }
}

.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: 24px;
  margin: 0 0 120px;
}

/* Tour pages: itinerary beside a request-form card. Below 1024px everything
   stacks in DOM order (itinerary, form, photos); from 1024px the form takes
   the right column over both rows, and the photo mosaic sits under the
   itinerary so neither column is left empty. */
.tour-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.tour-layout > .bloque { margin-bottom: 0; }
.tour-solicitud {
  container-type: inline-size;
  min-width: 0;
  background: var(--superficie);
  border-radius: var(--radio);
  padding: 28px 20px;
  box-shadow: var(--sombra);
}
.tour-solicitud h2 { font-size: clamp(28px, 3vw, 34px); line-height: 1.15; margin-top: 10px; }
.tour-solicitud-intro { margin-top: 10px; color: var(--texto-2); font-size: 16px; }
.tour-solicitud .aviso-envio { margin: 20px 0 0; }
.tour-solicitud form.contacto { margin-top: 20px; }
.tour-solicitud form.contacto .campos { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 16px; }
.tour-solicitud .campo textarea { min-height: 124px; }
.tour-solicitud .contacto-envio { margin-top: 20px; gap: 12px; }
/* Date and people share a row when the card is wide enough */
@container (min-width: 380px) {
  .tour-solicitud form.contacto .campos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour-solicitud .campo:not(.mitad) { grid-column: 1 / -1; }
}
/* Photo mosaic: one wide photo over three small ones; the links reuse the
   .galeria lightbox. */
.galeria.tour-mosaico { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tour-mosaico a { aspect-ratio: 1; }
.tour-mosaico a:first-child { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
@media (min-width: 640px) {
  .tour-mosaico a { aspect-ratio: 4 / 3; }
}
@media (min-width: 1024px) {
  .tour-layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas: "itinerario solicitud" "mosaico solicitud";
    gap: 20px 24px;
    align-items: start;
  }
  .tour-itinerario { grid-area: itinerario; }
  .tour-solicitud { grid-area: solicitud; padding: 32px; }
  .tour-mosaico { grid-area: mosaico; }
}
/* Sticky from 1200px, where the card is about 900px tall. On viewports
   shorter than that, `top` goes negative so the card pins with its bottom
   (submit button) in view and only the title area scrolls away; the 760px
   floor keeps the fields themselves visible. */
@media (min-width: 1200px) and (min-height: 760px) {
  .tour-solicitud {
    position: sticky;
    top: min(calc(var(--alto-cabecera) + 16px), calc(100vh - 960px));
    top: min(calc(var(--alto-cabecera) + 16px), calc(100svh - 960px));
  }
}

/* ---------- Página de contacto ---------- */

.contacto-portada { padding: 0 0 64px; }
.contacto-portada .migas { padding-bottom: 48px; }
.contacto-portada h1 {
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-top: 12px;
}
.contacto-intro {
  max-width: 36ch;
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.45;
  color: var(--texto-2);
}

/* Two columns: channels (left) and the form panel (right) */
.contacto-columnas {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
  padding-bottom: 120px;
}
.contacto-canales h2,
.contacto-formulario-intro h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
}
.lista-canales { list-style: none; margin-top: 32px; border-bottom: 1px solid var(--linea); }
.canal {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--linea);
}
/* Small Aged Gold line icons */
.canal-icono {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  color: var(--oro-texto);
}
.canal > div { min-width: 0; }
.canal h3 {
  font-family: var(--fuente);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texto-3);
}
.canal p {
  margin-top: 6px;
  font-family: var(--fuente-titulo);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--texto);
  overflow-wrap: anywhere;
}
.canal .canal-nota {
  font-family: var(--fuente);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--texto-2);
}

/* Form panel: card tone; fields take the page tone so they read as inset */
.contacto-mensaje {
  background: var(--superficie);
  border-radius: var(--radio);
  padding: 40px;
  box-shadow: var(--sombra);
}
.contacto-formulario-intro { margin-bottom: 32px; }
.contacto-formulario-intro p { margin-top: 14px; color: var(--texto-2); }

form.contacto[hidden] { display: none; }
form.contacto .campos { gap: 24px 20px; margin: 0 0 28px; }
form.contacto .aceptacion a { color: var(--enlace); }
.contacto-envio { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
/* Full-width teal submit */
.contacto-envio .boton { width: 100%; }
.contacto-envio .estado-formulario { color: var(--texto-2); font-size: 14px; }
.estado-formulario a { color: var(--enlace); }
.estado-formulario:empty { display: none; }
.estado-formulario.es-error,
.contacto-envio .estado-formulario.es-error { color: var(--error); }

/* Success panel that replaces the contact form (script.js); fades in and
   takes focus so it is announced */
.exito-formulario {
  padding: 28px;
  border-radius: var(--radio-medio);
  border-left: 3px solid var(--oro);
  background: var(--superficie-2);
  animation: aparecer 0.5s var(--salida) both;
}
.exito-formulario:focus { outline: none; }
.exito-formulario:focus-visible { outline: 2px solid var(--foco); outline-offset: 3px; }
.exito-titulo {
  font-family: var(--fuente-titulo);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--texto);
}
.exito-formulario p + p { margin: 8px 0 24px; color: var(--texto-2); }

/* No-JS result: enviar.php redirects to #enviado or #error and the
   notice only shows as :target. */
.aviso-envio {
  display: none;
  margin-bottom: 32px;
  padding: 20px 24px;
  border-radius: var(--radio);
  border-left: 3px solid var(--oro);
  background: var(--superficie-2);
  font-size: 17px;
  color: var(--texto-2);
}
.aviso-envio:target { display: block; }
.aviso-envio[hidden] { display: none; } /* script.js hides a stale notice */
.aviso-envio:focus { outline: none; }
.aviso-envio p { color: inherit; }
.aviso-envio strong { color: var(--texto); font-weight: 700; }
.aviso-envio a { color: var(--enlace); }

/* Honeypot: off-screen but present for bots */
.campo-trampa {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 860px) {
  .contacto-portada { padding-bottom: 40px; }
  .contacto-portada .migas { padding-bottom: 32px; }
  .contacto-columnas { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-bottom: 80px; }
  .contacto-mensaje { padding: 28px 20px; }
  .banda-oscura { margin-bottom: 80px; }
  .banda-oscura > .contenedor { width: calc(100% - 40px); }
}

/* ---------- Formularios (contacto y libro de reclamaciones) ---------- */

.campos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px 20px;
  margin: 8px 0 16px;
}
.campo { display: flex; flex-direction: column; gap: 8px; }
.campo.ancho { grid-column: 1 / -1; }
.campo label { padding-left: 4px; font-size: 14px; font-weight: 700; color: var(--texto-2); }
.campo label .req { color: var(--texto-3); }

/* Pill fields */
.campo input,
.campo select,
.campo textarea {
  font: inherit;
  font-size: 17px;
  color: var(--texto);
  padding: 12px 20px;
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--pill-campo);
  background: var(--relleno-campo);
  width: 100%;
  transition: border-color 0.15s, outline-color 0.15s;
}
.campo input::placeholder,
.campo textarea::placeholder { color: var(--texto-3); }
.campo input:not([type="radio"]):not([type="checkbox"]), .campo select { min-height: 52px; }
.campo textarea { min-height: 160px; resize: vertical; border-radius: var(--radio); padding: 16px 20px; }
/* Visible focus: 2px teal ring */
.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  outline: 2px solid var(--foco);
  outline-offset: 0;
  border-color: transparent;
}

/* Live validation: script.js adds .validacion-viva, the state classes,
   aria-invalid and a linked text hint (colour is never the only cue).
   Red when invalid, green when valid and filled; the focus ring follows. */
.validacion-viva .campo .es-invalido { border-color: var(--error); }
.validacion-viva .campo .es-valido { border-color: var(--exito); }
.validacion-viva .campo .es-invalido:focus { outline-color: var(--error); }
.validacion-viva .campo .es-valido:focus { outline-color: var(--exito); }
.validacion-viva .aceptacion .es-invalido { outline: 2px solid var(--error); outline-offset: 2px; }
/* Without JS, browsers that support :user-invalid still flag a field once
   the visitor has interacted with it (native messages explain why). Kept in
   their own rules so older browsers don't drop the ones above. */
form:not(.validacion-viva) .campo input:user-invalid { border-color: var(--error); }
form:not(.validacion-viva) .campo textarea:user-invalid { border-color: var(--error); }
form:not(.validacion-viva) .campo select:user-invalid { border-color: var(--error); }
.pista-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-left: 4px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--error);
}
.pista-error[hidden] { display: none; }
/* Small "!" badge before the hint text */
.pista-error::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: var(--pill);
  background: var(--error);
  color: var(--lienzo);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.aceptacion + .pista-error { margin: -4px 0 14px 28px; }

.opciones { display: flex; flex-wrap: wrap; gap: 22px; padding: 6px 4px; }
.opciones label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 17px; color: var(--texto); }
.opciones input { width: auto; min-height: 0; accent-color: var(--teal); }

.aceptacion { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--texto-2); margin-bottom: 14px; }
.aceptacion input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--teal); }
.envio { text-align: center; padding-top: 16px; }
.envio-nota { font-size: 14px; color: var(--texto-2); margin-bottom: 20px; }
.envio .estado-formulario { margin-top: 16px; font-size: 14px; color: var(--texto-2); }
.envio .estado-formulario.es-error { color: var(--error); }

/* ---------- Libro de reclamaciones ---------- */

.hoja {
  background: var(--superficie);
  border-radius: var(--radio);
  overflow: hidden;
  margin-bottom: 120px;
}
.hoja-cabecera {
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--linea);
}
.hoja-cabecera h1 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
}
.hoja-cabecera h1 .ico-titulo { width: 0.8em; height: 0.8em; margin-right: 6px; vertical-align: -0.06em; color: var(--oro-texto); }
.hoja-cabecera p { font-size: 17px; color: var(--texto-3); margin-top: 8px; }
.hoja-cabecera .proveedor {
  background: var(--superficie-2);
  border-radius: var(--radio-medio);
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--texto-2);
}
.hoja-cabecera .proveedor strong { color: var(--texto); }

form.reclamo { padding: 40px; }
.hoja .aviso-envio { margin: 32px 40px 0; }
form.reclamo fieldset {
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  padding: 24px 24px 8px;
  margin-bottom: 32px;
}
form.reclamo legend {
  padding: 0 8px;
  font-family: var(--fuente-titulo);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--texto);
}

/* The guardian block only shows when "Sí soy menor" is checked */
.tutor { display: none; }
form.reclamo:has(#menor-si:checked) .tutor { display: block; }

.nota-legal {
  background: var(--superficie-2);
  border-radius: var(--radio-medio);
  padding: 20px 24px;
  font-size: 14px;
  color: var(--texto-2);
  margin-bottom: 28px;
}
.nota-legal strong { color: var(--texto); }
.nota-legal p + p { margin-top: 8px; }

/* ---------- 3. PARTE FINAL ---------- */

/* Footer: deep slate in both themes, gold accents */
.pie {
  background: var(--pie-fondo);
  color: var(--texto-3);
  padding-top: 64px;
  border-top: 1px solid rgba(196, 167, 125, 0.4);
  overflow: hidden;
}
.pie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 48px;
}
/* Four columns on desktop, two on tablet, one on phones */
@media (max-width: 1024px) {
  .pie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
}
@media (max-width: 560px) {
  .pie-grid { grid-template-columns: minmax(0, 1fr); }
}
.pie h3 {
  color: var(--oro);
  font-family: var(--fuente);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.pie p, .pie li { font-size: 13px; line-height: 1.45; }
.pie ul { list-style: none; }
.pie li .ico { width: 15px; height: 15px; margin-right: 6px; vertical-align: -3px; color: var(--oro); }
.pie li .ico-flecha { margin: 0 0 0 4px; }
.pie li { padding: 5px 0; overflow-wrap: anywhere; }
.pie a { color: var(--texto-3); text-decoration: none; transition: color 0.2s ease; }
@media (hover: hover) and (pointer: fine) {
  .pie a:hover { color: var(--texto); text-decoration: underline; text-decoration-color: var(--oro); }
}
.pie .dato strong { color: var(--texto-2); font-weight: 400; }
.pie-copy {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
  border-top: 1px solid var(--linea);
  padding: 32px 0 40px;
  font-size: 12px;
  color: var(--texto-3);
}
/* Large gold wordmark closing the site (no footer HTML change) */
.pie-copy::before {
  content: "Los Cristales";
  display: block;
  color: var(--oro);
  font-family: var(--fuente-titulo);
  font-size: min(160px, calc((100vw - 32px) / 6.4));
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  white-space: nowrap;
  margin: 0 0 32px -0.04em;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .cabecera .contenedor { display: flex; gap: 8px; }
  .cabecera-acciones { margin-left: auto; gap: 8px; }
  .boton-menu { display: grid; order: 3; }
  /* Mobile panel: solid header tone, full width */
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -16px;
    right: -16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 24px;
    background: var(--cabecera-fondo);
    border-bottom: 1px solid var(--linea);
  }
  #menu-toggle:checked ~ nav .menu { display: flex; }
  .menu > li > a { padding: 12px 8px; font-size: 16px; color: var(--texto); }
  .submenu {
    position: static;
    translate: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: 0;
    padding: 0 0 6px 4px;
    min-width: 0;
  }
  .submenu a { font-size: 16px; color: var(--texto-2); }
  .submenu::before { display: none; }

  /* Hero on phones: the photo stage is full-bleed; the text sits on its
     lower scrim, the photo shows through the top (portraits fit the tall
     frame; --encuadre-movil frames each one) */
  .hero-grid { align-items: flex-end; padding: calc(var(--alto-cabecera) + 24px) 0 88px; }
  .hero-medio::after {
    background:
      linear-gradient(to bottom, rgba(25, 29, 30, 0.8), rgba(25, 29, 30, 0.4) 90px, rgba(25, 29, 30, 0) 200px),
      linear-gradient(to top, rgba(25, 29, 30, 0.97), rgba(25, 29, 30, 0.9) 42%, rgba(25, 29, 30, 0.45) 66%, rgba(25, 29, 30, 0) 88%);
  }
  .hero-diapositiva { object-position: var(--encuadre-movil, var(--encuadre, 50% 50%)); }
  .hero-titular { font-size: clamp(32px, 9vw, 52px); }
  .hero-anuncio { margin-top: 20px; }
  .hero-anuncio p { font-size: 16px; }
  .hero-destino { font-size: 22px; }
  .hero-acciones { margin-top: 20px; }
  .hero-meta { display: none; }
  .hero-controles { bottom: 20px; gap: 8px; }
  .hero-punto { width: 48px; }

  .grid-datos { grid-template-columns: 1fr; gap: 16px; }
  .tarjeta-dato { min-height: 0; }

  .portada-tour { height: 420px; }
  .bloque { margin-bottom: 16px; }
  .hoja-cabecera { padding: 28px 20px; }
  form.reclamo { padding: 24px 16px; }
  .hoja .aviso-envio { margin: 24px 16px 0; }
  form.reclamo fieldset { padding: 20px 16px 8px; }
  .pie { padding-top: 48px; }
}

@media (max-width: 560px) {
  /* Long email address: step down so it rarely breaks */
  .canal p { font-size: 20px; }
}

@media (max-width: 860px) {
  /* 44px touch targets for the language links */
  .idioma a { min-width: 36px; min-height: 44px; }
  .idioma { padding: 0 2px; }
}

@media (max-width: 420px) {
  .boton-reservar { padding: 8px 14px; letter-spacing: 0.08em; }
  .cabecera-acciones { gap: 6px; }
}

/* Print: dark text on white, no dark surfaces */
@media print {
  .barra-superior, .cabecera, .pie, .envio, .hero-controles { display: none; }
  body, .hero, .banda-clara, .banda-oscura, .bloque, .hoja, .tarjeta-dato, .tarjeta-tour,
  .contacto-mensaje, .portada-tour, .legal .intro, .legal .nota, .datos-legal,
  .alerta-esnna, .nota-legal { background: #fff !important; color: #000 !important; }
  h1, h2, h3, h4, p, li, strong, small, span, a, .declaracion { color: #000 !important; }
  .portada-tour { height: auto; }
  .portada-tour::before, .portada-tour::after { display: none; }
  .hero-medio { display: none; }
}


/* ---------- Utilidades ---------- */

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

/* ---------- Páginas de políticas ---------- */

/* Reading column on the page: 760px */
.bloque.legal { background: transparent; padding: 24px 0 0; border-radius: 0; box-shadow: none; }
.legal { max-width: 760px; margin-inline: auto; color: var(--texto-2); }
.legal strong { color: var(--texto); }
.legal h1 {
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.12;
  margin-bottom: 36px;
}
/* Gold accent rule under the document title */
.legal h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 20px;
  background: var(--oro);
}
.legal h2 {
  font-size: 28px;
  line-height: 1.18;
  color: var(--texto);
  margin: 56px 0 16px;
  padding: 0;
  border: none;
}
.legal h3 {
  font-size: 21px;
  line-height: 1.25;
  margin: 32px 0 8px;
}
.legal p { margin: 0 0 16px; }
.legal ul, .legal ol { margin: 0 0 16px 24px; }
.legal li { margin-bottom: 8px; }
.legal li ul { margin-top: 8px; }
.legal .intro {
  background: var(--superficie);
  color: var(--texto);
  border-radius: var(--radio);
  padding: 24px 28px;
  margin-bottom: 8px;
}
.legal .intro p:last-child, .legal .nota p:last-child { margin-bottom: 0; }
.legal .nota {
  background: var(--superficie);
  border-radius: var(--radio);
  padding: 24px 28px;
  margin-bottom: 24px;
}
/* Photo credits: thumbnail + attribution data on cards */
.legal.creditos { margin-bottom: 120px; }
.legal .lista-creditos { list-style: none; margin: 0 0 24px; display: grid; gap: 16px; }
.legal .credito {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 20px 24px;
  align-items: start;
  margin: 0;
  padding: 20px;
  background: var(--superficie);
  border-radius: var(--radio);
}
.credito img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radio-medio);
  background: var(--superficie-2);
}
.legal .credito h2 { margin: 0 0 10px; font-size: 21px; line-height: 1.25; }
.credito dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; line-height: 1.45; }
.credito dt { color: var(--texto-3); }
.credito dd { margin: 0; color: var(--texto-2); overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .legal .credito { grid-template-columns: 1fr; }
}

.datos-legal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px 24px;
  background: var(--superficie);
  border-radius: var(--radio);
  padding: 28px;
  margin-bottom: 16px;
  color: var(--texto);
}
.datos-legal strong { display: block; color: var(--texto-3); font-size: 14px; font-weight: 700; }
.datos-legal > div { min-width: 0; overflow-wrap: anywhere; }
/* Subtitle under a legal h1 (brand + classification line) */
.legal .subtitulo-legal { margin: -20px 0 24px; color: var(--texto-3); }

/* ESNNA alert: light mist card with slate text and a gold top rule, both themes */
.alerta-esnna {
  text-align: center;
  background: var(--niebla);
  color: var(--pizarra);
  border-top: 3px solid var(--oro);
  border-radius: var(--radio);
  padding: 48px 28px;
  margin: 40px 0 8px;
}
.alerta-esnna strong { color: var(--pizarra); }
.alerta-esnna p { margin: 0 0 6px; color: #3F484B; }
.alerta-esnna .lineas { display: flex; flex-wrap: wrap; gap: 24px 56px; justify-content: center; margin-top: 28px; }
.alerta-esnna .linea strong {
  display: block;
  font-family: var(--fuente-titulo);
  font-size: 56px;
  font-weight: 600;
  line-height: 1.1;
}
.alerta-esnna .linea span { font-size: 14px; color: #3F484B; }
.en { font-style: italic; color: var(--texto-3); }

.carteles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.carteles img { width: 100%; height: auto; border-radius: var(--radio-medio); }

.otras-politicas { margin: 16px 0 120px; padding-top: 48px; }
.otras-politicas h2 {
  font-family: var(--fuente);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oro-texto);
  margin-bottom: 18px;
  text-align: center;
}
.otras-politicas ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
/* Ghost pills; the current one in teal */
.otras-politicas a {
  display: block;
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--pill);
  padding: 8px 16px;
  font-size: 14px;
  color: var(--texto-2);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .otras-politicas a:hover { border-color: var(--texto); color: var(--texto); }
}
.otras-politicas a.actual { background: var(--teal); border-color: var(--teal); color: var(--blanco); }

@media (max-width: 860px) {
  .alerta-esnna .linea strong { font-size: 40px; }
  .legal h2 { margin-top: 44px; }
}

/* Floating WhatsApp: dark glass pill in both themes, white icon */
.wa-flotante {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #168A45;     /* WhatsApp-style green; white text: 4.6:1 */
  color: var(--blanco);
  font-size: 14px;
  font-weight: 700;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--pill);
  box-shadow: 0 6px 20px rgba(22, 138, 69, 0.35);
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 0.2s ease, scale 0.16s var(--salida);
}
.wa-flotante span { padding-right: 8px; }
.wa-flotante .ico { width: 26px; height: 26px; }
.wa-flotante:active { scale: 0.95; }
/* Attention cue: a soft green ring pulses out of the button and the icon
   gives a short wiggle, once every few seconds; paused while hovered or
   focused, absent under reduced motion. transform/opacity only. */
@media (prefers-reduced-motion: no-preference) {
  .wa-flotante::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    border: 2px solid #168A45;
    opacity: 0;
    pointer-events: none;
    animation: wa-anillo 3.6s var(--salida) 2.4s infinite;
  }
  .wa-flotante .ico { animation: wa-sacudida 3.6s ease-in-out 2.4s infinite; transform-origin: 50% 60%; }
  .wa-flotante:hover::after, .wa-flotante:focus-visible::after,
  .wa-flotante:hover .ico, .wa-flotante:focus-visible .ico { animation-play-state: paused; }
}
@keyframes wa-anillo {
  0% { transform: scale(1); opacity: 0.55; }
  45%, 100% { transform: scale(1.5, 1.9); opacity: 0; }
}
@keyframes wa-sacudida {
  0%, 22%, 100% { transform: rotate(0); }
  4% { transform: rotate(-14deg); }
  8% { transform: rotate(12deg); }
  12% { transform: rotate(-9deg); }
  16% { transform: rotate(6deg); }
}
@media (hover: hover) and (pointer: fine) {
  .wa-flotante:hover { background: #12763B; text-decoration: none; }
}
@media (max-width: 560px) {
  .wa-flotante { right: 14px; bottom: 14px; }
  .wa-flotante span { display: none; }
}
@media print { .wa-flotante { display: none; } }

/* ---------- Mejoras con JS (script.js) ---------- */

/* Scroll reveal: script.js adds .revelar (never the HTML) and a per-batch
   index --i for the stagger; without JS everything stays visible.
   Fade + 20px rise, only the first time an element enters the viewport. */
.revelar {
  opacity: 0;
  transform: translateY(20px);
  /* The stagger delays only the entrance; hover lift and press feedback on
     revealed cards and buttons keep their own instant response */
  transition:
    opacity 0.7s var(--curva) calc(var(--i, 0) * var(--paso)),
    transform 0.7s var(--curva) calc(var(--i, 0) * var(--paso)),
    translate 0.3s var(--salida),
    scale 0.2s var(--salida),
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.revelar.visible { opacity: 1; transform: none; }

/* Section headings: the same fade + rise (on translate, so it never
   touches transform-based effects) */
.revelar-mascara {
  opacity: 0;
  translate: 0 20px;
  transition: opacity 0.7s var(--curva), translate 0.7s var(--curva);
  transition-delay: calc(var(--i, 0) * var(--paso));
}
.revelar-mascara.visible { opacity: 1; translate: none; }

/* Footer wordmark: slow fade-in on entry */
.pie-copy.revelar-marca::before {
  opacity: 0;
  translate: 0 20px;
  transition: opacity 1.2s var(--curva), translate 1.2s var(--curva);
}
.pie-copy.revelar-marca.visible::before { opacity: 1; translate: none; }

/* Itinerary: the line draws top to bottom and the dots appear in order */
.itinerario.revelar-grupo::before {
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 1.2s var(--suave) 0.15s;
}
.itinerario.revelar-grupo li {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--suave), transform 0.6s var(--suave);
  transition-delay: calc(var(--i, 0) * 90ms + 200ms);
}
.itinerario.revelar-grupo li::before {
  transform: scale(0);
  transition: transform 0.5s var(--suave);
  transition-delay: calc(var(--i, 0) * 90ms + 260ms);
}
.itinerario.revelar-grupo.visible::before,
.itinerario.revelar-grupo.visible li,
.itinerario.revelar-grupo.visible li::before { opacity: 1; transform: none; }

@media print {
  .revelar, .revelar-mascara, .itinerario.revelar-grupo li, .palabra, .pie-copy.revelar-marca::before { opacity: 1; transform: none; translate: none; }
  .itinerario.revelar-grupo::before, .itinerario.revelar-grupo li::before { transform: none; }
}

/* Gallery viewer: near-opaque slate with glass buttons */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(25, 29, 30, 0.94); padding: 20px;
  opacity: 0;
  pointer-events: none;
  /* The photo viewer owns every gesture: no page scroll bleeding through on
     iOS, horizontal swipes go to script.js, pinch-zoom stays available */
  touch-action: pinch-zoom;
  transition: opacity 0.2s ease-out;   /* exit: fast (script.js waits for it) */
}
.lightbox button .ico { width: 24px; height: 24px; margin: auto; }
.lightbox.abierto { opacity: 1; pointer-events: auto; transition-duration: 0.3s; }
.lightbox[hidden] { display: none; }
.lightbox figure {
  max-width: min(1100px, 100%); text-align: center; color: var(--texto);
  transform: scale(0.96);
  transition: transform 0.2s var(--salida);
}
.lightbox.abierto figure { transform: none; transition-duration: 0.3s; }
.lightbox img { max-height: 80vh; max-height: 80dvh; margin-inline: auto; border-radius: var(--radio-medio); }
.lightbox figcaption { margin-top: 14px; font-size: 14px; color: var(--texto-3); }
.lightbox button {
  position: absolute;
  background: var(--vidrio);
  -webkit-backdrop-filter: var(--desenfoque);
  backdrop-filter: var(--desenfoque);
  color: var(--blanco);
  border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 1.6rem; line-height: 1; cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 0.2s ease, scale 0.16s var(--salida);
}
.lightbox button:active { scale: 0.92; }
@media (hover: hover) and (pointer: fine) {
  .lightbox button:hover { background: var(--vidrio-hover); }
}
.lb-cerrar { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
body.lb-abierto { overflow: hidden; }

/* ---------- Animaciones ---------- */

/* All motion uses transform, translate, scale, opacity, clip-path, mask or
   filter. CSS-only entrances end visible (fill-mode both) and whatever JS
   hides, script.js adds itself. */

/* Only "from" when the end state is each element's own value. */
@keyframes fundido { from { opacity: 0; } }
@keyframes subir-mascara { from { transform: translateY(110%); } }
@keyframes aparecer { from { opacity: 0; transform: translateY(18px); } }
/* The photo lights up from dark: opacity and brightness */
@keyframes encender { from { opacity: 0; filter: brightness(0.4); } }
@keyframes asentar { from { scale: 1.08; } to { scale: 1; } }
/* Heading rising through its own mask (clip-path with final slack) */
@keyframes desvelar {
  from { clip-path: inset(0 0 100% 0); translate: 0 0.5em; }
  to { clip-path: inset(-25% -5% -25% -5%); translate: 0 0; }
}

/* Page load: 300ms fade; "backwards" retains nothing afterwards */
main { animation: fundido 0.3s ease-out backwards; }

/* Masked line: the text rises from below its own edge. The vertical
   padding (offset by a negative margin) keeps accents and descenders
   from being clipped without moving the layout. */
.mascara {
  display: block;
  overflow: hidden;
  padding: 0.12em 0;
  margin: -0.12em 0;
}
.mascara > span { display: block; }
/* Adjacent negative margins collapse into one: double it so the line gap stays exact */
.mascara + .mascara { margin-top: -0.24em; }

/* Home hero entrance (CSS only: works without JS). The heading lines rise
   through their masks, the rest fades up in sequence, the photos light up. */
.hero-insignia { animation: aparecer 0.8s var(--curva) 0.15s both; }
.hero-titular .mascara > span { animation: subir-mascara 1s var(--curva) 0.3s both; }
.hero-titular .mascara + .mascara > span { animation-delay: 0.42s; }
.hero-anuncio { animation: aparecer 0.9s var(--curva) 0.65s both; }
.hero-acciones { animation: aparecer 0.9s var(--curva) 0.78s both; }
.hero-meta { animation: aparecer 0.9s var(--curva) 0.9s both; }
.hero-controles { animation: aparecer 0.8s var(--curva) 1.1s both; }
.hero-foto { animation: encender 1.6s var(--curva) 0.2s both; }
.hero-diapositivas { animation: asentar 2.2s var(--curva) 0.2s both; }
/* Ken Burns: slow zoom on the visible photo (transform only) */
@keyframes recorrer { from { transform: scale(1); } to { transform: scale(1.1); } }
/* Progress bar of the active indicator */
@keyframes llenar { from { transform: scaleX(0); } }
/* "Próximamente" dot */
@keyframes latido { 50% { opacity: 0.3; } }

/* Scroll-linked hero: script.js writes --progreso (0-1, the hero's own scroll
   range). Three layers move at different speeds, all with composite-only
   properties: the photo stage sinks at 28% of its height (so it scrolls
   slower than the page), the slides zoom and dim, the text rises and fades.
   Each uses a different property from the entrance animations (translate /
   transform vs scale / opacity on other elements), so they never compete. */
.hero-texto {
  translate: 0 calc(var(--progreso, 0) * -72px);
  opacity: calc(1 - var(--progreso, 0) * 1.4);
}
.hero-foto { translate: 0 calc(var(--progreso, 0) * 28%); }
.hero-diapositivas {
  transform: scale(calc(1 + var(--progreso, 0) * 0.1));
  opacity: calc(1 - var(--progreso, 0) * 0.6);
}

/* Word-by-word highlight: script.js writes --luz (0–1) per word;
   without JS --luz is 1 and the text is fully lit. */
.palabra { opacity: calc(0.2 + 0.8 * var(--luz, 1)); }

/* Scroll-linked zoom on card and gallery photos (--zoom from script.js);
   the scale property composes with the hover transform. */
.tarjeta-tour .marco img,
.galeria img { scale: var(--zoom, 1); }

/* Tour cover: the photo (inherited from the inline style) settles slowly,
   drifts with scroll via --desplazar and zooms slightly via --zoom-portada
   (script.js). */
.portada-tour::after {
  content: "";
  position: absolute;
  inset: -10% 0 0;
  z-index: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  translate: 0 var(--desplazar, 0px);
  transform: scale(var(--zoom-portada, 1));
  animation: asentar 2.4s var(--curva) both;
}
.portada-tour small { animation: aparecer 0.8s var(--curva) 0.2s both; }
.portada-tour h1 { animation: desvelar 1.1s var(--curva) 0.35s both; }

/* Header: hides on scroll down and returns on scroll up (script.js) */
.cabecera.oculta { translate: 0 -100%; }
.cabecera:focus-within { translate: none; }

/* No motion: everything visible at once and in its final state */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  .revelar,
  .itinerario.revelar-grupo li { opacity: 1; transform: none; }
  .itinerario.revelar-grupo::before,
  .itinerario.revelar-grupo li::before { transform: none; }
  .revelar-mascara { opacity: 1; translate: none; }
  .pie-copy.revelar-marca::before { opacity: 1; translate: none; }
  .tarjeta-dato:hover { transform: none; translate: none; }
  .tarjeta-tour:hover img, .tarjeta-tour:focus-visible img,
  .galeria a:hover img, .galeria a:focus-visible img,
  .tarjeta-tour:hover .nombre .flecha, .tarjeta-tour:focus-visible .nombre .flecha,
  .lightbox figure, .submenu { transform: none; }
  /* Scroll-linked effects: neutralised even if variables remain written */
  .hero-texto, .hero-foto, .portada-tour::after { translate: none !important; }
  .hero-texto, .hero-diapositivas, .palabra { opacity: 1 !important; }
  .hero-diapositivas, .portada-tour::after { transform: none !important; }
  .tarjeta-tour .marco img, .galeria img { scale: none !important; }
  /* Tingo María slider: scrolls instantly (JS), no fade between photos */
  .panorama-pista { scroll-behavior: auto; }
  .panorama-pista[data-listo] .panorama-slide img, .panorama-punto span { transition: none; }
  .cabecera.oculta { translate: none; }
  /* Microinteractions: no scale on hover or press */
  .boton:hover, .boton:active, .boton-reservar:hover, .boton-reservar:active,
  .boton-menu:active, .tema-toggle:active, .tarjeta-tour:active, .panorama-flecha:active,
  .wa-flotante:active, .lightbox button:active, .hero-pausa:active { scale: none; }
  .tarjeta-tour:hover, .tarjeta-tour:focus-visible,
  .enlace:hover > span[aria-hidden], .enlace:focus-visible > span[aria-hidden] { translate: none; }
}
/* Less transparency: glass turns solid (same tones, no blur) */
@media (prefers-reduced-transparency: reduce) {
  .lightbox button, .hero-pausa { background: var(--superficie-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
