/* ==========================================================================
   Axioma Argentina · Operadora DMC receptiva
   Hoja de estilos principal
   --------------------------------------------------------------------------
   1. Tokens (colores, tipografía, espaciado)
   2. Fuentes autoalojadas
   3. Reset y base
   4. Utilidades (contenedor, botones, kicker, etc.)
   5. Navegación (desktop + drawer móvil)
   6. Hero
   7. Secciones: propuesta, destinos, experiencias, circuitos, stats, contacto
   8. Footer
   9. Modal de programa
   9b. Página de programa y página 404
   10. Animaciones, avisos y reduced-motion
   11. Responsive
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
  --dark: #0A0F1A;
  --dark-2: #111827;
  --dark-3: #070B12;
  --light: #F8F6F2;
  --light-2: #EFEBE3;
  --white: #FFFFFF;
  --accent: #2E7DAF;
  --accent-hover: #256A96;
  --accent2: #E86B24;
  --accent2-text: #C2551A;   /* naranja oscurecido para texto sobre crema (contraste AA) */
  --accent3: #96BD11;
  --celeste: #75AADB;
  --dmc-celeste: #6CA5DA;     /* paleta de AXIOMA ARGENTINA DMC (guion de los títulos y viñetas del detalle de programa) */
  --dmc-navy: #052453;
  --muted: #5F6B7A;
  --muted-dark: rgba(255, 255, 255, .62);
  --line: rgba(10, 15, 26, .1);
  --line-dark: rgba(255, 255, 255, .1);

  --serif: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --label: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif; /* etiquetas: misma familia que el texto, en 600 y mayúsculas */

  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 120px);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 14px 34px rgba(10, 15, 26, .12);
  --shadow-lg: 0 30px 70px rgba(10, 15, 26, .28);
  --nav-h: 76px;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* 2. Fuentes ------------------------------------------------------------ */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../assets/fonts/bricolage-grotesque-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../assets/fonts/bricolage-grotesque-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: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-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;
}

