/* ==========================================================================
   TURISMO Y TRASLADOS JLJ — rediseño premium (portada)
   Mobile-first, sin frameworks. Paleta oficial JLJ (verde bosque, azul río,
   lima, crema) llevada a una dirección nocturna y cinematográfica: la selva
   de noche como base, la luz lima como acento y el crema como papel.
   admin.html y creditos.html siguen usando style.css.
   ========================================================================== */

/* ---------- Tipografías (servidas desde el propio sitio) ----------
   Las mismas Fraunces, Manrope y Poppins de Google Fonts (licencia OFL),
   subconjunto latino y solo los pesos usados: Fraunces 400–500 + cursiva 400
   (con eje óptico), Manrope 400–800 (variable), Poppins 700 (logotipo). */
@font-face {
  font-family: 'Fraunces'; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/fraunces-italic-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("../fonts/fraunces-normal-400-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/manrope-normal-400-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/poppins-normal-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* Colores oficiales (sin cambios) */
  --forest: #163C2C;
  --forest-soft: #1F5C3E;
  --river: #0E4B63;
  --river-soft: #14647F;
  --lime: #A9DE3B;
  --lime-dark: #8FC523;
  --cream: #FBF7EE;
  --cream-alt: #F2ECDC;
  --ink: #16211B;
  --ink-soft: #4B5A52;
  --white: #FFFFFF;

  /* Derivados: tonos nocturnos del verde bosque y del azul río */
  --night: #06140F;
  --night-2: #0A1D16;
  --night-3: #10291F;
  --river-night: #082A38;
  /* Fondo único de toda la página: las secciones son transparentes sobre él */
  --base: #071711;

  --on-dark: #FBF7EE;
  --on-dark-soft: rgba(251, 247, 238, 0.74);
  --on-dark-mute: rgba(251, 247, 238, 0.56);
  --glass: rgba(251, 247, 238, 0.05);
  --glass-2: rgba(251, 247, 238, 0.08);
  --glass-line: rgba(251, 247, 238, 0.12);
  --glass-line-2: rgba(251, 247, 238, 0.2);
  --lime-soft: rgba(169, 222, 59, 0.14);
  --lime-line: rgba(169, 222, 59, 0.4);
  --wa: #25D366;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --font-brand: 'Poppins', 'Manrope', 'Segoe UI', sans-serif;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
  --glow-lime: 0 0 0 1px rgba(169, 222, 59, 0.35), 0 12px 40px -12px rgba(169, 222, 59, 0.55);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container-w: 1240px;
  --gutter: 1.25rem;
  --header-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--on-dark);
  background: var(--base);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  overflow-x: clip;
}
h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.1; font-weight: 400; }
h2 {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 6.4vw, 3.9rem);
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.022em;
  color: var(--on-dark);
}
h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--on-dark-soft); }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; padding: 0; }
.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; fill: none; }
::selection { background: var(--lime); color: var(--night); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0.5rem; z-index: 400;
  background: var(--lime); color: var(--night); font-weight: 700;
  padding: 0.8em 1.2em; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 0.5rem; }

.container { width: 100%; max-width: var(--container-w); margin: 0 auto; padding: 0 var(--gutter); }
section[id] { scroll-margin-top: calc(var(--header-h) - 1px); }

/* ---------- Botones ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px;
  padding: 0.85em 1.5em;
  border-radius: var(--radius-pill);
  font-family: var(--font-body); font-weight: 700; font-size: 0.97rem; line-height: 1.2;
  text-align: center; white-space: normal;
  overflow: hidden; isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn .icon { width: 1.2em; height: 1.2em; }
.btn:active { transform: scale(0.97); }
.btn-large { min-height: 56px; padding: 1em 1.8em; font-size: 1.02rem; }
.btn-small { min-height: 44px; padding: 0.6em 1.15em; font-size: 0.9rem; }

.btn-accent { background: var(--lime); color: var(--night); }
.btn-whatsapp { background: var(--wa); color: var(--night); }
.btn-ghost {
  background: rgba(6, 20, 15, 0.28);
  color: var(--on-dark);
  border: 1px solid var(--glass-line-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
/* Brillo que cruza el botón al pasar el mouse */
.btn-accent::after, .btn-whatsapp::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
}
.btn-glow { box-shadow: var(--glow-lime); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn-accent:hover { box-shadow: 0 0 0 1px rgba(169, 222, 59, 0.5), 0 18px 50px -12px rgba(169, 222, 59, 0.7); }
  .btn-whatsapp:hover { box-shadow: 0 16px 40px -14px rgba(37, 211, 102, 0.75); }
  .btn-accent:hover::after, .btn-whatsapp:hover::after { transform: translateX(120%); }
  .btn-ghost:hover { background: rgba(251, 247, 238, 0.1); border-color: rgba(251, 247, 238, 0.45); }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: transform 0.4s var(--ease);
}
/* El fondo vidrio va en un pseudo-elemento: si backdrop-filter estuviera en
   el header, el menú móvil (position: fixed) quedaría encerrado en su caja. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(6, 20, 15, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--glass-line);
  transition: opacity 0.4s ease;
}
.site-header.is-over-hero::before { opacity: 0; }
/* Sobre la portada el encabezado es transparente; el degradado y la sombra del
   texto mantienen legible el menú aunque detrás haya espuma blanca. */
.site-header.is-over-hero {
  background: linear-gradient(180deg, rgba(6, 20, 15, 0.78) 0%, rgba(6, 20, 15, 0.45) 60%, rgba(6, 20, 15, 0) 100%);
}
.site-header.is-over-hero .main-nav ul a { text-shadow: 0 1px 12px rgba(6, 20, 15, 0.9), 0 0 2px rgba(6, 20, 15, 0.6); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 13px;
  background: linear-gradient(135deg, var(--forest), var(--river));
  box-shadow: inset 0 0 0 1px rgba(251, 247, 238, 0.14), 0 6px 18px -6px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}
.brand-mark .icon { width: 27px; height: 27px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; white-space: nowrap; }
.brand-kicker {
  font-weight: 700; font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--on-dark-mute); margin-bottom: 0.25em;
}
.brand-name { font-family: var(--font-brand); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.01em; color: var(--on-dark); }
.brand-name-accent { color: var(--lime); }

