/* ==========================================================================
   ENADE · Escuela Nacional de Desarrollo Empresarial
   Ultra minimalista · blanco puro · azul institucional · acentos fucsia/celeste
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colores del logo */
  --navy:        #1c3f73;   /* azul oscuro ENADE: texto principal */
  --navy-deep:   #12284d;   /* titulares y fondos oscuros */
  --blue:        #1c5592;   /* azul de las columnas del logo */
  --fuchsia:     #e6298a;   /* SOLO botones de acción y acentos */
  --fuchsia-dk:  #c81a74;
  --cyan:        #00aeef;   /* SOLO acentos */

  /* Neutros */
  --white:       #ffffff;
  --gray-50:     #f5f5f7;
  --gray-100:    #ececf0;
  --muted:       #5b6a82;   /* texto secundario (azul grisáceo) */

  /* Sombras suaves, sin bordes duros */
  --shadow-sm:   0 1px 2px rgba(18, 40, 77, .04), 0 4px 14px rgba(18, 40, 77, .05);
  --shadow-md:   0 2px 6px rgba(18, 40, 77, .04), 0 18px 40px -12px rgba(18, 40, 77, .14);
  --shadow-lg:   0 4px 10px rgba(18, 40, 77, .05), 0 32px 64px -20px rgba(18, 40, 77, .22);

  /* Medidas */
  --maxw:        1200px;
  --gutter:      clamp(20px, 5vw, 56px);
  --header-h:    80px;
  --section-y:   clamp(88px, 11vw, 160px);
  --r-sm:        14px;
  --r-md:        22px;
  --r-lg:        32px;
  --pill:        999px;

  --ease:        cubic-bezier(.22, .61, .36, 1);
  --font:        "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
                 Inter, Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(16px, .3vw + 15px, 17px);
  line-height: 1.55;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--navy); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 8px;
}

[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.wrap {
  width: min(var(--maxw), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 300;
  padding: 12px 18px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--white);
  background: var(--navy-deep);
  border-radius: 12px;
  transition: top .3s var(--ease);
}
.skip-link:focus { top: 14px; }

/* --------------------------------------------------------------------------
   3. Botones
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 52px;
  padding: 0 1.9em;
  font: 600 1rem/1 var(--font);
  letter-spacing: -.005em;
  white-space: nowrap;
  border: 0;
  border-radius: var(--pill);
  cursor: pointer;
  transition: transform .35s var(--ease),
              box-shadow .35s var(--ease),
              background-color .3s var(--ease),
              color .3s var(--ease);
}
.btn:active { transform: scale(.98); }

/* Acción principal: fucsia del logo */
.btn-primary {
  color: var(--white);
  background: var(--fuchsia);
  box-shadow: 0 8px 22px -8px rgba(230, 41, 138, .6);
}
.btn-primary:hover {
  background: var(--fuchsia-dk);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -10px rgba(230, 41, 138, .7);
}

/* Secundario sobre el video */
.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, .22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8);
}

/* Botón suave dentro de tarjetas: el celeste aparece solo en hover */
.btn-soft {
  min-height: 46px;
  padding: 0 1.4em;
  font-size: .94rem;
  color: var(--navy);
  background: var(--gray-50);
}
.btn-soft::after {
  content: "→";
  transition: transform .35s var(--ease);
}
.btn-soft:hover {
  color: var(--white);
  background: var(--cyan);
  box-shadow: 0 10px 24px -10px rgba(0, 174, 239, .7);
}
.btn-soft:hover::after { transform: translateX(3px); }

.btn-sm {
  min-height: 42px;
  padding: 0 1.3em;
  font-size: .9rem;
}

/* --------------------------------------------------------------------------
   4. Header (pegajoso, transparente → sólido)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: var(--white);
  background: transparent;
  transition: background-color .45s var(--ease),
              color .45s var(--ease),
              box-shadow .45s var(--ease);
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(18, 40, 77, .06), 0 8px 30px -18px rgba(18, 40, 77, .18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  transition: height .45s var(--ease);
}

.site-header.is-scrolled .header-inner { height: calc(var(--header-h) - 10px); }

/* Logo: blanco sobre el video, a color en el header sólido */
.brand { display: inline-flex; flex-shrink: 0; }

.brand img {
  width: auto;
  height: 54px;
  transition: filter .45s var(--ease), height .45s var(--ease);
}

.site-header .brand img { filter: brightness(0) invert(1); }

.site-header.is-scrolled .brand img,
.site-header.is-open .brand img {
  height: 48px;
  filter: none;
}

/* Navegación */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
}

.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
}

.nav-list > li > a,
.mega-trigger {
  position: relative;
  padding: 6px 0;
  font-size: .94rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: .82;
  transition: opacity .25s var(--ease);
}

/* Subrayado sutil fucsia → celeste */
.nav-list > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--fuchsia), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}

.nav-list > li > a:hover,
.nav-list > li > a[aria-current],
.mega-trigger:hover,
.mega-trigger[aria-expanded="true"],
.mega-trigger[data-current] { opacity: 1; }
.nav-list > li > a:hover::after,
.nav-list > li > a[aria-current]::after { transform: scaleX(1); }

/* Hamburguesa */
.nav-toggle {
  position: relative;
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .35s var(--ease);
}

.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 25px; }

.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 48px) 0 120px;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  isolation: isolate;
}

/* Fondo de respaldo mientras carga el video (o si no existe) */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(80% 70% at 15% 20%, rgba(0, 174, 239, .28), transparent 60%),
    radial-gradient(70% 60% at 85% 80%, rgba(230, 41, 138, .22), transparent 60%),
    var(--navy-deep);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Entrada cinematográfica: aparece y se asienta cuando empieza a reproducirse */
.js .hero-video {
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s var(--ease), transform 6s var(--ease);
}

.js .hero-video.is-playing {
  opacity: 1;
  transform: scale(1);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 50% 45%, rgba(10, 22, 44, .15), rgba(10, 22, 44, .45) 100%),
    linear-gradient(180deg,
      rgba(10, 22, 44, .55) 0%,
      rgba(10, 22, 44, .38) 45%,
      rgba(10, 22, 44, .80) 100%);
}

.hero-inner {
  display: grid;
  justify-items: center;
  gap: clamp(18px, 2.2vw, 28px);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  font-size: clamp(.8rem, .3vw + .72rem, .92rem);
  font-weight: 500;
  letter-spacing: .01em;
  color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .1);
  border-radius: var(--pill);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fuchsia), var(--cyan));
  flex-shrink: 0;
}

.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.hero-lede {
  max-width: 50ch;
  font-size: clamp(1.02rem, .5vw + .92rem, 1.25rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, .8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}

/* Indicador de scroll */
.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  display: flex;
  justify-content: center;
  width: 24px;
  height: 48px;
  transform: translateX(-50%);
}

.scroll-cue span {
  position: relative;
  width: 1px;
  height: 100%;
  overflow: hidden;
  background: rgba(255, 255, 255, .25);
}

.scroll-cue span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--white));
  transform: translateY(-100%);
  animation: cue 2.4s var(--ease) infinite;
}

@keyframes cue {
  0%        { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* --------------------------------------------------------------------------
   6. Secciones (estructura común)
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section-y); }

.section-tint { background: var(--gray-50); }

.section-head {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-head-center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Acento sutil: pequeña línea degradada */
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--fuchsia), var(--cyan));
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.035em;
  color: var(--navy-deep);
  text-wrap: balance;
}

.section-lede {
  max-width: 56ch;
  font-size: clamp(1.02rem, .4vw + .94rem, 1.18rem);
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   7. Nosotros
   -------------------------------------------------------------------------- */
.identity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.identity-card {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: clamp(32px, 4vw, 56px);
  background: var(--gray-50);
  border-radius: var(--r-lg);
}

.identity-card p {
  font-size: clamp(1.2rem, 1.5vw + .7rem, 1.7rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -.02em;
  color: var(--navy-deep);
  text-wrap: pretty;
}

.identity-tag {
  justify-self: start;
  padding: 7px 14px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: var(--pill);
}

.tag-fuchsia { color: var(--fuchsia-dk); background: rgba(230, 41, 138, .1); }
.tag-cyan    { color: #0077a8;           background: rgba(0, 174, 239, .12); }

/* Pilares */
.pillars { margin-top: clamp(72px, 9vw, 120px); }

.pillars-title {
  margin-bottom: clamp(28px, 3.5vw, 44px);
  font-size: clamp(1.4rem, 1.6vw + .8rem, 2rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--navy-deep);
}

.pillars-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}

.pillar {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 40px;
  min-height: 190px;
  padding: 26px 24px;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}

/* Barra superior alternando los acentos del logo */
.pillar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--fuchsia);
}
.pillar:nth-child(even)::before { background: var(--cyan); }

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pillar-num {
  font-size: .82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
  color: var(--muted);
}

.pillar-name {
  font-size: clamp(1.1rem, .8vw + .8rem, 1.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--navy-deep);
}

/* --------------------------------------------------------------------------
   8. Áreas Académicas
   -------------------------------------------------------------------------- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
}

/* 3 tarjetas arriba, 2 más anchas abajo */
.area-card { grid-column: span 2; }
.area-card:nth-child(4),
.area-card:nth-child(5) { grid-column: span 3; }

