/* ═══════════════════════════════════════════════════════════════
   COLEGIO AURORA — Demo Devogatec
   Paleta: navy + dorado · Efectos: parallax, sticky scroll-cine,
   reveals, marquee, glassmorphism, hover-expansion
   ═══════════════════════════════════════════════════════════════ */

:root {
  --navy: #0A1F44;
  --navy-deep: #061430;
  --navy-soft: #16305E;
  --gold: #F5C86A;
  --gold-deep: #D9A83E;
  --ivory: #FAF6EE;
  --cream: #FFF9EF;
  --ink: #1B2440;
  --muted: #5A6478;
  --white: #ffffff;
  --radius: 22px;
  --shadow-lg: 0 24px 60px -20px rgba(6, 20, 48, 0.35);
  --shadow-md: 0 12px 32px -12px rgba(6, 20, 48, 0.25);
  --grad-gold: linear-gradient(90deg, #F5C86A, #E8B54A);
  --grad-navy: linear-gradient(160deg, #0A1F44 0%, #16305E 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--ivory);
  color: var(--ink);
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─────────────── UTILIDADES ─────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 700; margin-bottom: 14px;
}
.eyebrow::before { content: '✦'; font-size: 0.9em; }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; padding: 0 24px; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.1; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }

h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: 600; }
h2 em, h1 em { font-style: italic; color: var(--gold-deep); }

/* ─────────────── BOTONES ─────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn--gold {
  background: var(--grad-gold); color: var(--navy-deep);
  box-shadow: 0 8px 24px -8px rgba(217, 168, 62, 0.55);
}
.btn--gold::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, #FFE3A6, #F5C86A);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
  z-index: 0;
}
.btn--gold:hover::after { transform: scaleX(1); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(217, 168, 62, 0.6); }
.btn--gold > * { position: relative; z-index: 1; }
.btn--ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.45); color: var(--white);
  background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-2px); }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }
.btn--full { width: 100%; }

/* subrayado animado (hover-underline estilo Korowa) */
[data-hover-underline] { position: relative; }
[data-hover-underline]::after {
  content: ''; position: absolute; left: 0; bottom: -3px; height: 2px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
[data-hover-underline]:hover::after { transform: scaleX(1); transform-origin: left; }

/* ─────────────── PRELOADER ─────────────── */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--navy-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__logo {
  font-family: Georgia, serif; font-size: 2rem; color: var(--ivory); letter-spacing: 0.06em;
}
.preloader__bar { width: 160px; height: 2px; background: rgba(255,255,255,0.15); overflow: hidden; border-radius: 2px; }
.preloader__bar span { display: block; height: 100%; width: 40%; background: var(--grad-gold); animation: loadbar 1.1s var(--ease) infinite; }
@keyframes loadbar { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* ─────────────── NAVBAR ─────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0; transition: all 0.45s var(--ease);
}
.nav__inner {
  max-width: 1240px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav.is-scrolled {
  padding: 10px 0;
}
.nav.is-scrolled .nav__inner {
  background: rgba(10, 31, 68, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(245, 200, 106, 0.18);
  border-radius: 999px; padding: 10px 22px;
  box-shadow: var(--shadow-md);
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: Georgia, serif; font-size: 1.25rem; color: var(--white);
}
.nav__logo b { color: var(--gold); }
.nav__links { display: flex; gap: 26px; }
.nav__link { color: rgba(255,255,255,0.85); font-size: 0.95rem; font-weight: 500; }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { width: 22px; height: 2px; background: var(--white); transition: 0.3s; }

/* ─────────────── MENÚ MÓVIL ─────────────── */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: rgba(6, 20, 48, 0.98);
  display: flex; align-items: center; justify-content: center; text-align: center;
  opacity: 0; visibility: hidden; transition: 0.4s var(--ease);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 22px; }
.mobile-menu a { color: var(--ivory); font-size: 1.6rem; font-family: Georgia, serif; }
.mobile-menu .btn { margin-top: 10px; }

/* ─────────────── MODAL LOGIN ─────────────── */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(6, 20, 48, 0.7); backdrop-filter: blur(6px); }
.modal__card {
  position: relative; z-index: 1; max-width: 400px; margin: 10vh auto 0;
  background: var(--white); border-radius: var(--radius); padding: 34px 30px;
  box-shadow: var(--shadow-lg); animation: modalIn 0.45s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(0.96); } to { opacity: 1; transform: none; } }