.header-actions { position: relative; z-index: 2; display: flex; align-items: center; gap: 0.4rem; }
/* En el celular, WhatsApp queda siempre visible en el encabezado como ícono:
   no tapa contenido y garantiza el contacto aunque el flotante se oculte. */
.header-whatsapp { width: 46px; height: 46px; min-height: 46px; padding: 0; border-radius: 14px; }
.header-whatsapp span {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}
.header-whatsapp .icon { width: 1.45em; height: 1.45em; }
.header-instagram, .nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px;
  color: var(--on-dark);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.header-instagram .icon, .nav-toggle .icon { width: 1.45em; height: 1.45em; }
.nav-toggle { background: var(--glass-2); border: 1px solid var(--glass-line); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Menú móvil: hoja a pantalla completa, enlaces grandes abajo (zona del pulgar) */
.main-nav {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 1rem) var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(14, 75, 99, 0.55), transparent 60%),
    radial-gradient(70% 50% at 0% 100%, rgba(169, 222, 59, 0.12), transparent 60%),
    rgba(6, 20, 15, 0.97);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.main-nav.is-open { opacity: 1; visibility: visible; transition: opacity 0.35s var(--ease); }
.main-nav ul { display: flex; flex-direction: column; }
.main-nav li {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.main-nav.is-open li { opacity: 1; transform: none; }
.main-nav.is-open li:nth-child(2) { transition-delay: 40ms; }
.main-nav.is-open li:nth-child(3) { transition-delay: 80ms; }
.main-nav.is-open li:nth-child(4) { transition-delay: 120ms; }
.main-nav.is-open li:nth-child(5) { transition-delay: 160ms; }
.main-nav.is-open li:nth-child(6) { transition-delay: 200ms; }
.main-nav.is-open li:nth-child(7) { transition-delay: 240ms; }
.main-nav ul a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; padding: 0.35em 0;
  font-family: var(--font-display); font-size: clamp(1.7rem, 7vw, 2.2rem); letter-spacing: -0.01em;
  color: var(--on-dark);
  border-bottom: 1px solid var(--glass-line);
}
.main-nav ul a.is-active { color: var(--lime); }
.nav-sheet-cta { margin-top: 1.4rem; width: 100%; min-height: 56px; }

/* ---------- Portada ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  padding-top: calc(var(--header-h) + 2rem);
}
.hero-media { position: absolute; inset: -4% 0 0; z-index: -3; will-change: transform; }
/* V4.1 (rendimiento): la foto se pinta visible desde el primer cuadro (antes
   partía de opacidad 0 y el navegador no la contaba como LCP hasta que
   aparecía). La entrada cinematográfica la dan un acercamiento suave y un velo
   oscuro que se disipa por encima: la foto ya está pintada debajo. */
.hero-photo {
  width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%;
  animation: hero-zoom 2.8s var(--ease) both;
}
@keyframes hero-zoom {
  from { transform: scale(1.1); }
  to { transform: scale(1.03); }
}
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--base);
  animation: hero-veil 1.1s ease-out both;
}
@keyframes hero-veil { from { opacity: 0.6; } to { opacity: 0; } }
/* Los navegadores sin soporte usan el JPG; picture no genera caja propia */
picture { display: contents; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(130% 75% at 0% 100%, rgba(6, 20, 15, 0.85) 0%, rgba(6, 20, 15, 0.45) 45%, transparent 75%),
    linear-gradient(180deg, rgba(6, 20, 15, 0.55) 0%, rgba(6, 20, 15, 0.05) 24%, rgba(6, 20, 15, 0.3) 55%, var(--base) 100%);
}
/* Bruma de color: tiñe el agua blanca con el azul río y deja un halo lima muy suave */
.hero-mist {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 45% at 85% 18%, rgba(169, 222, 59, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(14, 75, 99, 0.28), rgba(14, 75, 99, 0) 55%);
  mix-blend-mode: normal;
}
.hero-inner { padding-bottom: clamp(2.5rem, 7vh, 4.5rem); }

/* Título y texto principal: visibles desde el primer cuadro, solo se deslizan.
   Etiqueta, botones y franja: aparecen con un fundido corto. */
.hero-in { animation: rise-in 0.8s var(--ease) both; animation-delay: calc(var(--in, 0) * 70ms + 80ms); }
.hero-title .hero-in, .hero-sub.hero-in { animation-name: hero-rise; animation-delay: calc(var(--in, 0) * 50ms); }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-rise {
  from { transform: translateY(16px); }
  to { transform: none; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em; flex-wrap: wrap;
  margin: 0 0 1.4rem; padding: 0.45em 0.95em 0.45em 0.8em;
  border-radius: var(--radius-pill);
  background: rgba(6, 20, 15, 0.42);
  border: 1px solid var(--glass-line-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-dark);
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 4px rgba(169, 222, 59, 0.2), 0 0 14px rgba(169, 222, 59, 0.9);
}
.eyebrow-coords { color: var(--lime); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }

.hero-title { margin: 0 0 1.2rem; }
.hero-brand {
  display: block; margin-bottom: 0.9rem;
  font-family: var(--font-body); font-weight: 700; font-size: clamp(0.82rem, 2.4vw, 0.95rem);
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--on-dark-soft);
  text-shadow: 0 1px 10px rgba(6, 20, 15, 0.7);
}
.hero-line {
  display: block;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.9rem, 11.5vw, 6.6rem);
  font-variation-settings: "opsz" 144;
  line-height: 0.98; letter-spacing: -0.035em;
  color: var(--on-dark);
  text-shadow: 0 2px 30px rgba(6, 20, 15, 0.35);
}
.hero-line--em em { font-style: italic; color: var(--lime); }
.hero-sub { max-width: 52ch; font-size: clamp(1rem, 2.6vw, 1.12rem); color: rgba(251, 247, 238, 0.9); margin-bottom: 1.8rem; text-shadow: 0 1px 14px rgba(6, 20, 15, 0.75), 0 0 2px rgba(6, 20, 15, 0.5); }
.hero-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.hero-actions .btn { width: 100%; }