.area-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(30px, 3vw, 42px);
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}

.area-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.area-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  color: var(--blue);
  background: var(--gray-50);
  border-radius: 16px;
  transition: color .35s var(--ease), background-color .35s var(--ease);
}

.area-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.area-card:hover .area-icon {
  color: var(--fuchsia);
  background: rgba(230, 41, 138, .08);
}

.area-card h3 {
  font-size: clamp(1.2rem, .7vw + 1rem, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
  color: var(--navy-deep);
}

.area-card p {
  font-size: .98rem;
  color: var(--muted);
}

.area-card .btn { margin-top: auto; }
.area-card p + .btn { margin-top: 18px; }

/* --------------------------------------------------------------------------
   9. Confianza y prestigio
   -------------------------------------------------------------------------- */
.trust {
  padding: clamp(56px, 8vw, 112px) clamp(24px, 6vw, 88px);
  background: var(--gray-50);
  border-radius: var(--r-lg);
}

.trust .section-head { margin-bottom: clamp(40px, 5vw, 64px); }

.partners {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}

.partner {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 22px 24px;
  text-align: center;
  background: var(--white);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.partner:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.partner span {
  font-size: clamp(1rem, .4vw + .9rem, 1.12rem);
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--navy);
}

/* Logos de aliados: monocromo, a color al pasar el cursor */
.partner img {
  max-height: 56px;
  width: auto;
  filter: grayscale(1);
  opacity: .75;
  transition: filter .4s var(--ease), opacity .4s var(--ease);
}
.partner:hover img { filter: none; opacity: 1; }

.partner-more {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(18, 40, 77, .1);
}
.partner-more:hover { box-shadow: inset 0 0 0 1px rgba(18, 40, 77, .18); }
.partner-more span {
  font-weight: 500;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: clamp(72px, 9vw, 120px) 0 32px;
  background: var(--white);
  box-shadow: inset 0 1px 0 var(--gray-100);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr .9fr;
  gap: clamp(36px, 4vw, 64px);
}

.footer-col { display: grid; align-content: start; }

.footer-brand .brand img {
  height: 72px;
  width: auto;
}

.footer-name {
  max-width: 24ch;
  margin-top: 22px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy-deep);
}

.footer-map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  margin-top: 18px;
  font-size: .94rem;
  font-weight: 500;
  color: var(--blue);
}

.footer-map svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.footer-map:hover { color: var(--fuchsia); }

.footer-title {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy-deep);
}

.footer-desc {
  margin-top: 8px;
  font-size: .94rem;
  color: var(--muted);
}

.footer-list {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.footer-list li { display: grid; gap: 2px; }

.footer-label {
  font-size: .78rem;
  color: var(--muted);
}

.footer-list a {
  justify-self: start;
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  overflow-wrap: anywhere;
  background: linear-gradient(var(--cyan), var(--cyan)) 0 100% / 0 1.5px no-repeat;
  transition: background-size .35s var(--ease), color .25s var(--ease);
}

.footer-list a:hover {
  color: var(--navy-deep);
  background-size: 100% 1.5px;
}

/* Redes */
.social {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .98rem;
  font-weight: 500;
  color: var(--navy);
}

.social svg {
  width: 40px;
  height: 40px;
  padding: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  background: var(--gray-50);
  border-radius: 50%;
  transition: color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease);
}

.social svg .fill { fill: currentColor; stroke: none; }

.social a:hover svg {
  color: var(--white);
  background: var(--fuchsia);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: 26px;
  font-size: .86rem;
  color: var(--muted);
  box-shadow: inset 0 1px 0 var(--gray-100);
}

.footer-bottom a:hover { color: var(--navy); }

/* --------------------------------------------------------------------------
   11. Animaciones de aparición (fade-in)
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease),
              transform .9s var(--ease),
              box-shadow .45s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Cascada dentro de grids */
.js .reveal:nth-child(2) { transition-delay: .07s; }
.js .reveal:nth-child(3) { transition-delay: .14s; }
.js .reveal:nth-child(4) { transition-delay: .21s; }
.js .reveal:nth-child(5) { transition-delay: .28s; }
.js .reveal:nth-child(6) { transition-delay: .35s; }

/* Las tarjetas con hover no heredan el delay al pasar el cursor */
.js .reveal.is-visible:hover { transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-cue span::after { animation: none; }
  .hero-video { display: none; }
}

/* --------------------------------------------------------------------------
   12. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .pillars-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  :root { --header-h: 68px; }

  .brand img,
  .site-header.is-scrolled .brand img,
  .site-header.is-open .brand img { height: 44px; }

  .site-header.is-scrolled .header-inner { height: var(--header-h); }

  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: calc(100svh - var(--header-h));
    padding: 12px var(--gutter) 40px;
    overflow-y: auto;
    background: var(--white);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }

  .site-header.is-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list > li > a,
  .mega-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 0;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -.02em;
    opacity: 1;
    box-shadow: inset 0 -1px 0 var(--gray-100);
  }

  .nav-list > li > a::after { display: none; }

  .site-nav .nav-actions .btn {
    min-height: 54px;
    font-size: 1rem;
  }

  body.nav-open { overflow: hidden; }

  .area-card,
  .area-card:nth-child(4),
  .area-card:nth-child(5) { grid-column: span 3; }

  .area-card:nth-child(5) { grid-column: 1 / -1; }

  .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .hero { padding-bottom: 104px; }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 360px;
  }
  .hero-actions .btn { width: 100%; }

  .identity { grid-template-columns: 1fr; }

  .pillars-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar { min-height: 150px; gap: 28px; }
  .pillar:last-child { grid-column: 1 / -1; }

  .area-grid { grid-template-columns: 1fr; }
  .area-card,
  .area-card:nth-child(4),
  .area-card:nth-child(5) { grid-column: auto; }

  .trust { border-radius: var(--r-md); }

  .footer-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 460px) {
  .partners { grid-template-columns: 1fr; }
  .partner { min-height: 84px; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   13. MICRO-INTERACCIONES
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- Botones: se elevan y la sombra crece --- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .12s; }

.btn-ghost:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 14px 30px -14px rgba(0, 0, 0, .5); }

.btn-soft:hover { transform: translateY(-2px); }

/* Destello que recorre el botón principal */
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
}
.btn-primary:hover::before { transform: translateX(120%); }

/* Botón de compra: pulso suave para atraer la mirada */
.btn-buy { animation: buyPulse 2.8s var(--ease) infinite; }
.btn-buy:hover { animation-play-state: paused; }

@keyframes buyPulse {
  0%, 100% { box-shadow: 0 8px 22px -8px rgba(230, 41, 138, .6), 0 0 0 0 rgba(230, 41, 138, .35); }
  50%      { box-shadow: 0 8px 22px -8px rgba(230, 41, 138, .6), 0 0 0 12px rgba(230, 41, 138, 0); }
}

.btn-arrow::after {
  content: "→";
  display: inline-block;
  transition: transform .35s var(--ease);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* Botón azul (verificación) */
.btn-blue {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 10px 24px -10px rgba(28, 85, 146, .75);
}
.btn-blue:hover {
  background: var(--navy-deep);
  box-shadow: 0 18px 34px -12px rgba(18, 40, 77, .65);
}

/* Enlace tipo texto */
.btn-text {
  padding: 0 1.1em;
  color: var(--blue);
  background: transparent;
}
.btn-text:hover { color: var(--fuchsia); transform: none; }

/* --- Spotlight: brillo que sigue al cursor --- */
.spot { position: relative; }

.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%),
              rgba(0, 174, 239, .10), transparent 45%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s var(--ease);
}
.spot:hover::after { opacity: 1; }

/* --- Tarjetas de cursos: reaccionan al cursor --- */
.area-card .area-icon { transition: transform .5s var(--ease), color .35s var(--ease), background-color .35s var(--ease); }
.area-card:hover .area-icon { transform: scale(1.08) rotate(-6deg); }
.area-card h3 { transition: color .35s var(--ease); }
.area-card:hover h3 { color: var(--blue); }

.identity-card { transition: transform .45s var(--ease), box-shadow .45s var(--ease), background-color .45s var(--ease); }
.identity-card:hover { transform: translateY(-4px); background: var(--white); box-shadow: var(--shadow-lg); }

/* Accesos del footer */
.footer-access {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.footer-access a {
  display: inline-flex;
  padding: 8px 14px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--gray-50);
  border-radius: var(--pill);
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.footer-access a:hover { color: var(--white); background: var(--navy); transform: translateY(-2px); }

/* --- Animaciones reutilizables --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes pop {
  0%   { transform: scale(.6); }
  60%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}
@keyframes ring {
  0%   { transform: scale(1);   opacity: .55; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ==========================================================================
   14. PÁGINAS INTERNAS (base común)
   ========================================================================== */

/* Header sobre fondo claro: azul desde el inicio y logo a color */
.page-light .site-header { color: var(--navy); }
.page-light .site-header .brand img { filter: none; }

.page-main { padding-top: var(--header-h); }

.wrap-wide { width: min(1440px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .25s var(--ease), gap .3s var(--ease);
}
.crumb:hover { color: var(--navy); gap: 12px; }

/* --- Marco de video estilo Apple --- */
.media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  border-radius: clamp(20px, 3vw, 36px);
  background:
    radial-gradient(60% 70% at 20% 20%, rgba(0, 174, 239, .35), transparent 60%),
    radial-gradient(60% 70% at 85% 85%, rgba(230, 41, 138, .30), transparent 60%),
    var(--navy-deep);
  box-shadow: var(--shadow-lg);
}

.media-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}

