/* =========================================================
   Pablo Hudson · estilos generales
   Paleta: hueso, basalto, lago, musgo, maíz
   Tipografía: PRIMETIME (títulos) + Creato Display (textos)
   ========================================================= */
@font-face { font-family: "PRIMETIME"; src: url("../fonts/PRIMETIME.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Creato Display"; src: url("../fonts/CreatoDisplay-Light.otf") format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Creato Display"; src: url("../fonts/CreatoDisplay-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Creato Display"; src: url("../fonts/CreatoDisplay-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Creato Display"; src: url("../fonts/CreatoDisplay-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

:root {
  --hueso: #F7F5F0;
  --basalto: #1E1C1A;
  --lago: #2E5E73;
  --musgo: #4F5D3A;
  --maiz: #D9A441;

  --texto-2: rgba(30, 28, 26, .66);
  --linea: rgba(30, 28, 26, .16);

  /* PRIMETIME no trae números: los números van en Creato */
  --display: "PRIMETIME", "Arial Black", sans-serif;
  --cuerpo: "Creato Display", "Helvetica Neue", Arial, sans-serif;

  --margen: clamp(16px, 4vw, 56px);
  --ancho: 1320px;
  --radio: 20px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);          /* cosas que entran */
  --ease-in-out: cubic-bezier(.645, .045, .355, 1);  /* cosas que se mueven en pantalla */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--hueso);
  color: var(--basalto);
  font-family: var(--cuerpo);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--maiz); 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 { position: absolute; left: -999px; top: 8px; background: var(--basalto); color: var(--hueso); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Tipografía ---------- */
.titulo-seccion {
  font-family: var(--display);
  font-size: clamp(34px, 5.4vw, 76px);
  line-height: 1.04;
  letter-spacing: .02em;
}
.enlace {
  display: inline-block;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 4px;
  /* Línea maíz, y encima una línea oscura que se dibuja de izquierda a derecha */
  background:
    linear-gradient(var(--basalto), var(--basalto)) left bottom / 0% 2px no-repeat,
    linear-gradient(var(--maiz), var(--maiz)) left bottom / 100% 2px no-repeat;
  transition: background-size .5s var(--ease-out);
}
.enlace::after {
  content: "→"; display: inline-block; margin-left: 8px;
  transition: transform .4s var(--ease-out);
}
.enlace:hover { background-size: 100% 2px, 100% 2px; }
.enlace:hover::after { transform: translateX(4px); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px;
  border-radius: 999px;
  font: 500 16px/1 var(--cuerpo);
  letter-spacing: .01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background .2s, color .2s, border-color .2s;
}
.btn:active { transform: scale(.97); transition-duration: .1s; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(30, 28, 26, .55); }
  .btn:hover:active { transform: translateY(0) scale(.97); }
}
/* Brillo que cruza el botón maíz al pasar el mouse */
.btn-maiz { position: relative; overflow: hidden; isolation: isolate; }
.btn-maiz::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%);
  transform: translateX(-120%);
}
@media (hover: hover) and (pointer: fine) {
  .btn-maiz:hover { box-shadow: 0 14px 28px -14px rgba(217, 164, 65, .9); }
  .btn-maiz:hover::after { transform: translateX(120%); transition: transform .9s var(--ease-out); }
}
.btn-maiz { background: var(--maiz); color: var(--basalto); }
.btn-maiz:hover { background: #e3b356; }
.btn-oscuro { background: var(--basalto); color: var(--hueso); }
.btn-oscuro:hover { background: #33302c; }
.btn-linea-claro { border-color: rgba(247, 245, 240, .7); color: var(--hueso); background: rgba(30, 28, 26, .18); backdrop-filter: blur(6px); }
.btn-linea-claro:hover { background: var(--hueso); color: var(--basalto); border-color: var(--hueso); }

/* ---------- Marcadores de foto (se ven hasta que pongás tus fotos) ---------- */
.ph {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--lago), var(--musgo) 70%, var(--basalto));
}
.ph::after {
  content: attr(data-label);
  position: absolute; left: 12px; bottom: 10px;
  font-size: 12px; color: rgba(247, 245, 240, .75);
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* =========================================================
   Navegación
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 18px var(--margen);
  color: var(--hueso);
  transition: background .35s, color .35s, box-shadow .35s, padding .35s,
              opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.nav.con-fondo {
  color: var(--basalto);
  background: rgba(247, 245, 240, .9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--linea);
  padding-top: 12px; padding-bottom: 12px;
}
.marca {
  font-family: var(--display);
  font-size: 19px; letter-spacing: .04em;
  text-decoration: none; justify-self: start;
}
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  text-decoration: none; font-size: 15px; font-weight: 500; letter-spacing: .01em;
  padding: 9px 16px; border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(247, 245, 240, .18); }