.hero-strip {
  display: grid; gap: 0.5rem;
  margin-top: 2rem; padding-top: 1.4rem;
  border-top: 1px solid var(--glass-line);
}
.hero-strip li { display: flex; align-items: center; gap: 0.7rem; font-size: 0.92rem; font-weight: 600; color: var(--on-dark-soft); }
.hero-strip .icon { width: 1.25em; height: 1.25em; color: var(--lime); }

.hero-credit {
  position: absolute; left: var(--gutter); bottom: 0.6rem; margin: 0;
  font-size: 0.66rem; letter-spacing: 0.04em; color: var(--on-dark-mute);
}
.hero-scroll { display: none; }

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
/* Continuidad: ninguna sección tiene color de fondo propio. Todas son
   transparentes sobre --base y solo suman luces ambientales (azul río o verde
   bosque) centradas dentro de la sección, que se apagan antes de sus bordes:
   así no hay cortes de color entre una sección y la siguiente. */
.section-dark, .section-host, .contact-section { background: transparent; }
#destinos { background: radial-gradient(45% 30% at 88% 45%, rgba(14, 75, 99, 0.22), transparent 100%); }
#videos { background: radial-gradient(40% 32% at 8% 50%, rgba(22, 60, 44, 0.5), transparent 100%); }
#servicios { background: radial-gradient(42% 32% at 92% 50%, rgba(14, 75, 99, 0.18), transparent 100%); }
#flota { background: radial-gradient(48% 34% at 50% 55%, rgba(22, 60, 44, 0.45), transparent 100%); }
#opiniones { background: radial-gradient(40% 30% at 90% 40%, rgba(14, 75, 99, 0.2), transparent 100%); }

.section-head { max-width: 760px; margin-bottom: clamp(1.5rem, 3.5vw, 2.25rem); }
.section-head .section-lead { margin-bottom: 0; }
.section-index {
  display: flex; align-items: center; gap: 0.8em;
  margin-bottom: 1.1rem;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--on-dark-mute);
}
.section-index { flex-wrap: wrap; row-gap: 0.3em; line-height: 1.4; }
.section-index span { color: var(--lime); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 0.8em; }
.section-index span::after { content: ""; width: 2.4rem; height: 1px; background: var(--lime-line); }
.section-lead { font-size: clamp(1.02rem, 2.4vw, 1.15rem); max-width: 58ch; }
.section-tagline { color: var(--on-dark); font-weight: 600; }

/* ---------- Datos curiosos ---------- */
.fun-facts-strip { display: grid; gap: 0.75rem; margin-bottom: 2.2rem; }
.fun-fact {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--glass-line);
}
.fun-fact-num {
  font-family: var(--font-display); font-size: 2.3rem; line-height: 1; letter-spacing: -0.03em;
  color: var(--lime); white-space: nowrap;
}
.fun-fact-label { font-size: 0.92rem; color: var(--on-dark-soft); line-height: 1.45; }

/* ---------- Destinos: carriles y tarjetas ---------- */
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.destinations-featured-label {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.45em 0.9em; border-radius: var(--radius-pill);
  background: var(--lime-soft); border: 1px solid var(--lime-line);
  color: var(--lime); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.destinations-subhead {
  margin: 0; font-family: var(--font-display); font-size: 1.5rem; color: var(--on-dark); letter-spacing: -0.01em;
}
.rail-controls { display: none; gap: 0.5rem; }
.rail-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--glass-line-2); background: var(--glass);
  color: var(--on-dark);
  transition: background-color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}
.rail-btn .icon { width: 1.2em; height: 1.2em; }
.rail-next .icon { transform: rotate(180deg); }
.rail-btn:disabled { opacity: 0.3; cursor: default; }
.rail-btn:not(:disabled):hover { background: var(--lime); border-color: var(--lime); color: var(--night); }

.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%;
  gap: 0.9rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  margin: 0 calc(var(--gutter) * -1) 2rem; padding: 0.25rem var(--gutter) 0.75rem;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

.destination-card {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--night-3);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--glass-line);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.destination-photo {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease), filter 0.8s ease;
}
.destination-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6, 20, 15, 0.12) 0%, rgba(6, 20, 15, 0) 22%, rgba(6, 20, 15, 0.72) 52%, rgba(6, 20, 15, 0.96) 100%);
}
/* Luz que sigue al puntero (variables --mx/--my desde premium.js) */
.destination-card::after, .service-card::after, .fleet-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(169, 222, 59, 0.16), transparent 42%);
  opacity: 0; transition: opacity 0.4s ease;
}
/* Sin position: la bandera se ubica respecto a la tarjeta; el texto queda
   por encima de la foto y del degradé porque estos usan z-index negativo. */