.media-frame.is-active video { object-fit: contain; background: #000; }

.play-btn {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(68px, 8vw, 92px);
  height: clamp(68px, 8vw, 92px);
  margin: auto;
  padding: 0;
  color: var(--navy-deep);
  background: rgba(255, 255, 255, .94);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .45);
  transition: transform .45s var(--ease), opacity .35s var(--ease), background-color .3s var(--ease);
}

.play-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .7);
  animation: ring 2.2s var(--ease) infinite;
}

.play-btn svg { width: 32%; height: 32%; margin-left: 6%; fill: currentColor; }
.play-btn:hover { transform: scale(1.08); background: var(--white); }

.media-caption {
  position: absolute;
  left: clamp(16px, 2.4vw, 28px);
  bottom: clamp(16px, 2.4vw, 26px);
  z-index: 2;
  padding: 8px 14px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--white);
  background: rgba(255, 255, 255, .14);
  border-radius: var(--pill);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: opacity .35s var(--ease);
}

.media-empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  color: rgba(255, 255, 255, .85);
}
.media-empty svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.5; opacity: .8; }

.media-frame.is-active .play-btn,
.media-frame.is-active .media-caption { opacity: 0; pointer-events: none; transform: scale(.85); }
.media-frame.is-empty .play-btn,
.media-frame.is-empty .media-caption { display: none; }
.media-frame.is-empty .media-empty { display: grid; }

/* ==========================================================================
   15. LANDING DE CURSO (curso-gestion-publica.html)
   ========================================================================== */
.course-hero {
  padding: calc(var(--header-h) + clamp(40px, 6vw, 88px)) 0 clamp(72px, 9vw, 128px);
  background:
    radial-gradient(55% 45% at 50% 0%, rgba(0, 174, 239, .09), transparent 70%),
    var(--white);
}

.course-hero-inner {
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
}

.course-hero h1 {
  max-width: 16ch;
  font-size: clamp(2.5rem, 6.2vw, 5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.045em;
  color: var(--navy-deep);
  text-wrap: balance;
}

.course-lede {
  max-width: 56ch;
  font-size: clamp(1.05rem, .5vw + .95rem, 1.3rem);
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--navy);
  background: var(--gray-50);
  border-radius: var(--pill);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.chips li:hover { transform: translateY(-2px); background: var(--gray-100); }

.chips svg { width: 16px; height: 16px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.course-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.course-hero .media-frame { margin-top: clamp(56px, 7vw, 88px); }

/* Beneficios */
.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

.benefit {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(26px, 2.6vw, 34px);
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.benefit:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.benefit .area-icon { margin-bottom: 8px; }
.benefit:hover .area-icon { color: var(--fuchsia); background: rgba(230, 41, 138, .08); transform: scale(1.08) rotate(-6deg); }
.benefit .area-icon { transition: transform .5s var(--ease), color .35s var(--ease), background-color .35s var(--ease); }

.benefit h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; color: var(--navy-deep); }
.benefit p { font-size: .96rem; color: var(--muted); }

/* Acordeón del temario */
.acc-list {
  display: grid;
  gap: 16px;
  max-width: 920px;
}

.acc {
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .45s var(--ease), transform .45s var(--ease);
}
.acc:hover { box-shadow: var(--shadow-md); }
.acc[open]:not(.is-closing) { box-shadow: var(--shadow-lg); }

.acc summary {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 22px);
  padding: clamp(20px, 2.4vw, 28px) clamp(20px, 2.6vw, 32px);
  list-style: none;
  cursor: pointer;
  border-radius: var(--r-md);
}
.acc summary::-webkit-details-marker { display: none; }

.acc-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--blue);
  background: var(--gray-50);
  border-radius: 16px;
  transition: background-color .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.acc[open]:not(.is-closing) .acc-num { color: var(--white); background: var(--fuchsia); transform: rotate(-4deg); }

.acc-title { flex: 1; display: grid; gap: 2px; min-width: 0; }
.acc-title small { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.acc-title strong { font-size: clamp(1.08rem, .6vw + .95rem, 1.3rem); font-weight: 700; letter-spacing: -.02em; color: var(--navy-deep); }

.acc-icon {
  position: relative;
  flex: none;
  width: 38px;
  height: 38px;
  background: var(--gray-50);
  border-radius: 50%;
  transition: transform .45s var(--ease), background-color .3s var(--ease);
}
.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transform: translate(-50%, -50%);
}
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc summary:hover .acc-icon { background: var(--gray-100); }
.acc[open]:not(.is-closing) .acc-icon { transform: rotate(135deg); }

.acc-body { overflow: hidden; }

.acc-content {
  padding: 0 clamp(20px, 2.6vw, 32px) clamp(24px, 2.8vw, 32px) calc(clamp(20px, 2.6vw, 32px) + 52px + clamp(14px, 2vw, 22px));
}

.acc-content > p { color: var(--muted); margin-bottom: 14px; }

.acc-topics li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  font-size: .98rem;
  box-shadow: inset 0 -1px 0 var(--gray-100);
}
.acc-topics li:last-child { box-shadow: none; }
.acc-topics li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  transform: translateY(-1px);
}

/* Banda final de llamada a la acción */
.cta-band {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: clamp(56px, 8vw, 104px) clamp(24px, 6vw, 80px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  color: var(--white);
  background: var(--navy-deep);
  border-radius: var(--r-lg);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(40% 50% at 15% 20%, rgba(0, 174, 239, .35), transparent 70%),
    radial-gradient(40% 50% at 85% 85%, rgba(230, 41, 138, .32), transparent 70%);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-3%, -2%, 0) rotate(0deg); }
  to   { transform: translate3d(3%, 2%, 0) rotate(6deg); }
}
.cta-band h2 { max-width: 18ch; font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 700; line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }
.cta-band p { max-width: 52ch; color: rgba(255, 255, 255, .76); }
.cta-band .btn-text { color: var(--white); }
.cta-band .btn-text:hover { color: var(--cyan); }

/* Barra de compra flotante */
.buy-bar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(620px, calc(100% - 32px));
  padding: 10px 10px 10px 24px;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-radius: var(--pill);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(18, 40, 77, .06);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 140%);
  transition: transform .6s var(--ease), opacity .4s var(--ease), visibility .6s;
}
.buy-bar.is-shown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.buy-bar-text { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.buy-bar-text strong { overflow: hidden; font-size: .98rem; color: var(--navy-deep); white-space: nowrap; text-overflow: ellipsis; }
.buy-bar-text small { font-size: .82rem; color: var(--muted); }
.buy-bar .btn { flex: none; }

/* ==========================================================================
   16. AULA VIRTUAL (aula-virtual.html)
   ========================================================================== */
.page-app { background: var(--gray-50); }
.page-app .site-header.is-scrolled { background: var(--white); }

.classroom {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  align-items: start;
  gap: clamp(20px, 2.4vw, 32px);
  padding-block: clamp(24px, 3.4vw, 44px) clamp(64px, 8vw, 104px);
}

.class-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: .88rem;
  color: var(--muted);
}
.class-crumbs a:hover { color: var(--navy); }
.class-crumbs span[aria-hidden] { opacity: .5; }

.player { border-radius: var(--r-md); }

.lesson-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 24px;
  margin: 26px 0 22px;
}
.lesson-head.is-swap > * { animation: fadeUp .55s var(--ease) both; }
.lesson-head.is-swap > *:nth-child(2) { animation-delay: .06s; }

.lesson-meta { font-size: .86rem; font-weight: 500; color: var(--muted); }
.lesson-head h1 {
  margin-top: 4px;
  font-size: clamp(1.5rem, 2.2vw, 2.15rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--navy-deep);
}

.lesson-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn-check {
  min-height: 46px;
  padding: 0 1.3em;
  font-size: .92rem;
  color: var(--navy);
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(18, 40, 77, .14);
}
.btn-check svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-check:hover { box-shadow: inset 0 0 0 1px rgba(18, 40, 77, .3), var(--shadow-sm); }
.btn-check.is-done { color: #00719e; background: rgba(0, 174, 239, .12); box-shadow: none; }
.btn-check.is-done svg { animation: pop .45s var(--ease); }

.btn-soft:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-soft:disabled:hover { color: var(--navy); background: var(--gray-50); box-shadow: none; }

/* Pestañas */
.tabs {
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

.tablist {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 8px 10px 0;
  overflow-x: auto;
  box-shadow: inset 0 -1px 0 var(--gray-100);
  scrollbar-width: none;
}

.tablist [role="tab"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 16px;
  font: 600 .95rem/1 var(--font);
  color: var(--muted);
  white-space: nowrap;
  background: none;
  border: 0;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  transition: color .3s var(--ease), background-color .3s var(--ease);
}
.tablist [role="tab"]:hover { color: var(--navy); background: var(--gray-50); }
.tablist [role="tab"][aria-selected="true"] { color: var(--navy-deep); }
.tablist svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.tab-badge {
  padding: 3px 8px;
  font-size: .74rem;
  color: var(--white);
  background: var(--fuchsia);
  border-radius: var(--pill);
}

.tab-indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--fuchsia), var(--cyan));
  border-radius: 2px;
  transition: transform .45s var(--ease), width .45s var(--ease);
}

