/* =========================================================
   Celebra · Todo para tus eventos
   Noche de festival: azul de marca, cian de la estrella del logo
   y el dorado de las luces. Bricolage Grotesque + DM Sans.
   ========================================================= */
:root {
  --noche: #050a1f;
  --noche-2: #0a1433;
  --noche-3: #101d47;
  --azul: #0e3c9c;
  --cian: #1bb6d3;
  --cian-claro: #7fe3f5;
  --oro: #ffc94d;
  --oro-osc: #f0a91c;
  --rojo: #ef3b55;
  --claro: #eef3ff;
  --claro-2: #b4c0e0;
  --claro-3: #8391b8;
  --linea: rgba(180, 192, 224, .14);
  --vidrio: rgba(10, 20, 51, .62);
  --fuente: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fuente-t: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --e: cubic-bezier(.22, 1, .36, 1);
  --radio: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--noche); color: var(--claro); font: 400 17px/1.6 var(--fuente); -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--fuente-t); font-weight: 800; line-height: 1.04; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--cian); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--cian); color: var(--noche); }

.contenedor { width: min(1200px, 100% - 40px); margin-inline: auto; }
.saltar { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--oro); color: var(--noche); font-weight: 600; text-decoration: none; }
.saltar:focus { top: 12px; }
.seccion { position: relative; padding: clamp(84px, 11vw, 140px) 0; overflow-x: clip; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border: 0; border-radius: 999px; font: 600 15px/1.2 var(--fuente); text-decoration: none; white-space: nowrap; transition: background-color .25s, color .25s, box-shadow .25s, border-color .25s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--oro { background: var(--oro); color: #1a1205; box-shadow: 0 10px 30px -8px rgba(255, 201, 77, .55); }
.btn--oro:hover { background: #ffd877; box-shadow: 0 14px 36px -8px rgba(255, 201, 77, .75); }
.btn--linea { background: rgba(255, 255, 255, .04); color: var(--claro); box-shadow: inset 0 0 0 1.5px rgba(238, 243, 255, .35); }
.btn--linea:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px var(--cian-claro); }
.btn--grande { min-height: 56px; padding: 15px 28px; font-size: 16px; }
.btn--bloque { width: 100%; }

/* ---------- rótulos ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; font: 600 13px/1.3 var(--fuente); letter-spacing: .22em; text-transform: uppercase; color: var(--cian-claro); }
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; transform-origin: left; }
.eyebrow--claro { color: var(--oro); }
.encabezado { max-width: 760px; margin-bottom: 48px; }
.encabezado h2, .intro h2, .eventos h2, .cotiza h2 { font-size: clamp(38px, 5.4vw, 68px); margin-bottom: 22px; }
.encabezado p:not(.eyebrow) { color: var(--claro-2); font-size: 19px; margin: 0; }
.encabezado--centro { margin-inline: auto; text-align: center; }
.encabezado--centro .eyebrow { justify-content: center; }

/* ---------- menú ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; transition: background-color .35s, box-shadow .35s, backdrop-filter .35s; }
.nav.is-scrolled { background: rgba(5, 10, 31, .72); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--linea); }
.nav__fila { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.nav__logo img { width: 92px; height: auto; transition: width .35s var(--e); }
.nav.is-scrolled .nav__logo img { width: 76px; }
.menu { display: flex; align-items: center; gap: 6px; }
.menu > a:not(.btn) { position: relative; padding: 10px 14px; font-weight: 500; font-size: 15px; text-decoration: none; color: var(--claro-2); transition: color .2s; }
.menu > a:not(.btn)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--cian); scale: 0 1; transform-origin: left; transition: scale .35s var(--e); }
.menu > a:not(.btn):hover, .menu > a.activo { color: #fff; }
.menu > a.activo::after, .menu > a:not(.btn):hover::after { scale: 1 1; }
.menu__cta { margin-left: 8px; }
.idioma { display: inline-flex; margin-left: 6px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--linea); }
.idioma button { min-width: 40px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--claro-3); transition: background-color .25s, color .25s; }
.idioma button[aria-pressed="true"] { background: var(--cian); color: var(--noche); }
.idioma button:hover:not([aria-pressed="true"]) { color: #fff; }
.burger { display: none; position: relative; width: 48px; height: 48px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .07); }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: #fff; transition: translate .3s var(--e), rotate .3s var(--e), opacity .2s; }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 23px; }
.burger span:nth-child(3) { top: 29px; }
.burger[aria-expanded="true"] span:nth-child(1) { translate: 0 6px; rotate: 45deg; }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { translate: 0 -6px; rotate: -45deg; }

/* =========================================================
   HERO CON HISTORIA (historia.js)
   ========================================================= */
.hero--historia { position: relative; background: var(--noche); }
.hx-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.hx-escena { --sombra: 1; --dim: 0; position: absolute; inset: 0; z-index: 0; background: var(--noche); }
#hxCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#hxFondo { display: none; }
@media (min-aspect-ratio: 6/5) { #hxCanvas { scale: calc(1 + var(--corre, 0) * .08); } }
@media (max-aspect-ratio: 6/5) { #hxFondo { display: block; position: absolute; inset: -4%; width: 108%; height: 108%; filter: blur(16px) brightness(.7) saturate(1.2); } }
.hx-escena::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: var(--sombra); background: linear-gradient(90deg, rgba(5, 10, 31, .78) 0%, rgba(5, 10, 31, .32) 42%, transparent 66%), linear-gradient(0deg, rgba(5, 10, 31, .9) 0%, transparent 46%), linear-gradient(180deg, rgba(5, 10, 31, .55) 0%, transparent 18%); }
.hx-escena::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at 30% 55%, rgba(5, 10, 31, var(--dim)) 0%, rgba(5, 10, 31, calc(var(--dim) * 1.3)) 100%); }
/* nieve suave por encima del video */
.hx-nieve { position: absolute; inset: -10% 0 0; z-index: 2; pointer-events: none; opacity: .55; background-image: radial-gradient(1.6px 1.6px at 20px 30px, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 140px 90px, #fff 50%, transparent 51%), radial-gradient(2px 2px at 260px 160px, rgba(255, 255, 255, .8) 50%, transparent 51%), radial-gradient(1.4px 1.4px at 90px 220px, #fff 50%, transparent 51%), radial-gradient(1.8px 1.8px at 210px 280px, rgba(255, 255, 255, .7) 50%, transparent 51%); background-size: 300px 300px; animation: nieve 14s linear infinite; }
@keyframes nieve { to { background-position: 40px 300px, -30px 300px, 20px 300px, -20px 300px, 30px 300px; } }

.hx-rotulo { position: absolute; z-index: 3; left: max(20px, calc((100vw - 1200px) / 2)); bottom: clamp(110px, 17vh, 190px); max-width: min(680px, calc(100vw - 40px)); color: #fff; pointer-events: none; }
.hx-rotulo > * { display: block; opacity: 0; translate: 0 18px; filter: blur(6px); transition: opacity .8s var(--e), translate .8s var(--e), filter .8s var(--e); }
.hx-rotulo.is-on > * { opacity: 1; translate: 0 0; filter: blur(0); }
.hx-rotulo.is-on > :nth-child(1) { transition-delay: .08s; }
.hx-rotulo.is-on > :nth-child(2) { transition-delay: .2s; }
.hx-rotulo.is-on > :nth-child(3) { transition-delay: .32s; }
.hx-rotulo__logo { width: clamp(120px, 12vw, 170px); margin-bottom: 26px; filter: drop-shadow(0 6px 30px rgba(27, 182, 211, .45)); }
.hx-rotulo__tag { margin-bottom: 18px; font-size: 13px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--oro); text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.hx-rotulo__tag::before { content: ""; display: inline-block; vertical-align: middle; width: 28px; height: 1.5px; margin-right: 12px; background: currentColor; }
.hx-rotulo__titulo { font: 800 clamp(40px, 5.6vw, 80px)/1.0 var(--fuente-t); letter-spacing: -.025em; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .45); }

.hx-final { position: absolute; z-index: 4; left: 50%; top: 53%; translate: -50% -44%; color: var(--claro); }
.hx-final > * { max-width: 700px; }
.hx-final h1 { font-size: clamp(46px, 6vw, 88px); line-height: .98; margin-bottom: 26px; color: #fff; text-shadow: 0 4px 40px rgba(0, 0, 0, .4); }
.hx-final h1 em { display: block; font-style: normal; background: linear-gradient(90deg, var(--oro), #fff2c4 45%, var(--cian-claro)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: 19px; color: var(--claro-2); max-width: 580px; margin-bottom: 34px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hx .hx-final { pointer-events: none; }
.hx .hx-final.is-ready { pointer-events: auto; }
.hx .hx-final > * { opacity: 0; translate: 0 22px; filter: blur(6px); transition: opacity .8s var(--e), translate .8s var(--e), filter .8s var(--e); }
.hx .hx-final.is-ready > * { opacity: 1; translate: 0 0; filter: blur(0); }
.hx .hx-final.is-ready > :nth-child(1) { transition-delay: .05s; }
.hx .hx-final.is-ready > :nth-child(2) { transition-delay: .17s; }
.hx .hx-final.is-ready > :nth-child(3) { transition-delay: .29s; }
.hx .hx-final.is-ready > :nth-child(4) { transition-delay: .41s; }

.hx-guia { position: absolute; z-index: 5; left: 50%; bottom: 26px; translate: -50% 0; display: flex; align-items: center; gap: 14px; padding: 9px 18px; border-radius: 999px; background: rgba(5, 10, 31, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--claro); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; opacity: 0; transition: opacity .6s ease; }
.hero--historia.is-live .hx-guia { opacity: 1; }
.hero--historia.hx-avanzado .hx-guia > span:first-child { opacity: .6; }
.hx-guia__barra { width: min(160px, 32vw); height: 2px; border-radius: 2px; background: rgba(238, 243, 255, .2); overflow: hidden; }
.hx-guia__barra span { display: block; height: 100%; background: linear-gradient(90deg, var(--cian), var(--oro)); transform-origin: left; scale: 0 1; }

/* sin coreografía (movimiento reducido, ?estatico o red de seguridad): hero de una pantalla */

.hx .hero--historia:not(.is-static) { height: 820vh; }
.hero--historia:not(.is-live) .hx-sticky, .hero--historia.is-static .hx-sticky { position: relative; height: auto; min-height: 100svh; display: flex; align-items: center; }
.hx .hero--historia:not(.is-static) .hx-sticky { position: sticky; height: 100vh; height: 100svh; display: block; }
.hero--historia.is-static .hx-escena, html:not(.hx) .hero--historia .hx-escena { --dim: .5; }
.hero--historia.is-static .hx-rotulo, .hero--historia.is-static .hx-guia, html:not(.hx) .hx-rotulo, html:not(.hx) .hx-guia { display: none; }
.hero--historia.is-static .hx-final, html:not(.hx) .hx-final { position: relative; left: auto; top: auto; translate: none; padding: 170px 0 110px; }

/* =========================================================
   QUÉ HACEMOS
   ========================================================= */
.intro { background: radial-gradient(ellipse 70% 60% at 85% 0%, rgba(14, 60, 156, .45), transparent 70%), var(--noche); }
.intro__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.intro__lead { font-size: 19px; color: var(--claro-2); max-width: 520px; }
.pilares { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; perspective: 1200px; }
.pilar { position: relative; padding: 28px 26px; border-radius: var(--radio); background: linear-gradient(160deg, rgba(27, 182, 211, .1), rgba(16, 29, 71, .55) 50%); box-shadow: inset 0 0 0 1px var(--linea); overflow: hidden; transition: box-shadow .3s; }
.pilar::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 201, 77, .16), transparent 70%); pointer-events: none; }
.pilar:hover { box-shadow: inset 0 0 0 1px rgba(127, 227, 245, .45); }
.pilar svg { width: 40px; height: 40px; color: var(--oro); margin-bottom: 18px; }
.pilar h3 { font-size: 21px; margin-bottom: 8px; letter-spacing: -.01em; }
.pilar p { margin: 0; color: var(--claro-2); font-size: 15.5px; }

/* =========================================================
   ATRACCIONES
   ========================================================= */
.atracciones { background: linear-gradient(180deg, var(--noche) 0%, var(--noche-2) 40%, var(--noche-2) 100%); }
.filtros { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filtro { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .05); color: var(--claro-2); font-size: 15px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--linea); transition: background-color .25s, color .25s, box-shadow .25s; }
.filtro:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(127, 227, 245, .5); }
.filtro.is-on { background: var(--claro); color: var(--noche); box-shadow: none; }
.grid-atr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; perspective: 1400px; }
.atr { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radio); overflow: hidden; background: var(--noche-3); isolation: isolate; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .8); transition: box-shadow .35s; }
.atr.is-oculta { display: none; }
.atr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: scale .8s var(--e), filter .5s; }
.atr::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5, 10, 31, .95) 0%, rgba(5, 10, 31, .55) 34%, transparent 62%); }
.atr::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: box-shadow .3s; }
.atr:hover img { scale: 1.07; }
.atr.is-elegida::after { box-shadow: inset 0 0 0 2.5px var(--oro); }
.atr__info { position: absolute; left: 20px; right: 20px; bottom: 74px; }
.atr__cat { display: inline-block; margin-bottom: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--cian-claro); }
.atr h3 { font-size: 22px; line-height: 1.08; letter-spacing: -.01em; margin-bottom: 6px; }
.atr p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--claro-2); }
.atr__add { position: absolute; left: 20px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px 8px 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: 14px; font-weight: 600; transition: background-color .25s, color .25s; }
.atr__add svg { width: 18px; height: 18px; }
.atr__add:hover { background: rgba(255, 255, 255, .22); }
.atr__add[aria-pressed="true"] { background: var(--oro); color: #1a1205; }

.lista { position: fixed; z-index: 95; left: 50%; bottom: 20px; translate: -50% 0; display: flex; align-items: center; gap: 18px; padding: 10px 10px 10px 22px; border-radius: 999px; background: rgba(10, 20, 51, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 201, 77, .35); transition: opacity .4s var(--e), translate .4s var(--e); }
.lista[hidden] { display: flex; opacity: 0; translate: -50% 30px; pointer-events: none; visibility: hidden; }
.lista__texto { margin: 0; font-size: 15px; white-space: nowrap; }
.lista__texto strong { color: var(--oro); font-size: 18px; }
.lista .btn { min-height: 44px; }

/* =========================================================
   EXPERIENCIA INMERSIVA
   ========================================================= */
.inmersiva { background: var(--noche-2); isolation: isolate; }
.inmersiva__halo { position: absolute; z-index: -1; left: 50%; top: 32%; width: min(1300px, 140vw); height: 700px; translate: -50% 0; background: radial-gradient(ellipse at center, rgba(27, 182, 211, .22), rgba(14, 60, 156, .18) 40%, transparent 70%); pointer-events: none; }
.pantalla { margin: 0 auto 42px; perspective: 1600px; }
.pantalla__marco { position: relative; border-radius: 26px; overflow: hidden; background: #000; aspect-ratio: 1280 / 420; box-shadow: 0 50px 120px -30px rgba(27, 182, 211, .45), 0 0 0 1px rgba(127, 227, 245, .25); }
.pantalla__marco video { width: 100%; height: 100%; object-fit: cover; }
.pantalla__marco::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5, 10, 31, .55), transparent 14%, transparent 86%, rgba(5, 10, 31, .55)); }
.pantalla__rec { position: absolute; z-index: 1; left: 18px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: rgba(5, 10, 31, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.pantalla__rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--rojo); box-shadow: 0 0 0 0 rgba(239, 59, 85, .6); animation: rec 1.8s ease-out infinite; }
@keyframes rec { 70% { box-shadow: 0 0 0 9px rgba(239, 59, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 59, 85, 0); } }
.datos-inm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 56px; }
.datos-inm li { padding: 22px 24px; border-top: 1.5px solid rgba(127, 227, 245, .4); }
.datos-inm strong { display: block; font: 700 22px/1.15 var(--fuente-t); margin-bottom: 6px; }
.datos-inm span { color: var(--claro-2); font-size: 15.5px; }
.colabora { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding: 28px 32px; border-radius: var(--radio); background: linear-gradient(120deg, rgba(255, 201, 77, .12), rgba(27, 182, 211, .1)); box-shadow: inset 0 0 0 1px rgba(255, 201, 77, .28); }
.colabora p { margin: 0; max-width: 680px; color: var(--claro-2); }
.colabora strong { color: #fff; }

/* =========================================================
   EVENTOS ANTERIORES
   ========================================================= */
.eventos { background: linear-gradient(180deg, var(--noche-2), var(--noche)); }
.eventos__cabeza { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 42px; }
.eventos__cabeza h2 { margin-bottom: 0; }
.eventos__lugar { margin: 0; text-align: right; color: var(--claro-2); }
.eventos__lugar strong { color: var(--oro); font-weight: 600; }
.video-yt { margin-bottom: 18px; }
.video-yt__poster, .video-yt iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 7; border: 0; border-radius: 26px; overflow: hidden; background: #000; padding: 0; }
.video-yt__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 1s var(--e), filter .5s; filter: brightness(.7); }
.video-yt__poster:hover img { scale: 1.04; filter: brightness(.85); }
.video-yt__play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: var(--oro); color: #1a1205; box-shadow: 0 0 0 14px rgba(255, 201, 77, .2), 0 20px 50px rgba(0, 0, 0, .5); transition: scale .35s var(--e); }
.video-yt__poster:hover .video-yt__play { scale: 1.08; }
.video-yt__play svg { width: 36px; height: 36px; translate: 3px 0; }
.video-yt__txt { position: absolute; left: 26px; bottom: 22px; text-align: left; color: #fff; }
.video-yt__txt strong { display: block; font: 700 24px/1.1 var(--fuente-t); }
.video-yt__txt small { font-size: 14px; color: var(--claro-2); }
.galeria { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 18px; }
.galeria__item { position: relative; border-radius: 20px; overflow: hidden; background: var(--noche-3); }
.galeria__item.g-ancho { grid-column: span 2; }
.galeria__item.g-alto { grid-row: span 2; grid-column: span 2; }
.galeria__item img { width: 100%; height: 100%; object-fit: cover; transition: scale .9s var(--e); }
.galeria__item:hover img { scale: 1.06; }
.galeria__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 10, 31, .75), transparent 45%); pointer-events: none; }
.galeria__item span { position: absolute; z-index: 1; left: 18px; bottom: 14px; font: 700 17px/1.2 var(--fuente-t); }