.destination-info { padding: 1.25rem 1.2rem 1.2rem; }
.destination-card::after { z-index: -1; }
.service-card > *, .fleet-card > * { position: relative; z-index: 1; }
.destination-actions { position: relative; z-index: 1; }
.destination-flag {
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(6, 20, 15, 0.45); border: 1px solid var(--glass-line-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 1.2rem; line-height: 1;
}
.destination-info h3 { margin-bottom: 0.3em; font-size: 1.42rem; line-height: 1.12; color: var(--on-dark); }
.destination-info p {
  margin-bottom: 1rem; font-size: 0.92rem; line-height: 1.45; color: rgba(251, 247, 238, 0.8);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.destination-actions { display: flex; gap: 0.5rem; }
.destination-more, .destination-consult {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45em;
  min-height: 44px; padding: 0.55em 1em;
  border-radius: var(--radius-pill);
  font-size: 0.88rem; font-weight: 700;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}
.destination-more {
  flex: 1;
  color: var(--on-dark);
  background: rgba(251, 247, 238, 0.1); border: 1px solid var(--glass-line-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.destination-more .icon { transition: transform 0.35s var(--ease); }
.destination-consult { flex: 1; background: var(--lime); color: var(--night); }
.destination-more:active, .destination-consult:active { transform: scale(0.96); }
.destination-card:active { transform: scale(0.99); }

@media (hover: hover) and (pointer: fine) {
  .destination-card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(169, 222, 59, 0.35), var(--shadow-lg); }
  .destination-card:hover .destination-photo { transform: scale(1.07); }
  .destination-card:hover::after, .service-card:hover::after, .fleet-card:hover::after { opacity: 1; }
  .destination-card:hover .destination-more .icon { transform: translateX(3px); }
  .destination-more:hover { background: rgba(251, 247, 238, 0.2); }
  .destination-consult:hover { background: #BBE85A; }
}

/* ---------- Dato útil (coatí) ---------- */
.wildlife-tip {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1rem 1.2rem 1rem 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(169, 222, 59, 0.1), rgba(14, 75, 99, 0.18));
  border: 1px solid var(--glass-line);
}
.wildlife-tip-photo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 3px rgba(169, 222, 59, 0.35); }
.wildlife-tip-text { margin: 0; font-size: 0.93rem; line-height: 1.55; }
.wildlife-tip-text strong, .fact-callout-text strong { color: var(--lime); }

/* ---------- CTA intermedio ---------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(3.75rem, 9vw, 6rem) 0;
  background: transparent;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--base) center 40% / cover no-repeat;
}
/* La foto se pide recién cuando el bloque se acerca a la pantalla (premium.js) */
html:not(.js) .cta-band::before, .cta-band.is-near::before {
  background-image: url("../img/cataratas-argentina-2.jpg");
  background-image: image-set(url("../img/opt/cataratas-argentina-2-1000.webp") type("image/webp"), url("../img/cataratas-argentina-2.jpg") type("image/jpeg"));
}
@media (max-width: 767px) {
  html:not(.js) .cta-band::before, .cta-band.is-near::before {
    background-image: image-set(url("../img/opt/cataratas-argentina-2-800.webp") type("image/webp"), url("../img/cataratas-argentina-2.jpg") type("image/jpeg"));
  }
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, var(--base) 0%, rgba(7, 23, 17, 0.6) 28%, rgba(7, 23, 17, 0.6) 72%, var(--base) 100%),
    linear-gradient(90deg, rgba(7, 23, 17, 0.85), rgba(7, 23, 17, 0.35));
}
.cta-inner { max-width: 720px; }
.cta-band h2 { font-size: clamp(2rem, 6vw, 3.4rem); }
.cta-band p { color: rgba(251, 247, 238, 0.86); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-actions { display: flex; flex-direction: column; gap: 0.75rem; }

/* ---------- Videos ---------- */
.fact-callout {
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--glass); border: 1px solid var(--glass-line);
  border-left: 3px solid var(--lime);
}
.fact-callout .icon { width: 1.5em; height: 1.5em; color: var(--lime); margin-top: 0.1em; }
.fact-callout-text { margin: 0; font-size: 0.94rem; }
.fact-callout--top { margin-bottom: 1.75rem; }
.fact-callout--bottom { margin-top: 1.5rem; }

.video-links-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 0.85rem; }
.video-link-card { position: relative; display: flex; flex-direction: column; gap: 0.6rem; border-radius: var(--radius-md); }
.video-link-card--more[hidden] { display: none; }
.video-thumb {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 10; border-radius: var(--radius-md);
  background: var(--night-3);
  box-shadow: inset 0 0 0 1px var(--glass-line);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.video-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 20, 15, 0.55));
}
.video-play .icon {
  width: 2.8rem; height: 2.8rem; color: var(--white);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  transition: transform 0.4s var(--ease), color 0.3s ease;
}
.video-link-title { font-size: 0.88rem; font-weight: 600; line-height: 1.35; color: var(--on-dark-soft); }
.video-link-card:active .video-thumb { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .video-link-card:hover .video-thumb img { transform: scale(1.06); }
  .video-link-card:hover .video-play .icon { transform: scale(1.12); color: var(--lime); }
  .video-link-card:hover .video-link-title { color: var(--on-dark); }
}
.video-toggle { display: flex; margin: 1.6rem auto 0; }
.video-toggle .icon { transform: rotate(-90deg); transition: transform 0.35s var(--ease); }
.video-toggle[aria-expanded="true"] .icon { transform: rotate(90deg); }

/* ---------- Servicios ---------- */
/* Servicios como lista editorial (líneas finas, sin cajas), para no repetir
   el mismo formato de tarjeta de Destinos y Vehículos. */
.services-grid { display: grid; gap: 0; }
.service-card {
  position: relative;
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0.2rem 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--glass-line);
}
.service-card:last-child { border-bottom: 1px solid var(--glass-line); }
.service-card::after { display: none; }
.service-icon {
  grid-row: span 3;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--lime);
  box-shadow: inset 0 0 0 1px var(--lime-line);
}
.service-icon .icon { width: 1.35em; height: 1.35em; }
.service-card h3 { font-size: 1.35rem; color: var(--on-dark); margin-bottom: 0.3em; }
.service-card p { font-size: 0.95rem; margin-bottom: 0.9rem; }
.service-card .service-cta {
  justify-self: start;
  background: transparent; color: var(--on-dark);
  border: 1px solid var(--glass-line-2);
}
.service-card .service-cta .icon { color: var(--wa); }
.service-card .service-cta::after { display: none; }
@media (hover: hover) and (pointer: fine) {
  .service-card .service-cta:hover { border-color: var(--wa); box-shadow: none; }
}

/* ---------- Vehículos ---------- */
.fleet-grid { display: grid; gap: 1.1rem; }
.fleet-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(251, 247, 238, 0.03);
  border: 1px solid var(--glass-line);
}
.fleet-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--night-3); }
.fleet-carousel-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.2s ease, transform 6s linear;
}
.fleet-carousel-photo.is-active { opacity: 1; transform: scale(1); }
.fleet-media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(7, 23, 17, 0.85));
  pointer-events: none;
}
.fleet-carousel-dots { position: absolute; z-index: 2; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.4rem; }
.fleet-dot { width: 22px; height: 3px; border-radius: 3px; background: rgba(251, 247, 238, 0.35); transition: background-color 0.4s ease, width 0.4s var(--ease); }
.fleet-dot.is-active { background: var(--lime); width: 34px; }
.fleet-info { position: relative; z-index: 2; padding: 1.4rem 1.4rem 1.7rem; }
.fleet-badge {
  display: inline-flex; align-items: center; gap: 0.5em;
  margin-bottom: 0.9rem; padding: 0.4em 0.85em;
  border-radius: var(--radius-pill);
  background: var(--lime-soft); border: 1px solid var(--lime-line);
  color: var(--lime); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em;
}
.fleet-badge .icon { width: 1.15em; height: 1.15em; }
.fleet-info h3 { font-size: clamp(1.7rem, 4.5vw, 2.2rem); color: var(--on-dark); margin-bottom: 0.35em; }
.fleet-info p { margin: 0; font-size: 0.97rem; }