.nav.con-fondo .nav-links a:hover { background: rgba(30, 28, 26, .07); }
.nav-acciones { display: flex; align-items: center; gap: 12px; justify-self: end; }
.idioma { background: none; border: 0; font: 500 13px var(--cuerpo); color: inherit; opacity: .8; cursor: pointer; padding: 8px; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid currentColor; background: rgba(30, 28, 26, .15); color: inherit; cursor: pointer; position: relative; z-index: 60; }
.nav.con-fondo .menu-btn { background: none; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s; }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 25px; }
.menu-abierto .nav { color: var(--hueso); background: transparent; box-shadow: none; backdrop-filter: none; }
.menu-abierto .menu-btn span:first-child { top: 21px; transform: rotate(45deg); }
.menu-abierto .menu-btn span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Menú a pantalla completa ---------- */
.menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--basalto); color: var(--hueso);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  opacity: 0; transition: opacity .35s var(--ease);
}
.menu[hidden] { display: none; }
.menu.visible { opacity: 1; }
.menu-links { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.menu-links a {
  font-family: var(--display); text-decoration: none; letter-spacing: .02em;
  font-size: clamp(30px, 5.4vw, 64px); line-height: 1.2;
  padding: 2px 20px; border-radius: 14px;
  transition: background .2s, color .2s;
}
.menu-links a:hover, .menu-links a:focus-visible { background: var(--hueso); color: var(--basalto); outline: none; }
.menu-fotos { display: flex; gap: 14px; }
.menu-fotos-izq { justify-content: flex-end; transform: translateX(-30%); }
.menu-fotos-der { justify-content: flex-start; transform: translateX(30%); }
.menu-fotos .ph { width: 170px; aspect-ratio: 4/3; border-radius: 14px; }

/* =========================================================
   Portada (video a pantalla completa)
   ========================================================= */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden;
  background: var(--basalto);
  color: var(--hueso);
  isolation: isolate;
}
.hero-marco { position: absolute; inset: 0; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
  background: linear-gradient(160deg, var(--lago), var(--musgo) 60%, var(--basalto));
}
/* Parte de arriba difuminada para que se lean las pestañas */
.hero-velo {
  position: absolute; inset: 0 0 auto 0; height: 190px; z-index: -1;
  background: linear-gradient(to bottom, rgba(30, 28, 26, .55), rgba(30, 28, 26, 0));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
          mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
/* Sombra de abajo para que se lean el texto y los botones */
.hero-sombra {
  position: absolute; inset: auto 0 0 0; height: 45%; z-index: -1;
  background: linear-gradient(to top, rgba(30, 28, 26, .7), rgba(30, 28, 26, 0));
}
.hero-pie {
  position: absolute; left: 0; right: 0; bottom: clamp(40px, 9vh, 96px);
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  padding: 0 var(--margen); text-align: center;
}
.hero-texto { max-width: 46ch; font-size: clamp(16px, 1.4vw, 19px); font-weight: 400; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); text-wrap: balance; }
.hero-botones { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hero-bajar {
  position: absolute; right: var(--margen); bottom: clamp(40px, 9vh, 96px);
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid rgba(247, 245, 240, .6); color: var(--hueso);
  transition: background .2s, color .2s;
}
.hero-bajar:hover { background: var(--hueso); color: var(--basalto); }
.hero-bajar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Botón de sonido: abajo a la izquierda en compu, espejo de la flecha */
.sonido {
  position: absolute; z-index: 3;
  left: var(--margen); bottom: clamp(40px, 9vh, 96px);
  width: 46px; height: 46px; padding: 0; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid rgba(247, 245, 240, .6); color: var(--hueso);
  background: rgba(30, 28, 26, .22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  cursor: pointer;
}
.sonido:active { scale: .94; }
@media (hover: hover) and (pointer: fine) { .sonido:hover { background: var(--hueso); color: var(--basalto); border-color: var(--hueso); } }
.sonido > * { grid-area: 1 / 1; transition: opacity .35s var(--ease-out), transform .45s var(--ease-out); }
.sonido-mudo { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sonido-barras { display: flex; align-items: flex-end; gap: 3px; height: 15px; }
.sonido-barras i { width: 3px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: bottom; transform: scaleY(.3); }
/* Mudo: se ve la bocina tachada. Con sonido: tres barritas que se mueven */
.sonido[aria-pressed="false"] .sonido-barras { opacity: 0; transform: scale(.6); }
.sonido[aria-pressed="true"] .sonido-mudo { opacity: 0; transform: scale(.6); }
.sonido[aria-pressed="true"] .sonido-barras i { animation: barra .9s var(--ease-in-out) infinite alternate; }
.sonido-barras i:nth-child(2) { animation-duration: .7s !important; animation-delay: -.3s; }
.sonido-barras i:nth-child(3) { animation-duration: 1.1s !important; animation-delay: -.6s; }
@keyframes barra { from { transform: scaleY(.25); } to { transform: scaleY(1); } }

/* La flecha de bajar flota despacito */
.hero-bajar svg { animation: flotar 2.8s var(--ease-in-out) infinite; }
.hero-bajar:hover svg { animation-play-state: paused; }
@keyframes flotar { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
/* (la entrada de la portada está en "Micro-animaciones", abajo) */

/* =========================================================
   Descubrí rutas · carrusel tipo coverflow
   ========================================================= */
.rutas { padding: clamp(80px, 11vw, 140px) 0 0; overflow: hidden; }
.rutas-cabeza { text-align: center; padding: 0 var(--margen); }
.rutas-cabeza p { color: var(--texto-2); margin: 14px auto 0; max-width: 40ch; }

.cover {
  position: relative;
  height: clamp(420px, 44vw, 560px);
  margin-top: clamp(36px, 5vw, 64px);
  touch-action: pan-y;
  user-select: none;
}
.cover-pista { position: absolute; inset: 0; }
.tarjeta {
  position: absolute; left: 50%; top: 50%;
  width: clamp(250px, 26vw, 340px); aspect-ratio: 3/4.3;
  border-radius: var(--radio); overflow: hidden;
  color: var(--hueso); text-decoration: none;
  transform: translate(-50%, -50%) translateX(var(--x, 0)) scale(var(--s, 1));
  opacity: var(--o, 1);
  z-index: var(--z, 1);
  transition: transform .6s var(--ease), opacity .6s var(--ease), filter .6s var(--ease);
  box-shadow: 0 24px 50px -24px rgba(30, 28, 26, .55);
  cursor: pointer;
}
.tarjeta.lejos { filter: saturate(.6) brightness(.85); }
.tarjeta .ph { position: absolute; inset: 0; }
.tarjeta .ph::after { display: none; }
.tarjeta::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to bottom, rgba(30, 28, 26, .55) 0%, rgba(30, 28, 26, 0) 38%, rgba(30, 28, 26, 0) 55%, rgba(30, 28, 26, .8) 100%);
}
.tarjeta-arriba, .tarjeta-abajo { position: absolute; left: 18px; right: 18px; z-index: 3; }
.tarjeta-arriba { top: 18px; display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.tarjeta-nombre { font-family: var(--display); font-size: 21px; line-height: 1.1; letter-spacing: .02em; }
.chip {
  flex: none; font-size: 12px; font-weight: 500; padding: 5px 11px; border-radius: 999px;
  background: rgba(247, 245, 240, .9); color: var(--basalto);
}
.chip.pronto { background: rgba(30, 28, 26, .5); color: var(--hueso); backdrop-filter: blur(6px); }
.tarjeta-abajo { bottom: 18px; }
.tarjeta-region { font-size: 14px; opacity: .9; }
.tarjeta-datos { display: flex; gap: 6px; margin: 10px 0 14px; flex-wrap: wrap; }
.dato { font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(247, 245, 240, .45); }
.tarjeta-boton {
  display: flex; align-items: center; justify-content: center;
  height: 46px; border-radius: 999px;
  background: var(--hueso); color: var(--basalto);
  font-weight: 500; font-size: 15px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.tarjeta.activa .tarjeta-boton { opacity: 1; transform: none; }
.tarjeta:focus-visible { outline-offset: 6px; }

.cover-controles {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin-top: 28px; padding: 0 var(--margen);
}
.cover-estado { min-width: 220px; text-align: center; font-size: 15px; color: var(--texto-2); }
.cover-estado b { color: var(--basalto); font-weight: 500; }
.flecha {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--basalto); background: none; color: var(--basalto);
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s, color .2s;
}
.flecha:hover { background: var(--basalto); color: var(--hueso); }
.flecha svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rutas-todas { text-align: center; margin-top: 28px; }

/* =========================================================
   Intro
   ========================================================= */
.intro {
  max-width: calc(var(--ancho) + 2 * var(--margen)); margin: 0 auto;
  padding: clamp(80px, 11vw, 140px) var(--margen) 0;
}
.intro-texto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px 48px; align-items: start; }
.intro-texto .enlace { grid-column: 2; justify-self: start; }
.intro-grande { font-size: clamp(21px, 2.2vw, 29px); line-height: 1.4; font-weight: 300; max-width: 32ch; }
.intro-tira {
  display: grid; grid-template-columns: 1fr 1.1fr 1.6fr 1.1fr 1fr; gap: 14px;
  align-items: center; margin-top: 56px;
}
.intro-tira .ph { border-radius: 14px; }
.t1, .t5 { aspect-ratio: 3/4; }
.t2, .t4 { aspect-ratio: 4/5; }
.t3 { aspect-ratio: 4/3.2; }

/* =========================================================
   Mapa
   ========================================================= */
.mapa-seccion {
  max-width: calc(var(--ancho) + 2 * var(--margen)); margin: 0 auto;
  padding: clamp(80px, 11vw, 140px) var(--margen) 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: start;
}
.mapa-texto p { color: var(--texto-2); margin-top: 16px; max-width: 28ch; }
.mapa-leyenda { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; font-size: 14px; }
.mapa-leyenda li { display: flex; align-items: center; gap: 10px; }
.punto { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 2px solid var(--hueso); box-shadow: 0 0 0 1.5px var(--basalto); }
.punto-lista { background: var(--maiz); }
.punto-pronto { background: var(--lago); }
.mapa {
  height: clamp(380px, 60vh, 600px); border-radius: var(--radio);
  background: #e9e6df; overflow: hidden; z-index: 1;
}
.marcador { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--hueso); box-shadow: 0 0 0 1.5px var(--basalto), 0 6px 14px -4px rgba(0,0,0,.5); }
.marcador.lista { background: var(--maiz); }
.marcador.pronto { background: var(--lago); }
.leaflet-popup-content-wrapper { border-radius: 14px; font-family: var(--cuerpo); }
.leaflet-popup-content { margin: 14px 16px; }
.pop-nombre { font-family: var(--display); font-size: 16px; line-height: 1.15; }
.pop-meta { font-size: 13px; color: var(--texto-2); margin: 4px 0 8px; }
.pop-enlace { font-size: 14px; font-weight: 500; color: var(--lago); }

/* =========================================================
   Empieza aquí
   ========================================================= */
.empieza {
  max-width: calc(var(--ancho) + 2 * var(--margen)); margin: 0 auto;
  padding: clamp(80px, 11vw, 140px) var(--margen);
}
.empieza .titulo-seccion { max-width: 16ch; }
.pasos { list-style: none; padding: 0; margin: 48px 0 32px; border-top: 1.5px solid var(--basalto); }
.pasos li {
  display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 24px;
  padding: 28px 0; border-bottom: 1px solid var(--linea);
}
.paso-num { font-family: var(--cuerpo); font-weight: 300; font-size: 64px; line-height: .9; color: var(--musgo); }
.pasos h3 { font-family: var(--display); font-size: 22px; letter-spacing: .02em; line-height: 1.1; margin-bottom: 8px; }
.pasos p { color: var(--texto-2); max-width: 56ch; }

/* =========================================================
   Viajes conmigo (oscuro)
   ========================================================= */
.viajes {
  position: relative; color: var(--hueso); background: var(--basalto);
  min-height: 90vh; display: grid; align-items: end;
  padding: 120px var(--margen) 72px; overflow: hidden;
}
.viajes-fondo { position: absolute; inset: 0; }
.viajes-video {
  width: 100%; height: 100%; object-fit: cover;
  background: linear-gradient(180deg, var(--lago), var(--maiz) 120%);
  opacity: .55;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
}
.viajes-contenido { position: relative; max-width: var(--ancho); margin: 0 auto; width: 100%; }
.viajes-titulo { font-family: var(--display); font-size: clamp(38px, 7vw, 104px); line-height: 1.02; letter-spacing: .02em; max-width: 12ch; }
.viajes-texto { max-width: 48ch; font-size: 19px; font-weight: 300; margin-top: 24px; color: rgba(247, 245, 240, .88); }
.proximo {
  margin-top: 28px; padding: 16px 20px; max-width: 380px;
  border-radius: 16px; border: 1px solid rgba(247, 245, 240, .25);
  background: rgba(247, 245, 240, .06); backdrop-filter: blur(8px);
}
.proximo-etiqueta { font-size: 13px; color: var(--maiz); font-weight: 500; }
.proximo-titulo { font-family: var(--display); font-size: 20px; letter-spacing: .02em; margin: 4px 0; }
.proximo-detalle { font-size: 14px; color: rgba(247, 245, 240, .75); }
.viajes-botones { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }

/* =========================================================
   Colaboraciones
   ========================================================= */
.colab {
  max-width: calc(var(--ancho) + 2 * var(--margen)); margin: 0 auto;
  padding: clamp(80px, 11vw, 140px) var(--margen);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: end;
}
.colab-titulo { font-family: var(--display); font-size: clamp(32px, 4.6vw, 66px); line-height: 1.06; letter-spacing: .02em; }
.colab-lado p { font-size: 18px; max-width: 38ch; }
.colab-lista { list-style: none; padding: 0; margin: 20px 0 28px; }
.colab-lista li { padding: 12px 0; border-bottom: 1px solid var(--linea); display: flex; gap: 12px; align-items: center; }
.colab-lista li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lago); flex: none; }

