:root {
  --blue: #476579;
  --blue-dark: #203846;
  --blue-deep: #142833;
  --cream: #f7eee4;
  --paper: #fffaf5;
  --white: #ffffff;
  --gold: #f4aa24;
  --sky: #349be0;
  --red: #ec1c24;
  --ink: #172934;
  --muted: #697a84;
  --line: rgba(23, 41, 52, 0.12);
  --shadow: 0 24px 70px rgba(18, 39, 51, 0.14);
  --container: min(1160px, calc(100% - 40px));
  --radius-xl: 34px;
  --radius-lg: 25px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img, video { display: block; max-width: 100%; }
button { font: inherit; }
.container { width: var(--container); margin-inline: auto; }
.section { padding: 108px 0; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 10px;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}
.skip-link:focus { transform: none; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 15px 0;
  transition: padding .28s ease, background .28s ease, box-shadow .28s ease;
}
.site-header.scrolled {
  padding: 8px 0;
  background: rgba(32, 56, 70, .94);
  box-shadow: 0 10px 35px rgba(5, 18, 26, .18);
  backdrop-filter: blur(16px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 850; letter-spacing: -.02em; }
.brand img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 9px 24px rgba(0,0,0,.16);
}
.brand span { font-size: .95rem; }
.main-nav { display: flex; align-items: center; gap: 5px; }
.main-nav a {
  padding: 10px 15px;
  border-radius: 999px;
  color: rgba(255,255,255,.88);
  font-size: .9rem;
  font-weight: 760;
  transition: background .22s ease, color .22s ease;
}
.main-nav a:hover, .main-nav a:focus-visible { background: rgba(255,255,255,.1); color: #fff; outline: none; }
.menu-button { display: none; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgba(52,155,224,.17), transparent 30%),
    radial-gradient(circle at 16% 78%, rgba(244,170,36,.15), transparent 29%),
    linear-gradient(140deg, #172d39 0%, #304d60 46%, #4a687d 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(8px); pointer-events: none; }
.hero-glow-one { width: 230px; height: 230px; right: 6%; top: 14%; border: 1px solid rgba(255,255,255,.11); }
.hero-glow-two { width: 420px; height: 420px; right: -220px; bottom: -170px; border: 1px solid rgba(244,170,36,.24); }
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(42px, 7vw, 92px);
  align-items: center;
  padding-top: 115px;
  padding-bottom: 95px;
}
.hero-copy { max-width: 720px; }
.kicker {
  margin: 0 0 19px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,.78);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .17em;
}
.kicker span { width: 34px; height: 2px; border-radius: 9px; background: var(--gold); }
.kicker-dark { color: var(--blue); }
.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3.3rem, 7vw, 6.6rem);
  line-height: .93;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.hero-text {
  max-width: 675px;
  margin: 30px 0 0;
  color: rgba(255,255,255,.83);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.55;
}
.hero-note { margin: 12px 0 0; color: var(--cream); font-weight: 850; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 31px; }
.button {
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 850;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--blue-deep); background: var(--gold); box-shadow: 0 13px 28px rgba(244,170,36,.22); }
.button-ghost { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07); color: #fff; }
.button-ghost:hover { background: rgba(255,255,255,.12); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 31px; }
.hero-tags span, .video-event-list span {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.065);
  color: rgba(255,255,255,.76);
  font-size: .74rem;
  font-weight: 750;
}
.hero-logo-wrap { display: grid; place-items: center; }
.logo-card {
  position: relative;
  width: min(470px, 42vw);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.logo-card::before {
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: 38% 62% 58% 42% / 47% 44% 56% 53%;
  background: rgba(255,255,255,.075);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 45px 90px rgba(0,0,0,.22);
  animation: morph 10s ease-in-out infinite alternate;
}
.logo-card img {
  position: relative;
  z-index: 2;
  width: 83%;
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(8, 23, 31, .23);
  animation: floatLogo 5.5s ease-in-out infinite;
}
.logo-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.logo-ring-one { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.logo-ring-two { width: 78%; height: 78%; border-style: dashed; border-color: rgba(244,170,36,.24); animation: spinReverse 20s linear infinite; }
.scroll-indicator {
  position: absolute;
  z-index: 4;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 7px;
  color: rgba(255,255,255,.6);
  font-size: .63rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.scroll-indicator i { width: 24px; height: 37px; border: 1px solid rgba(255,255,255,.27); border-radius: 99px; position: relative; }
.scroll-indicator i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; transform: translateX(-50%); border-radius: 99px; background: var(--gold); animation: scrollDot 1.7s ease-in-out infinite; }

.events { background: var(--paper); }
.section-heading { max-width: 790px; margin-bottom: 48px; }
.section-heading h2, .video-copy h2, .attention-heading h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5.2vw, 5.25rem);
  line-height: .98;
  letter-spacing: -.058em;
  text-wrap: balance;
}
.event-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.event-card {
  position: relative;
  min-height: 245px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.82);
  box-shadow: 0 14px 34px rgba(27,48,60,.055);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.event-card:nth-child(1), .event-card:nth-child(2) { grid-column: span 6; }
