/* ═══════════════════════════════════════════════════════════════════════
   FUNDACIÓN HDEA · Identidad institucional rediseñada y premium
   Blanco · Rojo · Azul Rey
   Diseño: Limpio, Fluido, Moderno con Microinteracciones Premium
   ═════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Paleta institucional refinada ───────────────────────────── */
  --azul:          #1741A6;
  --azul-deep:     #0D2B7A;
  --azul-mid:      #2558CC;
  --azul-light:    #EEF3FF;
  --azul-tint:     #F0F4FF;
  --rojo:          #CC1020;
  --rojo-deep:     #A30C1A;
  --rojo-soft:     #E8152A;
  --blanco:        #FFFFFF;
  --gris-f:        #F8FAFC;
  --gris-e:        #E2E8F0;
  --tinta:         #0F172A;
  --tinta-soft:    #334155;
  --tinta-muted:   #64748B;
  --linea:         rgba(23, 65, 166, 0.08);
  --linea-fuerte:  rgba(23, 65, 166, 0.16);

  /* ── Tipografía ─────────────────────────────────────────────── */
  --serif:   'Sora', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --display: 'Sora', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* ── Espaciado fluido (Cálculo áureo) ───────────────────────── */
  --s1: clamp(.5rem,  .4vw + .4rem,  .75rem);
  --s2: clamp(.75rem, .6vw + .6rem,  1rem);
  --s3: clamp(.9rem,  .8vw + .7rem,  1.25rem);
  --s4: clamp(1.25rem, 1.5vw + .85rem, 2rem);
  --s5: clamp(1.75rem, 2.2vw + .85rem, 3rem);
  --s6: clamp(2.25rem, 3.2vw + 1rem, 4.5rem);
  --s7: clamp(3rem,   5vw + 1.5rem,  6rem);

  /* ── Variables de diseño ────────────────────────────────────── */
  --radius-sm:   8px;
  --radius:      16px;
  --radius-lg:   32px;
  --radius-pill: 9999px;
  --container:   1180px;
  --container-n: 880px;
  --ease: cubic-bezier(.25, 1, .5, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* ── Sombras Premium Tridimensionales ────────────────────────── */
  --shadow-sm:   0 2px 8px rgba(13, 27, 62, 0.04);
  --shadow:      0 16px 40px -10px rgba(13, 27, 62, 0.08), 0 4px 12px -2px rgba(13, 27, 62, 0.03);
  --shadow-lg:   0 32px 64px -16px rgba(13, 27, 62, 0.16), 0 8px 24px -4px rgba(13, 27, 62, 0.06);
  --shadow-rojo: 0 12px 28px -8px rgba(204, 16, 32, 0.35);
  --shadow-azul: 0 12px 28px -8px rgba(23, 65, 166, 0.35);
}

/* ═══ RESET & BASE ═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; height: 100%; overflow-x: hidden; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; object-fit: cover; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; transition: all .25s var(--ease); }
a { color: inherit; text-decoration: none; transition: all .25s var(--ease); }
ul { list-style: none; }
input, textarea, select { font: inherit; color: inherit; outline: none; }
::selection { background: var(--azul-mid); color: var(--blanco); }

/* Accesibilidad */
.skip-link {
  position: absolute; top: -100px; left: 24px;
  background: var(--tinta); color: var(--blanco);
  padding: 12px 24px; border-radius: var(--radius-sm);
  transition: top .3s var(--ease); z-index: 1000;
  box-shadow: var(--shadow-lg);
  font-weight: 600;
}
.skip-link:focus { top: 24px; }
:focus-visible { outline: 3px solid var(--rojo); outline-offset: 3px; border-radius: var(--radius-sm); }


/* ═══ ESTRUCTURA Y CONTENEDORES ═════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 3rem);
}
.container--n { max-width: var(--container-n); }

/* ═══ TIPOGRAFÍA EDITORIAL ══════════════════════════════════════════════ */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  color: var(--tinta);
}
h2 {
  font-size: clamp(1.65rem, 2.4vw + .55rem, 2.55rem);
  line-height: 1.15;
}
h3 {
  font-size: clamp(1.1rem, .7vw + .95rem, 1.45rem);
  line-height: 1.25;
  letter-spacing: 0;
}

em {
  font-style: normal;
  font-family: var(--display);
  color: var(--rojo);
  font-weight: 900;
  position: relative;
  display: inline-block;
}
em::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 6px;
  background: rgba(204, 16, 32, 0.08);
  z-index: -1;
  border-radius: 2px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 700;
  color: var(--azul-mid);
}
.eyebrow__dot {
  width: 8px;
  height: 8px;
  background: var(--rojo);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(204, 16, 32, 0.2);
}

.section-num {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .85rem;
  color: var(--rojo);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
}
.section-head {
  margin-bottom: var(--s5);
  max-width: 800px;
}
.section-head h2 { margin-bottom: 16px; }
.section-lead {
  font-size: clamp(1.05rem, .5vw + .95rem, 1.25rem);
  color: var(--tinta-soft);
  max-width: 680px;
  line-height: 1.6;
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center .section-lead {
  margin-inline: auto;
}
.section-head--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s4);
  max-width: 100%;
}
.section-head--split .section-lead {
  max-width: 440px;
  margin-bottom: 4px;
}
@media (max-width: 820px) {
  .section-head--split { flex-direction: column; align-items: flex-start; }
}