/* =========================================================
   COTIZA
   ========================================================= */
.cotiza { isolation: isolate; background: var(--noche); }
.cotiza__fondo { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.cotiza__fondo img { width: 100%; height: 118%; object-fit: cover; opacity: .38; }
.cotiza__fondo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--noche) 8%, rgba(5, 10, 31, .78) 55%, rgba(5, 10, 31, .6)), linear-gradient(0deg, var(--noche), transparent 30%, transparent 70%, var(--noche)); }
.cotiza__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(40px, 6vw, 90px); align-items: center; }
.cotiza__texto > p:not(.eyebrow) { font-size: 19px; color: var(--claro-2); max-width: 520px; }
.contacto { display: grid; gap: 6px; margin-top: 28px; }
.contacto a { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; font: 700 clamp(20px, 2.2vw, 26px)/1.2 var(--fuente-t); text-decoration: none; overflow-wrap: anywhere; transition: color .2s; }
.contacto a:hover { color: var(--cian-claro); }
.contacto svg { width: 26px; height: 26px; color: var(--oro); flex: none; }
.tarjeta-cot { padding: 32px; border-radius: 28px; background: rgba(10, 20, 51, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(127, 227, 245, .22); }
.tarjeta-cot h3 { font-size: 28px; margin-bottom: 22px; }
.campo { display: block; margin-bottom: 18px; }
.campo > span { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--claro-3); }
.campo input { width: 100%; min-height: 50px; padding: 12px 16px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--linea); color: #fff; font: 400 16px/1.3 var(--fuente); transition: box-shadow .2s, background-color .2s; }
.campo input::placeholder { color: var(--claro-3); }
.campo input:focus { outline: none; background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1.5px var(--cian); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px; background: rgba(255, 201, 77, .14); color: #ffe3a1; font-size: 14px; }
.chips li button { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); font-size: 15px; line-height: 1; }
.chips li button:hover { background: rgba(255, 255, 255, .25); }
.chips .chips__vacio { padding: 0; background: none; color: var(--claro-3); font-size: 15px; }
.enlace { font-size: 15px; font-weight: 600; color: var(--cian-claro); text-underline-offset: 4px; }
.tarjeta-cot .btn { margin-top: 8px; }
.tarjeta-cot__nota { margin: 14px 0 0; font-size: 13.5px; color: var(--claro-3); text-align: center; }

