/* ==========================================================================
   Globality — página principal (/) · hoja de estilos dedicada
   Mismo lenguaje visual que /becaprime4 (Sora + Plus Jakarta Sans, reel en móvil)
   Orden: tokens · base · botones · nav/drawer · hero · cinta · secciones ·
          pilares · beca 0 · programas · plataforma · comunidad · egresados ·
          historias · sedes · cómo empezar · faq · cierre · pie · barra fija ·
          animaciones · móvil (reel) · tablet · escritorio
   ========================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --ff: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ffd: "Sora", "Plus Jakarta Sans", system-ui, sans-serif;
  --ink: #0A0E27; --ink-2: #2B3352; --ink-3: #6B7391;
  --line: #E4E8F2; --line-2: #EEF1F8; --bg: #FFFFFF; --bg-2: #F5F7FC;
  --navy: #070B1F; --navy-2: #0F1A3D;
  --blue: #2563EB; --violet: #7C3AED; --green: #16A34A; --green-2: #22C55E; --green-3: #4ADE80; --lime: #BEF264;
  --green-bg: #DCFCE7; --green-ink: #14532D; --amber: #D97706; --amber-bg: #FEF3C7; --azul-bg: #DBEAFE; --violeta-bg: #EDE9FE;
  --wa: #25D366;
  --grad: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  --grad-green: linear-gradient(135deg, #22C55E 0%, #15803D 100%);
  --grad-text: linear-gradient(90deg, #BEF264 0%, #4ADE80 45%, #22C55E 100%);
  --r: 20px; --r-l: 26px;
  --sh: 0 1px 2px rgba(10, 14, 39, .05), 0 6px 18px rgba(10, 14, 39, .07);
  --sh-l: 0 18px 50px rgba(7, 11, 31, .28);
  --gut: 18px; --tap: 50px; --ease: cubic-bezier(.2, .8, .2, 1);
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --nav-h: 66px;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--ff); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
body.drawer-open { overflow: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--ffd); line-height: 1.12; letter-spacing: -.025em; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gut); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 8px; }

/* ── Botones ────────────────────────────────────────────────────────────── */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden; min-height: var(--tap); padding: 13px 22px; border: 0; border-radius: 999px; font-weight: 800; font-size: 15.5px; cursor: pointer; text-decoration: none; user-select: none; transition: transform .12s ease, box-shadow .2s ease, filter .2s ease; }
.btn:active { transform: scale(.97); }
.btn--primary, .btn--hero { background: var(--grad-green); color: #fff; box-shadow: 0 10px 26px rgba(22, 163, 74, .38); }
.btn--hero { width: 100%; min-height: 60px; font-size: 18px; box-shadow: 0 14px 34px rgba(34, 197, 94, .45); }
.btn--hero::after { content: ""; position: absolute; top: -40%; left: -60%; width: 40%; height: 180%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite; }
.btn--ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1.5px solid rgba(255, 255, 255, .35); }
.btn--soft { background: var(--bg-2); color: var(--ink); border: 1.5px solid var(--line); }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 10px 26px rgba(37, 211, 102, .35); }
.btn--block { width: 100%; }
.btn__arrow { transition: transform .2s; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ── Nav ────────────────────────────────────────────────────────────────── */
.nav { position: fixed; z-index: 60; top: 0; left: 0; right: 0; padding-top: var(--sat); transition: background .3s, box-shadow .3s; }
.nav__in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gut); min-height: var(--nav-h); }
.nav.is-solid { background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line-2), 0 6px 20px rgba(10, 14, 39, .06); }
.nav__brand img { height: 38px; width: auto; background: rgba(255, 255, 255, .96); padding: 5px 9px; border-radius: 12px; }
.nav.is-solid .nav__brand img { background: transparent; padding: 0; }
.nav__links { display: none; gap: 4px; }
.nav__links a { padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .9); text-decoration: none; transition: background .2s, color .2s; }
.nav__links a:hover { background: rgba(255, 255, 255, .14); }
.nav.is-solid .nav__links a { color: var(--ink-2); }
.nav.is-solid .nav__links a:hover { background: var(--bg-2); color: var(--ink); }
.nav__r { display: flex; align-items: center; gap: 8px; }
.nav__ghost { display: none; padding: 9px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 800; color: #fff; text-decoration: none; border: 1.5px solid rgba(255, 255, 255, .35); }
.nav.is-solid .nav__ghost { color: var(--ink-2); border-color: var(--line); }
.nav__cta { padding: 10px 16px; border-radius: 999px; background: var(--grad-green); color: #fff; font-weight: 800; font-size: 13.5px; text-decoration: none; box-shadow: 0 8px 20px rgba(22, 163, 74, .35); white-space: nowrap; }
.nav__burger { width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .95); display: grid; place-content: center; gap: 4px; cursor: pointer; }
.nav.is-solid .nav__burger { background: var(--bg-2); }
.nav__burger i { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .2s; }
body.drawer-open .nav__burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.drawer-open .nav__burger i:nth-child(2) { opacity: 0; }
body.drawer-open .nav__burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.drawer { position: fixed; z-index: 55; inset: 0; background: rgba(7, 11, 31, .97); color: #fff; padding: calc(var(--sat) + var(--nav-h) + 12px) var(--gut) 24px; overflow-y: auto; animation: fade .25s ease; }
.drawer[hidden] { display: none; }
.drawer__in { max-width: 520px; margin: 0 auto; display: grid; gap: 4px; }
.drawer__in > a { padding: 14px 16px; border-radius: 14px; font-family: var(--ffd); font-size: 19px; font-weight: 800; text-decoration: none; background: rgba(255, 255, 255, .05); }
.drawer__btns { display: grid; gap: 10px; margin-top: 14px; }
.drawer .btn--soft { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .2); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: min(100svh, 900px); overflow: hidden; background: var(--navy); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; animation: kenburns 24s ease-in-out infinite alternate; }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 11, 31, .55) 0%, rgba(7, 11, 31, .3) 25%, rgba(7, 11, 31, .7) 55%, rgba(7, 11, 31, .97) 80%, #070B1F 100%); }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(48px); opacity: .3; pointer-events: none; }
.hero__glow--a { width: 280px; height: 280px; right: -120px; bottom: 60px; background: #22C55E; animation: drift 12s ease-in-out infinite alternate; }
.hero__glow--b { width: 260px; height: 260px; left: -120px; bottom: 320px; background: #7C3AED; animation: drift 15s ease-in-out infinite alternate-reverse; }
.hero__grid { position: relative; z-index: 2; padding-top: calc(var(--sat) + 120px); padding-bottom: 64px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: rgba(20, 40, 30, .6); border: 1px solid rgba(190, 242, 100, .45); color: #E9FFC2; animation: rise .6s var(--ease) both; }
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: ping 1.8s infinite; }
.hero__h1 { margin-top: 16px; font-size: clamp(38px, 10.5vw, 52px); line-height: 1.02; animation: rise .7s var(--ease) .1s both; }
.hero__rota { display: block; min-height: 1.1em; }
.hero__rota em { font-style: normal; display: inline-block; background: var(--grad-text); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: wordin .5s var(--ease) both, shimmer 5s linear 1s infinite; }
.hero__rota em.is-out { animation: wordout .35s var(--ease) both; }
.hero__p { margin-top: 14px; font-size: 16px; color: rgba(255, 255, 255, .86); max-width: 40ch; animation: rise .7s var(--ease) .3s both; }
.hero__p strong { color: #fff; }
.hero__cta { margin-top: 22px; display: grid; gap: 10px; animation: rise .7s var(--ease) .45s both; }
.hero__note { margin-top: 12px; font-size: 12.5px; color: rgba(255, 255, 255, .72); font-weight: 600; line-height: 1.6; animation: rise .7s var(--ease) .55s both; }
.hero__stats { margin-top: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; animation: rise .7s var(--ease) .65s both; }
.hero__stats div { padding: 11px 4px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); text-align: center; }
.hero__stats b { display: block; font-family: var(--ffd); font-size: 19px; letter-spacing: -.02em; }
.hero__stats span { display: block; font-size: 10.5px; color: rgba(255, 255, 255, .7); font-weight: 700; line-height: 1.2; margin-top: 2px; }
.hero__mosaic { display: none; }
.hero__scroll { position: absolute; z-index: 2; left: 50%; bottom: 14px; width: 22px; height: 34px; margin-left: -11px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 12px; }
.hero__scroll i { position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #fff; animation: scrollcue 1.8s ease-in-out infinite; }

/* ── Cinta ──────────────────────────────────────────────────────────────── */
.ticker { overflow: hidden; background: var(--navy); color: rgba(255, 255, 255, .88); border-top: 1px solid rgba(255, 255, 255, .06); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.ticker__track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker.is-paused .ticker__track { animation-play-state: paused; }
.ticker__track span { padding: 11px 18px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.ticker__track span::after { content: "•"; margin-left: 18px; color: var(--green-3); }

/* ── Secciones ──────────────────────────────────────────────────────────── */
.sec, .final { padding: 60px 0; scroll-margin-top: var(--nav-h); }
.sec h2 { font-size: clamp(27px, 7.4vw, 38px); margin-top: 10px; max-width: 24ch; }
.sec h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--grad-green); }
.eyebrow--light { color: var(--lime); }
.lead { margin-top: 12px; font-size: 16px; color: var(--ink-2); max-width: 52ch; }
.lead--light { color: rgba(255, 255, 255, .8); }
.lead--light strong { color: #fff; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.hrow { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 12px; margin: 0 -4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hrow::-webkit-scrollbar { display: none; }
.hrow > * { flex: 0 0 84%; scroll-snap-align: center; }
.hrow__hint { margin-top: 2px; text-align: center; font-size: 12px; color: var(--ink-3); font-weight: 700; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.tag--ya { background: var(--green-bg); color: var(--green-ink); }
.tag--soon { background: var(--violeta-bg); color: #5B21B6; }

/* ── Pilares ────────────────────────────────────────────────────────────── */
.why { background: var(--bg-2); }
.pillars { margin-top: 22px; }
.pillar { background: #fff; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sh); display: flex; flex-direction: column; }
.pillar__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.pillar__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pillar:hover .pillar__img img { transform: scale(1.05); }
.pillar__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7, 11, 31, .55) 100%); }
.pillar__img i { position: absolute; z-index: 2; left: 14px; bottom: -22px; width: 56px; height: 56px; border-radius: 18px; background: #fff; display: grid; place-items: center; font-style: normal; font-size: 28px; box-shadow: var(--sh-l); }
.pillar__body { padding: 32px 18px 18px; flex: 1; }
.pillar__body h3 { font-size: 22px; }
.pillar__body p { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.pillar__body ul { margin-top: 10px; display: grid; gap: 5px; }
.pillar__body li { font-size: 13px; font-weight: 700; color: var(--ink-2); padding-left: 22px; position: relative; }
.pillar__body li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }

/* ── Beca 0 ─────────────────────────────────────────────────────────────── */
.beca { background: radial-gradient(900px 500px at 85% -10%, rgba(34, 197, 94, .28), transparent 60%), radial-gradient(700px 400px at -10% 100%, rgba(124, 58, 237, .3), transparent 60%), var(--navy); color: #fff; }
.beca h2 { color: #fff; }
.beca h2 em { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; }
.beca__grid { display: grid; gap: 22px; }
.beca__cta { margin-top: 20px; display: grid; gap: 10px; }
.ptiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ptile { position: relative; overflow: hidden; border-radius: var(--r); padding: 16px; color: #fff; box-shadow: var(--sh); }
.ptile::before { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.ptile small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.ptile b { display: block; font-family: var(--ffd); font-size: clamp(24px, 7vw, 34px); letter-spacing: -.03em; line-height: 1.05; margin-top: 6px; }
.ptile span { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; opacity: .9; }
.ptile--dark { background: linear-gradient(135deg, #1B2A5E 0%, #0F1A3D 100%); }
.ptile--dark b { color: var(--lime); }
.ptile--green { background: var(--grad-green); }
.ptile--amber { background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%); }
.ptile--violet { background: var(--grad); }

/* ── Programas ──────────────────────────────────────────────────────────── */
.programs { background: var(--bg); padding-bottom: 40px; }
.ltabs { margin-top: 18px; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.ltabs::-webkit-scrollbar { display: none; }
.ltab { flex: none; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 14px; font-size: 13.5px; font-weight: 800; cursor: pointer; color: var(--ink-2); }
.ltab.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.carousel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px var(--gut) 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.carousel::-webkit-scrollbar { display: none; }
.ccard { flex: 0 0 76%; max-width: 300px; scroll-snap-align: center; border-radius: var(--r-l); background: #fff; border: 1.5px solid var(--line); box-shadow: var(--sh); overflow: hidden; text-align: left; padding: 0; cursor: pointer; text-decoration: none; color: inherit; transition: transform .2s var(--ease), box-shadow .2s; animation: rise .5s var(--ease) both; display: block; }
.ccard:hover { transform: translateY(-4px); box-shadow: var(--sh-l); }
.ccard__top { display: block; position: relative; height: 118px; background: var(--tile, #EEF2F7); }
.ccard__top img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-l) var(--r-l) 0 0; }
.ccard__top::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-l) var(--r-l) 0 0; background: linear-gradient(180deg, rgba(7, 11, 31, .05) 0%, transparent 40%, rgba(7, 11, 31, .35) 100%); }
.ccard__top i { position: absolute; z-index: 2; left: 12px; bottom: -22px; width: 54px; height: 54px; border-radius: 16px; background: var(--tile, #fff); border: 3px solid #fff; display: grid; place-items: center; font-style: normal; font-size: 27px; box-shadow: var(--sh-l); }
.ccard__tag { position: absolute; z-index: 2; top: 10px; right: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(10, 14, 39, .8); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.ccard__body { display: block; padding: 30px 14px 14px; }
.ccard__name { display: block; font-family: var(--ffd); font-size: 16.5px; font-weight: 800; line-height: 1.2; min-height: 2.4em; }
.ccard__sub { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }
.ccard__price { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ccard__price b { font-family: var(--ffd); font-size: 18px; color: var(--ink); }
.ccard__price b small { display: block; font-family: var(--ff); font-size: 11px; color: var(--ink-3); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ccard__zero { padding: 6px 10px; border-radius: 999px; background: var(--green-bg); color: var(--green-ink); font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.ccard__go { margin-top: 12px; display: block; width: 100%; padding: 12px; border-radius: 999px; background: var(--grad-green); color: #fff; font-weight: 800; font-size: 14.5px; text-align: center; box-shadow: 0 8px 18px rgba(22, 163, 74, .3); }
.programs__hint { margin-top: 10px; text-align: center; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.programs__more { margin-top: 14px; text-align: center; }

/* ── Plataforma ─────────────────────────────────────────────────────────── */
.plat { background: var(--bg-2); overflow: hidden; }
.plat__grid { display: grid; gap: 28px; }
.plat__phone { position: relative; display: grid; place-items: center; padding: 10px 0; }
.phone { position: relative; width: 272px; height: 560px; border-radius: 42px; background: #0B1020; padding: 12px; box-shadow: 0 30px 70px rgba(7, 11, 31, .35), inset 0 0 0 2px #2A3352; animation: floaty 7s ease-in-out infinite; }
.phone__notch { position: absolute; z-index: 3; top: 12px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 0 0 16px 16px; background: #0B1020; }
.phone__screen { width: 100%; height: 100%; border-radius: 32px; background: #F5F7FC; overflow: hidden; padding: 40px 12px 12px; display: flex; flex-direction: column; gap: 9px; font-size: 12px; color: var(--ink); }
.ph__top { display: grid; grid-template-columns: 34px 1fr 24px; gap: 8px; align-items: center; }
.ph__av { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; }
.ph__top small { display: block; font-size: 10px; color: var(--ink-3); font-weight: 700; }
.ph__top b { font-family: var(--ffd); font-size: 14px; }
.ph__card { border-radius: 16px; padding: 12px; }
.ph__card--dark { background: linear-gradient(135deg, #1B2A5E, #0F1A3D); color: #fff; }
.ph__card small { display: block; font-size: 10px; opacity: .75; font-weight: 700; }
.ph__card b { display: block; font-family: var(--ffd); font-size: 16px; margin-top: 2px; }
.ph__bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .15); margin-top: 8px; overflow: hidden; }
.ph__bar i { display: block; height: 100%; background: var(--grad-text); border-radius: 6px; }
.ph__card span { display: block; font-size: 10px; margin-top: 6px; opacity: .8; }
.ph__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph__mini { background: #fff; border-radius: 14px; padding: 10px; box-shadow: var(--sh); }
.ph__mini i { font-style: normal; font-size: 16px; }
.ph__mini b { display: block; font-family: var(--ffd); font-size: 13px; margin-top: 4px; }
.ph__mini span { display: block; font-size: 10px; color: var(--ink-3); font-weight: 700; }
.ph__list { background: #fff; border-radius: 14px; box-shadow: var(--sh); padding: 4px 10px; }
.ph__list div { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-weight: 700; font-size: 11.5px; }
.ph__list div:last-child { border-bottom: 0; }
.ph__list i { font-style: normal; }
.ph__list b { font-family: var(--ffd); font-size: 11.5px; }
.ph__list b.is-ok { color: var(--green); }
.ph__list b.is-live { color: #DC2626; }
.ph__nav { margin-top: auto; display: flex; justify-content: space-between; padding: 8px 6px 0; font-size: 9.5px; font-weight: 800; color: var(--ink-3); }
.ph__nav .is-on { color: var(--blue); }
.plat__chip { position: absolute; padding: 8px 12px; border-radius: 999px; background: #fff; box-shadow: var(--sh-l); font-size: 12px; font-weight: 800; white-space: nowrap; animation: floaty 6s ease-in-out infinite; }
.plat__chip--1 { left: 0; top: 22%; animation-delay: .8s; }
.plat__chip--2 { right: 0; bottom: 22%; animation-delay: 1.8s; }
.feats { margin-top: 18px; display: grid; gap: 10px; }
.feat { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; background: #fff; border-radius: 16px; padding: 12px; box-shadow: var(--sh); }
.feat i { width: 44px; height: 44px; border-radius: 13px; background: var(--bg-2); display: grid; place-items: center; font-style: normal; font-size: 22px; }
.feat b { display: block; font-size: 14.5px; }
.feat span { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.plat__cta { margin-top: 16px; display: grid; gap: 10px; }

/* ── Comunidad ──────────────────────────────────────────────────────────── */
.comm { background: radial-gradient(900px 500px at 80% -10%, rgba(124, 58, 237, .4), transparent 60%), radial-gradient(700px 400px at -10% 100%, rgba(34, 197, 94, .25), transparent 60%), var(--navy); color: #fff; }
.comm h2 { color: #fff; }
.comm h2 em { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; }
.ccards { margin-top: 22px; display: grid; gap: 14px; }
.ccards .ccard { flex: none; max-width: none; cursor: default; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #fff; animation: none; }
.ccards .ccard:hover { transform: none; box-shadow: none; }
.ccards .ccard.is-soon { border-style: dashed; border-color: rgba(196, 181, 253, .5); }
.ccard__img { height: 160px; overflow: hidden; }
.ccard__img img { width: 100%; height: 100%; object-fit: cover; }
.ccards .ccard__body { padding: 14px 16px 16px; }
.ccards h3 { margin-top: 8px; font-size: 20px; display: flex; align-items: center; gap: 8px; }
.ccards h3 i { font-style: normal; }
.ccards p { margin-top: 6px; font-size: 13.5px; color: rgba(255, 255, 255, .78); }
.ccard__tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.ccard__tags span { padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); font-size: 11.5px; font-weight: 700; }
.gtiles { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gtile { position: relative; overflow: hidden; border-radius: 18px; padding: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); text-decoration: none; color: #fff; transition: transform .2s var(--ease), border-color .2s; }
.gtile:hover { transform: translateY(-3px); border-color: var(--c); }
.gtile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120px 80px at 90% -10%, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%); }
.gtile img { position: relative; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
.gtile b { position: relative; display: block; margin-top: 8px; font-family: var(--ffd); font-size: 13.5px; }
.gtile small { position: relative; display: block; font-size: 11px; color: rgba(255, 255, 255, .65); line-height: 1.3; }
.listen { margin-top: 22px; border-radius: var(--r-l); padding: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); display: grid; gap: 16px; }
.listen h3 { margin-top: 10px; font-size: 20px; }
.listen p { margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, .78); }
.listen__btns { display: grid; gap: 10px; align-content: start; }
.listen__soon { font-size: 12.5px; font-weight: 700; color: #C4B5FD; }

/* ── Egresados y familias ───────────────────────────────────────────────── */
.alumni { background: var(--bg); }
.alumni__grid { margin-top: 22px; display: grid; gap: 16px; }
.acard { border-radius: var(--r-l); overflow: hidden; background: #fff; border: 1.5px solid var(--line); box-shadow: var(--sh); }
.acard__img { height: 180px; overflow: hidden; }
.acard__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.acard__body { padding: 18px; }
.acard__body h3 { font-size: 21px; }
.acard__body > p { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.acard__kpis { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.acard__kpis div { background: var(--bg-2); border-radius: 14px; padding: 10px 6px; text-align: center; }
.acard__kpis b { display: block; font-family: var(--ffd); font-size: 18px; color: var(--blue); }
.acard__kpis span { display: block; font-size: 10.5px; font-weight: 700; color: var(--ink-3); line-height: 1.2; margin-top: 2px; }
.tramites, .family { margin-top: 12px; display: grid; gap: 8px; }
.tramites li, .family li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; background: var(--bg-2); border-radius: 14px; padding: 10px 12px; }
.tramites i, .family i { width: 36px; height: 36px; border-radius: 11px; background: #fff; display: grid; place-items: center; font-style: normal; font-size: 18px; box-shadow: var(--sh); }
.tramites b, .family b { display: block; font-size: 13.5px; }
.tramites span, .family span { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.35; }
.sedes { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.sedes a { padding: 6px 10px; border-radius: 999px; background: var(--azul-bg); color: #1E40AF; font-size: 12px; font-weight: 800; text-decoration: none; }
.sedes a small { font-weight: 700; opacity: .7; }
.acard__btns { margin-top: 14px; display: grid; gap: 8px; }

/* ── Historias ──────────────────────────────────────────────────────────── */
.hist { background: var(--bg-2); }
.hist__row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px var(--gut) 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hist__row::-webkit-scrollbar { display: none; }
.hcard { flex: 0 0 82%; max-width: 340px; scroll-snap-align: center; background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--r-l); padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--sh); }
.hcard__stars { display: flex; gap: 2px; font-size: 15px; color: #CBD5E1; }
.hcard__stars i { font-style: normal; }
.hcard__stars i.is-on { color: #F59E0B; }
.hcard blockquote { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); flex: 1; }
.hcard blockquote::before { content: "“"; font-family: var(--ffd); font-size: 30px; line-height: 0; color: var(--green); margin-right: 4px; vertical-align: -10px; }
.hcard__who { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; }
.hcard__av { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--ffd); font-weight: 800; }
.hcard__who strong { display: block; font-size: 14px; }
.hcard__who span:last-child { display: block; font-size: 12px; color: var(--ink-3); font-weight: 600; }

/* ── Sedes ──────────────────────────────────────────────────────────────── */
.trust { background: var(--bg); }
.icards { margin-top: 22px; }
.icard { display: block; text-decoration: none; color: inherit; background: #fff; border-radius: var(--r-l); overflow: hidden; border: 1.5px solid var(--line); box-shadow: var(--sh); transition: transform .2s var(--ease), box-shadow .2s; }
.icard:hover { transform: translateY(-4px); box-shadow: var(--sh-l); }
.icard__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.icard__img img { width: 100%; height: 100%; object-fit: cover; }
.icard__code { position: absolute; left: 12px; bottom: 12px; padding: 5px 11px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; }
.icard__body { padding: 14px 16px 16px; }
.icard__body b { display: block; font-family: var(--ffd); font-size: 15.5px; line-height: 1.2; }
.icard__body span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.icard__body small { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.trust__foot { margin-top: 14px; display: grid; gap: 8px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.trust__foot a { color: var(--blue); font-weight: 800; text-decoration: none; }

/* ── Cómo empezar ───────────────────────────────────────────────────────── */
.how { background: var(--bg-2); }
.how__grid { margin-top: 22px; display: grid; gap: 18px; }
.hsteps { position: relative; display: grid; gap: 16px; }
.hsteps::before { content: ""; position: absolute; left: 21px; top: 24px; bottom: 24px; width: 3px; border-radius: 3px; background: var(--line); }
.hsteps li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.hsteps__n { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--ffd); font-weight: 800; font-size: 16px; box-shadow: 0 8px 20px rgba(37, 99, 235, .35); }
.hsteps b { display: block; font-size: 16px; font-weight: 800; }
.hsteps p { margin-top: 3px; font-size: 13.5px; color: var(--ink-2); }
.how__side { display: grid; gap: 12px; }
.how__img { position: relative; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sh); aspect-ratio: 16 / 9; }
.how__img img { width: 100%; height: 100%; object-fit: cover; }
.how__img span { position: absolute; left: 12px; bottom: 12px; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .94); font-size: 12.5px; font-weight: 800; box-shadow: var(--sh); }
.already { background: #fff; border-radius: var(--r); padding: 14px 16px; box-shadow: var(--sh); display: grid; gap: 6px; }
.already b { font-family: var(--ffd); font-size: 15px; margin-bottom: 4px; }
.already a { padding: 10px 12px; border-radius: 12px; background: var(--bg-2); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.how__cta { margin-top: 20px; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faqs { background: var(--bg); }
.faq { margin-top: 18px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-l); padding: 4px 16px; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 0; }
.faq summary { padding: 13px 0; font-weight: 800; font-size: 14.5px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; color: var(--ink-2); font-weight: 900; transition: transform .2s; }
.faq details[open] summary::after { content: "–"; transform: rotate(180deg); background: var(--green-bg); color: var(--green-ink); }
.faq p { padding: 0 0 13px; font-size: 14px; color: var(--ink-2); }
.faq__more { margin-top: 14px; text-align: center; font-size: 14px; color: var(--ink-2); }
.faq__more a { color: var(--green); font-weight: 800; }

/* ── Cierre + pie ───────────────────────────────────────────────────────── */
.final { position: relative; overflow: hidden; padding: 72px 0 84px; color: #fff; text-align: center; background: var(--navy); }
.final__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.final__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 11, 31, .82) 0%, rgba(7, 11, 31, .6) 50%, rgba(7, 11, 31, .9) 100%); }
.final__body { position: relative; z-index: 2; }
.final h2 { margin-top: 14px; font-size: clamp(28px, 8vw, 42px); color: #fff; }
.final h2 em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.final p { margin-top: 12px; font-size: 15.5px; color: rgba(255, 255, 255, .82); }
.final__btns { margin-top: 22px; display: grid; gap: 10px; }
.final__trust { margin-top: 14px; font-size: 12px; color: rgba(255, 255, 255, .65); }
.foot { background: #04071A; color: rgba(255, 255, 255, .62); padding: 32px 0 calc(96px + var(--sab)); font-size: 13px; line-height: 1.6; }
.foot__grid { display: grid; gap: 22px; }
.foot__brand img { height: 44px; width: auto; background: rgba(255, 255, 255, .95); padding: 6px 10px; border-radius: 12px; }
.foot__brand p { margin-top: 12px; max-width: 48ch; }
.foot__col { display: grid; gap: 6px; align-content: start; }
.foot__col h5 { color: #fff; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.foot__col a { text-decoration: none; color: rgba(255, 255, 255, .72); }
.foot__col a:hover { color: #fff; }
.foot__legal { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 11.5px; color: rgba(255, 255, 255, .45); }
.foot__legal b { color: rgba(255, 255, 255, .8); }

/* ── Barra fija (móvil) ─────────────────────────────────────────────────── */
.sticky { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + var(--sab)); display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 10px 10px 16px; border-radius: 22px; background: #fff; box-shadow: 0 14px 40px rgba(7, 11, 31, .22), 0 0 0 1px var(--line-2); transform: translateY(130%); transition: transform .35s var(--ease); }
.sticky.is-on { transform: none; }
.sticky b { display: block; font-family: var(--ffd); font-size: 14.5px; color: var(--ink); }
.sticky small { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.sticky .btn { min-height: 46px; padding: 10px 16px; font-size: 14.5px; }
/* el chat de admisiones sube para no pisar la barra fija */
.pchat-fab { bottom: calc(92px + var(--sab)) !important; }
.pchat-bubble-invite { bottom: calc(160px + var(--sab)) !important; }

/* ── Animaciones ────────────────────────────────────────────────────────── */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(190, 242, 100, .7); } 70% { box-shadow: 0 0 0 9px rgba(190, 242, 100, 0); } 100% { box-shadow: 0 0 0 0 rgba(190, 242, 100, 0); } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-1.5%, 1%); } }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(30px, -40px); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes shine { 0% { left: -60%; } 40%, 100% { left: 130%; } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scrollcue { 0% { opacity: 1; transform: translateY(0); } 70% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }
@keyframes wordin { from { opacity: 0; transform: translateY(60%) rotateX(-40deg); } to { opacity: 1; transform: none; } }
@keyframes wordout { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-60%); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-snap-type: none !important; }
}

/* ── Móvil: cada sección es un "reel" ───────────────────────────────────── */
@media (max-width: 719px) {
  .hero, .final { scroll-snap-align: start; }
  .sec { min-height: min(100svh, 860px); display: flex; flex-direction: column; justify-content: center; padding: 76px 0 48px; }
  .sec h2 { font-size: clamp(25px, 6.9vw, 33px); }
  .programs { padding-bottom: 40px; }
  .faqs, .alumni, .comm { justify-content: flex-start; }
  .final { min-height: min(100svh, 820px); display: flex; flex-direction: column; justify-content: center; }
}

/* ── Tablet ─────────────────────────────────────────────────────────────── */
@media (min-width: 720px) {
  .nav__ghost { display: inline-block; }
  .hero { min-height: min(94vh, 940px); justify-content: center; }
  .hero__grid { padding-top: calc(var(--sat) + 130px); padding-bottom: 90px; }
  .hero__h1 { font-size: clamp(46px, 6.4vw, 74px); max-width: 14ch; }
  .hero__p { font-size: 18px; max-width: 52ch; }
  .hero__cta { grid-template-columns: auto auto; justify-content: start; }
  .btn--hero { width: auto; padding: 16px 34px; }
  .hero__stats { max-width: 560px; }
  .hero__stats b { font-size: 22px; }
  .sec { padding: 88px 0; }
  .hrow { display: grid; overflow: visible; padding: 0; margin: 0; gap: 14px; }
  .hrow > * { flex: none; }
  .hrow__hint { display: none; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .beca__grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
  .beca__cta { grid-template-columns: auto auto; justify-content: start; }
  .carousel { padding-left: max(var(--gut), calc((100% - 1120px) / 2 + var(--gut))); }
  .ccard { flex-basis: 280px; }
  .plat__grid { grid-template-columns: 380px 1fr; gap: 48px; align-items: center; }
  .plat__cta { grid-template-columns: auto auto; justify-content: start; }
  .ccards { grid-template-columns: repeat(2, 1fr); }
  .gtiles { grid-template-columns: repeat(6, 1fr); }
  .listen { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 28px; }
  .alumni__grid { grid-template-columns: 1fr 1fr; }
  .acard__btns { grid-template-columns: 1fr 1fr; }
  .hist__row { padding-left: max(var(--gut), calc((100% - 1120px) / 2 + var(--gut))); }
  .hcard { flex-basis: 320px; }
  .icards { grid-template-columns: repeat(3, 1fr); }
  .trust__foot { grid-template-columns: auto auto 1fr; align-items: center; }
  .trust__foot a { text-align: right; }
  .how__grid { grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
  .hsteps { gap: 22px; }
  .final { padding: 120px 0; }
  .final__btns { grid-template-columns: auto auto; justify-content: center; }
  .foot__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; }
  .sticky { display: none; }
  .pchat-fab { bottom: 24px !important; }
  .pchat-bubble-invite { bottom: 92px !important; }
  .faq { max-width: 820px; }
}

/* ── Escritorio ─────────────────────────────────────────────────────────── */
@media (min-width: 1000px) {
  .nav__links { display: flex; }
  .hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
  .hero__mosaic { display: block; position: relative; height: 560px; }
  .mo { position: absolute; margin: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--sh-l); border: 3px solid rgba(255, 255, 255, .12); animation: floaty 8s ease-in-out infinite; }
  .mo img { width: 100%; height: 100%; object-fit: cover; }
  .mo figcaption { position: absolute; left: 10px; bottom: 10px; padding: 6px 10px; border-radius: 999px; background: rgba(7, 11, 31, .78); color: #fff; font-size: 11.5px; font-weight: 800; }
  .mo--a { left: 0; top: 8%; width: 47%; height: 40%; animation-delay: 0s; }
  .mo--b { right: 0; top: 0; width: 47%; height: 34%; animation-delay: 1.2s; }
  .mo--c { right: 0; top: 38%; width: 47%; height: 46%; animation-delay: 2.1s; }
  .mo--d { left: 0; top: 52%; width: 47%; height: 40%; animation-delay: .6s; }
  .mo__chip { position: absolute; z-index: 3; padding: 9px 14px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 800; box-shadow: var(--sh-l); animation: floaty 6s ease-in-out infinite; }
  .mo__chip--1 { left: 30%; top: 46%; animation-delay: 1.5s; }
  .mo__chip--2 { right: 4%; bottom: 4%; animation-delay: 2.6s; }
  .pillars { grid-template-columns: repeat(4, 1fr); }
  .pillar__body h3 { font-size: 20px; }
  .carousel { flex-wrap: wrap; overflow: visible; padding: 18px var(--gut) 8px; max-width: 1120px; margin: 0 auto; }
  .ccard { flex: 0 0 calc(25% - 11px); max-width: none; }
  .programs__hint { display: none; }
  .feats { grid-template-columns: 1fr 1fr; }
  .ccard__img { height: 190px; }
  .acard__img { height: 220px; }
  .foot { padding-bottom: 32px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   Ajustes 2026-09-20: logo grande, emergentes (iframe), catálogo oficial,
   página de egresados
   ══════════════════════════════════════════════════════════════════════════ */
.nav__brand img { height: 54px; padding: 6px 12px; border-radius: 14px; }
.nav.is-solid .nav__brand img { height: 50px; }
.foot__brand img { height: 60px; }
.nav.is-fixed { background: rgba(255, 255, 255, .96); }
.icard__body em { display: block; margin-top: 8px; font-style: normal; font-size: 12.5px; font-weight: 800; color: var(--blue); }

/* Emergentes: todo lo que "sale" de la página se abre sobre ella */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 200; background: rgba(7, 11, 31, .78); backdrop-filter: blur(6px); display: grid; place-items: center; animation: fade .2s ease; }
.modal[hidden] { display: none; }
.modal__box { position: relative; width: 100%; height: 100%; background: #fff; display: flex; flex-direction: column; overflow: hidden; animation: appin .3s var(--ease); }
.modal__bar { flex: none; display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; min-height: 56px; padding: calc(var(--sat) + 8px) 12px 8px 14px; background: #fff; border-bottom: 1px solid var(--line-2); }
.modal__bar img { height: 34px; width: auto; }
.modal__bar strong { font-family: var(--ffd); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal__spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--green-bg); border-top-color: var(--green); animation: spin .8s linear infinite; }
.modal__spin[hidden] { display: none; }
.modal__x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg-2); color: var(--ink-2); font-size: 16px; font-weight: 800; cursor: pointer; }
.modal__x:hover { background: var(--line); }
.modal__frame { flex: 1; width: 100%; border: 0; background: #fff; min-height: 0; }
body.modal-open .pchat-fab, body.modal-open .pchat-bubble-invite, body.modal-open .pchat-panel, body.modal-open .sticky { display: none !important; }
@keyframes appin { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes up { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }

/* Hojas (dialog) y catálogo oficial */
.sheet { border: 0; padding: 0; margin: 0; width: 100%; max-width: 100%; max-height: 92dvh; position: fixed; left: 0; right: 0; bottom: 0; top: auto; background: #fff; color: var(--ink); border-radius: 26px 26px 0 0; box-shadow: var(--sh-l); overflow: hidden; flex-direction: column; }
.sheet[open] { display: flex; animation: up .3s var(--ease); }
.sheet::backdrop { background: rgba(7, 11, 31, .6); }
.sheet__grab { width: 40px; height: 5px; border-radius: 5px; background: var(--line); margin: 10px auto 0; flex: none; }
.sheet__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 18px 12px; flex: none; }
.sheet__head h3 { font-size: 19px; }
.sheet__head small { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 600; margin-top: 2px; }
.sheet__x { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-size: 17px; cursor: pointer; color: var(--ink-2); flex: none; }
.sheet__body { overflow-y: auto; padding: 0 18px 18px; flex: 1; min-height: 0; -webkit-overflow-scrolling: touch; }
.sheet__foot { flex: none; padding: 12px 18px calc(12px + var(--sab)); border-top: 1px solid var(--line-2); background: #fff; }
.cat { margin-top: 14px; }
.cat h4 { font-size: 15.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cat h4 span { padding: 3px 9px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.cat__meta { margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }
.cat ul { margin-top: 8px; display: grid; gap: 6px; }
.cat li { background: var(--bg-2); border-radius: 12px; padding: 9px 12px; }
.cat li b { display: block; font-size: 13.5px; line-height: 1.3; }
.cat li span { display: block; font-size: 12px; color: var(--ink-3); font-weight: 600; margin-top: 2px; }
.cat__note { margin-top: 16px; font-size: 12.5px; color: var(--ink-3); text-align: center; }

/* Página de egresados */
.hero--eg { min-height: 0; }
.hero--eg .hero__grid { padding-bottom: 48px; }
.hero__h1--eg { font-size: clamp(32px, 9vw, 44px); }
.hero__em { display: block; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__stats--3 { grid-template-columns: repeat(3, 1fr); }
.tcards4 { margin-top: 22px; display: grid; gap: 12px; }
.tcard4 { background: #fff; border-radius: var(--r-l); padding: 18px; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 6px; }
.tcard4 i { font-style: normal; font-size: 30px; width: 54px; height: 54px; border-radius: 16px; background: var(--bg-2); display: grid; place-items: center; }
.tcard4 h3 { font-size: 18px; margin-top: 6px; }
.tcard4 p { font-size: 13.5px; color: var(--ink-2); flex: 1; }
.tcard4 .btn { margin-top: 8px; align-self: start; }
.egbeca { margin-top: 18px; border-radius: var(--r-l); padding: 22px; background: radial-gradient(600px 300px at 90% -10%, rgba(34, 197, 94, .35), transparent 60%), var(--navy); color: #fff; display: grid; gap: 14px; }
.egbeca h3 { margin-top: 10px; font-size: 21px; }
.egbeca p { margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.egbeca .btn--hero { align-self: center; }
.sedegrid { margin-top: 22px; display: grid; gap: 14px; }
.sede { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-l); padding: 18px; box-shadow: var(--sh); scroll-margin-top: calc(var(--nav-h) + 12px); }
.sede:target { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-bg), var(--sh); }
.sede__head { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; }
.sede__head i { width: 48px; height: 48px; border-radius: 14px; background: var(--bg-2); display: grid; place-items: center; font-style: normal; font-size: 24px; }
.sede__head b { display: block; font-family: var(--ffd); font-size: 18px; }
.sede__head small { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.sede__kpis { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.sede__kpis span { padding: 6px 10px; border-radius: 999px; background: var(--azul-bg); color: #1E40AF; font-size: 12.5px; font-weight: 700; }
.sede__kpis b { font-family: var(--ffd); }
.sede__progs { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.sede__progs span { padding: 5px 10px; border-radius: 999px; background: var(--bg-2); font-size: 12px; font-weight: 700; color: var(--ink-2); }
.sede__btns { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.egareas { margin-top: 18px; background: var(--bg-2); border-radius: var(--r-l); padding: 18px; }
.egareas b { font-family: var(--ffd); font-size: 15px; }
.egareas > div { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.egareas span { padding: 6px 11px; border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 700; box-shadow: var(--sh); }
.egareas p { margin-top: 12px; font-size: 13.5px; color: var(--ink-2); }
.egareas a { color: var(--green); font-weight: 800; }
@media (min-width: 720px) {
  .nav__brand img { height: 60px; }
  .modal { padding: 18px; }
  .modal__box { width: min(1180px, 100%); height: min(940px, 100%); border-radius: 24px; box-shadow: var(--sh-l); }
  .modal__bar { padding: 10px 14px 10px 18px; }
  .sheet { left: 50%; right: auto; width: 520px; transform: translateX(-50%); bottom: 24px; border-radius: 26px; max-height: 86dvh; }
  .sheet--wide { width: min(760px, 94vw); }
  .tcards4 { grid-template-columns: repeat(2, 1fr); }
  .egbeca { grid-template-columns: 1fr auto; align-items: center; padding: 28px; }
  .sedegrid { grid-template-columns: repeat(2, 1fr); }
  .hero--eg { min-height: 0; }
  .hero--eg .hero__grid { padding-bottom: 72px; }
  .hero--eg .hero__h1--eg { font-size: clamp(40px, 5.4vw, 60px); max-width: 16ch; }
  .hero__grid--eg { display: block; }
}
@media (min-width: 1000px) {
  .tcards4 { grid-template-columns: repeat(4, 1fr); }
  .sedegrid { grid-template-columns: repeat(3, 1fr); }
}

/* El asistente de inscripción trae su propia cabecera: el emergente va sin barra */
.modal--bare .modal__bar { display: none; }