.tab-panel { padding: clamp(22px, 3vw, 32px); }
.tab-panel.is-in { animation: fadeUp .5s var(--ease); }

.lesson-desc { max-width: 70ch; font-size: 1.02rem; line-height: 1.7; }

.lesson-goals {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.lesson-goals li { display: flex; gap: 12px; align-items: baseline; color: var(--navy); }
.lesson-goals li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); transform: translateY(-1px); }

/* Material de descarga */
.downloads { display: grid; gap: 10px; }

.download {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 14px 14px 16px;
  background: var(--gray-50);
  border-radius: 16px;
  transition: transform .4s var(--ease), background-color .3s var(--ease), box-shadow .4s var(--ease);
}
.download:hover { background: var(--white); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.file-type {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--white);
  border-radius: 12px;
}
.file-pdf  { background: var(--fuchsia-dk); }
.file-xlsx { background: var(--blue); }
.file-pptx { background: #0077a8; }
.file-docx { background: var(--navy); }

.download-info { display: grid; flex: 1; min-width: 0; }
.download-info strong { overflow: hidden; font-size: .98rem; font-weight: 600; color: var(--navy-deep); white-space: nowrap; text-overflow: ellipsis; }
.download-info small { font-size: .82rem; color: var(--muted); }

.download-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  color: var(--navy);
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.download-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.download:hover .download-btn { color: var(--white); background: var(--navy); }
.download-btn:hover svg { animation: nudge .6s var(--ease); }
@keyframes nudge { 50% { transform: translateY(3px); } }

/* Sidebar */
.class-side { position: sticky; top: calc(var(--header-h) + 4px); }

.side-card {
  max-height: calc(100vh - var(--header-h) - 28px);
  padding: 24px 18px 18px;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  scrollbar-width: thin;
}

.side-kicker { padding-inline: 6px; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.side-title { margin-top: 6px; padding-inline: 6px; font-size: 1.1rem; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; color: var(--navy-deep); }

.progress { margin: 18px 6px 6px; }
.progress-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.progress-top strong { font-size: 1.7rem; font-weight: 700; letter-spacing: -.03em; color: var(--navy-deep); font-variant-numeric: tabular-nums; }
.progress-top span { font-size: .84rem; color: var(--muted); }

.progress-track {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  background: var(--gray-100);
  border-radius: var(--pill);
}
.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--fuchsia), var(--cyan));
  border-radius: var(--pill);
  transition: width .9s var(--ease);
}

.module { margin-top: 18px; padding-top: 16px; box-shadow: inset 0 1px 0 var(--gray-100); }

.module-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  margin-bottom: 8px;
  padding-inline: 6px;
}
.module-num { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.module-head h3 { font-size: .98rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; color: var(--navy-deep); }
.module-count {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  padding: 4px 10px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--gray-50);
  border-radius: var(--pill);
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.module.is-complete .module-count { color: #00719e; background: rgba(0, 174, 239, .12); }

.lessons { display: grid; gap: 2px; }

.lesson-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px;
  font: inherit;
  text-align: left;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.lesson-btn:hover { background: var(--gray-50); transform: translateX(2px); }
.lesson.is-current .lesson-btn { background: rgba(230, 41, 138, .07); }

.lesson-check {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.6px #c9d0dc;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.lesson-check svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--white);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset .45s var(--ease) .1s;
}
.lesson.is-done .lesson-check { background: var(--cyan); box-shadow: none; }
.lesson.is-done .lesson-check svg { stroke-dashoffset: 0; }
.lesson.is-current:not(.is-done) .lesson-check { box-shadow: inset 0 0 0 2px var(--fuchsia); }
.lesson.is-current:not(.is-done) .lesson-check::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fuchsia);
}
.lesson.just-done .lesson-check { animation: pop .5s var(--ease); }

.lesson-text { display: grid; flex: 1; min-width: 0; line-height: 1.35; }
.lesson-name { font-size: .92rem; font-weight: 500; color: var(--navy); }
.lesson.is-current .lesson-name { font-weight: 600; color: var(--navy-deep); }
.lesson-time { font-size: .78rem; color: var(--muted); }

/* ==========================================================================
   17. VERIFICACIÓN DE CERTIFICADOS (verificar-certificado.html)
   ========================================================================== */
.verify-hero {
  padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(64px, 8vw, 104px);
  background:
    radial-gradient(50% 40% at 50% 0%, rgba(28, 85, 146, .08), transparent 70%),
    var(--white);
}

.verify-inner {
  display: grid;
  justify-items: center;
  gap: 20px;
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}

.verify-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  color: var(--blue);
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}
.verify-icon svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.verify-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.04em;
  color: var(--navy-deep);
  text-wrap: balance;
}

.verify-lede { max-width: 54ch; font-size: clamp(1.02rem, .4vw + .95rem, 1.2rem); color: var(--muted); }

.search {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 780px;
  margin-top: 18px;
  padding: 8px;
  background: var(--white);
  border-radius: var(--pill);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(18, 40, 77, .07);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.search:hover { transform: translateY(-1px); }
.search:focus-within { box-shadow: 0 0 0 4px rgba(0, 174, 239, .2), var(--shadow-lg); }
.search.is-shake { animation: shake .45s var(--ease); }

.search > svg { flex: none; width: 22px; height: 22px; margin: 0 4px 0 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }

.search input {
  flex: 1;
  min-width: 0;
  padding: 18px 12px;
  font: 500 clamp(1rem, .5vw + .92rem, 1.18rem) var(--font);
  color: var(--navy-deep);
  background: transparent;
  border: 0;
  outline: 0;
}
.search input::placeholder { color: #8a96aa; }
.search input:focus-visible { outline: 0; }

.search .btn-blue { min-height: 60px; padding: 0 2.1em; }

.spinner {
  position: absolute;
  inset: 0;
  width: 22px;
  height: 22px;
  margin: auto;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: var(--white);
  border-radius: 50%;
  opacity: 0;
  animation: spin .8s linear infinite;
}
.btn.is-loading .btn-label { opacity: 0; }
.btn.is-loading .spinner { opacity: 1; }
.btn.is-loading { cursor: progress; }

.verify-hint { font-size: .92rem; color: var(--muted); }

.chip {
  margin-left: 4px;
  padding: 6px 12px;
  font: 600 .88rem var(--font);
  color: var(--blue);
  background: rgba(28, 85, 146, .08);
  border: 0;
  border-radius: var(--pill);
  cursor: pointer;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.chip:hover { background: rgba(28, 85, 146, .15); transform: translateY(-1px); }

.verify-result { width: 100%; margin-top: 26px; }
.verify-result[aria-busy="true"] > * { opacity: .4; filter: blur(2px); transition: opacity .3s, filter .3s; }

/* Tarjeta de resultado */
.result-card {
  overflow: hidden;
  text-align: left;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(24px) scale(.98);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.result-card.is-in { opacity: 1; transform: none; }

.result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px clamp(20px, 3vw, 30px);
  background: linear-gradient(90deg, rgba(0, 174, 239, .12), rgba(0, 174, 239, .02));
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  font-weight: 700;
  color: #00719e;
}
.status-badge svg { width: 26px; height: 26px; }
.status-badge .badge-bg { fill: var(--cyan); }
.status-badge .badge-mark { fill: none; stroke: var(--white); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; }
.result-card.is-in .badge-mark { animation: draw .6s var(--ease) .35s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.demo-tag {
  padding: 5px 11px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--muted);
  background: var(--white);
  border-radius: var(--pill);
  box-shadow: inset 0 0 0 1px var(--gray-100);
}

.cert {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: clamp(16px, 2.4vw, 28px);
  padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px) clamp(24px, 3vw, 36px);
  text-align: center;
  background:
    radial-gradient(50% 40% at 50% 0%, rgba(0, 174, 239, .06), transparent 70%),
    var(--white);
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px var(--gray-100);
}
.cert::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 120px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--fuchsia), var(--cyan));
  transform: translateX(-50%);
}

.cert img { width: auto; height: 64px; }
.cert-kicker { margin-top: 14px; font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cert h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; color: var(--navy-deep); }
.cert-text { color: var(--muted); }
.cert-program { max-width: 30ch; font-size: clamp(1.1rem, 1.2vw + .8rem, 1.4rem); font-weight: 600; letter-spacing: -.015em; color: var(--blue); text-wrap: balance; }