.event-card:nth-child(n+3) { grid-column: span 4; }
.event-card::before {
  content: "";
  position: absolute;
  right: -76px;
  top: -84px;
  width: 195px;
  height: 195px;
  border-radius: 50%;
  background: linear-gradient(140deg, rgba(52,155,224,.13), rgba(244,170,36,.17));
  transition: transform .32s ease;
}
.event-card:nth-child(2)::before, .event-card:nth-child(5)::before { background: linear-gradient(140deg, rgba(236,28,36,.1), rgba(244,170,36,.18)); }
.event-card:hover { transform: translateY(-7px); border-color: rgba(52,155,224,.24); box-shadow: var(--shadow); }
.event-card:hover::before { transform: scale(1.25); }
.event-number { position: relative; z-index: 2; color: var(--blue); font-size: .72rem; font-weight: 950; letter-spacing: .14em; }
.event-icon {
  position: absolute;
  right: 28px;
  top: 25px;
  z-index: 2;
  color: var(--gold);
  font-size: 1rem;
  font-weight: 950;
}
.event-card h3 {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 39px;
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.event-line { position: absolute; left: 28px; bottom: 24px; width: 54px; height: 3px; border-radius: 99px; background: var(--gold); transition: width .3s ease; }
.event-card:hover .event-line { width: 100px; }

.video-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, var(--blue-deep), #3d5e72 62%, var(--blue));
}
.video-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.16) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, #000, transparent 74%);
}
.video-accent { position: absolute; width: 580px; height: 580px; right: -260px; bottom: -300px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); }
.video-grid { position: relative; z-index: 2; display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(42px, 6vw, 74px); align-items: center; }
.video-copy p:not(.kicker) { margin: 19px 0 0; color: rgba(255,255,255,.7); }
.video-event-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.video-shell {
  padding: 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.075);
  box-shadow: 0 38px 90px rgba(0,0,0,.25);
  backdrop-filter: blur(14px);
}
.video-frame { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 25px; background: #0d1d26; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; background: #0d1d26; }
.video-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(to top, rgba(8,22,30,.72), rgba(8,22,30,.08) 66%);
  transition: opacity .28s ease, visibility .28s ease;
}
.video-overlay.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.play-circle { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); box-shadow: 0 0 0 12px rgba(244,170,36,.16), 0 18px 42px rgba(0,0,0,.26); transition: transform .22s ease; }
.video-overlay:hover .play-circle { transform: scale(1.07); }
.play-circle i { margin-left: 5px; width: 0; height: 0; border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-left: 20px solid var(--blue-deep); }
.video-overlay strong { font-size: .9rem; letter-spacing: .01em; }
.video-footer { display: flex; justify-content: space-between; gap: 16px; padding: 15px 9px 4px; color: rgba(255,255,255,.63); font-size: .78rem; }
.video-footer strong { color: #fff; }

.attention { background: #f0ebe5; }
.attention-card {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 64px);
  border: 1px solid rgba(23,41,52,.07);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: 0 30px 85px rgba(26,47,59,.085);
}
.attention-card::after { content: ""; position: absolute; width: 280px; height: 280px; right: -115px; top: -135px; border-radius: 50%; background: rgba(244,170,36,.13); }
.attention-heading { position: relative; z-index: 2; max-width: 800px; }
.question-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 45px; }
.question-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  transition: transform .26s ease, box-shadow .26s ease;
}
.question-card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(25,44,55,.08); }
.question-card span { color: var(--blue); font-size: .7rem; font-weight: 950; letter-spacing: .14em; }
.question-card p { margin: 0; max-width: 280px; font-size: 1.22rem; font-weight: 850; line-height: 1.22; }
.attention-note { position: relative; z-index: 2; margin: 25px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 1.05rem; font-weight: 850; }