/* ═══ BOTONES E INTERACTIVIDAD ══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
  z-index: -1;
  border-radius: inherit;
}
.btn:hover {
  transform: translateY(-3px);
}
.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}
.btn:active {
  transform: translateY(-1px);
}

.btn--rojo {
  background: var(--rojo);
  color: var(--blanco);
  box-shadow: var(--shadow-rojo);
}
.btn--rojo:hover {
  background: var(--rojo-deep);
  box-shadow: 0 16px 32px -6px rgba(204, 16, 32, 0.5);
}
.btn--azul {
  background: var(--azul);
  color: var(--blanco);
  box-shadow: var(--shadow-azul);
}
.btn--azul:hover {
  background: var(--azul-deep);
  box-shadow: 0 16px 32px -6px rgba(23, 65, 166, 0.5);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--blanco);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn--ghost-dark {
  background: transparent;
  color: var(--azul);
  border: 1.5px solid var(--linea-fuerte);
}
.btn--ghost-dark:hover {
  background: var(--azul-light);
  border-color: var(--azul-mid);
}
.btn--block {
  width: 100%;
  padding-block: 16px;
}

/* ═══ TICKER DIARIOS (Informativo continuo) ═════════════════════════════ */
.ticker {
  background: var(--rojo);
  color: var(--blanco);
  padding: 10px 0;
  overflow: hidden;
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.ticker__track {
  display: inline-flex;
  gap: 60px;
  white-space: nowrap;
  animation: ticker 32s linear infinite;
  padding-left: 60px;
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ═══ MENU NAVEGACIÓN STICKY & GLASSMORPHIC ════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 43, 122, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(13, 27, 62, 0.96);
  box-shadow: var(--shadow-lg);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px clamp(1.25rem, 4vw, 2.5rem);
  max-width: var(--container);
  margin-inline: auto;
}

/* Estilo Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.logo__img-wrap {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 22px -12px rgba(0, 0, 0, 0.65);
  transition: transform .4s var(--ease);
}
.logo__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}
.logo:hover .logo__img-wrap {
  transform: scale(1.04);
}
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo__text strong {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--blanco);
  letter-spacing: 0;
}
.logo__text em {
  font-family: var(--sans);
  font-style: normal;
  font-size: .68rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 3px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
}
.logo__text em::after { display: none; } /* Remover línea decorativa en logo */

/* Menú de links */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  margin-right: var(--s4);
}
.nav__menu a {
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  font-size: .92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
}
.nav__menu a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 18px;
  right: 18px;
  height: 2.5px;
  background: var(--rojo);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.nav__menu a:hover {
  color: var(--blanco);
  background: rgba(255, 255, 255, 0.08);
}
.nav__menu a:hover::after {
  transform: scaleX(1);
}
.nav__menu a.active {
  color: var(--blanco);
  background: rgba(255, 255, 255, 0.12);
}
.nav__menu a.active::after {
  transform: scaleX(1);
}

.nav__cta {
  padding: 10px 22px;
  font-size: .9rem;
}

/* Botón Móvil */
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--blanco);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

@media (max-width: 990px) {
  .nav__menu {
    position: fixed;
    inset: 74px 0 0 0;
    height: calc(100vh - 74px);
    background: var(--azul-deep);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s4) clamp(1.5rem, 5vw, 3rem);
    margin: 0;
    transform: translateY(-115%);
    transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-lg);
    z-index: 99;
    overflow-y: auto;
  }
  .nav__menu.is-open {
    transform: translateY(0);
  }
  .nav__menu a {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.85rem;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    color: var(--blanco);
  }
  .nav__menu a::after { display: none; }
  .nav__menu a:hover {
    background: transparent;
    color: var(--rojo);
  }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}
@media (max-width: 520px) {
  .logo__img-wrap {
    width: 52px;
    height: 52px;
  }
  .logo__text strong {
    font-size: .95rem;
  }
  .logo__text em {
    font-size: .58rem;
  }
}

/* ═══ HERO SECTION (Elegante & Confiable) ══════════════════════════════ */
.hero {
  position: relative;
  background: #071836;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: 0;
}
.hero::before {
  display: none;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(1.04) contrast(1.05);
}
.hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 12, 32, 0.88) 0%, rgba(8, 31, 72, 0.72) 48%, rgba(8, 31, 72, 0.28) 100%),
    linear-gradient(180deg, rgba(2, 8, 24, 0.08) 0%, rgba(7, 24, 54, 0.46) 74%, #f8fafc 100%);
  pointer-events: none;
}

/* Onda decorativa de transición */
.hero__wave {
  display: none;
}

.hero__grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.05fr .9fr;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
  max-width: var(--container);
  min-height: clamp(500px, 66vh, 640px);
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2.5rem, 5vw, 4.5rem);
}
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.hero__eyebrow span {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.hero__title {
  font-family: var(--display);
  font-size: clamp(2.1rem, 3vw + .9rem, 3.65rem);
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 900;
  color: var(--blanco);
  margin-bottom: 18px;
}
.hero__title em {
  color: var(--rojo);
  font-weight: 600;
}
.hero__title em::after {
  background: rgba(255, 255, 255, 0.15);
}

.hero__lead {
  font-size: clamp(1rem, .25vw + .95rem, 1.12rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
  max-width: 540px;
  margin-bottom: var(--s3);
}
@media (max-width: 960px) {
  .hero__lead { margin-inline: auto; }
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: var(--s4);
}
@media (max-width: 960px) {
  .hero__actions { justify-content: center; }
}

/* Fotos Grid Hero */
.hero__visual {
  position: relative;
}

.hero-photo-card {
  justify-self: end;
  width: min(100%, 430px);
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--linea-fuerte);
  background: var(--blanco);
  box-shadow: var(--shadow);
}
.hero-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}
.hero-photo-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: var(--tinta);
}
.hero-photo-card figcaption span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--azul-light);
  color: var(--azul-deep);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero-photo-card figcaption strong {
  color: var(--tinta-soft);
  font-size: .86rem;
  line-height: 1.35;
  text-align: right;
}

.hero__admission-card,
.hero-guide {
  justify-self: end;
  width: min(100%, 390px);
  padding: clamp(1rem, 1.4vw, 1.35rem);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--blanco);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 24px 70px -34px rgba(2, 8, 23, 0.88);
  backdrop-filter: blur(18px) saturate(1.1);
}
.hero__card-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.hero__admission-card h2,
.hero-guide h2 {
  margin-bottom: 6px;
  color: var(--blanco);
  font-size: clamp(1.25rem, 1vw + .95rem, 1.65rem);
  line-height: 1.14;
}
.hero__admission-card p,
.hero-guide p {
  color: rgba(255, 255, 255, 0.78);
  font-size: .9rem;
  line-height: 1.45;
  margin-bottom: 14px;
}