.cert-data {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  margin: 28px 0 0;
  padding-top: 24px;
  text-align: left;
  box-shadow: inset 0 1px 0 var(--gray-100);
}
.cert-data dt { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cert-data dd { margin: 4px 0 0; font-size: .96rem; font-weight: 600; color: var(--navy-deep); overflow-wrap: anywhere; }

.result-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px clamp(20px, 3vw, 30px);
  font-size: .88rem;
  color: var(--muted);
  background: var(--gray-50);
}
.result-foot .btn { min-height: 42px; background: var(--white); }

/* Resultado no encontrado */
.result-none .result-head { background: linear-gradient(90deg, rgba(230, 41, 138, .10), rgba(230, 41, 138, .02)); }
.result-none .status-badge { color: var(--fuchsia-dk); }
.result-none .badge-bg { fill: var(--fuchsia); }
.none-body { display: grid; gap: 14px; padding: clamp(24px, 3.4vw, 36px) clamp(20px, 3vw, 30px); }
.none-body h2 { font-size: clamp(1.25rem, 1.4vw + .9rem, 1.6rem); font-weight: 700; letter-spacing: -.02em; color: var(--navy-deep); }
.none-body p { color: var(--muted); }
.none-body .btn { justify-self: start; margin-top: 6px; }

/* Características del sistema */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
.feature {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(26px, 2.8vw, 36px);
  background: var(--gray-50);
  border-radius: var(--r-md);
  transition: transform .45s var(--ease), background-color .45s var(--ease), box-shadow .45s var(--ease);
}
.feature:hover { transform: translateY(-4px); background: var(--white); box-shadow: var(--shadow-lg); }
.feature .area-icon { background: var(--white); margin-bottom: 6px; }
.feature h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.02em; color: var(--navy-deep); }
.feature p { font-size: .96rem; color: var(--muted); }

/* Constancia imprimible: solo el resultado */
@media print {
  body * { visibility: hidden; }
  #verifyResult, #verifyResult * { visibility: visible; }
  #verifyResult { position: absolute; top: 0; left: 0; width: 100%; margin: 0; }
  .result-card { box-shadow: none; opacity: 1; transform: none; }
  .result-foot { display: none; }
}

/* ==========================================================================
   18. RESPONSIVE (páginas internas)
   ========================================================================== */
@media (max-width: 1100px) {
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .classroom { grid-template-columns: 1fr; }
  .class-side { position: static; }
  .side-card { max-height: none; }

  .cert-data { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .benefits { grid-template-columns: 1fr; }

  .course-actions { flex-direction: column; width: 100%; max-width: 360px; }
  .course-actions .btn { width: 100%; }

  .acc-num { width: 42px; height: 42px; border-radius: 13px; }
  .acc-content { padding: 0 20px 24px; }

  .buy-bar { padding-left: 18px; bottom: 12px; }
  .buy-bar-text small { display: none; }
  .buy-bar .btn { padding: 0 1.2em; }

  .lesson-actions { width: 100%; }
  .lesson-actions .btn { flex: 1; }

  .media-caption { display: none; }

  .search { flex-wrap: wrap; border-radius: 26px; }
  .search input { flex-basis: calc(100% - 60px); }
  .search .btn-blue { width: 100%; }

  .result-foot { flex-direction: column; align-items: stretch; }
}

@media (max-width: 460px) {
  .cert-data { grid-template-columns: 1fr; }
  .tablist [role="tab"] { padding: 14px 12px; font-size: .9rem; }
}

/* Sin movimiento: se mantienen los estados, sin animaciones */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .btn-buy, .play-btn::before, .cta-band::before { animation: none !important; }
  .badge-mark { stroke-dashoffset: 0 !important; }
  .result-card { opacity: 1; transform: none; }
}

/* ==========================================================================
   19. ACCESOS RÁPIDOS DEL FOOTER (Aula Virtual · Verificar Certificado)
   ========================================================================== */
.quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
  margin-bottom: clamp(56px, 7vw, 88px);
}

.quick-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 22px);
  padding: clamp(22px, 2.6vw, 30px) clamp(20px, 2.8vw, 34px);
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background: var(--navy-deep);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}

.quick-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(70% 120% at 100% 0%, rgba(230, 41, 138, .38), transparent 60%);
  opacity: .7;
  transition: opacity .45s var(--ease), transform .8s var(--ease);
}
.quick-link + .quick-link::before {
  background: radial-gradient(70% 120% at 100% 0%, rgba(0, 174, 239, .40), transparent 60%);
}

.quick-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.quick-link:hover::before { opacity: 1; transform: scale(1.15); }

.quick-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 58px;
  height: 58px;
  background: rgba(255, 255, 255, .12);
  border-radius: 18px;
  transition: transform .5s var(--ease), background-color .35s var(--ease);
}
.quick-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.quick-link:hover .quick-icon { transform: rotate(-6deg) scale(1.06); background: rgba(255, 255, 255, .18); }

.quick-text { display: grid; flex: 1; gap: 3px; min-width: 0; }
.quick-text strong { font-size: clamp(1.15rem, .8vw + .95rem, 1.45rem); font-weight: 700; letter-spacing: -.02em; }
.quick-text small { font-size: .92rem; color: rgba(255, 255, 255, .72); }

.quick-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  font-size: 1.1rem;
  color: var(--navy-deep);
  background: var(--white);
  border-radius: 50%;
  transition: transform .45s var(--ease), background-color .35s var(--ease), color .35s var(--ease);
}
.quick-link:hover .quick-arrow { color: var(--white); background: var(--fuchsia); transform: translateX(4px); }

/* ==========================================================================
   20. AJUSTES DE DETALLE
   ========================================================================== */

/* Botón de compra gigante */
.btn-xl {
  min-height: 68px;
  padding: 0 2.6em;
  font-size: clamp(1.05rem, .4vw + 1rem, 1.2rem);
}