/* ---------- footer ---------- */
.footer { position: relative; isolation: isolate; background: #03071a; color: var(--claro-2); padding: 80px 0 28px; font-size: 16px; overflow-x: clip; }
.footer::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 0; width: min(900px, 100%); height: 260px; translate: -50% 0; background: radial-gradient(ellipse at top, rgba(27, 182, 211, .18), transparent 70%); pointer-events: none; }
.footer__linea { position: absolute; top: -1px; left: 0; right: 0; height: 1.5px; transform-origin: left; background: linear-gradient(90deg, transparent, var(--cian) 30%, var(--oro) 65%, transparent); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.footer h2 { font: 600 13px/1.3 var(--fuente); letter-spacing: .2em; text-transform: uppercase; color: var(--claro); margin-bottom: 16px; }
.footer__logo { width: 140px; margin-bottom: 18px; }
.footer p { margin: 0; }
.footer__lista { display: grid; gap: 2px; }
.footer__lista a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; text-decoration: none; transition: color .2s; overflow-wrap: anywhere; }
.footer__lista a:hover { color: #fff; }
.footer__lista svg { width: 18px; height: 18px; color: var(--cian); flex: none; }
.footer__legal { margin-top: 52px !important; padding-top: 22px; border-top: 1px solid var(--linea); font-size: 14px; text-align: center; }

/* ---------- botón flotante ---------- */
.flotante { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #1faa53; color: #fff; box-shadow: 0 12px 28px rgba(16, 110, 52, .45); transition: background-color .2s, opacity .4s, translate .4s var(--e); }
.flotante:hover { background: #178a43; }
.flotante svg { width: 32px; height: 32px; }
.flotante::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1faa53; animation: onda 2.4s ease-out infinite; }
@keyframes onda { from { scale: 1; opacity: .8; } to { scale: 1.6; opacity: 0; } }
.con-lista .flotante { opacity: 0; translate: 0 20px; pointer-events: none; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1080px) {
  .grid-atr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intro__grid, .cotiza__grid { grid-template-columns: minmax(0, 1fr); }
  .menu > a:not(.btn) { padding: 10px 10px; }
}
@media (max-width: 960px) {
  .burger { display: block; }
  .menu { position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 20px 24px; background: rgba(5, 10, 31, .97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 50px rgba(0, 0, 0, .5); opacity: 0; translate: 0 -10px; visibility: hidden; transition: opacity .3s var(--e), translate .3s var(--e), visibility .3s; }
  .menu.abierto { opacity: 1; translate: 0 0; visibility: visible; }
  .menu > a:not(.btn) { padding: 14px 8px; font-size: 18px; border-bottom: 1px solid var(--linea); }
  .menu > a:not(.btn)::after { display: none; }
  .idioma { align-self: flex-start; margin: 14px 0 6px; }
  .menu__cta { margin: 10px 0 0; }
  .nav { background: rgba(5, 10, 31, .4); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .seccion { padding: 76px 0; }
  .contenedor { width: min(1200px, 100% - 32px); }
  .hx .hero--historia:not(.is-static) { height: 680vh; }
  .hx-escena::before { background: linear-gradient(0deg, rgba(5, 10, 31, .94) 0%, rgba(5, 10, 31, .6) 34%, transparent 56%), linear-gradient(180deg, rgba(5, 10, 31, .6) 0%, transparent 16%); }
  .hx-rotulo { left: 16px; right: 16px; bottom: 96px; }
  .hx-rotulo__titulo { font-size: clamp(32px, 9vw, 42px); line-height: 1.05; }
  .hx-rotulo__logo { width: 120px; margin-bottom: 18px; }
  .hx-final { top: auto; bottom: 84px; translate: -50% 0; }
  .hx-final h1 { font-size: clamp(38px, 11vw, 50px); margin-bottom: 16px; }
  .hero__lead { font-size: 16.5px; margin-bottom: 24px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero--historia.is-static .hx-final, html:not(.hx) .hx-final { padding: 120px 0 64px; }
  .hx-guia { bottom: 30px; left: 16px; translate: none; }
  .encabezado { margin-bottom: 34px; }
  .encabezado p:not(.eyebrow), .intro__lead, .cotiza__texto > p:not(.eyebrow) { font-size: 17px; }
  .pilares { grid-template-columns: minmax(0, 1fr); }
  .filtros { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .filtros::-webkit-scrollbar { display: none; }
  .filtro { flex: none; }
  .grid-atr { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .atr { aspect-ratio: 3 / 4.4; border-radius: 18px; }
  .atr__info { left: 14px; right: 14px; bottom: 62px; }
  .atr h3 { font-size: 17px; }
  .atr p { display: none; }
  .atr__cat { font-size: 10.5px; margin-bottom: 4px; }
  .atr__add { left: 12px; bottom: 12px; min-height: 40px; padding: 7px 13px 7px 10px; font-size: 13px; }
  .lista { left: 16px; right: 16px; translate: 0 0; justify-content: space-between; gap: 10px; padding-left: 18px; }
  .lista[hidden] { translate: 0 30px; }
  .lista__texto { white-space: normal; font-size: 14px; line-height: 1.25; }
  .pantalla__marco { aspect-ratio: 16 / 10; border-radius: 18px; }
  .pantalla__rec { font-size: 10.5px; left: 12px; bottom: 12px; }
  .datos-inm { grid-template-columns: minmax(0, 1fr); gap: 0; margin-bottom: 36px; }
  .datos-inm li { padding: 18px 4px; }
  .colabora { padding: 24px 22px; }
  .eventos__lugar { text-align: left; }
  .video-yt__poster, .video-yt iframe { aspect-ratio: 16 / 10; border-radius: 18px; }
  .video-yt__play { width: 72px; height: 72px; }
  .video-yt__txt { left: 18px; bottom: 16px; }
  .galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 12px; }
  .galeria__item.g-ancho, .galeria__item.g-alto { grid-column: span 2; }
  .galeria__item.g-alto { grid-row: span 2; }
  .tarjeta-cot { padding: 26px 20px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* =========================================================
   Coreografía (motion.js + motion-extra.js)
   Todo vive bajo .m (lo pone el <head> solo si no se pidió menos movimiento).
   ========================================================= */
.palabra { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.palabra > span { display: inline-block; }
.m [data-m] { opacity: 0; }
.m [data-m="palabras"].dividido { opacity: 1; }
.m [data-m="palabras"] .palabra > span { opacity: 0; translate: 0 110%; }
.m [data-m].eyebrow::before { scale: 0 1; transition: scale .7s var(--e) .25s; }
.m [data-m].eyebrow.on::before { scale: 1 1; }

.progreso { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 101; pointer-events: none; transform-origin: left; scale: 0 1; background: linear-gradient(90deg, var(--cian), var(--oro)); }

.m .footer__linea { scale: 0 1; }
.m .footer::before { opacity: 0; }
.m .footer [data-f] { opacity: 0; translate: 0 22px; filter: blur(6px); }
.m .footer.on .footer__linea { scale: 1 1; transition: scale 1.1s var(--e); }
.m .footer.on::before { opacity: 1; transition: opacity 1.2s ease .45s; }
.m .footer.on [data-f] { opacity: 1; translate: 0 0; filter: blur(0); transition: opacity .8s ease, translate .8s var(--e), filter .8s ease; transition-delay: calc(.6s + var(--i, 0) * .11s); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hx-nieve { display: none; }
}
.chips [hidden] { display: none; }
.pilar::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(127, 227, 245, .14), transparent 70%); transition: opacity .3s; }
.pilar:hover::before { opacity: 1; }
.atr--medida { display: flex; background: radial-gradient(circle at 70% 25%, rgba(27, 182, 211, .35), transparent 55%), linear-gradient(160deg, var(--azul), var(--noche-3)); }
.atr--medida::before { background: none; }
.atr__estrella { position: absolute; right: 12%; top: 14%; width: 38%; height: auto; aspect-ratio: 1; color: var(--cian); filter: drop-shadow(0 0 30px rgba(27, 182, 211, .6)); rotate: -12deg; }
.atr__add--link { text-decoration: none; gap: 8px; padding: 8px 14px 8px 16px; }
.atr--medida p { color: #d6e4ff; }
@media (max-width: 760px) { .atr--medida p { display: block; font-size: 13px; } }