.hero-lead-form label,
.hero-lead-form fieldset {
  display: block;
  margin: 0 0 10px;
}
.hero-lead-form label span,
.hero-lead-form legend {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.82);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-lead-form input,
.hero-lead-form select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--tinta);
  font-size: .9rem;
  outline: none;
}
.hero-lead-form input::placeholder {
  color: rgba(15, 23, 42, 0.55);
}
.hero-lead-form input:focus,
.hero-lead-form select:focus {
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}
.hero-lead-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hero-lead-form__contact {
  border: 0;
  padding: 0;
}
.hero-lead-form__contact label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  margin: 0 5px 6px 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: .82rem;
  font-weight: 700;
}
.hero-lead-form__contact input,
.hero-lead-form__policy input {
  width: auto;
  min-height: auto;
  padding: 0;
  accent-color: var(--rojo);
}
.hero-lead-form__policy {
  display: flex !important;
  align-items: flex-start;
  gap: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: .75rem;
  line-height: 1.35;
}
.hero-lead-form__policy span {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.btn--ghost-light {
  background: var(--blanco);
  color: var(--azul-deep);
  border: 1px solid var(--linea-fuerte);
  box-shadow: none;
}
.btn--ghost-light:hover {
  background: var(--azul-light);
  border-color: var(--azul-mid);
}
.btn--portal {
  background: rgba(255, 255, 255, 0.12);
  color: var(--blanco);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}
.btn--portal:hover {
  background: var(--blanco);
  color: var(--azul-deep);
  border-color: var(--blanco);
}
.hero__photos {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  border-radius: var(--radius-lg);
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}
.hero__photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__photo--tall {
  grid-row: span 2;
  aspect-ratio: 3.2/4;
}
.hero__photo--sq {
  aspect-ratio: 1.1/1;
}
.hero__photo:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px -8px rgba(13, 27, 62, 0.4);
  z-index: 4;
}
.hero__badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--rojo);
  color: var(--blanco);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-rojo);
}

@media (max-width: 960px) {
  .hero__visual { max-width: 520px; margin-inline: auto; margin-top: var(--s3); }
  .hero__admission-card,
  .hero-guide { justify-self: center; text-align: left; }
  .hero-photo-card {
    justify-self: center;
  }
}
@media (max-width: 560px) {
  .hero__grid {
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }
  .hero-lead-form__grid {
    grid-template-columns: 1fr;
  }
}

/* Rutas rapidas */
.quick-routes {
  padding-block: clamp(2.25rem, 4vw, 4.25rem);
  background: var(--gris-f);
  border-bottom: 1px solid var(--linea);
  overflow: hidden;
}
.quick-routes__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}
.quick-routes__head {
  position: static;
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}
.quick-routes__head h2 {
  margin-bottom: 14px;
  max-width: 620px;
  margin-inline: auto;
}
.quick-routes__head p {
  color: var(--tinta-soft);
  line-height: 1.65;
  max-width: 620px;
  margin-inline: auto;
}
.quick-routes__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.quick-route {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(1.1rem, 1.5vw, 1.35rem);
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--radius-sm);
  background: var(--blanco);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.quick-route:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 88, 204, 0.28);
  box-shadow: var(--shadow);
}
.quick-route__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--azul);
  background: var(--azul-light);
}
.quick-route__icon svg {
  width: 22px;
  height: 22px;
}
.quick-route__label {
  width: fit-content;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  background: rgba(23, 65, 166, 0.08);
  color: var(--azul-deep);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.quick-route h3 {
  font-size: clamp(1.05rem, .65vw + .92rem, 1.32rem);
  color: var(--azul-deep);
}
.quick-route p {
  color: var(--tinta-soft);
  line-height: 1.58;
}
.quick-route a {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--rojo);
  font-weight: 800;
}
.quick-route a:hover {
  color: var(--rojo-deep);
  transform: translateX(3px);
}
.quick-route--accent {
  background: linear-gradient(135deg, var(--azul-deep), var(--azul));
  color: var(--blanco);
  border-color: transparent;
}
.quick-route--accent .quick-route__icon,
.quick-route--portal .quick-route__icon {
  color: var(--blanco);
  background: rgba(255, 255, 255, 0.14);
}
.quick-route--accent .quick-route__label,
.quick-route--portal .quick-route__label {
  background: rgba(255, 255, 255, 0.14);
  color: var(--blanco);
}
.quick-route--accent h3,
.quick-route--portal h3,
.quick-route--accent p,
.quick-route--portal p {
  color: var(--blanco);
}
.quick-route--accent a,
.quick-route--portal a {
  color: var(--blanco);
}
.quick-route--portal {
  background: #0B1120;
  color: var(--blanco);
  border-color: rgba(255, 255, 255, 0.12);
}
@media (max-width: 980px) {
  .quick-routes__inner {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .quick-routes__grid {
    grid-template-columns: 1fr;
  }
  .quick-route {
    min-height: auto;
  }
}

/* Ajustes home institucional */
.hero {
  background: #071836;
  border-bottom: 0;
}
.hero__grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 370px);
  min-height: clamp(500px, 64vh, 620px);
  padding-top: clamp(1.75rem, 3vw, 2.75rem);
  padding-bottom: clamp(2rem, 3vw, 3rem);
}
.hero__eyebrow span {
  color: rgba(255, 255, 255, 0.86);
}
.hero__title {
  max-width: 620px;
  color: var(--blanco);
  font-size: clamp(1.9rem, 2.2vw + .9rem, 3.1rem);
}
.hero__title em {
  color: var(--rojo);
  font-weight: 900;
}
.hero__title em::after {
  background: rgba(255, 255, 255, 0.14);
}
.hero__lead {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.86);
}
.hero .btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--blanco);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: none;
}
.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.55);
}
.hero__admission-card,
.hero-guide {
  width: min(100%, 370px);
  background: var(--blanco);
  color: var(--tinta);
  border-color: var(--linea-fuerte);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}
