/* =============================================================
   Politécnico del Oriente — tema oscuro futurista (fondo WebGL animado + secciones flotantes)
   1 tokens · 2 base · 3 utilidades · 4 header · 5 botones · 6 secciones · 7 home
   8 programas · 9 blog · 10 formularios · 11 footer · 12 interacción · 13 efectos
   Gotchas aplicados (playbook): sin backdrop-filter sobre el canvas (banding) → vidrio = fondo translúcido sólido;
   sin preserve-3d cerca de inputs; nada flotando sobre tarjetas con botones.
   ============================================================= */

/* 1. Tokens */
:root {
  --bg: #040A1C;
  --bg-2: #07122E;
  --panel: rgba(10, 22, 54, .72);
  --panel-2: rgba(13, 28, 68, .88);
  --line: rgba(143, 184, 255, .16);
  --line-2: rgba(143, 184, 255, .32);

  --ink: #F4F7FF;          /* títulos */
  --ink-2: #C9D4EF;        /* texto */
  --muted: #93A3C8;

  /* Colores del logo — azul #002D83 · verde #5DAF2B · verde azulado #017C64 — y sus versiones luminosas para fondo oscuro */
  --brand: #002D83;
  --blue: #3B74FF;
  --blue-700: #2A5CE6;
  --blue-400: #6A96FF;
  --sky: #8FB8FF;
  --cyan: #5CC8FF;
  --green: #6CC24A;
  --green-700: #5DAF2B;
  --teal: #21C79A;
  --blue-50: rgba(59, 116, 255, .10);
  --blue-100: rgba(143, 184, 255, .22);
  --wa: #1FB855;
  --wa-700: #169C47;
  --grad: linear-gradient(120deg, #3B74FF 0%, #5CC8FF 55%, #6CC24A 100%);

  --display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --sans: "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow: 0 30px 70px -34px rgba(0, 0, 0, .85);
  --shadow-lg: 0 40px 90px -40px rgba(0, 0, 0, .9), 0 30px 80px -46px rgba(59, 116, 255, .55);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.25, .46, .45, .94);
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 72px;
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
/* El fondo sólido va en <html>: si lo lleva <body>, se pinta ENCIMA del canvas #bg (z-index:-1) y lo tapa. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: clip;
  background: radial-gradient(120% 90% at 22% 12%, #0C2256, var(--bg) 70%) fixed, var(--bg); }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.65; color: var(--ink-2);
  background: transparent;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; pointer-events: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; font-weight: 600; }
p { text-wrap: pretty; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2.5px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* 3. Utilidades */
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 999; padding: .6rem 1rem; background: #fff; color: var(--bg); border-radius: var(--r-sm); }
.skip-link:focus { top: 1rem; }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.center-row { display: flex; justify-content: center; margin-top: 40px; }
.kicker {
  font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 24px; height: 3px; background: var(--grad); border-radius: 2px; box-shadow: 0 0 12px rgba(92, 200, 255, .7); }
.h-display { font-size: clamp(2.35rem, 5.6vw, 4.5rem); line-height: 1.08; letter-spacing: -.02em; font-weight: 700; max-width: 16ch; }
.h-page { font-size: clamp(2.05rem, 4.6vw, 3.5rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; max-width: 20ch; }
.h-section { font-size: clamp(1.8rem, 3.8vw, 2.9rem); line-height: 1.14; letter-spacing: -.018em; max-width: 22ch; }
.h-sub { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 60ch; line-height: 1.65; }
.lead + .lead { margin-top: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--cyan); }
.link-arrow .arr { transition: transform .35s var(--ease-out); }
a:hover .link-arrow .arr, .link-arrow:hover .arr { transform: translateX(4px); }
.note {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--line); color: var(--ink-2); font-size: .94rem; max-width: 820px;
}
.note .ico { color: var(--cyan); margin-top: 2px; }
.note a { color: var(--cyan); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* 4. Header (fondo sólido translúcido: sin blur sobre el canvas) */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(4, 10, 28, .72); border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.site-header.is-scrolled { background: rgba(4, 10, 28, .9); border-bottom-color: var(--line); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8); }
.nav-open .site-header { background: var(--bg); }
.header-in { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-logo { height: 36px; width: auto; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .35)); }
.brand-logo-full { width: 230px; height: auto; }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-wa { display: none; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; color: #5BE38C; padding: 8px 10px; border-radius: var(--r-pill); }
.header-wa:hover { background: rgba(31, 184, 85, .12); }
.nav-burger { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--ink); }
.nav-burger .ico { width: 24px; height: 24px; }
.nav-burger .i-close { display: none; }
.nav-open .nav-burger .i-open { display: none; }
.nav-open .nav-burger .i-close { display: block; }
@media (max-width: 539px) {
  .brand-logo { height: 30px; max-width: calc(100vw - 222px); object-fit: contain; object-position: left center; }
  .header-in { gap: 8px; }
  .header-cta { gap: 4px; }
  .header-cta .btn-sm { padding: 8px 13px; font-size: .86rem; }
}

