/* ============================================================
   AED Informe Anual 2025
   © Asociación Española de Directivos
   Developed by Jordi Boix · BoixDesign.com
   ============================================================ */

/* ============================================================
   1. VARIABLES
   ============================================================ */
:root {
  --red:        #ca1241;
  --red-dark:   #a00e33;
  --dark:       #0d0f14;
  --gray-900:   #1a1d27;
  --gray-700:   #374151;
  --gray-400:   #9ca3af;
  --gray-200:   #e5e7eb;
  --gray-100:   #f3f4f6;
  --white:      #ffffff;
  --text:       #2d3748;
  --text-light: #6b7280;

  --font: 'Inter', Arial, Helvetica, sans-serif;

  --nav-h:     68px;
  --prog-h:     3px;
  --slide-pad: clamp(36px, 5vw, 72px);
  --t-slide:   0.72s cubic-bezier(0.4, 0, 0.2, 1);
  --banner-w:  200px;
}

/* ============================================================
   2. RESET Y BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--dark);
  overflow: hidden;
  height: 100dvh;
  width: 100vw;
}

img, video { display: block; max-width: 100%; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.1; }
p { line-height: 1.7; }
em { font-style: italic; }
strong { font-weight: 600; }

/* ============================================================
   3. BARRA DE PROGRESO
   ============================================================ */
.progress-bar {
  position: fixed; top: 0; left: 0;
  right: var(--banner-w);   /* no entra en el sidebar */
  height: var(--prog-h); width: 0%;
  background: var(--red); z-index: 200;
  transition: width var(--t-slide);
}

/* ============================================================
   4. NAVEGACIÓN — solo logo, la navegación vive en el sidebar
   ============================================================ */
.nav {
  position: fixed;
  top: var(--prog-h); left: 0;
  right: var(--banner-w);   /* no solapa el sidebar */
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 clamp(20px, 4vw, 48px);
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s, opacity 0.4s;
}
.nav--hidden { opacity: 0; pointer-events: none; }

/* Nav con logo + título publicación */
.nav.nav--dark,
.nav.nav--light { background: transparent; }

.nav__logo { height: 32px; width: auto; display: none; align-self: center; }
.nav__logo--color { display: none; }
.nav__logo--white { display: none; }
.nav--light .nav__logo--color { display: block; }
.nav--dark  .nav__logo--white { display: block; }

.nav__pub-title {
  font-size: 0.92rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-left: 24px;
  line-height: 1;
  align-self: center;
  transition: color 0.3s;
}
.nav--dark  .nav__pub-title { color: rgba(255,255,255,0.92); }
.nav--light .nav__pub-title { color: var(--dark); }

/* ============================================================
   4b. SIDEBAR DERECHO — fondo claro
   Estructura: cabecera índice · nav · cabecera anexos · anexos · espaciador · banner · controles
   ============================================================ */
.sidebar {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: var(--banner-w);
  z-index: 95;
  display: flex; flex-direction: column;
  background: #f8f7f5;
  border-left: 1px solid rgba(0,0,0,0.08);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity   0.4s ease;
}
.sidebar--hidden {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}

/* Cabeceras de sección dentro del sidebar */
.sidebar__section-hd {
  padding: calc(var(--prog-h) + 14px) 14px 8px;
  font-size: 0.95rem; font-weight: 800;
  letter-spacing: -0.01em; text-transform: uppercase;
  color: var(--dark);
  border-bottom: 2px solid var(--red);
  flex-shrink: 0;
}
.sidebar__section-hd--lower { padding-top: 16px; }

/* Índice de navegación */
.sidebar__nav { border-bottom: 1px solid rgba(0,0,0,0.07); flex-shrink: 0; }
.sidebar__menu { list-style: none; padding: 6px 0 8px; }
.sidebar__menu li { position: relative; }
.sidebar__menu a {
  display: block; padding: 4px 14px;
  font-size: 0.67rem; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: #aaa;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 0.2s, background 0.2s; text-decoration: none;
}
.sidebar__menu a:hover { color: var(--red); background: rgba(202,18,65,0.04); }
.sidebar__menu a.active { color: var(--red); padding-left: 12px; }
.sidebar__menu a.active::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 2px; height: 13px; background: var(--red); border-radius: 1px;
}

/* Anexos */
.sidebar__anexos { border-bottom: 1px solid rgba(0,0,0,0.07); flex-shrink: 0; }
.sidebar__anexos-list { list-style: none; padding: 4px 0 6px; }
.sidebar__anexo-btn {
  display: block; width: 100%;
  padding: 4px 14px;
  font-size: 0.67rem; font-weight: 500; font-family: inherit;
  letter-spacing: 0.02em; line-height: 1.4;
  color: #aaa; background: none; border: none;
  text-align: left; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 0.2s, background 0.2s;
}
.sidebar__anexo-btn:hover { color: var(--red); background: rgba(202,18,65,0.04); }

/* Espaciador — empuja el banner hacia abajo */
.sidebar__spacer { flex: 1; }

/* Banner — altura natural según la imagen (240×400px → ratio 3:5) */
.sidebar__banner {
  flex-shrink: 0;
  overflow: hidden; position: relative;
  border-top: 1px solid rgba(0,0,0,0.07);
}
.sidebar__banner a {
  display: block; text-decoration: none; position: relative;
}
#bannerContent { transition: opacity 0.28s ease; }
.sidebar__banner img,
.sidebar__banner video {
  width: 100%; height: auto;
  display: block;
  transition: transform 0.3s ease;
}
/* Hover: escala suave + icono de enlace discreto en esquina */
.sidebar__banner:hover img,
.sidebar__banner:hover video { transform: scale(1.04); }

.banner-link-hint {
  position: absolute; bottom: 8px; right: 8px;
  width: 28px; height: 28px;
  background: var(--red); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.7);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.banner-link-hint svg { width: 13px; height: 13px; stroke: #fff; }
.sidebar__banner:hover .banner-link-hint { opacity: 1; transform: scale(1); }

/* Controles: dos botones circulares granate + número centrado */
/* ── Barra de navegación flotante centrada ── */
.slide-nav {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(13,15,20,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 6px 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28), 0 1px 0 rgba(255,255,255,0.06) inset;
  transition: opacity 0.4s;
}
.slide-nav--hidden { opacity: 0; pointer-events: none; }
.slide-nav__btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--red); color: var(--white);
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.slide-nav__btn svg { width: 18px; height: 18px; }
.slide-nav__btn:hover:not(:disabled) { background: var(--red-dark); transform: scale(1.08); }
.slide-nav__btn:disabled { background: rgba(202,18,65,0.3); cursor: default; }
.slide-nav__label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
  min-width: 52px; text-align: center;
  padding: 0 4px;
}

/* ============================================================
   5. SLIDER
   ============================================================ */
.slider {
  display: flex; width: 100%; height: 100dvh;
  will-change: transform;
  transition: transform var(--t-slide);
}

/* ============================================================
   6. SLIDE BASE
   ============================================================ */
.slide {
  flex: 0 0 100vw; width: 100vw; height: 100dvh;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding-top: calc(var(--nav-h) + var(--prog-h));
}

.slide--light { background: var(--white); }
.slide--gray  { background: var(--gray-100); }
.slide--dark  { background: var(--dark); }
.slide--red   { background: var(--red); }
.slide--split { background: var(--white); }
.slide--image { background: var(--dark); }

/* ── Etiqueta de sección activa — fija en la barra de nav, nivel logo AED ── */
.section-tag-fixed {
  position: fixed;
  top: calc(var(--prog-h) + calc((var(--nav-h) - 0.7rem) / 2));
  right: calc(var(--banner-w) + 28px);
  z-index: 201;
  font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  pointer-events: none;
  transition: opacity 0.35s ease, color 0.35s ease;
}
.section-tag-fixed:empty { opacity: 0; }
.theme--light .section-tag-fixed { color: rgba(202,18,65,0.6); }

.slide__video-bg, .slide__img-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}

.slide__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.32) 100%);
}
.slide__overlay--heavy {
  background: linear-gradient(135deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.58) 100%);
}

.slide__inner {
  position: relative; z-index: 2;
  width: 100%; height: 100%;
  padding: var(--slide-pad);
  padding-right: calc(var(--slide-pad) + var(--banner-w) + 20px);
  display: flex; flex-direction: column;
  overflow: hidden;
}

.slide__header {
  display: flex; align-items: flex-start; gap: 20px;
  margin-bottom: clamp(14px, 2vh, 28px);
  flex-shrink: 0;
}

/* ============================================================
   7. TIPOGRAFÍA COMÚN
   ============================================================ */
.section-number {
  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 800; color: var(--red);
  line-height: 1; letter-spacing: -0.04em;
  flex-shrink: 0;
}
.section-number--light { color: rgba(255,255,255,0.18); }

.section-title {
  font-size: clamp(1.5rem, 2.6vw, 2.5rem);
  color: var(--dark); font-weight: 800;
  line-height: 1.08; letter-spacing: -0.02em;
}
.section-title--light { color: var(--white); }
.section-title--xl    { font-size: clamp(2rem, 4vw, 4rem); }

.section-label {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 8px;
}

h3 {
  font-size: 0.74rem; font-weight: 700;
  color: var(--dark); margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* Subsección — separador visual entre bloques de contenido */
.subsec { margin-bottom: 24px; }
.subsec p  { font-size: 0.95rem; color: var(--text-light); line-height: 1.8; margin-bottom: 10px; }
.subsec h3 { margin-bottom: 10px; }

/* ============================================================
   8. BOTONES
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: 2px;
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn--outline-white {
  border: 1.5px solid rgba(255,255,255,0.55); color: var(--white);
}
.btn--outline-white:hover {
  background: var(--white); color: var(--dark); border-color: var(--white);
}
.btn--red { background: var(--red); color: var(--white); border: 1.5px solid var(--red); }
.btn--red:hover { background: var(--red-dark); }

/* ============================================================
   9. PORTADA (S0)
   ============================================================ */
.portada__content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 100%; text-align: center;
  padding: var(--slide-pad); gap: 22px;
}
.portada__logo    { height: clamp(40px, 5.5vw, 60px); width: auto; margin-bottom: 18px; }
.portada__divider { width: 48px; height: 1px; background: rgba(255,255,255,0.35); }
.portada__title   {
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  font-weight: 800; color: var(--white);
  letter-spacing: -0.03em; line-height: 1;
}
.portada__subtitle {
  font-size: clamp(0.82rem, 1.4vw, 1rem);
  color: rgba(255,255,255,0.65); font-weight: 300;
  letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 8px;
}

/* ============================================================
   10. ÍNDICE (S1)
   ============================================================ */
.indice__wrap {
  padding: var(--slide-pad);
  padding-right: calc(var(--slide-pad) + var(--banner-w) + 20px);
  height: 100%; display: flex; flex-direction: column; overflow: hidden;
}

/* Cabecera editorial: "Índice de / CONTENIDOS" + label año */
.indice__header {
  flex-shrink: 0;
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-200);
}

.indice__pre {
  font-size: clamp(1.8rem, 3.2vw, 3.6rem);
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.03em; line-height: 1;
  color: var(--dark); margin-bottom: 4px;
}

.indice__hl {
  display: inline-block;
  font-size: clamp(1.8rem, 3.2vw, 3.6rem);
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.03em; line-height: 1.15;
  background: var(--red); color: var(--white);
  padding: 0 12px 5px;
}

.indice__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-bottom: 5px;
}
.indice__brand-logo {
  height: 56px;
  width: auto;
  display: block;
  margin-bottom: 8px;
}
.indice__informe-label {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-light);
}

/* Grid de secciones */
.indice__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--gray-200);
  border: 1px solid var(--gray-200);
  flex: 1; overflow-y: auto;
}

.indice__item {
  background: var(--white);
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px 16px; cursor: pointer;
  transition: background 0.18s;
}
.indice__item:hover { background: var(--gray-100); }
.indice__item:hover .indice__arrow { color: var(--red); transform: translateX(4px); }

/* Número de sección — más grande y prominente */
.indice__num {
  font-size: 1.7rem; font-weight: 800; color: var(--red);
  line-height: 1; flex-shrink: 0; opacity: 0.25;
  font-variant-numeric: tabular-nums;
  padding-top: 1px; min-width: 2.2ch;
}
.indice__num--abc { color: var(--dark); font-size: 1.4rem; }

.indice__text { flex: 1; min-width: 0; }
.indice__text strong {
  font-size: 0.9rem; font-weight: 700;
  display: block; color: var(--dark); margin-bottom: 6px;
}

/* Subsecciones */
.indice__subs { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.indice__subs li {
  font-size: 0.66rem; color: var(--text-light);
  line-height: 1.45; padding-left: 11px; position: relative;
}
.indice__subs li::before {
  content: '–'; position: absolute; left: 0;
  color: var(--gray-400);
}

.indice__arrow {
  font-size: 1rem; color: var(--gray-400);
  transition: color 0.18s, transform 0.18s;
  flex-shrink: 0; padding-top: 2px;
}

/* Columnas verticales (nueva layout de 7 columnas) */
.indice__cols {
  display: flex;
  flex: 1;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.indice__col {
  position: relative;
  display: flex; flex-direction: column;
  padding: 20px 16px 16px;
  border-right: 1px solid var(--gray-200);
  cursor: pointer; overflow-y: auto; overflow-x: hidden;
  text-decoration: none; color: inherit;
  flex: 1 1 0; min-width: 0;
  border-left: 3px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.indice__col:last-child { border-right: none; }
.indice__col:hover {
  background: rgba(202,18,65,0.05);
  border-left-color: var(--red);
}
.indice__col:hover .indice__col-arrow  { opacity: 1; transform: translateX(0); }
.indice__col:hover .indice__col-num    { opacity: 0.35; }
.indice__col:hover .indice__col-title  { color: var(--red); }
.indice__col:hover .indice__col-subs li { color: var(--dark); }

.indice__col-num {
  display: block;
  font-size: clamp(2.2rem, 3.5vw, 4rem);
  font-weight: 800; letter-spacing: -0.05em;
  color: var(--red); opacity: 0.12;
  line-height: 1; margin-bottom: 10px;
  transition: opacity 0.2s;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.indice__col-title {
  font-size: clamp(0.72rem, 1vw, 0.88rem);
  font-weight: 700; color: var(--dark);
  line-height: 1.3; margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--gray-200);
}

.indice__col-subs {
  flex: 1; display: flex; flex-direction: column; gap: 4px;
}
.indice__col-subs li {
  font-size: clamp(0.58rem, 0.8vw, 0.72rem);
  color: var(--text-light); line-height: 1.4;
}
.indice__col-subs li::before {
  content: '';
}

.indice__col-arrow {
  position: absolute; bottom: 14px; right: 14px;
  font-size: 1rem; color: var(--red);
  opacity: 0; transform: translateX(-6px);
  transition: opacity 0.2s, transform 0.2s;
}

/* En el índice el sidebar está oculto: recuperar el espacio y quitar padding inferior */
#s1 .indice__wrap { padding-right: var(--slide-pad); padding-bottom: 0; }

/* Barra de anexos en el índice */
.indice__anexos {
  display: flex;
  align-items: center;
  gap: 6px 20px;
  flex-wrap: wrap;
  padding: 12px var(--slide-pad);
  padding-bottom: calc(12px + 80px); /* espacio para el menú flotante */
  border-top: 1px solid var(--gray-200);
  background: var(--gray-100);
}
.indice__anexos-hd {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-right: 8px;
  white-space: nowrap;
}
.indice__anexo-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  padding: 5px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  background: var(--white);
  transition: border-color 0.18s, color 0.18s, background 0.18s;
  white-space: nowrap;
}
.indice__anexo-link:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(202,18,65,0.04);
}

/* ============================================================
   11. APERTURA — CARTA DEL PRESIDENTE (S2)
   ============================================================ */
.slide--split { flex-direction: row !important; }

/* Columna izquierda: título editorial + foto */
.carta__left {
  flex: 0 0 40%;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--gray-200);
  overflow: hidden;
}

.carta__title-block {
  position: relative;
  padding: var(--slide-pad);
  padding-bottom: 28px;
  flex-shrink: 0;
  overflow: hidden;
}

/* Número de sección — gigante, de fondo, decorativo */
.carta__num {
  position: absolute;
  top: 0; left: -0.04em;
  font-size: clamp(10rem, 19vw, 22rem);
  font-weight: 800; letter-spacing: -0.06em;
  color: rgba(202, 18, 65, 0.07);
  line-height: 1; user-select: none; pointer-events: none;
  z-index: 0;
}

/* Título y autor sobre el número */
.carta__pre,
.carta__hl,
.carta__author { position: relative; z-index: 1; }

.carta__pre {
  font-size: clamp(2rem, 4vw, 4.6rem);
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.03em; line-height: 1.08;
  color: var(--dark); margin-bottom: 4px;
}

.carta__hl {
  display: inline-block;
  font-size: clamp(2rem, 4vw, 4.6rem);
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.03em; line-height: 1.15;
  background: var(--red); color: var(--white);
  padding: 0 12px 6px;
  margin-bottom: 32px;
}

.carta__author { display: flex; flex-direction: column; gap: 4px; }
.carta__author strong { font-size: 1.58rem; font-weight: 700; color: var(--dark); }
.carta__author span   { font-size: 0.88rem; color: var(--text-light); }

.carta__foto-wrap { flex: 1; overflow: hidden; }
.carta__foto-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center; display: block;
}

/* Columna derecha: texto de la carta (scrollable) */
.split__text {
  flex: 1;
  padding: var(--slide-pad); overflow-y: auto;
  display: flex; flex-direction: column; gap: 0;
  margin-right: var(--banner-w);
}

.carta__saludo {
  font-size: 0.88rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dark); margin-bottom: 24px;
}

.carta__body { margin-top: 0; }
.carta__body p {
  font-size: 1.05rem; color: var(--text-light);
  line-height: 1.85; margin-bottom: 18px;
}

.firma { margin-top: 8px; }
.firma__line   { width: 36px; height: 2px; background: var(--red); margin-bottom: 12px; }
.firma__nombre { display: block; font-size: 1.05rem; font-weight: 700; color: var(--dark); }
.firma__cargo  { display: block; font-size: 0.85rem; color: var(--text-light); margin-top: 3px; }