.hero__card-kicker {
  background: var(--azul-light);
  color: var(--azul-deep);
}
.hero__admission-card h2,
.hero-guide h2 {
  color: var(--azul-deep);
}
.hero__admission-card p,
.hero-guide p {
  color: var(--tinta-soft);
}
.hero-guide__steps {
  display: grid;
  gap: 12px;
  margin: 18px 0 18px;
  list-style: none;
}
.hero-guide__steps li {
  padding: 0 0 12px 18px;
  border-bottom: 1px solid var(--linea);
  position: relative;
}
.hero-guide__steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--rojo);
}
.hero-guide__steps li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.hero-guide__steps strong,
.hero-guide__steps span {
  display: block;
}
.hero-guide__steps strong {
  color: var(--tinta);
  font-size: .96rem;
}
.hero-guide__steps span {
  margin-top: 3px;
  color: var(--tinta-soft);
  font-size: .88rem;
  line-height: 1.45;
}
.hero-lead-form label span,
.hero-lead-form legend {
  color: var(--tinta-soft);
}
.hero-lead-form input,
.hero-lead-form select {
  background: var(--gris-f);
  border-color: var(--gris-e);
  color: var(--tinta);
}
.hero-lead-form input:focus,
.hero-lead-form select:focus {
  border-color: var(--azul-mid);
  box-shadow: 0 0 0 4px rgba(37, 88, 204, 0.12);
}
.hero-lead-form__contact label {
  background: var(--azul-light);
  color: var(--azul-deep);
}
.hero-lead-form__policy {
  color: var(--tinta-soft);
}
.quick-routes {
  background: var(--blanco);
}
.quick-route {
  min-height: 230px;
}
.graduation-feature {
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 4vw, 2.5rem);
  background: var(--blanco);
}
.graduation-feature__link {
  position: relative;
  display: block;
  width: min(100%, 1040px);
  height: clamp(210px, 24vw, 320px);
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--linea-fuerte);
  box-shadow: var(--shadow-sm);
  color: var(--blanco);
}
.graduation-feature__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(1.02) contrast(1.02);
  transition: transform .7s var(--ease);
}
.graduation-feature__link:hover img {
  transform: scale(1.03);
}
.graduation-feature__overlay {
  position: absolute;
  inset: auto clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem);
  max-width: 520px;
  display: grid;
  gap: 10px;
  z-index: 2;
}
.graduation-feature__link::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 16, 44, 0.78) 0%, rgba(4, 16, 44, 0.46) 46%, rgba(4, 16, 44, 0.1) 100%),
    linear-gradient(180deg, transparent 42%, rgba(4, 16, 44, 0.72) 100%);
}
.graduation-feature__overlay small {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.graduation-feature__overlay strong {
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.4vw + .7rem, 2rem);
  line-height: 1.08;
  letter-spacing: 0;
}
.graduation-feature__overlay em {
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--rojo);
  color: var(--blanco);
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 800;
}
.graduation-feature__overlay em::after {
  display: none;
}
@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero__lead {
    margin-inline: 0;
  }
  .hero__actions {
    justify-content: flex-start;
  }
  .hero__admission-card,
  .hero-guide {
    justify-self: stretch;
  }
}
@media (max-width: 560px) {
  .hero__grid {
    padding-top: 1.35rem;
  }
  .graduation-feature__overlay {
    inset: auto 1rem 1.25rem;
  }
}

/* ═══ MANIFIESTO (Estilo Editorial Premium) ═════════════════════════════ */
.manifiesto {
  padding-block: 0;
  background: #071836;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--blanco);
}
.manifiesto__divider {
  position: relative;
  width: min(1080px, calc(100% - 40px));
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.22), transparent);
  z-index: 2;
}
.manifiesto__bg {
  position: absolute;
  inset: 1px 0 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.manifiesto__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 24, 54, 0.92) 0%, rgba(7, 24, 54, 0.78) 46%, rgba(7, 24, 54, 0.45) 100%),
    linear-gradient(180deg, rgba(7, 24, 54, 0.2) 0%, rgba(7, 24, 54, 0.74) 100%);
}
.manifiesto__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.96) contrast(1.02);
  transform: scale(1.02);
}
.manifiesto__body {
  position: relative;
  min-height: clamp(430px, 50vw, 560px);
  display: flex;
  align-items: center;
  padding-block: clamp(3.5rem, 7vw, 5.75rem);
}
.manifiesto__copy {
  max-width: 780px;
  margin: 0;
}
.manifiesto__title {
  font-size: clamp(1.45rem, 1.8vw + .55rem, 2.25rem);
  line-height: 1.2;
  margin-block: 0 var(--s4);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--blanco);
}
.manifiesto__title em {
  color: #FF324A;
}
.manifiesto__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}
.manifiesto__cols p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.75;
}
@media (max-width: 768px) {
  .manifiesto__cols { grid-template-columns: 1fr; gap: 20px; }
  .manifiesto__body {
    min-height: 520px;
    align-items: end;
  }
  .manifiesto__bg::after {
    background:
      linear-gradient(180deg, rgba(7, 24, 54, 0.3) 0%, rgba(7, 24, 54, 0.9) 58%, rgba(7, 24, 54, 0.96) 100%);
  }
}

/* ═══ PROGRAMAS (Bento Grid Dinámico) ════════════════════════════════════ */
.programas {
  padding-block: var(--s6);
  background: var(--gris-f);
}
.programas__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.8rem);
}
@media (max-width: 1024px) { .programas__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .programas__grid { grid-template-columns: 1fr; } }

/* Tarjetas */
.card-prog {
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-height: 260px;
  transition: transform .4s var(--ease), border-color .3s var(--ease), box-shadow .4s var(--ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.card-prog:focus-visible {
  outline: 3px solid var(--rojo);
  outline-offset: 4px;
}
.card-prog__img-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: var(--gris-e);
}
.card-prog__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.card-prog:hover .card-prog__img-wrap img {
  transform: scale(1.06);
}
.card-prog__content {
  padding: clamp(1.25rem, 2vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.card-prog__content::before {
  content: "";
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgba(23, 65, 166, 0.14), rgba(232, 21, 42, 0.08));
  box-shadow: inset 0 0 0 1px rgba(23, 65, 166, 0.08);
}
.card-prog::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--rojo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.card-prog:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(23, 65, 166, 0.2);
}
.card-prog:hover::after {
  transform: scaleX(1);
}

.card-prog h3 {
  font-size: 1.3rem;
  color: var(--tinta);
  font-weight: 700;
}
.card-prog p {
  color: var(--tinta-soft);
  font-size: .96rem;
  line-height: 1.6;
  flex: 1;
}
.card-prog__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: .75rem;
  color: var(--tinta-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
}
.card-prog__meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
}
.card-prog__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--azul-mid);
  margin-top: 6px;
}
.card-prog__link svg {
  transition: transform .3s var(--ease);
}
.card-prog:hover .card-prog__link svg {
  transform: translateX(6px);
}

