/* Fuentes alojadas en el sitio (subset latin de Google Fonts: cubre inglés y español) */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/montserrat-latin-var.woff2) format("woff2"); }
@font-face { font-family: "Kaushan Script"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/kaushan-script-latin.woff2) format("woff2"); }
:root {
  --color-primary-dark: #0B3960;
  --color-primary-main: #146EBE;
  --color-primary-light: #2AA9E0;
  --color-footer-bg: #072742;
  --color-accent-yellow: #F4C430;
  --bg-ice-blue: #EBF3F9;
  --border-card: #E2E8F0;
  --text-body: #4A5568;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-script: "Kaushan Script", cursive;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--text-body); font: 400 1rem/1.65 var(--font-head); overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { color: var(--color-primary-dark); line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--color-primary-dark); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--color-primary-light); outline-offset: 3px; border-radius: 6px; }
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn { --fill: var(--color-primary-dark); --fill-ink: #fff; position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: .6em; min-height: 52px; padding: 0 1.5em 0 1.2em; border-radius: 999px; font: 700 1rem/1 var(--font-head); text-decoration: none; transition: color .35s, transform .2s; }
.btn::after { content: ""; position: absolute; z-index: -1; left: 1.8em; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--fill); transform: scale(0); transition: transform .55s cubic-bezier(.7, 0, .2, 1); }
@media (hover: hover) { .btn:hover { color: var(--fill-ink); } .btn:hover::after { transform: scale(60); } }
.btn--main { background: var(--color-primary-main); color: #fff; }
.link { display: inline-flex; align-items: center; gap: .45em; font: 700 1.05rem/1.2 var(--font-head); color: var(--color-primary-dark); text-decoration: none; }
.link .ico { width: .9em; height: .9em; transition: transform .45s cubic-bezier(.7, 0, .2, 1); }
.link--back .ico { rotate: 180deg; }
@media (hover: hover) { .link--back:hover .ico { transform: translateX(4px); } }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.5rem); font-weight: 500; line-height: 1.35; letter-spacing: -.015em; color: var(--color-primary-dark); }
.spark { display: inline-block; width: .42em; height: .42em; margin-left: .12em; vertical-align: .55em; fill: var(--color-primary-light); }
.h-big { font-size: clamp(3rem, 8.6vw, 8.6rem); font-weight: 800; line-height: .9; letter-spacing: -.055em; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 48px; margin-bottom: clamp(36px, 7vh, 80px); }
.section-head .lead { max-width: 27rem; }

/* Navegación (siempre sólida en esta página) */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--border-card); }
.nav__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.nav__logo img { height: 58px; width: auto; }
.nav__links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--color-primary-dark); padding: 6px 0; }
.nav__links a[aria-current] { box-shadow: inset 0 -2px var(--color-primary-light); }
.nav__cta { min-height: 46px; font-size: .95rem; }
.nav__toggle { display: none; background: none; border: 0; padding: 10px; color: var(--color-primary-dark); cursor: pointer; }
.nav__toggle .ico { width: 28px; height: 28px; }
@media (max-width: 860px) {
  .nav__bar { height: 64px; }
  .nav__logo img { height: 48px; }
  .nav__toggle { display: block; }
  .nav__cta { display: none; }
  .nav__links { position: fixed; inset: 64px 0 auto; flex-direction: column; gap: 0; background: #fff; padding: 8px var(--gutter) 20px; box-shadow: 0 18px 30px -18px rgba(11, 57, 96, .35); opacity: 0; visibility: hidden; transition: .25s; }
  .nav__links a { display: block; padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--border-card); }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
}