/* ---------- José Luis: verde bosque profundo ----------
   Misma base oscura; la luz ambiental es verde bosque y se concentra detrás
   del retrato, como un foco de estudio en la selva. */
.section-host {
  background:
    radial-gradient(38% 34% at 24% 50%, rgba(31, 92, 62, 0.42), transparent 100%),
    radial-gradient(34% 30% at 80% 45%, rgba(22, 60, 44, 0.5), transparent 100%);
}
.host-layout { display: grid; gap: 1.75rem; align-items: center; }
/* Retrato: la foto original tal cual (sin recortes, filtros ni capas encima),
   dentro de un marco translúcido con bordes redondeados. Se muestra en su
   proporción real (3:2), lo que además la mantiene baja en el celular. */
.host-portrait {
  position: relative; margin: 0 auto; width: 100%; max-width: 560px;
  padding: 0.55rem;
  border-radius: calc(var(--radius-xl) + 0.55rem);
  background: rgba(251, 247, 238, 0.04);
  border: 1px solid var(--glass-line);
  box-shadow: 0 30px 70px -35px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(169, 222, 59, 0.06);
}
.host-photo { border-radius: var(--radius-xl); overflow: hidden; }
.host-portrait img { width: 100%; height: auto; }
.host-portrait figcaption { display: flex; padding: 0.75rem 0.35rem 0.2rem; }
.fleet-badge--light { margin: 0; }
.host-copy h2 { margin-bottom: 0.4em; }
.host-lead {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.25rem, 3.4vw, 1.6rem); line-height: 1.35; letter-spacing: -0.01em;
  color: var(--on-dark);
}
/* Panel translúcido único con la lista (en vez de seis tarjetas iguales) */
.trust-grid {
  display: grid; gap: 0 1.6rem; margin: 1.4rem 0 1.6rem;
  padding: 0.4rem 1.3rem;
  border-radius: var(--radius-lg);
  background: rgba(251, 247, 238, 0.04);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.trust-grid li {
  display: flex; align-items: center; gap: 0.75rem;
  min-height: 48px; padding: 0.55rem 0;
  border-bottom: 1px solid var(--glass-line);
  font-weight: 600; font-size: 0.93rem; line-height: 1.35; color: var(--on-dark);
}
.trust-grid li:last-child { border-bottom: 0; }
.trust-grid .icon { width: 1.45em; height: 1.45em; color: var(--lime); }
.host-copy .fleet-whatsapp { width: 100%; }

/* ---------- Opiniones ---------- */
.reviews-layout { display: grid; gap: 1.2rem; align-items: start; }
.reviews-stack { display: grid; gap: 1rem; }
.reviews-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 2.6rem 1.6rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(169, 222, 59, 0.12), transparent 70%),
    var(--glass);
  border: 1px solid var(--glass-line);
}
.reviews-empty[hidden] { display: none; }
.reviews-empty-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin-bottom: 1.1rem; border-radius: 50%;
  color: var(--lime); background: var(--lime-soft);
  box-shadow: inset 0 0 0 1px var(--lime-line), 0 0 40px -6px rgba(169, 222, 59, 0.55);
}
.reviews-empty-icon .icon { width: 1.8em; height: 1.8em; }
.reviews-empty h3 { font-size: 1.5rem; color: var(--on-dark); margin-bottom: 0.35em; }
.reviews-empty p { margin: 0; max-width: 34ch; font-size: 0.95rem; }

.reviews-list { display: grid; gap: 0.9rem; }
.reviews-list.is-collapsed .review-card:nth-child(n + 5) { display: none; }
.reviews-toggle { justify-self: center; margin-top: 0.4rem; }
.reviews-toggle[hidden] { display: none; }
.reviews-list[hidden] { display: none; }
.review-card {
  position: relative;
  padding: 1.4rem 1.4rem 1.3rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(251, 247, 238, 0.08), rgba(251, 247, 238, 0.025));
  border: 1px solid var(--glass-line);
}
.review-card::before {
  content: "\201C"; position: absolute; top: 0.2rem; right: 1.1rem;
  font-family: var(--font-display); font-size: 4.5rem; line-height: 1; color: rgba(169, 222, 59, 0.25);
}
.review-card-stars { display: flex; gap: 0.15em; color: rgba(251, 247, 238, 0.2); margin-bottom: 0.75rem; }
.review-card-stars .icon { width: 1.05em; height: 1.05em; }
.review-card-stars .icon.is-filled { color: var(--lime); }
.review-card-text { color: var(--on-dark); font-size: 1rem; line-height: 1.6; margin: 0 0 0.9rem; }
.review-card-name { margin: 0; font-weight: 700; font-size: 0.88rem; letter-spacing: 0.04em; color: var(--lime); }

.review-form {
  padding: 1.6rem 1.3rem;
  border-radius: var(--radius-lg);
  background: rgba(6, 20, 15, 0.55);
  border: 1px solid var(--glass-line);
}
.review-form h3 { font-size: 1.6rem; color: var(--on-dark); margin-bottom: 1.2rem; }
.review-form-field { margin-bottom: 1.15rem; }
.review-form-label { display: block; margin-bottom: 0.45rem; font-size: 0.86rem; font-weight: 700; color: var(--on-dark); }
.review-form-input,
.planner select, .planner input, .planner textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.8em 1em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-line-2);
  background: rgba(251, 247, 238, 0.06);
  color: var(--on-dark);
  font-size: 1rem; /* 16px: evita el zoom automático de iOS al enfocar */
  color-scheme: dark;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