/* =========================================================
   Pie
   ========================================================= */
.pie { background: var(--basalto); color: var(--hueso); padding: 72px var(--margen) 24px; overflow: hidden; }
.pie-arriba { max-width: var(--ancho); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.pie-lista h2 { font-family: var(--display); font-size: 30px; letter-spacing: .02em; line-height: 1.1; }
.pie-lista p { color: rgba(247, 245, 240, .7); margin: 10px 0 20px; max-width: 34ch; }
.pie-col { display: flex; flex-direction: column; gap: 10px; }
.pie-col h3 { font-size: 13px; color: var(--maiz); font-weight: 500; margin-bottom: 4px; }
.pie-col a {
  text-decoration: none; color: rgba(247, 245, 240, .85); align-self: flex-start;
  background: linear-gradient(currentColor, currentColor) left 100% / 0% 1px no-repeat;
  transition: background-size .4s var(--ease-out), color .2s;
}
.pie-col a:hover { color: var(--hueso); background-size: 100% 1px; }
.pie-marca {
  font-family: var(--display); white-space: nowrap; letter-spacing: .02em;
  font-size: 8.6vw; line-height: 1; text-align: center;
  margin: 72px calc(-1 * var(--margen)) 0; color: var(--hueso);
}
.pie-legal { max-width: var(--ancho); margin: 24px auto 0; font-size: 13px; color: rgba(247, 245, 240, .5); }

/* ---------- WhatsApp flotante ---------- */
.wa-flotante {
  position: fixed; right: 18px; bottom: 18px; z-index: 45;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--musgo); color: var(--hueso);
  display: grid; place-items: center;
  box-shadow: 0 12px 28px -10px rgba(30, 28, 26, .6);
  transition: transform .45s var(--ease-out), opacity .35s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .wa-flotante:hover { transform: scale(1.06); } }