/* ============================================================
   12. AED 2025 EN CIFRAS (S3) — Grid editorial con pictogramas
   ============================================================ */

.sintesis__left {
  flex: 0 0 38%; padding: var(--slide-pad);
  display: flex; flex-direction: column; justify-content: flex-start;
  border-right: 1px solid rgba(255,255,255,0.07);
  overflow-y: auto; padding-top: calc(var(--nav-h) + var(--prog-h) + var(--slide-pad));
}

.sintesis__sub {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 12px;
}
.sintesis__sub--right { color: rgba(255,255,255,0.35); margin-bottom: 14px; }

.cifras__intro {
  font-size: 0.97rem; color: rgba(255,255,255,0.65);
  margin-bottom: 16px; line-height: 1.78;
}

.cifras__bullets { display: flex; flex-direction: column; gap: 14px; }

.cifras__grupo strong {
  display: block; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--red); margin-bottom: 5px;
}
.cifras__grupo ul { display: flex; flex-direction: column; gap: 4px; }
.cifras__grupo li {
  font-size: 0.9rem; color: rgba(255,255,255,0.72);
  padding-left: 14px; position: relative; line-height: 1.6;
}
.cifras__grupo li::before {
  content: '';
  position: absolute; left: 0; top: 0.5em;
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
}

.sintesis__right {
  flex: 1; padding: var(--slide-pad);
  padding-right: calc(var(--slide-pad) + var(--banner-w) + 20px);
  display: flex; flex-direction: column; justify-content: center;
}

/* Grid 4 columnas de estadísticas */
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: rgba(255,255,255,0.07); }
.stats-grid--4col { grid-template-columns: repeat(4,1fr); }

.stat-card {
  background: transparent;
  padding: clamp(16px,2.2vh,28px) 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.stat-card__value {
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
  font-weight: 800; color: var(--white);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.stat-card__label {
  font-size: 0.64rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: rgba(255,255,255,0.35);
  font-weight: 500; line-height: 1.35;
}

.sintesis__resultado {
  display: flex; align-items: center; gap: 16px;
  margin-top: 16px; padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.resultado__num {
  font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800;
  color: var(--red); letter-spacing: -0.03em; flex-shrink: 0;
}
.resultado__lab {
  font-size: 0.72rem; color: rgba(255,255,255,0.4);
  text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.5;
}

/* ============================================================
   13. EL CONTEXTO (S4)
   ============================================================ */
.contexto__wrap {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 280px 1fr;
  gap: 40px;
  height: 100%;
  padding: var(--slide-pad);
  padding-right: calc(var(--slide-pad) + var(--banner-w) + 20px);
  padding-top: calc(var(--nav-h) + var(--prog-h) + var(--slide-pad));
  overflow: hidden;
}

.contexto__titulo {
  display: flex; flex-direction: column; gap: 12px;
  justify-content: flex-end; padding-bottom: 4px;
}

.contexto__cols {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; overflow: hidden;
}

.contexto__col {
  overflow-y: auto; padding-right: 4px;
}
.contexto__col h3 { color: rgba(255,255,255,0.45); }
.contexto__col p  { font-size: 0.97rem; color: rgba(255,255,255,0.82); margin-bottom: 12px; line-height: 1.78; }

/* ============================================================
   13b. CONTEXTO HERO — S5 (nuevo diseño editorial con vídeo)
   ============================================================ */
.contexto-hero {
  display: flex; flex: 1; overflow: hidden;
  margin-right: var(--banner-w); position: relative; z-index: 1;
}

.contexto-hero__left {
  flex: 0 0 36%;
  position: relative; display: flex; flex-direction: column;
  padding: var(--slide-pad);
  border-right: 1px solid rgba(255,255,255,0.07); overflow: hidden;
}

.contexto-hero__ghost {
  position: absolute; top: 0; left: -0.04em;
  font-size: clamp(10rem, 19vw, 22rem);
  font-weight: 800; letter-spacing: -0.06em;
  color: rgba(255,255,255,0.04);
  line-height: 1; user-select: none; pointer-events: none; z-index: 0;
}

.contexto-hero__title-block { position: relative; z-index: 1; margin: auto 0; }

.contexto-hero__pre {
  font-size: clamp(2rem, 3.5vw, 4rem);
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.03em; line-height: 1.08;
  color: var(--white); margin-bottom: 4px;
}

.contexto-hero__hl {
  display: inline-block;
  font-size: clamp(2rem, 3.5vw, 4rem);
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.03em; line-height: 1.15;
  background: var(--red); color: var(--white);
  padding: 0 12px 6px; margin-bottom: 28px;
}

.contexto-hero__lead {
  font-size: 0.88rem; line-height: 1.75;
  color: rgba(255,255,255,0.5); position: relative; z-index: 1;
}

/* Adaptaciones para slides claros/grises — mismo tamaño y lógica, colores invertidos */
.slide--light .contexto-hero__pre,
.slide--gray  .contexto-hero__pre  { color: var(--dark); }
.slide--light .contexto-hero__lead,
.slide--gray  .contexto-hero__lead { color: var(--gray-700); }


.contexto-hero__cols {
  flex: 1; align-self: stretch;
  display: grid; grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(0, 1fr);
  gap: 1px; background: rgba(255,255,255,0.06);
  overflow: hidden; min-height: 0;
}
.contexto-hero__cols--three { grid-template-columns: repeat(3, 1fr); }

.contexto-hero__span-quote {
  margin: 4px 0 8px;
  padding: clamp(10px, 1.2vw, 16px) clamp(14px, 1.8vw, 20px);
  border-left: 4px solid var(--red);
  font-size: clamp(0.88rem, 1.1vw, 1.05rem);
  font-weight: 700; font-style: normal;
  line-height: 1.5;
  color: var(--dark);
  background: rgba(202,18,65,0.04);
  border-radius: 0 4px 4px 0;
}

.contexto-hero__col {
  padding: clamp(24px, 3.5vw, 48px);
  display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto; min-height: 0;
  max-height: calc(100dvh - var(--nav-h) - var(--prog-h));
}

.contexto-hero__col-num {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 800; letter-spacing: -0.03em;
  color: var(--red); opacity: 0.8;
  display: block; margin-bottom: 8px; line-height: 1;
}

.contexto-hero__col-title {
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  font-weight: 700; color: var(--white);
  line-height: 1.25; margin-bottom: 12px;
  padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.08);
}

.contexto-hero__col p {
  font-size: 0.87rem; line-height: 1.78;
  color: rgba(255,255,255,0.55);
}

/* Columna única (subsección 3.5) */
.contexto-hero__cols--single {
  grid-template-columns: 1fr;
}
.contexto-hero__cols--single .contexto-hero__col {
  max-width: 68ch;
  justify-content: center;
}

/* Imagen Abecedario para Directivos — 300×300 fija, recorte centered */
.abc-inline-img {
  display: block;
  width: 50%; height: auto;
  border-radius: 4px;
  margin-top: 8px;
}

/* ============================================================
   13c. SECTION SPLIT — layout 2 columnas (contenido + espacio publicitario)
   ============================================================ */
.section-split {
  display: flex; flex: 1; overflow: hidden;
  margin-right: var(--banner-w);
}

.section-split__content {
  flex: 1;
  padding: var(--slide-pad);
  display: flex; flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--gray-200);
  max-width: 55%;
}

.section-split__num {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 800; letter-spacing: -0.03em;
  color: var(--red); line-height: 1;
  display: block; margin-bottom: 8px;
}

.section-split__title {
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  font-weight: 700; color: var(--dark); line-height: 1.25;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}

.section-split__body p {
  font-size: 0.95rem; line-height: 1.8;
  color: var(--gray-700); margin-bottom: 14px;
}
.section-split__body p:last-child { margin-bottom: 0; }

/* Variante simétrica: dos columnas de texto al 50%, alineadas arriba */
.section-split--dual .section-split__content {
  max-width: 50%;
  justify-content: flex-start;
}
.section-split--dual .section-split__content:last-child {
  border-right: none;
}

.section-split__ad {
  flex: 0 0 42%;
  padding: var(--slide-pad);
  display: flex; flex-direction: column;
  background: var(--gray-100);
}

.section-split__ad-label {
  font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red); opacity: 0.7;
  display: block; margin-bottom: 16px;
}

.section-split__ad-title {
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  font-weight: 700; color: var(--dark);
  line-height: 1.25; margin-bottom: 10px;
}

.section-split__ad-desc {
  font-size: 0.83rem; color: var(--gray-400);
  line-height: 1.7; margin-bottom: 28px;
  max-width: 38ch;
}

.section-split__ad-placeholder {
  flex: 1;
  border: 2px dashed var(--gray-200);
  border-radius: 8px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; color: var(--gray-200);
  transition: border-color 0.2s, background 0.2s;
}
.section-split__ad-placeholder:hover {
  background: var(--white); border-color: var(--red);
}
.section-split__ad-icon {
  width: 44px; height: 44px; opacity: 0.4;
}
.section-split__ad-text {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gray-400); text-align: center; line-height: 1.5;
}

/* ============================================================
   13e. INFO CARDS — bloques de contenido para paneles de sección 6
   ============================================================ */
.info-cards {
  flex: 1; display: flex; flex-direction: column;
  padding: var(--slide-pad); gap: clamp(10px,1.2vw,16px);
  overflow: hidden; background: var(--gray-100);
}

.info-card {
  flex: 1; padding: clamp(14px,1.5vw,22px);
  border: 1px solid var(--gray-200); border-radius: 8px;
  background: var(--white); display: flex; flex-direction: column; gap: 5px;
}

.info-card__head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 4px;
}

.info-card__icon {
  width: 26px; height: 26px; flex-shrink: 0;
  color: var(--red); opacity: 0.85;
}

.info-card__title {
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  font-weight: 700; color: var(--dark); line-height: 1.25;
  padding-bottom: 10px; margin-bottom: 8px;
  border-bottom: 1px solid var(--gray-200);
}

.info-card__body {
  font-size: clamp(0.72rem,0.95vw,0.82rem);
  line-height: 1.7; color: var(--gray-700); flex: 1;
}

.info-card__tags {
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px;
}

.info-card__tag {
  font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 2px;
  background: var(--gray-100); color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

/* pillars — 4 columnas de cierre de sección */
.pillars-layout {
  flex: 1; display: flex; overflow: hidden;
  margin-right: var(--banner-w);
}

.pillars-intro {
  flex: 0 0 40%; padding: var(--slide-pad);
  display: flex; flex-direction: column; justify-content: flex-start;
  border-right: 1px solid var(--gray-200);
}

.pillars-intro__pre {
  display: block;
  font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1;
  color: var(--red); opacity: 0.8; margin-bottom: 8px;
}

.pillars-intro__title {
  font-size: clamp(1.4rem,2.8vw,3rem);
  font-weight: 800; letter-spacing: -0.04em;
  color: var(--dark); line-height: 1.1; margin-bottom: 18px;
}

.pillars-intro__body {
  font-size: 0.88rem; line-height: 1.75;
  color: var(--gray-700);
  margin-bottom: 14px;
}
.pillars-intro__body:last-child { margin-bottom: 0; }

.pillars-cols {
  flex: 1; display: flex; overflow: hidden;
}

/* Vídeo/foto a pantalla completa en lugar de los 4 pilares */
.pillars-photo {
  flex: 1; overflow: hidden; position: relative;
}
.pillars-photo img,
.pillars-photo video {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}

/* ─── s9a MIRADA 2026 — layout 4 cols arriba + texto abajo ─ */
/* Columna derecha de s9a: sustituye section-hero__right */
.mirada-right {
  flex: 1; display: flex; flex-direction: column; overflow: hidden;
}

.mirada-kpis {
  flex: 1; display: flex; overflow: hidden;
  border-bottom: 2px solid var(--gray-200);
  background: rgba(255,255,255,0.05);
}

.mirada-kpi {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-start;
  padding: clamp(28px, 3.5vw, 52px) clamp(20px, 2.5vw, 40px); gap: 12px;
  border-right: 1px solid var(--gray-200);
  overflow-y: auto;
}
.mirada-kpi:last-child { border-right: none; }

.mirada-kpi__icon {
  width: 32px; height: 32px; flex-shrink: 0;
  color: var(--red);
}

.mirada-kpi__val {
  font-size: clamp(0.82rem, 1.15vw, 1.05rem);
  font-weight: 700; color: var(--dark); line-height: 1.35;
}

.mirada-kpi__lbl {
  font-size: clamp(0.74rem, 0.95vw, 0.85rem);
  color: var(--gray-700); line-height: 1.7;
}

.mirada-bottom {
  flex: 0 0 auto;
  padding: clamp(24px, 2.8vw, 44px) clamp(32px, 5vw, 80px) 90px;
  background: var(--gray-100);
  display: flex; flex-direction: column; gap: 10px;
  border-top: 2px solid var(--gray-200);
}

.mirada-bottom p {
  font-size: clamp(0.82rem, 1vw, 0.92rem);
  line-height: 1.75; color: var(--gray-700); margin: 0;
}

.mirada-bottom__quote {
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  font-weight: 700; font-style: italic;
  color: var(--dark); line-height: 1.5;
  border-left: 3px solid var(--red);
  padding-left: 1.2em; margin: 4px 0 0;
}

/* --- s10: CIERRE GLOBAL — espejo de la portada, fondo rojo ------------ */
#s10 { display: flex; align-items: stretch; }
.s10-video {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover; opacity: 0.12;
  pointer-events: none; z-index: 0;
}
.cierre-final {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: var(--slide-pad);
  padding-bottom: max(var(--slide-pad), 90px);
  margin-right: 0;
  gap: 0;
  position: relative; z-index: 1;
}
.cierre-final__logo {
  height: 38px; width: auto;
  margin-bottom: 36px; opacity: 0.88;
}
.cierre-final__overtitle {
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); margin-bottom: 22px;
}
.cierre-final__title {
  font-size: clamp(2.2rem, 5vw, 5.5rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.05;
  color: var(--white); margin-bottom: 44px;
}
.cierre-final__btn { cursor: pointer; }
.cierre-final__install-link {
  background: none; border: none; padding: 0; cursor: pointer;
  font-size: 0.68rem; color: rgba(255,255,255,0.65);
  text-decoration: none; transition: color 0.18s;
  font-family: inherit;
}
.cierre-final__install-link:hover { color: #fff; }
.cierre-final__footer {
  margin-top: 52px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: min(520px, 80%);
}
.cierre-final__copy {
  font-size: 0.7rem; color: rgba(255,255,255,0.65);
  letter-spacing: 0.05em;
}
.cierre-final__legal {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 6px 12px;
}
.cierre-final__legal a {
  font-size: 0.68rem; color: rgba(255,255,255,0.65);
  text-decoration: none; transition: color 0.18s;
}
.cierre-final__legal a:hover { color: #fff; }
.cierre-final__legal span {
  font-size: 0.68rem; color: rgba(255,255,255,0.4);
}

/* --- s9b: 30 años de AED — vídeo fondo + overlay rojo ----------------- */
#s9b { position: relative; overflow: hidden; }

.s9b-video {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  pointer-events: none;
  transform: translateZ(0);
}
.s9b-overlay {
  position: absolute; inset: 0;
  background: rgba(10, 12, 20, 0.72);
  z-index: 1;
  transform: translateZ(0);
}
.s9b-hero { position: relative; z-index: 2; }

#s9b .section-hero__left   { justify-content: flex-start; }
#s9b .section-hero__ghost  { color: rgba(255,255,255,0.12); }
#s9b .section-hero__hl-mark {
  background: var(--red); color: var(--white);
  padding: 2px 12px 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
#s9b .s9b-right {
  display: flex; flex-direction: column;
  justify-content: flex-start;
  padding: var(--slide-pad); gap: 1.6em;
  overflow-y: auto;
  background: transparent !important;
  border-left: 1px solid rgba(255,255,255,0.15);
  grid-template-columns: unset; grid-template-rows: unset;
}
.s9b-right .section-hero__lead {
  color: rgba(255,255,255,0.82);
}
.s9b-right .section-hero__lead strong,
.s9b-right .section-hero__lead em { color: var(--white); }

.pillar {
  flex: 1; padding: clamp(16px, 2vw, 28px);
  display: flex; flex-direction: column; justify-content: flex-start;
  border-right: 1px solid var(--gray-200);
  background: var(--white);
  transition: background 0.2s;
  overflow: hidden;
}
.pillar:last-child { border-right: none; }
.pillar:hover { background: var(--gray-100); }

.pillar__icon {
  width: 32px; height: 32px; color: var(--red);
  opacity: 0.7; margin-bottom: 20px;
}

.pillar__num {
  font-size: clamp(2.5rem,5vw,6rem);
  font-weight: 800; letter-spacing: -0.05em;
  color: rgba(202,18,65,0.08); line-height: 1;
  margin-bottom: 6px;
}

.pillar__title {
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  font-weight: 700; color: var(--dark); line-height: 1.25;
  padding-bottom: 10px; margin-bottom: 8px;
  border-bottom: 1px solid var(--gray-200);
}

.pillar__body {
  font-size: clamp(0.7rem,0.9vw,0.78rem);
  line-height: 1.65; color: var(--gray-700);
}

/* ============================================================
   13e-bis. TWO-STORY — dos paneles editoriales en paralelo
   ============================================================ */
.two-story {
  flex: 1; display: flex; overflow: hidden;
  margin-right: var(--banner-w);
}

.two-story__panel {
  flex: 1; padding: var(--slide-pad);
  display: flex; flex-direction: column; justify-content: flex-start;
  overflow-y: auto;
  border-right: 1px solid var(--gray-200);
}
.two-story__panel:last-child { border-right: none; }

.two-story__pre {
  display: block;
  font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1;
  color: var(--red); opacity: 0.8; margin-bottom: 10px;
}

.two-story__title {
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  font-weight: 700; letter-spacing: -0.01em;
  color: var(--dark); line-height: 1.25;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}

.two-story__stats {
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: 28px;
}

.two-story__stat {
  display: flex; align-items: baseline; gap: 14px;
}

.two-story__stat-val {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 800; letter-spacing: -0.05em;
  color: var(--dark); line-height: 1;
}

.two-story__stat-lbl {
  font-size: clamp(0.72rem, 0.95vw, 0.82rem);
  font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gray-400);
}

.two-story__body {
  font-size: clamp(0.88rem, 1.15vw, 1rem);
  line-height: 1.75; color: var(--gray-700);
  max-width: 44ch;
}
.two-story__body p { margin-bottom: 0.9em; }
.two-story__body p:last-child { margin-bottom: 0; }

/* ============================================================
   13f. SECTION HERO — portada editorial reutilizable para secciones
   ============================================================ */
.section-hero {
  display: flex; flex: 1; overflow: hidden;
  margin-right: var(--banner-w);
  position: relative; z-index: 1;
}

.section-hero__left {
  flex: 0 0 40%; padding: var(--slide-pad);
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid rgba(255,255,255,0.07);
  position: relative; overflow-x: hidden; overflow-y: auto;
}

.section-hero__ghost {
  position: absolute; top: 0; left: -0.04em;
  font-size: clamp(10rem, 19vw, 22rem); font-weight: 800;
  color: rgba(202,18,65,0.08); line-height: 0.85;
  letter-spacing: -0.05em; pointer-events: none;
  user-select: none; z-index: 0;
}

.section-hero__pre {
  display: block;
  font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1;
  color: var(--red); opacity: 0.8; margin-bottom: 10px;
  position: relative; z-index: 1;
}

.section-hero__hl {
  font-size: clamp(1.8rem, 3.5vw, 4rem);
  font-weight: 800; letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--white); line-height: 1.05;
  margin-bottom: 20px; position: relative; z-index: 1;
}

