:root {
  /* Paleta: azul #183474 · rojo #C7000E · celeste #4A6CA6 · gris #60657D · rojo detalle #C23031 · blanco suave #FFFFF5 */
  --navy: #183474;
  --navy-mid: #1f3f86;
  --red: #c7000e;
  --red-dark: #9a0b0c;
  --red-detail: #c23031;
  --sky: #4a6ca6;
  --sky-dark: #375489;
  /* Texto claro y CTAs: blanco suave; superficies puros blancos usan --surface */
  --white: #fffff5;
  --ivory: #fffff5;
  --text: #1a1d2a;
  --muted: #60657d;
  --line: #d2d4dc;
  --soft: color-mix(in srgb, var(--sky) 9%, var(--ivory) 91%);
  --page-bg: #fffff5;
  --surface: #ffffff;
  --header-bg: rgba(255, 255, 245, 0.94);
  --header-bg-solid: color-mix(in srgb, var(--navy) 5%, var(--ivory) 95%);
  --hamburger-bg: #fffff5;
  --hamburger-border: color-mix(in srgb, var(--muted) 38%, #ffffff 62%);
  --hamburger-icon: #183474;
  --nav-hover-bg: rgba(24, 52, 116, 0.1);
  --shadow-card: rgba(15, 24, 55, 0.08);
  --marquee-fg: var(--sky);
  --footer-bg: color-mix(in srgb, var(--sky) 7%, var(--ivory) 93%);
  --footer-text: #60657d;
}

[data-theme="dark"] {
  color-scheme: dark;
  /* Misma familia: azul de base, rojos y celeste; texto claro + #FFFFF5 sobre fondos oscuros */
  --navy: #c8d4f0;
  --navy-mid: #9eb4e0;
  --red: #e64d4d;
  --red-dark: #c7000e;
  --red-detail: #e07070;
  --sky: #6d8fbf;
  --sky-dark: #8aa6cf;
  --ivory: #0b1224;
  --text: #f2f2eb;
  --muted: #9aa1b0;
  --line: #2a3555;
  --soft: #121a32;
  --page-bg: #0b1224;
  --surface: #141c34;
  --header-bg: rgba(11, 18, 36, 0.92);
  --header-bg-solid: color-mix(in srgb, #183474 32%, #0b1224 68%);
  --hamburger-bg: #151e38;
  --hamburger-border: color-mix(in srgb, var(--muted) 45%, #0b1224 55%);
  --hamburger-icon: #fffff5;
  --nav-hover-bg: rgba(74, 108, 166, 0.22);
  --shadow-card: rgba(0, 0, 0, 0.45);
  --marquee-fg: #7a9bc4;
  --footer-bg: #070c18;
  --footer-text: #9aa1b0;
  --white: #fffff5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--page-bg);
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.25s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Intro */
.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 999;
  /* Rojo corporativo (secundario) */
  background: var(--red);
  display: grid;
  place-items: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.intro-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-screen__logo {
  text-align: center;
  padding: 1rem;
}

.intro-screen__img {
  display: block;
  width: auto;
  max-width: min(88vw, 420px);
  max-height: min(70vh, 520px);
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  animation: introLogoIn 0.85s ease both;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
}

/* Header and menu */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0;
  display: block;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(24, 52, 116, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
  transition: box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.site-header__shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  position: relative;
}

/* Barra de acento superior */
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--sky) 50%, var(--red) 100%);
}

[data-theme="dark"] .site-header {
  border-bottom-color: rgba(148, 163, 184, 0.15);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px var(--shadow-card);
  background: var(--header-bg-solid);
  border-bottom-color: rgba(24, 52, 116, 0.14);
}

/* Navegación escritorio + CTA */
.site-header__cta {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(199, 0, 14, 0.32);
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.site-header__cta:hover {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-detail) 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(194, 48, 49, 0.38);
}

.site-nav--desktop {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.25rem;
  min-width: 0;
  padding: 0 0.5rem;
}

.site-nav__link {
  position: relative;
  padding: 0.45rem 0.7rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav__link:hover {
  background: var(--nav-hover-bg);
  color: var(--red-detail);
}

.site-nav__link.active {
  background: linear-gradient(135deg, rgba(24, 52, 116, 0.12), rgba(74, 108, 166, 0.15));
  color: var(--navy);
  font-weight: 800;
}

.site-header__end {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.site-header__toolbar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-switch {
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 1px 3px var(--shadow-card);
}

.lang-switch__btn {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.55rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.lang-switch__btn:hover {
  color: var(--text);
}

.lang-switch__btn.is-active {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
}

.theme-toggle {
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--hamburger-border);
  background: var(--hamburger-bg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--hamburger-icon);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 14px var(--shadow-card);
}

.theme-toggle__icon {
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.theme-toggle__icon--moon {
  opacity: 0;
  transform: rotate(-30deg) scale(0.6);
}

[data-theme="dark"] .theme-toggle__icon--sun {
  opacity: 0;
  transform: rotate(30deg) scale(0.6);
}

[data-theme="dark"] .theme-toggle__icon--moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.site-header.site-header--over-hero.site-header--on-hero .lang-switch {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.22);
}

.site-header.site-header--over-hero.site-header--on-hero .lang-switch__btn {
  color: rgba(255, 255, 255, 0.75);
}

.site-header.site-header--over-hero.site-header--on-hero .lang-switch__btn:hover {
  color: var(--white);
}

.site-header.site-header--over-hero.site-header--on-hero .lang-switch__btn.is-active {
  background: rgba(255, 255, 255, 0.95);
  color: var(--red-dark);
}

.site-header.site-header--over-hero.site-header--on-hero .theme-toggle {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.22);
  color: var(--white);
}

.site-header.site-header--over-hero.site-header--on-hero .theme-toggle__icon--sun {
  color: var(--white);
}

.site-header.site-header--over-hero.site-header--on-hero .theme-toggle__icon--moon {
  color: var(--white);
}

/* Header transparente sobre el hero (todas las páginas, todas las resoluciones) */
.site-header.site-header--over-hero.site-header--on-hero {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.site-header.site-header--over-hero.site-header--on-hero .brand__name {
  color: var(--white);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: unset;
  animation: brandNameRevealHero 1s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.site-header.site-header--over-hero.site-header--on-hero .brand__word,
.site-header.site-header--over-hero.site-header--on-hero .brand__word--soft {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.site-header.site-header--over-hero.site-header--on-hero .brand:hover .brand__name {
  text-shadow: 0 2px 22px rgba(255, 255, 255, 0.25), 0 2px 20px rgba(0, 0, 0, 0.5);
}

.site-header.site-header--over-hero.site-header--on-hero .brand:hover .brand__word,
.site-header.site-header--over-hero.site-header--on-hero .brand:hover .brand__word--soft {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.site-header.site-header--over-hero.site-header--on-hero .brand__name::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.85));
}

.site-header.site-header--over-hero.site-header--on-hero .brand__logo {
  opacity: 0.88;
  filter: drop-shadow(0 2px 20px rgba(0, 0, 0, 0.22)) brightness(1.02);
}

.site-header.site-header--over-hero.site-header--on-hero .hamburger {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.2);
}

.site-header.site-header--over-hero.site-header--on-hero .hamburger span {
  background: var(--white);
}

.site-header.site-header--over-hero.site-header--on-hero .site-nav__link {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.site-header.site-header--over-hero.site-header--on-hero .site-nav__link:hover {
  background: rgba(199, 0, 14, 0.22);
  color: #fffff5;
}

.site-header.site-header--over-hero.site-header--on-hero .site-nav__link.active {
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.site-header.site-header--over-hero.site-header--on-hero .site-header__cta {
  background: rgba(255, 255, 255, 0.95);
  color: var(--red-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.site-header.site-header--over-hero.site-header--on-hero .site-header__cta:hover {
  background: linear-gradient(135deg, #fffff5, color-mix(in srgb, #fffff5 88%, #c23031 12%));
  color: #c7000e;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
  filter: none;
}

@media (min-width: 769px) {
  .site-header.site-header--home.site-header--over-hero.site-header--on-hero .brand__logo--standard {
    display: block;
  }

  .site-header.site-header--home.site-header--over-hero.site-header--on-hero .brand__logo--hero {
    display: none;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1;
  position: relative;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand:hover {
  transform: translateY(-1px);
}

.brand:active {
  transform: translateY(0);
}

.brand__logo {
  height: 42px;
  width: auto;
  max-width: min(50vw, 200px);
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  opacity: 1;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease, opacity 0.35s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.06));
}

.brand:hover .brand__logo {
  transform: scale(1.04);
  filter: drop-shadow(0 4px 12px rgba(199, 0, 14, 0.22));
}

.site-header.site-header--over-hero.site-header--on-hero .brand:hover .brand__logo {
  opacity: 0.95;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.3));
}

.brand__name {
  position: relative;
  display: inline-block;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  line-height: 1.1;
  letter-spacing: 0.02em;
  white-space: normal;
  max-width: min(55vw, 20rem);
  color: var(--navy);
  -webkit-text-fill-color: var(--navy);
  transition: color 0.2s ease, transform 0.35s ease;
  animation: brandNameReveal 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.brand__lockup {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  /* Solo separación vertical si el bloque envuelve; el espacio horizontal va con margin (más fiable que gap en WebKit) */
  row-gap: 0.2em;
  column-gap: 0;
}

.brand__lockup .brand__word + .brand__word {
  margin-left: 0.45em;
}

/* Una sola marca: mismo peso, color y tamaño en "Uplands" e "Institute" */
.brand__word,
.brand__word--soft {
  font-weight: 800;
  font-size: clamp(1.05rem, 2.6vw, 1.38rem);
  color: var(--navy);
  -webkit-text-fill-color: var(--navy);
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.brand__name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  max-width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red-dark), var(--sky-dark));
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand:hover .brand__word,
.brand:hover .brand__word--soft {
  color: var(--navy-mid);
  -webkit-text-fill-color: var(--navy-mid);
}

.brand:hover .brand__name::after {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .brand__name {
    animation: none;
  }

  .site-header.site-header--over-hero.site-header--on-hero .brand__name {
    animation: none;
  }

  .brand,
  .brand__logo {
    transition-duration: 0.01ms;
  }

  .brand:hover,
  .brand:active,
  .brand:hover .brand__logo {
    transform: none;
  }
}

.hamburger {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--hamburger-border);
  border-radius: 999px;
  background: var(--hamburger-bg);
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.hamburger span {
  width: 1.1rem;
  height: 2px;
  border-radius: 999px;
  background: var(--hamburger-icon);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 1rem;
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 12px 30px var(--shadow-card);
  display: none;
  overflow: hidden;
}

.mobile-nav.is-open {
  display: block;
  animation: menuIn 0.2s ease;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0.95rem;
  font-size: 0.95rem;
  color: var(--text);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--nav-hover-bg);
  color: var(--sky-dark);
}

.mobile-nav__cta {
  display: block;
  margin: 0.35rem 0.65rem 0.5rem;
  padding: 0.7rem 0.95rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 800;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white) !important;
  box-shadow: 0 6px 18px rgba(199, 0, 14, 0.28);
}

.mobile-nav__cta:hover {
  filter: brightness(1.04);
}

@media (min-width: 900px) {
  .site-nav--desktop {
    display: flex;
  }

  .site-header__cta {
    display: inline-flex;
  }

  .hamburger {
    display: none;
  }

  .mobile-nav__cta {
    display: none;
  }
}

/* Layout helpers */
.section {
  padding: 4.2rem 1rem;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  color: var(--sky-dark);
  font-weight: 700;
}

h1,
h2,
h3 {
  color: var(--navy);
}

p {
  line-height: 1.65;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(199, 0, 14, 0.32);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--red) 0%, var(--red-detail) 100%);
  box-shadow: 0 14px 32px rgba(194, 48, 49, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Marquee: banda continua (dos grupos iguales → bucle sin corte). Siempre animado; “reducir movimiento” solo la ralentiza. */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(199, 0, 14, 0.07), rgba(74, 108, 166, 0.1));
  --marquee-duration: 28s;
}

.marquee-track {
  display: flex;
  width: max-content;
  transform: translate3d(0, 0, 0);
  animation-name: marqueeScroll;
  animation-duration: var(--marquee-duration, 28s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 0.7rem 1.5rem;
  flex-shrink: 0;
}

.marquee-group span {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--marquee-fg);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat {
  text-align: center;
  padding: 1rem 0.75rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px var(--shadow-card);
  transition: transform 0.3s ease;
}

.stat:hover {
  transform: translateY(-4px) scale(1.02);
}

.stat__num {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1.15;
}

.stat__num--text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--red);
}

.stat__label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Section variants */
.section--soft {
  background: var(--soft);
}

.section--gradient {
  background: linear-gradient(
    135deg,
    var(--page-bg) 0%,
    color-mix(in srgb, var(--sky) 14%, var(--ivory) 86%) 48%,
    var(--surface) 100%
  );
  position: relative;
  overflow: hidden;
}

.section--gradient::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 52, 116, 0.18), rgba(74, 108, 166, 0.12) 40%, transparent 70%);
  top: -120px;
  right: -80px;
  animation: floatOrb 12s ease-in-out infinite;
}

.section--gradient .container {
  position: relative;
  z-index: 1;
}

/* Carousel */
.carousel {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, #183474 20%, var(--line) 80%);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.1);
  /* Azul #183474 (fijo) para el marco; no usar var(--navy) (cambia en tema oscuro) */
  background: color-mix(in srgb, #183474 90%, #030814 10%);
}

.carousel__viewport {
  overflow: hidden;
}

.carousel__track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel__slide {
  min-width: 100%;
  position: relative;
}

.carousel__slide img,
.carousel__slide video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.carousel__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.88));
  color: var(--white);
  font-size: 0.92rem;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(15, 23, 42, 0.55);
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.carousel__btn:hover {
  background: rgba(199, 0, 14, 0.85);
  transform: translateY(-50%) scale(1.05);
}

.carousel__btn--prev {
  left: 0.6rem;
}

.carousel__btn--next {
  right: 0.6rem;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem;
  background: rgba(15, 23, 42, 0.92);
}

.carousel__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: width 0.25s ease, background 0.25s ease;
}

.carousel__dot.is-active {
  width: 1.1rem;
  background: var(--red);
}

/* Crossfade: superposición y disolución entre fotos (más cinematográfico que slide) */
.carousel--fade .carousel__viewport {
  position: relative;
  aspect-ratio: 16 / 9;
}

.carousel--fade .carousel__track {
  display: block;
  height: 100%;
  transition: none;
}

.carousel--fade .carousel__slide {
  position: absolute;
  inset: 0;
  min-width: 100%;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  transition: opacity 0.78s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.78s linear;
}

.carousel--fade .carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.carousel--fade .carousel__slide img,
.carousel--fade .carousel__slide video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.carousel--fade .carousel__caption {
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
    transform 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0.08s;
}