.wa-flotante:active { transform: scale(.95); }
.wa-flotante svg { width: 28px; height: 28px; fill: currentColor; }
.en-portada .wa-flotante { opacity: 0; transform: translateY(10px) scale(.85); pointer-events: none; }

/* =========================================================
   Micro-animaciones
   Todo lo que esconde algo para luego mostrarlo va dentro de .anim
   (main.js la pone en <html>). Si el JS falla o la persona pidió
   menos movimiento, la página se ve completa y quieta.
   ========================================================= */

/* ---------- Entrada de la portada ---------- */
/* El video aparece desde negro y se aleja un poquito */
.hero-video { transition: transform 2.6s var(--ease-out), opacity 1.4s var(--ease-out); }
.hero-texto, .hero-botones > *, .hero-bajar, .sonido {
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out),
              background .2s, color .2s, border-color .2s, box-shadow .3s var(--ease-out);
}
.hero-texto { transition-delay: .35s; }
.hero-botones > :nth-child(1) { transition-delay: .5s, .5s, .5s, 0s, 0s, 0s, 0s; }
.hero-botones > :nth-child(2) { transition-delay: .6s, .6s, .6s, 0s, 0s, 0s, 0s; }
.hero-bajar, .sonido { transition-delay: .8s, .8s, .8s, 0s, 0s, 0s, 0s; }
/* Terminada la entrada (main.js pone .portada-lista), los botones responden sin retraso */
.portada-lista .hero-botones > *, .portada-lista .hero-bajar, .portada-lista .sonido { transition-delay: 0s; }
.anim.carga .hero-video { transform: scale(1.06); opacity: 0; }
.anim.carga .nav { opacity: 0; transform: translateY(-10px); }
.anim.carga .hero-texto,
.anim.carga .hero-botones > *,
.anim.carga .hero-bajar,
.anim.carga .sonido { opacity: 0; transform: translateY(16px); filter: blur(6px); }