.section-hero__lead {
  font-size: clamp(0.8rem, 1.1vw, 0.95rem); line-height: 1.75;
  color: rgba(255,255,255,0.45); position: relative; z-index: 1;
}

.section-hero__right {
  flex: 1; display: grid;
  grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 1px; background: rgba(255,255,255,0.05);
}

.section-hero__kpi {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(20px, 2.5vw, 36px); gap: 6px;
}

.section-hero__kpi-val {
  font-size: clamp(2.2rem, 4.5vw, 5rem);
  font-weight: 800; letter-spacing: -0.04em;
  color: var(--white); line-height: 1;
}

.section-hero__kpi-val small {
  font-size: 0.45em; font-weight: 600;
  opacity: 0.5; letter-spacing: 0;
}

.section-hero__kpi-lbl {
  font-size: clamp(0.68rem, 0.95vw, 0.82rem);
  color: rgba(255,255,255,0.4); line-height: 1.4;
}

.section-hero__kpi-badge {
  font-size: 0.68rem; font-weight: 700;
  color: var(--red); margin-top: 2px;
}

/* --- section-hero en fondo claro -------------------------------- */
.slide--light .section-hero__left {
  border-right-color: var(--gray-200);
}
.slide--light .section-hero__ghost { color: rgba(202,18,65,0.06); }
.slide--light .section-hero__pre   { color: var(--red); }
.slide--light .section-hero__hl {
  color: var(--dark);   /* texto plano oscuro en slides claros */
}
/* pastilla roja solo alrededor del <span> marcado */
.slide--light .section-hero__hl-mark {
  background: var(--red);
  color: var(--white);
  padding: 2px 12px 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.slide--light .section-hero__lead  { color: var(--gray-700); }
.slide--light .section-hero__right {
  background: var(--gray-200); /* líneas separadoras entre celdas */
}
.slide--light .section-hero__kpi   { background: var(--white); }
.slide--light .section-hero__kpi:hover { background: var(--gray-100); }
.slide--light .section-hero__kpi-val   { color: var(--dark); }
.slide--light .section-hero__kpi-lbl   { color: var(--gray-500); }
.slide--light .section-hero__kpi-icon  { color: rgba(13,15,20,0.14); }

/* --- s6a: Título Sección estándar + derecha con intro + kpi fila ---------- */
#s6a .section-hero__left   { justify-content: flex-start; }
#s6a .section-hero__pre    {
  font-size: clamp(1.5rem, 3vw, 4rem); font-weight: 800;
  text-transform: uppercase; letter-spacing: -0.03em;
  line-height: 1.08; color: var(--dark); margin-bottom: 4px;
}
#s6a .section-hero__hl     {
  display: inline-block;
  background: var(--red); color: var(--white) !important;
  padding: 0 12px 6px; margin-bottom: 32px;
  font-size: clamp(1.5rem, 3vw, 4rem);
}
#s6a .section-hero__pullquote {
  display: block; margin: 0;
  padding: 18px 0 18px 22px;
  border-left: 4px solid var(--red);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  font-weight: 700; font-style: normal;
  line-height: 1.5; color: var(--dark);
}

/* Columna derecha en columna vertical */
.section-hero__right--col {
  display: flex !important; flex-direction: column !important;
  background: var(--gray-200);
  grid-template-columns: unset; grid-template-rows: unset;
}

/* Columna derecha con foto a pantalla completa (pág. 23 Mirada 2026) */
.section-hero__right--photo {
  display: block !important;
  background: none; overflow: hidden;
}
.section-hero__photo-fill {
  width: 100%; height: 100%; overflow: hidden;
}
.section-hero__photo-fill img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}

/* Bloque intro subsección 4.1 */
.section-hero__sub-intro {
  padding: clamp(24px, 3.5vw, 48px);
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
  overflow-y: auto; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.section-hero__sub-num {
  display: block;
  font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1;
  color: var(--red);
}
.section-hero__sub-title {
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  font-weight: 700; color: var(--dark);
  line-height: 1.25; margin-bottom: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.section-hero__sub-body p {
  font-size: 0.87rem; line-height: 1.78;
  color: var(--gray-700); margin: 0;
}
.section-hero__sub-body { display: flex; flex-direction: column; gap: 8px; }

/* 4 KPIs en fila horizontal */
.section-hero__kpi-row {
  flex: 1; display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--gray-200);
}
.section-hero__kpi-row .section-hero__kpi-val {
  font-size: clamp(1.6rem, 3vw, 3.2rem);
}
.section-hero__kpi-row .section-hero__kpi-icon {
  width: clamp(24px, 3vw, 36px); height: clamp(24px, 3vw, 36px);
}
.section-hero__kpi-row .section-hero__kpi {
  padding: clamp(14px, 1.8vw, 22px);
}

/* --- contexto-hero en fondo claro (complementa las reglas existentes) -- */
.slide--light .contexto-hero__left {
  border-right-color: var(--gray-200);
}
.slide--light .contexto-hero__ghost { color: rgba(202,18,65,0.06); }
.slide--light .contexto-hero__cols  {
  background: var(--gray-200);
}
.slide--light .contexto-hero__col   { background: var(--white); }
.slide--light .contexto-hero__col-title { color: var(--dark); }
.slide--light .contexto-hero__col p     { color: var(--gray-700); }
.slide--light .contexto-hero__col-num   { opacity: 1; }

/* s4 tiene vídeo de fondo: revertir colores del panel izquierdo a blanco */
#s4 .contexto-hero__ghost      { color: rgba(255,255,255,0.07); }
#s4 .contexto-hero__hl         { margin-bottom: 4px; }
#s4 .contexto-hero__pre        { color: var(--white); }
#s4 .contexto-hero__title-block { margin: 0; }
#s4 .contexto-hero__pullquote  {
  display: block; margin: 0;
  padding: 18px 0 18px 22px;
  border-left: 4px solid var(--red);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  font-weight: 700; font-style: normal;
  line-height: 1.5;
  color: var(--white);
}

/* --- s7a: Título Sección estándar + derecha con intro 5.1 + kpi fila ---- */
#s7a .section-hero__left   { justify-content: flex-start; }
#s7a .section-hero__pre    {
  font-size: clamp(1.5rem, 3vw, 4rem); font-weight: 800;
  text-transform: uppercase; letter-spacing: -0.03em;
  line-height: 1.08; color: var(--dark); margin-bottom: 4px;
}
#s7a .section-hero__hl     {
  display: inline-block;
  background: var(--red); color: var(--white) !important;
  padding: 0 12px 6px; margin-bottom: 32px;
  font-size: clamp(1.5rem, 3vw, 4rem);
}
#s7a .section-hero__pullquote {
  display: block; margin: 0;
  padding: 18px 0 18px 22px;
  border-left: 4px solid var(--red);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  font-weight: 700; font-style: normal;
  line-height: 1.5; color: var(--dark);
}

/* --- s8a: Título Sección estándar + derecha con intro 6.1 + kpi fila ---- */
#s8a .section-hero__left   { justify-content: flex-start; }
#s8a .section-hero__pre    {
  font-size: clamp(1.5rem, 3vw, 4rem); font-weight: 800;
  text-transform: uppercase; letter-spacing: -0.03em;
  line-height: 1.08; color: var(--dark); margin-bottom: 4px;
}
#s8a .section-hero__hl     {
  display: inline-block;
  background: var(--red); color: var(--white) !important;
  padding: 0 12px 6px; margin-bottom: 32px;
  font-size: clamp(1.5rem, 3vw, 4rem);
}
#s8a .section-hero__pullquote {
  display: block; margin: 0;
  padding: 18px 0 18px 22px;
  border-left: 4px solid var(--red);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  font-weight: 700; font-style: normal;
  line-height: 1.5; color: var(--dark);
}

/* s8f es una subsección (6.5), no un capítulo: título en sentence case */
#s8f .section-hero__hl { text-transform: none; }

/* --- subsec-split: panel texto izquierda + 2 fotos apiladas derecha ------- */
.subsec-split {
  display: grid;
  grid-template-columns: 42% 58%;
  height: 100%;
  background: var(--white);
  margin-right: var(--banner-w); /* no entrar bajo el sidebar derecho */
}
.subsec-split__text {
  overflow-y: auto;
  padding: clamp(32px, 5vw, 72px) clamp(24px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  gap: 0;
  border-right: 1px solid var(--gray-200);
}
.subsec-split__num {
  display: block;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--red);
  line-height: 1;
  margin-bottom: 14px;
}
.subsec-split__title {
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}
.subsec-split__body p {
  font-size: 0.87rem;
  line-height: 1.78;
  color: var(--gray-700);
  margin: 0 0 0.9em 0;
}
.subsec-split__stats {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.subsec-split__stat-val {
  display: block;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 6px;
}
.subsec-split__stat-val small {
  font-size: 0.55em;
  letter-spacing: 0;
}
.subsec-split__stat-lbl {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
}
.subsec-split__photos {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.subsec-split__photo {
  flex: 1;
  overflow: hidden;
}
.subsec-split__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.subsec-split__photo:hover img { transform: scale(1.03); }

/* ── Galería con lightbox (sección 5) ── */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 3px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border: none;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  background: #111;
  display: block;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.3s;
}
.gallery-item:hover img { transform: scale(1.04); opacity: 0.88; }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.3s;
  pointer-events: none;
}
.gallery-item:hover::after { background: rgba(0,0,0,0.15); }
/* El primer item ocupa las 2 filas a la izquierda */
.gallery-item--featured {
  grid-column: 1;
  grid-row: 1 / -1;
}
/* Con 2 imágenes: la featured ocupa todo el alto, la segunda la columna derecha */
.gallery-grid:has(.gallery-item:nth-child(2):last-child) .gallery-item--featured {
  grid-row: 1;
}
/* 2 fotos apiladas verticalmente (una arriba, otra abajo) */
.gallery-grid--2stack {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
}
.gallery-grid--2stack .gallery-item {
  grid-column: 1;
  grid-row: auto;
}
/* 1 foto apaisada arriba (ancho completo) + 3 fotos cuadradas abajo */
.gallery-grid--1t3b {
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.gallery-grid--1t3b .gallery-item--featured {
  grid-column: 1 / -1;
  grid-row: 1;
}
.gallery-grid--1t3b .gallery-item:not(.gallery-item--featured) {
  grid-column: auto;
  grid-row: 2;
}

/* 1 foto apaisada arriba (ancho completo) + 9 fotos en cuadrícula 3×3 abajo */
.gallery-grid--1t9 {
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 2fr 1fr 1fr 1fr;
}
.gallery-grid--1t9 .gallery-item--featured {
  grid-column: 1 / -1;
  grid-row: 1;
}
.gallery-grid--1t9 .gallery-item:not(.gallery-item--featured) {
  grid-column: auto;
  grid-row: auto;
}

/* 1 foto destacada izquierda (span completo) + 4 fotos columna derecha */
.gallery-grid--1f4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(4, 1fr);
}
.gallery-grid--1f4 .gallery-item--featured {
  grid-column: 1;
  grid-row: 1 / -1;
}
.gallery-grid--1f4 .gallery-item:not(.gallery-item--featured) {
  grid-column: 2;
  grid-row: auto;
}

/* 1 foto grande izquierda (span 3 filas) + 9 fotos cuadrícula 3×3 */
.gallery-grid--1f9 {
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
}
.gallery-grid--1f9 .gallery-item--featured {
  grid-column: 1;
  grid-row: 1 / -1;
}
.gallery-grid--1f9 .gallery-item:not(.gallery-item--featured) {
  grid-column: auto;
  grid-row: auto;
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-lightbox[hidden] { display: none; }
.gallery-lightbox__bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  cursor: zoom-out;
}
.gallery-lightbox__img-wrap {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 8px 60px rgba(0,0,0,0.7);
  display: block;
  transition: opacity 0.2s;
}
.gallery-lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
}
.gallery-lightbox__close:hover { background: rgba(255,255,255,0.25); }
.gallery-lightbox__close svg { width: 20px; height: 20px; }
.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
}
.gallery-lightbox__nav:hover { background: rgba(255,255,255,0.28); }
.gallery-lightbox__nav:disabled { opacity: 0.25; cursor: default; }
.gallery-lightbox__nav svg { width: 24px; height: 24px; }
.gallery-lightbox__prev { left: 20px; }
.gallery-lightbox__next { right: 20px; }
.gallery-lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  z-index: 2;
}

/* --- cifras-hero en fondo claro -------------------------------- */
.slide--light .cifras-hero__left {
  border-right-color: var(--gray-200);
}
.slide--light .cifras-hero__ghost { color: rgba(202,18,65,0.06); }
.slide--light .cifras-hero__pre   { color: var(--dark); }
.slide--light .cifras-hero__lead  { color: var(--gray-700); }
.slide--light .cifras-hero__nota  {
  border-top-color: var(--gray-200);
  color: var(--gray-400);
}
.slide--light .cifras-hero__grid  { background: var(--gray-200); }
.slide--light .cifras-hero__card  { background: var(--white); }
.slide--light .cifras-hero__card:hover { background: var(--gray-100); }
.slide--light .cifras-hero__icon  { color: rgba(13,15,20,0.12); }
.slide--light .cifras-hero__card-num { color: var(--dark); }
.slide--light .cifras-hero__card-lbl { color: var(--gray-700); }
.slide--light .cifras-hero__card-sub { color: var(--gray-400); }
.slide--light .cifras-hero__card--accent {
  background: rgba(202,18,65,0.07) !important;
}
.slide--light .cifras-hero__card--accent:hover {
  background: rgba(202,18,65,0.13) !important;
}

/* ============================================================
   13f. ROWS LAYOUT — 3 filas de subsecciones
   ============================================================ */
.rows-layout {
  display: flex; flex: 1; flex-direction: column;
  overflow: hidden; margin-right: var(--banner-w);
}

.rows-layout__row {
  flex: 1; display: flex; align-items: center;
  padding: 0 var(--slide-pad);
  border-bottom: 1px solid var(--gray-200);
  gap: clamp(24px, 3.5vw, 56px);
}
.rows-layout__row:last-child { border-bottom: none; }

.rows-layout__label {
  flex: 0 0 220px;
  display: flex; flex-direction: column; gap: 8px;
}

.rows-layout__num {
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 800; letter-spacing: -0.03em;
  color: var(--red); line-height: 1;
}

.rows-layout__title {
  font-size: clamp(0.78rem, 1.15vw, 0.95rem);
  font-weight: 700; color: var(--dark); line-height: 1.35;
}

.rows-layout__stat {
  flex: 0 0 170px; text-align: left;
}

.rows-layout__stat-val {
  display: block;
  font-size: clamp(2rem, 4vw, 4.5rem);
  font-weight: 800; letter-spacing: -0.04em;
  color: var(--red); line-height: 1;
}
.rows-layout__stat-val small {
  font-size: 0.4em; font-weight: 600; opacity: 0.6; letter-spacing: 0;
}

.rows-layout__stat-lbl {
  display: block; margin-top: 6px;
  font-size: 0.72rem; color: var(--gray-400); line-height: 1.4;
}
.rows-layout__stat-lbl em {
  font-style: normal; color: var(--red); opacity: 0.8;
}

.rows-layout__body {
  flex: 1;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  line-height: 1.8; color: var(--gray-700);
}

.rows-layout__tags {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px;
}
.rows-layout__tag {
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px;
  background: var(--gray-200); color: var(--gray-700);
}

/* ============================================================
   13g. COLS LAYOUT — 3 columnas verticales de subsecciones
   ============================================================ */
.cols-layout {
  display: flex; flex: 1; overflow: hidden;
  margin-right: var(--banner-w);
}

.cols-layout__col {
  flex: 1; padding: var(--slide-pad);
  display: flex; flex-direction: column;
  border-right: 1px solid var(--gray-200);
  overflow-y: auto;
}
.cols-layout__col:last-child { border-right: none; }

.cols-layout__num {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 800; letter-spacing: -0.03em;
  color: var(--red); opacity: 0.8; line-height: 1;
  display: block; margin-bottom: 8px;
}

.cols-layout__title {
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  font-weight: 700; color: var(--dark); line-height: 1.25;
  margin-bottom: 12px; padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}

.cols-layout__pullquote {
  position: relative; z-index: 1;
  margin: 0 0 18px;
  padding: 14px 0 14px 18px;
  border-left: 4px solid var(--red);
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  font-weight: 700; font-style: normal;
  line-height: 1.5;
  color: var(--dark);
}

.cols-layout__stat-val {
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  font-weight: 800; letter-spacing: -0.04em;
  color: var(--red); line-height: 1;
  display: block; margin-bottom: 6px;
}
.cols-layout__stat-val small {
  font-size: 0.42em; font-weight: 600; opacity: 0.6; letter-spacing: 0;
}