.modal__close { position: absolute; top: 14px; right: 16px; font-size: 1.1rem; color: var(--muted); }
.modal__card h3 { font-size: 1.5rem; margin-bottom: 4px; }
.modal__sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.modal__tabs { display: flex; gap: 8px; background: var(--ivory); padding: 5px; border-radius: 999px; margin-bottom: 18px; }
.modal__tab { flex: 1; padding: 9px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; color: var(--muted); transition: 0.3s; }
.modal__tab.is-active { background: var(--navy); color: var(--white); }
.modal__form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 14px; }
.modal__form input {
  width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid #E5E0D5;
  border-radius: 12px; font-size: 0.95rem; transition: border-color 0.3s;
}
.modal__form input:focus { outline: none; border-color: var(--gold); }
.modal__note { font-size: 0.78rem; color: var(--muted); text-align: center; margin-top: 12px; }

/* ─────────────── HERO ─────────────── */
.hero {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; align-items: center;
  background: var(--grad-navy);
}
.hero__bg { position: absolute; inset: -12% 0; will-change: transform; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero__student {
  position: absolute; right: 6vw; bottom: 0; height: 82vh; z-index: 2;
  will-change: transform;
}
.hero__student img { height: 100%; width: auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,0.45)); }
.hero__glow {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; pointer-events: none;
}
.hero__glow--1 { width: 480px; height: 480px; background: #2E4A8F; top: -120px; left: -100px; }
.hero__glow--2 { width: 380px; height: 380px; background: rgba(245, 200, 106, 0.35); bottom: -80px; left: 30%; }
.hero__content { position: relative; z-index: 3; max-width: 640px; padding: 120px 28px 80px; margin-left: max(28px, calc((100vw - 1240px) / 2)); }
.hero__eyebrow { color: var(--gold); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.8rem; font-weight: 700; margin-bottom: 18px; }
.hero__title { color: var(--white); font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.05; margin-bottom: 22px; }
.hero__title em { color: var(--gold); }
.hero__sub { color: rgba(255, 255, 255, 0.82); font-size: 1.15rem; line-height: 1.65; max-width: 480px; margin-bottom: 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.65); font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 3;
}
.hero__scroll span { width: 1.5px; height: 42px; background: linear-gradient(to bottom, var(--gold), transparent); animation: scrollPulse 2s infinite; }
@keyframes scrollPulse { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ─────────────── SCROLL-CINE ─────────────── */
.cine__track { height: 400vh; position: relative; }
.cine__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.cine__frame {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s var(--ease);
}
.cine__frame.is-active { opacity: 1; }
.cine__frame img { width: 100%; height: 100%; object-fit: cover; }
.cine__frame::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,20,48,0.75) 0%, transparent 45%);
}
.cine__caption {
  position: absolute; left: max(28px, calc((100vw - 1240px) / 2)); bottom: 12vh; z-index: 2; color: var(--white);
  opacity: 0; transform: translateY(26px); transition: 0.8s var(--ease) 0.15s;
}
.cine__frame.is-active .cine__caption { opacity: 1; transform: none; }
.cine__num { font-family: Georgia, serif; color: var(--gold); font-size: 1rem; letter-spacing: 0.3em; }
.cine__caption h3 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin: 6px 0 10px; }
.cine__caption p { color: rgba(255,255,255,0.8); max-width: 420px; }
.cine__progress {
  position: absolute; right: 34px; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 3px; height: 180px; background: rgba(255,255,255,0.25); border-radius: 3px; overflow: hidden;
}
.cine__progress span { display: block; width: 100%; height: 100%; background: var(--grad-gold); transform: scaleY(0); transform-origin: top; }