/* ---------- Aparecer al bajar (fundido + subida + desenfoque) ---------- */
.anim [data-revelar] {
  opacity: 0; transform: translateY(20px); filter: blur(6px);
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), filter .8s var(--ease-out);
}
.anim [data-revelar].visto {
  opacity: 1; transform: none; filter: none;
  transition-delay: calc(var(--i, 0) * 90ms + var(--d, 0ms));
}
/* Los enlaces conservan su línea animada al pasar el mouse */
.anim .enlace[data-revelar] { transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), filter .8s var(--ease-out), background-size .5s var(--ease-out); }
.anim .enlace[data-revelar].visto {
  transition-delay: calc(var(--i, 0) * 90ms + var(--d, 0ms)), calc(var(--i, 0) * 90ms + var(--d, 0ms)), calc(var(--i, 0) * 90ms + var(--d, 0ms)), 0s;
}
/* Fotos: suben y se destapan de abajo hacia arriba */
.anim [data-revelar="foto"] { filter: none; transform: translateY(36px); clip-path: inset(14% 0 0 0 round 14px); }
.anim [data-revelar="foto"].visto { transform: none; clip-path: inset(0 0 0 0 round 14px); }
.anim [data-revelar="foto"] { transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), clip-path 1.1s var(--ease-out); }