.cols-layout__stat-lbl {
  font-size: 0.73rem; color: var(--gray-400);
  line-height: 1.4; display: block;
  margin-bottom: 18px;
}
.cols-layout__stat-lbl em { font-style: normal; color: var(--red); opacity: 0.8; }

.cols-layout__body {
  flex: 1;
  overflow-y: auto;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  line-height: 1.8; color: var(--gray-700);
}

.cols-layout__tags {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px;
}
.cols-layout__tag {
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px;
  background: var(--gray-200); color: var(--gray-700);
}

/* ============================================================
   13h. PHOTO PANEL — foto en un lateral, contenido en el otro
   ============================================================ */
.photo-panel {
  display: flex; flex: 1; overflow: hidden;
  margin-right: var(--banner-w);
}
.photo-panel__img {
  flex: 0 0 42%;
  background-size: cover; background-position: center;
  position: relative;
}
.photo-panel__img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(255,255,255,0.85) 100%);
}
.photo-panel__img--right { order: 1; }
.photo-panel__img--right::after {
  background: linear-gradient(to left, transparent 60%, rgba(245,246,248,0.9) 100%);
}
.photo-panel__content {
  flex: 1; padding: var(--slide-pad);
  display: flex; flex-direction: column; justify-content: center;
  overflow-y: auto;
}

/* ============================================================
   13i. PHOTO COLLAGE — contenido izquierda + mosaico de fotos
   ============================================================ */
.photo-collage {
  display: flex; flex: 1; overflow: hidden;
  margin-right: var(--banner-w);
}
.photo-collage__content {
  flex: 0 0 36%; padding: var(--slide-pad);
  display: flex; flex-direction: column;
  overflow-y: auto;
  border-right: 1px solid var(--gray-200);
}
.slide--dark .photo-collage__content {
  border-right-color: rgba(255,255,255,0.08);
}
.photo-collage__grid {
  flex: 1;
  display: grid;
  gap: 3px;
  overflow: hidden;
  min-width: 0;
}
.photo-collage__grid--3x2 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
}
.photo-collage__grid--2x2 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}
.photo-collage__grid--2h {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.photo-collage__grid--2h .photo-collage__cell {
  flex: 1;
}
.photo-collage__cell {
  background-size: cover; background-position: center;
  overflow: hidden; position: relative; min-height: 0;
}
.photo-collage__cell--tall  { grid-row: span 2; }
.photo-collage__cell--tall3 { grid-row: span 3; }
.photo-collage__cell--wide  { grid-column: span 2; }
.photo-collage__grid--2x3 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
}
/* Imagen principal en franja ancha superior, 3 fotos secundarias debajo */
.photo-collage__grid--top-wide {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 2fr 1fr;
}
.photo-collage__grid--top-wide .photo-collage__cell:first-child {
  grid-column: 1 / -1;
}
.photo-collage__grid--top-wide .photo-collage__cell:first-child img {
  object-position: center top;
}
.photo-collage__cell video,
.photo-collage__cell img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.photo-collage__footnotes {
  margin-top: auto; padding-top: 18px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  border-top: 1px solid var(--gray-200);
}
.slide--dark .photo-collage__footnotes {
  border-top-color: rgba(255,255,255,0.08);
}
.photo-collage__footnote-num {
  display: block; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--red); margin-bottom: 5px;
}
.photo-collage__footnote p {
  font-size: 0.72rem; line-height: 1.5;
  color: var(--gray-500); margin: 0;
}
.photo-collage__stats {
  margin-top: 28px; display: flex; gap: 28px; flex-wrap: wrap;
}
.photo-collage__stat-val {
  font-size: clamp(2rem, 3.5vw, 4rem);
  font-weight: 800; line-height: 1; display: block;
  color: var(--white);
}
.slide--light .photo-collage__stat-val,
.slide--gray .photo-collage__stat-val { color: var(--red); }
.photo-collage__stat-lbl {
  font-size: 0.72rem; line-height: 1.4; display: block; margin-top: 5px;
  color: rgba(255,255,255,0.5);
}
.slide--light .photo-collage__stat-lbl,
.slide--gray .photo-collage__stat-lbl { color: var(--gray-500); }

/* Número de subsección grande en columnas contexto-hero (modo stat) */
.contexto-hero__col--stat .contexto-hero__col-num {
  font-size: clamp(2.8rem, 5.5vw, 6rem);
  color: var(--white); opacity: 1; margin-bottom: 10px;
}

/* Icono pequeño encima del valor KPI en section-hero */
.section-hero__kpi-icon {
  width: clamp(64px, 7.5vw, 96px);
  height: clamp(64px, 7.5vw, 96px);
  color: rgba(255,255,255,0.25);
  margin-bottom: 6px; flex-shrink: 0;
}

/* ============================================================
   13d. CONTEXTO CRITERIO + PAPEL AED — S6
   ============================================================ */
.contexto-criterio {
  display: flex; flex: 1; overflow: hidden;
  margin-right: var(--banner-w); position: relative; z-index: 1;
}

.contexto-criterio__quote {
  flex: 0 0 58%;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--slide-pad);
  border-right: 1px solid rgba(255,255,255,0.07);
}

.contexto-criterio__label {
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red); display: block; margin-bottom: 36px;
}

.contexto-criterio__blockquote {
  margin: 0 0 28px 0;
  padding-left: 24px;
  border-left: 3px solid var(--red);
}

.contexto-criterio__blockquote p {
  font-size: clamp(1.3rem, 2.4vw, 2.2rem);
  font-weight: 700; line-height: 1.4;
  color: var(--white); letter-spacing: -0.02em;
  font-style: italic;
}

.contexto-criterio__context {
  font-size: 0.92rem; line-height: 1.78;
  color: rgba(255,255,255,0.5); max-width: 54ch;
}

.contexto-criterio__aed {
  flex: 1; display: flex; flex-direction: column;
  padding: var(--slide-pad); justify-content: center;
}

.contexto-criterio__aed-title {
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.03em; color: var(--white);
  line-height: 1.2; margin-bottom: 32px;
}

.contexto-criterio__hl {
  display: inline-block;
  background: var(--red); color: var(--white); padding: 0 10px 4px;
}

.contexto-criterio__puntos {
  display: flex; flex-direction: column; gap: 18px;
}

.contexto-criterio__puntos li {
  display: flex; gap: 14px; align-items: flex-start;
}

.contexto-criterio__arrow {
  color: var(--red); font-weight: 700; font-size: 1rem;
  flex-shrink: 0; margin-top: 2px;
}

.contexto-criterio__puntos li span:last-child {
  font-size: 0.9rem; line-height: 1.65; color: rgba(255,255,255,0.6);
}

/* ============================================================
   14. ABECEDARIO PARA DIRECTIVOS (S5)
   ============================================================ */
.abecedario__layout {
  flex-direction: row !important;
  gap: 56px; align-items: center;
}
.abecedario__text { flex: 0 0 46%; display: flex; flex-direction: column; }
.abecedario__text .section-number { margin-bottom: 8px; }
.abecedario__text .section-title  { margin-bottom: 4px; }

.abecedario__paras { margin-top: 14px; }
.abecedario__paras p {
  font-size: 0.97rem; color: var(--text-light);
  line-height: 1.8; margin-bottom: 14px;
}

.abecedario__tag { display: flex; gap: 8px; margin-top: 20px; }
.abecedario__tag span {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 5px 13px;
  border: 1.5px solid var(--red); border-radius: 2px; color: var(--red);
}

.abecedario__visual {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 24px;
}

.abc-grid {
  display: grid; grid-template-columns: repeat(5,1fr);
  gap: 7px; width: 100%; max-width: 380px;
}
.abc-grid span {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  font-weight: 800; color: var(--gray-400);
  border: 1px solid var(--gray-200); border-radius: 3px;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.abc-grid span:hover {
  color: var(--red); border-color: var(--red);
  background: rgba(202,18,65,0.05);
}
.abc-grid .abc-hl {
  color: var(--red); border-color: rgba(202,18,65,0.3);
  background: rgba(202,18,65,0.05);
}
.abc-caption {
  font-size: 0.82rem; color: var(--text-light);
  text-align: center; line-height: 1.7; font-style: italic;
}

/* ============================================================
   14b. MOCKUP DE REVISTA — Abecedario (S5)
   ============================================================ */
.revista-mockup {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 20px 0;
}
.revista-mockup__libro {
  position: relative;
  width: clamp(200px, 28vw, 340px);
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    -8px 0 0 rgba(0,0,0,0.08),
    0 20px 60px rgba(0,0,0,0.18),
    0 4px 12px rgba(0,0,0,0.1);
  transform: rotate(-2deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.revista-mockup__libro:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 30px 80px rgba(0,0,0,0.22), 0 6px 20px rgba(0,0,0,0.12);
}
.revista-mockup__libro img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.revista-mockup__badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--red); color: var(--white);
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 4px 8px; border-radius: 2px;
}

/* ============================================================
   15. CONOCIMIENTO, CRITERIO Y CONEXIONES (S6)
   ============================================================ */
.actividad__layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; flex: 1; overflow: hidden;
}

.actividad__col {
  overflow-y: auto; display: flex; flex-direction: column; gap: 0;
  padding-right: 4px;
}

.actividad__kpis {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 1px; background: var(--gray-200);
  border: 1px solid var(--gray-200); margin: 12px 0;
  flex-shrink: 0;
}
.act-kpi { background: var(--white); padding: 12px 14px; }
.act-kpi__val {
  display: block;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  font-weight: 800; color: var(--red);
  letter-spacing: -0.02em; line-height: 1;
}
.act-kpi__lbl {
  display: block;
  font-size: 0.64rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-light);
  margin-top: 3px;
}

/* ============================================================
   16. AED LIVE (S7)
   ============================================================ */
.aedlive__content {
  position: relative; z-index: 2;
  padding: var(--slide-pad);
  padding-right: calc(var(--slide-pad) + var(--banner-w) + 20px);
  padding-top: calc(var(--nav-h) + var(--prog-h) + var(--slide-pad));
  height: 100%;
  display: flex; align-items: flex-end; gap: 48px;
  padding-bottom: calc(var(--slide-pad) + 30px);
}

.aedlive__left {
  flex: 1; display: flex; flex-direction: column; gap: 14px;
}
.aedlive__body p {
  font-size: 0.97rem; color: rgba(255,255,255,0.82);
  line-height: 1.78; margin-bottom: 12px;
}
.aedlive__temas { display: flex; flex-wrap: wrap; gap: 8px; }
.aedlive__temas span {
  font-size: 0.67rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.07em; padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 2px; color: rgba(255,255,255,0.65);
}

.aedlive__right { flex: 0 0 300px; display: flex; flex-direction: column; gap: 16px; }
.aedlive__bigstat { display: flex; align-items: baseline; gap: 4px; }
.aedlive__num {
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 800; color: var(--white);
  letter-spacing: -0.05em; line-height: 1;
}
.aedlive__unit {
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  font-weight: 300; color: rgba(255,255,255,0.4);
}
.aedlive__statlab {
  font-size: 0.72rem; color: rgba(255,255,255,0.4);
  text-transform: uppercase; letter-spacing: 0.08em; line-height: 1.4;
}
.aedlive__quote {
  border-left: 3px solid var(--red); padding-left: 14px;
}
.aedlive__quote p {
  font-size: 0.9rem; color: rgba(255,255,255,0.82);
  font-style: italic; line-height: 1.65;
}
.aedlive__quote cite {
  display: block; font-size: 0.7rem;
  color: rgba(255,255,255,0.38); margin-top: 8px; font-style: normal;
}

/* ============================================================
   17. CÍRCULOS AED (S8)
   ============================================================ */
.circulos__layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; flex: 1; overflow: hidden;
}
.circulos__modelo { overflow-y: auto; }
.circulos__modelo p  { font-size: 0.97rem; color: var(--text-light); line-height: 1.8; margin-bottom: 12px; }
.circulos__cita      { border-left: 3px solid var(--red); padding-left: 16px; margin: 20px 0; }
.circulos__cita blockquote {
  font-size: clamp(0.88rem, 1.4vw, 1.05rem);
  font-weight: 300; font-style: italic;
  color: var(--dark); line-height: 1.65;
}

.circulos__escalado { display: flex; flex-direction: column; gap: 0; overflow-y: auto; }
.escalado__items { display: flex; gap: 24px; margin-top: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.escalado__item  { display: flex; flex-direction: column; gap: 4px; }
.escalado__num {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800; color: var(--red);
  line-height: 1; letter-spacing: -0.03em;
}
.escalado__item span:last-child { font-size: 0.75rem; color: var(--text-light); }

.tipo-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tipo-tags span {
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 5px 12px;
  border: 1px solid var(--gray-200); border-radius: 2px;
  color: var(--text-light); background: var(--white);
}

/* (Estilos S8 Círculos eliminados — slide reorganizado en S6 Conocimiento) */

/* ============================================================
   18. ACOMPAÑAR LA CARRERA DIRECTIVA (S7 — fusionado con Factor IA)
   ============================================================ */
.carrera__layout {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 0; flex: 1; overflow: hidden;
}
.carrera__col { overflow-y: auto; padding: 0 20px 0 4px; border-right: 1px solid var(--gray-200); }
.carrera__col:last-child { border-right: none; padding-right: 0; }

.carrera-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 4px; padding: 20px;
  margin-bottom: 16px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.carrera-card:last-child { margin-bottom: 0; }
.carrera-card:hover {
  box-shadow: 0 4px 20px rgba(202,18,65,0.09);
  border-color: rgba(202,18,65,0.25);
}

.carrera-card__header {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px;
}
.carrera-card__num {
  font-size: 0.66rem; font-weight: 700;
  color: var(--red); letter-spacing: 0.1em; text-transform: uppercase;
}
.carrera-card h3 {
  font-size: 0.92rem; text-transform: none;
  letter-spacing: 0; color: var(--dark); margin: 0;
}
.carrera-card p {
  font-size: 0.93rem; color: var(--text-light); line-height: 1.75; margin-bottom: 10px;
}
.carrera-card__kpis {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--gray-200);
  display: flex; flex-direction: column; gap: 4px;
}
.carrera-card__kpis div { display: flex; align-items: baseline; gap: 7px; }
.carrera-card__kpis strong { font-size: 1.15rem; font-weight: 800; color: var(--red); }
.carrera-card__kpis span  { font-size: 0.75rem; color: var(--text-light); }

/* ============================================================
   19. FACTOR IA (S10)
   ============================================================ */
.factoria__bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(circle, rgba(202,18,65,0.11) 1px, transparent 1px);
  background-size: 36px 36px;
}
.factoria__content {
  position: relative; z-index: 2;
  padding: var(--slide-pad);
  padding-right: calc(var(--slide-pad) + var(--banner-w) + 20px);
  padding-top: calc(var(--nav-h) + var(--prog-h) + var(--slide-pad));
  height: 100%;
  display: flex; align-items: center; gap: 60px;
}
.factoria__left { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.factoria__body p {
  font-size: 0.97rem; color: rgba(255,255,255,0.78);
  line-height: 1.8; margin-bottom: 12px;
}
.factoria__right { flex: 0 0 300px; display: flex; flex-direction: column; gap: 24px; }
.factoria__stat  {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.factoria__num {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800; color: var(--white);
  letter-spacing: -0.05em; line-height: 1;
}
.factoria__lab {
  font-size: 0.72rem; color: rgba(255,255,255,0.4);
  text-transform: uppercase; letter-spacing: 0.07em; line-height: 1.5;
}
.factoria__programas h3 { color: rgba(255,255,255,0.38); margin-bottom: 14px; }
.factoria__programas ul { display: flex; flex-direction: column; gap: 14px; }
.factoria__programas li { display: flex; gap: 12px; align-items: flex-start; }
.fp-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); margin-top: 6px; flex-shrink: 0;
}
.factoria__programas strong {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: rgba(255,255,255,0.8); margin-bottom: 2px;
}
.factoria__programas p { font-size: 0.74rem; color: rgba(255,255,255,0.4); line-height: 1.5; }
.factoria__director {
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.75rem; color: rgba(255,255,255,0.4);
}
.factoria__director strong { display: block; color: rgba(255,255,255,0.75); font-size: 0.88rem; margin-top: 3px; }

/* ============================================================
   20. LA ORGANIZACIÓN (S11)
   ============================================================ */
.org__layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; flex: 1; overflow: hidden;
}
.org__col { overflow-y: auto; padding-right: 4px; }
.org__link {
  color: var(--red); text-decoration: underline;
  text-decoration-color: rgba(202,18,65,0.35);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}
.org__link:hover { text-decoration-color: var(--red); }

/* ============================================================
   21. CIERRE — MIRANDO 2026 (S12)
   ============================================================ */
.cierre__content {
  position: relative; z-index: 2;
  padding: var(--slide-pad);
  padding-right: calc(var(--slide-pad) + var(--banner-w) + 20px);
  padding-top: calc(var(--nav-h) + var(--prog-h) + 20px);
  height: 100%;
  display: flex; flex-direction: column; gap: 14px;
  overflow-y: auto;
}
.cierre__top { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 4px; }
.cierre__top .section-number { flex-shrink: 0; }

.cierre__subtitulo {
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  color: rgba(255,255,255,0.55); font-weight: 300;
  letter-spacing: 0.04em; margin-top: 6px;
}

.cierre__cols {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 40px; flex: 1;
}
.cierre__col h3 { color: rgba(255,255,255,0.42); }
.cierre__col p  { font-size: 0.97rem; color: rgba(255,255,255,0.82); margin-bottom: 12px; line-height: 1.78; }
.cierre__col--quote { display: flex; align-items: flex-start; }

.cierre__lineas { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.cierre__lineas li {
  font-size: 0.86rem; color: rgba(255,255,255,0.76);
  padding-left: 16px; position: relative; line-height: 1.6;
}
.cierre__lineas li::before {
  content: '—'; position: absolute; left: 0;
  color: rgba(255,255,255,0.28);
}
.cierre__lineas li strong { font-weight: 600; color: rgba(255,255,255,0.92); }

.cierre__big {
  border-left: 4px solid rgba(255,255,255,0.3);
  padding-left: 20px;
}
.cierre__big p {
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 300; font-style: italic;
  color: rgba(255,255,255,0.92); line-height: 1.55;
}

.cierre__footer {
  display: flex; align-items: center; gap: 24px;
  padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.18);
  flex-shrink: 0;
}
.cierre__logo { height: 28px; width: auto; }
.cierre__footer p { font-size: 0.74rem; color: rgba(255,255,255,0.38); letter-spacing: 0.06em; flex: 1; }