.carousel--fade .carousel__slide.is-active .carousel__caption {
  opacity: 1;
  transform: translateY(0);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.reveal--left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--left.is-visible,
.reveal--right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(74, 108, 166, 0.15);
  color: var(--sky-dark);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ver-mas-intro-pills {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ver-mas-echo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 1.5rem;
}

.ver-mas-echo-card {
  padding: 1.15rem 1.1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 10px 28px var(--shadow-card);
}

.ver-mas-echo-card__h {
  margin: 0 0 0.65rem;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

@media (max-width: 900px) {
  .ver-mas-echo-grid {
    grid-template-columns: 1fr;
  }
}

/* Hero — Exámenes y certificaciones */
.hero--exams {
  background-position: center 22%;
  background-size: cover;
}

.hero--exams::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(15, 22, 48, 0.72) 0%,
      rgba(15, 22, 48, 0.45) 45%,
      rgba(12, 18, 40, 0.55) 100%
    ),
    radial-gradient(ellipse 70% 55% at 50% 35%, rgba(30, 144, 203, 0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.hero--salidas {
  background-position: center 40%;
  background-size: cover;
}

.hero--salidas::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(15, 22, 48, 0.72) 0%,
      rgba(15, 22, 48, 0.42) 48%,
      rgba(12, 18, 40, 0.58) 100%
    ),
    radial-gradient(ellipse 70% 55% at 50% 35%, rgba(199, 0, 14, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.hero__content--exams {
  max-width: 42rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero__title-exams {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  margin: 0 0 1rem;
  font-size: clamp(2.15rem, 4.5vw + 0.75rem, 3.65rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  text-wrap: balance;
}

.hero__title-line {
  display: block;
  white-space: nowrap;
}

.hero__title-line--accent {
  background: linear-gradient(90deg, #fff 0%, rgba(200, 220, 255, 0.95) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead--exams {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  text-wrap: pretty;
}

@media (max-width: 520px) {
  .hero__title-line {
    white-space: normal;
  }

  .hero__title-exams {
    font-size: clamp(1.85rem, 8vw, 2.35rem);
  }
}

/* Exámenes y certificaciones (ver-mas) */
.exams-anchor-target {
  scroll-margin-top: 5.5rem;
}

.exams-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.exams-highlight {
  margin: 0;
  padding: 1.1rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 12px 30px var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.exams-highlight:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(30, 144, 203, 0.14);
}

.exams-highlight__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.65rem;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(30, 144, 203, 0.16), rgba(199, 0, 14, 0.1));
  color: var(--navy);
}

.exams-highlight__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.exams-highlight strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.3rem;
  line-height: 1.25;
}

.exams-highlight span {
  display: block;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.exams-article {
  margin: 0 auto;
}

.exams-article__head {
  margin-bottom: 1rem;
}

.text-prose--lead {
  font-size: 1.12rem;
  line-height: 1.68;
  color: var(--text);
  font-weight: 500;
}

.exams-block {
  margin-top: 1.75rem;
  padding: 1.35rem 1.25rem 1.25rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, var(--sky) 6%);
}

.exams-block--accent {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--sky) 14%, var(--surface)),
    color-mix(in srgb, var(--red) 8%, var(--surface))
  );
  border-color: color-mix(in srgb, var(--sky) 30%, var(--line));
}

.exams-block__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-dark);
}

.exams-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.exams-skills li {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--sky) 35%, var(--line));
  color: var(--navy);
}

.exams-wa-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 1.6rem;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, #25d366 35%, var(--line));
  background: var(--surface);
  box-shadow: 0 20px 48px var(--shadow-card);
}

.exams-wa-card__text {
  margin: 0.5rem 0 0;
  max-width: 32em;
}

.exams-wa-card__glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.4);
}

.exams-wa-card__glyph svg {
  width: 2.5rem;
  height: 2.5rem;
}

.exams-wa-card__cta-wrap {
  margin: 1rem 0 0;
}

.exams-wa-card .section-title {
  font-size: clamp(1.2rem, 2vw + 0.5rem, 1.55rem);
  max-width: 28em;
}

.btn-primary--wa {
  background: #25d366;
  border-color: #20bd5a;
}

.btn-primary--wa:hover {
  background: #20bd5a;
  border-color: #1da851;
}

.exams-more .home-cta-row {
  margin-top: 0.75rem;
}

@media (max-width: 900px) {
  .exams-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exams-wa-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .exams-wa-card__glyph {
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .exams-highlights {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .exams-highlight:hover {
    transform: none;
  }
}

/* Página El instituto — layout editorial */
.instituto-hero .instituto-hero__lead {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.instituto-section--featured {
  padding-top: 2.1rem;
  padding-bottom: 1.5rem;
}

.instituto-section--path {
  padding-top: 2.35rem;
  padding-bottom: 2rem;
}

.instituto-section--welcome {
  padding-top: 2.5rem;
  padding-bottom: 2.85rem;
}

.instituto-panel {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1.85rem 2.2rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow:
    0 2px 4px color-mix(in srgb, var(--navy) 5%, transparent),
    0 20px 44px var(--shadow-card);
}

.instituto-panel--alt {
  border-color: color-mix(in srgb, var(--sky) 28%, var(--line) 72%);
}

[data-theme="dark"] .instituto-panel {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.38);
}

.instituto-panel__head {
  margin-bottom: 1.05rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.instituto-panel__title {
  margin: 0.4rem 0 0;
  font-size: clamp(1.32rem, 3.4vw, 1.82rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.instituto-panel__body > p + p {
  margin-top: 1rem;
}

.instituto-pullquote {
  margin: 1.65rem 0 0;
  padding: 1.15rem 1.2rem 1.2rem 1.3rem;
  border-left: 4px solid var(--red);
  border-radius: 0 16px 16px 0;
  background: color-mix(in srgb, var(--red) 7%, var(--ivory) 93%);
  font-size: 1.05rem;
  font-weight: 650;
  font-style: italic;
  line-height: 1.55;
  color: var(--navy);
}

[data-theme="dark"] .instituto-pullquote {
  background: color-mix(in srgb, var(--red) 14%, var(--surface) 86%);
  color: var(--text);
}

.instituto-signoff {
  margin-top: 1.65rem;
  font-size: 1.07rem;
  font-weight: 700;
  line-height: 1.52;
  color: var(--sky-dark);
}

.container--narrow-extra {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.instituto-section__lead {
  margin-top: 0.85rem;
}

/* Instituto — video showcase (hero visible) */
.instituto-video-showcase {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2rem, 5vw, 3.25rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--sky) 6%, var(--ivory) 94%) 0%,
    var(--surface) 55%,
    color-mix(in srgb, var(--red-detail) 4%, var(--surface) 96%) 100%
  );
}

.instituto-video-showcase__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: min(520px, 70vh);
  background:
    radial-gradient(ellipse 55% 50% at 20% 30%, rgba(199, 0, 14, 0.14) 0%, transparent 62%),
    radial-gradient(ellipse 60% 55% at 80% 20%, rgba(74, 108, 166, 0.22) 0%, transparent 58%);
  pointer-events: none;
  animation: institutoVideoGlow 8s ease-in-out infinite alternate;
}

@keyframes institutoVideoGlow {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.75;
  }
  100% {
    transform: translateY(12px) scale(1.04);
    opacity: 1;
  }
}

.instituto-video-showcase__head {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin: 0 auto 1.65rem;
  text-align: center;
}

.instituto-video-showcase__title {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(1.55rem, 4.2vw, 2.35rem);
}

.instituto-video-showcase__lead {
  margin: 0 auto;
}

.instituto-video--showcase {
  position: relative;
  z-index: 1;
  width: min(100%, 920px);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: #0f1630;
  border: 2px solid color-mix(in srgb, var(--sky) 35%, #fff 65%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 18px 50px rgba(15, 22, 48, 0.22),
    0 48px 90px rgba(24, 52, 116, 0.18);
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  animation: institutoVideoEnter 1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

@keyframes institutoVideoEnter {
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes institutoVideoFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.008);
  }
}

.instituto-video__shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(255, 255, 255, 0.14) 50%,
    transparent 62%
  );
  transform: translateX(-120%);
  animation: institutoVideoShine 4.5s ease-in-out 1.2s infinite;
}

@keyframes institutoVideoShine {
  0%,
  55% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

.instituto-video {
  position: relative;
}

.instituto-video__el {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
  background: #0f1630;
}

.instituto-video__badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 3;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(15, 22, 48, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  animation: institutoVideoBadgePulse 2.2s ease-in-out infinite;
}

@keyframes institutoVideoBadgePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(199, 0, 14, 0.35);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(199, 0, 14, 0);
  }
}

.instituto-video__sound {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--red-detail, #c7000e), var(--sky, #4a6ca6));
  box-shadow: 0 10px 28px rgba(15, 22, 48, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: institutoVideoSoundPop 2.8s ease-in-out 1.5s infinite;
}

@keyframes institutoVideoSoundPop {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

.instituto-video__sound:hover {
  transform: scale(1.06);
  box-shadow: 0 14px 32px rgba(15, 22, 48, 0.42);
}

.instituto-video__sound-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.instituto-video.is-unmuted .instituto-video__shine {
  animation: none;
  opacity: 0;
}

.instituto-video-showcase__hint {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  margin: 1.15rem auto 0;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sky-dark, #183474);
}

@media (max-width: 640px) {
  .instituto-video--showcase {
    border-radius: 18px;
  }

  .instituto-video__badge {
    left: 0.65rem;
    bottom: auto;
    top: 0.65rem;
    font-size: 0.68rem;
  }

  .instituto-video__sound {
    right: 0.65rem;
    bottom: 0.65rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .instituto-video-showcase__glow,
  .instituto-video--showcase,
  .instituto-video__shine,
  .instituto-video__badge,
  .instituto-video__sound {
    animation: none !important;
  }

  .instituto-video--showcase {
    transform: none;
    opacity: 1;
  }
}

/* Destacado Más de Uplands — pulso suave */
.instituto-feature-card {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 1.55rem 1.85rem;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--sky) 35%, var(--line) 65%);
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--sky) 9%, var(--surface) 91%) 0%,
    var(--surface) 48%,
    color-mix(in srgb, var(--red-detail) 5%, var(--surface) 95%) 100%
  );
  box-shadow:
    0 2px 6px rgba(24, 52, 116, 0.08),
    0 22px 50px var(--shadow-card);
}

.instituto-section--featured.reveal .instituto-feature-card {
  opacity: 0;
  transform: translateY(18px) scale(0.975);
  transition:
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.instituto-section--featured.reveal.is-visible .instituto-feature-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.instituto-feature-card__ribbon {
  position: absolute;
  inset: auto -40% 55% -40%;
  height: min(220px, 42vw);
  background: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    color-mix(in srgb, var(--red) 22%, transparent) 0%,
    transparent 68%
  );
  opacity: 0.58;
  pointer-events: none;
  animation: institutoRibbonDrift 9s ease-in-out infinite alternate;
}

@keyframes institutoRibbonDrift {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.52;
  }
  100% {
    transform: translateY(-8px) scale(1.04);
    opacity: 0.68;
  }
}

.instituto-feature-card__title {
  margin: 0;
  font-size: clamp(1.3rem, 3.8vw, 1.92rem);
  position: relative;
  z-index: 1;
}

.instituto-feature-card .eyebrow,
.instituto-feature-card__lead {
  position: relative;
  z-index: 1;
}

.instituto-feature-card__ping {
  position: absolute;
  right: 1.05rem;
  bottom: 1rem;
  display: flex;
  gap: 0.35rem;
  z-index: 1;
}

.instituto-feature-card__ping > span {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-detail), var(--sky));
  box-shadow: 0 0 0 6px rgba(199, 0, 14, 0.12);
  animation: institPingPulse 2.35s ease-in-out infinite both;
}

.instituto-feature-card__ping > span:nth-child(2) {
  animation-delay: 0.45s;
}

@keyframes institPingPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.88;
    box-shadow: 0 0 0 6px rgba(199, 0, 14, 0.12);
  }
  45% {
    transform: scale(1.08);
    opacity: 1;
    box-shadow: 0 0 0 10px rgba(74, 108, 166, 0.18);
  }
}

.instituto-stage-hint {
  margin: 0.5rem 0 1rem;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--sky-dark);
}

.instituto-stage-grid {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: 1fr;
}

.instituto-stage-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.4rem;
  padding: 1.12rem 1.15rem 1.08rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 28px rgba(15, 24, 55, 0.07);
  transform: translateY(16px);
  opacity: 0;
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s ease;
}

.instituto-stage-card__glyph {
  color: color-mix(in srgb, var(--red-detail) 70%, transparent);
  font-size: 0.72rem;
  line-height: 1;
}

.instituto-stage-card__label {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--navy);
}

.instituto-stage-card__cta {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--red-dark);
}

.instituto-stage-card:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px var(--surface),
    0 0 0 6px rgba(74, 108, 166, 0.55),
    0 18px 40px rgba(199, 0, 14, 0.18);
}

#tres-niveles.reveal.is-visible .instituto-stage-card:nth-child(1),
#tres-niveles.reveal.is-visible .instituto-stage-card:nth-child(2),
#tres-niveles.reveal.is-visible .instituto-stage-card:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
}

#tres-niveles.reveal.is-visible .instituto-stage-card:nth-child(2) {
  transition-delay: 0.06s;
}

#tres-niveles.reveal.is-visible .instituto-stage-card:nth-child(3) {
  transition-delay: 0.12s;
}

.instituto-stage-card:hover {
  border-color: color-mix(in srgb, var(--sky) 55%, var(--line) 45%);
  box-shadow:
    0 12px 32px rgba(24, 52, 116, 0.12),
    0 0 0 1px color-mix(in srgb, var(--sky) 25%, transparent);
  transform: translateY(-6px);
}

#tres-niveles.reveal.is-visible .instituto-stage-card:hover {
  transform: translateY(-6px);
}

.instituto-proof {
  padding-top: 2.25rem;
  padding-bottom: 2.55rem;
}

.instituto-proof-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

.instituto-quote-card {
  margin: 0;
  padding: 0;
}

.instituto-quote-card__bq {
  margin: 0;
  padding: 1.25rem 1.2rem 1.35rem 1.25rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--navy) 12%, var(--line));
  background: linear-gradient(
    148deg,
    color-mix(in srgb, var(--navy) 5%, var(--surface) 95%) 0%,
    var(--surface) 100%
  );
  box-shadow: 0 14px 40px rgba(15, 24, 55, 0.1);
  transform: translateY(14px);
  opacity: 0;
  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.6s ease,
    border-color 0.35s ease;
}

.instituto-quote-card--warm .instituto-quote-card__bq {
  border-color: color-mix(in srgb, var(--red-detail) 28%, var(--line));
  background: linear-gradient(
    150deg,
    color-mix(in srgb, var(--red-detail) 8%, var(--surface) 92%) 0%,
    var(--surface) 100%
  );
}

.instituto-quote-card__hook {
  margin: 0 0 0.55rem;
  font-size: 1.12rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1.4;
  color: var(--navy);
}

.instituto-quote-card__more {
  margin: 0;
}

#voces-instituto.reveal.is-visible .instituto-quote-card .instituto-quote-card__bq {
  opacity: 1;
  transform: translateY(0);
}

#voces-instituto.reveal.is-visible figure:nth-child(2) .instituto-quote-card__bq {
  transition-delay: 0.09s;
}

.instituto-student-banner {
  position: relative;
  overflow: hidden;
  padding: 1.95rem 1.6rem;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--red-detail) 32%, var(--line));
  background: radial-gradient(
      ellipse 140% 80% at 12% -20%,
      color-mix(in srgb, var(--sky) 16%, transparent) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 90% 60% at 92% 120%,
      color-mix(in srgb, var(--red-detail) 18%, transparent) 0%,
      transparent 55%
    ),
    var(--surface);
  box-shadow: 0 18px 48px rgba(199, 0, 14, 0.12);
}

[data-theme="dark"] .instituto-student-banner {
  border-color: color-mix(in srgb, var(--red-detail) 45%, var(--line));
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.instituto-student-banner__orbit {
  position: absolute;
  inset: -45%;
  opacity: 0.22;
  background: repeating-conic-gradient(
    from 0deg,
    color-mix(in srgb, var(--sky-dark) 18%, transparent) 0deg 11deg,
    transparent 11deg 22deg
  );
  animation: institOrbitRotate 54s linear infinite;
  pointer-events: none;
}

@keyframes institOrbitRotate {
  to {
    transform: rotate(1turn);
  }
}

.instituto-student-banner .eyebrow,
.instituto-student-banner__h2,
.instituto-student-banner__p {
  position: relative;
  z-index: 1;
}

.instituto-student-banner__h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.2;
}

.instituto-method-section {
  padding-top: 2.35rem;
  padding-bottom: 2.85rem;
}

.instituto-method-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.instituto-method-li {
  margin: 0;
  padding: 0.75rem 0 0.75rem 2.05rem;
  position: relative;
  font-weight: 500;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
}

.instituto-method-li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.instituto-method-li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.92rem;
  width: 0.92rem;
  height: 0.92rem;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--red), var(--sky));
  opacity: 0.85;
}