/* Tarjeta Heroica (Estilista Barbería) */
.card-prog--hero {
  background: radial-gradient(circle at 100% 0%, rgba(23, 65, 166, 0.3) 0%, transparent 60%),
              linear-gradient(135deg, var(--azul-deep) 0%, var(--azul) 100%);
  border-color: var(--azul);
  color: var(--blanco);
}
.card-prog--hero h3 { color: var(--blanco); }
.card-prog--hero p { color: rgba(255, 255, 255, 0.85); }
.card-prog--hero .card-prog__meta { color: rgba(255, 255, 255, 0.65); }
.card-prog--hero .card-prog__link { color: var(--blanco); }
.card-prog--hero::after { background: var(--rojo); }

.program-modal {
  position: fixed;
  inset: 0;
  z-index: 450;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
}
.card-prog--hero .card-prog__content::before {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.program-modal.is-open {
  display: flex;
}
.program-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 32, 0.68);
  backdrop-filter: blur(10px);
  animation: modal-fade .28s var(--ease) both;
}
.program-modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, .82fr) 1fr;
  width: min(760px, 100%);
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: 0 28px 90px -28px rgba(2, 8, 23, 0.65);
  transform-origin: top left;
}
.program-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: var(--tinta);
  font-size: 1.4rem;
  line-height: 1;
}
.program-modal__close:hover {
  background: var(--rojo);
  color: var(--blanco);
}
.program-modal__media {
  min-height: 100%;
  background: var(--azul-deep);
}
.program-modal__media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}
.program-modal__body {
  padding: clamp(1.3rem, 3vw, 2.3rem);
}
.program-modal__kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--rojo);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.program-modal h3 {
  margin-bottom: 10px;
  color: var(--azul-deep);
  font-size: clamp(1.5rem, 1.8vw + .8rem, 2.25rem);
}
.program-modal p {
  margin-bottom: 16px;
  color: var(--tinta-soft);
  line-height: 1.6;
}
.program-modal ul {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}
.program-modal li {
  position: relative;
  padding-left: 22px;
  color: var(--tinta);
  font-weight: 600;
}
.program-modal li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--rojo);
}
.program-modal__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (max-width: 720px) {
  .program-modal__panel {
    grid-template-columns: 1fr;
    max-height: min(86vh, 760px);
    overflow-y: auto;
  }
  .program-modal__media img {
    min-height: 210px;
    max-height: 260px;
  }
}

/* ═══ CURSOS CORTOS (Moderno & Glassmorphic) ════════════════════════════ */
.cursos {
  padding-block: var(--s6);
  background: radial-gradient(circle at 10% 90%, rgba(23, 65, 166, 0.3) 0%, transparent 60%),
              linear-gradient(135deg, var(--azul-deep) 0%, #0F2052 100%);
  color: var(--blanco);
}
.cursos h2 { color: var(--blanco); }
.cursos h2 em { color: #ffd6da; }
.cursos h2 em::after { background: rgba(255, 255, 255, 0.1); }
.cursos .section-num { color: #ffccd1; }
.cursos .section-lead { color: rgba(255, 255, 255, 0.8); }

.cursos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 1.5vw, 1.5rem);
}
@media (max-width: 1100px) { .cursos__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .cursos__grid { grid-template-columns: 1fr; } }

.card-curso {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease);
}
.card-curso__img-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.03);
}
.card-curso__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.card-curso:hover .card-curso__img-wrap img {
  transform: scale(1.06);
}
.card-curso__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.card-curso:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--rojo);
  transform: translateY(-6px);
}
.card-curso__tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--rojo);
  color: var(--blanco);
  margin-bottom: 4px;
  box-shadow: var(--shadow-rojo);
}
.card-curso h3 {
  font-size: 1.3rem;
  color: var(--blanco);
  font-weight: 700;
}
.card-curso p {
  font-size: .92rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  flex: 1;
}
.card-curso__dur {
  margin-top: 12px;
  font-size: .74rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
}
.card-curso__link {
  margin-top: 12px;
  font-size: .92rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}
.card-curso:hover .card-curso__link {
  color: var(--blanco);
  text-decoration-color: var(--rojo);
}
.card-curso--soft {
  background: transparent;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.2);
}
.card-curso--soft .card-curso__tag {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

/* ═══ BACHILLERATO (Limpio & Convincente) ═══════════════════════════════ */
.bachillerato {
  padding-block: var(--s6);
  background: var(--blanco);
}
.bachillerato__inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .bachillerato__inner { grid-template-columns: 1fr; }
}

.bachillerato__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4.8/5.5;
  box-shadow: var(--shadow-lg);
}
.bachillerato__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.bachillerato__visual:hover img {
  transform: scale(1.03);
}
.bachillerato__tag {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--azul);
}
.bachillerato__tag strong {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--azul-deep);
  display: block;
}
.bachillerato__tag span {
  font-size: .75rem;
  color: var(--tinta-soft);
  margin-top: 3px;
  display: block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.bachillerato__content h2 { margin-block: 12px var(--s3); }
.bachillerato__lead {
  font-size: 1.15rem;
  color: var(--tinta-soft);
  line-height: 1.65;
  margin-bottom: var(--s4);
}
.bachillerato__list {
  margin-bottom: var(--s4);
  display: grid;
  gap: 14px;
}
.bachillerato__list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 1.05rem;
  color: var(--tinta-soft);
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--linea-fuerte);
}
.bachillerato__list li:last-child { border-bottom: 0; }
.bachillerato__list span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: var(--azul-mid);
  color: var(--blanco);
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: var(--shadow-azul);
}