/* Íconos de archivo (PDF, Excel, PowerPoint, Word) */
.file-type {
  position: relative;
  width: 44px;
  height: 52px;
  padding-top: 14px;
  background: none !important;
  border-radius: 0;
}
.file-type svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: currentColor; }
.file-type svg path:last-child { fill: rgba(255, 255, 255, .45); }
.file-type b { position: relative; font-size: .6rem; font-weight: 700; letter-spacing: .04em; color: var(--white); }
.file-pdf  { color: #d93025; }
.file-xlsx { color: #1e8e3e; }
.file-pptx { color: #d2691e; }
.file-docx { color: var(--blue); }
.download:hover .file-type { animation: pop .5s var(--ease); }

/* Certificado válido: check verde */
.result-ok .result-head { background: linear-gradient(90deg, rgba(30, 142, 62, .12), rgba(30, 142, 62, .02)); }
.result-ok .status-badge { color: #17743a; }
.result-ok .badge-bg { fill: #1e8e3e; }

@media (max-width: 720px) {
  .quick-links { grid-template-columns: 1fr; }
  .quick-text small { display: none; }
  .btn-xl { min-height: 62px; padding: 0 1.6em; }
}

/* ==========================================================================
   21. PORTAL ACADÉMICO · BASE COMÚN
   ========================================================================== */
[hidden] { display: none !important; }

.ico {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-wa { flex: none; width: 1.3em; height: 1.3em; fill: currentColor; }

.btn-outline {
  color: inherit;
  background: transparent;
  box-shadow: inset 0 0 0 1px currentColor;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 40%, transparent);
}
.btn-outline:hover { box-shadow: inset 0 0 0 1px currentColor; background: color-mix(in srgb, currentColor 8%, transparent); }
.btn-block { width: 100%; }

.empty-inline { padding: 28px 0; color: var(--muted); }

.section-compact { padding-block: clamp(36px, 5vw, 64px); }

/* --------------------------------------------------------------------------
   Header: mega-menú "Programas"
   -------------------------------------------------------------------------- */
.mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  font-family: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
.mega-chev { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.mega-trigger[aria-expanded="true"] .mega-chev { transform: rotate(180deg); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.site-header.is-mega {
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(18, 40, 77, .06);
}
.site-header.is-mega .brand img { filter: none; }

.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  color: var(--navy);
  background: var(--white);
  box-shadow: inset 0 1px 0 var(--gray-100), 0 30px 60px -30px rgba(18, 40, 77, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .35s var(--ease), visibility .35s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; }

.mega-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr minmax(240px, 300px);
  gap: clamp(20px, 3vw, 44px);
  padding-block: 30px 36px;
}

.mega-title {
  margin: 0 0 10px 12px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.mega-col ul { display: grid; gap: 2px; }
.mega-col a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  transition: background-color .25s var(--ease), transform .3s var(--ease);
}
.mega-col a:hover { background: var(--gray-50); transform: translateX(3px); }
.mega-col a > span:last-child,
.mega-col a { line-height: 1.3; }
.mega-col strong { display: block; font-size: .95rem; font-weight: 600; color: var(--navy-deep); }
.mega-col small  { display: block; font-size: .8rem; color: var(--muted); }
.mega-col:first-child a { display: block; }

.mega-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  color: var(--white);
  background: linear-gradient(135deg, var(--c1), var(--c2));
  border-radius: 11px;
}
.mega-ico .ico { width: 19px; height: 19px; }

.mega-feature {
  position: relative;
  display: grid;
  align-content: end;
  gap: 6px;
  padding: 26px;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background: var(--navy-deep);
  border-radius: var(--r-md);
  transition: transform .45s var(--ease);
}
.mega-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(230, 41, 138, .45), transparent 65%),
    radial-gradient(60% 60% at 0% 100%, rgba(0, 174, 239, .40), transparent 65%);
}
.mega-feature:hover { transform: translateY(-3px); }
.mega-feature-num { font-size: 3.4rem; font-weight: 700; line-height: 1; letter-spacing: -.05em; }
.mega-feature-text { margin-bottom: 14px; color: rgba(255, 255, 255, .78); }
.mega-feature .btn { justify-self: start; }

@media (max-width: 1100px) {
  .site-nav { justify-content: flex-start; }
  .mega {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
  }
  .mega.is-open { display: block; animation: fadeUp .4s var(--ease); }
  .mega-inner { grid-template-columns: 1fr; gap: 18px; width: 100%; padding: 14px 0 18px; }
  .mega-title { margin-left: 0; }
  .mega-col a { padding: 10px 0; }
  .mega-col a:hover { background: none; }
  .mega-feature { padding: 20px; }
  .mega-feature-num { font-size: 2.4rem; }
  .nav-actions { flex-direction: column; align-items: stretch; margin-top: 26px; }
}

/* --------------------------------------------------------------------------
   WhatsApp flotante y franja de ayuda
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy-deep);
  background: var(--white);
  border-radius: var(--pill);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(18, 40, 77, .06);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.wa-float .ico-wa {
  width: 42px;
  height: 42px;
  padding: 9px;
  color: var(--white);
  background: #1faa59;
  border-radius: 50%;
}
.wa-float:hover { transform: translateY(-3px); }

.help-strip {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 85;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 40px);
  padding: 8px 8px 8px 18px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-radius: var(--pill);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(18, 40, 77, .06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(140%);
  transition: transform .6s var(--ease), opacity .4s var(--ease), visibility .6s;
}
.help-strip.is-shown { opacity: 1; visibility: visible; transform: none; }
.help-strip p { font-size: .94rem; font-weight: 600; color: var(--navy-deep); }
.help-dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--fuchsia), var(--cyan)); }
.help-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.help-close:hover { background: var(--gray-50); color: var(--navy); }

/* --------------------------------------------------------------------------
   Diálogos (leads y docente)
   -------------------------------------------------------------------------- */
.dialog {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  overflow: auto;
  color: var(--navy);
  background: var(--white);
  border: 0;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.dialog[open] { animation: dialogIn .45s var(--ease); }
.dialog::backdrop {
  background: rgba(10, 22, 44, .45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
@keyframes dialogIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--navy);
  background: var(--gray-50);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .25s var(--ease), transform .3s var(--ease);
}
.dialog-close:hover { background: var(--gray-100); transform: rotate(90deg); }
.dialog-close .ico { width: 18px; height: 18px; }

.lead-form { position: relative; display: grid; gap: 14px; padding: clamp(28px, 4vw, 40px); }
.lead-form h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: -.03em; color: var(--navy-deep); }
.lead-program { font-weight: 600; color: var(--blue); }
.lead-lede, .lead-note { font-size: .94rem; color: var(--muted); }
.lead-note { font-size: .8rem; text-align: center; }
.lead-submit { margin-top: 6px; }
.lead-form.is-shake, .ins-form.is-shake { animation: shake .45s var(--ease); }

.field { display: grid; gap: 6px; }
.field > span { font-size: .84rem; font-weight: 600; color: var(--navy-deep); }
.field.is-required > span::after { content: " *"; color: var(--fuchsia-dk); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  font: 500 1rem var(--font);
  color: var(--navy-deep);
  background: var(--gray-50);
  border: 0;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(18, 40, 77, .08);
  transition: box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.field textarea { min-height: 110px; padding: 14px 16px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 0; background: var(--white); box-shadow: 0 0 0 3px rgba(0, 174, 239, .28), inset 0 0 0 1px var(--cyan); }
.field input::placeholder, .field textarea::placeholder { color: #8a96aa; }
.field-error { font-size: .88rem; font-weight: 500; color: var(--fuchsia-dk); }

/* --------------------------------------------------------------------------
   Filtros tipo "pill"
   -------------------------------------------------------------------------- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills-center { justify-content: center; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  font: 500 .9rem var(--font);
  color: var(--navy);
  white-space: nowrap;
  background: var(--gray-50);
  border: 0;
  border-radius: var(--pill);
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.section-tint .pill, .trust .pill { background: var(--white); box-shadow: var(--shadow-sm); }
.pill:hover { background: var(--gray-100); transform: translateY(-1px); }
.pill[aria-pressed="true"] { color: var(--white); background: var(--navy-deep); box-shadow: 0 10px 22px -12px rgba(18, 40, 77, .7); }
.pill-n { font-size: .78rem; opacity: .6; font-variant-numeric: tabular-nums; }
.pills-lg .pill { min-height: 46px; padding: 0 20px; font-size: .98rem; font-weight: 600; }
.pills-sm .pill { min-height: 36px; padding: 0 14px; font-size: .86rem; }

/* --------------------------------------------------------------------------
   Tarjeta de programa
   -------------------------------------------------------------------------- */
.prog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.prog-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prog-grid.is-swapping { opacity: 0; transform: translateY(8px); }

.prog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.prog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.prog-card:focus-within { outline: 2px solid var(--cyan); outline-offset: 4px; }

.prog-cover {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(255, 255, 255, .22), transparent 60%),
    linear-gradient(135deg, var(--c1, var(--navy-deep)), var(--c2, var(--blue)));
}
.prog-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(40% 60% at 15% 100%, rgba(255, 255, 255, .12), transparent 70%);
}
.prog-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prog-cover-icon { color: var(--white); opacity: .92; transition: transform .6s var(--ease); }
.prog-cover-icon .ico { width: 46px; height: 46px; stroke-width: 1.3; }
.prog-card:hover .prog-cover-icon { transform: scale(1.1) rotate(-5deg); }

.prog-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255, 255, 255, .16);
  border-radius: var(--pill);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.prog-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 22px 24px 24px; }
.prog-area { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.prog-title { font-size: 1.1rem; font-weight: 700; line-height: 1.28; letter-spacing: -.02em; color: var(--navy-deep); text-wrap: pretty; }
.prog-title a { transition: color .3s var(--ease); }
.prog-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.prog-title a:focus-visible { outline: 0; }
.prog-card:hover .prog-title a { color: var(--blue); }
.prog-meta { font-size: .86rem; color: var(--muted); }
.prog-teacher { display: flex; align-items: center; gap: 7px; font-size: .84rem; color: var(--muted); }
.prog-teacher .ico { width: 16px; height: 16px; }
.prog-cta { align-self: flex-start; min-height: 42px; margin-top: auto; }
.prog-teacher + .prog-cta { margin-top: 14px; }
.prog-card:hover .prog-cta { color: var(--white); background: var(--cyan); box-shadow: 0 10px 24px -10px rgba(0, 174, 239, .7); }
.prog-card:hover .prog-cta::after { transform: translateX(3px); }

/* ==========================================================================
   22. INICIO
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(56px, 7vw, 96px);
}
.stat { display: grid; gap: 4px; padding-top: 22px; box-shadow: inset 0 1px 0 var(--gray-100); }
.stat strong {
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
  color: var(--navy-deep);
}
.stat > span { font-size: .95rem; color: var(--muted); }

.oferta { display: grid; gap: 14px; }
.oferta .prog-grid { margin-top: 26px; }
.oferta-foot { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 48px); }

/* Próximos inicios */
.next-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.next-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.next-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.next-date {
  display: grid;
  place-items: center;
  flex: none;
  width: 62px;
  height: 62px;
  line-height: 1;
  color: var(--white);
  background: var(--navy-deep);
  border-radius: 16px;
}
.next-date strong { font-size: 1.5rem; }
.next-date small { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.next-info { display: grid; flex: 1; gap: 2px; min-width: 0; }
.next-info small { font-size: .8rem; color: var(--muted); }
.next-info a { font-weight: 600; color: var(--navy-deep); }
.next-info a::after { content: ""; position: absolute; inset: 0; }
.next-arrow { color: var(--muted); transition: transform .35s var(--ease); }
.next-item:hover .next-arrow { transform: translateX(4px); color: var(--fuchsia); }

/* Áreas generadas */
.area-grid.is-dynamic .area-card { grid-column: span 2; }
.area-grid.is-dynamic .area-card.span-wide { grid-column: span 3; }
.area-count { font-size: .86rem; font-weight: 600; color: var(--blue); }
.area-card .area-count + .btn { margin-top: 14px; }

/* Aliados con filtros */
.aliados-app { display: grid; gap: clamp(28px, 3.4vw, 40px); }
.partners.partners-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.partners-grid .partner {
  align-content: center;
  gap: 10px;
  min-height: 168px;
  padding: 26px 18px;
}
.monogram {
  display: grid;
  place-items: center;
  min-width: 64px;
  height: 64px;
  padding: 0 12px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--navy-deep);
  background: var(--gray-50);
  border-radius: 18px;
  transition: color .4s var(--ease), background .4s var(--ease), transform .4s var(--ease);
}
.partner:hover .monogram { color: var(--white); background: linear-gradient(135deg, var(--blue), var(--cyan)); transform: scale(1.05); }
.partner:nth-child(3n+2):hover .monogram { background: linear-gradient(135deg, var(--fuchsia), var(--fuchsia-dk)); }
.partner-name { font-size: .92rem; font-weight: 600; line-height: 1.3; color: var(--navy); text-wrap: balance; }
.partner-cat { font-size: .74rem; color: var(--muted); }
.partner.is-leaving { opacity: 0 !important; transform: scale(.92) !important; transition: opacity .22s var(--ease), transform .22s var(--ease) !important; }

/* ==========================================================================
   23. CATÁLOGO (programas.html)
   ========================================================================== */
.page-hero {
  padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 clamp(28px, 4vw, 44px);
  background:
    radial-gradient(55% 60% at 50% 0%, rgba(0, 174, 239, .09), transparent 70%),
    var(--white);
}
.page-hero h1 {
  max-width: 18ch;
  margin-top: 16px;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -.045em;
  color: var(--navy-deep);
  text-wrap: balance;
}
.page-hero .section-lede { margin-top: 18px; }

.cat-toolbar { display: grid; gap: 22px; }
.search.cat-search { max-width: none; margin-top: 0; }
.cat-search input::-webkit-search-cancel-button { cursor: pointer; }
.filters { display: grid; gap: 10px; }
.filter-row { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 12px; }
.filter-label { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.cat-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: clamp(28px, 3.6vw, 40px) 0 20px;
  padding-top: 20px;
  box-shadow: inset 0 1px 0 var(--gray-100);
}
#catCount { font-size: .98rem; color: var(--muted); }
#catCount strong { font-weight: 700; color: var(--navy-deep); }
.cat-more { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 48px); }
.cat-empty {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(40px, 6vw, 72px) 24px;
  text-align: center;
  background: var(--gray-50);
  border-radius: var(--r-lg);
}
.cat-empty .area-icon { margin: 0; background: var(--white); }
.cat-empty h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 700; letter-spacing: -.02em; color: var(--navy-deep); }
.cat-empty p { max-width: 50ch; color: var(--muted); }
.cat-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }

/* ==========================================================================
   24. FICHA DEL PROGRAMA (programa.html)
   ========================================================================== */
.course-hero .class-crumbs { justify-content: center; margin-bottom: 0; }
.class-crumbs [aria-current] { color: var(--navy); font-weight: 500; }
.legal-note {
  padding: 8px 16px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(28, 85, 146, .08);
  border-radius: var(--pill);
}
.hero-promo { display: inline-flex; align-items: center; gap: 8px; font-size: .94rem; font-weight: 600; color: var(--fuchsia-dk); }
.course-actions-sub { margin-top: -4px; }
.course-actions-sub .btn .ico { width: 18px; height: 18px; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 8px;
  font-size: .88rem;
  color: var(--muted);
}
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row .ico { width: 18px; height: 18px; color: var(--blue); }
.trust-allies { gap: 6px !important; }
.mini-ally {
  display: inline-grid;
  place-items: center;
  min-height: 26px;
  padding: 0 9px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--navy);
  background: var(--gray-50);
  border-radius: 8px;
}
.mini-ally img { max-height: 22px; width: auto; filter: grayscale(1); }

/* Ruta apilable */
.route { display: grid; gap: 14px; max-width: 920px; counter-reset: none; }
.route-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px 16px 18px;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.route-step:hover { transform: translateX(4px); box-shadow: var(--shadow-lg); }
.route-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 41px;
  top: 100%;
  width: 2px;
  height: 14px;
  background: linear-gradient(var(--fuchsia), var(--cyan));
}
.route-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--white);
  background: var(--navy-deep);
  border-radius: 14px;
}
.route-step.is-module { background: var(--gray-50); box-shadow: none; }
.route-step.is-module .route-num { color: var(--navy); background: var(--white); }
.route-text { display: grid; flex: 1; gap: 2px; min-width: 0; }
.route-text small { font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.route-text strong { font-size: 1.04rem; font-weight: 600; line-height: 1.3; color: var(--navy-deep); }

.savings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  max-width: 920px;
  margin-top: 22px;
  padding: 20px 24px;
  background: var(--gray-50);
  border-radius: var(--r-md);
}
.savings p { display: grid; font-size: .82rem; color: var(--muted); }
.savings s { font-size: 1.2rem; }
.savings strong { font-size: 1.4rem; color: var(--navy-deep); }
.savings-badge { margin-left: auto; padding: 10px 16px; font-size: 1rem !important; font-weight: 700; color: var(--white) !important; background: var(--fuchsia); border-radius: var(--pill); }

.part-of {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--gray-50);
  border-radius: var(--r-lg);
}
.part-of .area-icon { margin: 0; background: var(--white); }
.part-of > div { flex: 1; min-width: 240px; }
.part-of ul { display: grid; gap: 4px; margin-top: 8px; }
.part-of ul a { font-size: 1.12rem; font-weight: 700; letter-spacing: -.015em; color: var(--navy-deep); }
.part-of ul a:hover { color: var(--blue); }
.part-of-note { margin-top: 6px; font-size: .92rem; color: var(--muted); }

/* Docente */
.teacher-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: clamp(22px, 3.4vw, 40px);
  max-width: 920px;
  padding: clamp(24px, 3.4vw, 40px);
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.teacher-photo { width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--gray-50); border-radius: 28px; }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; }
.silhouette { width: 100%; height: 100%; }
.silhouette rect { fill: var(--gray-100); }
.silhouette circle, .silhouette path { fill: #c9d0dc; }
.teacher-info { display: grid; gap: 8px; justify-items: start; }
.teacher-info h3 { font-size: clamp(1.2rem, 1.2vw + .9rem, 1.5rem); font-weight: 700; letter-spacing: -.02em; color: var(--navy-deep); }
.teacher-role { font-size: .95rem; font-weight: 600; color: var(--blue); }
.teacher-info p:not(.teacher-role) { color: var(--muted); }
.teacher-info .btn { margin-top: 8px; }

.teacher-dialog { width: min(680px, calc(100% - 32px)); padding: clamp(26px, 4vw, 40px); }
.teacher-dialog-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; padding-right: 40px; }
.teacher-dialog-head .teacher-photo { width: 96px; flex: none; border-radius: 22px; }
.teacher-dialog h2 { font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; color: var(--navy-deep); }
.teacher-dialog h3 { margin: 22px 0 6px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.teacher-dialog > p { color: var(--muted); }
.teacher-dialog video { width: 100%; margin-top: 18px; border-radius: var(--r-sm); background: #000; }

/* Formatos */
.benefits.formats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Test de formato preferido */
.quiz {
  display: grid;
  gap: clamp(24px, 3vw, 34px);
  max-width: 980px;
  padding: clamp(24px, 3.6vw, 44px);
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.quiz-q { margin: 0; padding: 0; border: 0; min-width: 0; }
.quiz-q legend {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: clamp(1.02rem, .5vw + .95rem, 1.18rem);
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--navy-deep);
}
.quiz-q legend span {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  font-size: .85rem;
  color: var(--white);
  background: var(--navy-deep);
  border-radius: 50%;
}
.quiz-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.quiz-option { position: relative; display: block; cursor: pointer; }
.quiz-option input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-option span {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 62px;
  height: 100%;
  padding: 14px 44px 14px 18px;
  font-size: .96rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--navy);
  background: var(--gray-50);
  border-radius: 16px;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.quiz-option span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.6px #c9d0dc;
  transform: translateY(-50%);
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.quiz-option:hover span { background: var(--gray-100); transform: translateY(-2px); }
.quiz-option input:checked + span { color: var(--navy-deep); font-weight: 600; background: rgba(0, 174, 239, .1); box-shadow: inset 0 0 0 2px var(--cyan); }
.quiz-option input:checked + span::after { background: var(--cyan); box-shadow: inset 0 0 0 4px var(--white), 0 0 0 1.6px var(--cyan); }
.quiz-option input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 3px; }
.quiz-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.quiz-hint { font-size: .92rem; font-weight: 500; color: var(--fuchsia-dk); }
.quiz-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  padding: 22px 24px;
  background: linear-gradient(100deg, rgba(0, 174, 239, .10), rgba(230, 41, 138, .06));
  border-radius: var(--r-md);
}
.quiz-result > div { flex: 1; min-width: 220px; }
.quiz-badge { display: grid; place-items: center; width: 56px; height: 56px; color: var(--blue); background: var(--white); border-radius: 16px; box-shadow: var(--shadow-sm); }
.quiz-badge .ico { width: 26px; height: 26px; }
.quiz-rec { margin-top: 4px; font-size: 1.15rem; color: var(--navy-deep); }
.quiz-rec strong { color: var(--fuchsia-dk); }
.quiz-note { margin-top: 2px; font-size: .86rem; color: var(--muted); }