@media (min-width: 720px) {
  .instituto-stage-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  .instituto-feature-card__ribbon {
    animation: none;
    opacity: 0.42;
    transform: none;
  }

  .instituto-feature-card__ping > span {
    animation: none;
  }

  .instituto-student-banner__orbit {
    animation: none;
  }

  .instituto-section--featured.reveal .instituto-feature-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .instituto-stage-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .instituto-quote-card__bq {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.instituto-cta-section {
  padding-top: 0.15rem;
  padding-bottom: 2.85rem;
}

.instituto-cta-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.55rem 0.9rem;
}

@media (max-width: 520px) {
  .instituto-panel {
    padding: 1.5rem 1.12rem 1.65rem;
    border-radius: 18px;
  }
}

@media (min-width: 900px) {
  .instituto-hero.hero.hero--page {
    min-height: min(46vh, 440px);
    padding-top: clamp(5.75rem, 12vh, 7.25rem);
    padding-bottom: clamp(2.25rem, 5vh, 3.25rem);
    padding-left: clamp(2rem, 5vw, 4rem);
    padding-right: clamp(2rem, 5vw, 4rem);
    align-content: end;
    place-items: end stretch;
    text-align: left;
  }

  .instituto-hero.hero--page .hero__content {
    max-width: min(560px, 54vw);
    margin: 0;
    justify-self: start;
    text-align: left;
  }

  .instituto-hero.hero--page .hero__content h1 {
    text-align: left;
    font-size: clamp(2rem, 2.35vw + 1.55rem, 3rem);
  }

  .instituto-hero .hero__lead,
  .instituto-hero .instituto-hero__lead {
    margin-left: 0;
    margin-right: 0;
    max-width: 40rem;
    text-align: left;
  }

  .instituto-section--featured {
    padding-top: 1.85rem;
    padding-bottom: 1.1rem;
  }

  .instituto-section--path {
    padding-top: 2rem;
    padding-bottom: 1.75rem;
  }

  .instituto-section--welcome {
    padding-top: 1.85rem;
    padding-bottom: 2.35rem;
  }

  .instituto-panel {
    display: grid;
    grid-template-columns: minmax(14.5rem, 0.94fr) minmax(0, 1.32fr);
    gap: clamp(1.25rem, 3vw, 2.75rem);
    align-items: start;
    max-width: min(940px, 100%);
    padding: clamp(1.75rem, 3vw, 2.35rem) clamp(1.75rem, 3.2vw, 2.5rem)
      clamp(1.95rem, 3.2vw, 2.5rem);
  }

  .instituto-panel__head {
    margin-bottom: 0;
    padding-bottom: 0;
    padding-right: clamp(1rem, 2.5vw, 1.75rem);
    border-bottom: none;
    border-right: 1px solid var(--line);
  }

  .instituto-panel--alt .instituto-panel__head {
    border-right-color: color-mix(in srgb, var(--sky) 28%, var(--line) 72%);
  }

  .instituto-panel__title {
    font-size: clamp(1.22rem, 1.55vw + 0.92rem, 1.72rem);
  }

  .instituto-pullquote {
    margin-top: 1.45rem;
  }

  .instituto-signoff {
    margin-top: 1.35rem;
  }

  .instituto-cta-section {
    padding-bottom: 2.35rem;
  }

  .instituto-cta-bar {
    justify-content: flex-start;
  }
}

/* Hero */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  padding: 5.2rem 1rem 3.5rem;
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Oscuro arriba para contraste con header transparente; más suave abajo */
  background: linear-gradient(
    180deg,
    rgba(24, 52, 116, 0.78) 0%,
    rgba(15, 22, 48, 0.52) 42%,
    rgba(12, 18, 40, 0.4) 100%
  );
}

/* Transición suave a blanco hacia la siguiente sección (referencia St George's) */
.hero--home::after,
.hero--page::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(32vh, 260px);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 245, 0) 0%,
    rgba(255, 255, 245, 0.5) 38%,
    rgba(255, 255, 245, 0.94) 78%,
    var(--page-bg) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 760px;
  animation: heroIn 0.7s ease both;
}

.hero__content h1 {
  color: var(--white);
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
}

.hero__lead {
  margin: 0 auto 1.5rem;
  max-width: 650px;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.65;
}

.hero__lead--slogan {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: clamp(0.95rem, 1.5vw + 0.55rem, 1.15rem);
}

.hero__lead.text-prose {
  line-height: 1.7;
}

.hero__eyebrow {
  color: #c7d4ee;
}

/* Cejilla (eyebrow) en el hero: siempre clara sobre la foto */
.hero .eyebrow {
  color: rgba(200, 215, 240, 0.98);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.hero--home {
  padding-bottom: 4rem;
}

.hero--home .hero__content {
  z-index: 2;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 0.75rem;
  margin-top: 0.15rem;
}

.hero .btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.75);
  color: var(--white);
  background: rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.hero .btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  transform: translateY(-1px);
}

.hero-cta-dropdown {
  position: relative;
  display: inline-flex;
}

.hero-cta-dropdown__toggle.hero-cta-dropdown__toggle {
  gap: 0.35rem;
}

.hero-cta-dropdown__chev {
  font-size: 0.65em;
  line-height: 1;
  opacity: 0.9;
  transition: transform 0.2s ease;
}

.hero-cta-dropdown.is-open .hero-cta-dropdown__chev {
  transform: rotate(180deg);
}

.hero-cta-dropdown__menu {
  position: absolute;
  left: 0;
  top: calc(100% + 0.45rem);
  min-width: max(100%, 12.5rem);
  padding: 0.35rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(12, 18, 28, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  z-index: 40;
}

[data-theme="light"] .hero-cta-dropdown__menu {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

.hero-cta-dropdown__menu[hidden] {
  display: none !important;
}

.hero-cta-dropdown__link {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: background 0.15s ease, color 0.15s ease;
}

[data-theme="light"] .hero-cta-dropdown__link {
  color: var(--text);
  text-shadow: none;
}

.hero-cta-dropdown__link:hover,
.hero-cta-dropdown__link:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

[data-theme="light"] .hero-cta-dropdown__link:hover,
[data-theme="light"] .hero-cta-dropdown__link:focus-visible {
  background: rgba(0, 0, 0, 0.06);
}

/* Franja de acciones en inicio (post-marquee) */
.home-cta-row {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-cta-card {
  position: relative;
  border-radius: 18px;
  padding: 1.25rem 1.2rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px var(--shadow-card);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.home-cta-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--sky), var(--red));
  opacity: 0.85;
}

.home-cta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px var(--shadow-card);
  border-color: rgba(74, 108, 166, 0.35);
}

.home-cta-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(24, 52, 116, 0.12), rgba(199, 0, 14, 0.1));
  color: var(--navy);
  margin-bottom: 0.6rem;
}

[data-theme="dark"] .home-cta-card__icon {
  color: var(--text);
  background: linear-gradient(135deg, rgba(74, 108, 166, 0.25), rgba(199, 0, 14, 0.15));
}

.home-cta-card__icon svg {
  width: 1.28rem;
  height: 1.28rem;
}

.home-cta-card h3 {
  font-size: 1.02rem;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.home-cta-card p {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0 0 0.9rem;
  line-height: 1.5;
}

.home-cta-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.home-cta-card__link::after {
  content: "→";
  font-size: 0.95em;
  transition: transform 0.2s ease;
}

.home-cta-card:hover .home-cta-card__link {
  color: var(--red-detail);
}

.home-cta-card:hover .home-cta-card__link::after {
  transform: translateX(3px);
}

@media (max-width: 800px) {
  .home-cta-row {
    grid-template-columns: 1fr;
  }
}

/* Inicio: resumen + collage de fotos animado + índice con acento rojo */
.home-overview {
  padding-top: 1.75rem;
  padding-bottom: 2.25rem;
}

.home-overview__intro {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.home-overview__title {
  margin-top: 0.35rem;
  margin-bottom: 0.65rem;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
}

.home-overview__lead {
  margin: 0 auto;
  max-width: 38rem;
  text-align: left;
  font-size: 1.02rem;
  line-height: 1.65;
}

.home-overview__lead + .home-overview__lead {
  margin-top: 0.65rem;
}

.home-overview__ribbon {
  position: relative;
  margin-top: 2rem;
  text-align: center;
  padding-bottom: 0.35rem;
}

.home-overview__ribbon-accent {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(92%, 520px);
  height: clamp(160px, 38vw, 240px);
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse 70% 60% at 30% 50%, rgba(199, 0, 14, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 55% 50% at 78% 40%, rgba(74, 108, 166, 0.12) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  filter: blur(0.5px);
}

.home-overview__ribbon > *:not(.home-overview__ribbon-accent) {
  position: relative;
  z-index: 1;
}

.home-overview__ribbon .home-overview__visual-tagline {
  margin-left: auto;
  margin-right: auto;
  max-width: 36rem;
}

.home-overview__ribbon .home-overview__visual-eyebrow {
  margin-bottom: 0.2rem;
  color: var(--red);
  letter-spacing: 0.12em;
}

.home-overview__ribbon .home-overview__visual-h3 {
  margin: 0 auto 0.65rem;
  max-width: 42rem;
  font-size: clamp(1.12rem, 2.2vw, 1.45rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--navy);
}

[data-theme="dark"] .home-overview__ribbon .home-overview__visual-h3 {
  color: var(--text);
}

[data-theme="dark"] .home-overview__ribbon .home-overview__visual-eyebrow {
  color: #ff6b76;
}

/* Collage de fotos: superposición + animación (se activa con .home-overview.reveal.is-visible) */
.home-photo-cluster {
  position: relative;
  margin: 1.1rem auto 0;
  max-width: 520px;
  z-index: 1;
}

.home-photo-cluster__glow {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 85%;
  height: 45%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse closest-side, rgba(199, 0, 14, 0.18) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.home-photo-cluster__stage {
  position: relative;
  z-index: 1;
  min-height: clamp(210px, 48vw, 300px);
  margin: 0 auto;
  opacity: 1;
  transition: opacity 0.42s ease;
}

.home-photo-cluster__stage.is-photo-fading {
  opacity: 0.22;
}

@media (prefers-reduced-motion: reduce) {
  .home-photo-cluster__stage {
    transition-duration: 0.01ms;
  }

  .home-photo-cluster__stage.is-photo-fading {
    opacity: 1;
  }
}

.home-photo-cluster__card {
  position: absolute;
  margin: 0;
  padding: 0.4rem 0.4rem 0.5rem;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--red) 38%, var(--line) 62%);
  box-shadow:
    0 3px 0 color-mix(in srgb, var(--red) 65%, var(--navy) 35%),
    0 20px 44px rgba(24, 52, 116, 0.18);
  transform-origin: 50% 80%;
  transition: box-shadow 0.35s ease, border-color 0.25s ease;
}

[data-theme="dark"] .home-photo-cluster__card {
  background: color-mix(in srgb, var(--surface) 92%, var(--navy) 8%);
  border-color: color-mix(in srgb, var(--red) 45%, var(--line) 55%);
  box-shadow:
    0 3px 0 var(--red-dark),
    0 18px 40px rgba(0, 0, 0, 0.35);
}

.home-photo-cluster__card:hover {
  border-color: color-mix(in srgb, var(--red) 55%, var(--line) 45%);
  box-shadow:
    0 4px 0 var(--red),
    0 26px 50px rgba(199, 0, 14, 0.22);
  z-index: 20;
}

.home-photo-cluster__card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.home-photo-cluster__card--a {
  left: -2%;
  bottom: 4%;
  width: min(58%, 248px);
  z-index: 2;
  transform: rotate(-8deg);
}

.home-photo-cluster__card--b {
  right: -3%;
  top: 6%;
  width: min(56%, 236px);
  z-index: 4;
  transform: rotate(7deg);
}

.home-photo-cluster__card--c {
  left: 20%;
  bottom: 28%;
  width: min(52%, 220px);
  z-index: 5;
  transform: rotate(-2deg);
}

.home-photo-cluster__card--a img,
.home-photo-cluster__card--b img,
.home-photo-cluster__card--c img {
  transform: translateZ(0);
}

@media (prefers-reduced-motion: no-preference) {
  .home-overview.reveal:not(.is-visible) .home-photo-cluster__card {
    opacity: 0;
  }

  .home-overview.reveal.is-visible .home-photo-cluster__card--a {
    animation: homeClusterInA 0.78s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .home-overview.reveal.is-visible .home-photo-cluster__card--b {
    animation: homeClusterInB 0.78s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
  }

  .home-overview.reveal.is-visible .home-photo-cluster__card--c {
    animation: homeClusterInC 0.82s cubic-bezier(0.22, 1, 0.36, 1) 0.24s forwards;
  }

  .home-overview.reveal.is-visible .home-photo-cluster__card--a img {
    animation: homeClusterImgFloatA 4.6s ease-in-out 0.78s infinite;
  }

  .home-overview.reveal.is-visible .home-photo-cluster__card--b img {
    animation: homeClusterImgFloatB 5.1s ease-in-out 0.9s infinite;
  }

  .home-overview.reveal.is-visible .home-photo-cluster__card--c img {
    animation: homeClusterImgFloatC 4.3s ease-in-out 1s infinite;
  }

  .home-photo-cluster__card:hover img {
    animation-play-state: paused;
  }
}

@keyframes homeClusterInA {
  from {
    opacity: 0;
    transform: translate(24px, 36px) rotate(-18deg) scale(0.86);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) rotate(-8deg) scale(1);
  }
}

@keyframes homeClusterInB {
  from {
    opacity: 0;
    transform: translate(-28px, 28px) rotate(16deg) scale(0.86);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) rotate(7deg) scale(1);
  }
}

@keyframes homeClusterInC {
  from {
    opacity: 0;
    transform: translate(0, 40px) rotate(-10deg) scale(0.88);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) rotate(-2deg) scale(1);
  }
}

@keyframes homeClusterImgFloatA {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.03);
  }
}

@keyframes homeClusterImgFloatB {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.025);
  }
}

@keyframes homeClusterImgFloatC {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-overview.reveal .home-photo-cluster__card,
  .home-overview.reveal .home-photo-cluster__card img {
    animation: none !important;
    opacity: 1 !important;
  }

  .home-photo-cluster__card--a {
    transform: rotate(-4deg);
  }

  .home-photo-cluster__card--b {
    transform: rotate(4deg);
  }

  .home-photo-cluster__card--c {
    transform: rotate(0deg);
  }
}

.home-site-index-section {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.home-site-index {
  max-width: 960px;
  margin: 0 auto;
}

.home-site-index__label {
  display: block;
  margin: 0 0 1.15rem;
  text-align: center;
  color: var(--red);
  letter-spacing: 0.12em;
}

[data-theme="dark"] .home-site-index__label {
  color: #ff6b76;
}

.home-site-index__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 880px) {
  .home-site-index__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.home-site-index__cell {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

.home-site-index__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  height: 100%;
  min-height: 9.5rem;
  padding: 1rem 1rem 0.85rem 1.1rem;
  text-decoration: none;
  color: inherit;
  text-align: left;
  border-radius: 18px;
  background: linear-gradient(
    155deg,
    var(--surface) 0%,
    color-mix(in srgb, var(--red) 7%, var(--surface) 93%) 100%
  );
  border: 1px solid color-mix(in srgb, var(--red) 32%, var(--line) 68%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--red) 8%, transparent),
    0 12px 32px rgba(24, 52, 116, 0.1);
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.25s ease;
}

[data-theme="dark"] .home-site-index__tile {
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--surface) 88%, var(--navy) 12%) 0%,
    color-mix(in srgb, var(--red) 14%, var(--surface) 86%) 100%
  );
  border-color: color-mix(in srgb, var(--red) 42%, var(--line) 58%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--red) 15%, transparent),
    0 14px 36px rgba(0, 0, 0, 0.32);
}

.home-site-index__tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--red) 45%, var(--sky) 100%);
  transform: scaleX(0.42);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-site-index__tile:hover {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--red) 52%, var(--line) 48%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--red) 18%, transparent),
    0 20px 48px rgba(199, 0, 14, 0.16);
}

.home-site-index__tile:hover::before {
  transform: scaleX(1);
}

.home-site-index__tile-num {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--red);
  opacity: 0.92;
  font-variant-numeric: tabular-nums;
}

.home-site-index__tile-body {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  flex: 1;
  min-width: 0;
}

.home-site-index__tile-title {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  transition: color 0.22s ease;
}

.home-site-index__tile:hover .home-site-index__tile-title {
  color: color-mix(in srgb, var(--red) 48%, var(--navy) 52%);
}