.main-nav {
  position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); padding: 16px var(--gutter) 32px;
  overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease-out), transform .3s var(--ease-out), visibility 0s .3s;
}
.nav-open .main-nav { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.nav-open { overflow: hidden; }
.nav-list > li { border-bottom: 1px solid var(--line); }
.nav-link { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 2px; font-weight: 600; font-size: 1.08rem; color: var(--ink); }
.nav-link[aria-current="page"], .sub-toggle[data-current] { color: var(--cyan); }
.chev { transition: transform .3s var(--ease-out); }
.has-sub.is-open .chev { transform: rotate(180deg); }
.sub-menu { display: none; padding: 0 0 14px; }
.has-sub.is-open .sub-menu { display: block; }
.sub-link { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 12px; }
.sub-link .ico { color: var(--cyan); width: 22px; height: 22px; margin-top: 2px; }
.sub-link strong { display: block; color: var(--ink); font-weight: 600; }
.sub-link small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.sub-link:hover { background: var(--blue-50); }
.sub-all { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; color: var(--cyan); font-weight: 600; font-size: .92rem; }
.nav-mobile-wa { border: 0 !important; padding-top: 22px; }

@media (min-width: 1080px) {
  .nav-burger, .nav-mobile-wa { display: none !important; }
  .header-wa { display: inline-flex; }
  .header-in { gap: 12px; }
  .main-nav { position: static; inset: auto; background: none; padding: 0; overflow: visible; transform: none; opacity: 1; visibility: visible; margin-left: 12px; }
  .nav-open { overflow: auto; }
  .nav-list { display: flex; align-items: center; gap: 4px; }
  .nav-list > li { border: 0; position: relative; }
  .nav-link { width: auto; padding: 8px 12px; font-size: .95rem; font-weight: 500; color: var(--ink-2); border-radius: var(--r-pill); gap: 4px; white-space: nowrap; }
  .nav-link:hover { color: #fff; background: var(--blue-50); }
  .nav-link[aria-current="page"] { color: var(--cyan); }
  .sub-menu {
    display: block; position: absolute; top: calc(100% + 10px); left: -12px; width: 360px; padding: 10px;
    background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .2s var(--ease-out), transform .25s var(--ease-out), visibility 0s .25s;
  }
  .sub-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
  .has-sub:hover .sub-menu, .has-sub.is-open .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .has-sub:hover .chev { transform: rotate(180deg); }
}
@media (min-width: 1080px) and (max-width: 1279px) {
  .header-wa span { display: none; }
  .nav-link { padding: 8px 9px; font-size: .92rem; }
}

/* 5. Botones */
@property --ba { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.btn {
  --bg: var(--blue); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 12px 22px; border-radius: var(--r-pill); background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: .98rem; line-height: 1.2; text-align: center;
  border: 1.5px solid transparent; box-shadow: 0 10px 30px -12px rgba(59, 116, 255, .8);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(92, 200, 255, .75); }
.btn:active { transform: translateY(0); transition-duration: .1s; }
.btn .arr { transition: transform .35s var(--ease-out); }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: linear-gradient(120deg, #2F63F0, #3B8BFF 60%, #4FB4FF); }
.btn-primary:hover { background: linear-gradient(120deg, #3B74FF, #4FA0FF 60%, #5CC8FF); }
/* Borde de luz que gira alrededor del CTA principal */
.btn-primary::after {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--ba), transparent 0 60%, #9FE4FF 75%, #6CC24A 88%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spinBorder 3.2s linear infinite; opacity: .9;
}
@keyframes spinBorder { to { --ba: 360deg; } }
.btn-ghost { --bg: rgba(10, 22, 54, .55); --fg: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn-ghost:hover { --bg: rgba(59, 116, 255, .18); border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(92, 200, 255, .08); }
.btn-wa { --bg: var(--wa); --fg: #fff; box-shadow: 0 10px 30px -12px rgba(31, 184, 85, .75); }
.btn-wa:hover { --bg: var(--wa-700); box-shadow: 0 18px 40px -14px rgba(31, 184, 85, .7); }
.btn-light { --bg: #fff; --fg: #041032; box-shadow: none; }
.btn-light:hover { --bg: #DDEBFF; box-shadow: 0 16px 34px -14px rgba(92, 200, 255, .6); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* 6. Secciones (transparentes: flotan sobre el fondo animado) */
.section { padding-block: clamp(64px, 10vw, 120px); position: relative; }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--flush-top { padding-top: 0; }
.section--soft { background: linear-gradient(180deg, transparent, rgba(7, 18, 46, .45) 18%, rgba(7, 18, 46, .45) 82%, transparent); }
.section--navy { background: linear-gradient(180deg, transparent, rgba(2, 8, 26, .55) 20%, rgba(2, 8, 26, .55) 80%, transparent); overflow: clip; isolation: isolate; }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lead { margin-top: 18px; }
.section-head--center { text-align: center; }
.section-head--center .h-section, .section-head--center .lead { margin-inline: auto; }
.section-head--light .kicker { color: var(--cyan); }

.page-hero { padding-block: clamp(40px, 7vw, 88px) clamp(40px, 6vw, 64px); }
.page-hero--compact { padding-bottom: 0; }
.page-hero .section-head { margin-bottom: 36px; }
.crumbs { margin-bottom: 26px; font-size: .86rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a:hover { color: var(--cyan); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* Tarjeta de vidrio flotante reutilizable */
.offer-card, .dip-card, .post-card, .mini-card, .why-item, .value, .step, .benefit, .fact, .learn-item,
.aside-card, .campus-band, .form-card, .faq details, .ideal-card, .post-cta, .wa-card {
  position: relative; isolation: isolate;
  background: linear-gradient(160deg, rgba(14, 30, 72, .78), rgba(6, 14, 38, .88));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

/* 7. Home */
.hero { position: relative; padding-block: clamp(28px, 5vw, 64px) clamp(40px, 6vw, 72px); overflow: clip; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-copy .lead { margin-top: 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-visual { position: relative; height: 360px; }
.hero-visual .gl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.no-gl .hero-visual .gl-canvas { display: none; }
.orbits { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.orbit-ring {
  position: absolute; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(143, 184, 255, .14);
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(92, 200, 255, .55) 85%, transparent 100%) border-box;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px)); mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  animation: orbitSpin 18s linear infinite;
}
.orbit-ring.r1 { width: 58%; }
.orbit-ring.r2 { width: 78%; animation-duration: 26s; animation-direction: reverse; }
.orbit-ring.r3 { width: 98%; animation-duration: 38s; opacity: .7; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.orbits::before { content: ""; position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(59, 116, 255, .35), transparent 68%); filter: blur(10px); }
.hero-badges { position: absolute; inset: 0; pointer-events: none; }
.hero-badge {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; pointer-events: auto;
  background: rgba(8, 18, 46, .86); border: 1px solid var(--line-2); border-radius: var(--r-pill);
  box-shadow: 0 0 24px -6px rgba(92, 200, 255, .55); font-size: .84rem; font-weight: 600; color: var(--ink);
  animation: floaty 7s ease-in-out infinite;
}
.hero-badge .ico { color: var(--cyan); width: 18px; height: 18px; }
.hero-badge--1 { top: 8%; left: 0; }
.hero-badge--2 { top: 46%; right: 0; animation-delay: -2.3s; }
.hero-badge--3 { bottom: 6%; left: 10%; animation-delay: -4.6s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.benefits { display: grid; gap: 14px; margin-top: clamp(40px, 6vw, 64px); }
.benefit { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--r); }
.benefit-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 10px 26px -8px rgba(92, 200, 255, .6); }
.benefit-ico .ico { width: 24px; height: 24px; }
.benefit strong { display: block; font-family: var(--display); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
.benefit p { color: var(--muted); font-size: .96rem; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 40px; }
  .hero-visual { height: 540px; }
  .benefits { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* Hero con imagen del cliente (astronauta), al estilo de la referencia: texto grande a la izquierda sobre la foto */
.hero--media { min-height: min(92svh, 900px); display: flex; flex-direction: column; justify-content: center; isolation: isolate; padding-top: clamp(48px, 7vw, 96px); }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
/* La imagen se ve COMPLETA (pedido del cliente): contain, nunca cover ni zoom que recorte */
.hero-media picture { position: absolute; inset: 0; display: block; transform: translate3d(var(--px, 0px), calc(var(--py, 0px) + var(--sy, 0px)), 0); transition: transform .7s var(--ease-out); }
.hero-media img { width: 100%; height: 100%; object-fit: contain; object-position: center right; animation: heroFloat 14s ease-in-out infinite alternate; }
@keyframes heroFloat { from { transform: translateY(-7px); } to { transform: translateY(7px); } }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(4, 10, 28, .95) 0%, rgba(4, 10, 28, .8) 30%, rgba(4, 10, 28, .3) 56%, rgba(4, 10, 28, 0) 74%),
  linear-gradient(180deg, rgba(4, 10, 28, .45), transparent 22%, transparent 68%, var(--bg) 100%); }
.hero-glow { position: absolute; inset: 10% 20% 30% -10%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(50% 30% at 40% 35%, rgba(108, 194, 74, .30), transparent 70%), radial-gradient(40% 35% at 15% 25%, rgba(92, 200, 255, .35), transparent 70%);
  animation: glowPulse 6s ease-in-out infinite; }
@keyframes glowPulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.hero--media .hero-grid { grid-template-columns: 1fr; }
.hero--media .hero-copy { max-width: 660px; }
.hero--media .h-display { font-size: clamp(2.5rem, 6vw, 5rem); max-width: 14ch; text-shadow: 0 6px 30px rgba(0, 0, 0, .55); }
.hero--media .lead { color: #DCE5FA; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.grad-anim { background: linear-gradient(90deg, #6CC24A, #5CC8FF, #3B74FF, #6CC24A); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradShift 7s linear infinite; text-shadow: none; filter: drop-shadow(0 0 18px rgba(92, 200, 255, .35)); }
@keyframes gradShift { to { background-position: 300% 0; } }
@media (max-width: 760px) {
  /* En celular la imagen va completa arriba y el texto debajo (sin recortes ni velos encima) */
  .hero--media { min-height: auto; padding-top: 0; }
  .hero-media { position: static; height: auto; z-index: auto; }
  .hero-media picture { position: static; transform: none; }
  .hero-media img { width: 100%; height: auto; animation: none; }
  .hero-shade, .hero-glow { display: none; }
  .hero--media .hero-grid { padding-top: 28px; }
  .hero--media .h-display, .hero--media .lead { text-shadow: none; }
}

/* Fotos del cliente en programas, diplomados y encabezados de sección */
/* Las fotos se ven COMPLETAS: proporción natural, sin recorte (pedido del cliente 2026-09-17) */
.prog-photo { margin: 0; aspect-ratio: auto; background: transparent; display: block; }
.prog-photo img { width: 100%; height: auto; display: block; transition: transform .8s var(--ease-out); }
.prog-photo:hover img { transform: scale(1.02); }
.prog-photo::after { display: none; }
.mini-card .prog-photo { aspect-ratio: auto; }
.prog-hero .prog-photo { width: 100%; max-width: 440px; justify-self: center; }
.dip-photo { margin: -30px -30px 6px; aspect-ratio: auto; overflow: hidden; border-radius: calc(var(--r-lg) - 2px) calc(var(--r-lg) - 2px) 0 0; }
.dip-photo img { width: 100%; height: auto; display: block; transition: transform .8s var(--ease-out); }
.dip-card:hover .dip-photo img { transform: scale(1.05); }
.dip-photo + .dip-ico { margin-top: -40px; position: relative; z-index: 2; }
.cat-head { display: grid; gap: 32px; align-items: center; margin-bottom: clamp(36px, 5vw, 56px); }
.cat-head .section-head { margin-bottom: 0; }
.cat-photo { margin: 0; position: relative; width: 100%; max-width: 340px; aspect-ratio: auto; justify-self: center; isolation: isolate; animation: floaty 8s ease-in-out infinite; }
.cat-photo img { width: 100%; height: auto; display: block; border-radius: 26px; box-shadow: var(--shadow-lg); }
.cat-photo::before { content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: 29px; background: conic-gradient(from var(--ba), #6CC24A, #3B74FF, #5CC8FF, #6CC24A); animation: spinBorder 6s linear infinite; }
.cat-photo::after { content: ""; position: absolute; inset: 12%; z-index: -2; border-radius: 50%; background: var(--grad); filter: blur(60px); opacity: .4; }
@media (min-width: 960px) { .cat-head { grid-template-columns: 1.35fr .65fr; gap: 56px; } }
.prog-list .prog-feature:nth-child(3) { margin-top: 0; }

/* Cinta de programas en movimiento */
.marquee { position: relative; overflow: hidden; padding-block: 22px; border-block: 1px solid var(--line); background: rgba(4, 10, 28, .55); }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.marquee-item { font-family: var(--display); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--ink); white-space: nowrap; }
.marquee-item.is-motto { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.marquee-sep { color: var(--cyan); font-size: 1.1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

.offer-grid { display: grid; gap: 18px; }
.offer-card {
  display: flex; flex-direction: column; gap: 12px; padding: 30px; min-height: 100%;
  border: 1.5px solid transparent;
  background: linear-gradient(160deg, rgba(14, 30, 72, .92), rgba(6, 14, 38, .95)) padding-box, linear-gradient(135deg, rgba(59, 116, 255, .9), rgba(92, 200, 255, .35) 50%, rgba(108, 194, 74, .8)) border-box;
}
.offer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.offer-top .ico { width: 34px; height: 34px; color: var(--cyan); filter: drop-shadow(0 0 10px rgba(92, 200, 255, .6)); }
.offer-num { font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .85; }
.offer-kicker { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.offer-card h3 { font-size: 1.5rem; }
.offer-card p { color: var(--muted); flex: 1; }
.offer-card .link-arrow { margin-top: 8px; }
@media (min-width: 720px) { .offer-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .offer-grid { grid-template-columns: repeat(3, 1fr); } .offer-grid--2 { grid-template-columns: repeat(2, 1fr); } }

/* Programa destacado */
.prog-list { display: grid; gap: clamp(40px, 6vw, 72px); margin-top: 40px; }
.prog-feature { display: grid; gap: 28px; align-items: start; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg); background: linear-gradient(160deg, rgba(12, 26, 64, .6), rgba(5, 12, 34, .7)); border: 1px solid var(--line); }
.prog-visual {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 30px 70px -30px rgba(59, 116, 255, .7);
}
.prog-visual--sst { --c1: #3B74FF; --c2: #002D83; }
.prog-visual--infancia { --c1: #5DAF2B; --c2: #017C64; }
.prog-visual--publica { --c1: #1A47B8; --c2: #06123A; }
.prog-visual--ia { --c1: #0A1633; --c2: #3B74FF; }
.prog-visual--foto { --c1: #017C64; --c2: #002D83; }
.prog-visual--video { --c1: #2A5CE6; --c2: #06123A; }
.prog-visual::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(40% 50% at 78% 22%, rgba(255, 255, 255, .28), transparent 70%),
  radial-gradient(50% 60% at 15% 90%, rgba(143, 184, 255, .35), transparent 70%); }
.pv-grid { position: absolute; inset: 0; z-index: -1; opacity: .25;
  background-image: radial-gradient(rgba(255, 255, 255, .9) 1px, transparent 1.4px); background-size: 22px 22px;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
  animation: gridDrift 18s linear infinite; }
@keyframes gridDrift { to { background-position: 22px 44px; } }
.pv-ico { width: 38%; height: 38%; max-width: 150px; max-height: 150px; stroke-width: 1.1; filter: drop-shadow(0 0 22px rgba(255, 255, 255, .45)); animation: floaty 6s ease-in-out infinite; }
.prog-visual-tag { position: absolute; left: 18px; bottom: 18px; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.prog-name { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.prog-quote { font-family: var(--display); font-weight: 500; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.3; margin: 12px 0 18px; background: linear-gradient(120deg, #8FB8FF, #5CC8FF 60%, #8FDB6A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prog-quote--sm { font-size: 1.15rem; margin: 0; }
.prog-body > p { color: var(--ink-2); }
.mini-label { margin: 24px 0 12px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border-radius: var(--r-pill); background: rgba(59, 116, 255, .12); border: 1px solid var(--line-2); font-size: .9rem; color: var(--ink); transition: background-color .25s, border-color .25s, transform .25s; }
.chips li:hover { background: rgba(92, 200, 255, .2); border-color: var(--cyan); transform: translateY(-2px); }
.learn-grid { display: grid; gap: 12px; }
.learn-item { display: flex; gap: 12px; padding: 16px; border-radius: var(--r); }
.learn-item > .ico { color: #04210F; background: var(--green); border-radius: 50%; padding: 4px; width: 26px; height: 26px; stroke-width: 2.4; flex: none; box-shadow: 0 0 14px rgba(108, 194, 74, .6); }
.learn-item strong { display: block; color: var(--ink); font-weight: 600; }
.learn-item span { display: block; font-size: .92rem; color: var(--muted); line-height: 1.5; }
@media (min-width: 720px) { .learn-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .prog-feature { grid-template-columns: .9fr 1.1fr; gap: 48px; }
  .prog-feature--rev .prog-visual { order: 2; }
  .prog-feature .prog-visual { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* Diplomados */
.dip-grid { display: grid; gap: 18px; }
.dip-card {
  display: flex; flex-direction: column; gap: 10px; padding: 30px;
  border: 1.5px solid transparent;
  background: linear-gradient(160deg, rgba(12, 26, 66, .94), rgba(4, 10, 30, .96)) padding-box, linear-gradient(140deg, #5CC8FF, rgba(59, 116, 255, .4) 45%, #6CC24A) border-box;
}
.dip-card::before { content: ""; position: absolute; inset: 10% 8%; z-index: -1; border-radius: 50%; background: var(--grad); filter: blur(46px); opacity: .22; transition: opacity .4s; }
.dip-card:hover::before { opacity: .45; }
.dip-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 8px; box-shadow: 0 10px 30px -8px rgba(92, 200, 255, .8); }
.dip-ico .ico { width: 28px; height: 28px; }
.dip-kicker { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); font-weight: 600; }
.dip-card h3 { font-size: 1.6rem; }
.dip-headline { color: var(--ink); font-size: 1.06rem; line-height: 1.45; }
.dip-list { display: grid; gap: 8px; margin: 10px 0 20px; flex: 1; align-content: start; }
.dip-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
.dip-list .ico { color: var(--green); margin-top: 3px; width: 18px; height: 18px; }
.dip-card .btn { align-self: flex-start; }
@media (min-width: 960px) { .dip-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

/* Por qué */
.why-grid { display: grid; gap: 16px; }
.why-item { padding: 30px; }
.why-item > .ico { width: 30px; height: 30px; color: var(--cyan); margin-bottom: 18px; filter: drop-shadow(0 0 10px rgba(92, 200, 255, .6)); }
.why-num { position: absolute; top: 24px; right: 26px; font-family: var(--display); font-weight: 700; font-size: 1.6rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .6; }
.why-item h3 { font-size: 1.2rem; margin-bottom: 8px; }
.why-item p { color: var(--muted); font-size: .96rem; }
@media (min-width: 720px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }

/* Campus */
.campus-band { display: grid; gap: 24px; align-items: center; padding: clamp(28px, 5vw, 56px); overflow: hidden; border-color: var(--line-2); }
.campus-band::after { content: ""; position: absolute; right: -100px; top: -100px; width: 320px; height: 320px; border-radius: 50%; border: 1px dashed var(--line-2); animation: orbitSpin 40s linear infinite; z-index: -1; }
.campus-ico { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 16px 40px -12px rgba(92, 200, 255, .8); }
.campus-ico .ico { width: 36px; height: 36px; }
.campus-copy .lead, .campus-copy p { margin-top: 12px; }
@media (min-width: 960px) { .campus-band { grid-template-columns: auto 1fr auto; gap: 40px; } }

/* Posts */
.post-grid { display: grid; gap: 22px; }
.post-card { overflow: hidden; }
.post-card[hidden] { display: none; }
.post-link { display: flex; flex-direction: column; height: 100%; }
.post-cover { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; color: #fff; isolation: isolate; background: linear-gradient(135deg, var(--c1, #3B74FF), var(--c2, #002D83)); }
.post-cover--educacion { --c1: #002D83; --c2: #3B74FF; }
.post-cover--sst { --c1: #3B74FF; --c2: #002D83; }
.post-cover--primera-infancia { --c1: #5DAF2B; --c2: #017C64; }
.post-cover--administracion-publica { --c1: #1A47B8; --c2: #06123A; }
.post-cover--inteligencia-artificial { --c1: #0A1633; --c2: #3B74FF; }
.post-cover--fotografia { --c1: #017C64; --c2: #002D83; }
.post-cover--video { --c1: #2A5CE6; --c2: #06123A; }
.post-cover-ico { width: 64px; height: 64px; stroke-width: 1.2; filter: drop-shadow(0 0 18px rgba(255, 255, 255, .45)); transition: transform .5s var(--ease-out); }
.post-card:hover .post-cover-ico { transform: scale(1.12) rotate(-4deg); }
.post-tag { position: absolute; top: 16px; left: 16px; padding: 5px 12px; border-radius: var(--r-pill); background: rgba(4, 10, 28, .75); border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.post-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-body h3 { font-size: 1.24rem; line-height: 1.25; }
.post-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.post-meta { font-size: .84rem; color: var(--muted); }
@media (min-width: 720px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn { padding: 9px 16px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: rgba(10, 22, 54, .6); font-size: .9rem; font-weight: 500; color: var(--ink-2); transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s; }
.filter-btn:hover { border-color: var(--cyan); color: #fff; }
.filter-btn[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 24px -10px rgba(92, 200, 255, .8); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Nosotros */
.about-grid { display: grid; gap: 24px; margin-bottom: 48px; }
.about-text p + p { margin-top: 14px; }
.about-text .link-arrow { margin-top: 20px; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.values { display: grid; gap: 18px; }
.value { padding: 34px 30px; }
.value .ico { width: 34px; height: 34px; color: var(--cyan); margin-bottom: 22px; filter: drop-shadow(0 0 12px rgba(92, 200, 255, .6)); }
.value h3 { font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
.value p { color: var(--muted); }
@media (min-width: 960px) { .values { grid-template-columns: repeat(3, 1fr); } }

/* Pasos + inscripción */
.steps-head { margin-bottom: 28px; }
.steps { display: grid; gap: 12px; }
.step { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: var(--r); }
.step-num { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.step strong { font-family: var(--display); color: var(--ink); font-size: 1.12rem; font-weight: 600; }
.step span:last-child { color: var(--muted); font-size: .94rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) {
  #preinscripcion .steps { grid-template-columns: repeat(4, 1fr); }
  #preinscripcion .step:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -13px; width: 14px; height: 2px; background: var(--grad); }
}
.enroll-grid { display: grid; gap: 32px; margin-top: clamp(48px, 7vw, 88px); align-items: start; }
.enroll-copy .lead { margin: 18px 0 10px; color: var(--ink); }
.enroll-copy > p { color: var(--muted); }
.enroll-copy .steps { margin-top: 28px; grid-template-columns: 1fr; }
.wa-card { margin-top: 28px; padding: 24px; border-radius: var(--r); display: grid; gap: 12px; justify-items: start; border-color: rgba(31, 184, 85, .35); }
.wa-card p { font-weight: 600; color: var(--ink); }
.wa-num { font-weight: 600; color: #5BE38C; }
@media (min-width: 960px) { .enroll-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.section > .enroll-grid:first-child { margin-top: 0; }

/* Formulario con píldoras flotantes alrededor (como davidmarketer.com) */
.form-float { position: relative; }
.float-chip {
  position: absolute; z-index: 2; display: none; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--r-pill);
  background: rgba(8, 18, 46, .92); border: 1px solid var(--line-2); color: var(--ink); font-size: .86rem; font-weight: 600;
  box-shadow: 0 0 26px -6px rgba(92, 200, 255, .6); pointer-events: none; animation: floaty 7s ease-in-out infinite;
}
.float-chip .ico { color: var(--cyan); width: 18px; height: 18px; }
.float-chip.fc-1 { top: -18px; left: -28px; }
.float-chip.fc-2 { top: 34%; right: -44px; animation-delay: -2.4s; }
.float-chip.fc-3 { bottom: -16px; left: 12%; animation-delay: -4.8s; }
@media (min-width: 1180px) { .float-chip { display: inline-flex; } }

/* Contacto */
.contact-grid { display: grid; gap: 32px; align-items: start; }
.contact-qs { display: grid; gap: 8px; margin: 24px 0 14px; }
.contact-qs li { font-family: var(--display); font-size: 1.12rem; color: var(--ink); padding-left: 18px; border-left: 2px solid var(--cyan); }
.contact-copy > p { color: var(--muted); }
.wa-big { display: inline-flex; align-items: center; gap: 16px; margin: 26px 0 18px; }
.wa-big-ico { width: 58px; height: 58px; border-radius: 18px; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 0 30px -4px rgba(31, 184, 85, .7); }
.wa-big-ico .ico { width: 30px; height: 30px; }
.wa-big small { display: block; color: var(--muted); font-size: .84rem; }
.wa-big strong { display: block; font-family: var(--display); font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--ink); letter-spacing: -.02em; }
.contact-copy .btn { display: flex; width: fit-content; }
/* Home: canales directos en lugar de un segundo formulario */
.channels { display: grid; gap: 12px; }
.channel {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(14, 30, 72, .78), rgba(6, 14, 38, .88)); border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform .35s var(--ease-out), border-color .3s, box-shadow .35s;
}
.channel:hover { transform: translateX(6px); border-color: rgba(92, 200, 255, .5); box-shadow: var(--shadow-lg); }
.channel > span:nth-child(2) { flex: 1; }
.channel strong { display: block; font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 1.08rem; }
.channel small { display: block; color: var(--muted); font-size: .9rem; }
.channel .arr { color: var(--cyan); }
.channel-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; box-shadow: 0 10px 26px -8px rgba(92, 200, 255, .6); }
.channel-ico .ico { width: 24px; height: 24px; }
.channel-ico--wa { background: var(--wa); box-shadow: 0 10px 26px -8px rgba(31, 184, 85, .7); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; } }

/* 8. Programas (páginas) */
.cat-row-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.mini-grid { display: grid; gap: 18px; }
.mini-card { display: grid; gap: 18px; padding: 16px; }
.mini-card .prog-visual { aspect-ratio: 16 / 9; }
.mini-card .pv-ico { width: 28%; height: 28%; }
.mini-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.mini-card p { color: var(--muted); font-size: .95rem; margin-bottom: 12px; }
.mini-card > div { padding: 0 8px 8px; }
@media (min-width: 720px) { .mini-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .mini-grid { grid-template-columns: repeat(3, 1fr); } }

.prog-hero { padding-block: clamp(32px, 6vw, 72px); }
.prog-hero-grid { display: grid; gap: 32px; align-items: center; }
.prog-hero .prog-quote { font-size: clamp(1.25rem, 2.4vw, 1.7rem); max-width: 30ch; }
@media (min-width: 960px) { .prog-hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; } }

.prog-layout { display: grid; gap: 40px; align-items: start; }
.prog-block { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.prog-block:last-child { border: 0; margin-bottom: 0; }
.prog-block h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 18px; }
.prog-block > p { color: var(--ink-2); font-size: 1.04rem; }
.prog-block > p + p { margin-top: 14px; }
.prog-block > p + .chips { margin-top: 14px; }
.check-list { display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.check-list .ico { color: var(--green); margin-top: 3px; stroke-width: 2.2; }
@media (min-width: 720px) { .prog-block .check-list { grid-template-columns: repeat(2, 1fr); } }
.ideal-grid { display: grid; gap: 12px; }
.ideal-card { padding: 18px; border-radius: var(--r); }
.ideal-card strong { display: block; color: var(--ink); font-family: var(--display); }
.ideal-card span { color: var(--muted); font-size: .94rem; }
@media (min-width: 720px) { .ideal-grid { grid-template-columns: repeat(2, 1fr); } }
.facts { display: grid; gap: 12px; margin-bottom: 18px; }
.fact { display: flex; gap: 14px; padding: 18px; border-radius: var(--r); }
.fact > .ico { color: var(--cyan); width: 24px; height: 24px; margin-top: 2px; }
.fact-label { display: block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.fact strong { color: var(--ink); }
.fact-pending { color: var(--cyan); font-weight: 500; font-size: .95rem; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.faq details { border-radius: var(--r); }
.faq details + details { margin-top: 10px; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 20px; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { color: var(--cyan); transition: transform .3s var(--ease-out); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details p { padding: 0 20px 20px; color: var(--muted); }
.prog-aside { display: none; }
.aside-card { padding: 26px; display: grid; gap: 12px; border-color: var(--line-2); }
.aside-title { font-family: var(--display); font-weight: 600; font-size: 1.25rem; color: var(--ink); line-height: 1.2; margin-bottom: 6px; }
.aside-small { text-align: center; color: var(--muted); font-size: .88rem; }
@media (min-width: 1080px) {
  .prog-layout { grid-template-columns: 1fr 320px; gap: 64px; }
  .prog-aside { display: block; position: sticky; top: calc(var(--header-h) + 24px); }
}

/* 9. Artículo */
.post-hero { padding-block: clamp(32px, 6vw, 72px) 32px; }
.post-hero .lead { margin-top: 18px; }
.post-hero .post-meta { margin-top: 18px; }
.prose { font-size: 1.08rem; line-height: 1.8; color: var(--ink-2); padding-bottom: 48px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-top: 1.9em; }
.prose ul { padding-left: 0; display: grid; gap: .5em; }
.prose ul li { position: relative; padding-left: 1.4em; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px rgba(92, 200, 255, .8); }
.prose strong { color: var(--ink); }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose--legal { font-size: 1rem; }
.post-cta { margin-bottom: clamp(56px, 8vw, 96px); padding: clamp(28px, 5vw, 44px); border-color: var(--line-2); }
.post-cta h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; }
.post-cta p { color: var(--muted); }

/* 10. Formularios */
.form-card { padding: clamp(24px, 4vw, 40px); border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.form-title { font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--ink); margin-bottom: 6px; letter-spacing: -.02em; }
.form-group-label { margin: 22px 0 12px; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.form-grid { display: grid; gap: 14px; }
.form-title + .form-grid { margin-top: 20px; }
@media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field > span, .choice legend { font-size: .9rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); padding: 13px 14px; min-height: 50px;
  border: 1.5px solid var(--line-2); border-radius: 12px; background: rgba(3, 9, 26, .75); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field select option, .field select optgroup { background: #0A1636; color: var(--ink); }
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235CC8FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); background-color: rgba(6, 16, 44, .9); box-shadow: 0 0 0 4px rgba(92, 200, 255, .15), 0 0 24px -6px rgba(92, 200, 255, .6); }
.was-validated .field :invalid { border-color: #FF6B7A; }
.choice { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.choice legend { margin-bottom: 8px; width: 100%; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border-radius: var(--r-pill); border: 1.5px solid var(--line-2); font-size: .94rem; font-weight: 500; color: var(--ink-2); transition: all .2s; }
.pill input:checked + span { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 22px -10px rgba(92, 200, 255, .9); }
.pill input:focus-visible + span { outline: 2.5px solid var(--cyan); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--blue); flex: none; }
.check a { color: var(--cyan); text-decoration: underline; }
.lead-form .btn-block { margin-top: 22px; }
.form-status { margin-top: 12px; font-size: .92rem; min-height: 1.2em; }
.form-status.is-error { color: #FF8B97; }
.form-status a { color: #5BE38C; }
.form-success { text-align: center; padding: 20px 0; }
.form-success-ico { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 0 40px -6px rgba(92, 200, 255, .9); }
.form-success-ico .ico { width: 36px; height: 36px; stroke-width: 2.4; }
.form-success h3 { font-size: 1.7rem; margin-bottom: 10px; }
.form-success p { color: var(--muted); max-width: 42ch; margin: 0 auto; }
.form-success .radicado { margin-top: 14px; font-weight: 600; color: var(--ink); }
.form-success .btn { margin-top: 22px; }

/* 11. Footer */
.site-footer { background: linear-gradient(180deg, rgba(2, 6, 18, .35), rgba(2, 6, 18, .92) 30%); color: var(--muted); position: relative; }
.brand-band { padding-block: clamp(56px, 9vw, 104px); border-bottom: 1px solid var(--line); }
.brand-band-motto { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 6.2vw, 5rem); line-height: 1.05; letter-spacing: -.02em; text-transform: uppercase; background: linear-gradient(120deg, #fff 30%, #8FB8FF 60%, #6CC24A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-band-sub { margin-top: 16px; font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--ink-2); }
.footer-grid { display: grid; gap: 32px; padding-block: 56px; }
.footer-col h3 { font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 9px; font-size: .94rem; }
.footer-col a:hover { color: var(--cyan); }
.footer-brand p { margin: 16px 0 18px; color: var(--ink-2); }
.footer-bottom { padding-block: 22px 96px; border-top: 1px solid var(--line); font-size: .86rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); } .footer-bottom { padding-bottom: 28px; } }

.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: var(--r-pill); background: var(--wa); color: #fff;
  box-shadow: 0 14px 34px -12px rgba(31, 184, 85, .8), 0 0 0 0 rgba(31, 184, 85, .5); transition: transform .35s var(--ease-out), background-color .2s;
  animation: waPulse 2.8s ease-out infinite;
}
@keyframes waPulse { 0% { box-shadow: 0 14px 34px -12px rgba(31, 184, 85, .8), 0 0 0 0 rgba(31, 184, 85, .45); } 70%, 100% { box-shadow: 0 14px 34px -12px rgba(31, 184, 85, .8), 0 0 0 16px rgba(31, 184, 85, 0); } }
.wa-float:hover { transform: translateY(-3px); background: var(--wa-700); }
.wa-float > .ico { width: 34px; height: 34px; }
.wa-float-text { display: none; line-height: 1.15; padding-right: 10px; }
.wa-float-text small { display: block; font-size: .76rem; opacity: .9; }
.wa-float-text strong { display: block; font-size: .92rem; }
@media (min-width: 720px) { .wa-float { right: 24px; bottom: 24px; } .wa-float-text { display: block; } }

/* 12. Interacción: halo que sigue al mouse + inclinación 3D (JS pone --mx/--my/--rx/--ry) */
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(92, 200, 255, .16), transparent 60%);
  opacity: 0; transition: opacity .35s;
}
.spot:hover::after { opacity: 1; }
.spot:hover { border-color: rgba(92, 200, 255, .45); }
.tilt { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s; }
.js .tilt.is-in, .tilt:not(.reveal) {
  transform: perspective(900px) translateY(var(--lift, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.tilt:hover { --lift: -6px; box-shadow: var(--shadow-lg); }
.tilt.is-tilting { transition: transform .12s linear, box-shadow .45s var(--ease-out), border-color .3s; }

/* Cursor propio (solo con mouse; los campos del formulario conservan su cursor de texto) */
.cursor { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; display: none; opacity: 0; transition: opacity .25s; }
.cursor.is-ready { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; will-change: transform; border-radius: 50%; }
.cursor-dot { width: 6px; height: 6px; margin: -3px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.cursor-ring { width: 34px; height: 34px; margin: -17px; border: 1.5px solid rgba(143, 184, 255, .6); transition: width .3s var(--ease-out), height .3s var(--ease-out), margin .3s var(--ease-out), border-color .3s, background-color .3s; }
.cursor.is-hover .cursor-ring { width: 56px; height: 56px; margin: -28px; border-color: var(--cyan); background: rgba(92, 200, 255, .08); }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor summary { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: auto; }

/* 13. Aparición al hacer scroll (solo con JS; si falla, todo se lee) */
.js .reveal { opacity: 0; transform: translateY(30px) scale(.98); transition: opacity .8s var(--ease-soft), transform .9s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.offer-grid > .reveal:nth-child(2), .dip-grid > .reveal:nth-child(2), .why-grid > .reveal:nth-child(2), .post-grid > .reveal:nth-child(2), .values > .reveal:nth-child(2) { transition-delay: .08s; }
.offer-grid > .reveal:nth-child(3), .dip-grid > .reveal:nth-child(3), .why-grid > .reveal:nth-child(3), .post-grid > .reveal:nth-child(3), .values > .reveal:nth-child(3) { transition-delay: .16s; }
.why-grid > .reveal:nth-child(4) { transition-delay: .24s; }
.why-grid > .reveal:nth-child(5) { transition-delay: .32s; }
.why-grid > .reveal:nth-child(6) { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .hero-badge, .float-chip, .pv-ico, .orbit-ring, .campus-band::after, .wa-float, .pv-grid,
  .hero-media img, .hero-glow, .cat-photo, .cat-photo::before, .grad-anim { animation: none; }
  .marquee-track { animation-duration: 120s; }
  .js .reveal { transition-duration: .01s; transform: none; }
}

/* =============================================================
   14. FOTOS COMPLETAS — regla del cliente: ninguna imagen se recorta.
   Va al FINAL a propósito: `.prog-visual` (§7, línea ~376) y `.mini-card .prog-visual`
   se declaran después del bloque de fotos y volvían a imponer su marco 4/3 y 16/9,
   que recortaba las fotos de los programas.
   ============================================================= */
figure.prog-photo,
.mini-card figure.prog-photo,
.prog-hero figure.prog-photo {
  aspect-ratio: auto; height: auto; display: block; place-items: initial;
  background: transparent; overflow: visible; box-shadow: none;
}
figure.prog-photo img {
  width: 100%; height: auto; display: block; object-fit: contain;
  border-radius: var(--r-lg); box-shadow: 0 30px 70px -30px rgba(59, 116, 255, .7);
}
figure.prog-photo::before, figure.prog-photo::after { display: none; }
figure.dip-photo, figure.cat-photo { aspect-ratio: auto; height: auto; }
figure.dip-photo img, figure.cat-photo img { height: auto; object-fit: contain; }