/* ---------- Títulos: cada palabra sube desde atrás de una línea ---------- */
.anim .palabra { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.anim .palabra > span {
  display: inline-block; transform: translateY(110%);
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--p, 0) * 70ms);
}
.anim .visto .palabra > span { transform: none; }

/* ---------- Carrusel ---------- */
/* Las tarjetas se abren en abanico desde el centro la primera vez */
.anim .cover:not(.visto) .tarjeta { transform: translate(-50%, -50%) scale(.88); opacity: 0; }
.anim .cover.visto:not(.listo) .tarjeta {
  transition-duration: 1.1s; transition-delay: calc(var(--a, 0) * 90ms);
}
/* La foto respira un poquito al pasar el mouse sobre la tarjeta del centro */
.tarjeta .ph { transition: transform 1s var(--ease-out); }
.tarjeta-boton { transition: opacity .45s var(--ease-out) .12s, transform .45s var(--ease-out) .12s, background .2s, color .2s; }
.tarjeta:not(.activa) .tarjeta-boton { transition-delay: 0s; }
@media (hover: hover) and (pointer: fine) {
  .tarjeta.activa:hover .ph { transform: scale(1.05); }
  .tarjeta.activa:hover .tarjeta-boton { background: var(--maiz); }
  .tarjeta.lejos:hover { filter: saturate(.8) brightness(.95); }
}
/* El nombre de abajo cambia con un fundido corto */
.anim .cover-estado b { display: inline-block; animation: estadoEntra .45s var(--ease-out); }
@keyframes estadoEntra { from { opacity: 0; transform: translateY(6px); filter: blur(3px); } }
/* Flechas: la flecha se asoma hacia donde va */
.flecha { transition: background .2s, color .2s, transform .15s var(--ease-out); }
.flecha svg { transition: transform .35s var(--ease-out); }
.flecha:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) {
  .flecha[data-dir="1"]:hover svg { transform: translateX(3px); }
  .flecha[data-dir="-1"]:hover svg { transform: translateX(-3px); }
}