textarea.review-form-input, .planner textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.review-form-input::placeholder, .planner textarea::placeholder { color: rgba(251, 247, 238, 0.45); }
.review-form-input:focus,
.planner select:focus, .planner input:focus, .planner textarea:focus {
  outline: none;
  border-color: var(--lime);
  background: rgba(251, 247, 238, 0.09);
  box-shadow: 0 0 0 4px rgba(169, 222, 59, 0.18);
}
.star-rating { display: inline-flex; gap: 0.15rem; }
.star-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  color: rgba(251, 247, 238, 0.22);
  transition: color 0.2s ease, transform 0.25s var(--ease);
}
.star-btn .icon { width: 1.75em; height: 1.75em; }
.star-btn.is-filled { color: var(--lime); }
.star-btn.is-filled .icon { filter: drop-shadow(0 0 8px rgba(169, 222, 59, 0.55)); }
.star-btn:active { transform: scale(0.88); }
@media (hover: hover) and (pointer: fine) { .star-btn:hover { transform: scale(1.1); } }
.review-form .review-instagram-note { margin: 0.5rem 0; font-size: 0.84rem; color: var(--on-dark-mute); }
.review-form .review-save-status { margin: 0.6rem 0; font-size: 0.92rem; color: var(--lime); }
.review-form .review-save-status:empty { margin: 0; }
.review-form-error { margin: 0.4rem 0 0.9rem; font-weight: 600; font-size: 0.92rem; color: #FFB4A3; }
.review-form-error[hidden] { display: none; }
.review-form-submit { width: 100%; margin-top: 0.4rem; }
.review-form-note { margin: 0.9rem 0 0; font-size: 0.82rem; color: var(--on-dark-mute); line-height: 1.5; }

/* ---------- Contacto / planificador ---------- */
.contact-section {
  overflow: hidden; isolation: isolate;
  background: radial-gradient(45% 35% at 20% 55%, rgba(14, 75, 99, 0.28), transparent 100%);
}
.contact-glow {
  position: absolute; z-index: -1; pointer-events: none;
  width: 60vmax; height: 60vmax; right: -18vmax; top: 10%;
  background: radial-gradient(circle, rgba(169, 222, 59, 0.09), transparent 62%);
}
.contact-layout { display: grid; gap: 2.4rem; align-items: start; }
.contact-steps { display: grid; gap: 0.85rem; margin: 1.6rem 0 2rem; counter-reset: none; }
.contact-steps li { display: flex; align-items: center; gap: 0.85rem; font-weight: 600; color: var(--on-dark); font-size: 0.97rem; }
.contact-steps span {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--lime-line); color: var(--lime);
  font-weight: 800; font-size: 0.88rem;
}
.contact-direct {
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 48px; padding: 0.4em 0;
  font-weight: 700; color: var(--on-dark);
  border-bottom: 1px solid var(--lime-line);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.contact-direct .icon { width: 1.3em; height: 1.3em; color: var(--wa); }
.contact-direct:hover { color: var(--lime); border-color: var(--lime); }

.planner {
  position: relative;
  padding: 1.4rem 1.2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(251, 247, 238, 0.09), rgba(251, 247, 238, 0.03));
  border: 1px solid var(--glass-line-2);
  box-shadow: var(--shadow-lg);
}
.planner { scroll-margin-top: calc(var(--header-h) + 1rem); }
.planner.is-highlighted { animation: planner-pulse 1.6s var(--ease); }
@keyframes planner-pulse {
  0% { box-shadow: 0 0 0 0 rgba(169, 222, 59, 0.6), var(--shadow-lg); }
  100% { box-shadow: 0 0 0 18px rgba(169, 222, 59, 0), var(--shadow-lg); }
}
.planner-field { margin-bottom: 1.1rem; min-width: 0; }
.planner-field > label {
  display: flex; align-items: center; gap: 0.5em;
  margin-bottom: 0.5rem; font-size: 0.86rem; font-weight: 700; color: var(--on-dark);
}
.planner-field > label .icon { color: var(--lime); width: 1.15em; height: 1.15em; }
.planner-optional { font-weight: 500; color: var(--on-dark-mute); }
.planner select {
  appearance: none; -webkit-appearance: none;
  padding-right: 2.8em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23A9DE3B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1em center; background-size: 1.1em;
}
.planner select option, .planner select optgroup { background: var(--night-2); color: var(--on-dark); }
.planner-row { display: grid; gap: 0 0.8rem; grid-template-columns: minmax(0, 1fr); }
.stepper { display: grid; grid-template-columns: 50px minmax(0, 1fr) 50px; gap: 0.4rem; }
.stepper input { text-align: center; font-weight: 700; -moz-appearance: textfield; appearance: textfield; padding-left: 0.4em; padding-right: 0.4em; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; border-radius: var(--radius-sm);
  background: var(--glass-2); border: 1px solid var(--glass-line-2); color: var(--on-dark);
  transition: background-color 0.2s ease, transform 0.2s var(--ease), color 0.2s ease;
}
.stepper-btn:active { transform: scale(0.92); background: var(--lime); color: var(--night); }
@media (hover: hover) and (pointer: fine) { .stepper-btn:hover { border-color: var(--lime); color: var(--lime); } }