/* (controles movidos al sidebar — ver sección 4b) */

/* ============================================================
   22b. INDICADOR DE SCROLL VERTICAL — forma de ratón (mouse icon)
   El div vacío adopta forma de cápsula; ::before es la rueda animada.
   La lógica JS lo añade como último hijo de cada columna scrollable.
   ============================================================ */
.scroll-hint {
  position: sticky;
  bottom: 16px;
  width: 20px; height: 32px;
  border: 1.5px solid var(--red);
  border-radius: 10px;
  margin: -40px auto 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  z-index: 5;
  display: flex;
  justify-content: center;
  padding-top: 5px;
  flex-shrink: 0;
}
/* Rueda de scroll dentro del ratón */
.scroll-hint::before {
  content: '';
  width: 3px; height: 6px;
  border-radius: 2px;
  background: var(--red);
}
.scroll-hint.is-visible { opacity: 1; }
.scroll-hint.is-visible::before {
  animation: mouse-wheel 1.6s ease-in-out infinite;
}

/* En columnas oscuras — borde y rueda en blanco semitransparente */
.sintesis__left .scroll-hint,
.contexto__col .scroll-hint,
.conoc__panel-body .scroll-hint { border-color: rgba(255,255,255,0.35); }

.sintesis__left .scroll-hint::before,
.contexto__col .scroll-hint::before,
.conoc__panel-body .scroll-hint::before { background: rgba(255,255,255,0.55); }

@keyframes mouse-wheel {
  0%        { transform: translateY(0);    opacity: 1; }
  70%       { transform: translateY(10px); opacity: 0; }
  71%, 100% { transform: translateY(0);    opacity: 0; }
}

/* ============================================================
   22c. FADE INFERIOR EN COLUMNAS SCROLLABLES
   Degradado que indica que hay más contenido abajo.
   Técnica: background-attachment local (portada) + scroll (sombra).
   ============================================================ */

/* Fondo blanco */
.split__text,
.org__col,
.circulos__modelo,
.circulos__escalado {
  background-color: var(--white);
  background-image:
    linear-gradient(var(--white), var(--white)),
    linear-gradient(transparent, rgba(0,0,0,0.07));
  background-size: 100% 80px, 100% 80px;
  background-position: bottom, bottom;
  background-repeat: no-repeat;
  background-attachment: local, scroll;
}

/* Fondo gris */
.actividad__col,
.carrera__col {
  background-color: var(--gray-100);
  background-image:
    linear-gradient(var(--gray-100), var(--gray-100)),
    linear-gradient(transparent, rgba(0,0,0,0.07));
  background-size: 100% 80px, 100% 80px;
  background-position: bottom, bottom;
  background-repeat: no-repeat;
  background-attachment: local, scroll;
}

/* Fondo oscuro — paneles del slide Conocimiento */
.conoc__panel-body {
  background-color: var(--dark);
  background-image:
    linear-gradient(var(--dark), var(--dark)),
    linear-gradient(transparent, rgba(0,0,0,0.55));
  background-size: 100% 80px, 100% 80px;
  background-position: bottom, bottom;
  background-repeat: no-repeat;
  background-attachment: local, scroll;
}

/* Fondo oscuro */
.sintesis__left {
  background-color: var(--dark);
  background-image:
    linear-gradient(var(--dark), var(--dark)),
    linear-gradient(transparent, rgba(0,0,0,0.5));
  background-size: 100% 80px, 100% 80px;
  background-position: bottom, bottom;
  background-repeat: no-repeat;
  background-attachment: local, scroll;
}

/* Scrollbars estilizadas — claras */
.split__text::-webkit-scrollbar,
.actividad__col::-webkit-scrollbar,
.carrera__col::-webkit-scrollbar,
.org__col::-webkit-scrollbar,
.circulos__modelo::-webkit-scrollbar,
.circulos__escalado::-webkit-scrollbar { width: 3px; }

.split__text::-webkit-scrollbar-track,
.actividad__col::-webkit-scrollbar-track,
.carrera__col::-webkit-scrollbar-track,
.org__col::-webkit-scrollbar-track,
.circulos__modelo::-webkit-scrollbar-track,
.circulos__escalado::-webkit-scrollbar-track { background: transparent; }

.split__text::-webkit-scrollbar-thumb,
.actividad__col::-webkit-scrollbar-thumb,
.carrera__col::-webkit-scrollbar-thumb,
.org__col::-webkit-scrollbar-thumb,
.circulos__modelo::-webkit-scrollbar-thumb,
.circulos__escalado::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.14); border-radius: 3px;
}

/* Scrollbars estilizadas — oscuras */
.sintesis__left::-webkit-scrollbar,
.contexto__col::-webkit-scrollbar,
.conoc__panel-body::-webkit-scrollbar { width: 3px; }

.sintesis__left::-webkit-scrollbar-track,
.contexto__col::-webkit-scrollbar-track,
.conoc__panel-body::-webkit-scrollbar-track { background: transparent; }

.sintesis__left::-webkit-scrollbar-thumb,
.contexto__col::-webkit-scrollbar-thumb,
.conoc__panel-body::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18); border-radius: 3px;
}

/* (dots-nav eliminado por diseño — navegación por flechas únicamente) */

/* (banner-widget movido al sidebar — ver sección 4b) */

/* ============================================================
   25. ANIMACIONES DE APARICIÓN
   ============================================================ */
@keyframes anim-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in { opacity: 0; transform: translateY(18px); }
.animate-in.is-visible { animation: anim-in 0.55s ease both; }

.animate-in:nth-child(2).is-visible { animation-delay: 0.07s; }
.animate-in:nth-child(3).is-visible { animation-delay: 0.14s; }
.animate-in:nth-child(4).is-visible { animation-delay: 0.21s; }
.animate-in:nth-child(5).is-visible { animation-delay: 0.28s; }
.animate-in:nth-child(6).is-visible { animation-delay: 0.35s; }

/* ============================================================
   26. VISOR PDF — MODAL ABECEDARIO
   ============================================================ */
.pdf-modal {
  position: fixed; inset: 0; z-index: 600;
  display: none; flex-direction: column;
  align-items: stretch;
}
.pdf-modal.is-open {
  display: flex;
  animation: pdfFadeIn 0.28s ease forwards;
}
@keyframes pdfFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Fondo oscuro clicable para cerrar */
.pdf-modal__bg {
  position: absolute; inset: 0;
  background: rgba(5,6,10,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: pointer;
}

/* Cabecera */
.pdf-modal__header {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(0,0,0,0.25);
  flex-shrink: 0;
}
.pdf-modal__title {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
}
.pdf-modal__close {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s, background 0.2s;
}
.pdf-modal__close:hover { color: var(--white); background: rgba(255,255,255,0.09); }
.pdf-modal__close svg  { width: 18px; height: 18px; }

/* Escenario — contiene canvas + flechas */
.pdf-modal__stage {
  position: relative; z-index: 2;
  flex: 1; display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 28px 80px;
}

/* Flechas laterales */
.pdf-modal__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--red); color: var(--white);
  transition: background 0.2s, transform 0.2s;
  z-index: 3;
}
.pdf-modal__arrow svg { width: 22px; height: 22px; }
.pdf-modal__arrow:hover { background: var(--red-dark); transform: translateY(-50%) scale(1.08); }
.pdf-modal__arrow:disabled { opacity: 0.25; cursor: default; pointer-events: none; }
.pdf-modal__arrow--prev { left: 20px; }
.pdf-modal__arrow--next { right: 20px; }

/* Contenedor del page-wrap — alberga loading + flipbook */
.pdf-modal__page-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  overflow: hidden;
}

/* Indicador de carga con barra de progreso */
.pdf-modal__loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px; color: rgba(255,255,255,0.4);
  font-size: 0.8rem; letter-spacing: 0.06em;
}
.pdf-spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.08);
  border-top-color: var(--red);
  animation: pdfSpin 0.75s linear infinite;
}
@keyframes pdfSpin { to { transform: rotate(360deg); } }

.pdf-progress {
  width: 200px; height: 3px; border-radius: 3px;
  background: rgba(255,255,255,0.08); overflow: hidden;
}
.pdf-progress__fill {
  height: 100%; width: 0%; border-radius: 3px;
  background: var(--red);
  transition: width 0.3s ease;
}

/* Contenedor del visor PDF — canvas centrado */
.flipbook-container {
  width: 100%; height: 100%;
  display: none;
  align-items: center; justify-content: center;
  overflow: hidden; position: relative;
  cursor: default; user-select: none;
}
.flipbook-container.is-ready   { display: flex; }
.flipbook-container.is-zoomed  { cursor: grab; }
.flipbook-container.is-panning { cursor: grabbing; }
#pdfCanvas { flex-shrink: 0; transform-origin: center center; }

/* Pie — contador + acciones */
.pdf-modal__footer {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  gap: 28px; padding: 13px 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: rgba(0,0,0,0.25);
  flex-shrink: 0;
}
.pdf-modal__counter {
  font-size: 0.82rem; color: rgba(255,255,255,0.4); letter-spacing: 0.06em;
}
.pdf-modal__counter strong { color: var(--white); font-size: 1rem; font-weight: 700; }
.pdf-modal__actions { display: flex; gap: 8px; }

.pdf-action-btn {
  width: 38px; height: 38px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.05);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.pdf-action-btn:hover { color: var(--white); background: rgba(255,255,255,0.11); }
.pdf-action-btn svg { width: 17px; height: 17px; }

/* Cursor "abrir" en la portada del Abecedario */
.revista-mockup__libro {
  cursor: pointer;
}
.revista-mockup__libro::after {
  content: 'Leer publicación';
  position: absolute; bottom: -36px; left: 50%; transform: translateX(-50%);
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--red);
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 0.25s;
}
.revista-mockup__libro:hover::after { opacity: 1; }

/* Pantalla completa — ajuste del canvas */
:fullscreen .pdf-modal__stage  { padding: 40px 90px; }

@media (max-width: 768px) {
  .pdf-modal__stage  { padding: 16px 56px; }
  .pdf-modal__arrow  { width: 36px; height: 36px; }
  .pdf-modal__arrow--prev { left: 8px; }
  .pdf-modal__arrow--next { right: 8px; }
  .pdf-modal__title  { display: none; }
}

/* ============================================================
   27. CIFRAS VISUAL — GRID EDITORIAL (S3)
   ============================================================ */
.cifras-visual {
  display: grid;
  grid-template-columns: 260px 1fr;
  flex: 1;
  overflow: hidden;
  margin-right: var(--banner-w);
}

.cifras-visual__header {
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--slide-pad);
  border-right: 1px solid rgba(255,255,255,0.07);
}
.cifras-visual__header .section-number { margin-bottom: 10px; }
.cifras-visual__lead {
  margin-top: 18px;
  font-size: 0.93rem; line-height: 1.72;
  color: rgba(255,255,255,0.55);
}
.cifras-visual__footer {
  margin-top: auto; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; flex-direction: column; gap: 5px;
  font-size: 0.68rem; color: rgba(255,255,255,0.28);
  letter-spacing: 0.04em;
}

/* Grid 4×2 de tarjetas de estadística */
.cifras-visual__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
}

.cifra-card {
  display: flex; flex-direction: column;
  justify-content: flex-end; align-items: flex-start;
  padding: clamp(16px, 2vw, 28px);
  background: var(--dark);
  position: relative; overflow: hidden;
  transition: background 0.25s;
}
.cifra-card:hover { background: rgba(255,255,255,0.025); }

/* Icono decorativo en la esquina superior derecha */
.cifra-card__icon {
  position: absolute; top: 16px; right: 16px;
  width: 28px; height: 28px;
  color: rgba(255,255,255,0.18);
}
.cifra-card__icon svg { width: 100%; height: 100%; }

/* Cifra principal — grande, en primer plano */
.cifra-card__num {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 800; color: var(--white);
  line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  display: block; margin-bottom: 4px;
}

/* Insignia de crecimiento (ej: +14% vs 2024) */
.cifra-card__badge {
  font-size: 0.62rem; font-weight: 700;
  color: var(--red); display: block;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 4px;
}

/* Etiqueta descriptiva */
.cifra-card__lbl {
  font-size: 0.8rem; color: rgba(255,255,255,0.6);
  display: block; line-height: 1.3;
}

/* Categoría — pie pequeño */
.cifra-card__cat {
  font-size: 0.62rem; color: rgba(255,255,255,0.28);
  display: block; margin-top: 6px;
  letter-spacing: 0.05em;
}

/* Tarjeta destacada — con acento rojo */
.cifra-card--accent { background: rgba(202,18,65,0.10) !important; }
.cifra-card--accent .cifra-card__num { color: var(--red); }
.cifra-card--accent:hover { background: rgba(202,18,65,0.15) !important; }

/* ============================================================
   27b. CIFRAS HERO — S3 (nuevo diseño editorial)
   ============================================================ */
.cifras-hero {
  display: flex;
  flex: 1;
  overflow: hidden;
  margin-right: var(--banner-w);
}

.cifras-hero__left {
  flex: 0 0 36%;
  position: relative;
  display: flex; flex-direction: column;
  padding: var(--slide-pad);
  border-right: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
}

.cifras-hero__ghost {
  position: absolute;
  top: 0; left: -0.04em;
  font-size: clamp(10rem, 19vw, 22rem);
  font-weight: 800; letter-spacing: -0.06em;
  color: rgba(202, 18, 65, 0.08);
  line-height: 1; user-select: none; pointer-events: none;
  z-index: 0;
}

.cifras-hero__title-block {
  position: relative; z-index: 1;
}

.cifras-hero__pre {
  font-size: clamp(2rem, 4vw, 4.6rem);
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.03em; line-height: 1.08;
  color: var(--white); margin-bottom: 4px;
}

.cifras-hero__hl {
  display: inline-block;
  font-size: clamp(2rem, 4vw, 4.6rem);
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.03em; line-height: 1.15;
  background: var(--red); color: var(--white);
  padding: 0 12px 6px; margin-bottom: 32px;
}

.cifras-hero__lead {
  font-size: 0.9rem; line-height: 1.75;
  color: rgba(255,255,255,0.45);
  position: relative; z-index: 1;
}

.cifras-hero__pullquote {
  position: relative; z-index: 1;
  margin: 0;
  padding: 18px 0 18px 22px;
  border-left: 4px solid var(--red);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  font-weight: 700; font-style: normal;
  line-height: 1.5;
  color: var(--white);
}
.slide--light .cifras-hero__pullquote { color: var(--dark); }

.cifras-hero__nota {
  margin-top: auto; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; flex-direction: column; gap: 4px;
  font-size: 0.65rem; color: rgba(255,255,255,0.22);
  letter-spacing: 0.04em; position: relative; z-index: 1;
}

/* Columna derecha: subsección + grid */
.cifras-hero__right {
  flex: 1;
  display: flex; flex-direction: column;
  overflow: hidden;
}

.cifras-hero__sub-header {
  padding: clamp(24px, 3.5vw, 48px);
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.cifras-hero__sub-num {
  display: block;
  font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1;
  color: var(--red); opacity: 0.8; margin-bottom: 0;
}
.slide--light .cifras-hero__sub-num { opacity: 1; }
.cifras-hero__sub-title {
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  font-weight: 700; color: var(--dark);
  line-height: 1.25; margin-bottom: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.cifras-hero__sub-lead {
  font-size: 0.87rem; line-height: 1.78;
  color: var(--gray-700); margin: 0;
}

/* Grid 2×2 de métricas clave */
.cifras-hero__grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.06);
}

.cifras-hero__card {
  display: flex; flex-direction: column;
  justify-content: flex-end; align-items: flex-start;
  padding: clamp(14px, 1.8vw, 24px);
  background: var(--dark); position: relative;
  overflow: hidden; transition: background 0.25s;
}
.cifras-hero__card:hover { background: rgba(255,255,255,0.03); }

.cifras-hero__icon {
  width: clamp(40px, 4.5vw, 60px);
  height: clamp(40px, 4.5vw, 60px);
  color: rgba(255,255,255,0.18);
  margin-bottom: 6px; flex-shrink: 0;
}
.cifras-hero__icon svg { width: 100%; height: 100%; }

.cifras-hero__card-num {
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 800; color: var(--white);
  line-height: 1; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  display: block; margin-bottom: 4px;
}

.cifras-hero__card-badge {
  font-size: 0.62rem; font-weight: 700;
  color: var(--red); display: block;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 4px;
}

.cifras-hero__card-lbl {
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  color: rgba(255,255,255,0.65);
  display: block; font-weight: 600; line-height: 1.2;
}

.cifras-hero__card-sub {
  font-size: 0.62rem; color: rgba(255,255,255,0.28);
  display: block; margin-top: 6px; letter-spacing: 0.04em;
}

.cifras-hero__card--accent { background: rgba(202,18,65,0.10) !important; }
.cifras-hero__card--accent .cifras-hero__card-num { color: var(--red) !important; }
.cifras-hero__card--accent:hover { background: rgba(202,18,65,0.16) !important; }

/* ============================================================
   27c. MAGNITUDES — S3b (4 columnas detalle)
   ============================================================ */
.magnitudes {
  display: flex; flex-direction: column;
  flex: 1; overflow: hidden;
  padding: var(--slide-pad);
  padding-right: calc(var(--slide-pad) + var(--banner-w) + 20px);
  gap: 24px;
}

.magnitudes__header {
  flex-shrink: 0;
  padding-bottom: 10px;
  display: flex; flex-direction: column; gap: 6px;
}

.magnitudes__pre {
  display: block;
  font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1;
  color: var(--red); opacity: 0.8;
}

.magnitudes__title {
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  font-weight: 700; line-height: 1.25;
  color: var(--white);
}

.magnitudes__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(255,255,255,0.06);
  flex: 1; overflow: hidden;
}