[data-theme="dark"] .home-site-index__tile-title {
  color: var(--text);
}

[data-theme="dark"] .home-site-index__tile:hover .home-site-index__tile-title {
  color: #ffd0d3;
}

.home-site-index__tile-desc {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.home-site-index__tile-go {
  align-self: flex-end;
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 1.28rem;
  line-height: 1;
  color: var(--red);
  opacity: 0.78;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--red) 40%, transparent));
}

.home-site-index__tile:hover .home-site-index__tile-go {
  transform: translate(4px, -4px) rotate(-10deg);
  opacity: 1;
}

.home-site-index__tile:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .home-site-index-section.reveal:not(.is-visible) .home-site-index__tile {
    opacity: 0;
    transform: translateY(24px) scale(0.94);
  }

  .home-site-index-section.reveal.is-visible .home-site-index__tile {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition:
      opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.58s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.25s ease,
      box-shadow 0.35s ease;
  }

  .home-site-index-section.reveal.is-visible .home-site-index__cell:nth-child(1) .home-site-index__tile {
    transition-delay: 0.04s;
  }

  .home-site-index-section.reveal.is-visible .home-site-index__cell:nth-child(2) .home-site-index__tile {
    transition-delay: 0.09s;
  }

  .home-site-index-section.reveal.is-visible .home-site-index__cell:nth-child(3) .home-site-index__tile {
    transition-delay: 0.14s;
  }

  .home-site-index-section.reveal.is-visible .home-site-index__cell:nth-child(4) .home-site-index__tile {
    transition-delay: 0.19s;
  }

  .home-site-index-section.reveal.is-visible .home-site-index__cell:nth-child(5) .home-site-index__tile {
    transition-delay: 0.24s;
  }

  .home-site-index-section.reveal.is-visible .home-site-index__cell:nth-child(6) .home-site-index__tile {
    transition-delay: 0.29s;
  }

  .home-site-index-section.reveal.is-visible .home-site-index__label {
    animation: homeIndexLabelIn 0.65s ease 0.05s both;
  }
}

@keyframes homeIndexLabelIn {
  from {
    opacity: 0;
    letter-spacing: 0.28em;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    letter-spacing: 0.12em;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-site-index__tile {
    opacity: 1 !important;
    transform: none !important;
    transition: border-color 0.2s ease, box-shadow 0.25s ease !important;
  }

  .home-site-index-section .home-site-index__label {
    animation: none !important;
  }
}

@media (max-width: 520px) {
  .home-photo-cluster__stage {
    min-height: 200px;
    max-width: 340px;
  }

  .home-photo-cluster__card--a {
    left: 0;
    bottom: 0;
    width: 60%;
    transform: rotate(-6deg);
  }

  .home-photo-cluster__card--b {
    right: -1%;
    top: 2%;
    width: 58%;
    transform: rotate(5deg);
  }

  .home-photo-cluster__card--c {
    left: 14%;
    bottom: 20%;
    width: 54%;
    transform: rotate(-1deg);
  }
}

/* Páginas internas: mismo hero a pantalla casi completa que la referencia */
.hero--page {
  min-height: min(92svh, 920px);
  padding-bottom: 4.5rem;
  align-content: center;
}

.hero__cta {
  margin-top: 0.25rem;
}

.hero--cursos {
  background-position: center 32%;
}

.hero--contacto {
  background-position: center 42%;
}

.contact-sede {
  margin: 0 0 1rem;
  border-radius: var(--radius-lg, 1rem);
  overflow: hidden;
  box-shadow: var(--shadow-card, 0 12px 40px rgba(15, 22, 48, 0.12));
  background: var(--surface-elevated, #fff);
}

.contact-sede__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.contact-sede__caption {
  padding: 0.75rem 1rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted, #5a6478);
  text-align: center;
}

.contact-sede--brand {
  background: #fff;
}

.contact-sede--brand .contact-sede__img {
  object-fit: contain;
  max-height: min(52vh, 480px);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
}

.contact-sede--brand .contact-sede__caption {
  font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--brand-red, #c7000e);
}

.hero--beneficios {
  /* Imagen cálida (estudio / foco) + overlay ligeramente más “internacional” */
  background-position: center 28%;
}

.hero--beneficios::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Mantiene el velo oscuro base + acentos suaves (legibilidad del titular) */
  background: linear-gradient(
      180deg,
      rgba(24, 52, 116, 0.78) 0%,
      rgba(15, 22, 48, 0.52) 42%,
      rgba(12, 18, 40, 0.4) 100%
    ),
    radial-gradient(ellipse 90% 70% at 18% 18%, rgba(199, 0, 14, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 75% 55% at 85% 78%, rgba(74, 108, 166, 0.28) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: benefHeroShimmer 12s ease-in-out infinite;
}

@keyframes benefHeroShimmer {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
}

.hero--beneficios .hero__content {
  max-width: 800px;
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.9rem;
  margin: 0.4rem 0 0;
}

.link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

.link-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.link-pill--primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  border-color: rgba(0, 0, 0, 0.08);
}

.link-pill--soft {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}

.link-pill--soft:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Inicio: sección tipo app móvil + animaciones de texto */
.desktop-only {
  display: none;
}

@media (min-width: 769px) {
  .desktop-only {
    display: block;
  }
}

.home-intro {
  position: relative;
  overflow: hidden;
  background: var(--page-bg);
}

.home-intro__inner {
  position: relative;
  z-index: 1;
}

.home-intro__decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(circle at 12% 18%, rgba(74, 108, 166, 0.12) 0%, transparent 42%),
    radial-gradient(circle at 88% 72%, rgba(199, 0, 14, 0.06) 0%, transparent 38%);
}

.home-intro__decor::before,
.home-intro__decor::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(74, 108, 166, 0.28);
}

.home-intro__decor::before {
  width: 180px;
  height: 180px;
  top: -40px;
  right: -30px;
  border-style: dashed;
  opacity: 0.7;
}

.home-intro__decor::after {
  width: 12px;
  height: 12px;
  top: 24%;
  left: 8%;
  background: var(--red);
  transform: rotate(45deg);
  border: none;
  box-shadow: 24px 80px 0 -2px rgba(74, 108, 166, 0.35);
}

.home-intro__title {
  font-size: clamp(1.65rem, 5vw + 0.5rem, 2.35rem);
  color: var(--navy);
  margin: 0 0 0.85rem;
  line-height: 1.15;
}

.home-intro__lead {
  font-size: 1.02rem;
  color: var(--text);
  line-height: 1.65;
  max-width: 36rem;
  margin: 0 0 0.5rem;
}

.btn-ghost {
  display: none;
  align-items: center;
  justify-content: center;
  margin-top: 1.1rem;
  padding: 0.78rem 1.35rem;
  border-radius: 999px;
  border: 2px solid var(--red);
  background: transparent;
  color: var(--red);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-ghost:hover {
  background: rgba(199, 0, 14, 0.06);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .btn-ghost.home-intro__ghost {
    display: inline-flex;
  }

  .marquee-wrap--home {
    display: none;
  }
}

.letter-reveal__char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em);
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1), transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--lr, 0) * 22ms);
}

[data-letter-reveal].is-text-revealed .letter-reveal__char {
  opacity: 1;
  transform: translateY(0);
}

/* margin-right: separación fija entre palabras (el espacio al borde de inline-block a veces colapsa en iOS / WebKit) */
[data-word-reveal] {
  white-space: normal;
  overflow-wrap: break-word;
}

.word-reveal__w {
  display: inline-block;
  margin-right: 0.35em;
  opacity: 0;
  transform: translateY(0.35em);
  transition: opacity 0.4s ease, transform 0.4s ease;
  transition-delay: calc(var(--wi, 0) * 42ms);
}

[data-word-reveal] .word-reveal__w:last-child,
[data-word-reveal] .word-reveal__w:last-of-type {
  margin-right: 0;
}

[data-word-reveal].is-text-revealed .word-reveal__w {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .letter-reveal__char,
  .word-reveal__w {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.brand__logo--hero {
  display: none;
  height: 40px;
  width: auto;
  max-width: 44vw;
  object-fit: contain;
}

@media (max-width: 768px) {
  .site-header.site-header--home.site-header--on-hero .brand__logo--standard {
    display: none;
  }

  .site-header.site-header--home.site-header--on-hero .brand__logo--hero {
    display: block;
  }

  .hero--home {
    min-height: 100svh;
    min-height: 100dvh;
    padding-top: 5.5rem;
    padding-bottom: 5rem;
    align-content: center;
  }

  .hero--home::before {
    background: linear-gradient(180deg, rgba(24, 52, 116, 0.8), rgba(15, 22, 48, 0.52));
  }

  .home-intro .stats {
    margin-top: 2rem;
  }

  .hero--home .hero__lead {
    font-size: 0.95rem;
    margin-bottom: 1.35rem;
  }

  .hero--home .hero__content {
    padding: 0 0.25rem;
  }
}

/* Cards */
.grid {
  display: grid;
  gap: 1rem;
}

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

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

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 1.1rem 1rem;
  box-shadow: 0 8px 22px var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(2, 6, 23, 0.12);
}

.card h3 {
  margin: 0 0 0.35rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.courses-card {
  border-left: 4px solid var(--sky-dark);
}

/* Teachers */
.teacher-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.7rem;
}

.marcela-spotlight {
  margin-top: 1.35rem;
  align-items: start;
}

.marcela-spotlight__figure {
  margin: 0;
}

.marcela-spotlight__img {
  width: 100%;
  height: auto;
  max-height: min(72vh, 520px);
  object-fit: cover;
  border-radius: 18px;
  display: block;
  box-shadow: 0 18px 44px var(--shadow-card);
  border: 1px solid var(--line);
}

.marcela-spotlight__body > .icon-pill {
  margin-bottom: 1rem;
}

.marcela-spotlight__team {
  margin-top: 1.2rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.contact-info {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 1.25rem 1.1rem;
  box-shadow: 0 8px 22px var(--shadow-card);
}

.contact-info h2 {
  margin: 0 0 0.5rem;
}

.contact-info__block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.contact-info__block:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.contact-info dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.contact-info dd {
  margin: 0;
  font-weight: 600;
  color: var(--navy);
}

.contact-info dt.contact-dl-gap {
  margin-top: 0.85rem;
}

.contact-note {
  font-size: 0.95rem;
  margin: 0;
}

.address {
  margin-top: 0.5rem;
  color: var(--muted);
  font-weight: 500;
}

.contact-info a {
  color: var(--sky-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Historia (página dedicada) */
.history-milestones {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 920px;
}

.history-milestones li {
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.history-milestones li:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(2, 6, 23, 0.1);
}

.history-milestones strong {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 0.4rem;
  line-height: 1.1;
}

.history-milestones span {
  font-size: 0.9rem;
  color: var(--muted);
}

.history-year-display {
  font-size: clamp(3rem, 9vw, 4.75rem);
  font-weight: 800;
  color: var(--red);
  margin: 0 0 0.25rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.history-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.history-cards article {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1rem;
  background: var(--surface);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.history-cards article:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.1);
}

.history-cards strong {
  display: block;
  color: var(--red);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.history-cards span {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.history-closing blockquote {
  margin: 0 0 1rem;
  padding: 0 0 0 1.1rem;
  border-left: 4px solid var(--sky);
  font-size: 1.12rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
}

.history-closing blockquote p {
  margin: 0;
}

.history-final {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--sky-dark);
  margin: 1.35rem 0 1.5rem;
}

@media (max-width: 780px) {
  .history-milestones {
    grid-template-columns: 1fr;
  }

  .history-cards {
    grid-template-columns: 1fr;
  }
}

/* Tipografía legible (evita párrafos “pegados”, también en móvil) */
.text-prose {
  line-height: 1.7;
  margin: 0 0 1rem;
}

.text-prose:last-child {
  margin-bottom: 0;
}

.text-prose--muted {
  color: var(--muted);
}

.max-readable {
  max-width: 40rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw + 0.5rem, 2rem);
  color: var(--navy);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.section-lead {
  margin-bottom: 1.5rem;
}

.section-cta {
  margin-top: 1.25rem;
}

.testimonial-grid {
  margin-top: 1.1rem;
}

.testimonial-by {
  margin: 0.75rem 0 0;
  font-weight: 600;
  color: var(--sky-dark);
  font-size: 0.92rem;
}

.testimonial-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px var(--shadow-card);
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-card:hover {
    transform: none;
  }
}

/* Teachers: bloque de impacto (reemplaza testimonios ficticios) */
.teachers-impact__h2 {
  font-size: clamp(1.45rem, 3.5vw + 0.5rem, 2.15rem);
  line-height: 1.18;
  color: var(--navy);
  margin: 0 0 0.85rem;
  max-width: 22em;
}

.teachers-impact__lead {
  font-size: 1.08rem;
  color: var(--text);
  max-width: 40rem;
  margin: 0 0 1.75rem;
  line-height: 1.65;
}

.teachers-impact__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.teachers-impact__card {
  margin: 0;
  padding: 1.2rem 1.1rem 1.15rem;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  box-shadow: 0 10px 28px var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.teachers-impact__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px var(--shadow-card);
}

.teachers-impact__card-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 0.55rem;
}

.teachers-impact__card .text-prose {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.teachers-impact__cta-wrap {
  margin: 1.75rem 0 0;
  text-align: center;
}

@media (max-width: 900px) {
  .teachers-impact__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .teachers-impact__card:hover {
    transform: none;
  }
}

/* Docentes — página interactiva */
.teachers-anchor-target {
  scroll-margin-top: 5.5rem;
}

.teachers-page .teachers-stats {
  margin-top: 1.5rem;
}

.marcela-story {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1.75rem;
  align-items: start;
}

.marcela-profile-card {
  padding: 1.35rem 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 12px 32px var(--shadow-card);
  text-align: center;
}

.marcela-profile-card__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--sky-dark), var(--red));
  box-shadow: 0 10px 24px rgba(30, 144, 203, 0.35);
}

.marcela-profile-card__name {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
}

.marcela-profile-card__role {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.marcela-profile-card__tags {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.marcela-profile-card__tags li {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--sky) 12%, var(--surface));
  color: var(--sky-dark);
}

.marcela-story__hint {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.marcela-chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.marcela-chapter {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--navy);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.marcela-chapter:hover {
  border-color: color-mix(in srgb, var(--sky) 45%, var(--line));
  transform: translateY(-1px);
}

.marcela-chapter.is-active {
  background: linear-gradient(135deg, var(--sky-dark), var(--navy));
  border-color: transparent;
  color: #fff;
}

.marcela-panels {
  position: relative;
  min-height: 8rem;
}

.marcela-panel {
  margin: 0;
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, var(--sky) 8%);
  animation: teachersPanelIn 0.35s ease;
}

.marcela-panel[hidden] {
  display: none !important;
}

.marcela-panel__note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

@keyframes teachersPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Teachers hub — práctica + equipo */
.teachers-hub {
  position: relative;
  overflow: hidden;
  padding-top: 2.75rem;
  padding-bottom: 3rem;
}

.teachers-hub__glow {
  pointer-events: none;
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(ellipse 55% 45% at 10% 15%, rgba(30, 144, 203, 0.2), transparent 58%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(199, 0, 14, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(74, 108, 166, 0.08), transparent 60%);
  animation: coursesJourneyPulse 9s ease-in-out infinite alternate;
  z-index: 0;
}

.teachers-hub__container {
  position: relative;
  z-index: 1;
}

.teachers-hub__head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.teachers-hub__title {
  margin-bottom: 0.65rem;
}

.teachers-hub__lead {
  margin: 0 auto;
  color: var(--text);
  font-size: 1.05rem;
}

.teachers-hub__layout {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 1.15rem;
  align-items: stretch;
}

.teachers-hub__nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.teachers-hub-pick {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0.95rem 1rem;
  text-align: left;
  font: inherit;
  color: var(--navy);
  border: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  border-radius: 16px;
  background: var(--surface);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 8px 22px var(--shadow-card);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}

.teachers-hub-pick::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 16px 0 0 16px;
  background: var(--hub-accent, var(--sky-dark));
  opacity: 0.35;
  transition: opacity 0.25s ease, width 0.25s ease;
}

.teachers-hub-pick--sky {
  --hub-accent: var(--sky-dark);
}

.teachers-hub-pick--navy {
  --hub-accent: var(--navy);
}

.teachers-hub-pick--red {
  --hub-accent: var(--red);
}

.teachers-hub-pick--blend {
  --hub-accent: var(--sky-dark);
}

.teachers-hub-pick:hover {
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--hub-accent) 35%, var(--line));
}