/* ═══ ESTADÍSTICAS (Puntos Fuertes) ══════════════════════════════════════ */
.stats {
  padding-block: var(--s6);
  background: linear-gradient(135deg, var(--azul-deep) 0%, var(--azul) 100%);
  color: var(--blanco);
}
.stats h2 { color: var(--blanco); }
.stats .section-num { color: rgba(255, 255, 255, 0.6); }

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
  margin-top: var(--s5);
}
@media (max-width: 900px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
}
@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr; }
}

.stat {
  text-align: center;
  padding: var(--s3) 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform .3s var(--ease);
}
.stat:last-child { border-right: 0; }
.stat:hover {
  transform: translateY(-4px);
}
@media (max-width: 900px) {
  .stat { border-right: 0; padding-bottom: var(--s3); }
  .stat:not(:last-child) { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
}

.stat strong {
  font-family: var(--display);
  font-style: normal;
  font-weight: 800;
  font-size: clamp(2.4rem, 4.2vw + .5rem, 4.35rem);
  line-height: 1;
  color: var(--blanco);
  letter-spacing: 0;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
}
.stat strong i {
  font-style: normal;
  font-size: .5em;
  margin-left: 2px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--sans);
  font-weight: 600;
}
.stat > span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-left: -4px;
}
.stat p {
  font-size: .98rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  margin-top: 10px;
}

/* ═══ TESTIMONIOS (Historias con Alma) ══════════════════════════════════ */
.testimonios {
  padding-block: var(--s6);
}
.testimonios__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  align-items: stretch;
}
@media (max-width: 960px) {
  .testimonios__grid { grid-template-columns: 1fr; gap: 24px; }
}

.testimonio {
  background: var(--gris-f);
  border: 1px solid var(--linea);
  border-radius: var(--radius);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.testimonio:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.testimonio__mark {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--linea-fuerte);
  background: var(--blanco);
  color: var(--azul-deep);
  box-shadow: var(--shadow-sm);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .04em;
}
.testimonio blockquote {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.55;
  position: relative;
  padding-top: 14px;
  color: var(--tinta-soft);
}
.testimonio blockquote::before {
  content: "\201c";
  position: absolute;
  top: -24px;
  left: -8px;
  font-size: 4.5rem;
  color: var(--azul);
  font-family: var(--serif);
  font-style: italic;
  line-height: 1;
  opacity: 0.25;
}
.testimonio figcaption {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--linea-fuerte);
}
.testimonio figcaption strong {
  font-family: var(--serif);
  font-weight: 700;
  display: block;
  font-size: 1.05rem;
  color: var(--tinta);
}
.testimonio figcaption span {
  font-size: .8rem;
  color: var(--tinta-muted);
  font-weight: 600;
}

/* Tarjeta destacada central */
.testimonio--feature {
  background: linear-gradient(135deg, var(--azul-deep) 0%, var(--azul) 100%);
  border-color: var(--azul);
  color: var(--blanco);
  transform: scale(1.03) translateY(-4px);
  box-shadow: var(--shadow);
}
.testimonio--feature:hover {
  transform: scale(1.03) translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.testimonio--feature blockquote { color: var(--blanco); }
.testimonio--feature blockquote::before { color: rgba(255, 255, 255, 0.4); opacity: 0.35; }
.testimonio--feature figcaption { border-color: rgba(255, 255, 255, 0.15); }
.testimonio--feature figcaption strong { color: var(--blanco); }
.testimonio--feature figcaption span { color: rgba(255, 255, 255, 0.7); }
.testimonio--feature .testimonio__mark {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--blanco);
}

@media (max-width: 960px) {
  .testimonio--feature { transform: none !important; }
}

/* ═══ GALERÍA BENTO (FOTOS REALES HDEA) ═════════════════════════════════ */
.galeria {
  padding-block: var(--s6);
  background: var(--gris-f);
}
.galeria__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
}
@media (max-width: 960px) {
  .galeria__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
}
@media (max-width: 480px) {
  .galeria__grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 27, 62, 0.75), transparent 60%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.gallery-item::before {
  content: "Zoom 🔍";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  color: var(--blanco);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: 0;
  z-index: 5;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
  pointer-events: none;
  background: var(--rojo);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-rojo);
}

.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-item:hover::after {
  opacity: 1;
}
.gallery-item:hover::before {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.gallery-item--tall { grid-row: span 2; }
.gallery-item--wide { grid-column: span 2; }

@media (max-width: 960px) {
  .gallery-item--tall { grid-row: span 1; }
  .gallery-item--wide { grid-column: span 1; }
}

/* ═══ FAQ SECTION (Acordeón Auténtico) ══════════════════════════════════ */
.faq {
  padding-block: var(--s6);
}
.faq__list {
  display: grid;
  gap: 0;
}
.faq details {
  border-bottom: 1px solid var(--linea-fuerte);
}
.faq details:first-child {
  border-top: 1px solid var(--linea-fuerte);
}
.faq summary {
  font-family: var(--serif);
  font-size: clamp(1.15rem, .5vw + .95rem, 1.45rem);
  font-weight: 600;
  padding: 24px 8px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--tinta);
  transition: color .3s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover {
  color: var(--azul-mid);
}

.faq__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--azul-light);
  position: relative;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  background: var(--azul-mid);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.faq__icon::before { width: 12px; height: 2.5px; }
.faq__icon::after  { width: 2.5px; height: 12px; }

.faq details[open] .faq__icon {
  background: var(--rojo);
  transform: rotate(135deg);
}
.faq details[open] .faq__icon::before,
.faq details[open] .faq__icon::after {
  background: var(--blanco);
}
.faq details p {
  padding: 0 8px 28px 8px;
  font-size: 1.02rem;
  color: var(--tinta-soft);
  line-height: 1.7;
  max-width: 760px;
}