/* ─────────────── NOSOTROS (split sticky) ─────────────── */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  max-width: 1240px; margin: 0 auto; padding: 120px 28px;
}
.split__sticky { position: sticky; top: 12vh; }
.split__sticky h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; margin-bottom: 18px; }
.split__sticky > p { color: var(--muted); line-height: 1.7; margin-bottom: 22px; }
.split__list { list-style: none; margin-bottom: 28px; }
.split__list li { padding: 9px 0; border-bottom: 1px solid rgba(10,31,68,0.08); color: var(--ink); font-weight: 500; }
.split__right { display: flex; flex-direction: column; gap: 34px; }
.split__media {
  border-radius: var(--radius); overflow: hidden; position: relative;
  box-shadow: var(--shadow-md); background: var(--navy);
}
.split__media img, .split__media video {
  width: 100%; height: 380px; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.split__media:hover img, .split__media:hover video { transform: scale(1.05); }
.split__media figcaption {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  background: rgba(6, 20, 48, 0.72); backdrop-filter: blur(10px);
  color: var(--white); padding: 8px 16px; border-radius: 999px; font-size: 0.85rem;
}

/* ─────────────── NIVELES ─────────────── */
.niveles { padding: 120px 0; background: var(--cream); }
.niveles__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  max-width: 1240px; margin: 0 auto; padding: 0 28px;
}
.nivel-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--navy); color: var(--white); aspect-ratio: 3 / 3.8;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.nivel-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.nivel-card__media { position: absolute; inset: 0; }
.nivel-card__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: transform 0.8s var(--ease); }
.nivel-card:hover .nivel-card__media img { transform: scale(1.08); }
.nivel-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,20,48,0.92) 8%, rgba(6,20,48,0.15) 55%);
}
.nivel-card__num {
  position: absolute; top: 18px; left: 20px; z-index: 2;
  font-family: Georgia, serif; font-size: 1rem; color: var(--gold); letter-spacing: 0.2em;
}
.nivel-card h3 { position: absolute; left: 22px; bottom: 52px; z-index: 2; font-size: 1.7rem; }
.nivel-card p { position: absolute; left: 22px; bottom: 26px; z-index: 2; color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.nivel-card__arrow {
  position: absolute; right: 20px; bottom: 24px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(245, 200, 106, 0.18); border: 1px solid rgba(245,200,106,0.4);
  transition: 0.4s var(--ease);
}
.nivel-card:hover .nivel-card__arrow { background: var(--gold); color: var(--navy-deep); transform: rotate(-45deg); }

/* ─────────────── MATERIAS ─────────────── */
.materias { padding: 120px 0; }
.materias__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  max-width: 1240px; margin: 0 auto; padding: 0 28px;
}
.materia {
  background: var(--white); border: 1px solid rgba(10,31,68,0.07);
  border-radius: 18px; padding: 26px 22px; transition: 0.45s var(--ease);
}
.materia:hover { background: var(--navy); color: var(--white); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.materia__icon { font-size: 2rem; display: block; margin-bottom: 14px; }
.materia h3 { font-size: 1.15rem; font-family: 'Segoe UI', sans-serif; font-weight: 700; margin-bottom: 8px; }
.materia p { font-size: 0.88rem; color: var(--muted); transition: color 0.3s; }
.materia:hover p { color: rgba(255,255,255,0.75); }

/* ─────────────── MARQUEE ─────────────── */
.marquee-section { padding: 40px 0 90px; background: var(--cream); overflow: hidden; }
.marquee { display: flex; gap: 18px; width: max-content; margin-bottom: 18px; animation: marquee 40s linear infinite; }
.marquee--reverse { animation-direction: reverse; }
.marquee:hover { animation-play-state: paused; }
.marquee__track { display: flex; gap: 18px; padding-right: 18px; }
.marquee__track img {
  height: 240px; width: auto; border-radius: 18px; object-fit: cover;
  box-shadow: var(--shadow-md);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─────────────── CIFRAS ─────────────── */
.stats { background: var(--grad-navy); padding: 110px 0; position: relative; overflow: hidden; }
.stats::before {
  content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,200,106,0.16), transparent 65%);
  top: -200px; right: -150px;
}
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
  max-width: 1100px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1;
}
.stat { text-align: center; color: var(--white); }
.stat__num { font-family: Georgia, serif; font-size: clamp(2.6rem, 5vw, 4rem); color: var(--gold); display: block; }
.stat p { color: rgba(255,255,255,0.75); margin-top: 8px; letter-spacing: 0.04em; }

