/* =====================================================================
   Nuestro Campus — Landing
   Paleta cielo nocturno morado/magenta (sincronizada con src/theme/colors.ts)
   ===================================================================== */
:root {
  /* Marca */
  --primary: #A4036F;
  --primary-strong: #88035C;
  --primary-dark: #4A0A3D;
  --primary-soft: #FBE3F2;
  --primary-muted: #D98FC4;

  /* Cielo nocturno */
  --night1: #1E0630;
  --night2: #5A0B54;
  --night3: #8A035E;
  --night4: #A4036F;
  --aurora-1: #88035C;
  --aurora-2: #A4036F;
  --aurora-3: #D14FA0;

  /* Acentos */
  --gold: #C99700;
  --gold-soft: #FBF1CE;
  --teal: #0FA294;
  --teal-soft: #D3F5F0;
  --orange: #F29E4C;
  --star: #EFEA5A;

  /* Neutros */
  --bg: #FBF6FA;
  --surface: #FFFFFF;
  --surface-alt: #FBE9F4;
  --text: #241826;
  --text-muted: #7A6D78;
  --text-faint: #A99FAE;
  --on-night: #FFFFFF;
  --on-night-muted: #E7C6DE;
  --border: #F0DEEA;
  --border-strong: #E4C6D9;

  /* Sistema */
  --radius: 22px;
  --radius-lg: 30px;
  --shadow-card: 0 18px 50px -20px rgba(42, 27, 107, 0.35);
  --shadow-soft: 0 8px 24px -12px rgba(42, 27, 107, 0.25);
  --shadow-float: 0 40px 80px -30px rgba(26, 20, 64, 0.55);
  --maxw: 1180px;
  --gutter: clamp(16px, 5vw, 48px);
  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-soft);
  padding: 7px 14px; border-radius: 999px;
}
.eyebrow.on-night { color: var(--primary-muted); background: rgba(255,255,255,0.08); }
.section { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.section-head { max-width: 660px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: clamp(28px, 4.4vw, 46px); margin-block: 16px 14px; }
h3 { font-size: 20px; }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--text-muted); }

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  padding: 14px 24px; border-radius: 999px; border: 0; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--aurora-1), var(--aurora-3)); color: #fff; box-shadow: 0 12px 30px -12px rgba(164, 3, 111, 0.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(164, 3, 111, 0.75); }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.22); }
.btn-ghost:hover { background: rgba(255,255,255,0.16); }
.btn-light { background: #fff; color: var(--primary); box-shadow: var(--shadow-soft); }
.btn-light:hover { transform: translateY(-2px); }

/* Insignia Google Play */
.gplay {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; padding: 11px 22px 11px 18px; border-radius: 14px;
  transition: transform .2s ease, box-shadow .2s ease; box-shadow: 0 12px 30px -14px rgba(0,0,0,0.6);
}
.gplay:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(0,0,0,0.7); }
.gplay .tri { width: 26px; height: 28px; }
.gplay .gp-text small { display: block; font-size: 10px; letter-spacing: 0.06em; opacity: 0.85; }
.gplay .gp-text b { display: block; font-size: 19px; font-weight: 700; line-height: 1.1; }
.gplay[aria-disabled="true"] { opacity: 0.9; }

/* ===================== NAV ===================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter); transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.nav.scrolled { background: rgba(251,246,250,0.85); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--border); padding-block: 10px; }
.nav .brand { display: flex; align-items: center; }
.nav .brand img { height: 40px; width: auto; }
.nav .brand .light-logo { display: block; }
.nav .brand .dark-logo { display: none; }
.nav.scrolled .brand .light-logo { display: none; }
.nav.scrolled .brand .dark-logo { display: block; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.9); transition: background .2s, color .2s; }
.nav-links a:hover { background: rgba(255,255,255,0.12); }
.nav.scrolled .nav-links a { color: var(--text); }
.nav.scrolled .nav-links a:hover { background: var(--primary-soft); color: var(--primary); }
.nav-links .btn { padding: 10px 18px; }
.nav-toggle { display: none; background: rgba(255,255,255,0.14); border: 0; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; margin: 4px auto; border-radius: 2px; transition: .25s; }
.nav.scrolled .nav-toggle { background: var(--primary-soft); }
.nav.scrolled .nav-toggle span { background: var(--primary); }

/* ===================== HERO ===================== */
.hero { position: relative; padding-top: 132px; padding-bottom: 90px; color: #fff; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: linear-gradient(160deg, var(--night1) 0%, var(--night2) 48%, var(--night4) 100%); }
#stars { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; z-index: -1; }
.hero-glow.g1 { width: 520px; height: 520px; background: radial-gradient(circle, var(--aurora-3), transparent 68%); top: -140px; right: -120px; }
.hero-glow.g2 { width: 460px; height: 460px; background: radial-gradient(circle, var(--teal), transparent 70%); bottom: -180px; left: -140px; opacity: 0.28; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); margin-block: 22px 20px; }
.hero h1 .grad { background: linear-gradient(120deg, #fff, var(--primary-muted) 60%, var(--aurora-3)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { color: var(--on-night-muted); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-meta { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.hero-meta .m b { font-size: 26px; font-weight: 800; display: block; }
.hero-meta .m span { font-size: 13px; color: var(--on-night-muted); }
.trust { margin-top: 30px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--on-night-muted); }
.trust .dots { display: flex; }
.trust .dots i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--night2); margin-left: -8px; display: inline-block; }