/* 3. Reset y base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  /* Sin scroll-behavior: smooth: rompe las mediciones de ScrollTrigger.
     El desplazamiento suave de los enlaces internos lo hace js/main.js. */
  /* Solo para saltos nativos (abrir una URL con #seccion, foco por teclado):
     deja la sección justo debajo de la barra. Los clics en enlaces internos los
     maneja js/main.js, que no reserva espacio cuando la barra se esconde. */
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  background: var(--light);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; } /* que un display de componente no gane al atributo hidden */
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--celeste); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  background: var(--dark); color: #fff; padding: 10px 16px; border-radius: 8px;
  transform: translateY(-200%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

/* 4. Utilidades --------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
/* Destinos arranca pegado a Propuesta (mismo fondo, sin padding arriba): al
   llegar desde una URL con #destinos se le deja un respiro para que el kicker no
   quede contra la barra. Los clics del menú los ajusta js/main.js. */
#destinos { scroll-margin-top: 28px; }
.section-dark { background: var(--dark); color: #fff; }
.section-dark .kicker { color: var(--accent2); }
.section-dark .section-text { color: var(--muted-dark); }

.kicker {
  font-family: var(--label); font-weight: 600; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent2-text); margin-bottom: 14px; display: block;
}
/* kicker destacado: "Por qué Axioma" */
.kicker--lg { font-size: 1rem; letter-spacing: .14em; margin-bottom: 16px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-title { font-size: clamp(2rem, 4.2vw, 2.9rem); max-width: 16ch; }
.section-head.center .section-title { max-width: 22ch; }
.section-text { font-size: 1rem; color: var(--muted); max-width: 40ch; margin-bottom: 6px; }
.section-head.center .section-text { margin-top: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: .95rem; line-height: 1; padding: 16px 28px;
  border-radius: 10px; border: 1.5px solid transparent; white-space: nowrap;
  transition: transform .25s var(--ease-out), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(46, 125, 175, .28); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-outline-accent { color: var(--accent); border-color: var(--accent); }
.btn-outline-accent:hover { background: var(--accent); color: #fff; }
.btn-card { padding: 12px 20px; font-size: .9rem; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1FBE5A; }
/* PDF: naranja de la marca, se oscurece en hover */
.btn-pdf { background: var(--accent2); color: #fff; }
.btn-pdf:hover { background: var(--accent2-text); }
.btn-pdf svg { width: 26px; height: 26px; }
/* "PDF" calado en la etiqueta del ícono: toma el color de fondo del botón */
.btn-pdf .pdf-knock { fill: var(--accent2); transition: fill .25s; }
.btn-pdf:hover .pdf-knock { fill: var(--accent2-text); }
.btn-sm { padding: 11px 18px; font-size: .78rem; font-family: var(--label); letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.btn .arrow { transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); font-size: .95rem; padding: 4px 0; }
.link-arrow .arrow { transition: transform .25s var(--ease-out); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* 5. Navegación --------------------------------------------------------- */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  transition: background .35s ease, box-shadow .35s ease, transform .4s var(--ease-out);
  color: #fff;
}
.site-nav.solid { background: rgba(10, 15, 26, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.site-nav.hidden { transform: translateY(-100%); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; color: #fff; }
.brand-logo { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; font-size: .9rem; font-weight: 500; color: rgba(255, 255, 255, .82);
  padding: 10px 13px; border-radius: 8px; transition: color .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 6px; height: 2px;
  background: var(--celeste); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
/* Selector de idioma: un botón discreto que despliega los otros idiomas */
.lang { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 8px 0 10px; border-radius: 999px;
  font-family: var(--label); font-size: .72rem; font-weight: 600; letter-spacing: .08em;
  color: rgba(255, 255, 255, .72); transition: color .2s, background .2s;
}
.lang-toggle:hover, .lang.open .lang-toggle { color: #fff; background: rgba(255, 255, 255, .08); }
.lang-globe { width: 15px; height: 15px; }
.lang-chevron { width: 11px; height: 11px; opacity: .7; transition: transform .25s var(--ease-out); }
.lang.open .lang-chevron { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 172px; margin: 0; padding: 6px; list-style: none;
  background: rgba(10, 15, 26, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transform-origin: top right;
  transition: opacity .18s var(--ease-out), transform .18s var(--ease-out), visibility 0s linear .18s;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.lang-option {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px; border-radius: 8px; font-size: .9rem; color: rgba(255, 255, 255, .82); text-align: left;
  transition: background .15s, color .15s;
}
.lang-option:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.lang-option:focus-visible { outline: none; background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1px rgba(117, 170, 219, .6); }
.lang-option-code { font-family: var(--label); font-size: .66rem; font-weight: 600; letter-spacing: .08em; color: rgba(255, 255, 255, .45); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s, top .3s; }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.nav-drawer {
  position: fixed; inset: 0; z-index: 90; background: var(--dark); color: #fff;
  display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter) 40px;
  transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility 0s .35s;
}
.nav-drawer.open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
.drawer-links { display: flex; flex-direction: column; gap: 6px; }
.drawer-link { font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 8vw, 2.8rem); padding: 8px 0; opacity: 0; transform: translateY(16px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.nav-drawer.open .drawer-link { opacity: 1; transform: none; }
.nav-drawer.open .drawer-link:nth-child(1) { transition-delay: .08s; }
.nav-drawer.open .drawer-link:nth-child(2) { transition-delay: .14s; }
.nav-drawer.open .drawer-link:nth-child(3) { transition-delay: .2s; }
.nav-drawer.open .drawer-link:nth-child(4) { transition-delay: .26s; }
.nav-drawer.open .drawer-link:nth-child(5) { transition-delay: .32s; }
.drawer-foot { margin-top: 40px; display: flex; flex-direction: column; gap: 18px; }

/* 6. Hero --------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--dark); color: #fff; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: scale(1.08); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10, 15, 26, .62) 0%, rgba(10, 15, 26, .22) 38%, rgba(10, 15, 26, .9) 100%); }
.hero-content { position: relative; z-index: 1; width: 100%; padding-top: calc(var(--nav-h) + 60px); padding-bottom: clamp(72px, 10vw, 110px); }
/* El h1 envuelve kicker y título (así el título principal dice qué es Axioma).
   No toma los estilos de título: kicker y título se ven igual que cuando eran <p> y <h1>. */
.hero-heading { font: inherit; letter-spacing: normal; text-wrap: wrap; }
.hero-heading .hero-title { display: block; font-family: var(--serif); text-wrap: balance; }
.hero .kicker { color: #fff; display: inline-flex; align-items: center; gap: 12px; text-shadow: 0 1px 10px rgba(10, 15, 26, .55); }
.hero .kicker::before { content: ""; width: 28px; height: 2px; background: var(--celeste); flex: none; }
.hero-title, .hero-sub { text-shadow: 0 2px 24px rgba(10, 15, 26, .35); }
.hero-title { font-size: clamp(2.6rem, 6.6vw, 4.9rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; max-width: 13ch; margin-bottom: 24px; }
.hero-title .word { display: inline-block; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .86); max-width: 38ch; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
@keyframes kenBurns { from { transform: scale(1.08); } to { transform: scale(1.18); } }

/* 7a. Propuesta --------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 32px); }
.feature { padding: 32px 28px; border-radius: var(--radius); background: #fff; border: 1px solid transparent; transition: transform .35s var(--ease-out), box-shadow .35s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-icon { width: 52px; height: 52px; color: var(--accent); margin-bottom: 22px; display: grid; place-items: center; border-radius: 12px; background: rgba(46, 125, 175, .08); }
.feature-icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.45rem; margin-bottom: 12px; }
.feature p { color: var(--muted); font-size: .97rem; }

/* 7b. Destinos ---------------------------------------------------------- */
.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.region-card {
  position: relative; display: block; height: 380px; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); isolation: isolate; background: var(--dark-2);
}
.region-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.region-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 15, 26, .9) 0%, rgba(10, 15, 26, .35) 45%, rgba(10, 15, 26, .05) 70%); }
.region-card:hover .region-img, .region-card:focus-visible .region-img { transform: scale(1.06); }
.region-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; z-index: 1; color: #fff; transform: translateY(14px); transition: transform .45s var(--ease-out); }
.region-card:hover .region-body, .region-card:focus-visible .region-body { transform: none; }
.region-tag { font-family: var(--label); font-weight: 600; font-size: .66rem; letter-spacing: .15em; text-transform: uppercase; color: var(--celeste); margin-bottom: 8px; }
.region-body h3 { font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em; }
.region-blurb { font-size: .9rem; color: rgba(255, 255, 255, .8); margin-top: 8px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease-out), opacity .4s .05s; }
.region-card:hover .region-blurb, .region-card:focus-visible .region-blurb { max-height: 90px; opacity: 1; }

/* 7c. Experiencias ------------------------------------------------------ */
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.exp-card {
  position: relative; border: 1px solid transparent; border-radius: 12px; padding: 32px 28px; overflow: hidden;
  background: rgba(255, 255, 255, .04); transition: transform .35s var(--ease-out);
}
.exp-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(117, 170, 219, .16), transparent 55%);
}
.exp-card:hover { transform: translateY(-4px); }
.exp-card:hover::before { opacity: 1; }
.exp-icon { width: 44px; height: 44px; margin-bottom: 20px; color: var(--accent3); position: relative; }
.exp-icon svg { width: 100%; height: 100%; }
.exp-card:nth-child(3n+2) .exp-icon { color: var(--celeste); }
.exp-card:nth-child(3n) .exp-icon { color: var(--accent2); }
.exp-card h3 { font-size: 1.35rem; margin-bottom: 8px; color: #fff; position: relative; }
.exp-card p { font-size: .92rem; color: var(--muted-dark); position: relative; }

/* 7d. Circuitos / programas -------------------------------------------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.chip {
  font-family: var(--label); font-weight: 600; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(10, 15, 26, .18); color: var(--muted);
  transition: background .25s, color .25s, border-color .25s;
}
.chip:hover { border-color: var(--dark); color: var(--dark); }
.chip[aria-pressed="true"] { background: var(--dark); color: #fff; border-color: var(--dark); }
.programs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.program-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 30px rgba(10, 15, 26, .08);
  display: flex; flex-direction: column; transition: transform .35s var(--ease-out), box-shadow .35s, opacity .3s;
  border: 1px solid var(--line);
}
.program-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.program-card.is-hidden { display: none; }
.program-media { position: relative; height: 220px; overflow: hidden; background: var(--dark-2); }
.program-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.program-card:hover .program-media img { transform: scale(1.05); }
.badge {
  position: absolute; top: 14px; left: 14px; font-family: var(--label); font-weight: 600; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(10, 15, 26, .78); color: #fff; padding: 7px 11px; border-radius: 6px; backdrop-filter: blur(6px);
}
.badge[data-cat="naturaleza"] { background: rgba(150, 189, 17, .95); }
.badge[data-cat="cultural"] { background: rgba(232, 107, 36, .92); }
.badge[data-cat="gastro"] { background: rgba(122, 31, 61, .92); }   /* vino */
.badge[data-cat="clasico"] { background: rgba(46, 125, 175, .92); }
.program-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.program-body h3 { font-size: 1.55rem; margin-bottom: 6px; }
.program-meta { font-size: .88rem; color: var(--muted); margin-bottom: 12px; }
.program-duration { font-family: var(--label); font-weight: 600; font-size: .82rem; color: var(--accent); margin-bottom: 16px; }
.program-summary { font-size: .93rem; color: var(--muted); margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.season { margin-top: auto; }
/* Salidas con fecha fija: van al pie de la tarjeta; si además hay temporada, la barra queda debajo */
.departures { margin-top: auto; }
.departures + .season { margin-top: 16px; }
.departure-list { display: flex; flex-wrap: wrap; gap: 6px; }
.departure-list li { font-family: var(--label); font-weight: 600; font-size: .74rem; letter-spacing: .02em; padding: 6px 10px; border-radius: 6px; background: var(--accent); color: #fff; }
.program-daily { color: var(--muted); font-weight: 500; }
/* Precio de las salidas: en la tarjeta va sobre las fechas (o la temporada) */
.program-price { font-size: .88rem; color: var(--muted); margin-bottom: 16px; }
.program-price strong { color: var(--dark); font-weight: 700; }
.program-price-single { display: block; font-size: .8rem; margin-top: 2px; }
.meta-chip--price strong { color: var(--accent); }
.chip--departures { display: inline-flex; align-items: center; gap: 7px; }
.chip--departures svg { width: 15px; height: 15px; }
/* fechas que ya pasaron (las marca js/main.js hasta que se actualice el programa) */
time.is-past { text-decoration: line-through; opacity: .55; }
.season-label { font-family: var(--label); font-weight: 600; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.season-bar { display: flex; gap: 4px; }
.month {
  flex: 1; height: 26px; border-radius: 4px; background: var(--light-2); color: #8F897C;
  display: grid; place-items: center; font-family: var(--label); font-weight: 600; font-size: .6rem;
}
.month.on { background: var(--accent2); color: #fff; }
.program-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.programs-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }

/* 7e. Stats ------------------------------------------------------------- */
.stats { border-top: 1px solid var(--line-dark); padding-block: clamp(56px, 8vw, 88px); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; max-width: 1080px; margin-inline: auto; }
.stat-value { font-family: var(--serif); font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.75rem); letter-spacing: -.03em; color: var(--celeste); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { font-family: var(--label); font-weight: 600; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted-dark); margin-top: 12px; }

/* 7f. Contacto ---------------------------------------------------------- */
.section-cta { position: relative; overflow: hidden; color: #fff; background: var(--dark); }
.cta-bg { position: absolute; inset: -12% 0; z-index: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(10, 15, 26, .86), rgba(10, 15, 26, .93)); }
.section-cta .container { position: relative; z-index: 1; }
/* Encabezado a todo el ancho del contenedor; debajo, datos (5 col.) y formulario (7 col.) */
.contact-head { margin-bottom: clamp(36px, 5vw, 56px); }
.contact-head .kicker { color: var(--celeste); }
.contact-head .section-title { max-width: none; font-size: clamp(2.1rem, 4.4vw, 3.1rem); font-weight: 800; margin-bottom: 18px; }
.contact-head .section-text { color: var(--muted-dark); font-size: 1rem; max-width: none; margin-bottom: 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 48px); align-items: start; }
.contact-channels { display: flex; flex-direction: column; gap: 14px; }
.channel { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line-dark); border-radius: 12px; transition: background .25s, border-color .25s; }
.channel:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .3); }
.channel-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--celeste); flex: none; }
.channel-icon svg { width: 20px; height: 20px; }
.channel-label { font-family: var(--label); font-weight: 600; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dark); }
.channel-value { font-size: .95rem; color: #fff; font-weight: 500; }
.contact-form { background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); backdrop-filter: blur(10px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-family: var(--label); font-weight: 600; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dark); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; color: #fff; background: rgba(10, 15, 26, .45); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px; padding: 13px 14px; transition: border-color .2s, background .2s; width: 100%;
}
.field select option { color: var(--dark); }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .38); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--celeste); background: rgba(10, 15, 26, .6); }
.field textarea { min-height: 120px; resize: vertical; }
.form-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 8px; }
.form-note { width: 100%; max-width: none; font-size: .78rem; color: var(--muted-dark); }
.form-status { margin-top: 14px; font-size: .9rem; min-height: 1.4em; }
.form-status.ok { color: var(--accent3); }
.form-status.err { color: #FF9B7A; }
.form-status a { text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }

/* 8. Footer ------------------------------------------------------------- */
.site-footer { background: var(--dark-3); color: rgba(255, 255, 255, .7); padding: clamp(56px, 7vw, 76px) 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.3fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line-dark); }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { font-size: .88rem; color: rgba(255, 255, 255, .6); max-width: 34ch; }
.footer-heading { font-family: var(--label); font-weight: 600; font-size: .64rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; font-size: .9rem; }
.footer-col a { transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-col address { font-style: normal; display: flex; flex-direction: column; gap: 10px; font-size: .88rem; line-height: 1.5; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 26px; font-size: .75rem; color: rgba(255, 255, 255, .42); }
.footer-bottom .legal { font-family: var(--label); font-weight: 500; letter-spacing: .04em; }
.footer-langs { display: flex; gap: 14px; }
.footer-langs a[aria-current="true"] { color: #fff; }

/* 9. Modal de programa -------------------------------------------------- */
.modal { border: 0; padding: 0; background: transparent; max-width: min(960px, calc(100vw - 32px)); width: 100%; max-height: calc(100vh - 32px); margin: auto; }
.modal::backdrop { background: rgba(7, 11, 18, .72); backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn .35s var(--ease-out); }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-card { background: var(--light); color: var(--dark); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.modal-hero { position: relative; height: 300px; flex: none; background: var(--dark-2); }
.modal-hero img { width: 100%; height: 100%; object-fit: cover; }
.modal-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 15, 26, .94) 0%, rgba(10, 15, 26, .7) 50%, rgba(10, 15, 26, .15) 100%); }
.modal-hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px clamp(22px, 4vw, 40px); color: #fff; z-index: 1; text-shadow: 0 1px 12px rgba(10, 15, 26, .6); }
.modal-hero-text .kicker { color: var(--celeste); margin-bottom: 8px; }
.modal-hero-text h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
.modal-places { margin-top: 10px; font-size: .95rem; line-height: 1.5; color: rgba(255, 255, 255, .88); max-width: 72ch; }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(10, 15, 26, .55); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); transition: background .2s, transform .2s;
}
.modal-close:hover { background: rgba(10, 15, 26, .85); transform: rotate(90deg); }
.modal-body { padding: clamp(22px, 4vw, 40px); overflow: auto; }
.modal-body:focus { outline: none; }
.modal-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.meta-chip { font-family: var(--label); font-weight: 600; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.meta-chip strong { color: var(--dark); font-weight: 700; }
.modal-summary { font-size: 1.05rem; line-height: 1.7; color: var(--dark); margin-bottom: 26px; max-width: 64ch; }
.modal-section { margin-top: 30px; }
/* Títulos de sección y de cada día: h3/h4 en el modal, h2/h3 en la página del programa */
.modal-section-title { font-size: 1.15rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.modal-section-title::before { content: ""; width: 22px; height: 2px; background: var(--dmc-celeste); }
.highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
.highlights li { position: relative; padding-left: 20px; font-size: .95rem; color: var(--muted); }
.highlights li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--dmc-navy); }
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 22px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -26px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 3px solid var(--light); box-shadow: 0 0 0 2px var(--accent); }
.timeline-day { font-family: var(--label); font-weight: 600; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent2-text); margin-bottom: 4px; }
.timeline-title { font-size: 1.1rem; margin-bottom: 6px; }
.timeline-item p { font-size: .93rem; color: var(--muted); }
.timeline-item p + p { margin-top: 8px; }
.timeline-km { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 500; }
.modal-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.modal-cols ul li { position: relative; padding-left: 22px; font-size: .92rem; color: var(--muted); margin-bottom: 8px; }
.modal-cols ul li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.list-yes li::before { content: "\2713"; color: var(--accent3); }
.list-no li::before { content: "\2715"; color: var(--accent2-text); }
.modal-note { font-size: .85rem; color: var(--muted); margin-top: 20px; padding: 14px 16px; background: #fff; border-radius: 10px; border: 1px solid var(--line); }
.modal-note--pending { margin-top: 0; font-size: .95rem; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.modal-actions--top { margin: 0 0 22px; padding-top: 0; border-top: 0; }
.modal-actions .btn { height: 48px; padding-block: 0; }
/* Botón solo con ícono: cuadrado, del mismo alto que el botón principal */
.btn-icon { width: 48px; padding: 0; flex: none; }
.btn-icon svg { width: 22px; height: 22px; }

/* 9b. Página de programa ------------------------------------------------ */
/* Mismo contenido y componentes que el modal, a página completa */
.program-hero { position: relative; min-height: clamp(440px, 62svh, 620px); display: flex; align-items: flex-end; overflow: hidden; background: var(--dark); color: #fff; }
.program-hero-media { position: absolute; inset: 0; }
.program-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.program-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10, 15, 26, .62) 0%, rgba(10, 15, 26, .25) 32%, rgba(10, 15, 26, .72) 58%, rgba(10, 15, 26, .92) 100%); }
.program-hero-content { position: relative; z-index: 1; padding-top: calc(var(--nav-h) + 48px); padding-bottom: clamp(40px, 6vw, 64px); text-shadow: 0 1px 12px rgba(10, 15, 26, .6); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 22px; padding: 0; list-style: none; font-size: .82rem; color: rgba(255, 255, 255, .72); }
.breadcrumb li + li::before { content: "\203A"; margin-right: 8px; color: rgba(255, 255, 255, .45); }
.breadcrumb a { transition: color .2s; }
.breadcrumb a:hover { color: #fff; }
.program-hero .kicker { color: var(--celeste); margin-bottom: 10px; }
/* crédito de la foto (licencias que piden citar al autor) */
.photo-credit { position: absolute; right: 12px; bottom: 8px; z-index: 2; max-width: 60%; font-size: .68rem; line-height: 1.3; text-align: right; color: rgba(255, 255, 255, .72); text-shadow: 0 1px 4px rgba(10, 15, 26, .8); }
.photo-credit a { text-decoration: underline; text-underline-offset: 2px; }
.program-title { font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; max-width: 18ch; }
.program-hero-places { margin-top: 14px; font-size: 1rem; line-height: 1.55; color: rgba(255, 255, 255, .88); max-width: 72ch; }
/* Mismo borde izquierdo que el resto de la página (logo, ruta, título); el texto no pasa de un ancho cómodo de lectura */
.program-page-body { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(56px, 8vw, 96px); }
.program-page-body > * { max-width: 880px; }
.program-page-body .modal-summary { font-size: 1.1rem; }
.program-related { padding-top: 0; }

/* Página 404 (en los tres idiomas) */
.not-found { min-height: 72svh; display: flex; align-items: center; padding-top: calc(var(--nav-h) + 56px); }
.not-found-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; margin-top: 8px; }
.not-found-grid .section-title { font-size: clamp(1.7rem, 3vw, 2.2rem); max-width: 14ch; margin-bottom: 14px; }
.not-found-grid p { color: var(--muted-dark); margin-bottom: 22px; max-width: 34ch; }
.not-found-programs { margin-top: clamp(40px, 6vw, 64px); padding-top: 28px; border-top: 1px solid var(--line-dark); }
.not-found-programs ul { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .95rem; }
.not-found-programs a { color: rgba(255, 255, 255, .8); transition: color .2s; }
.not-found-programs a:hover { color: #fff; }

/* 10. Animaciones ------------------------------------------------------- */
.js:not(.gsap) .hero-img { animation: kenBurns 18s var(--ease-out) forwards; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 300;
  background: var(--dark); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: .9rem; opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease-out); box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Aviso de idioma: aparece si el navegador (o una elección anterior) pide otro idioma.
   Flota abajo a la izquierda, no empuja el contenido. */
.lang-banner {
  position: fixed; left: 24px; bottom: 24px; z-index: 150; max-width: min(440px, calc(100vw - 48px));
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 14px;
  padding: 14px 12px 14px 18px; border-radius: 12px; font-size: .9rem; line-height: 1.45; color: #fff;
  background: rgba(10, 15, 26, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(12px); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.lang-banner.show { opacity: 1; transform: none; }
.lang-banner p { flex: 1 1 190px; }
.lang-banner-go {
  font-family: var(--label); font-weight: 600; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  padding: 10px 14px; border-radius: 8px; background: var(--accent); color: #fff; transition: background .2s;
}
.lang-banner-go:hover { background: var(--accent-hover); }
.lang-banner-close { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: rgba(255, 255, 255, .7); transition: background .2s, color .2s; }
.lang-banner-close:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* Botón volver arriba: aparece al pasar el hero */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 80; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(10, 15, 26, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 10px 24px rgba(10, 15, 26, .25);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.92);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), background .2s, visibility 0s linear .3s;
}
.to-top svg { width: 20px; height: 20px; transition: transform .25s var(--ease-out); }
.to-top.show { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--accent); }
.to-top:hover svg { transform: translateY(-2px); }

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