.teachers-hub-pick.is-active {
  transform: translateX(6px);
  border-color: color-mix(in srgb, var(--hub-accent) 55%, var(--line));
  box-shadow: 0 16px 40px color-mix(in srgb, var(--hub-accent) 22%, transparent);
  background: linear-gradient(
    105deg,
    color-mix(in srgb, var(--hub-accent) 10%, var(--surface)),
    var(--surface) 55%
  );
}

.teachers-hub-pick.is-active::before {
  opacity: 1;
  width: 5px;
}

.teachers-hub-pick__num {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  color: color-mix(in srgb, var(--hub-accent) 70%, var(--muted));
}

.teachers-hub-pick.is-active .teachers-hub-pick__num {
  color: var(--hub-accent);
}

.teachers-hub-pick__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.teachers-hub-pick__tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hub-accent);
}

.teachers-hub-pick__label {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.teachers-hub-pick__arrow {
  font-size: 1.1rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  color: var(--hub-accent);
}

.teachers-hub-pick.is-active .teachers-hub-pick__arrow,
.teachers-hub-pick:hover .teachers-hub-pick__arrow {
  opacity: 1;
  transform: translateX(0);
}

.teachers-hub__stage {
  position: relative;
  min-height: 320px;
}

.teachers-hub-panel {
  position: relative;
  margin: 0;
  height: 100%;
  min-height: 320px;
  padding: 1.75rem 1.6rem 1.6rem;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(2, 6, 23, 0.12);
  animation: teachersPanelIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.teachers-hub-panel[hidden] {
  display: none !important;
}

.teachers-hub-panel--sky {
  background: linear-gradient(145deg, #fff 0%, color-mix(in srgb, var(--sky) 14%, #fff) 100%);
}

.teachers-hub-panel--navy {
  background: linear-gradient(145deg, #fff 0%, color-mix(in srgb, var(--navy) 8%, #fff) 100%);
}

.teachers-hub-panel--red {
  background: linear-gradient(145deg, #fff 0%, color-mix(in srgb, var(--red) 10%, #fff) 100%);
}

.teachers-hub-panel--blend {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--sky) 12%, #fff),
    color-mix(in srgb, var(--red) 8%, #fff)
  );
}

.teachers-hub-panel__watermark {
  position: absolute;
  top: -0.15em;
  right: 0.05em;
  font-size: clamp(5rem, 14vw, 8.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: color-mix(in srgb, var(--navy) 6%, transparent);
  pointer-events: none;
  user-select: none;
}

.teachers-hub-panel__eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-dark);
}

.teachers-hub-panel__title {
  position: relative;
  z-index: 1;
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 2.5vw + 0.5rem, 1.85rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  max-width: 16em;
}

.teachers-hub-panel__text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.68;
  color: var(--text);
  max-width: 38em;
}

.teachers-hub-team {
  position: relative;
  z-index: 1;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.teachers-hub-team__item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.85rem 0.75rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  backdrop-filter: blur(6px);
}

.teachers-hub-team__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(30, 144, 203, 0.16), rgba(199, 0, 14, 0.12));
  color: var(--navy);
}

.teachers-hub-team__icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.teachers-hub-team__item strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.teachers-hub-team__item span {
  display: block;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

.teachers-hub__cta {
  margin-top: 1.75rem;
  text-align: center;
}

[data-theme="dark"] .teachers-hub-panel {
  background: linear-gradient(145deg, var(--surface) 0%, color-mix(in srgb, var(--sky) 12%, var(--surface)) 100%);
  border-color: var(--line);
}

[data-theme="dark"] .teachers-hub-panel__watermark {
  color: color-mix(in srgb, var(--sky) 12%, transparent);
}

.teachers-impact__grid button.teachers-impact__card {
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  appearance: none;
}

.teachers-impact__card.is-selected {
  border-left-color: var(--sky-dark);
  box-shadow: 0 16px 38px rgba(30, 144, 203, 0.16);
  transform: translateY(-4px);
}

@media (max-width: 960px) {
  .marcela-story {
    grid-template-columns: 1fr;
  }

  .teachers-hub__layout {
    grid-template-columns: 1fr;
  }

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

  .teachers-hub-team {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .teachers-hub__nav {
    grid-template-columns: 1fr;
  }

  .teachers-hub-pick:hover,
  .teachers-hub-pick.is-active {
    transform: none;
  }

  .marcela-chapters {
    gap: 0.35rem;
  }

  .marcela-chapter {
    font-size: 0.76rem;
    padding: 0.4rem 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marcela-panel,
  .teachers-hub-panel {
    animation: none;
  }

  .teachers-hub__glow {
    animation: none;
  }

  .teachers-hub-pick:hover,
  .teachers-hub-pick.is-active,
  .teachers-impact__card.is-selected {
    transform: none;
  }
}

/* Cursos (página dedicada) */
.courses-page .section .container > .eyebrow {
  margin-bottom: 0.35rem;
}

.courses-anchor-target {
  scroll-margin-top: 5.5rem;
}

.courses-subnav {
  position: sticky;
  top: 3.5rem;
  z-index: 40;
  padding: 0.65rem 1rem;
  margin: -0.5rem auto 0;
  max-width: 1120px;
}

.courses-subnav__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 6px 20px var(--shadow-card);
  justify-content: center;
}

.courses-subnav__link {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.courses-subnav__link:hover {
  color: var(--sky-dark);
  background: rgba(74, 108, 166, 0.12);
}

.courses-stage-hint {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sky-dark);
  margin: 0.75rem 0 0;
  line-height: 1.5;
}

/* Cursos — recorrido iluminado */
.courses-journey {
  position: relative;
  overflow: hidden;
  padding-top: 2.5rem;
  padding-bottom: 2.85rem;
}

.courses-journey__glow {
  pointer-events: none;
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(ellipse 55% 45% at 15% 20%, rgba(30, 144, 203, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 75%, rgba(199, 0, 14, 0.14), transparent 50%),
    radial-gradient(ellipse 40% 35% at 50% 50%, rgba(74, 108, 166, 0.1), transparent 60%);
  animation: coursesJourneyPulse 7s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes coursesJourneyPulse {
  0% {
    opacity: 0.65;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.04);
  }
}

.courses-journey .container {
  position: relative;
  z-index: 1;
}

.courses-journey .stages-row {
  margin-top: 1.5rem;
}

.stage-card {
  position: relative;
  overflow: hidden;
}

.stage-card__glow {
  pointer-events: none;
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 120deg,
    transparent 0deg,
    rgba(30, 144, 203, 0.35) 80deg,
    rgba(199, 0, 14, 0.25) 160deg,
    transparent 240deg
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  animation: stageCardSpin 8s linear infinite;
}

.stage-card.is-selected .stage-card__glow,
.stage-card:hover .stage-card__glow {
  opacity: 0.55;
}

.stage-card--kids.is-selected {
  border-color: color-mix(in srgb, var(--sky) 55%, var(--line));
  box-shadow: 0 14px 36px rgba(30, 144, 203, 0.22);
}

.stage-card--teens.is-selected {
  border-color: color-mix(in srgb, var(--navy) 40%, var(--line));
  box-shadow: 0 14px 36px rgba(74, 108, 166, 0.2);
}

.stage-card--adults.is-selected {
  border-color: color-mix(in srgb, var(--red) 45%, var(--line));
  box-shadow: 0 14px 36px rgba(199, 0, 14, 0.18);
}

@keyframes stageCardSpin {
  to {
    transform: rotate(1turn);
  }
}

.stage-card__pill,
.stage-card__hint,
.stage-card__title,
.stage-card__text {
  position: relative;
  z-index: 1;
}

.course-blocks {
  margin-top: 1.75rem;
}

.course-block {
  position: relative;
  overflow: hidden;
}

.course-block__shine {
  pointer-events: none;
  position: absolute;
  top: -50%;
  left: -60%;
  width: 45%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 48%,
    transparent 100%
  );
  transform: skewX(-18deg);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.course-block.is-highlighted .course-block__shine {
  opacity: 1;
  animation: courseBlockShine 1.4s ease forwards;
}

@keyframes courseBlockShine {
  0% {
    left: -60%;
  }
  100% {
    left: 120%;
  }
}

.course-block--kids {
  border-left-color: var(--sky);
}

.course-block--teens {
  border-left-color: var(--navy);
}

.course-block--adults {
  border-left-color: var(--red);
}

.course-block.is-highlighted {
  border-color: color-mix(in srgb, var(--red) 35%, var(--line));
}

.course-tag--accent {
  color: var(--red);
  background: color-mix(in srgb, var(--red) 12%, var(--surface) 88%);
}

.course-block__cta {
  display: inline-flex;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sky-dark);
  transition: color 0.2s ease, transform 0.2s ease;
}

.course-block__cta:hover {
  color: var(--red);
  transform: translateX(4px);
}

.course-block.is-highlighted .course-block__cta {
  color: var(--red);
}

/* Metodología cursos */
.courses-method {
  position: relative;
  overflow: hidden;
  padding-top: 2.35rem;
  padding-bottom: 2.85rem;
}

.courses-method__inner {
  position: relative;
  max-width: 42rem;
}

.courses-method__glow {
  pointer-events: none;
  position: absolute;
  inset: -30% -20%;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(30, 144, 203, 0.16), transparent 65%);
  animation: coursesJourneyPulse 6s ease-in-out infinite alternate-reverse;
  z-index: 0;
}

.courses-method__content {
  position: relative;
  z-index: 1;
  padding: 1.65rem 1.5rem 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 16px 44px var(--shadow-card);
}

.courses-method-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.courses-method-li {
  margin: 0;
  padding: 0.75rem 0 0.75rem 2.05rem;
  position: relative;
  font-weight: 500;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
}

.courses-method-li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.courses-method-li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.92rem;
  width: 0.92rem;
  height: 0.92rem;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--red), var(--sky));
  opacity: 0.85;
  box-shadow: 0 0 12px rgba(199, 0, 14, 0.35);
}

#cursos-etapas.reveal.is-visible .stage-card {
  animation: stageCardEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

#cursos-etapas.reveal.is-visible .stage-card:nth-child(2) {
  animation-delay: 0.1s;
}

#cursos-etapas.reveal.is-visible .stage-card:nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes stageCardEnter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .courses-journey__glow,
  .courses-method__glow,
  .stage-card__glow {
    animation: none;
  }

  .course-block__shine {
    display: none;
  }

  #cursos-etapas.reveal.is-visible .stage-card {
    animation: none;
  }
}

.stages-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.stage-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1rem;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

button.stage-card {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a.stage-card {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a.stage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(2, 6, 23, 0.1);
}

.stage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(2, 6, 23, 0.1);
}

.stage-card:focus-visible {
  outline: 2px solid var(--sky-dark);
  outline-offset: 2px;
}

.stage-card.is-selected {
  border-color: var(--sky-dark);
  box-shadow: 0 12px 28px rgba(30, 144, 203, 0.18);
  transform: translateY(-2px);
}

.stage-card__pill {
  margin-bottom: 0.4rem;
}

.stage-card__hint {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.stage-card__title {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}

.stage-card__text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.course-blocks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.course-block {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.25rem 1.25rem;
  background: var(--surface);
  border-left: 4px solid var(--sky-dark);
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.course-block.is-highlighted {
  border-left-color: var(--red);
  box-shadow: 0 12px 32px rgba(199, 0, 14, 0.12);
  transform: scale(1.01);
}

.courses-table tbody tr {
  transition: background 0.25s ease;
}

.courses-table tbody tr.is-highlighted {
  background: rgba(74, 108, 166, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .course-block.is-highlighted {
    transform: none;
  }
}

.course-block h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.course-block > p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.course-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sky-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: rgba(74, 108, 166, 0.14);
}

.course-block ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.course-block li + li {
  margin-top: 0.35rem;
}

.courses-table-wrap {
  overflow-x: auto;
  margin-top: 1.5rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 8px 22px var(--shadow-card);
}

.courses-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.courses-table th,
.courses-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.courses-table th {
  background: var(--soft);
  font-weight: 700;
  color: var(--navy);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.courses-table tr:last-child td {
  border-bottom: none;
}

.courses-table td {
  color: var(--muted);
}

.courses-table td strong {
  color: var(--text);
  font-weight: 600;
}

.courses-table-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.btn-price-animated {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.7rem 1.45rem;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 28px rgba(199, 0, 14, 0.42);
  transition: filter 0.2s ease, transform 0.2s ease;
  animation: priceBtnPulse 2.1s ease-in-out infinite;
}

.btn-price-animated:hover {
  filter: brightness(1.08);
  transform: translateY(-2px) scale(1.03);
}

.btn-price-animated:active {
  transform: translateY(0) scale(1);
}

@keyframes priceBtnPulse {
  0%,
  100% {
    box-shadow: 0 10px 28px rgba(199, 0, 14, 0.42);
  }
  50% {
    box-shadow: 0 14px 40px rgba(199, 0, 14, 0.55), 0 0 0 5px rgba(199, 0, 14, 0.14);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-price-animated {
    animation: none;
  }

  .btn-price-animated:hover {
    transform: none;
  }
}

@media (max-width: 640px) {
  .courses-table-head {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-price-animated {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .stages-row {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  width: 100%;
  background: var(--page-bg);
  color: var(--footer-text);
  padding: 0 0 0.85rem;
  margin-top: auto;
  transition: background 0.35s ease, color 0.25s ease;
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: clamp(1rem, 4vw, 1.5rem);
  padding-right: clamp(1rem, 4vw, 1.5rem);
}

.site-footer__hero {
  width: 100%;
  background: linear-gradient(165deg, var(--navy) 0%, #1a2c5c 55%, var(--navy) 100%);
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.12);
}

.site-footer__hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem clamp(0.9rem, 3.5vw, 1.2rem) 0.75rem;
}

.site-footer__hero-left {
  flex: 1;
  min-width: min(100%, 200px);
}

.site-footer__hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  text-align: right;
}

.site-footer__tagline {
  margin: 0.22rem 0 0;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 17rem;
  line-height: 1.38;
}

[data-theme="dark"] .site-footer__hero {
  background: linear-gradient(165deg, #0c1224 0%, #1a2040 50%, #0a1020 100%);
  box-shadow: 0 5px 20px var(--shadow-card);
}

.site-footer__logo-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 0.22rem 0.42rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.16);
}

.site-footer__logo-slot .site-footer__logo--footer {
  filter: none;
  opacity: 1;
  height: auto;
  max-height: 2.85rem;
  width: auto;
  max-width: min(190px, 54vw);
  object-fit: contain;
}

[data-theme="dark"] .site-footer__logo-slot .site-footer__logo--footer {
  filter: none;
  opacity: 1;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.site-footer__logo {
  height: 48px;
  width: auto;
  max-width: min(220px, 50vw);
  object-fit: contain;
  display: block;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.38rem;
}

.site-footer__wa-phone {
  margin: 0.12rem 0 0;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: right;
  letter-spacing: 0.02em;
  line-height: 1.28;
}

.site-footer__wa-phone a {
  color: rgba(255, 255, 255, 0.93);
  text-decoration: none;
  transition: color 0.2s ease, text-underline-offset 0.2s ease;
}

.site-footer__wa-phone a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.site-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.site-footer__social-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 5px 12px rgba(194, 48, 49, 0.32);
}

.site-footer__social-link svg {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
}

.site-footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 0.55rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__address {
  line-height: 1.45;
  max-width: 32rem;
  font-size: 0.74rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .site-footer__hero-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer__hero-right {
    align-items: flex-start;
    text-align: left;
  }

  .site-footer__wa-phone {
    text-align: left;
  }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .contact-wrap {
    grid-template-columns: 1fr;
  }

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

  .two-col {
    grid-template-columns: 1fr;
  }
}

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

[data-theme="dark"] .section--gradient {
  background: linear-gradient(
    135deg,
    #121a32 0%,
    color-mix(in srgb, var(--sky) 12%, var(--page-bg) 88%) 50%,
    var(--page-bg) 100%
  );
}

[data-theme="dark"] .section--gradient::before {
  opacity: 0.45;
}

/* Transición del hero hacia la página: en oscuro debe fundir con el fondo, no con blanco */
[data-theme="dark"] .hero--home::after,
[data-theme="dark"] .hero--page::after {
  background: linear-gradient(
    to bottom,
    rgba(11, 18, 36, 0) 0%,
    rgba(11, 18, 36, 0.5) 38%,
    rgba(11, 18, 36, 0.92) 78%,
    var(--page-bg) 100%
  );
}

[data-theme="dark"] .carousel {
  background: color-mix(in srgb, #183474 45%, #040814 55%);
  border-color: var(--line);
  box-shadow: 0 16px 40px var(--shadow-card);
}

[data-theme="dark"] .courses-subnav__inner {
  background: rgba(26, 35, 50, 0.96);
  border-color: var(--line);
}

[data-theme="dark"] .site-footer__bottom {
  color: var(--muted);
}

@media (max-width: 640px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding-top: 5.8rem;
  }

  .hero__content h1 {
    font-size: clamp(1.4rem, 5.5vw + 0.5rem, 2rem);
    line-height: 1.16;
    text-wrap: balance;
    word-break: normal;
    overflow-wrap: break-word;
  }

  [data-letter-reveal] {
    line-height: 1.16;
    word-break: normal;
    overflow-wrap: break-word;
  }

  [data-word-reveal] {
    line-height: 1.58;
  }

  .word-reveal__w {
    margin-right: 0.25em;
  }

  .section-title,
  .home-intro__title {
    font-size: clamp(1.2rem, 4vw + 0.5rem, 1.7rem);
    line-height: 1.2;
    text-wrap: balance;
    word-break: normal;
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    line-height: 1.45;
  }

  .hero .eyebrow,
  .hero__eyebrow {
    line-height: 1.4;
  }

  .hero__lead {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .text-prose,
  p.text-prose {
    line-height: 1.6;
  }

  .home-cta-card h3 {
    font-size: 1.02rem;
    line-height: 1.25;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
    gap: 0.5rem;
  }

  .hero__actions .hero-cta-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn-primary,
  .hero__actions .btn-hero-secondary,
  .hero__actions .hero__cta {
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
    line-height: 1.35;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .site-header__toolbar {
    gap: 0.25rem;
  }

  .lang-switch__btn {
    padding: 0.3rem 0.45rem;
    font-size: 0.62rem;
  }

  .theme-toggle {
    width: 2.2rem;
    height: 2.2rem;
  }

  .brand__logo {
    height: 32px;
    max-width: min(48vw, 170px);
  }

  .brand__name {
    line-height: 1.12;
  }

  .brand__word,
  .brand__word--soft {
    font-size: clamp(0.82rem, 2.4vw + 0.4rem, 0.98rem);
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .carousel__btn {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 1.1rem;
  }
}

@keyframes brandNameReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes brandNameRevealHero {
  from {
    opacity: 0;
    transform: translateY(12px);
    letter-spacing: 0.22em;
  }

  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0.06em;
  }
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes introLogoIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes marqueeScroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 16px); }
}

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

.h2-balance {
  text-wrap: balance;
}

/* Beneficios: filtros, FAQ, cifras */
.stats--lift .stat {
  animation: statLiftIn 0.65s ease both;
  animation-delay: calc(var(--i) * 0.08s);
}

.benefit-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.6rem;
  margin: 1.25rem 0 1rem;
}

.benefit-filter__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-right: 0.2rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.chip:hover {
  border-color: var(--sky);
  color: var(--sky-dark);
}

.chip.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  box-shadow: 0 4px 12px var(--shadow-card);
}

[data-theme="dark"] .chip {
  background: var(--surface);
}

[data-theme="dark"] .chip.is-active {
  background: var(--sky);
  color: #0a0d16;
  border-color: var(--sky);
}

.benefit-card--hidden {
  display: none !important;
}

[data-benefit-section].is-visible .benefit-card {
  animation: benefitCardIn 0.5s ease both;
  animation-delay: calc(var(--i) * 0.04s);
}

/* Beneficios página: lista minimal (sin tarjetas ni filtros) */
.section--benefits-minimal {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 6rem);
  overflow: hidden;
}

.section--benefits-minimal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% -20%, rgba(74, 108, 166, 0.11), transparent 55%),
    radial-gradient(ellipse 70% 40% at 100% 50%, rgba(74, 108, 166, 0.05), transparent 60%);
  opacity: 0.9;
}