.marquee { overflow: hidden; padding: 22px 0; background: var(--gold); color: var(--blue-deep); }
.marquee-track { width: max-content; display: flex; align-items: center; gap: 22px; animation: marquee 26s linear infinite; font-size: clamp(1.05rem, 2vw, 1.42rem); font-weight: 950; letter-spacing: -.02em; }
.marquee-track i { font-style: normal; opacity: .48; }

.site-footer { padding: 35px 0; background: #142833; color: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand img { width: 59px; height: 59px; object-fit: cover; border-radius: 14px; border: 1px solid rgba(255,255,255,.13); }
.footer-brand div { display: grid; gap: 2px; }
.footer-brand strong { font-size: .94rem; }
.footer-brand span { color: rgba(255,255,255,.6); font-size: .8rem; }
.back-top { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 15px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; color: rgba(255,255,255,.77); font-size: .8rem; font-weight: 850; transition: background .22s ease, color .22s ease; }
.back-top:hover { background: rgba(255,255,255,.08); color: #fff; }

/* El contenido es visible por defecto. JavaScript solo mejora la animación. */
.reveal { opacity: 1; transform: none; }
.reveal.will-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.72,.26,1); }
.reveal.will-reveal.is-visible { opacity: 1; transform: none; }
.hero-enter { animation: fadeUp .75s .08s both; }
.hero-enter-delay { animation-delay: .18s; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes floatLogo { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-11px) rotate(1deg); } }
@keyframes morph { 0% { border-radius: 38% 62% 58% 42% / 47% 44% 56% 53%; } 100% { border-radius: 57% 43% 42% 58% / 39% 61% 39% 61%; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%,0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,14px); } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 940px) {
  .section { padding: 84px 0; }
  .hero { min-height: auto; }
  .hero-grid, .video-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-grid { padding-top: 122px; padding-bottom: 92px; }
  .hero-logo-wrap { order: -1; }
  .logo-card { width: min(390px, 86vw); }
  .hero h1 { font-size: clamp(3rem, 10.5vw, 5rem); }
  .scroll-indicator { display: none; }
  .event-card:nth-child(n) { grid-column: span 6; }
  .event-card:last-child { grid-column: span 12; }
  .video-grid { max-width: 780px; }
}

@media (max-width: 720px) {
  :root { --container: min(100% - 28px, 1160px); --radius-xl: 25px; --radius-lg: 20px; }
  .site-header { padding: 9px 0; background: rgba(32,56,70,.92); backdrop-filter: blur(15px); }
  .brand span { display: none; }
  .brand img { width: 49px; height: 49px; border-radius: 12px; }
  .menu-button {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 11px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    background: rgba(255,255,255,.07);
    cursor: pointer;
  }
  .menu-button span { display: block; width: 20px; height: 2px; border-radius: 99px; background: #fff; transition: transform .22s ease, opacity .22s ease; }
  .menu-button span + span { margin-top: 4px; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .main-nav {
    position: fixed;
    inset: 75px 14px auto;
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 20px;
    background: rgba(20,40,51,.985);
    box-shadow: 0 28px 65px rgba(0,0,0,.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { padding: 14px 16px; }
  .hero-grid { padding-top: 102px; gap: 27px; }
  .logo-card { width: min(305px, 86vw); }
  .logo-card img { border-radius: 20px; }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 4.1rem); }
  .hero-text { margin-top: 22px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .section-heading h2, .video-copy h2, .attention-heading h2 { font-size: clamp(2.35rem, 11.5vw, 3.8rem); }
  .event-grid { grid-template-columns: 1fr; }
  .event-card:nth-child(n) { grid-column: 1; min-height: 190px; }
  .question-grid { grid-template-columns: 1fr; }
  .question-card { min-height: 145px; }
  .video-shell { padding: 8px; border-radius: 22px; }
  .video-frame { border-radius: 17px; }
  .play-circle { width: 65px; height: 65px; }
  .video-footer { flex-direction: column; gap: 2px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .section { padding: 72px 0; }
  .hero-tags span { font-size: .7rem; }
  .event-card, .question-card { padding: 21px; }
  .event-card h3 { left: 21px; right: 21px; }
  .event-line { left: 21px; }
}

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