.planner-preview { margin: 0.4rem 0 1.2rem; }
.planner-preview-label {
  display: block; margin-bottom: 0.5rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-mute);
}
.planner-bubble {
  position: relative; margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 4px 16px 16px 16px;
  background: rgba(37, 211, 102, 0.1); border: 1px solid rgba(37, 211, 102, 0.3);
  color: var(--on-dark); font-size: 0.9rem; line-height: 1.55;
  white-space: pre-line; overflow-wrap: anywhere;
}
.planner-submit { width: 100%; }
.planner-note { margin: 0.9rem 0 0; font-size: 0.82rem; color: var(--on-dark-mute); line-height: 1.5; text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding: 2.75rem 0 calc(6rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(4, 13, 10, 0.6));
}
.footer-inner { display: grid; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.9rem; }
.footer-name { margin: 0; font-family: var(--font-display); font-size: 1.3rem; color: var(--on-dark); }
.footer-location { display: flex; align-items: center; gap: 0.4em; margin: 0.2rem 0 0; font-size: 0.9rem; color: var(--on-dark-mute); }
.footer-location .icon { color: var(--lime); }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.2rem 1rem; }
.footer-links a { display: flex; align-items: center; min-height: 44px; white-space: nowrap; color: var(--on-dark-soft); font-size: 0.95rem; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--lime); }
.footer-actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.footer-whatsapp {
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 48px; padding: 0.6em 1.15em;
  border-radius: var(--radius-pill);
  background: var(--glass-2); border: 1px solid var(--glass-line);
  font-weight: 700; font-variant-numeric: tabular-nums;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.footer-whatsapp .icon { width: 1.3em; height: 1.3em; color: var(--wa); }
.footer-instagram {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--glass-2); border: 1px solid var(--glass-line);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.footer-instagram .icon { width: 1.35em; height: 1.35em; }
.footer-whatsapp:hover, .footer-instagram:hover { border-color: var(--lime); color: var(--lime); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--glass-line); }
.footer-bottom p { margin: 0; font-size: 0.82rem; color: var(--on-dark-mute); }
.footer-bottom a { display: inline-block; padding: 0.85rem 0; margin: -0.85rem 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed; z-index: 90;
  right: calc(1rem + env(safe-area-inset-right));
  bottom: calc(1rem + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: var(--night);
  box-shadow: 0 14px 34px -10px rgba(37, 211, 102, 0.7), 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s var(--ease);
}
.whatsapp-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid var(--wa);
  animation: wa-ring 2.4s var(--ease) 2.5s 3;
  opacity: 0;
}
@keyframes wa-ring { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.6); opacity: 0; } }
.whatsapp-float .icon { width: 1.9em; height: 1.9em; }
.whatsapp-float:active { transform: scale(0.92); }
/* premium.js lo oculta cuando taparía un botón, un campo o una tarjeta, cuando
   hay otro botón de WhatsApp a la vista (portada, bloque intermedio, contacto,
   pie) y mientras el menú móvil, el modal o el teclado están abiertos. */
.whatsapp-float { transition: transform 0.35s var(--ease), opacity 0.25s ease, visibility 0s linear 0s; }
.whatsapp-float.is-hidden {
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(12px) scale(0.9);
  transition: transform 0.3s var(--ease), opacity 0.2s ease, visibility 0s linear 0.3s;
}
@media (hover: hover) and (pointer: fine) { .whatsapp-float:hover { transform: translateY(-3px) scale(1.04); } }

/* ---------- Animaciones al hacer scroll (reveal, activado por main.js) ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Las tarjetas de destino tienen su propia transición de hover: se combinan */
.js .destination-card.reveal { transition: opacity 0.9s var(--ease) var(--reveal-delay, 0ms), transform 0.9s var(--ease) var(--reveal-delay, 0ms), box-shadow 0.6s var(--ease); }
.js .destination-card.reveal.is-visible { transition: opacity 0.9s var(--ease) var(--reveal-delay, 0ms), transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }

/* ---------- Modal de destino ---------- */
.dest-modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: flex-end; justify-content: center;
}
.dest-modal[hidden] { display: none; }
.dest-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(3, 10, 8, 0.78);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.3s ease;
}
.dest-modal.is-open .dest-modal-backdrop { opacity: 1; }
.dest-modal-panel {
  position: relative; width: 100%; max-width: 760px;
  max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--night-2);
  border: 1px solid var(--glass-line); border-bottom: 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(40px); opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.3s ease;
}
.dest-modal.is-open .dest-modal-panel { transform: none; opacity: 1; }
.dest-modal-close {
  position: absolute; top: 0.8rem; right: 0.8rem; z-index: 3;
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(6, 20, 15, 0.6); color: var(--on-dark);
  border: 1px solid var(--glass-line-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.dest-modal-close .icon { width: 1.25em; height: 1.25em; }
.dest-modal-carousel { position: relative; aspect-ratio: 4 / 3; background: var(--night-3); }
.dest-modal-photo { width: 100%; height: 100%; object-fit: cover; }
.dest-modal-carousel::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 35%; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--night-2));
}
.dest-carousel-btn {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(6, 20, 15, 0.55); color: var(--on-dark);
  border: 1px solid var(--glass-line-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.dest-carousel-btn[hidden] { display: none; }
.dest-carousel-prev { left: 0.8rem; }
.dest-carousel-next { right: 0.8rem; }
.dest-carousel-next .icon { transform: rotate(180deg); }
.dest-carousel-dots { position: absolute; z-index: 2; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.25rem; }
.dest-dot { position: relative; width: 28px; height: 28px; }
.dest-dot::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 18px; height: 3px; border-radius: 3px; background: rgba(251, 247, 238, 0.4);
  transition: background-color 0.3s ease, width 0.3s var(--ease);
}
.dest-dot.is-active::before { background: var(--lime); width: 28px; }
.dest-modal-body { padding: 0.4rem 1.4rem calc(1.8rem + env(safe-area-inset-bottom)); }
.dest-modal-flag { display: block; font-size: 1.5rem; margin-bottom: 0.3rem; }
.dest-modal-body h3 { font-size: clamp(1.8rem, 6vw, 2.4rem); color: var(--on-dark); margin-bottom: 0.5rem; }
.dest-modal-distance { display: flex; align-items: flex-start; gap: 0.5em; font-size: 0.92rem; font-weight: 600; color: var(--lime); }
.dest-modal-distance .icon { width: 1.15em; height: 1.15em; margin-top: 0.2em; }
.dest-modal-desc { font-size: 0.98rem; line-height: 1.65; }
.dest-modal-fact {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 1rem 1.1rem; margin-bottom: 1.4rem;
  border-radius: var(--radius-md);
  background: var(--glass); border: 1px solid var(--glass-line); border-left: 3px solid var(--lime);
  font-size: 0.92rem;
}
.dest-modal-fact[hidden] { display: none; }
.dest-modal-fact .icon { width: 1.3em; height: 1.3em; color: var(--lime); margin-top: 0.1em; }
.dest-modal-fact strong { color: var(--lime); }
#dest-modal-whatsapp { width: 100%; min-height: 56px; }
.dest-modal-price-note { margin: 0.8rem 0 0; text-align: center; font-size: 0.84rem; color: var(--on-dark-mute); }

@media (max-width: 359px) {
  .brand-kicker { display: none; }
  .eyebrow-coords { display: none; }
  .header-instagram { width: 44px; }
  .header-actions { gap: 0.25rem; }
}

/* ==========================================================================
   Tablet (≥ 600px)
   ========================================================================== */
@media (min-width: 600px) {
  :root { --gutter: 1.75rem; }
  .brand-kicker { display: block; }
  .hero-actions, .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-actions .btn { width: auto; }
  .hero-strip { grid-template-columns: repeat(3, auto); justify-content: start; gap: 0.6rem 2rem; }
  .fun-facts-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail { grid-auto-columns: 46%; }
  .video-links-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; border-bottom: 1px solid var(--glass-line); }
  .service-card:last-child { border-bottom: 0; }
  .trust-grid li:nth-last-child(2) { border-bottom: 0; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .host-copy .fleet-whatsapp { width: auto; }
  .planner { padding: 2rem 1.8rem; }
  .planner-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .review-form { padding: 2rem 1.8rem; }
  .footer-links { grid-template-columns: repeat(4, auto); justify-content: start; }
  .dest-modal { align-items: center; padding: 1.5rem; }
  .dest-modal-panel { border-radius: var(--radius-xl); border-bottom: 1px solid var(--glass-line); transform: translateY(24px) scale(0.98); }
  .dest-modal-carousel { aspect-ratio: 16 / 9; }
  .dest-modal-body { padding: 0.4rem 2rem 2rem; }
}

@media (min-width: 768px) {
  .header-whatsapp { width: auto; height: auto; min-height: 44px; padding: 0.6em 1.15em; border-radius: var(--radius-pill); }
  .header-whatsapp span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .header-whatsapp .icon { width: 1.2em; height: 1.2em; }
  /* Desde tablet el encabezado fijo ya muestra WhatsApp: el flotante sobraría */
  .whatsapp-float { display: none; }
  .rail-controls[data-scrollable] { display: flex; }
}

/* ==========================================================================
   Escritorio (≥ 1024px)
   ========================================================================== */
@media (min-width: 1024px) {
  :root { --gutter: 2.5rem; --header-h: 80px; }

  .nav-toggle, .nav-home, .nav-sheet-cta { display: none; }
  .main-nav {
    position: static; inset: auto; z-index: auto;
    display: block; padding: 0; background: none;
    opacity: 1; visibility: visible;
  }
  .main-nav ul { flex-direction: row; gap: 0.3rem; }
  .main-nav li { opacity: 1; transform: none; }
  .main-nav ul a {
    position: relative; min-height: 44px; padding: 0 0.85rem;
    font-family: var(--font-body); font-size: 0.92rem; font-weight: 600; letter-spacing: 0.01em;
    color: var(--on-dark-soft); border: 0; white-space: nowrap;
    transition: color 0.25s ease;
  }
  .main-nav ul a::after {
    content: ""; position: absolute; left: 50%; bottom: 6px;
    width: 4px; height: 4px; border-radius: 50%; background: var(--lime);
    transform: translateX(-50%) scale(0); transition: transform 0.35s var(--ease);
  }
  .main-nav ul a:hover { color: var(--on-dark); }
  .main-nav ul a.is-active { color: var(--on-dark); }
  .main-nav ul a.is-active::after, .main-nav ul a:hover::after { transform: translateX(-50%) scale(1); }

  .hero-inner { padding-bottom: 5.5rem; }
  .hero-line { font-size: clamp(4.5rem, 7.4vw, 7rem); }
  .hero-scroll {
    display: block; position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
    width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid rgba(251, 247, 238, 0.45);
  }
  .hero-scroll span {
    position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
    border-radius: 2px; background: var(--lime);
    animation: scroll-dot 2.2s var(--ease) infinite;
  }
  @keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

  /* Destacados: mosaico (1 grande + 4) en lugar de carril */
  .destinations-grid--primary {
    display: grid; grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 270px;
    gap: 1rem;
    overflow: visible; margin: 0 0 2.75rem; padding: 0;
  }
  .destinations-grid--primary .destination-card { aspect-ratio: auto; }
  .destination-card--hero { grid-column: span 2; grid-row: span 2; }
  .destination-card--hero .destination-info { padding: 2rem; }
  .destination-card--hero h3 { font-size: 2.4rem; }
  .destination-card--hero p { font-size: 1.02rem; }
  .destination-card--hero .destination-actions { max-width: 360px; }
  .destinations-grid--primary .destination-card:not(.destination-card--hero) .destination-info h3 { font-size: 1.3rem; }
  .destinations-grid--primary .destination-card:not(.destination-card--hero) p { -webkit-line-clamp: 1; margin-bottom: 0.8rem; }

  .rail { grid-auto-columns: calc((100% - 3 * 1rem) / 4); gap: 1rem; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; scroll-padding-inline: 0; }

  .cta-actions { flex-wrap: nowrap; }
  .video-links-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }

  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 4rem; border-bottom: 1px solid var(--glass-line); }
  .service-card { padding: 1.9rem 0; }
  .service-card:last-child { border-bottom: 0; }

  .fleet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
  .fleet-info { padding: 1.8rem 2rem 2.2rem; }

  .host-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem; }

  .reviews-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.6rem; }
  .review-form { position: sticky; top: calc(var(--header-h) + 1.5rem); }

  .contact-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4.5rem; }
  .planner { padding: 2.4rem 2.2rem; }

  .site-footer { padding-bottom: 2.5rem; }
}

@media (min-width: 1200px) {
  .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 2.5rem; }
  .footer-links { grid-template-columns: repeat(7, auto); justify-content: center; gap: 0 1.1rem; }
  .footer-actions { flex-wrap: nowrap; }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .main-nav ul { gap: 0; }
  .main-nav ul a { padding: 0 0.55rem; font-size: 0.88rem; }
  .header-instagram { display: none; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-in, .hero-photo, .hero-media::after { animation: none !important; }
  .hero-media::after { opacity: 0; }
  .hero-media { transform: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