/* Encabezado */
.hero { padding: clamp(48px, 9vh, 110px) 0 clamp(36px, 6vh, 70px); }
.hero .link--back { margin-bottom: clamp(24px, 4vh, 44px); }
.hero h1 { font-size: clamp(3.2rem, 11vw, 11rem); font-weight: 800; line-height: .88; letter-spacing: -.06em; }
.hero h1 em { font-style: normal; color: var(--color-primary-main); }
.hero__body { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; margin-top: clamp(24px, 4vh, 44px); }
.hero__body .lead { max-width: 34rem; }
.hero__jump { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.hero__jump a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(11, 57, 96, .22); font-weight: 600; color: var(--color-primary-dark); text-decoration: none; transition: background .3s, color .3s; }
@media (hover: hover) { .hero__jump a:hover { background: var(--color-primary-dark); color: #fff; } }

/* Carrusel infinito de fotos (versión sin React del image-auto-slider) */
.marquee { display: grid; gap: clamp(12px, 1.6vw, 22px); padding-bottom: clamp(60px, 10vh, 120px); overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: clamp(12px, 1.6vw, 22px); width: max-content; list-style: none; margin: 0; padding: 0; }
.marquee__track li { flex: none; width: clamp(170px, 21vw, 300px); aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: var(--bg-ice-blue); }
.marquee__track img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) { .marquee__track li:hover img { transform: scale(1.06); } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Antes y después */
.ba { padding: clamp(70px, 12vh, 140px) 0; background: var(--bg-ice-blue); }
.ba__grid { display: grid; gap: clamp(28px, 4vw, 48px) clamp(16px, 2vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); list-style: none; margin: 0; padding: 0; }
.pair { display: grid; gap: 14px; }
.pair__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair figure { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: #d9e5ef; }
.pair img { width: 100%; height: 100%; object-fit: cover; }
.pair figcaption { position: absolute; left: 12px; top: 12px; padding: 7px 13px; border-radius: 999px; font: 700 .75rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; background: rgba(255, 255, 255, .92); color: var(--color-primary-dark); }
.pair figure + figure figcaption { background: var(--color-primary-main); color: #fff; }
.pair h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 800; letter-spacing: -.035em; }
.pair p { margin-top: -8px; }

/* Videos */
.videos { padding: clamp(70px, 12vh, 140px) 0; background: var(--color-footer-bg); color: #cfe3f3; }
.videos .h-big { color: #fff; }
.videos .lead { color: #a9c6de; }
.videos__grid { display: grid; gap: clamp(14px, 2vw, 26px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); list-style: none; margin: 0; padding: 0; }
.clip { position: relative; margin: 0; border-radius: 26px; overflow: hidden; background: #0d3150; aspect-ratio: 9 / 16; }
.clip video { width: 100%; height: 100%; object-fit: cover; }
.clip figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 18px; background: linear-gradient(to top, rgba(7, 39, 66, .9), transparent); color: #fff; font-size: 1.25rem; font-weight: 800; letter-spacing: -.03em; pointer-events: none; }
.clip__toggle { position: absolute; inset: 0; width: 100%; border: 0; background: none; cursor: pointer; }
.clip__toggle span { position: absolute; right: 16px; top: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(7, 39, 66, .6); color: #fff; }
.clip__toggle .ico { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.clip__toggle .i-play { display: none; }
.clip.is-paused .i-play { display: block; }
.clip.is-paused .i-pause { display: none; }

/* Llamado final */
.cta { padding: clamp(80px, 12vh, 150px) 0; text-align: center; }
.cta h2 { font-size: clamp(2.4rem, 6.4vw, 6rem); font-weight: 800; line-height: .95; letter-spacing: -.05em; }
.cta p { margin: 18px auto 30px; font: 400 clamp(1.6rem, 3vw, 2.4rem)/1.1 var(--font-script); color: var(--color-primary-main); }

.footer { background: var(--color-footer-bg); color: #a9c6de; padding: 40px 0 calc(28px + env(safe-area-inset-bottom)); font-size: .95rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.footer img { height: 72px; width: auto; }
.footer address { font-style: normal; display: grid; gap: 4px; }
.footer a { color: #fff; text-decoration: none; }

/* Entrada: cortina azul con el logo que sube, luego el título línea por línea, y lo demás aparece al bajar */
.curtain { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--color-primary-dark); pointer-events: none; animation: curtain .9s cubic-bezier(.76, 0, .24, 1) .8s forwards; }
.curtain img { width: min(360px, 70vw); height: auto; animation: curtain-logo 1.2s ease forwards; }
@keyframes curtain { to { transform: translateY(-100%); border-radius: 0 0 50% 50% / 0 0 18vh 18vh; } }
@keyframes curtain-logo { 0% { opacity: 0; transform: scale(.92); } 30% { opacity: 1; transform: scale(1); } 70% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-40px); } }
.hero .ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero .ln > span { display: inline-block; transform: translateY(105%); animation: up 1s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(1.25s + var(--d, 0s)); }
.hero .ln + .ln > span { --d: .12s; }
.hero .link--back, .hero__body > * { opacity: 0; animation: fade .8s ease forwards; animation-delay: 1.6s; }
.hero__body > * + * { animation-delay: 1.75s; }
.marquee__track { opacity: 0; animation: marquee 60s linear infinite, slide-l 1.2s cubic-bezier(.2, .8, .2, 1) 1.65s forwards; }
.marquee__track--rev { animation: marquee 70s linear infinite reverse, slide-r 1.2s cubic-bezier(.2, .8, .2, 1) 1.8s forwards; }
@keyframes up { to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes slide-l { from { opacity: 0; translate: 12% 0; } to { opacity: 1; translate: 0 0; } }
@keyframes slide-r { from { opacity: 0; translate: -12% 0; } to { opacity: 1; translate: 0 0; } }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .curtain { display: none; }
  .hero .ln > span, .hero .link--back, .hero__body > *, .marquee__track, .reveal { opacity: 1; transform: none; animation: none; }
  .marquee { overflow-x: auto; }
  .marquee__track { animation: none; }
  .marquee__track [aria-hidden] { display: none; }
}