/* ---- Teléfono 3D ---- */
.phone-stage { perspective: 1600px; display: flex; justify-content: center; align-items: center; }
.phone-3d {
  position: relative; width: 300px; aspect-ratio: 340 / 736;
  transform-style: preserve-3d; transform: rotateY(-22deg) rotateX(8deg) rotateZ(1deg);
  transition: transform .3s ease-out; animation: float 6s ease-in-out infinite;
  will-change: transform;
}
@keyframes float { 0%,100% { translate: 0 -8px; } 50% { translate: 0 12px; } }
.phone-3d .frame {
  position: absolute; inset: 0; border-radius: 44px; background: linear-gradient(145deg, #2a1140, #120322);
  padding: 12px; box-shadow: var(--shadow-float), inset 0 0 0 2px rgba(255,255,255,0.08);
}
.phone-3d .screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: var(--bg); }
.phone-3d .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.phone-3d .screen img.active { opacity: 1; }
.phone-3d .notch { position: absolute; top: 14px; left: 50%; translate: -50% 0; width: 110px; height: 26px; background: #0a0118; border-radius: 999px; z-index: 3; }
.phone-3d .glare { position: absolute; inset: 0; border-radius: 34px; background: linear-gradient(120deg, rgba(255,255,255,0.22), transparent 40%); pointer-events: none; z-index: 2; }
.phone-badge {
  position: absolute; padding: 12px 16px; border-radius: 18px; background: rgba(255,255,255,0.95);
  box-shadow: var(--shadow-card); color: var(--text); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; gap: 9px; backdrop-filter: blur(6px); animation: float 5s ease-in-out infinite;
}
.phone-badge small { display: block; font-weight: 500; color: var(--text-muted); font-size: 11px; }
.phone-badge .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.phone-badge.b1 { top: 12%; left: -46px; animation-delay: .6s; }
.phone-badge.b2 { bottom: 16%; right: -40px; animation-delay: 1.4s; }
.screen-dots { position: absolute; bottom: -34px; left: 50%; translate: -50% 0; display: flex; gap: 8px; }
.screen-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.3); cursor: pointer; transition: .3s; padding: 0; }
.screen-dots button.on { width: 22px; border-radius: 4px; background: #fff; }

/* ---- Marquesina universidades ---- */
.logos-strip { background: var(--night1); color: var(--on-night-muted); padding-block: 22px; overflow: hidden; }
.logos-strip .wrap { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: center; font-weight: 700; font-size: 15px; }
.logos-strip .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary-muted); }
.logos-strip .uni { opacity: 0.85; display: flex; align-items: center; gap: 8px; }
.logos-strip .uni.soon { opacity: 0.45; font-weight: 600; }
.logos-strip .uni .tag { font-size: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,0.1); }