/* ═══ CONTACTO & FORMULARIO DE CONVERSIÓN ═══════════════════════════════ */
.contacto {
  padding-block: var(--s6);
  background: radial-gradient(circle at 90% 10%, rgba(204, 16, 32, 0.15) 0%, transparent 60%),
              linear-gradient(135deg, var(--azul-deep) 0%, #0F2052 100%);
  color: var(--blanco);
  position: relative;
  overflow: hidden;
}

.contacto__inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) {
  .contacto__inner { grid-template-columns: 1fr; }
}

.contacto h2 { color: var(--blanco); margin-block: 12px var(--s3); }
.contacto h2 em { color: #ffd6da; }
.contacto h2 em::after { background: rgba(255, 255, 255, 0.1); }
.contacto .section-num { color: #ffccd1; }
.contacto__lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.65;
  margin-bottom: var(--s4);
}

.contacto__data {
  display: grid;
  gap: var(--s2);
}
.contacto__data li {
  padding-top: var(--s3);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: .98rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}
.contacto__data strong {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  margin-bottom: 6px;
}
.contacto__data a {
  color: var(--blanco);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}
.contacto__data a:hover {
  color: var(--blanco);
  text-decoration-color: var(--rojo);
}
.contacto__data .map-link {
  display: inline-grid;
  gap: 6px;
  text-decoration: none;
}
.contacto__data .map-link span {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--blanco);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.contacto__data .map-link:hover span {
  background: var(--rojo);
  transform: translateY(-1px);
}

/* El Formulario */
.contacto__form {
  background: var(--blanco);
  color: var(--tinta);
  border-radius: var(--radius-lg);
  padding: var(--s5);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
@media (max-width: 540px) {
  .contacto__form { padding: var(--s3); }
}
.contacto__form h3 {
  font-size: 1.45rem;
  margin-bottom: 8px;
  color: var(--azul-deep);
}
.form-help {
  font-size: .92rem;
  color: var(--tinta-soft);
  margin-bottom: var(--s3);
}
.contacto__form label {
  display: block;
  margin-bottom: 18px;
}
.contacto__form label span {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--tinta-soft);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.contacto__form input,
.contacto__form select,
.contacto__form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gris-e);
  border-radius: var(--radius-sm);
  background: var(--gris-f);
  font-size: .95rem;
  color: var(--tinta);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.contacto__form input:focus,
.contacto__form select:focus,
.contacto__form textarea:focus {
  border-color: var(--azul-mid);
  background: var(--blanco);
  box-shadow: 0 0 0 4px rgba(37, 88, 204, 0.12);
}
.contacto__form textarea {
  resize: vertical;
  min-height: 90px;
}
.contacto__form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23334155' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 42px;
}
.form-foot {
  margin-top: 14px;
  font-size: .78rem;
  color: var(--tinta-muted);
  text-align: center;
  line-height: 1.5;
}

/* ═══ FOOTER ════════════════════════════════════════════════════════════ */
.footer {
  background: #0B1120;
  color: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: var(--s4);
  padding-block: var(--s5);
}
@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}
@media (max-width: 480px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__brand { grid-column: span 1; }
}

.footer__brand p {
  margin-top: 16px;
  font-size: .94rem;
  max-width: 320px;
  line-height: 1.65;
}
.footer__brand .logo__text strong { color: var(--blanco); }
.footer__brand .logo__text em { color: rgba(255, 255, 255, 0.45); }
.footer__brand .logo__img-wrap {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 999px;
  padding: 5px;
}
.footer__col h4 {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: var(--sans);
  color: var(--blanco);
  margin-bottom: 18px;
  font-weight: 700;
}
.footer__col a {
  display: block;
  padding: 6px 0;
  font-size: .92rem;
  color: rgba(255, 255, 255, 0.7);
}
.footer__col a:hover {
  color: var(--rojo);
  transform: translateX(3px);
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: 20px;
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-size: .8rem;
}
.footer__bottom-inner a {
  color: rgba(204, 16, 32, 0.9);
  font-weight: 600;
}
.footer__bottom-inner a:hover {
  text-decoration: underline;
}

/* ═══ WHATSAPP FLOATING BUTTON (Con Anillo de Pulso) ═══════════════════ */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  box-shadow: 0 12px 30px -4px rgba(37, 211, 102, 0.5);
  z-index: 99;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.wa-float svg {
  width: 30px;
  height: 30px;
}
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid #25D366;
  animation: pulse-ring 2s infinite var(--ease-in-out);
  z-index: -1;
  pointer-events: none;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

.wa-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 36px -4px rgba(37, 211, 102, 0.65);
}
@media (max-width: 600px) {
  .wa-float { bottom: 20px; right: 20px; width: 54px; height: 54px; }
  .wa-float svg { width: 26px; height: 26px; }
}

/* ═══ LIGHTBOX DE GALERÍA (Premium Fullscreen) ════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 17, 32, 0.97);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  z-index: 1000;
  cursor: zoom-out;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fade-in .3s var(--ease);
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox.is-open {
  display: flex;
}
.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform .4s var(--ease);
}
.lightbox.is-open img {
  transform: scale(1);
}
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  background: var(--blanco);
  color: var(--tinta);
  border-radius: 50%;
  font-size: 2.2rem;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
}
.lightbox__close:hover {
  background: var(--rojo);
  color: var(--blanco);
}

/* ═══ INTERACTION REVEAL (Efectos de Scroll) ═══════════════════════════ */
.reveal, .reveal-up, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0;
  filter: blur(10px);
  transition:
    opacity .9s cubic-bezier(.2, .8, .2, 1),
    transform .9s cubic-bezier(.2, .8, .2, 1),
    filter .9s cubic-bezier(.2, .8, .2, 1);
  will-change: opacity, transform, filter;
}
.reveal, .reveal-up {
  transform: translateY(44px) scale(.985);
}
.reveal-left {
  transform: translateX(-68px) scale(.985);
}
.reveal-right {
  transform: translateX(68px) scale(.985);
}
.reveal-scale {
  transform: translateY(20px) scale(.94);
}