/* 11. Responsive -------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .features, .regions, .exp-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .programs { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head.center { align-items: center; }
  .section-text { max-width: 60ch; }
  .modal-hero { height: 220px; }
  .highlights, .modal-cols { grid-template-columns: 1fr; }
  .not-found-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --nav-h: 66px; }
  .brand-logo { height: 34px; }
  .nav-actions { gap: 6px; }
  .features, .regions, .exp-grid { grid-template-columns: 1fr; }
  .region-card { height: 300px; }
  .region-blurb { max-height: 90px; opacity: 1; }
  .region-body { transform: none; }
  .hero-actions .btn { width: 100%; }
  .program-actions .btn-card { width: 100%; }
  .to-top { right: 16px; bottom: 16px; }
  .hero .kicker { align-items: flex-start; }
  .hero .kicker::before { margin-top: .7em; width: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .modal { max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .modal-hero { height: 250px; }
  .modal-places { font-size: .84rem; }
  .modal-card { border-radius: 14px; }
  .modal-actions { gap: 10px; }
  .modal-actions .btn:not(.btn-icon) { flex: 1 1 auto; padding-inline: 16px; }
  .program-hero { min-height: 420px; }
  .lang-banner { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  /* con el aviso de idioma abierto, el botón de volver arriba queda por encima */
  body.has-lang-banner .to-top { bottom: calc(var(--lang-banner-h, 0px) + 28px); }
}