[data-theme="dark"] .section--benefits-minimal::before {
  background:
    radial-gradient(ellipse 90% 55% at 50% -20%, rgba(120, 160, 220, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 40% at 100% 50%, rgba(120, 160, 220, 0.06), transparent 60%);
}

.benefits-minimal {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  margin-inline: auto;
}

.benefits-minimal__intro {
  text-align: center;
}

.benefits-minimal__title {
  margin: 0.35rem auto 0;
  max-width: min(95%, 34ch);
  font-size: clamp(1.85rem, 5vw, 2.65rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text);
}

.benefits-minimal__lead {
  margin: 1.35rem auto 0;
  max-width: 38rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 500;
}

.benefits-stack {
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
  border-top: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
}

.benefits-stack__row {
  display: grid;
  grid-template-columns: minmax(4rem, 4.75rem) 1fr;
  gap: 0.85rem clamp(1rem, 3vw, 1.85rem);
  align-items: start;
  padding: clamp(1.2rem, 2.8vw, 1.65rem) clamp(0.35rem, 2vw, 0.85rem);
  margin-inline: clamp(-0.35rem, -2vw, -0.85rem);
  border-radius: 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
}

.benefits-stack__row:last-child {
  border-bottom: none;
}

.benefits-stack__row:hover,
.benefits-stack__row:focus-within {
  background: color-mix(in srgb, var(--surface) 70%, rgba(74, 108, 166, 0.08));
  box-shadow: inset 3px 0 0 var(--sky);
}

[data-theme="dark"] .benefits-stack__row:hover,
[data-theme="dark"] .benefits-stack__row:focus-within {
  background: color-mix(in srgb, var(--surface) 55%, rgba(120, 160, 220, 0.12));
  box-shadow: inset 3px 0 0 rgba(140, 180, 235, 0.85);
}

.benefits-stack__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  min-height: 100%;
}

.benefits-stack__mark {
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  opacity: 0.16;
  user-select: none;
}

.benefits-stack__tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.benefits-stack__body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.28;
  color: var(--text);
}

.benefits-stack__body p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--muted);
}

@media (max-width: 520px) {
  .benefits-stack__row {
    grid-template-columns: 1fr;
    gap: 0.35rem 0;
    padding-inline: 0;
    margin-inline: 0;
  }

  .benefits-stack__meta {
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .benefits-stack__mark {
    font-size: 1.6rem;
    opacity: 0.22;
  }
}

.faq-block {
  scroll-margin-top: 5.5rem;
}

.container--narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.faq-accordion {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.faq-accordion__item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 4px 14px var(--shadow-card);
  padding: 0 0.15rem;
  transition: box-shadow 0.25s ease, border-color 0.2s ease;
}

.faq-accordion__item[open] {
  border-color: rgba(74, 108, 166, 0.45);
  box-shadow: 0 8px 22px var(--shadow-card);
}

.faq-accordion__item summary {
  list-style: none;
  padding: 0.95rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--navy);
}

.faq-accordion__item summary::-webkit-details-marker {
  display: none;
}

.faq-accordion__item summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--sky-dark);
  border-bottom: 2px solid var(--sky-dark);
  transform: rotate(45deg) translateY(-0.1rem);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-accordion__item[open] summary::after {
  transform: rotate(225deg) translateY(0.1rem);
}

.faq-accordion__body {
  padding: 0 1rem 1rem 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  border-top: 1px solid var(--line);
  margin: 0 0.2rem 0.25rem 0.2rem;
  padding-top: 0.75rem;
  animation: faqOpen 0.25s ease;
}

/* Contact: estado, acciones, form, mapa */
.office-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.8rem 0 0.75rem;
  min-height: 1.4rem;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.office-status__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(74, 108, 166, 0.5);
  animation: statusPulse 2.2s ease-in-out infinite;
}

.office-status--open .office-status__dot {
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.25);
  animation: none;
}

.office-status--closed .office-status__dot {
  background: #94a3b8;
  animation: none;
}

.office-status--loading .office-status__dot {
  background: var(--sky-dark);
  animation: statusPulse 1.2s ease-in-out infinite;
}

.office-status--open {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.35);
}

.office-status--closed {
  background: rgba(148, 163, 184, 0.12);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.contact-action:hover {
  border-color: var(--sky);
  background: var(--nav-hover-bg);
  transform: translateY(-1px);
}

.contact-action--link {
  text-decoration: none;
  color: inherit;
}

.contact-action__icon {
  font-size: 0.95rem;
  line-height: 1;
}

.contact-form-wrap {
  margin-top: 1.15rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.contact-form__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.25rem 0 0.85rem;
  color: var(--navy);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-row label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.contact-form .form-row input,
.contact-form .form-row select,
.contact-form .form-row textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  color: var(--text);
  background: var(--page-bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form .form-row input:focus,
.contact-form .form-row select:focus,
.contact-form .form-row textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(74, 108, 166, 0.2);
}

.contact-form__submit {
  margin-top: 0.25rem;
  align-self: flex-start;
}

.contact-form__hint {
  font-size: 0.8rem;
  margin: 0.45rem 0 0;
}

.contact-form__ok {
  font-size: 0.9rem;
  color: #15803d;
  font-weight: 600;
  margin: 0.5rem 0 0;
}

.contact-form__ok.is-shown {
  animation: formOkIn 0.45s ease;
}

.map-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
  transition: min-height 0.4s ease;
}

.map-card__expand {
  position: absolute;
  z-index: 2;
  top: 0.5rem;
  right: 0.5rem;
  border: none;
  border-radius: 10px;
  background: var(--header-bg-solid);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--shadow-card);
  font-family: inherit;
  line-height: 1.2;
  transition: transform 0.2s ease, background 0.2s ease;
}

.map-card__expand:hover {
  transform: scale(1.02);
  background: var(--surface);
}

.map-card iframe {
  display: block;
  min-height: 280px;
  height: 300px;
  width: 100%;
  border: 0;
  border-radius: 0 0 16px 16px;
  transition: min-height 0.4s ease, height 0.4s ease;
}

.map-card.is-expanded iframe {
  min-height: 480px;
  height: 65vh;
}

.map-card__label--collapse[hidden] {
  display: none;
}

.map-card__label--expand[hidden] {
  display: none;
}

.uplands-toast {
  position: fixed;
  z-index: 1000;
  bottom: 1.5rem;
  right: 1.5rem;
  left: auto;
  max-width: min(92vw, 320px);
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 30px var(--shadow-card);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.uplands-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-theme="dark"] .uplands-toast {
  background: #e2e8f0;
  color: #0a0d16;
}

@keyframes statLiftIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes benefitCardIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes faqOpen {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes formOkIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes statusPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(74, 108, 166, 0.35);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(74, 108, 166, 0);
  }
}

@media (max-width: 640px) {
  .uplands-toast {
    right: 0.75rem;
    left: 0.75rem;
    max-width: none;
  }
}

/* Beneficios: inglés, tabs, cita, CTA */
.eng-spotlight {
  position: relative;
  overflow: hidden;
}

.eng-spotlight__glow {
  position: absolute;
  width: 480px;
  height: 480px;
  right: -120px;
  top: -160px;
  background: radial-gradient(circle, rgba(74, 108, 166, 0.2) 0%, transparent 68%);
  pointer-events: none;
  animation: floatOrb 9s ease-in-out infinite;
}

.eng-spotlight__glow::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  left: -280px;
  bottom: -200px;
  background: radial-gradient(circle, rgba(199, 0, 14, 0.12) 0%, transparent 70%);
  animation: floatOrb 11s ease-in-out infinite reverse;
}

.eng-spotlight__lead {
  margin-top: 0.35rem;
}

.eng-spotlight__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
  position: relative;
  z-index: 1;
}

.eng-spot {
  --e: 0;
  position: relative;
  padding: 1.15rem 1.1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 4px 18px var(--shadow-card);
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.5s ease;
}

.eng-spot:hover {
  transform: translateY(0) scale(1.02);
  box-shadow: 0 12px 32px var(--shadow-card);
  border-color: rgba(74, 108, 166, 0.45);
}

.eng-spot h3 {
  font-size: 1.02rem;
  margin: 0.35rem 0 0.4rem;
  color: var(--navy);
}

.eng-spot__p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.eng-spot__icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--navy), var(--navy-mid));
  box-shadow: 0 4px 12px var(--shadow-card);
  transition: transform 0.35s ease, filter 0.3s ease;
}

.eng-spot__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.eng-spot:hover .eng-spot__icon {
  transform: rotate(-6deg) scale(1.05);
  filter: brightness(1.05);
}

@keyframes engSpotIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eng-spotlight.is-visible .eng-spot {
  animation: engSpotIn 0.6s ease forwards;
  animation-delay: calc(0.06s * var(--e));
}

.eng-tabs-section {
  padding-bottom: 0.5rem;
}

.eng-tabs {
  margin-top: 1.5rem;
}

.eng-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.eng-tabs__tab {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.eng-tabs__tab:hover {
  border-color: var(--sky);
  color: var(--navy);
}

.eng-tabs__tab.is-active {
  background: linear-gradient(135deg, var(--navy), #233d8a);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px var(--shadow-card);
  transform: translateY(-1px);
}

.eng-tabs__panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
  padding: 1.1rem 1.15rem;
  min-height: 7.5rem;
  animation: engTabIn 0.4s ease;
}

.eng-tabs__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
}

.eng-tabs__panel[hidden] {
  display: none;
}

@keyframes engTabIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eng-quote-strip {
  position: relative;
  overflow: hidden;
}

.eng-quote-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(24, 52, 116, 0.09), rgba(199, 0, 14, 0.06), rgba(74, 108, 166, 0.1));
  background-size: 200% 200%;
  animation: engQuoteBg 8s ease infinite;
  pointer-events: none;
}

@keyframes engQuoteBg {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.eng-quote {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.1rem 0.5rem 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

.eng-quote__en {
  font-size: clamp(1.1rem, 1.1rem + 0.4vw, 1.4rem);
  font-weight: 800;
  font-style: italic;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  line-height: 1.4;
  margin: 0 0 0.5rem;
  background: linear-gradient(100deg, var(--navy), var(--sky), var(--red-detail));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: engQuoteText 6s ease-in-out infinite;
}

.eng-quote__es {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

@keyframes engQuoteText {
  0%,
  100% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(8deg);
  }
}

.eng-cta-block {
  position: relative;
  overflow: hidden;
}

.eng-cta-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
  position: relative;
  padding: 1.75rem 1.5rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 40px var(--shadow-card);
  overflow: hidden;
}

.eng-cta-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1px;
  background: linear-gradient(130deg, var(--navy), var(--sky), var(--red));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
  animation: ctaRing 10s linear infinite;
}

@keyframes ctaRing {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

.eng-cta-card__text {
  position: relative;
  z-index: 1;
}

.eng-cta-card__deco {
  position: relative;
  width: 120px;
  height: 120px;
  margin-right: 0.5rem;
}

.eng-cta-card__ring {
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(74, 108, 166, 0.35);
  border-radius: 50%;
  animation: ctaSpin 18s linear infinite;
}

.eng-cta-card__dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(199, 0, 14, 0.2);
}

.eng-cta-card__dot--1 {
  top: 0;
  left: 50%;
  margin-left: -6px;
  animation: ctaBounce1 2.2s ease-in-out infinite;
}

.eng-cta-card__dot--2 {
  bottom: 12px;
  right: 0;
  background: var(--sky);
  box-shadow: 0 0 0 4px rgba(74, 108, 166, 0.25);
  animation: ctaBounce2 2.6s ease-in-out infinite;
}