/* Plan de estudios */
.acc-materials-title { margin: 18px 0 8px; font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.acc-materials li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: .95rem; }
.file-tag { padding: 3px 7px; font-size: .66rem; font-weight: 700; letter-spacing: .04em; color: var(--white); background: var(--navy); border-radius: 6px; }
.acc-content .btn-text { margin-top: 10px; padding: 0; min-height: 36px; }
.acc-faq .acc-content { padding-left: clamp(20px, 2.6vw, 32px); }
.acc-faq .acc-content p { color: var(--muted); }

/* Certificación e inversión */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; gap: clamp(28px, 4vw, 64px); }
.cert-preview { display: grid; justify-items: start; gap: 16px; }
.cert-preview h2 { max-width: 22ch; font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 700; line-height: 1.12; letter-spacing: -.03em; color: var(--navy-deep); }
.cert-sample { width: 100%; margin: 6px 0; background: var(--white); box-shadow: var(--shadow-lg); transform: rotate(-1.2deg); transition: transform .6s var(--ease); }
.cert-preview:hover .cert-sample { transform: rotate(0) translateY(-4px); }
.cert-sample-name { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 700; letter-spacing: -.02em; color: var(--navy-deep); }
.cert-code { margin-top: 12px; font-size: .76rem; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.cert-preview > .btn-text { padding: 0; }

.price-wrap { display: grid; gap: 16px; }
.price-card { display: grid; gap: 10px; padding: clamp(24px, 3vw, 34px); background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.price-old { font-size: 1.1rem; color: var(--muted); }
.price-now { font-size: clamp(2rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -.035em; color: var(--navy-deep); }
.price-now small { font-size: .9rem; font-weight: 600; letter-spacing: 0; color: var(--fuchsia-dk); }
.price-ask { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.price-note { font-size: .94rem; color: var(--muted); }
.price-line { display: flex; align-items: center; gap: 8px; font-size: .94rem; color: var(--navy); }
.price-line .ico { color: var(--blue); }
.countdown {
  justify-self: start;
  padding: 8px 12px;
  font-size: .9rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--fuchsia-dk);
  background: rgba(230, 41, 138, .08);
  border-radius: 10px;
}
.price-card .btn-primary { margin-top: 8px; }

.pay { padding: 22px 26px; background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.pay-title { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pay ul { display: grid; gap: 10px; margin-top: 12px; }
.pay li { display: grid; gap: 1px; }
.pay strong { font-size: .96rem; color: var(--navy-deep); }
.pay span { font-size: .86rem; color: var(--muted); }

.testimonials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.testimonial { margin: 0; padding: 28px; background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow-md); }
.testimonial blockquote { margin: 0; font-size: 1.04rem; color: var(--navy-deep); }
.testimonial figcaption { display: grid; margin-top: 16px; font-size: .9rem; color: var(--muted); }
.testimonial figcaption strong { color: var(--navy); }

.cta-eyebrow { color: rgba(255, 255, 255, .7); }

/* ==========================================================================
   25. AULA VIRTUAL (generada desde el catálogo)
   ========================================================================== */
.demo-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  font-size: .84rem;
  color: var(--muted);
  background: var(--white);
  border-radius: var(--pill);
  box-shadow: var(--shadow-sm);
}
.demo-banner .ico { color: var(--cyan); }

.format-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 16px;
  padding: 5px;
  background: var(--white);
  border-radius: var(--pill);
  box-shadow: var(--shadow-sm);
}
.fmt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  font: 600 .9rem var(--font);
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: var(--pill);
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.fmt:hover { color: var(--navy); background: var(--gray-50); }
.fmt[aria-checked="true"] { color: var(--white); background: var(--navy-deep); }
.fmt-pref { padding: 0 12px; font-size: .78rem; color: var(--muted); }

.stage-empty {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  aspect-ratio: 16 / 9;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.stage-empty .ico { width: 40px; height: 40px; stroke-width: 1.4; color: var(--blue); }
.stage-empty p { max-width: 44ch; }
.stage-card {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 240px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.stage-card > div { display: grid; gap: 6px; flex: 1; justify-items: start; }
.stage-card p:not(.stage-kicker):not(.stage-title) { color: var(--muted); }
.stage-ico { width: 48px !important; height: 48px !important; color: var(--blue); stroke-width: 1.4 !important; }
.stage-kicker { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stage-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; color: var(--navy-deep); }
.stage-card audio { width: 100%; margin-top: 8px; }

.congrats {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-bottom: 22px;
  padding: 22px 26px;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background: var(--navy-deep);
  border-radius: var(--r-md);
}
.congrats::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 80% at 100% 0%, rgba(230, 41, 138, .4), transparent 70%),
    radial-gradient(50% 80% at 0% 100%, rgba(0, 174, 239, .35), transparent 70%);
}
.congrats > div { flex: 1; min-width: 220px; }
.congrats .eyebrow { color: rgba(255, 255, 255, .75); }
.congrats-title { margin-top: 4px; font-size: 1.1rem; }
.congrats p:not(.eyebrow):not(.congrats-title) { color: rgba(255, 255, 255, .72); font-size: .92rem; }
.congrats-ico { display: grid; place-items: center; width: 56px; height: 56px; background: rgba(255, 255, 255, .12); border-radius: 16px; }
.congrats-ico .ico { width: 28px; height: 28px; }

.class-main, .class-side { min-width: 0; }
@media (max-width: 960px) { .classroom { grid-template-columns: minmax(0, 1fr); } }

.teacher-mini { display: flex; align-items: center; gap: 20px; }
.teacher-mini .teacher-photo { flex: none; width: 96px; border-radius: 24px; }
.teacher-mini strong { display: block; font-size: 1.1rem; color: var(--navy-deep); }
.teacher-mini span { display: block; font-size: .9rem; font-weight: 600; color: var(--blue); }
.teacher-mini p { margin-top: 6px; color: var(--muted); }
.tablist .tab-badge { margin-left: 2px; }

/* ==========================================================================
   26. INSTITUCIONES (instituciones.html)
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); counter-reset: paso; }
.step {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(24px, 2.6vw, 32px);
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.step-num {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--fuchsia);
  background: linear-gradient(120deg, var(--fuchsia), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.step h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.02em; color: var(--navy-deep); }
.step p { font-size: .95rem; color: var(--muted); }

.ins-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(24px, 3.4vw, 44px);
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.field-full { grid-column: 1 / -1; }
.ins-pre { padding: 12px 16px; font-size: .92rem; color: var(--navy); background: rgba(0, 174, 239, .1); border-radius: 14px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ins-side { display: grid; align-content: start; gap: 18px; }
.ins-side .section-head { margin-bottom: 0; }
.ins-contact { display: grid; gap: 10px; }
.ins-contact a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  font-weight: 600;
  color: var(--navy-deep);
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.ins-contact a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ins-contact small { display: block; font-size: .82rem; font-weight: 500; color: var(--muted); }
.ins-contact .ico, .ins-contact .ico-wa { width: 26px; height: 26px; color: var(--blue); }

/* ==========================================================================
   27. RESPONSIVE DEL PORTAL
   ========================================================================== */
@media (max-width: 1100px) {
  .prog-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partners.partners-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .area-grid.is-dynamic .area-card,
  .area-grid.is-dynamic .area-card.span-wide { grid-column: span 3; }
  .area-grid.is-dynamic .area-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .next-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .prog-grid-3, .prog-grid { grid-template-columns: 1fr; }
  .partners.partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partners-grid .partner { min-height: 150px; padding: 20px 12px; }
  .area-grid.is-dynamic .area-card,
  .area-grid.is-dynamic .area-card.span-wide,
  .area-grid.is-dynamic .area-card:last-child:nth-child(odd) { grid-column: auto; }

  /* Filtros en una fila deslizable */
  .pills:not(.pills-center) {
    flex-wrap: nowrap;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .pills::-webkit-scrollbar { display: none; }
  .filter-row { grid-template-columns: 1fr; gap: 6px; }

  .teacher-card { grid-template-columns: 1fr; justify-items: start; }
  .teacher-card .teacher-photo { width: 120px; }
  .route-step { flex-wrap: wrap; gap: 10px 16px; }
  .route-text { flex: 1 1 calc(100% - 64px); }
  .route-step .btn { margin-left: 62px; }
  .savings-badge { margin-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .ins-form { grid-template-columns: 1fr; }
  .format-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; border-radius: 22px; }
  .fmt { justify-content: center; padding: 0 10px; }
  .fmt-pref { grid-column: 1 / -1; padding: 4px 8px; text-align: center; }
  .stage-card { flex-direction: column; align-items: flex-start; }

  .wa-float { right: 14px; bottom: 14px; padding: 6px; }
  .wa-float span { display: none; }
  .help-strip { left: 12px; right: 76px; bottom: 14px; max-width: none; padding-left: 14px; gap: 8px; border-radius: 22px; }
  .help-strip p { font-size: .84rem; line-height: 1.25; }
  .help-strip .btn { padding: 0 .9em; }
}

@media (max-width: 460px) {
  .partners.partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-dot { display: none; }
}