.magnitudes__col {
  display: grid;
  grid-template-areas: "icon cat" "stats stats";
  grid-template-columns: 20px 1fr;
  grid-template-rows: auto 1fr;
  gap: 10px 10px;
  padding: clamp(14px, 1.5vw, 22px);
  background: var(--dark);
  align-content: start;
}

.magnitudes__col--accent { background: rgba(202,18,65,0.07) !important; }

.magnitudes__col-icon {
  grid-area: icon;
  width: 20px; height: 20px;
  color: var(--red); opacity: 0.65;
  flex-shrink: 0; margin-top: 1px;
}
.magnitudes__col-icon svg { width: 100%; height: 100%; }

.magnitudes__col-cat {
  grid-area: cat;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  align-self: end;
}

.magnitudes__col-stats {
  grid-area: stats;
  display: flex; flex-direction: column; gap: 10px;
}

.magnitudes__stat {
  display: flex; flex-direction: column; gap: 2px;
}

.magnitudes__stat-num {
  font-size: clamp(1.1rem, 1.6vw, 1.7rem);
  font-weight: 800; color: var(--white);
  line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.magnitudes__stat-num--sm  { font-size: clamp(0.9rem, 1.3vw, 1.3rem); }
.magnitudes__stat-num--static { }

.magnitudes__stat-lbl {
  font-size: 0.65rem; color: rgba(255,255,255,0.4);
  line-height: 1.3;
}

.magnitudes__stat-badge {
  font-size: 0.58rem; font-weight: 700;
  color: var(--red); letter-spacing: 0.08em;
  text-transform: uppercase; margin-top: 2px;
}

.magnitudes__stat--text { margin-top: 4px; }
.magnitudes__stat-desc {
  font-size: 0.72rem; line-height: 1.55;
  color: rgba(255,255,255,0.45);
  padding-left: 10px;
  border-left: 2px solid rgba(202,18,65,0.45);
  display: block;
}

/* Variante sobre fondo claro (slide--light) */
.slide--light .magnitudes__title         { color: var(--dark); }
.slide--light .magnitudes__cols          { background: rgba(0,0,0,0.06); }
.slide--light .magnitudes__col           { background: var(--white); }
.slide--light .magnitudes__col--accent   { background: rgba(202,18,65,0.05) !important; }
.slide--light .magnitudes__col-cat       { color: rgba(0,0,0,0.38); border-bottom-color: rgba(0,0,0,0.08); }
.slide--light .magnitudes__stat-num      { color: var(--dark); }
.slide--light .magnitudes__stat-lbl      { color: rgba(0,0,0,0.5); }
.slide--light .magnitudes__stat-desc     { color: rgba(0,0,0,0.5); border-left-color: rgba(202,18,65,0.4); }

/* ============================================================
   28. CONOCIMIENTO, CRITERIO Y CONEXIONES — 3 PANELES (S6)
   ============================================================ */
.conoc__layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  flex: 1;
  gap: 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-right: var(--banner-w);
}

.conoc__panel {
  display: flex; flex-direction: column;
  border-right: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
}
.conoc__panel:last-child { border-right: none; }