/* ─────────────── TESTIMONIOS ─────────────── */
.testimonios { padding: 120px 0; max-width: 860px; margin: 0 auto; }
.testimonios__slider { position: relative; text-align: center; padding: 0 28px; }
.testimonio { display: none; }
.testimonio.is-active { display: block; animation: testiIn 0.6s var(--ease); }
@keyframes testiIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.testimonio blockquote {
  font-family: Georgia, serif; font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.5;
  color: var(--navy); font-style: italic; margin-bottom: 20px;
}
.testimonio__author { color: var(--muted); font-size: 0.95rem; }
.testimonios__nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 34px; }
.testimonios__nav button {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(10,31,68,0.2);
  font-size: 1.1rem; transition: 0.3s; display: grid; place-items: center;
}
.testimonios__nav button:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.testimonios__dots { display: flex; gap: 8px; }
.testimonios__dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(10,31,68,0.2); transition: 0.3s; cursor: pointer; }
.testimonios__dots span.is-active { background: var(--gold-deep); transform: scale(1.3); }

/* ─────────────── ADMISIONES CTA ─────────────── */
.admisiones { padding: 40px 28px 110px; }
.admisiones__card {
  position: relative; max-width: 1100px; margin: 0 auto; text-align: center;
  background: var(--grad-navy); border-radius: 32px; padding: 90px 40px;
  color: var(--white); overflow: hidden;
}
.admisiones__glow {
  position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,200,106,0.22), transparent 65%);
  top: -180px; left: 50%; transform: translateX(-50%);
}
.admisiones__card h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 14px; position: relative; }
.admisiones__card p { color: rgba(255,255,255,0.8); margin-bottom: 30px; position: relative; }
.admisiones__card .eyebrow { position: relative; }
.admisiones__card .btn { position: relative; }

/* ─────────────── CONTACTO ─────────────── */
.contacto {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px;
  max-width: 1100px; margin: 0 auto; padding: 0 28px 120px;
}
.contacto__info h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 26px; }
.contacto__list { list-style: none; }
.contacto__list li { padding: 14px 0; border-bottom: 1px solid rgba(10,31,68,0.08); line-height: 1.6; color: var(--muted); }
.contacto__list b { color: var(--ink); }
.contacto__list a { color: var(--navy-soft); font-weight: 600; }
.contacto__form {
  background: var(--white); border-radius: var(--radius); padding: 34px;
  box-shadow: var(--shadow-md);
}
.contacto__form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 16px; }
.contacto__form input, .contacto__form select, .contacto__form textarea {
  width: 100%; margin-top: 6px; padding: 13px 15px; border: 1.5px solid #E5E0D5;
  border-radius: 12px; font-size: 0.95rem; font-family: inherit; transition: border-color 0.3s;
}
.contacto__form input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
.contacto__note { font-size: 0.78rem; color: var(--muted); text-align: center; margin-top: 12px; }

/* ─────────────── FOOTER ─────────────── */
.footer {
  background: var(--navy-deep); color: rgba(255,255,255,0.75);
  text-align: center; padding: 54px 28px 40px;
}
.footer__brand {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: Georgia, serif; font-size: 1.4rem; color: var(--white); margin-bottom: 16px;
}
.footer__brand b { color: var(--gold); }
.footer p { font-size: 0.9rem; margin-bottom: 8px; }
.footer__copy { font-size: 0.8rem; opacity: 0.6; }

/* ─────────────── RESPONSIVE ─────────────── */
@media (max-width: 1024px) {
  .niveles__grid, .materias__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__cta .btn--ghost { display: none; }
  .split, .contacto { grid-template-columns: 1fr; gap: 40px; }
  .split__sticky { position: static; }
  .hero__student { opacity: 0.35; right: -10vw; }
  .cine__track { height: 320vh; }
  .cine__progress { right: 16px; }
}
@media (max-width: 560px) {
  .niveles__grid, .materias__grid, .stats__grid { grid-template-columns: 1fr 1fr; }
  .nivel-card { aspect-ratio: 3/4; }
  .marquee__track img { height: 160px; }
  .hero__actions .btn { padding: 12px 20px; font-size: 0.88rem; }
}