@keyframes ctaSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ctaBounce1 {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

@keyframes ctaBounce2 {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

@media (max-width: 700px) {
  .eng-cta-card {
    grid-template-columns: 1fr;
  }

  .eng-cta-card__deco {
    margin: 0 auto 0.25rem;
  }
}

[data-theme="dark"] .eng-tabs__tab.is-active {
  background: linear-gradient(135deg, var(--sky), #5a7aad);
  color: #0a0d16;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-wrap {
    --marquee-duration: 80s;
  }

  .section--gradient::before {
    animation: none;
  }

  .carousel__track {
    transition-duration: 0.01ms;
  }

  .carousel--fade .carousel__slide,
  .carousel--fade .carousel__caption {
    transition-duration: 0.01ms !important;
  }

  .stats--lift .stat,
  [data-benefit-section].is-visible .benefit-card,
  .faq-accordion__body,
  .contact-form__ok.is-shown {
    animation: none;
  }

  .office-status__dot {
    animation: none;
  }

  .hero--beneficios::before,
  .hero--salidas::before,
  .eng-spotlight__glow,
  .eng-spotlight__glow::after,
  .eng-quote-strip::before,
  .eng-quote__en,
  .eng-cta-card::before,
  .eng-cta-card__ring,
  .eng-cta-card__dot--1,
  .eng-cta-card__dot--2 {
    animation: none;
  }

  .eng-spot {
    opacity: 1;
    transform: none;
  }

  .eng-spotlight.is-visible .eng-spot {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .eng-tabs__panel {
    animation: none;
  }
}

/* Descubrí opciones: galería y bloque de video */
.discover-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .discover-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.discover-gallery__item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px var(--shadow-card);
}

.discover-gallery__item img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.video-embed {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed--placeholder {
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(145deg, rgba(74, 108, 166, 0.12), var(--surface));
}

.video-embed__placeholder-text {
  margin: 0;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Cursos: paneles de nivel — foco circular + animaciones */
@keyframes lp-aurora {
  to {
    transform: rotate(1turn);
  }
}

@keyframes lp-shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes lp-orbit {
  to {
    transform: rotate(1turn);
  }
}

@keyframes lp-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.02);
  }
}

@keyframes lp-enter {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lp-glow-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.04);
  }
}

.levels-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(2.75rem, 6vw, 4.25rem);
  margin-top: clamp(1.35rem, 3vw, 2rem);
}

.levels-stack .level-panel {
  animation: lp-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.levels-stack .level-panel:nth-child(1) {
  animation-delay: 0.06s;
}

.levels-stack .level-panel:nth-child(2) {
  animation-delay: 0.18s;
}

.levels-stack .level-panel:nth-child(3) {
  animation-delay: 0.3s;
}

.level-panel {
  --lp-accent: var(--red);
  --lp-accent-ink: color-mix(in srgb, var(--lp-accent) 88%, #0f172a 12%);
  --lp-glow: color-mix(in srgb, var(--lp-accent) 35%, transparent);
  --lp-ring-size: min(300px, 82vw);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.level-panel__visual {
  position: relative;
  z-index: 1;
  width: var(--lp-ring-size);
  height: var(--lp-ring-size);
  margin-inline: auto;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: visible;
  isolation: isolate;
  animation: lp-float 5.5s ease-in-out infinite;
  animation-delay: inherit;
}

.level-panel:nth-child(2) .level-panel__visual {
  animation-delay: 0.4s;
}

.level-panel:nth-child(3) .level-panel__visual {
  animation-delay: 0.8s;
}

.level-panel__visual::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.2;
  border-radius: 50%;
  background: conic-gradient(
    from 200deg,
    transparent 0deg,
    color-mix(in srgb, var(--lp-accent) 60%, transparent) 70deg,
    transparent 130deg,
    color-mix(in srgb, var(--sky) 55%, transparent) 220deg,
    transparent 300deg
  );
  animation: lp-aurora 24s linear infinite;
  clip-path: circle(42% at 50% 50%);
}

.level-panel__visual::after {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: color-mix(in srgb, var(--lp-accent) 75%, transparent);
  border-right-color: color-mix(in srgb, var(--lp-accent) 35%, transparent);
  animation: lp-orbit 14s linear infinite;
  opacity: 0.85;
}

.level-panel:hover .level-panel__visual::before {
  opacity: 0.32;
}

.level-panel--teens {
  --lp-accent: #5b7ec4;
  --lp-accent-ink: #2d4a73;
}

.level-panel--adults {
  --lp-accent: #0d9488;
  --lp-accent-ink: #0b5c54;
}

.level-panel.is-highlighted {
  filter: drop-shadow(0 0 16px rgba(199, 0, 14, 0.45));
}

.level-panel.is-highlighted .level-panel__body {
  box-shadow:
    0 0 0 3px var(--red),
    0 24px 60px rgba(15, 23, 42, 0.12);
}

.level-panel__shape {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid color-mix(in srgb, var(--surface) 55%, var(--lp-accent) 45%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 18px 48px rgba(15, 23, 42, 0.18);
}

.level-panel__shape::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(75% 75% at 50% 100%, color-mix(in srgb, var(--lp-accent-ink) 45%, transparent) 0%, transparent 55%),
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.18) 0%, transparent 45%);
  pointer-events: none;
  z-index: 2;
  animation: lp-glow-pulse 4s ease-in-out infinite;
}

.level-panel__shape img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.06);
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.level-panel:hover .level-panel__shape img {
  transform: scale(1.12) rotate(2deg);
}

.level-panel__cta {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 1.2rem 0.62rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.1) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 12px 36px rgba(0, 0, 0, 0.22);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.level-panel__cta:hover {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
  transform: translateX(-50%) translateY(-3px) scale(1.04);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 18px 44px rgba(0, 0, 0, 0.18),
    0 0 36px color-mix(in srgb, var(--lp-glow) 70%, transparent);
}

.level-panel__cta-icon {
  flex-shrink: 0;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  transition: background 0.25s ease, transform 0.25s ease;
}

.level-panel__cta:hover .level-panel__cta-icon {
  background: color-mix(in srgb, var(--lp-accent) 16%, var(--line));
  transform: translateX(3px);
}

.level-panel__body {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 40rem;
  min-width: 0;
  margin: clamp(-2.75rem, -6vw, -2rem) clamp(0.35rem, 2vw, 1rem) 0;
  padding: clamp(1.5rem, 3.2vw, 2.15rem) clamp(1.45rem, 3vw, 2.1rem);
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, rgba(255, 255, 255, 0.45));
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.14) 42%, rgba(255, 255, 255, 0.06) 100%), var(--surface);
  background-blend-mode: normal, normal;
  backdrop-filter: blur(18px) saturate(165%);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 20px 50px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.level-panel__body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(85%, 280px);
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--lp-accent),
    color-mix(in srgb, var(--lp-accent) 45%, #fff),
    var(--lp-accent),
    transparent
  );
  background-size: 200% 100%;
  animation: lp-shimmer 2.8s ease-in-out infinite;
}

.level-panel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.level-panel__tag--soft {
  color: var(--muted);
  background: color-mix(in srgb, var(--line) 55%, var(--surface) 45%);
}

.level-panel__list {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.level-panel__list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.35rem;
  font-size: 0.92rem;
  line-height: 1.58;
  color: var(--muted);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
}

.level-panel__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.level-panel__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--lp-accent, var(--sky-dark));
  box-shadow: 0 0 10px color-mix(in srgb, var(--sky) 50%, transparent);
}

.course-catalog {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
}

.course-catalog__title {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lp-accent, var(--sky-dark));
}

.course-catalog__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-catalog__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.65rem;
  margin: 0 -0.65rem;
  border-radius: 0.55rem;
  transition: background 0.2s ease;
}

.course-catalog__row + .course-catalog__row {
  border-top: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
}

.course-catalog__row:hover {
  background: color-mix(in srgb, var(--lp-accent, var(--sky)) 8%, var(--surface) 92%);
}

.course-catalog__name {
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.course-catalog__meta {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--muted);
  text-align: right;
}

@media (max-width: 520px) {
  .course-catalog__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .course-catalog__meta {
    text-align: left;
  }
}

.courses-journey .levels-stack {
  margin-top: 1.75rem;
}

.courses-method-list--inline {
  margin-top: 1rem;
}

/* Metodología v2 — pilares */
.courses-method-v2 {
  position: relative;
  overflow: hidden;
  padding-top: 2.75rem;
  padding-bottom: 3rem;
}

.courses-method-v2__glow {
  pointer-events: none;
  position: absolute;
  inset: -15% -5%;
  background:
    radial-gradient(ellipse 45% 40% at 20% 30%, rgba(30, 144, 203, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 35% at 80% 70%, rgba(199, 0, 14, 0.1), transparent 50%);
  animation: coursesJourneyPulse 8s ease-in-out infinite alternate;
  z-index: 0;
}

.courses-method-v2__container {
  position: relative;
  z-index: 1;
}

.courses-method-v2__head {
  max-width: 38rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.courses-method-v2__head .section-title {
  margin-bottom: 0.65rem;
}

.courses-method-v2__lead {
  margin: 0 auto;
}

.method-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-pillar {
  position: relative;
  margin: 0;
  padding: 1.35rem 1.25rem 1.3rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 10px 28px var(--shadow-card);
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.method-pillar__glow {
  pointer-events: none;
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 200deg,
    transparent,
    rgba(30, 144, 203, 0.2),
    rgba(199, 0, 14, 0.15),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.method-pillar:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--sky) 40%, var(--line));
  box-shadow: 0 18px 40px rgba(30, 144, 203, 0.14);
}

.method-pillar:hover .method-pillar__glow {
  opacity: 0.7;
}

.method-pillar:nth-child(2):hover {
  border-color: color-mix(in srgb, var(--navy) 35%, var(--line));
  box-shadow: 0 18px 40px rgba(74, 108, 166, 0.16);
}

.method-pillar:nth-child(3):hover {
  border-color: color-mix(in srgb, var(--red) 35%, var(--line));
  box-shadow: 0 18px 40px rgba(199, 0, 14, 0.12);
}

.method-pillar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  margin-bottom: 0.85rem;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(30, 144, 203, 0.16), rgba(199, 0, 14, 0.1));
  color: var(--navy);
  position: relative;
  z-index: 1;
}

.method-pillar__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.method-pillar__tag {
  display: block;
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky-dark);
  margin-bottom: 0.45rem;
}

.method-pillar__text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--muted);
  font-weight: 500;
}

.courses-method-v2__cta-wrap {
  margin: 2rem 0 0;
  text-align: center;
}

#cursos-metodologia.reveal.is-visible .method-pillar {
  animation: stageCardEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

#cursos-metodologia.reveal.is-visible .method-pillar:nth-child(2) {
  animation-delay: 0.08s;
}

#cursos-metodologia.reveal.is-visible .method-pillar:nth-child(3) {
  animation-delay: 0.16s;
}

#cursos-metodologia.reveal.is-visible .method-pillar:nth-child(4) {
  animation-delay: 0.24s;
}

@media (min-width: 640px) {
  .method-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
  }
}

@media (min-width: 1024px) {
  .method-pillars {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }

  .method-pillar {
    min-height: 13.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .method-pillar:hover {
    transform: none;
  }

  .method-pillar__glow {
    display: none;
  }

  #cursos-metodologia.reveal.is-visible .method-pillar {
    animation: none;
  }
}

.level-panel__tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 0.45rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--lp-accent) 92%, var(--navy));
  background: color-mix(in srgb, var(--lp-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--lp-accent) 22%, var(--line));
}

.level-panel__title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.55rem, 1.4vw + 1.05rem, 2.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  background: linear-gradient(118deg, var(--navy) 0%, var(--navy) 38%, var(--lp-accent) 72%, color-mix(in srgb, var(--lp-accent) 65%, #fff) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.level-panel__lead {
  margin: 0 0 1.15rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
}

.level-panel__dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.05rem;
}

.level-panel__tile {
  padding: 1rem 1.15rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, var(--lp-accent) 12%);
  background: color-mix(in srgb, var(--surface) 88%, var(--lp-accent) 12%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.level-panel__tile:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 14px 32px rgba(15, 23, 42, 0.1);
}

.level-panel__tile + .level-panel__tile {
  padding-left: 1.05rem;
  border-left-width: 1px;
}

.level-panel__tile-title {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--lp-accent) 85%, var(--navy));
}

.level-panel__tile-p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.58;
  color: var(--muted);
}

.level-panel__detail {
  margin: 0;
  padding-top: 1.05rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 92%, var(--lp-accent) 8%);
  font-size: 0.92rem;
  line-height: 1.68;
  color: var(--muted);
}

[data-theme="dark"] .level-panel__body {
  border-color: color-mix(in srgb, var(--line) 70%, rgba(255, 255, 255, 0.08));
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.55) 100%), var(--surface);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 20px 50px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .level-panel__title {
  background: linear-gradient(118deg, var(--text) 0%, var(--text) 35%, var(--lp-accent) 78%, color-mix(in srgb, var(--lp-accent) 70%, #fff) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .level-panel__tile {
  background: color-mix(in srgb, var(--surface) 82%, var(--lp-accent) 18%);
  border-color: color-mix(in srgb, var(--line) 75%, var(--lp-accent) 25%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

[data-theme="dark"] .level-panel__cta {
  border-color: rgba(255, 255, 255, 0.35);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(15, 23, 42, 0.35) 100%);
}

[data-theme="dark"] .level-panel__cta:hover {
  background: #fff;
  color: var(--navy);
}

@media (min-width: 900px) {
  .level-panel {
    --lp-ring-size: min(300px, 32vw);
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: clamp(1.5rem, 3.5vw, 2.75rem);
    width: 100%;
    max-width: 100%;
    padding: clamp(1.35rem, 2.8vw, 2rem) clamp(1.25rem, 3vw, 2.25rem);
    border-radius: 64px;
    overflow: visible;
    background: linear-gradient(
      145deg,
      color-mix(in srgb, var(--surface) 88%, var(--lp-accent) 12%) 0%,
      var(--surface) 55%,
      var(--surface) 100%
    );
    border: 1px solid color-mix(in srgb, var(--line) 78%, var(--lp-accent) 22%);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.55) inset,
      0 26px 70px rgba(15, 23, 42, 0.11),
      0 8px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
  }

  .level-panel--media-end {
    flex-direction: row-reverse;
  }

  .level-panel:hover {
    transform: translateY(-5px);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.6) inset,
      0 34px 88px rgba(15, 23, 42, 0.13),
      0 12px 30px rgba(15, 23, 42, 0.08);
  }

  .level-panel__visual {
    margin-inline: 0;
  }

  .level-panel__body {
    margin: 0;
    flex: 1 1 min(0, 28rem);
    max-width: min(28rem, 100%);
    border-radius: 48px;
    padding: clamp(1.5rem, 2.8vw, 2rem) clamp(1.5rem, 3vw, 2.1rem);
  }

  .level-panel__cta {
    bottom: 11%;
  }
}

@media (max-width: 899px) {
  .level-panel__body {
    margin-inline: 0.35rem;
    margin-top: clamp(-2.5rem, -8vw, -1.85rem);
    padding: 1.35rem 1.25rem 1.45rem;
    border-radius: 40px;
  }

  .level-panel__dual {
    grid-template-columns: 1fr;
  }

  .level-panel__tile {
    border-radius: 28px;
  }
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .level-panel__title {
    background: none;
    color: var(--navy);
    -webkit-text-fill-color: unset;
  }

  [data-theme="dark"] .level-panel__title {
    color: var(--text);
  }
}

@media (prefers-reduced-motion: reduce) {
  .levels-stack .level-panel,
  .level-panel__visual,
  .level-panel__visual::before,
  .level-panel__visual::after,
  .level-panel__body::before,
  .level-panel__shape::after {
    animation: none;
  }

  .level-panel:hover .level-panel__visual::before {
    opacity: 0.18;
  }

  .level-panel__shape img,
  .level-panel__cta,
  .level-panel__cta-icon,
  .level-panel__tile {
    transition: none;
  }

  .level-panel:hover .level-panel__shape img,
  .level-panel:hover {
    transform: none;
  }

  .level-panel__tile:hover {
    transform: none;
  }

  .level-panel__cta:hover {
    transform: translateX(-50%);
  }

  .level-panel__cta:hover .level-panel__cta-icon {
    transform: none;
  }
}

/* Cursos — planes, valores y WhatsApp */
.courses-offer__head {
  margin-bottom: 2rem;
}

.courses-offer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.course-offer {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.35rem 1.4rem 1.5rem;
  border-radius: var(--radius-lg, 1rem);
  background: var(--surface-elevated, #fff);
  border: 1px solid rgba(15, 22, 48, 0.08);
  box-shadow: var(--shadow-card, 0 10px 32px rgba(15, 22, 48, 0.08));
}

.course-offer__title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--text-strong, #0f1630);
}

.course-offer__text {
  margin: 0;
  color: var(--text-muted, #5a6478);
  line-height: 1.55;
}

.course-offer__meta {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.course-offer__meta div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.65rem;
  align-items: baseline;
}

.course-offer__meta dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-navy, #183474);
}

.course-offer__meta dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted, #5a6478);
}