.conoc__panel-top {
  flex-shrink: 0;
  padding: clamp(20px, 2.5vw, 36px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Panel 1: lleva section-number + h2 */
.conoc__panel:first-child .conoc__panel-top {
  display: flex; flex-direction: column; gap: 8px;
}

.conoc__panel-label {
  display: block;
  font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--red); margin-bottom: 6px;
}
.conoc__panel-sub {
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  font-weight: 700; color: var(--white);
  line-height: 1.2; letter-spacing: -0.01em;
}

.conoc__panel-body {
  flex: 1; overflow-y: auto;
  padding: clamp(16px, 2vw, 28px);
  display: flex; flex-direction: column; gap: 16px;
}

/* KPIs en el panel de Agenda */
.conoc__kpis {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.conoc-kpi {
  background: rgba(255,255,255,0.03);
  padding: 12px 14px; display: flex; flex-direction: column; gap: 3px;
}
.conoc-kpi__val {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 800; color: var(--white);
  line-height: 1; letter-spacing: -0.02em;
}
.conoc-kpi__lbl {
  font-size: 0.66rem; color: rgba(255,255,255,0.42);
  text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.4;
}

/* Texto de párrafo en paneles oscuros */
.conoc__text p {
  font-size: 0.95rem; color: rgba(255,255,255,0.72);
  line-height: 1.78; margin-bottom: 12px;
}

/* Tags de temas */
.conoc__tags {
  display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; flex-shrink: 0;
}
.conoc__tags span {
  font-size: 0.64rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.07em; padding: 4px 11px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 2px; color: rgba(255,255,255,0.55);
}

/* Stat grande AED Live */
.conoc__big-stat {
  display: flex; align-items: baseline; gap: 4px; flex-shrink: 0;
}
.conoc__big-num {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800; color: var(--white);
  letter-spacing: -0.05em; line-height: 1;
}
.conoc__big-unit {
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  font-weight: 300; color: rgba(255,255,255,0.38);
}
.conoc__big-lbl {
  font-size: 0.7rem; color: rgba(255,255,255,0.38);
  text-transform: uppercase; letter-spacing: 0.08em; line-height: 1.4;
}

/* Progresión visual Círculos: 17→38→50 */
.circ__progress {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
  padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.circ-step { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.circ-step__num {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800; color: rgba(255,255,255,0.35);
  line-height: 1; letter-spacing: -0.03em;
}
.circ-step--active .circ-step__num { color: var(--white); }
.circ-step--target .circ-step__num { color: var(--red); }
.circ-step__lbl {
  font-size: 0.6rem; color: rgba(255,255,255,0.35);
  text-align: center; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.06em;
}
.circ-arrow {
  font-size: 1.2rem; color: rgba(255,255,255,0.2); flex-shrink: 0;
}

/* ============================================================
   29. FACTOR IA — COLUMNA INTEGRADA EN CARRERA DIRECTIVA (S7)
   ============================================================ */
.carrera__col--ia {
  background: var(--dark);
  overflow: hidden;
  border-right: none;
  border-left: 1px solid var(--gray-200);
}

.factoria__inner {
  padding: clamp(16px, 2vw, 28px);
  height: 100%; overflow-y: auto;
  display: flex; flex-direction: column; gap: 16px;
}

.factoria__label {
  display: block; font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--red);
}
.factoria__title {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 800; color: var(--white);
  line-height: 1.15; letter-spacing: -0.02em;
  text-transform: none;
}
.carrera__col--ia .factoria__stat {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.carrera__col--ia .factoria__num {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800; color: var(--white);
  letter-spacing: -0.04em; line-height: 1;
}
.carrera__col--ia .factoria__lab {
  font-size: 0.7rem; color: rgba(255,255,255,0.38);
  text-transform: uppercase; letter-spacing: 0.07em; line-height: 1.5;
}
.factoria__body p {
  font-size: 0.93rem; color: rgba(255,255,255,0.68);
  line-height: 1.78; margin-bottom: 10px;
}
.carrera__col--ia .factoria__programas { display: flex; flex-direction: column; gap: 12px; }
.carrera__col--ia .factoria__programas li { display: flex; gap: 10px; align-items: flex-start; }
.carrera__col--ia .factoria__programas strong {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: rgba(255,255,255,0.8); margin-bottom: 2px;
}
.carrera__col--ia .factoria__programas p {
  font-size: 0.72rem; color: rgba(255,255,255,0.38); line-height: 1.5; margin-bottom: 0;
}

/* ============================================================
   30. RESPONSIVE — TABLET (≤ 1100px)
   ============================================================ */
@media (max-width: 1100px) {
  :root { --banner-w: 0px; }
  .sidebar { display: none; }
  .nav { right: 0; }

  .indice__grid        { grid-template-columns: 1fr; }
  .indice__cols        { overflow-x: auto; }
  .contexto__wrap      { grid-template-columns: 200px 1fr; gap: 24px; }
  .contexto-hero__cols { grid-template-columns: 1fr; overflow-y: auto; }
  .contexto-hero__col  { max-height: none; overflow-y: visible; }
  .contexto-criterio   { flex-direction: column; }
  .abecedario__layout  { flex-direction: column !important; gap: 28px; align-items: flex-start; }
  .abecedario__text    { flex: none; width: 100%; }
  .abecedario__visual  { width: 100%; }
  .abc-cover-btn       { max-width: 110px; margin-top: 8px; }
  .cifras-visual       { grid-template-columns: 200px 1fr; }
  .cifras-visual__grid { grid-template-columns: repeat(4, 1fr); }
  .cifras-hero__grid   { grid-template-columns: repeat(2, 1fr); }
  .magnitudes__cols    { grid-template-columns: repeat(2, 1fr); }
  .conoc__layout       { grid-template-columns: repeat(3, 1fr); }
  .carrera__layout     { grid-template-columns: 1fr 1fr 1fr; }
}

/* ============================================================
   27. RESPONSIVE — MÓVIL (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  body { overflow: auto; height: auto; }
  .slider { flex-direction: column; width: 100%; transform: none !important; transition: none !important; }
  .slide { flex: none; width: 100%; height: auto; min-height: 100dvh; padding-top: calc(var(--nav-h) + 20px); }

  .slide--split { flex-direction: column !important; }

  .split__text   { flex: none; overflow: visible; margin-right: 0; }
  .carta__left   { flex: none; }
  .carta__foto-wrap { height: 300px; }

  .slide__inner    { padding-right: var(--slide-pad); }
  .indice__wrap    { padding-right: var(--slide-pad); }
  .contexto__wrap  { padding-right: var(--slide-pad); grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .contexto-hero   { flex-direction: column; }
  .contexto-hero__left { flex: none; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .contexto-hero__cols { overflow-y: auto; }
  .contexto-criterio__quote { flex: none; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .contexto__cols  { grid-template-columns: 1fr; }
  .cierre__content { padding-right: var(--slide-pad); }

  .cifras-visual       { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .cifras-visual__grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, auto); }
  .cifras-hero         { flex-direction: column; }
  .cifras-hero__left   { flex: none; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .cifras-hero__right  { flex: 1; overflow-y: auto; }
  .cifras-hero__grid   { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  /* Cards 2.1: simplificar igual que KPI del 5.1 */
  .cifras-hero__card   { justify-content: flex-start; padding: 14px; }
  .cifras-hero__card-sub, .cifras-hero__card-badge { display: none; }
  /* 3.1 / 3.3: quitar scroll interno en las columnas de texto */
  .contexto-hero__col  { overflow-y: visible !important; max-height: none !important; }
  .magnitudes          { overflow-y: auto; }
  .magnitudes__cols    { grid-template-columns: repeat(2, 1fr); overflow: visible; }

  .conoc__layout  { grid-template-columns: 1fr; grid-template-rows: auto; overflow-y: auto; }
  .conoc__panel   { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }

  .org__layout    { grid-template-columns: 1fr; }
  .cierre__cols   { grid-template-columns: 1fr; }
  .carrera__layout { grid-template-columns: 1fr; }
  .carrera__col   { border-right: none; border-bottom: 1px solid var(--gray-200); padding: 0 0 16px 0; }
  .carrera__col--ia { border-left: none; border-top: 2px solid var(--red); }
  .abecedario__layout { flex-direction: column !important; }
  .indice__grid   { grid-template-columns: 1fr; }
  .indice__cols   { overflow-x: auto; }
  .indice__col    { min-width: 160px; border-bottom: 1px solid var(--gray-200); }

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

  /* (controls en sidebar — oculto en móvil con el sidebar) */
}

/* ============================================================
   JUNTA DIRECTIVA — Slide grid + Modal
   ============================================================ */

/* Layout del slide */
/* ── Layout Junta Directiva — dos paneles ── */
.juntab-wrap {
  display: flex; flex: 1; overflow: hidden;
  margin-right: var(--banner-w);
}
.juntab-left {
  flex: 0 0 52%; display: flex; flex-direction: column;
  overflow-y: auto; padding: clamp(16px,1.8vw,28px);
  border-right: 1px solid var(--gray-200);
  gap: 16px;
}
.juntab-right {
  flex: 1; display: flex; flex-direction: column;
  overflow-y: auto; padding: clamp(16px,1.8vw,28px);
  gap: 10px;
}
.juntab-header .contexto-hero__pre { margin-bottom: 2px; }
.juntab-header .contexto-hero__hl  { margin-bottom: 6px; font-size: clamp(1.8rem,2.7vw,3rem); }
.juntab-hint {
  font-size: 0.78rem; color: var(--gray-400); line-height: 1.5;
}
.juntab-group { flex-shrink: 0; }
.juntab-group + .juntab-group { margin-top: 18px; }
.juntab-group__label {
  font-size: 0.82rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red); margin-bottom: 8px;
}

/* Grids */
.juntab-grid { display: grid; gap: 6px; }
/* Presidencia: 3 tarjetas grandes */
.juntab-grid--pres   { grid-template-columns: repeat(3, 1fr); gap: 10px; }
/* Mesa Ejecutiva: 3 arriba + 2 centrados abajo */
.juntab-grid--mesa { grid-template-columns: repeat(6, 1fr); gap: 8px; }
.juntab-grid--mesa .junta-card:nth-child(-n+3) { grid-column: span 2; }
.juntab-grid--mesa .junta-card:nth-child(4)    { grid-column: 2 / span 2; grid-row: 2; }
.juntab-grid--mesa .junta-card:nth-child(5)    { grid-column: 4 / span 2; grid-row: 2; }
/* Extended: 4 columnas × 3 filas para mesa ejecutiva + presidentes territoriales */
.juntab-grid--extended { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.juntab-grid--extended .junta-card__photo { max-width: 80px; }
/* Vocales: 4 columnas */
.juntab-grid--vocales { grid-template-columns: repeat(4, 1fr); gap: 8px 6px; }
/* Territorios: 3 tarjetas medianas, centradas */
.juntab-grid--territorios {
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  gap: 20px 16px;
}

/* Tarjeta base */
.junta-card {
  background: none; border: none; padding: 0;
  cursor: pointer; text-align: left;
  display: flex; flex-direction: column; align-items: center;
  border-radius: 6px; overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.junta-card:hover { transform: translateY(-3px); }
.junta-card__photo {
  width: 100%; aspect-ratio: 1 / 1;
  object-fit: cover; object-position: center top;
  display: block; background: var(--gray-100);
  border-radius: 50%;
}
/* Tamaños máximos según contexto para controlar el diámetro del círculo */
.juntab-grid--pres   .junta-card__photo { max-width: 120px; }
.juntab-grid--mesa   .junta-card__photo { max-width: 80px;  }
.juntab-grid--vocales .junta-card__photo { max-width: 80px;  }
.juntab-grid--territorios .junta-card__photo { max-width: 150px; width: 100%; }

.junta-card__name {
  font-size: 0.72rem; font-weight: 700;
  color: var(--dark); line-height: 1.25;
  display: block; padding: 6px 4px 2px;
  text-align: center;
}
.juntab-grid--territorios .junta-card__name { font-size: 0.82rem; font-weight: 700; padding: 8px 4px 2px; }

.junta-card__role {
  font-size: 0.6rem; color: var(--gray-400);
  display: block; padding: 0 4px 4px; line-height: 1.2; text-align: center;
}
.juntab-grid--territorios .junta-card__role {
  font-size: 0.82rem; font-weight: 800; padding: 0 4px 8px;
  color: var(--red); letter-spacing: 0.01em;
}

/* ── Mapa interactivo de España ── */
/* ── Mapa SVG España (inline) ── */
.spain-map-svg {
  width: 100%; height: auto;
  display: block; margin-top: 14px; overflow: visible;
}
/* Todas las regiones: gris por defecto */
.spain-map-svg path {
  fill: #dfe0e6;
  stroke: #fff;
  stroke-width: 12;
  stroke-linejoin: round;
  transition: fill 0.22s ease;
}
/* Regiones AED: tinte rojo sutil por defecto */
.spain-map-svg .spain-region[data-council] path {
  fill: rgba(202,18,65,0.15);
  cursor: pointer;
}
/* Hover directo sobre la región del mapa */
.spain-map-svg .spain-region[data-council]:hover path,
.spain-map-svg .spain-region[data-council]:focus-within path { fill: var(--red); }
/* Hover sobre tarjeta de consejo → highlight en mapa */
.juntab-wrap[data-maphover] .spain-region[data-council] path { fill: rgba(202,18,65,0.1); }
.juntab-wrap[data-maphover="madrid"]    .spain-region[data-council="madrid"]    path,
.juntab-wrap[data-maphover="cataluna"]  .spain-region[data-council="cataluna"]  path,
.juntab-wrap[data-maphover="valencia"]  .spain-region[data-council="valencia"]  path,
.juntab-wrap[data-maphover="andalucia"] .spain-region[data-council="andalucia"] path,
.juntab-wrap[data-maphover="galicia"]   .spain-region[data-council="galicia"]   path,
.juntab-wrap[data-maphover="canarias"]  .spain-region[data-council="canarias"]  path { fill: var(--red); }

/* Indicador de consejo: pequeño ícono de grid en esquina */
.junta-card[data-council]::after {
  content: '';
  position: absolute; bottom: calc(100% - 24px); right: 4px;
  width: 14px; height: 14px;
  background: var(--red); border-radius: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3C/svg%3E");
  background-size: 10px; background-repeat: no-repeat; background-position: center;
  opacity: 0; transition: opacity 0.2s;
}
.junta-card[data-council] { position: relative; }
.junta-card[data-council]:hover::after { opacity: 1; }

/* ── Modal overlay ── */
.junta-modal {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(10,10,12,0.94);
  display: flex; align-items: center; justify-content: center;
}
.junta-modal[hidden] { display: none; }

.junta-modal__wrap {
  display: flex; align-items: center; gap: 20px;
  width: 88%; max-width: 800px;
}
.junta-modal__inner {
  display: flex; gap: 48px; align-items: center;
  flex: 1;
  animation: junta-in 0.25s ease;
}
@keyframes junta-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.junta-modal__photo {
  width: 240px; height: 300px; flex-shrink: 0;
  object-fit: cover; object-position: center top;
  border-radius: 4px;
}
.junta-modal__info { flex: 1; color: var(--white); }
.junta-modal__group {
  display: block; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.junta-modal__name {
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 800; line-height: 1.1;
  color: var(--white); margin-bottom: 12px;
}
.junta-modal__title {
  font-size: 0.88rem; line-height: 1.65;
  color: rgba(255,255,255,0.55);
}
.junta-modal__close {
  position: absolute; top: 24px; right: 28px;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.4); width: 32px; height: 32px;
  padding: 0; transition: color 0.2s;
}
.junta-modal__close:hover { color: var(--white); }
.junta-modal__close svg { width: 100%; height: 100%; }
.junta-modal__nav {
  flex-shrink: 0;
  background: rgba(255,255,255,0.06); border: none;
  cursor: pointer; color: rgba(255,255,255,0.5);
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.junta-modal__nav:hover { background: var(--red); color: var(--white); }
.junta-modal__nav svg  { width: 22px; height: 22px; }
.junta-modal__nav:disabled { opacity: 0.2; pointer-events: none; }
.junta-modal__counter {
  position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.15em;
  color: rgba(255,255,255,0.25);
}

/* ── Modal Consejo Territorial ── */
.consejo-modal {
  position: fixed; inset: 0; z-index: 700;
  background: rgba(10,10,12,0.88);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.consejo-modal[hidden] { display: none; }
.consejo-modal__panel {
  background: var(--white);
  border-radius: 12px;
  max-width: 780px; width: 100%;
  max-height: 90vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  animation: junta-in 0.25s ease;
}
.consejo-modal__header {
  background: var(--dark);
  color: var(--white);
  padding: 22px 64px 22px 28px;
  display: flex; align-items: center; gap: 18px;
  flex-shrink: 0;
}
.consejo-modal__photo {
  width: 54px; height: 54px;
  border-radius: 50%;
  object-fit: cover; object-position: top;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.2);
}
.consejo-modal__header-text { flex: 1; min-width: 0; }
.consejo-modal__territory {
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: .15em;
  font-weight: 700; color: var(--red); margin-bottom: 4px; display: block;
}
.consejo-modal__pte-name { font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.consejo-modal__pte-title { font-size: 0.78rem; opacity: 0.6; margin-top: 3px; }
.consejo-modal__stat {
  flex-shrink: 0; text-align: center; padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.consejo-modal__stat-val {
  font-size: 2rem; font-weight: 800; color: var(--red); line-height: 1; display: block;
}
.consejo-modal__stat-lbl {
  font-size: 0.58rem; text-transform: uppercase; letter-spacing: .08em;
  opacity: 0.5; display: block; margin-top: 3px;
}
.consejo-modal__close {
  position: absolute; top: 16px; right: 18px;
  background: rgba(255,255,255,0.1); border: none; cursor: pointer;
  color: rgba(255,255,255,0.7); width: 30px; height: 30px;
  border-radius: 50%; padding: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s; z-index: 1;
}
.consejo-modal__close:hover { background: var(--red); color: var(--white); }
.consejo-modal__close svg { width: 16px; height: 16px; }
.consejo-modal__body { flex: 1; overflow-y: auto; padding: 20px 24px 28px; }
.consejo-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
@media (max-width: 540px) { .consejo-modal__grid { grid-template-columns: 1fr; } }
.consejo-modal__member {
  padding: 9px 12px;
  border-radius: 6px;
}
.consejo-modal__member--special { background: #f5f5f7; }
.consejo-modal__member-role {
  font-size: 0.6rem; text-transform: uppercase; letter-spacing: .1em;
  font-weight: 700; color: var(--red); margin-bottom: 2px;
}
.consejo-modal__member-name { font-size: 0.845rem; font-weight: 600; line-height: 1.3; color: var(--dark); }
.consejo-modal__member-company { font-size: 0.75rem; color: var(--gray-600); margin-top: 1px; }

/* ── Territorios page (s8c) ── */
.territorios-page {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(28px,4vw,52px) calc(var(--banner-w) + clamp(20px,2.5vw,40px)) clamp(24px,3vw,40px) clamp(32px,5vw,72px);
  gap: 20px;
  overflow: hidden;
}
.territorios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, clamp(180px,22vh,230px));
  gap: 10px;
  flex-shrink: 0;
}
.terr-card {
  position: relative;
  background: var(--white);
  border: 1.5px solid rgba(13,15,20,0.08);
  border-radius: 10px;
  padding: 18px 16px 16px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
}
.terr-card:hover {
  border-color: var(--red);
  box-shadow: 0 6px 24px rgba(202,18,65,0.12);
  transform: translateY(-2px);
}
.terr-card__silhouette {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: var(--red);
  z-index: 0;
}
.terr-card__silhouette svg {
  width: 75%;
  height: 75%;
  opacity: 0.07;
}
.terr-card__label {
  position: relative;
  z-index: 1;
  font-size: clamp(0.85rem,1.3vw,1.05rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  align-self: flex-start;
}
.terr-card__photo {
  position: relative;
  z-index: 1;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(202,18,65,0.18);
  flex-shrink: 0;
  margin-top: auto;
  margin-bottom: 4px;
}
.terr-card__name {
  position: relative;
  z-index: 1;
  font-size: clamp(0.7rem,1vw,0.82rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}
.terr-card__role {
  position: relative;
  z-index: 1;
  font-size: 0.65rem;
  color: rgba(13,15,20,0.4);
  margin-bottom: auto;
}

/* ============================================================
   MODAL ANEXOS — base (compartido por todos los modales de anexo)
   ============================================================ */
.anexo-modal {
  position: fixed; inset: 0; z-index: 900;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.anexo-modal[hidden] { display: none; }

.anexo-modal__overlay {
  position: absolute; inset: 0;
  background: rgba(13,15,20,0.72);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.anexo-modal__panel {
  position: relative; z-index: 1;
  background: #fff;
  border-radius: 6px;
  width: min(920px, 100%);
  max-height: 88vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.28);
}

.anexo-modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px;
  background: rgba(0,0,0,0.06); border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--dark);
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}
.anexo-modal__close:hover { background: var(--red); color: #fff; }
.anexo-modal__close svg { width: 16px; height: 16px; }

.anexo-modal__header {
  padding: 36px 40px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.anexo-modal__title {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 800; letter-spacing: -0.03em;
  color: var(--dark); margin: 0 0 8px;
  text-transform: uppercase;
}
.anexo-modal__title span {
  display: inline-block;
  background: var(--red); color: #fff;
  padding: 0 10px 4px;
}
.anexo-modal__subtitle {
  font-size: 0.88rem; line-height: 1.65;
  color: var(--gray-600); margin: 0;
  max-width: 620px;
}

/* ---- Grid de logos ---- */
.anexo-modal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1px;
  background: rgba(0,0,0,0.07);
  overflow-y: auto;
  flex: 1;
}

.anexo-modal__logo-cell {
  display: flex; align-items: center; justify-content: center;
  padding: 16px 20px;
  background: #fff;
  transition: background 0.2s;
  height: 96px;
}
.anexo-modal__logo-cell:hover {
  background: #faf0f3;
}
.anexo-modal__logo-cell img {
  max-width: 100%; max-height: 52px;
  width: auto; height: auto;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter 0.2s, transform 0.2s;
}
.anexo-modal__logo-cell:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* ============================================================
   MODAL: LISTADO DE SOCIOS INDIVIDUALES
   ============================================================ */
.socios-ind__panel {
  width: min(1100px, 100%);
  max-height: 90vh;
}

/* Contador nuevos */
.socios-ind__new-count {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px 3px;
  border-radius: 3px;
}

/* Toolbar: search + alpha nav */
.socios-ind__toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 40px 16px;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}

.socios-ind__search {
  width: 100%;
  padding: 9px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--dark);
  outline: none;
  transition: border-color 0.18s;
  background: #fff;
}
.socios-ind__search:focus { border-color: var(--red); }
.socios-ind__search::placeholder { color: var(--gray-400); }

/* Alpha navigation pills */
.socios-ind__alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.socios-ind__alpha-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 4px;
  border: 1.5px solid var(--gray-200);
  border-radius: 4px;
  background: #fff;
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-light);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.socios-ind__alpha-btn:hover {
  background: var(--gray-100);
  color: var(--dark);
}
.socios-ind__alpha-btn.is-active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* Scrollable body */
.socios-ind__body {
  overflow-y: auto;
  flex: 1;
  padding: 24px 40px 36px;
  scroll-behavior: smooth;
}

/* Letter section */
.socios-ind__section { margin-bottom: 28px; }
.socios-ind__letter-hd {
  font-size: clamp(2.2rem, 3vw, 3rem);
  font-weight: 800;
  color: rgba(202,18,65,0.12);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--red);
  padding-bottom: 4px;
  color: var(--red);
}

/* 3-column grid of names */
.socios-ind__names-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px 0;
}
@media (max-width: 760px) {
  .socios-ind__names-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .socios-ind__names-grid { grid-template-columns: 1fr; }
  .socios-ind__toolbar { padding: 12px 16px; }
  .socios-ind__body { padding: 16px; }
}

/* Individual name entry */
.socios-ind__entry {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 3px 8px 3px 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text);
}
.socios-ind__apellidos {
  font-weight: 600;
  color: var(--dark);
}
.socios-ind__nombre {
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.76rem;
}
.socios-ind__new-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  margin-bottom: 1px;
  title: "Nuevo socio 2025";
}

/* No-results message */
.socios-ind__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ── Modal: Relación de actividades ── */
.actividades-modal__panel {
  display: flex;
  flex-direction: column;
  max-width: 860px;
  width: 95vw;
  max-height: 90vh;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}
.actividades-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 32px 36px 20px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}
.actividades-modal__pre {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.actividades-modal__title {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 4px;
}
.actividades-modal__sub {
  font-size: 0.8rem;
  color: var(--text-light);
}
/* Resumen trimestral */
.actividades-quarters-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}
.actividades-qs-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 18px 12px;
  text-decoration: none;
  border-right: 1px solid #eee;
  background: #fafafa;
  transition: background 0.18s;
  cursor: pointer;
}
.actividades-qs-card:last-child { border-right: none; }
.actividades-qs-card:hover { background: #fff0f0; }
.actividades-qs-card__num {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}
.actividades-qs-card__label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.actividades-qs-card__period {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 4px;
}
@media (max-width: 600px) {
  /* 4 trimestres en una sola fila, compactos */
  .actividades-quarters-summary { grid-template-columns: repeat(4, 1fr); }
  .actividades-qs-card { padding: 10px 4px; }
  .actividades-qs-card__num { font-size: 1.35rem; }
  .actividades-qs-card__label { font-size: 0.56rem; }
  .actividades-qs-card__period { font-size: 0.6rem; margin-top: 2px; }
}

/* Filtros */
/* Toggle de filtros — visible solo en móvil */
.mob-filter-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1.5px solid #ddd;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  margin: 8px 36px 0;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.mob-filter-toggle--open { border-color: var(--red); color: var(--red); }
.mob-filter-toggle__arrow { width: 14px; height: 14px; transition: transform 0.22s; }
.mob-filter-toggle--open .mob-filter-toggle__arrow { transform: rotate(180deg); }

.actividades-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 36px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.actividades-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid #ddd;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.18s;
}
.actividades-filter:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.actividades-filter--active { background: var(--red); border-color: var(--red); color: #fff; }
.actividades-filter:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}
.actividades-filter__count {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(0,0,0,0.12);
  border-radius: 10px;
  padding: 1px 6px;
}
.actividades-filter--active .actividades-filter__count { background: rgba(255,255,255,0.3); }
/* Fila de ciudad: separación visual más fina */
.actividades-filters--ciudad {
  padding-top: 10px;
  padding-bottom: 10px;
  background: #fafafa;
  border-bottom-color: #e8e8e8;
}
.actividades-filters--ciudad .actividades-filter--active {
  background: #444;
  border-color: #444;
}
.actividades-filters--ciudad .actividades-filter:hover:not(.actividades-filter--active) {
  border-color: #444;
  color: #444;
}
/* Ciudad en fecha cell */
.actividades-item__fecha small {
  font-size: 0.6rem;
  font-weight: 500;
  color: #c0c0c0;
  display: block;
  margin-top: 2px;
  white-space: nowrap;
}
/* Body scrollable */
.actividades-body {
  overflow-y: auto;
  padding: 24px 36px 32px;
  flex: 1;
}
/* Trimestres */
.actividades-quarter { margin-bottom: 32px; }
.actividades-quarter[hidden] { display: none; }
.actividades-quarter__title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.actividades-quarter__title span {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-light);
  font-size: 0.72rem;
}
.actividades-quarter__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #eee;
}
/* Items */
.actividades-list { display: flex; flex-direction: column; gap: 0; }
.actividades-item {
  display: grid;
  grid-template-columns: 110px 48px 1fr;
  align-items: start;
  gap: 16px;
  padding: 14px 12px;
  border-bottom: 1px solid #f2f2f2;
  transition: background 0.15s;
}
.actividades-item:last-child { border-bottom: none; }
.actividades-item:hover { background: #fafafa; }
.actividades-item[hidden] { display: none; }
.actividades-item__tipo {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 20px;
  white-space: nowrap;
  margin-top: 2px;
  text-align: center;
  display: block;
}
.tipo--dialogos    { background: #fff0f0; color: var(--red); }
.tipo--encuentros  { background: #eef2ff; color: #2952a3; }
.tipo--webinar     { background: #edfff4; color: #1a7a45; }
.tipo--cena        { background: #fdf6e3; color: #8a6800; }
.tipo--circulos    { background: #f3f0ff; color: #5a3ea3; }
.tipo--visitas     { background: #fff4ec; color: #9a4f00; }
.tipo--programas   { background: #edfaf4; color: #1a6a4a; }
.tipo--retratos    { background: #fdf0f8; color: #8a2a6a; }
.tipo--otros       { background: #f5f5f5; color: #666; }
.actividades-item__fecha {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-light);
  white-space: nowrap;
  text-align: center;
  margin-top: 4px;
}
.actividades-item__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.actividades-item__info strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
}
.actividades-item__info span {
  font-size: 0.73rem;
  color: var(--text-light);
  line-height: 1.5;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}
.actividades-item__info em { font-style: normal; color: #c0c0c0; }
.act-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--dark);
  opacity: 0.55;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .actividades-modal__header { padding: 20px; }
  .actividades-body { padding: 16px 20px 24px; }
  .actividades-item { grid-template-columns: 1fr; gap: 4px; }
  .actividades-item__fecha { display: none; }

  /* Filtros ocultos por defecto en móvil; se despliegan con el toggle */
  .mob-filter-toggle { display: flex; }
  .actividades-filters { display: none !important; padding: 12px 20px; }
  .actividades-filters.mob-open { display: flex !important; }
}

/* Badge DEMO en el visor de anexos PDF */
.pdf-modal__demo-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  border: 1.5px solid var(--red);
  border-radius: 3px;
  padding: 1px 6px 2px;
  margin-left: 10px;
  flex-shrink: 0;
  opacity: 0.8;
}

/* ── PORTADA: botones producción ─────────────────────────── */
.portada__btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 8px;
}

.btn--entrar {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.7);
  color: rgba(255,255,255,0.9);
  padding: 0.75rem 2.5rem;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--entrar:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,1);
  color: #fff;
}

/* Indicador scroll — solo visible en móvil */
.portada__scroll-hint {
  display: none;
}
@media (max-width: 768px) {
  .btn--entrar { display: none; }
  .portada__scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 56px;
    color: rgba(255,255,255,0.5);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    animation: scroll-bounce 2s ease-in-out infinite;
  }
  .portada__scroll-hint svg {
    width: 20px;
    height: 20px;
  }
  @keyframes scroll-bounce {
    0%, 100% { transform: translateY(0);   opacity: 0.5; }
    50%       { transform: translateY(8px); opacity: 1;   }
  }
}

.portada__version {
  font-size: 0.65rem;
  opacity: 0.55;
  letter-spacing: 0.06em;
}

/* ── MODAL ACCESO ─────────────────────────────────────────── */
.access-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.access-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.access-box {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 3rem 2.5rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: none;
}

.access-box.shake {
  animation: accessShake 0.45s ease;
}

@keyframes accessShake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-10px); }
  40%      { transform: translateX(10px); }
  60%      { transform: translateX(-8px); }
  80%      { transform: translateX(8px); }
}

.access-logo {
  height: 32px;
  margin-bottom: 2rem;
  filter: brightness(0) invert(1);
}

.access-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  font-family: var(--font);
}

.access-input-wrap {
  display: flex;
  gap: 0;
}

.access-input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-right: none;
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}