/* ===================== FEATURES ===================== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-soft); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative; overflow: hidden;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: var(--border-strong); }
.feature .ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 15px; }
.feature.wide { grid-column: span 2; }
.ic-purple { background: var(--primary-soft); color: var(--primary); }
.ic-teal { background: var(--teal-soft); color: var(--teal); }
.ic-gold { background: var(--gold-soft); color: var(--gold); }
.ic-orange { background: #FCE7D2; color: var(--orange); }
.ic-blue { background: #DEEBFF; color: #3B82F6; }
.ic-pink { background: #FCE0EC; color: #E5679B; }

/* ===================== SHOWCASE UCV ===================== */
.uni-showcase { position: relative; }
.uni-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 460px;
  display: flex; align-items: flex-end; box-shadow: var(--shadow-card);
}
.uni-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.uni-card .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(30,6,48,0.85)); }
.uni-card .content { position: relative; padding: clamp(24px, 4vw, 48px); color: #fff; max-width: 620px; }
.uni-card .content h2 { color: #fff; }
.uni-card .content p { color: var(--on-night-muted); }
.uni-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.uni-tags span { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.2); padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }

/* ===================== HOW IT WORKS ===================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 30px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step .num {
  counter-increment: step; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 800; font-size: 18px; color: #fff; background: linear-gradient(135deg, var(--aurora-1), var(--aurora-3)); margin-bottom: 16px;
}
.step .num::before { content: counter(step); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--text-muted); font-size: 14.5px; }

/* ===================== GALERÍA ===================== */
.gallery { background: linear-gradient(180deg, var(--surface-alt), var(--bg)); }
.gallery-scroll { display: flex; gap: 20px; overflow-x: auto; padding-block: 12px 24px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.gallery-shot { flex: 0 0 auto; width: 250px; scroll-snap-align: center; border-radius: 34px; overflow: hidden; box-shadow: var(--shadow-card); border: 8px solid #16052a; background: #16052a; }
.gallery-shot img { width: 100%; height: auto; display: block; border-radius: 26px; }

/* ===================== STATS ===================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 28px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat b { font-size: clamp(30px, 4vw, 44px); font-weight: 800; background: linear-gradient(120deg, var(--primary), var(--aurora-3)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: block; }
.stat span { color: var(--text-muted); font-size: 14px; font-weight: 600; }

/* ===================== FAQ ===================== */
.faq-list { max-width: 820px; margin-inline: auto; }
.faq-item { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); margin-bottom: 14px; overflow: hidden; transition: border-color .2s; }
.faq-item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-soft); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { width: 22px; height: 22px; flex-shrink: 0; transition: transform .3s; color: var(--primary); }
.faq-item[open] summary .chev { transform: rotate(45deg); }
.faq-item .answer { padding: 0 24px 22px; color: var(--text-muted); font-size: 15px; }

/* ===================== CTA FINAL ===================== */
.cta { position: relative; overflow: hidden; color: #fff; }
.cta-card {
  position: relative; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 80px);
  background: linear-gradient(150deg, var(--night1), var(--night2) 55%, var(--night4));
  text-align: center; overflow: hidden; isolation: isolate;
}
.cta-card .glow { position: absolute; width: 500px; height: 500px; border-radius: 50%; filter: blur(90px); z-index: -1; }
.cta-card .glow.a { background: var(--aurora-3); opacity: 0.4; top: -160px; right: -120px; }
.cta-card .glow.b { background: var(--teal); opacity: 0.18; bottom: -180px; left: -120px; }
.cta-card h2 { color: #fff; }
.cta-card p { color: var(--on-night-muted); max-width: 560px; margin: 14px auto 30px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; align-items: center; }

/* ===================== FOOTER ===================== */
.footer { background: var(--night1); color: var(--on-night-muted); padding-block: 60px 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand-col img { height: 42px; margin-bottom: 16px; }
.footer .brand-col p { max-width: 300px; font-size: 14px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 16px; letter-spacing: 0.04em; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 14px; opacity: 0.85; transition: opacity .2s, color .2s; }
.footer ul a:hover { opacity: 1; color: var(--primary-muted); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 44px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; opacity: 0.7; }

/* ===================== Reveal on scroll ===================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===================== Páginas de texto (privacidad) ===================== */
.doc { padding-top: 120px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 8px; }
.doc .updated { color: var(--text-muted); font-size: 14px; margin-bottom: 40px; }
.doc h2 { font-size: 22px; margin-top: 40px; margin-bottom: 12px; }
.doc h3 { font-size: 17px; margin-top: 24px; margin-bottom: 8px; }
.doc p, .doc li { color: var(--text); opacity: 0.86; margin-bottom: 12px; }
.doc ul { list-style: disc; padding-left: 22px; }
.doc a { color: var(--primary); font-weight: 600; text-decoration: underline; }
.doc .callout { background: var(--primary-soft); border-radius: 16px; padding: 20px 24px; margin: 24px 0; color: var(--primary-dark); }

/* ===================== Responsive ===================== */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead, .hero .eyebrow { margin-inline: auto; }
  .hero-cta, .hero-meta, .trust { justify-content: center; }
  .phone-stage { margin-top: 40px; }
  .features-grid, .steps, .stats { grid-template-columns: 1fr 1fr; }
  .feature.wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 6px; background: var(--surface); padding: 90px 22px 30px; box-shadow: -20px 0 60px -20px rgba(0,0,0,0.3); transform: translateX(100%); transition: transform .3s ease; }
  .nav-links.open { transform: none; }
  .nav-links a { color: var(--text); padding: 14px 16px; }
  .nav-links a:hover { background: var(--primary-soft); }
  .nav-toggle { display: block; z-index: 60; }
  .nav .brand .light-logo, .nav.scrolled .brand .light-logo { display: none; }
  .nav .brand .dark-logo, .nav.scrolled .brand .dark-logo { display: block; }
  .nav:not(.scrolled) .brand .dark-logo { display: none; }
  .nav:not(.scrolled) .brand .light-logo { display: block; }
  .features-grid, .steps, .stats, .footer-grid { grid-template-columns: 1fr; }
  .feature.wide { grid-column: span 1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .phone-badge.b1 { left: -12px; }
  .phone-badge.b2 { right: -8px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