.reveal.is-visible, 
.reveal-up.is-visible, 
.reveal-left.is-visible, 
.reveal-right.is-visible, 
.reveal-scale.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate(0) scale(1);
}
.card-prog.reveal-up,
.card-curso.reveal-up,
.quick-route.reveal-up,
.quick-route.reveal-left,
.quick-route.reveal-right,
.testimonio.reveal-up,
.faq details.reveal-up {
  transition-duration: .86s;
  transition-timing-function: cubic-bezier(.16, 1, .3, 1);
}
.card-prog.is-visible,
.card-curso.is-visible,
.quick-route.is-visible {
  animation: reveal-lift .86s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes reveal-lift {
  0% { box-shadow: none; }
  60% { box-shadow: 0 22px 48px -28px rgba(13, 27, 62, 0.28); }
  100% { box-shadow: var(--shadow-sm); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal, .reveal-up, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* Pagina Quienes Somos */
.about-page {
  position: relative;
  overflow: hidden;
  padding-block: calc(var(--s6) + 50px) var(--s5);
  background:
    linear-gradient(180deg, rgba(240, 244, 255, 0.72) 0%, rgba(255, 255, 255, 0) 42%),
    var(--blanco);
}
.about-page::after {
  content: "";
  position: absolute;
  inset: auto -8% -18% -8%;
  height: 30%;
  background: var(--gris-f);
  clip-path: polygon(0 42%, 50% 0, 100% 42%, 100% 100%, 0 100%);
  z-index: 0;
}
.about-page__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
}
.about-page__content {
  max-width: 640px;
  min-width: 0;
}
.about-page__kicker {
  margin-bottom: 12px;
  color: var(--tinta);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.about-page h1 {
  color: var(--azul-deep);
  font-size: clamp(2.15rem, 2.6vw + 1rem, 3.55rem);
  line-height: 1.04;
  max-width: 660px;
  overflow-wrap: break-word;
}
.about-page h1::after {
  content: "";
  display: block;
  width: min(225px, 48%);
  height: 3px;
  margin-block: 20px 0;
  background: var(--rojo);
  border-radius: var(--radius-pill);
}
.about-page__content p {
  color: var(--tinta-soft);
  font-size: 1rem;
  line-height: 1.68;
}
.about-page__intro {
  margin-top: 20px;
  font-size: clamp(1.02rem, .45vw + .95rem, 1.18rem) !important;
}
.about-page__promise {
  display: grid;
  gap: 4px;
  margin-block: 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--rojo);
  background: var(--gris-f);
}
.about-page__promise strong {
  color: var(--azul-deep);
  font-size: 1rem;
}
.about-page__promise span {
  color: var(--tinta-soft);
}
.about-page__list {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}
.about-page__list li {
  position: relative;
  padding-left: 30px;
}
.about-page__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .48em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rojo);
  box-shadow: 0 0 0 6px rgba(204, 16, 32, 0.09);
}
.about-page__list strong,
.about-page__list span {
  display: block;
}
.about-page__list strong {
  color: var(--tinta);
  font-weight: 800;
}
.about-page__list span {
  color: var(--tinta-soft);
  line-height: 1.65;
}
.about-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.about-page__actions .btn {
  min-width: min(100%, 220px);
}
.about-page__media {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.about-photo {
  position: relative;
  overflow: hidden;
  min-height: clamp(500px, 52vw, 660px);
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  background: var(--gris-e);
}
.about-photo img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: 50% 100%;
  filter: saturate(1.06) contrast(1.03);
  transform: scale(1.9);
}
.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(4, 16, 44, 0.72) 100%);
  pointer-events: none;
}
.about-photo figcaption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}
.about-photo figcaption strong {
  color: var(--azul-deep);
  font-size: 1rem;
}
.about-photo figcaption span {
  color: var(--tinta-soft);
  font-size: .92rem;
  line-height: 1.45;
}
.about-page__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.about-page__stats div {
  padding: 16px 14px;
  border: 1px solid var(--linea);
  border-radius: var(--radius-sm);
  background: var(--blanco);
  box-shadow: var(--shadow-sm);
}
.about-page__stats strong,
.about-page__stats span {
  display: block;
}
.about-page__stats strong {
  color: var(--azul-deep);
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.5vw, 1.9rem);
  line-height: 1;
}
.about-page__stats span {
  margin-top: 6px;
  color: var(--tinta-muted);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.about-pillars {
  padding-block: var(--s6);
  background: var(--gris-f);
}
.about-pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.about-pillar {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 250px;
  padding: clamp(1.2rem, 2.4vw, 2rem);
  border: 1px solid var(--linea);
  border-radius: var(--radius-sm);
  background: var(--blanco);
  box-shadow: var(--shadow-sm);
}
.about-pillar span {
  color: var(--rojo);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.about-pillar h3 {
  color: var(--azul-deep);
}
.about-pillar p {
  color: var(--tinta-soft);
  line-height: 1.65;
}
@media (max-width: 1020px) {
  .about-page__inner {
    grid-template-columns: 1fr;
  }
  .about-page__content {
    max-width: 760px;
  }
  .about-page__media {
    max-width: 720px;
  }
  .about-photo {
    min-height: clamp(380px, 76vw, 620px);
  }
  .about-pillars__grid {
    grid-template-columns: 1fr;
  }
  .about-pillar {
    min-height: auto;
  }
}
@media (max-width: 620px) {
  .about-page {
    padding-block: calc(var(--s6) + 12px) var(--s5);
  }
  .about-page__inner {
    display: block;
  }
  .about-page__content,
  .about-page__media {
    width: 100%;
    max-width: 100%;
  }
  .about-page__content {
    max-width: 330px;
  }
  .about-page__media {
    margin-top: 32px;
  }
  .about-page h1 {
    max-width: 100%;
    font-size: clamp(1.8rem, 8vw, 2.05rem);
    line-height: 1.12;
  }
  .about-page__content p,
  .about-page__list span {
    overflow-wrap: anywhere;
  }
  .about-page__content p {
    font-size: .96rem;
    line-height: 1.62;
  }
  .about-page__list strong {
    font-size: .98rem;
  }
  .about-page__actions .btn {
    width: 100%;
  }
  .about-photo {
    min-height: 430px;
  }
  .about-photo figcaption {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .about-page__stats {
    grid-template-columns: 1fr;
  }
}