.access-input:focus {
  border-color: var(--color-red, #ca1241);
}

.access-submit {
  background: var(--color-red, #ca1241);
  border: none;
  color: #fff;
  padding: 0 1.4rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s;
}

.access-submit:hover { background: #a50f34; }

.access-error {
  color: #f87171;
  font-size: 0.82rem;
  margin-top: 0.85rem;
  min-height: 1.2em;
  font-family: var(--font);
}

.access-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px 8px;
}

.access-close:hover { color: #fff; }

/* ============================================================
   MOBILE ENHANCEMENTS — hamburger, menú, interstitial, galerías
   Solo afecta a ≤ 768 px. Desktop y tablet sin cambios.
   ============================================================ */

/* ── Hamburger button (oculto en desktop) ── */
.mobile-menu-btn {
  display: none;
}

@media (max-width: 768px) {
  /* Botón hamburger */
  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 1100;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    border-radius: 6px;
  }
  .mobile-menu-btn span {
    display: block;
    width: 26px;
    height: 2.5px;
    border-radius: 2px;
    background: #fff !important;
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
  }
  /* Animación X al abrirse */
  .mobile-menu-btn.is-open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .mobile-menu-btn.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .mobile-menu-btn.is-open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

  /* ── Overlay menú móvil ── */
  .mobile-menu {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-menu.is-open {
    transform: translateX(0);
  }
  .mobile-menu__inner {
    padding: 64px 28px 48px;
  }
  .mobile-menu__close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #333;
    display: flex;
    align-items: center;
  }
  .mobile-menu__hd {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #aaa;
    margin: 0 0 8px;
    padding-top: 24px;
    border-top: 1px solid #ececec;
  }
  .mobile-menu__hd--first {
    border-top: none;
    padding-top: 0;
  }
  .mobile-menu__list {
    list-style: none;
    padding: 0;
    margin: 0 0 4px;
  }
  .mobile-menu__item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid #f2f2f2;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.3;
    transition: color 0.15s;
  }
  .mobile-menu__item span {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--red);
    letter-spacing: 0.06em;
    flex-shrink: 0;
  }
  .mobile-menu__item.active { color: var(--red); }
  .mobile-menu__item--sm {
    font-size: 0.88rem;
    font-weight: 400;
    color: #555;
    padding: 11px 0;
  }

  /* ── Banner interstitial entre secciones ── */
  .mob-interstitial {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.93);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .mob-interstitial.is-open {
    opacity: 1;
    pointer-events: all;
  }
  .mob-interstitial__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 88%;
    max-width: 320px;
  }
  .mob-interstitial__skip {
    align-self: flex-end;
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
    font-family: inherit;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
  }
  .mob-interstitial__skip:hover { border-color: rgba(255,255,255,0.7); color: #fff; }
  .mob-interstitial__banner-wrap {
    display: block;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    background: #111;
  }
  .mob-interstitial__banner-wrap img,
  .mob-interstitial__banner-wrap video {
    width: 100%;
    height: auto;
    max-height: 62vh;
    object-fit: contain;
    display: block;
  }
  .mob-interstitial__progress {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    overflow: hidden;
  }
  .mob-interstitial__bar {
    height: 100%;
    width: 100%;
    background: var(--red);
    transform-origin: left center;
    transform: scaleX(1);
  }
  .mob-interstitial__bar.animating {
    transition: transform 4s linear;
    transform: scaleX(0);
  }

  /* ── Galerías de fotos: carrusel horizontal ── */
  .gallery-grid {
    display: flex !important;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 6px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-height: none;
  }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .gallery-item {
    flex: 0 0 78vw !important;
    height: 54vw !important;
    scroll-snap-align: start;
    grid-column: unset !important;
    grid-row: unset !important;
  }
  .gallery-item--featured {
    grid-column: unset !important;
    grid-row: unset !important;
    flex: 0 0 78vw !important;
  }

  /* ── subsec-split (texto + fotos): apilado vertical ── */
  .subsec-split {
    grid-template-columns: 1fr !important;
    height: auto !important;
    overflow-y: auto;
    margin-right: 0 !important;
  }
  .subsec-split__text {
    border-right: none !important;
    border-bottom: 1px solid var(--gray-200);
    overflow-y: visible;
    padding: 24px 20px !important;
  }
  .subsec-split__photos {
    width: 100%;
    padding: 12px 20px 20px !important;
  }

  /* Ocultar sectionTag en móvil para no solapar con el hamburger */
  .section-tag-fixed { display: none; }
}

/* ============================================================
   MOBILE FIXES v2 — Solo ≤768px. No afecta desktop ni tablet.
   ============================================================ */
@media (max-width: 768px) {

  /* ── 1. Franja roja fija en la cabecera ── */
  .nav {
    background: var(--red) !important;
    top: 0 !important;
    right: 0 !important;
    opacity: 1 !important;
    pointer-events: all !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, background 0.3s !important;
  }
  .nav--scroll-hidden {
    transform: translateY(-100%);
  }
  /* Logo AED blanco a la izquierda, título centrado sobre la barra */
  .nav__logo--color { display: none !important; }
  .nav__logo--white { display: block !important; height: 28px !important; }
  .nav__pub-title   {
    color: #fff !important;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 0.95rem;
    white-space: nowrap;
    pointer-events: none;
  }
  /* Ocultar la barra de progreso en móvil (queda dentro de la franja roja) */
  .progress-bar { display: none; }

  /* ── 2. Quitar botones prev/next de abajo ── */
  .slide-nav { display: none !important; }

  /* ── 3. Ocultar slide de Índice en móvil ── */
  #s1 { display: none !important; }

  /* ── 4. Forzar 1 columna en TODOS los layouts multi-columna ── */

  /* Cifras / magnitudes */
  .cifras-visual__grid,
  .cifras-hero__grid,
  .magnitudes__cols      { grid-template-columns: 1fr !important; }
  .cifras-hero           { flex-direction: column !important; }
  .cifras-hero__left     { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .cifras-hero__right    { overflow-y: visible !important; }

  /* Stats grids (3 y 4 col) */
  .stats-grid,
  .stats-grid--4col      { grid-template-columns: 1fr !important; }

  /* Contexto */
  .contexto-hero__cols--three { grid-template-columns: 1fr !important; }
  .contexto-criterio     { flex-direction: column !important; }

  /* Conocimiento */
  .conoc__layout         { grid-template-columns: 1fr !important; }
  .conoc-kpis            { grid-template-columns: repeat(2, 1fr) !important; }

  /* Organización / Junta */
  .juntab-wrap           { flex-direction: column !important; }
  .juntab-left,
  .juntab-right          { flex: none !important; width: 100% !important; border-right: none !important; border-bottom: 1px solid var(--gray-200); }
  .juntab-grid--pres     { grid-template-columns: repeat(2, 1fr) !important; }
  .juntab-grid--mesa,
  .juntab-grid--extended,
  .juntab-grid--vocales  { grid-template-columns: repeat(3, 1fr) !important; }

  /* KPIs de secciones (section-hero) */
  .section-hero__kpis    { flex-direction: column !important; gap: 8px !important; }
  .section-hero__kpi     { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.1) !important; padding: 10px 0 !important; }

  /* Actividades */
  .act-quarters,
  .act-kpis { grid-template-columns: repeat(2, 1fr) !important; }
  .actividades-quarters-summary { grid-template-columns: repeat(4, 1fr) !important; }
  .act-quarter           { border-right: none !important; }

  /* Socios corporativos / colaboradores */
  .socios-corp__grid,
  .socios-colab__grid    { grid-template-columns: repeat(2, 1fr) !important; }

  /* Carrera directiva - columnas de subsecciones */
  .carrera__cols         { flex-direction: column !important; }

  /* ── 5. Fotos — collage a 1 columna / scroll horizontal ── */
  .photo-collage__grid,
  .photo-collage__grid--3x2,
  .photo-collage__grid--2x2,
  .photo-collage__grid--2h,
  .photo-collage__grid--2x3,
  .photo-collage__grid--top-wide {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 4px !important;
    height: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .photo-collage__grid::-webkit-scrollbar,
  .photo-collage__grid--3x2::-webkit-scrollbar,
  .photo-collage__grid--2x2::-webkit-scrollbar,
  .photo-collage__grid--2h::-webkit-scrollbar,
  .photo-collage__grid--2x3::-webkit-scrollbar,
  .photo-collage__grid--top-wide::-webkit-scrollbar { display: none; }

  .photo-collage__cell {
    flex: 0 0 82vw !important;
    height: 56vw !important;
    scroll-snap-align: start !important;
    grid-column: unset !important;
    grid-row: unset !important;
  }
  .photo-collage__cell--tall,
  .photo-collage__cell--tall3,
  .photo-collage__cell--wide {
    flex: 0 0 82vw !important;
    height: 56vw !important;
    grid-column: unset !important;
    grid-row: unset !important;
  }
  .photo-collage { flex-direction: column !important; }
  .photo-collage__content { max-width: 100% !important; border-right: none !important; }

  /* Índice de contenidos — oculto en móvil (slide #s1 ya oculto arriba) */
  .indice__cols { display: none; }
}

/* ============================================================
   MOBILE FIXES v3 — Solo ≤768px. No afecta desktop ni tablet.
   ============================================================ */
@media (max-width: 768px) {

  /* ── Eliminar espacios blancos: slides toman solo el alto del contenido ── */
  .slide { min-height: auto !important; }
  #s0    { min-height: 100dvh !important; } /* portada sigue a pantalla completa */

  /* ── section-hero: título arriba (full-width), contenido debajo ── */
  .section-hero {
    flex-direction: column !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
  }
  .section-hero__ghost { display: none !important; }
  .section-hero__left {
    flex: none !important;
    width: 100% !important;
    min-height: auto !important;
    overflow: visible !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 20px 20px 16px !important;
  }
  .slide--light .section-hero__left {
    border-bottom: 1px solid var(--gray-200) !important;
  }
  .section-hero__right {
    flex: none !important;
    width: 100% !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: unset !important;
    grid-template-rows: unset !important;
    gap: 0 !important;
    background: transparent !important;
    padding: 0 !important;
  }
  .section-hero__right--col {
    padding: 16px 20px 24px !important;
  }
  .section-hero__kpi-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1px !important;
    background: rgba(0,0,0,0.06) !important;
    margin-top: 12px !important;
  }
  .section-hero__kpi {
    background: #fff !important;
    padding: 14px !important;
  }
  .slide--dark .section-hero__kpi { background: var(--dark) !important; }
  .section-hero__sub-intro { padding: 0 !important; }

  /* ── cols-layout (3 columnas tipo 4.2/4.3/4.4): apilar en vertical ── */
  .cols-layout {
    flex-direction: column !important;
    overflow: visible !important;
    height: auto !important;
    margin-right: 0 !important;
  }
  .cols-layout__col {
    flex: none !important;
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid var(--gray-200);
    overflow: visible !important;
    padding: 20px !important;
  }
  .cols-layout__col:last-child { border-bottom: none; }

  /* ── Banners rotantes entre secciones ── */
  .mob-rotating-banner {
    background: #efefef;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
  }
  .mob-rotating-banner__link {
    display: block;
    width: 240px;
    height: 400px;
    overflow: hidden;
    text-decoration: none;
    flex-shrink: 0;
  }
  .mob-rotating-banner__media {
    width: 240px;
    height: 400px;
  }
  .mob-rotating-banner__media img,
  .mob-rotating-banner__media video {
    width: 240px;
    height: 400px;
    object-fit: cover;
    display: block;
  }
  .mob-rotating-banner__progress {
    width: 240px;
    height: 2px;
    background: rgba(0,0,0,0.12);
    overflow: hidden;
    margin-top: 6px;
  }
  .mob-rotating-banner__bar {
    height: 100%;
    background: #ca1241;
    width: 0;
  }
  .mob-rotating-banner__bar.run {
    animation: mob-banner-run 6s linear forwards;
  }
  @keyframes mob-banner-run {
    from { width: 0; }
    to   { width: 100%; }
  }
}

/* ============================================================
   MOBILE FIXES v4 — Solo ≤768px. No afecta desktop ni tablet.
   ============================================================ */
@media (max-width: 768px) {

  /* ── Números ghost de sección (04, 05, 06, 07): hacer visibles ── */
  .section-hero__ghost {
    display: block !important;
    color: rgba(202,18,65,0.15) !important;
  }
  .section-hero__left {
    overflow-x: hidden !important; /* clipea ghost que sobresale */
  }

  /* ── Reducir padding-top entre subsecciones para espaciado uniforme ── */
  .slide:not(#s0) {
    padding-top: calc(var(--nav-h) + 4px) !important;
  }

  /* ── Eliminar scroll interno en columnas de texto (4.4, 4.5, etc.) ── */
  .cols-layout__body {
    overflow-y: visible !important;
    height: auto !important;
    flex: none !important;
  }
  .contexto-hero__col {
    overflow-y: visible !important;
    max-height: none !important;
  }
  .contexto-hero__cols {
    overflow-y: visible !important;
  }

  /* ── Eliminar espacio gris en slides con galería de fotos ── */
  .photo-collage {
    flex: none !important;
    overflow: visible !important;
    height: auto !important;
  }
  .photo-collage__content {
    overflow-y: visible !important;
  }

  /* ── 4.6 y 4.7: apilar los dos paneles en columna ── */
  .two-story {
    flex-direction: column !important;
    overflow: visible !important;
    height: auto !important;
  }
  .two-story__panel {
    flex: none !important;
    width: 100% !important;
    overflow-y: visible !important;
    border-right: none !important;
    border-bottom: 1px solid var(--gray-200) !important;
    padding: 24px 20px !important;
  }
  .two-story__panel:last-child { border-bottom: none !important; }

  /* ── 6.2 y 6.3: apilar los dos bloques en columna ── */
  .section-split,
  .section-split--dual {
    flex-direction: column !important;
    overflow: visible !important;
    height: auto !important;
  }
  .section-split__content {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid var(--gray-200) !important;
    overflow: visible !important;
    padding: 24px 20px !important;
  }
  .section-split__content:last-child { border-bottom: none !important; }

  /* ── 6.5: intro en columna + 4 pilares en grid 2×2 ── */
  .pillars-layout {
    flex-direction: column !important;
    overflow: visible !important;
    height: auto !important;
  }
  .pillars-intro {
    flex: none !important;
    border-right: none !important;
    border-bottom: 1px solid var(--gray-200) !important;
    padding: 24px 20px !important;
  }
  .pillars-cols {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    overflow: visible !important;
    height: auto !important;
  }
  .pillar {
    overflow: visible !important;
    padding: 16px !important;
  }
  .pillar:nth-child(odd)  { border-right: 1px solid var(--gray-200) !important; }
  .pillar:nth-child(1),
  .pillar:nth-child(2)    { border-bottom: 1px solid var(--gray-200) !important; }
  .pillar:last-child      { border-right: none !important; }



  /* ── Ocultar "Índice" del menú móvil ── */
  .mobile-menu li:has([data-slide="1"]) { display: none !important; }
}

/* Zoom automático: gestionado via viewport meta en <head> del HTML */

/* ============================================================
   BANNER DE CONSENTIMIENTO DE COOKIES
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--dark);
  color: rgba(255,255,255,0.85);
  border-top: 2px solid var(--red);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  font-size: 0.82rem;
  line-height: 1.55;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.35);
  animation: cookie-slide-up 0.4s cubic-bezier(0.4,0,0.2,1);
}
@keyframes cookie-slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { flex: 1; }
.cookie-banner__text a { color: var(--red); text-decoration: underline; }
.cookie-banner__text a:hover { color: #fff; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 0.8rem; font-weight: 600;
  cursor: pointer;
  border: 1.5px solid;
  transition: all 0.18s;
  white-space: nowrap;
}
.cookie-btn--reject {
  border-color: rgba(255,255,255,0.2);
  background: transparent;
  color: rgba(255,255,255,0.55);
}
.cookie-btn--reject:hover { border-color: rgba(255,255,255,0.5); color: #fff; }
.cookie-btn--accept {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.cookie-btn--accept:hover { background: var(--red-dark); border-color: var(--red-dark); }

@media (max-width: 768px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 20px 24px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; padding: 11px 10px; }
}

/* ============================================================
   MODAL JUNTA DIRECTIVA — versión móvil
   Panel inferior: foto arriba + texto abajo. Flechas a los lados.
   ============================================================ */
@media (max-width: 768px) {
  /* Modal como bottom sheet */
  .junta-modal {
    align-items: flex-end;
    padding: 0;
  }
  /* Fila: [←] [panel] [→] */
  .junta-modal__wrap {
    width: 100%;
    max-width: 100%;
    align-items: flex-end;
    gap: 6px;
    padding: 0 6px 20px;
  }
  /* Panel apilado: foto encima, info debajo */
  .junta-modal__inner {
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    max-height: 82dvh;
    background: #16181f;
    border-radius: 16px 16px 0 0;
    padding-bottom: 36px;
  }
  /* Foto a pantalla completa de ancho */
  .junta-modal__photo {
    width: 100%;
    height: 54vw;
    max-height: 260px;
    flex-shrink: 0;
    border-radius: 16px 16px 0 0;
  }
  /* Info con padding cómodo */
  .junta-modal__info {
    padding: 18px 20px 4px;
  }
  .junta-modal__name  { font-size: 1.25rem; }
  .junta-modal__title { font-size: 0.82rem; }
  /* Flechas: círculos compactos a los lados del panel */
  .junta-modal__nav {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    margin-bottom: 4px;
  }
  .junta-modal__nav svg { width: 18px; height: 18px; }
  /* Botón cerrar: superpuesto sobre la foto */
  .junta-modal__close {
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    color: #fff;
    z-index: 10;
  }
  /* Contador abajo del panel */
  .junta-modal__counter { bottom: 8px; }
}

/* ============================================================
   MOBILE — Secciones 07 Mirada y 08 30 años (s8g, s9a, s9b)
   ============================================================ */
@media (max-width: 768px) {

  /* s8g — vídeo de pilares: altura mínima para que sea visible */
  .pillars-photo {
    flex: none !important;
    height: 58vw !important;
    min-height: 220px !important;
    width: 100% !important;
  }

  /* s9a — mirada-right: apilado debajo del panel izquierdo */
  .mirada-right {
    flex: none !important;
    width: 100% !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .mirada-kpis {
    flex: none !important;
    height: auto !important;
    overflow: visible !important;
    flex-wrap: wrap !important;
    border-bottom: 1px solid var(--gray-200) !important;
  }
  .mirada-kpi {
    flex: 0 0 50% !important;
    min-width: 50% !important;
    overflow: visible !important;
    padding: 16px !important;
    border-right: none !important;
    border-bottom: 1px solid var(--gray-200) !important;
  }
  .mirada-kpi:nth-child(odd)  { border-right: 1px solid var(--gray-200) !important; }
  .mirada-kpi:nth-child(3),
  .mirada-kpi:nth-child(4)    { border-bottom: none !important; }
  .mirada-bottom {
    flex: none !important;
    padding: 20px 20px 36px !important;
  }

  /* s9b — columna derecha: oscura, texto blanco en móvil */
  #s9b .s9b-right {
    flex: none !important;
    width: 100% !important;
    overflow-y: visible !important;
    padding: 20px 20px 36px !important;
    gap: 1.2em !important;
    background: transparent !important;
    border-left: none !important;
    border-top: 1px solid rgba(255,255,255,0.15) !important;
  }
  #s9b .s9b-right .section-hero__lead {
    color: rgba(255,255,255,0.82) !important;
  }
  /* Asegurar que el vídeo de fondo cubre el slide completo en móvil */
  #s9b {
    min-height: 100dvh;
  }

  /* s10 — cierre global: centrado vertical, reducir tamaño título */
  .cierre-final {
    padding: 40px 24px 32px !important;
    justify-content: center !important;
    margin-right: 0 !important;
  }
  .cierre-final__title {
    font-size: clamp(1.8rem, 8vw, 3rem) !important;
    margin-bottom: 28px !important;
  }
  .cierre-final__footer {
    margin-top: 32px !important;
    width: 100% !important;
  }
}