/* ---------- Intro: fotos ---------- */
.intro-tira .ph img { transition: transform 1.2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .intro-tira .ph:hover img { transform: scale(1.05); } }

/* ---------- Mapa: los puntos caen uno por uno y las rutas listas laten ---------- */
.marcador { position: relative; transition: scale .3s var(--ease-out); }
.anim .marcador { animation: marcadorEntra .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms + 150ms); }
@keyframes marcadorEntra { from { opacity: 0; transform: translateY(-14px) scale(.6); } }
.marcador.lista::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--maiz); pointer-events: none;
  animation: latido 2.8s var(--ease-out) infinite;
}
@keyframes latido { 0% { transform: scale(.9); opacity: .8; } 70%, 100% { transform: scale(2.1); opacity: 0; } }
.leaflet-marker-icon:hover .marcador, .leaflet-marker-icon:focus-visible .marcador { scale: 1.2; }

/* ---------- Empieza aquí: las líneas se dibujan ---------- */
.anim .pasos { position: relative; border-top-color: transparent; }
.anim .pasos li { position: relative; border-bottom-color: transparent; }
.anim .pasos::before, .anim .pasos li::after {
  content: ""; position: absolute; left: 0; right: 0;
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.3s var(--ease-out);
}
.anim .pasos::before { top: -1.5px; height: 1.5px; background: var(--basalto); }
.anim .pasos li::after { bottom: -1px; height: 1px; background: var(--linea); transition-delay: calc(var(--i, 0) * 90ms + 200ms); }
.anim .pasos.visto::before, .anim .pasos li.visto::after { transform: none; }
.paso-num { transition: color .3s, transform .5s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .pasos li:hover .paso-num { color: var(--lago); transform: translateX(4px); }
}

/* ---------- Viajes: el video se acerca despacio y el próximo viaje "late" ---------- */
.anim .viajes-video { transform: scale(1.1); transition: transform 2.8s var(--ease-out); }
.anim .viajes.visto .viajes-video { transform: none; }
.proximo-etiqueta { display: flex; align-items: center; gap: 8px; }
.proximo-etiqueta::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--maiz); flex: none;
  animation: senal 2.4s var(--ease-out) infinite;
}
@keyframes senal {
  0% { box-shadow: 0 0 0 0 rgba(217, 164, 65, .6); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(217, 164, 65, 0); }
}

/* ---------- Colaboraciones: los puntos de la lista aparecen ---------- */
.colab-lista li::before { transition: transform .5s var(--ease-out), background .3s; }
.anim .colab-lista li::before { transform: scale(0); }
.anim .colab-lista li.visto::before { transform: none; transition-delay: calc(var(--i, 0) * 90ms + 250ms); }

/* ---------- Pie: "Pablo Hudson" grande sube letra por letra ---------- */
.anim .pie-marca { overflow: hidden; padding-bottom: .06em; }
.anim .pie-marca .letra {
  display: inline-block; transform: translateY(105%);
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--l, 0) * 35ms);
}
.anim .pie-marca.visto .letra { transform: none; }