.course-offer__list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted, #5a6478);
}

.course-offer__list li + li {
  margin-top: 0.35rem;
}

.course-offer__price {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--brand-navy, #183474);
}

.course-offer__action {
  margin-top: auto;
  padding-top: 0.65rem;
}

.course-offer__prices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.course-offer__price-btn {
  font-size: 0.88rem;
  padding: 0.62rem 0.95rem;
  white-space: nowrap;
}

.course-offer__price-btn--wide {
  width: 100%;
  justify-content: center;
}

.course-offer--adults {
  border-top: 4px solid var(--brand-navy, #183474);
}

.course-offer--kids {
  border-top: 4px solid #4a6ca6;
}

.course-offer--private {
  border-top: 4px solid var(--brand-red, #c7000e);
}

.course-offer--exams {
  border-top: 4px solid #25d366;
}

.courses-offer__benefits {
  margin-top: 2rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg, 1rem);
  background: rgba(24, 52, 116, 0.06);
  border: 1px solid rgba(24, 52, 116, 0.1);
}

.courses-offer__benefits-title {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-navy, #183474);
}

.courses-offer__benefits-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.courses-offer__benefits-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--text-muted, #5a6478);
  font-size: 0.92rem;
  line-height: 1.45;
}

.courses-offer__benefits-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-red, #c7000e);
  font-weight: 700;
}

.courses-offer__cta {
  margin-top: 1.75rem;
  text-align: center;
}

.btn-primary--wa-lg {
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
}

@media (max-width: 960px) {
  .courses-offer__grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .course-offer__meta div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .course-offer__prices {
    flex-direction: column;
  }

  .course-offer__price-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .courses-offer__benefits-list {
    grid-template-columns: 1fr;
  }
}

[data-theme="dark"] .course-offer {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .courses-offer__benefits {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Home — video band (cierre, sin sonido) */
.home-video-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(2.25rem, 5vw, 3.25rem);
  background: linear-gradient(
    180deg,
    var(--surface) 0%,
    color-mix(in srgb, var(--sky) 8%, var(--ivory) 92%) 45%,
    color-mix(in srgb, var(--navy) 6%, var(--surface) 94%) 100%
  );
}

.home-video-band__glow {
  position: absolute;
  inset: 10% -15% auto;
  height: min(420px, 55vh);
  background:
    radial-gradient(ellipse 50% 45% at 15% 40%, rgba(199, 0, 14, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 55% 50% at 85% 30%, rgba(74, 108, 166, 0.2) 0%, transparent 58%);
  pointer-events: none;
  animation: homeVideoGlow 9s ease-in-out infinite alternate;
}

@keyframes homeVideoGlow {
  0% {
    opacity: 0.7;
    transform: translateY(0);
  }
  100% {
    opacity: 1;
    transform: translateY(10px);
  }
}

.home-video-band__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 1.25rem;
}

.home-video-band__title {
  margin: 0.35rem 0 0;
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy, #183474);
}

.home-video-band__frame {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  margin: 0 auto;
  aspect-ratio: 21 / 9;
  min-height: 200px;
  max-height: min(52vh, 420px);
  border-radius: 0;
  overflow: hidden;
  background: #0f1630;
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.06) inset,
    0 24px 60px rgba(15, 22, 48, 0.2);
  transform: scale(0.98);
  opacity: 0;
  animation: homeVideoEnter 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

@media (min-width: 768px) {
  .home-video-band__frame {
    border-radius: 20px;
    width: calc(100% - 2rem);
  }
}

@keyframes homeVideoEnter {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.home-video-band__el {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-video-band__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(15, 22, 48, 0.08) 0%,
    transparent 35%,
    transparent 65%,
    rgba(15, 22, 48, 0.18) 100%
  );
}

.home-video-band__shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 60%
  );
  transform: translateX(-130%);
  animation: homeVideoShine 5.5s ease-in-out 1s infinite;
}

@keyframes homeVideoShine {
  0%,
  60% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(130%);
  }
}

.home-video-band__caption {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted, #5a6478);
}

@media (max-width: 640px) {
  .home-video-band__frame {
    aspect-ratio: 16 / 10;
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-video-band__glow,
  .home-video-band__frame,
  .home-video-band__shine {
    animation: none !important;
  }

  .home-video-band__frame {
    opacity: 1;
    transform: none;
  }
}

/* —— Viaje Inglaterra 2028: aviso, botón flotante y página —— */
body.england-promo-lock {
  overflow: hidden;
}

.england-promo {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.england-promo[hidden] {
  display: none !important;
}

.england-promo__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 36, 0.72);
  backdrop-filter: blur(6px);
}

.england-promo__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(88vh, 820px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  animation: englandPromoIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes englandPromoIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.england-promo__close {
  align-self: flex-end;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  color: #fffff5;
  background: #c7000e;
  box-shadow: 0 10px 24px rgba(199, 0, 14, 0.35);
}

.england-promo__close:hover,
.england-promo__close:focus-visible {
  background: #9a0b0c;
}

.england-promo__link {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(8, 12, 30, 0.45);
  line-height: 0;
}

.england-promo__img {
  width: 100%;
  height: auto;
  max-height: min(78vh, 720px);
  object-fit: contain;
  background: #1d2d6b;
}

.england-float[hidden] {
  display: none !important;
}
  right: 1rem;
  bottom: 1.15rem;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.05rem 0.72rem 0.78rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: #fffff5;
  background: linear-gradient(135deg, #1d2d6b 0%, #2b3e8c 55%, #c23031 160%);
  box-shadow: 0 14px 32px rgba(29, 45, 107, 0.42);
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}

.england-float.is-visible {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.england-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(29, 45, 107, 0.5);
}

.england-float__flag {
  width: 1.35rem;
  height: 0.9rem;
  border-radius: 2px;
  flex-shrink: 0;
  background:
    linear-gradient(#fff 0 0) center / 100% 18% no-repeat,
    linear-gradient(#fff 0 0) center / 18% 100% no-repeat,
    linear-gradient(#c8102e 0 0) center / 100% 32% no-repeat,
    linear-gradient(#c8102e 0 0) center / 32% 100% no-repeat,
    #012169;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

body[data-page="england"] {
  --england-navy: #1d2d6b;
  --england-coral: #e36a62;
}

.hero--england::after {
  display: none;
}

.hero--england {
  background: #12204a;
  isolation: isolate;
  overflow: hidden;
}

.england-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.england-hero__bg {
  display: block;
  width: 100%;
  height: 118%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.12);
  animation: englandKenBurns 24s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes englandKenBurns {
  from {
    transform: scale(1.08) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.2) translate3d(0, -3%, 0);
  }
}

.hero--england::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(15, 22, 48, 0.62) 0%,
      rgba(29, 45, 107, 0.38) 46%,
      rgba(12, 18, 40, 0.55) 100%
    ),
    radial-gradient(ellipse 70% 55% at 48% 40%, rgba(227, 106, 98, 0.18) 0%, transparent 62%);
  pointer-events: none;
  z-index: 1;
}

.england-hero__copy {
  animation: englandHeroCopy 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

@keyframes englandHeroCopy {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.england-hero__kicker {
  font-family: Montserrat, "Plus Jakarta Sans", sans-serif;
  font-size: 0.42em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e36a62;
  -webkit-text-fill-color: #e36a62;
  animation: englandPulseText 2.8s ease-in-out infinite;
}

@keyframes englandPulseText {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.25);
  }
}

.england-hero__place {
  font-family: Montserrat, "Plus Jakarta Sans", sans-serif;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: none;
  color: #fff;
  -webkit-text-fill-color: #fff;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.england-hero__actions {
  justify-content: center;
  margin-top: 1.25rem;
}

.england-hero__actions .btn-primary {
  animation: englandCtaPulse 2.4s ease-in-out infinite;
}

@keyframes englandCtaPulse {
  0%,
  100% {
    box-shadow: 0 12px 26px rgba(199, 0, 14, 0.32);
  }
  50% {
    box-shadow: 0 16px 36px rgba(199, 0, 14, 0.55);
  }
}

.england-hero__tear {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 34px;
  z-index: 3;
  pointer-events: none;
  background: var(--page-bg);
  clip-path: polygon(
    0 40%,
    4% 100%,
    8% 55%,
    12% 100%,
    18% 48%,
    24% 100%,
    30% 62%,
    36% 100%,
    42% 50%,
    50% 100%,
    58% 45%,
    66% 100%,
    74% 58%,
    82% 100%,
    90% 52%,
    96% 100%,
    100% 42%,
    100% 100%,
    0 100%
  );
}

.england-film {
  overflow: hidden;
  background: #0f1630;
  border-bottom: 3px solid #c7000e;
}

.england-film__track {
  display: flex;
  width: max-content;
  gap: 0.45rem;
  padding: 0.45rem 0;
  animation: englandFilm 42s linear infinite;
}

.england-film__track img {
  height: 110px;
  width: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

@keyframes englandFilm {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.england-film:hover .england-film__track {
  animation-play-state: paused;
}

.england-include-list {
  margin: 1.1rem 0 0;
  padding: 0 0 0 1.15rem;
  color: var(--muted);
  line-height: 1.65;
}

.england-include-list li + li {
  margin-top: 0.45rem;
}

.england-trips {
  padding: 0 0 2.5rem;
}

.england-trips .container {
  margin-bottom: 1rem;
}

.england-trips__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0 0.85rem;
  max-width: 1180px;
  margin: 0 auto;
}

.england-shot {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 240px;
  isolation: isolate;
  box-shadow: 0 18px 40px rgba(15, 22, 48, 0.18);
}

.england-shot img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.7s ease;
}

.england-shot:hover img {
  transform: scale(1.12);
}

.england-shot__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.2rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(10, 16, 36, 0.88));
  color: #fffff5;
  z-index: 1;
}

.england-shot__label span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e36a62;
  font-weight: 800;
}

.england-shot__label strong {
  font-size: 1.35rem;
  font-family: Montserrat, "Plus Jakarta Sans", sans-serif;
}

.england-lon-lead {
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.england-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 0 1.75rem;
}

.england-mosaic__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  min-height: 160px;
}

.england-mosaic__item--wide {
  grid-column: span 2;
}

.england-mosaic__item img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.england-mosaic__item--wide img {
  height: 230px;
}

.england-mosaic__item:hover img {
  transform: scale(1.08);
}

.england-mosaic__item figcaption {
  position: absolute;
  left: 0.7rem;
  bottom: 0.65rem;
  margin: 0;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 22, 48, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.england-act-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.england-act {
  padding: 0 0 1.05rem;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--navy) 12%, var(--line));
  box-shadow: 0 16px 36px var(--shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.england-act:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(29, 45, 107, 0.18);
}

.england-act__photo {
  overflow: hidden;
  height: 140px;
  margin-bottom: 0.95rem;
}

.england-act__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.england-act:hover .england-act__photo img {
  transform: scale(1.1);
}

.england-act h3 {
  margin: 0 1.15rem 0.7rem;
  font-size: 1.02rem;
  color: #e36a62;
}

.england-act ul {
  margin: 0 1.15rem 0;
  padding: 0 0 0 1.05rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.england-act li + li {
  margin-top: 0.4rem;
}

.england-pay-card {
  margin-top: 1.25rem;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, #2b3e8c 28%, var(--line));
  background: var(--surface);
  box-shadow: 0 20px 48px var(--shadow-card);
}

.england-pay-card__head {
  display: grid;
  gap: 0.15rem;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(135deg, #1d2d6b, #2b3e8c);
  color: #fffff5;
  background-size: 160% 160%;
  animation: englandPayShift 8s ease-in-out infinite;
}

@keyframes englandPayShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.england-pay-card__head span,
.england-pay-card__head em {
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.88;
}

.england-pay-card__head strong {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
}

.england-table-wrap {
  overflow-x: auto;
}

.england-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.england-table th,
.england-table td {
  padding: 0.65rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.england-table thead th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: color-mix(in srgb, #4a6ca6 10%, var(--surface));
}

.england-table tbody tr {
  transition: background 0.2s ease;
}

.england-table tbody tr:hover {
  background: color-mix(in srgb, #e36a62 12%, var(--surface));
}

.england-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, #4a6ca6 7%, var(--surface));
}

.england-table tfoot th {
  background: color-mix(in srgb, #1d2d6b 14%, var(--surface));
  color: var(--navy);
  font-weight: 800;
}

.england-eta-link-wrap {
  margin: 0.85rem 0 0;
}

.england-eta-link {
  font-weight: 700;
  color: var(--navy);
}

.england-cond-stack {
  display: grid;
  gap: 0.85rem;
}

.england-excluded {
  margin: 1.75rem 0 0;
  padding: 1.25rem 1.2rem;
  border-radius: 18px;
  border: 1px dashed color-mix(in srgb, var(--red) 35%, var(--line));
  background: color-mix(in srgb, var(--red) 6%, var(--surface));
}

.england-excluded h3 {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
}

.england-excluded ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: var(--muted);
}

.england-excluded li + li {
  margin-top: 0.35rem;
}

.england-insc-card {
  grid-template-columns: minmax(0, 0.9fr) 1.2fr;
  overflow: hidden;
  padding: 0;
}

.england-insc-card .exams-wa-card__copy {
  padding: 1.5rem 1.4rem 1.5rem 0.4rem;
}

.england-insc-card__photo {
  min-height: 180px;
  overflow: hidden;
}

.england-insc-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
  animation: englandKenBurns 18s ease-in-out infinite alternate;
}

.england-insc-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.england-insc-social {
  margin: 1rem 0 0;
  font-weight: 700;
}

.england-insc-social a {
  color: var(--navy);
}

.england-float.is-visible {
  animation: englandFloatBob 2.8s ease-in-out infinite;
}

@keyframes englandFloatBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 900px) {
  .england-trips__grid,
  .england-mosaic {
    grid-template-columns: 1fr 1fr;
  }

  .england-mosaic__item--wide {
    grid-column: span 2;
  }

  .england-insc-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .england-act-grid {
    grid-template-columns: 1fr;
  }

  .england-promo__dialog {
    max-height: 92vh;
  }

  .england-film__track img {
    height: 84px;
  }
}

@media (max-width: 560px) {
  .england-trips__grid {
    grid-template-columns: 1fr;
  }

  .england-mosaic {
    grid-template-columns: 1fr;
  }

  .england-mosaic__item--wide {
    grid-column: span 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .england-promo__dialog,
  .england-float,
  .england-hero__bg,
  .england-hero__copy,
  .england-hero__kicker,
  .england-hero__actions .btn-primary,
  .england-film__track,
  .england-pay-card__head,
  .england-insc-card__photo img,
  .england-float.is-visible {
    animation: none !important;
    transition: none !important;
  }
}

html:has(body[data-page="salidas"]),
body[data-page="salidas"] {
  overflow: hidden;
  height: 100%;
}

.salidas-progress {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: rgba(8, 12, 28, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.salidas-progress__mark {
  margin: 0;
  font-family: Montserrat, "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(2.4rem, 11vw, 7.2rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fffff5;
  text-align: center;
  user-select: none;
  animation: salidasProgressPulse 3.2s ease-in-out infinite;
}

@keyframes salidasProgressPulse {
  0%,
  100% {
    opacity: 0.72;
    letter-spacing: 0.1em;
  }
  50% {
    opacity: 1;
    letter-spacing: 0.16em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .salidas-progress__mark {
    animation: none;
  }
}