/* ---------- Menú a pantalla completa ---------- */
.anim .menu-links a {
  opacity: 0; transform: translateY(26px);
  transition: opacity .5s var(--ease-out), transform .7s var(--ease-out), background .2s, color .2s;
}
.anim .menu.visible .menu-links a {
  opacity: 1; transform: none;
  transition-delay: calc(var(--i, 0) * 55ms + 100ms), calc(var(--i, 0) * 55ms + 100ms), 0s, 0s;
}
.anim .menu-fotos .ph { opacity: 0; transform: scale(.94); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); }
.anim .menu.visible .menu-fotos .ph { opacity: 1; transform: none; transition-delay: .2s; }
.anim .menu.visible .menu-fotos .ph + .ph { transition-delay: .3s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1000px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links, .idioma { display: none; }
  .menu-btn { display: inline-block; }
  .intro-texto, .mapa-seccion, .colab { grid-template-columns: 1fr; }
  .intro-texto .enlace { grid-column: 1; }
  .pie-arriba { grid-template-columns: 1fr 1fr; }
  .pie-lista { grid-column: 1 / -1; }
  .menu { grid-template-columns: 1fr; }
  .menu-fotos { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .marca { font-size: 16px; }
  .hero-velo { height: 140px; }
  .hero-pie { gap: 16px; }
  .hero-botones { flex-direction: column; align-self: stretch; }
  .hero-bajar { display: none; }
  .cover { height: 470px; }
  .tarjeta { width: 270px; }
  .cover-estado { min-width: 0; flex: 1; font-size: 14px; }
  .intro-tira { grid-template-columns: repeat(3, 1fr); }
  .t1, .t5 { display: none; }
  .pasos li { grid-template-columns: 52px 1fr; gap: 12px; }
  .paso-num { font-size: 44px; }
  .pasos h3 { font-size: 18px; }
  .pie-arriba { grid-template-columns: 1fr; }
}

/* ---------- Portada en celular: solo el video ----------
   El video 4:3 va de borde a borde, con corte limpio (sin difuminados),
   justo debajo del menú. Los botones van encima de la parte de abajo del
   video y el texto queda debajo, sobre el fondo claro de la página.
   Mismo criterio que main.js para elegir hero-celular.mp4 */
@media (max-width: 640px), (max-aspect-ratio: 4/5) {
  /* Menú siempre sólido y claro en celular, para que no tape el video */
  .nav {
    color: var(--basalto); background: rgba(247, 245, 240, .94);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--linea);
    padding-top: 12px; padding-bottom: 12px;
  }
  .nav .menu-btn { background: none; }
  .menu-abierto .nav { color: var(--hueso); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

  .hero {
    height: auto; min-height: 0;
    display: grid; grid-template-columns: 100%;
    padding-top: 70px;
    background: var(--hueso);
  }
  .hero-velo, .hero-sombra, .hero-bajar { display: none; }

  /* El video, limpio */
  .hero-marco { grid-area: 1 / 1; position: relative; inset: auto; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
  .hero-video { -webkit-mask-image: none; mask-image: none; }
  .sonido { left: auto; bottom: auto; top: 12px; right: 12px; width: 38px; height: 38px; }

  /* Botones encima de la parte de abajo del video */
  .hero-pie { display: contents; }
  .hero-botones {
    grid-area: 1 / 1; align-self: end; justify-self: center; position: relative; z-index: 2;
    flex-direction: row; width: calc(100% - 2 * var(--margen)); max-width: 380px;
    gap: 10px; margin-bottom: 14px;
  }
  .hero-botones .btn { flex: 1; min-height: 46px; padding: 0 12px; font-size: 15px; white-space: nowrap; }
  .hero-botones .btn-maiz { box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .6); }
  .hero-botones .btn-linea-claro { background: rgba(30, 28, 26, .45); border-color: rgba(247, 245, 240, .85); }

  /* Texto debajo, sobre el fondo claro */
  .hero-texto {
    grid-area: 2 / 1; justify-self: center;
    padding: 22px var(--margen) 0; max-width: 34ch;
    font-size: 16px; line-height: 1.55; color: var(--texto-2); text-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
