@charset "UTF-8";
/* ============================================================
 * UPSAFIP — sitio web público, Diseño 3 ("Conectados").
 *
 * Portada: header integrado sobre un hero navy con la app oficial como
 * protagonista (dos personas mostrando celulares con las capturas reales
 * de la app), beneficios a la derecha y la sección "Todo UPSAFIP en una
 * sola app". Debajo, el contenido dinámico de Atheria GRM (novedades,
 * comunicados, rubros), que también arma las páginas de sección y nota.
 *
 * Índice:
 *  1. Variables            8. Beneficios
 *  2. Reset                9. Sección App
 *  3. Tipografía          10. Último momento
 *  4. Header              11. Footer
 *  5. Hero                12. Contenido dinámico (novedades, secciones, notas)
 *  6. Personas            13. Responsive
 *  7. Smartphones         14. Animaciones y accesibilidad
 * ============================================================ */

/* ── 1. Variables ─────────────────────────────────────────── */
:root {
  --navy: #014b6b;
  --navy-2: #014b6b;
  --navy-3: #013d55;
  --blue: #1683ff;
  --blue-2: #2563eb;
  --blue-claro: #7cb8ff;
  --white: #ffffff;
  --text-muted: #b8c7d6;
  --fondo: #f5f8fc;
  --tinta: #0b2230;
  --texto: #2c3e50;
  --texto-2: #5b6f82;
  --linea: #e2e9f0;
  --sans: "Century Gothic UPSAFIP", "Century Gothic", Arial, system-ui, sans-serif;
  --radio: 18px;
  --sombra-suave: 0 10px 30px rgba(7, 24, 39, 0.06);
  --alto-header: 78px;
}

/* ── 2. Reset ─────────────────────────────────────────────── */
@font-face {
  font-family: "Century Gothic UPSAFIP";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fuente/GOTHIC.TTF) format("truetype");
}
@font-face {
  font-family: "Century Gothic UPSAFIP";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fuente/GOTHICB.TTF) format("truetype");
}
@font-face {
  font-family: "Century Gothic UPSAFIP";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fuente/GOTHICI.TTF) format("truetype");
}
@font-face {
  font-family: "Century Gothic UPSAFIP";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(fuente/GOTHICBI.TTF) format("truetype");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/opensans-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/opensans-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
  background: #fff; color: var(--texto); font-family: var(--sans); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: var(--blue-2); transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
a:hover { color: var(--tinta); }
.contenedor { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .contenedor { padding: 0 32px; } }
.icono { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flecha { width: 15px; height: 15px; flex-shrink: 0; }

/* ── 3. Tipografía ────────────────────────────────────────── */
h1, h2, h3 { text-wrap: balance; }
.hero__eyebrow, .todo-app__eyebrow { margin: 0 0 16px; font-size: 13px; font-weight: 800; letter-spacing: 0.14em; }

/* ── 4. Header ────────────────────────────────────────────── */
.cabecera {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(7, 24, 39, 0.05);
}
html:not(.sin-portada) .cabecera {
  position: sticky; left: 0; right: 0; top: 0;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(7, 24, 39, 0.06);
}
.cabecera__fila { display: flex; align-items: center; gap: 20px; min-height: var(--alto-header); }
.marca { flex-shrink: 0; display: block; padding: 4px 0; background: transparent; }
.marca img { width: auto; height: 52px; object-fit: contain; }
.menu { display: flex; flex: 1; justify-content: center; gap: 4px; }
.menu a {
  padding: 10px 14px; color: #0b2230; text-decoration: none; white-space: nowrap;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.menu a:hover, .menu a[aria-current="page"] { color: #1683ff; box-shadow: inset 0 -3px 0 #1683ff; }
.ingreso {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px;
  border: 1.5px solid #0b2230; border-radius: 999px; color: #0b2230; text-decoration: none;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; background: #ffffff;
  cursor: pointer;
}
.ingreso svg { width: 17px; height: 17px; }
.ingreso:hover { background: #0b2230; border-color: #0b2230; color: #ffffff; box-shadow: 0 6px 18px rgba(11, 34, 48, 0.2); }
.menu-boton {
  display: none; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 1px solid #cbd5e1;
  border-radius: 12px; background: #f8fafc; color: #0b2230; align-items: center; justify-content: center;
}
.menu-boton__barras, .menu-boton__barras::before, .menu-boton__barras::after {
  display: block; width: 20px; height: 2px; background: #0b2230; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-boton__barras { position: relative; }
.menu-boton__barras::before, .menu-boton__barras::after { content: ""; position: absolute; left: 0; }
.menu-boton__barras::before { top: -6px; }
.menu-boton__barras::after { top: 6px; }
.cabecera--abierta .menu-boton__barras { background: transparent; }
.cabecera--abierta .menu-boton__barras::before { transform: translateY(6px) rotate(45deg); }
.cabecera--abierta .menu-boton__barras::after { transform: translateY(-6px) rotate(-45deg); }

/* ── 5. Hero ──────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; color: #0b2230;
  min-height: 720px; display: flex; align-items: center;
  padding: 80px 0 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 250, 252, 0.72) 45%, rgba(241, 245, 249, 0.38) 75%, rgba(226, 234, 244, 0.6) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(245, 248, 252, 0.5) 100%),
    url(img/hero-upsafip.jpg) center / cover no-repeat;
  transition: all 0.4s ease;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; pointer-events: none; opacity: 0.58;
}

/* MODELO 3 (Default): Premium Oficial — foto corporativa con degradado y viñeta suave */
.hero, .hero[data-diseno="3"] {
  background:
    linear-gradient(90deg, rgba(3, 16, 28, 0.95) 0%, rgba(4, 20, 34, 0.78) 40%, rgba(4, 20, 34, 0.42) 72%, rgba(3, 14, 25, 0.65) 100%),
    linear-gradient(180deg, rgba(4, 20, 34, 0.4) 0%, rgba(4, 20, 34, 0.85) 100%),
    url(img/hero-upsafip.jpg) center / cover no-repeat,
    radial-gradient(circle at 65% 40%, #16466e 0%, var(--navy) 62%);
}

/* MODELO 1: Sobrio Navy — tono institucional profundo, azul cobalto y tarjetas estructuradas */
.hero[data-diseno="1"] {
  background:
    linear-gradient(135deg, rgba(2, 10, 18, 0.98) 0%, rgba(7, 24, 39, 0.95) 50%, rgba(10, 30, 44, 0.98) 100%),
    url(img/hero-upsafip.jpg) center / cover no-repeat;
}
.hero[data-diseno="1"] .hero__titulo span { color: #3b82f6; text-shadow: none; }
.hero[data-diseno="1"] .beneficios a {
  background: rgba(10, 30, 44, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--blue-2);
  border-radius: 12px;
}
.hero[data-diseno="1"] .beneficios a:hover {
  background: rgba(16, 45, 68, 0.9);
  border-color: rgba(59, 130, 246, 0.5);
  border-left-color: #60a5fa;
}

/* MODELO 2: Vidrio & Glow — glassmorphism alto, resplandor radial cian y transparencias */
.hero[data-diseno="2"] {
  background:
    radial-gradient(circle at 75% 30%, rgba(0, 210, 255, 0.3) 0%, transparent 60%),
    linear-gradient(180deg, rgba(5, 20, 32, 0.88) 0%, rgba(3, 14, 25, 0.96) 100%),
    url(img/hero-upsafip.jpg) center / cover no-repeat;
}
.hero[data-diseno="2"] .hero__titulo span {
  color: #00d2ff;
  text-shadow: 0 0 26px rgba(0, 210, 255, 0.4);
}
.hero[data-diseno="2"] .beneficios a {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  border-radius: 20px;
}
.hero[data-diseno="2"] .beneficios a:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: #00d2ff;
  box-shadow: 0 14px 34px -10px rgba(0, 210, 255, 0.35);
}

/* MODELO 4: Tech Vanguard — acentos azul neón, píldoras redondeadas y alta visibilidad */
.hero[data-diseno="4"] {
  background:
    linear-gradient(90deg, #051420 0%, rgba(5, 20, 32, 0.82) 45%, rgba(10, 35, 55, 0.6) 100%),
    url(img/hero-upsafip.jpg) center / cover no-repeat;
}
.hero[data-diseno="4"] .hero__eyebrow {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(22, 131, 255, 0.2);
  border: 1px solid rgba(22, 131, 255, 0.5);
  border-radius: 999px;
  color: #7cb8ff;
}
.hero[data-diseno="4"] .hero__titulo span { color: #1683ff; }
.hero[data-diseno="4"] .beneficios a {
  border-radius: 999px;
  padding: 12px 20px;
  background: rgba(7, 24, 39, 0.85);
  border: 1px solid rgba(22, 131, 255, 0.35);
}
.hero[data-diseno="4"] .beneficios a:hover {
  background: var(--blue-2);
  border-color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5);
}

/* MODELO 5: Editorial Executive — formato lista fina ejecutiva, tipografía estilizada y sobria */
.hero[data-diseno="5"] {
  background:
    linear-gradient(180deg, rgba(3, 14, 25, 0.94) 0%, rgba(7, 24, 39, 0.98) 100%),
    url(img/hero-upsafip.jpg) center / cover no-repeat;
}
.hero[data-diseno="5"] .hero__titulo {
  font-weight: 300;
  letter-spacing: -0.01em;
}
.hero[data-diseno="5"] .hero__titulo span {
  font-weight: 800;
  color: #93c5fd;
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 0.04em;
}
.hero[data-diseno="5"] .beneficios {
  gap: 14px;
}
.hero[data-diseno="5"] .beneficios a {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  padding: 12px 6px;
}
.hero[data-diseno="5"] .beneficios a:hover {
  border-bottom-color: #93c5fd;
  padding-left: 14px;
}

/* MODELO 5 CLARO: Editorial Executive Light — versión diurna clara, sofisticada y luminosa */
.hero[data-diseno="5-claro"] {
  background:
    linear-gradient(90deg, rgba(245, 248, 252, 0.98) 0%, rgba(240, 244, 250, 0.92) 48%, rgba(240, 244, 250, 0.65) 75%, rgba(226, 234, 244, 0.85) 100%),
    url(img/hero-upsafip.jpg) center / cover no-repeat;
  color: #0b2230;
}
.hero[data-diseno="5-claro"] .hero__eyebrow {
  color: #1683ff;
  font-weight: 800;
}
.hero[data-diseno="5-claro"] .hero__titulo {
  color: #0b2230;
  font-weight: 300;
}
.hero[data-diseno="5-claro"] .hero__titulo span {
  color: #1683ff;
  font-weight: 800;
}
.hero[data-diseno="5-claro"] .hero__bajada {
  color: #475569;
}
.hero[data-diseno="5-claro"] .beneficios a {
  background: #ffffff;
  border: 1px solid #e2e9f0;
  box-shadow: 0 10px 30px rgba(7, 24, 39, 0.07);
  color: #0b2230;
  border-radius: 16px;
  padding: 16px 18px;
}
.hero[data-diseno="5-claro"] .beneficios a:hover {
  background: #ffffff;
  border-color: #1683ff;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(22, 131, 255, 0.18);
}
.hero[data-diseno="5-claro"] .beneficios b {
  color: #0b2230;
}
.hero[data-diseno="5-claro"] .beneficios small {
  color: #64748b;
}
.hero[data-diseno="5-claro"] .beneficios__icono {
  background: rgba(22, 131, 255, 0.12);
  color: #1683ff;
}

/* Header adaptado para modo claro en portada */
body.hero-modo-claro:not(.sin-portada) .cabecera {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(11, 34, 48, 0.12) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
body.hero-modo-claro:not(.sin-portada) .menu a {
  color: #0b2230 !important;
}
body.hero-modo-claro:not(.sin-portada) .menu a:hover,
body.hero-modo-claro:not(.sin-portada) .menu a[aria-current="page"] {
  color: #1683ff !important;
  box-shadow: inset 0 -2px 0 #1683ff !important;
}
body.hero-modo-claro:not(.sin-portada) .ingreso {
  border-color: #0b2230 !important;
  color: #0b2230 !important;
}
body.hero-modo-claro:not(.sin-portada) .ingreso:hover {
  background: #0b2230 !important;
  color: #ffffff !important;
}
body.hero-modo-claro:not(.sin-portada) .menu-boton {
  border-color: rgba(11, 34, 48, 0.3) !important;
  color: #0b2230 !important;
}

@media (min-width: 1200px) { .hero { min-height: clamp(720px, 92vh, 850px); } }
.hero__grilla { display: grid; gap: 40px; align-items: center; }
.hero__texto { max-width: 560px; }
.hero__eyebrow { color: #fff; }
.hero__titulo { margin: 0 0 22px; font-size: clamp(48px, 4.4vw, 66px); font-weight: 800; line-height: 0.98; letter-spacing: -0.03em; color: #fff; }
.hero__titulo span { display: block; color: var(--blue); transition: color 0.3s ease; }
.hero__bajada { margin: 0 0 30px; max-width: 32em; font-size: 18px; line-height: 1.55; color: #d6e2ec; }
.tiendas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.tienda {
  display: inline-flex; align-items: center; gap: 10px; min-width: 168px; padding: 9px 18px 9px 14px;
  background: #000; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 12px; color: #fff; text-decoration: none;
  font-size: 19px; font-weight: 600; line-height: 1.1; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.8);
}
.tienda small { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: 0.02em; opacity: 0.85; }
.tienda__icono { width: 26px; height: 26px; flex-shrink: 0; }
.tienda:hover { color: #fff; border-color: rgba(255, 255, 255, 0.8); transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(22, 131, 255, 0.6); }
/* Badge sin enlace (todavía no está la app en esa tienda): se ve igual, pero no reacciona. */
.tienda--sin-enlace { cursor: default; }
.tienda--sin-enlace:hover { border-color: rgba(255, 255, 255, 0.35); transform: none; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.8); }
/* Secciones y notas: sin hero ni sección de la app. */
.sin-portada .hero, .sin-portada .todo-app, .sin-portada .seccion-app-inferior { display: none; }

/* ── Hero 1: Video arriba de todo (100% Limpio sin texto) ── */
.hero--video-top {
  position: relative !important;
  width: 100% !important;
  height: clamp(260px, 45vh, 520px) !important;
  min-height: 260px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  overflow: hidden !important;
  background: #051420 !important;
}
.hero--video-top .hero__video {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  opacity: 1 !important;
  filter: none !important;
}

/* ── Hero 2 / Sección App: Abajo luego de novedades ───────── */
.seccion-app-inferior {
  padding: 88px 0 32px;
  background: linear-gradient(180deg, #f8fafc 0%, #edf3f9 100%);
  border-top: 1px solid #e2e8f0;
  overflow: hidden;
}
.seccion-app-inferior__cabeza {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 52px;
}
.seccion-app-inferior .hero__eyebrow {
  color: #1683ff;
  font-weight: 800;
}
.seccion-app-inferior .hero__titulo {
  color: #0b2230;
  font-weight: 300;
  margin: 0 0 18px;
}
.seccion-app-inferior .hero__titulo span {
  color: #1683ff;
  font-weight: 800;
}
.seccion-app-inferior .hero__bajada {
  color: #475569;
  margin-bottom: 28px;
}
.seccion-app-inferior__grilla {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1000px) {
  .seccion-app-inferior__grilla {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 48px;
  }
}
.seccion-app-inferior .beneficios a {
  background: #ffffff;
  border: 1px solid #e2e9f0;
  box-shadow: 0 10px 30px rgba(7, 24, 39, 0.06);
  color: #0b2230;
  border-radius: 16px;
  padding: 16px 18px;
}
.seccion-app-inferior .beneficios a:hover {
  background: #ffffff;
  border-color: #1683ff;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(22, 131, 255, 0.18);
}
.seccion-app-inferior .beneficios b {
  color: #0b2230;
}
.seccion-app-inferior .beneficios small {
  color: #64748b;
}
.seccion-app-inferior .beneficios__icono {
  background: rgba(22, 131, 255, 0.12);
  color: #1683ff;
}

/* ── 6. Personas ──────────────────────────────────────────── */
/* Una sola composición: la foto de las dos personas y los dos teléfonos
   encima. container-type permite dimensionar los teléfonos en cqw. */
.personas {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 1210 / 572; container-type: inline-size;
  /* Las personas "salen" del pie del hero: se funden hacia abajo. */
  -webkit-mask-image: linear-gradient(#000 80%, transparent);
  mask-image: linear-gradient(#000 80%, transparent);
}
.personas::before {
  content: ""; position: absolute; inset: -10% 10% 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(22, 131, 255, 0.3), rgba(22, 131, 255, 0) 70%);
}
/* /img/hero-personas.png: un hombre y una mujer con vestimenta
   profesional, recortados con fondo transparente y sin los teléfonos
   (los dibuja el CSS, debajo de la foto, para que los dedos queden encima). */
.personas__foto { position: absolute; inset: 0; z-index: 3; background: url(img/hero-personas.png) center bottom / 100% auto no-repeat; }

/* ── 7. Smartphones ───────────────────────────────────────── */
/* Posición y tamaño por teléfono: --x / --y en % de la composición,
   --ancho en % del ancho (número) y --giro. Ajustar para que coincidan
   con las manos de la foto de las personas. */
.telefono--hombre { --x: 12.4%; --y: 18.4%; --ancho: 18.2; --giro: 2deg; z-index: 2; }
.telefono--mujer { --x: 56.3%; --y: 43.4%; --ancho: 12.6; --giro: 1deg; z-index: 1; }
.telefono {
  position: absolute; left: var(--x); top: var(--y);
  width: calc(var(--ancho) * 1cqw); aspect-ratio: 738 / 1408;
  padding: calc(var(--ancho) * 0.035cqw);
  border-radius: calc(var(--ancho) * 0.15cqw);
  background: linear-gradient(145deg, #2a3644, #0b1118 40%, #05080c);
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
  transform: rotate(var(--giro));
}
.telefono img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: calc(var(--ancho) * 0.12cqw); }
/* Isla de la cámara y reflejo del vidrio. */
.telefono::before {
  content: ""; position: absolute; z-index: 1; top: 3.2%; left: 50%; width: 28%; height: 2.4%;
  transform: translateX(-50%); border-radius: 999px; background: #05080c;
}
.telefono::after {
  content: ""; position: absolute; inset: calc(var(--ancho) * 0.035cqw); border-radius: calc(var(--ancho) * 0.12cqw);
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 38%); pointer-events: none;
}

/* ── 8. Beneficios ────────────────────────────────────────── */
.beneficios { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.beneficios a {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-decoration: none; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 16px; background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: all 0.25 ease;
}
.beneficios a:hover { color: #fff; background: rgba(255, 255, 255, 0.1); border-color: rgba(22, 131, 255, 0.6); }
.beneficios__icono { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(22, 131, 255, 0.18); color: var(--blue-claro); }
.beneficios__icono svg { width: 20px; height: 20px; }
.beneficios b { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; }
.beneficios small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--text-muted); }
.beneficios__icono { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(22, 131, 255, 0.18); color: var(--blue-claro); }
.beneficios__icono svg { width: 20px; height: 20px; }
.beneficios b { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; }
.beneficios small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--text-muted); }

/* ── 9. Sección App ───────────────────────────────────────── */
.todo-app { padding: 96px 0; background: var(--fondo); }
.todo-app__eyebrow { color: var(--blue-2); }
.todo-app__titulo { margin: 0 0 14px; font-size: clamp(32px, 4vw, 52px); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; color: var(--tinta); }
.todo-app__titulo span { color: var(--blue-2); font-weight: 800; }
.todo-app__bajada { margin: 0 0 44px; max-width: 40em; font-size: 18px; color: var(--texto-2); }
.funciones { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.funciones a {
  height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 26px 24px; text-decoration: none; color: var(--texto);
  background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); box-shadow: var(--sombra-suave);
}
.funciones a:hover { color: var(--texto); transform: translateY(-3px); border-color: rgba(37, 99, 235, 0.45); box-shadow: 0 18px 40px -18px rgba(7, 24, 39, 0.25); }
.funciones__num { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; color: var(--blue-2); }
.funciones__num::after { content: ""; flex: 1; max-width: 36px; height: 2px; background: currentColor; opacity: 0.35; }
.funciones b { font-size: 18px; font-weight: 700; color: var(--tinta); }
.funciones a > span:last-child { font-size: 14px; line-height: 1.5; color: var(--texto-2); }

/* ── 10. Último momento ───────────────────────────────────── */
.ultimo-momento { display: block; border-top: 1px solid rgba(255, 255, 255, 0.1); background: rgba(22, 131, 255, 0.12); color: #fff; font-size: 12.5px; text-decoration: none; }
.ultimo-momento[hidden] { display: none; }
.ultimo-momento:hover { color: #fff; }
.ultimo-momento__fila { display: flex; align-items: center; gap: 12px; min-height: 36px; }
.ultimo-momento__texto { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ultimo-momento:hover .ultimo-momento__texto { text-decoration: underline; }
.en-vivo { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; color: var(--blue-claro); }
.en-vivo--oscuro { color: var(--blue-2); }
.punto-vivo { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex-shrink: 0; animation: pulso 1.8s ease-out infinite; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(22, 131, 255, 0.6); } 100% { box-shadow: 0 0 0 8px rgba(22, 131, 255, 0); } }

/* ── 11. Footer ───────────────────────────────────────────── */
.pie { background: var(--navy); color: var(--text-muted); font-size: 14px; }
/* Pie: redes a la izquierda, logo al centro y contacto a la derecha. En
   pantallas chicas se apila centrado con el logo primero. */
.pie__fila { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 40px; padding-top: 56px; padding-bottom: 48px; }
.pie__columna--contacto { justify-self: end; }
.pie__columna--marca { align-self: center; }
.pie__columna--contacto .pie__lista { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 12px; }
.pie__columna--redes .pie__lista { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 14px; }
.red { display: block; border-radius: 12px; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.red:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28); }
.red:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.pie .red__logo { display: block; width: 46px; height: 46px; margin: 0; }
.pie__marca img { display: block; width: auto; height: 120px; margin: 0 auto; }
@media (max-width: 900px) {
  .pie__fila { grid-template-columns: 1fr; justify-items: center; gap: 32px; text-align: center; }
  .pie__columna--marca { order: -1; }
  .pie__columna--contacto { justify-self: center; }
  .pie__columna--contacto .pie__lista,
  .pie__columna--redes .pie__lista { justify-content: center; }
}
.pie__titulo { margin: 0 0 14px; color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.pie__lista { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; }
.pie__lista li { display: flex; align-items: flex-start; gap: 10px; text-align: left; }
.pie__lista svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--blue-claro); }
.pie a { color: #dbe6ef; text-decoration: none; }
.pie a:hover { color: #fff; text-decoration: underline; }
.pie__legal { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 18px 0 22px; font-size: 12.5px; color: #b9cdd9; text-align: center; }

/* ── 12. Contenido dinámico (novedades, secciones, notas) ─── */
main { flex: 1; outline: none; }
.estado { padding: 96px 16px; text-align: center; color: var(--texto-2); }
.estado a { font-weight: 700; }
.cargando { width: 28px; height: 28px; margin: 96px auto; border-radius: 50%; border: 3px solid var(--linea); border-top-color: var(--blue-2); animation: girar 0.9s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.aviso-ejemplo {
  display: flex; align-items: center; gap: 12px; margin: 24px 0 0; padding: 12px 16px;
  border: 1px dashed rgba(37, 99, 235, 0.5); border-radius: 12px; background: #eef4ff; color: var(--texto-2); font-size: 13.5px;
}
.aviso-ejemplo a { font-weight: 700; }
.duo { position: relative; overflow: hidden; background: var(--navy-3); }
.duo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(1.05); mix-blend-mode: multiply; }

.bloque-sec { padding: 80px 0; }
.bloque-sec--papel { background: var(--fondo); }
.rotulo { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 32px; padding-bottom: 14px; border-bottom: 2px solid var(--tinta); }
.rotulo h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.02em; color: var(--tinta); }
.rotulo a { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.rotulo a:hover { text-decoration: underline; }

.mosaico { display: grid; gap: 18px; }
@media (min-width: 640px) { .mosaico { grid-template-columns: 1fr 1fr; } .pieza--grande { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .mosaico { grid-template-columns: 1.3fr 1fr 1fr; } .pieza--grande { grid-column: auto; grid-row: span 2; } }
.pieza { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; overflow: hidden; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); box-shadow: var(--sombra-suave); text-decoration: none; color: var(--texto); }
.pieza:hover { color: var(--texto); border-color: rgba(37, 99, 235, 0.45); }
.pieza:hover .pieza__titulo { color: var(--blue-2); }
.pieza__meta { position: relative; font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-2); }
.pieza__meta span { margin-left: 8px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--texto-2); }
.pieza__titulo { position: relative; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--tinta); }
.pieza--grande { min-height: 320px; justify-content: flex-end; padding: 32px; background: var(--navy-2); border: 0; color: #fff; }
.pieza--grande:hover { color: #fff; }
.pieza--grande .pieza__meta { color: var(--blue-claro); }
.pieza--grande .pieza__meta span { color: var(--text-muted); }
.pieza--grande .pieza__titulo, .pieza--grande:hover .pieza__titulo { color: #fff; font-size: 28px; font-weight: 700; line-height: 1.15; }
.pieza__copete { position: relative; color: var(--text-muted); }
/* Piezas con foto (todas las que la tengan, no solo la grande): la foto
   ocupa el recuadro y el texto va abajo, en blanco sobre el degradé. */
.pieza--foto { min-height: 210px; justify-content: flex-end; gap: 6px; padding: 20px 22px; background: var(--navy-3); border: 0; color: #fff; }
.pieza--foto.pieza--grande { min-height: 320px; padding: 32px; }
.pieza--foto:hover { color: #fff; }
.pieza--foto .pieza__meta { color: var(--blue-claro); }
.pieza--foto .pieza__meta span { color: var(--text-muted); }
.pieza--foto .pieza__titulo, .pieza--foto:hover .pieza__titulo { color: #fff; text-shadow: 0 1px 12px rgba(1, 28, 48, 0.45); }
.pieza--foto:not(.pieza--grande) .pieza__titulo { font-size: 17px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pieza__foto { position: absolute; inset: 0; overflow: hidden; background: var(--navy-3); }
.pieza__foto img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.pieza--foto:hover .pieza__foto img, .pieza--foto:focus-visible .pieza__foto img { transform: scale(1.05); }
/* Foto real a color; solo se oscurece abajo, donde van el título y la bajada. */
.pieza__foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(1, 28, 48, 0.92) 0%, rgba(1, 28, 48, 0.62) 34%, rgba(1, 28, 48, 0) 66%); }
.pieza--foto:not(.pieza--grande) .pieza__foto::after { background: linear-gradient(to top, rgba(1, 28, 48, 0.94) 0%, rgba(1, 28, 48, 0.7) 45%, rgba(1, 28, 48, 0.05) 80%); }

.tabla-envoltura { overflow-x: auto; }
.tabla { width: 100%; border-collapse: collapse; }
.tabla th { padding: 0 16px 10px 0; text-align: left; font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--texto-2); border-bottom: 1px solid var(--linea); }
.tabla td { padding: 16px 16px 16px 0; vertical-align: top; border-bottom: 1px solid var(--linea); font-size: 15px; }
.tabla td:first-child { width: 120px; white-space: nowrap; font-size: 13.5px; font-weight: 700; color: var(--blue-2); font-variant-numeric: tabular-nums; }
.tabla td:nth-child(2) { width: 150px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--texto-2); }
.tabla a { color: var(--tinta); font-weight: 600; text-decoration: none; }
.tabla a:hover { color: var(--blue-2); text-decoration: underline; }

.cita { display: grid; gap: 36px; }
@media (min-width: 900px) { .cita { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.cita__frase { margin: 0; font-size: clamp(28px, 4vw, 46px); font-weight: 300; line-height: 1.12; letter-spacing: -0.02em; color: var(--tinta); }
.cita__frase b { font-weight: 800; color: var(--blue-2); }
.cita ul { list-style: none; margin: 0; padding: 0; }
.cita li { position: relative; padding: 16px 0 16px 32px; border-top: 1px solid var(--linea); font-size: 15px; }
.cita li::before { content: ""; position: absolute; left: 0; top: 23px; width: 16px; height: 10px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }

.rubros { display: grid; gap: 14px; }
@media (min-width: 640px) { .rubros { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .rubros { grid-template-columns: repeat(4, 1fr); } }
.rubro { display: flex; flex-direction: column; gap: 6px; padding: 22px; text-decoration: none; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); }
.rubro b { font-size: 17px; font-weight: 700; color: var(--tinta); }
.rubro span { font-size: 13.5px; color: var(--texto-2); }
.rubro:hover { border-color: rgba(37, 99, 235, 0.45); }
.rubro:hover b { color: var(--blue-2); }

.publicidad { padding-top: 64px; padding-bottom: 8px; }
.publicidad__rotulo { margin: 0 0 10px; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; color: var(--texto-2); }
.banner { display: flex; flex-direction: column-reverse; overflow: hidden; border-radius: var(--radio); background: var(--navy-2); color: #fff; text-decoration: none; }
.banner:hover { color: #fff; }
@media (min-width: 640px) { .banner { flex-direction: row; height: 240px; } }
.banner__texto { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 28px; }
@media (min-width: 640px) { .banner__texto { padding: 36px 40px; } }
.banner__titulo { font-size: 26px; font-weight: 700; line-height: 1.2; }
.banner__copete { font-size: 15px; color: var(--text-muted); }
.boton-blanco { align-self: flex-start; margin-top: 4px; padding: 9px 18px; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.banner:hover .boton-blanco { background: #fff; color: var(--navy); }
.banner img { width: 100%; height: 190px; object-fit: cover; object-position: top; }
@media (min-width: 640px) { .banner img { width: 38%; height: 100%; } }
.puntos { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.puntos button { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: #b4c3d2; transition: width 0.2s; }
.puntos button[aria-current="true"] { width: 24px; background: var(--blue-2); }
.puntos button::after { content: ""; position: absolute; inset: -18px -10px; }

.seccion-cabeza { display: flex; flex-direction: column; gap: 18px; padding: 48px 0 20px; margin-bottom: 36px; border-bottom: 2px solid var(--tinta); }
.seccion-cabeza h1 { margin: 0; font-size: clamp(36px, 5vw, 52px); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: var(--tinta); }
.filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.filtros__rotulo { margin-right: 6px; font-size: 13px; font-weight: 600; color: var(--texto-2); }
.filtros a { padding: 8px 16px; border: 1px solid var(--linea); border-radius: 999px; color: var(--texto); font-size: 13.5px; text-decoration: none; }
.filtros a:hover { border-color: var(--blue-2); color: var(--blue-2); }
.filtros a[aria-current="true"] { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }

.bloque { padding-bottom: 64px; }
.grilla { display: grid; gap: 20px; align-items: start; }
@media (min-width: 640px) { .grilla { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grilla { grid-template-columns: repeat(3, 1fr); } }
.tarjeta { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); box-shadow: var(--sombra-suave); color: var(--texto); text-decoration: none; }
.tarjeta:hover { color: var(--texto); border-color: rgba(37, 99, 235, 0.45); }
.tarjeta img { width: 100%; aspect-ratio: 330 / 190; object-fit: cover; object-position: top; }
.tarjeta--sin-imagen { border-top: 3px solid var(--blue-2); }
.tarjeta__cuerpo { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.volanta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-2); }
.volanta__fecha { color: var(--texto-2); font-weight: 600; letter-spacing: 0; text-transform: none; }
.tarjeta__titulo { font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--tinta); }
.tarjeta:hover .tarjeta__titulo { color: var(--blue-2); }
.tarjeta__copete { font-size: 14px; color: var(--texto-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.noticias__grilla { display: grid; border-top: 1px solid var(--linea); }
.noticia { display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--linea); text-decoration: none; }
.fecha-bloque { font-size: 13.5px; font-weight: 700; color: var(--blue-2); font-variant-numeric: tabular-nums; }
.fecha-bloque span { margin-left: 4px; }
.noticia__titulo { font-size: 16px; font-weight: 600; color: var(--tinta); }
.noticia:hover .noticia__titulo { color: var(--blue-2); text-decoration: underline; }
.ejemplo-teaser { max-width: 640px; padding: 36px; background: var(--fondo); border: 1px solid var(--linea); border-radius: var(--radio); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ejemplo-teaser h2 { margin: 0; font-size: 26px; font-weight: 800; color: var(--tinta); }
.ejemplo-teaser p { margin: 0 0 6px; color: var(--texto-2); }
.boton-color { display: inline-flex; padding: 10px 22px; border-radius: 999px; background: var(--blue-2); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.boton-color:hover { background: var(--navy-2); color: #fff; }

.nota-fila { display: grid; gap: 48px; padding-top: 44px; padding-bottom: 72px; }
@media (min-width: 1000px) { .nota-fila { grid-template-columns: minmax(0, 1fr) 320px; } }
.nota { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.nota__volver { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; }
.nota__volver:hover { text-decoration: underline; }
.nota h1 { margin: 0; font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: var(--tinta); }
.nota__copete { margin: 0; font-size: 19px; line-height: 1.55; color: var(--texto-2); }
.nota__fecha { margin: 0; font-size: 13px; color: var(--texto-2); }
.nota__imagen { width: 100%; border-radius: var(--radio); }
.nota__cuerpo { font-size: 17px; line-height: 1.75; }
.nota__cuerpo h2, .nota__cuerpo h3 { color: var(--tinta); line-height: 1.25; }
.nota__cuerpo a { font-weight: 600; }
.nota__enlaces { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid var(--linea); }
.nota__enlaces a { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; word-break: break-all; }

/* Galería de fotos (novedades de tipo "galeria", o fotos adicionales de un artículo). */
.tarjeta__foto { position: relative; display: block; }
.tarjeta__foto img { display: block; }
.marca-galeria { position: absolute; top: 12px; left: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(7, 24, 39, 0.78); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.marca-galeria .icono { width: 14px; height: 14px; }
.nota__fotos { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; border-top: 1px solid var(--linea); }
.nota__fotos h2 { margin: 0; font-size: 20px; font-weight: 800; color: var(--tinta); }
.galeria { margin: 0; display: flex; flex-direction: column; gap: 12px; }
/* El escenario toma el tamaño de cada foto (sin franjas): ancho completo y
   alto proporcional, con tope de alto para las verticales, que quedan centradas. */
.galeria__escenario { position: relative; overflow: hidden; width: fit-content; min-width: min(240px, 100%); max-width: 100%; margin: 0 auto; border-radius: var(--radio); background: #071827; }
.galeria__ver { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.galeria__foto { display: block; width: auto; max-width: 100%; height: auto; max-height: 75vh; margin: 0 auto; }
.galeria__ampliar { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(7, 24, 39, 0.6); color: #fff; opacity: 0; transition: opacity 0.2s ease; }
.galeria__ampliar .icono { width: 18px; height: 18px; }
.galeria__ver:hover .galeria__ampliar, .galeria__ver:focus-visible .galeria__ampliar { opacity: 1; }
.galeria__ver:focus-visible { outline-offset: -3px; }
.galeria__flecha, .visor__flecha { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--navy); cursor: pointer; box-shadow: 0 4px 14px rgba(7, 24, 39, 0.25); }
.galeria__flecha:hover, .visor__flecha:hover { background: #fff; color: var(--blue-2); }
.galeria__flecha .icono, .visor__flecha .icono { width: 22px; height: 22px; stroke-width: 2.2; }
.galeria__flecha--ant { left: 12px; }
.galeria__flecha--sig { right: 12px; }
.galeria__contador { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(7, 24, 39, 0.7); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.galeria__pie { font-size: 14px; color: var(--texto-2); }
.galeria__miniaturas { display: flex; gap: 8px; overflow-x: auto; padding: 3px; scrollbar-width: thin; }
.galeria__miniaturas button { flex: 0 0 auto; width: 84px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: var(--linea); cursor: pointer; opacity: 0.6; transition: opacity 0.2s ease, border-color 0.2s ease; }
.galeria__miniaturas button:hover { opacity: 1; }
.galeria__miniaturas button[aria-current="true"] { border-color: var(--blue-2); opacity: 1; }
.galeria__miniaturas img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) {
  .galeria__flecha { width: 36px; height: 36px; }
  .galeria__ampliar { opacity: 1; }
}

/* Revista: estante de tapas en la sección y libro para hojear en la nota. */
.revistero { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 40px 28px; }
.revistero__item { display: flex; flex-direction: column; gap: 6px; color: var(--texto); text-decoration: none; }
.revistero__tapa { position: relative; display: block; aspect-ratio: 990 / 1400; margin-bottom: 10px; overflow: hidden; border-radius: 3px 6px 6px 3px; background: var(--linea); box-shadow: 0 1px 2px rgba(7, 24, 39, 0.12), 0 14px 30px -10px rgba(7, 24, 39, 0.45); transition: transform 0.35s ease, box-shadow 0.35s ease; }
/* Lomo: una sombra fina a la izquierda, como una revista abrochada. */
.revistero__tapa::before { content: ""; position: absolute; inset: 0 auto 0 0; z-index: 1; width: 7%; background: linear-gradient(to right, rgba(0, 0, 0, 0.22), rgba(255, 255, 255, 0.12) 45%, rgba(0, 0, 0, 0)); }
.revistero__tapa img { display: block; width: 100%; height: 100%; object-fit: cover; }
.revistero__sin-tapa { display: grid; place-items: center; height: 100%; padding: 20px; background: var(--navy-2); color: #fff; font-weight: 800; text-align: center; }
.revistero__leer { position: absolute; left: 50%; bottom: 16px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; background: #fff; color: var(--navy); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 6px 18px rgba(7, 24, 39, 0.3); opacity: 0; transform: translate(-50%, 8px); transition: opacity 0.3s ease, transform 0.3s ease; }
.revistero__leer .icono { width: 16px; height: 16px; }
.revistero__item:hover .revistero__tapa, .revistero__item:focus-visible .revistero__tapa { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 1px 2px rgba(7, 24, 39, 0.12), 0 26px 40px -12px rgba(7, 24, 39, 0.5); }
.revistero__item:hover .revistero__leer, .revistero__item:focus-visible .revistero__leer { opacity: 1; transform: translate(-50%, 0); }
.revistero__titulo { font-size: 17px; font-weight: 800; line-height: 1.25; color: var(--tinta); }
.revistero__item:hover .revistero__titulo { color: var(--blue-2); }
.revistero__fecha { font-size: 13px; color: var(--texto-2); }
@media (max-width: 600px) {
  .revistero { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .revistero__leer { opacity: 1; transform: translate(-50%, 0); padding: 7px 12px; font-size: 11px; }
}

.revista-nota { display: flex; flex-direction: column; gap: 28px; padding-top: 44px; padding-bottom: 72px; }
.revista-nota__cabeza { display: flex; flex-direction: column; gap: 14px; }
.revista-nota__cabeza h1 { margin: 0; font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: var(--tinta); }
.revista-nota__cuerpo { max-width: 760px; }
.revista { --alto-libro: min(68vh, 860px); display: flex; flex-direction: column; gap: 18px; padding: 40px 24px 22px; border-radius: var(--radio); background: radial-gradient(ellipse at 50% 35%, #12405c 0%, #0a2638 55%, #061826 100%); color: #fff; }
.revista__escenario { position: relative; display: grid; place-items: center; min-height: 280px; }
/* El libro abierto mide dos páginas de ancho; el alto lo limita la pantalla. */
.revista__marco { width: min(100%, calc(var(--alto-libro) * var(--proporcion, 0.707) * 2)); margin: 0 auto; filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.45)); }
.revista:not(.revista--lista) .revista__marco { visibility: hidden; height: 0; overflow: hidden; }
.revista__pagina { background: #fff; }
.revista__pagina img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; user-select: none; -webkit-user-drag: none; }
.revista__cargando { position: absolute; margin: 0; font-size: 14px; color: #b8c7d6; }
.revista--lista .revista__cargando { display: none; }
.revista__barra { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.revista__boton { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease; }
.revista__boton:hover:not(:disabled) { background: #fff; border-color: #fff; color: var(--navy); }
.revista__boton:disabled { opacity: 0.35; cursor: default; }
.revista__boton .icono { width: 20px; height: 20px; stroke-width: 2.2; }
.revista__indicador { min-width: 190px; font-size: 14px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.revista__separador { width: 1px; height: 26px; margin: 0 6px; background: rgba(255, 255, 255, 0.22); }
.revista__descargar { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-decoration: none; }
.revista__descargar:hover { background: #fff; color: var(--navy); }
.revista__descargar .icono { width: 18px; height: 18px; stroke-width: 2.2; }
.revista__miniaturas { display: flex; gap: 10px; overflow-x: auto; padding: 6px 4px 8px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.3) transparent; }
.revista__miniaturas button { position: relative; flex: 0 0 auto; width: 62px; aspect-ratio: 990 / 1400; padding: 0; border: 2px solid transparent; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, 0.1); cursor: pointer; opacity: 0.55; transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.revista__miniaturas button:hover { opacity: 1; transform: translateY(-2px); }
.revista__miniaturas button[aria-current="true"] { border-color: var(--blue-claro); opacity: 1; }
.revista__miniaturas img { display: block; width: 100%; height: 100%; object-fit: cover; }
.revista__miniaturas span { position: absolute; right: 3px; bottom: 3px; padding: 0 4px; border-radius: 3px; background: rgba(7, 24, 39, 0.75); font-size: 10px; font-weight: 700; color: #fff; }
.revista :focus-visible { outline-color: var(--blue-claro); }
.revista:fullscreen { --alto-libro: calc(100vh - 190px); justify-content: center; border-radius: 0; }
@media (max-width: 600px) {
  .revista { --alto-libro: 70vh; margin: 0 -20px; padding: 24px 12px 16px; border-radius: 0; }
  .revista__indicador { min-width: 0; flex: 1; font-size: 13px; }
  .revista__separador { display: none; }
  .revista__descargar span { display: none; }
  .revista__descargar { width: 42px; padding: 0; justify-content: center; }
}

/* Revista en la portada: banda oscura con la tapa apoyada y el llamado a leerla. */
.revista-portada { overflow: hidden; padding: 72px 0; background: radial-gradient(ellipse at 22% 50%, #12405c 0%, #0a2638 50%, #061826 100%); color: #fff; }
.revista-portada__fila { display: grid; align-items: center; gap: 48px; }
@media (min-width: 800px) { .revista-portada__fila { grid-template-columns: minmax(220px, 340px) 1fr; gap: 72px; } }
.revista-portada__tapa { position: relative; display: block; width: min(300px, 70%); margin: 0 auto; aspect-ratio: 990 / 1400; transform: rotate(-4deg); transition: transform 0.45s ease; }
.revista-portada__tapa img { position: relative; z-index: 2; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 3px 6px 6px 3px; box-shadow: 0 30px 50px -18px rgba(0, 0, 0, 0.7); }
/* Lomo de la tapa. */
.revista-portada__tapa::after { content: ""; position: absolute; inset: 0 auto 0 0; z-index: 3; width: 7%; border-radius: 3px 0 0 3px; background: linear-gradient(to right, rgba(0, 0, 0, 0.25), rgba(255, 255, 255, 0.14) 45%, rgba(0, 0, 0, 0)); }
/* Hojas que asoman detrás de la tapa. */
.revista-portada__hoja { position: absolute; inset: 0; border-radius: 3px 6px 6px 3px; background: #f3f5f7; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5); transition: transform 0.45s ease; }
.revista-portada__hoja--1 { z-index: 1; transform: translate(10px, 6px) rotate(3deg); }
.revista-portada__hoja--2 { z-index: 0; background: #e2e8ee; transform: translate(18px, 12px) rotate(7deg); }
.revista-portada__fila:hover .revista-portada__tapa { transform: rotate(-2deg) translateY(-6px); }
.revista-portada__fila:hover .revista-portada__hoja--1 { transform: translate(22px, 4px) rotate(6deg); }
.revista-portada__fila:hover .revista-portada__hoja--2 { transform: translate(38px, 8px) rotate(12deg); }
.revista-portada__texto { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 560px; }
.revista-portada__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-claro); }
.revista-portada__eyebrow .icono { width: 18px; height: 18px; }
.revista-portada__texto h2 { margin: 0; font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: #fff; }
.revista-portada__fecha { margin: 0; font-size: 14px; color: var(--text-muted); }
.revista-portada__bajada { margin: 4px 0 10px; font-size: 18px; line-height: 1.55; color: #d6e2ec; }
.revista-portada__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.revista-portada__leer { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: 0.04em; text-decoration: none; box-shadow: 0 10px 24px -8px rgba(22, 131, 255, 0.7); }
.revista-portada__leer:hover { background: #fff; color: var(--navy); }
.revista-portada__leer .icono { width: 20px; height: 20px; stroke-width: 2; }
.revista-portada__todas { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; text-decoration: none; }
.revista-portada__todas:hover { color: var(--blue-claro); text-decoration: underline; }
.revista-portada :focus-visible { outline-color: var(--blue-claro); }
@media (max-width: 799px) {
  .revista-portada { padding: 56px 0 64px; }
  .revista-portada__tapa { width: min(220px, 62%); }
  .revista-portada__texto { align-items: center; margin: 0 auto; text-align: center; }
  .revista-portada__acciones { justify-content: center; }
}

/* Visor a pantalla completa. */
.visor-abierto { overflow: hidden; }
.visor { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(3, 12, 20, 0.96); color: #fff; }
.visor::backdrop { background: rgba(3, 12, 20, 0.96); }
.visor__marco { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 64px 72px 48px; }
.visor__foto { max-width: 100%; max-height: calc(100% - 40px); object-fit: contain; }
.visor__pie { max-width: 720px; font-size: 14px; text-align: center; color: #c6d3dc; }
.visor__flecha--ant { left: 16px; }
.visor__flecha--sig { right: 16px; }
.visor__cerrar { position: absolute; top: 14px; right: 14px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; }
.visor__cerrar:hover { background: rgba(255, 255, 255, 0.24); }
.visor__cerrar .icono { width: 22px; height: 22px; stroke-width: 2.2; }
.visor__contador { position: absolute; top: 24px; left: 20px; font-size: 13px; font-weight: 700; color: #c6d3dc; font-variant-numeric: tabular-nums; }
.visor :focus-visible { outline-color: var(--blue-claro); }
@media (max-width: 600px) {
  .visor__marco { padding: 64px 12px 32px; }
  .visor__flecha { top: auto; bottom: 16px; transform: none; }
}
.ultimo { align-self: start; padding: 22px; background: var(--fondo); border: 1px solid var(--linea); border-radius: var(--radio); }
.ultimo__cabeza { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--tinta); }
.ultimo__cabeza h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--tinta); }
.ultimo ol { list-style: none; margin: 0; padding: 0; }
.ultimo li { border-bottom: 1px solid var(--linea); }
.ultimo li:last-child { border-bottom: 0; }
.ultimo a { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; text-decoration: none; color: var(--tinta); }
.ultimo a:hover .ultimo__titulo { color: var(--blue-2); text-decoration: underline; }
.ultimo__meta { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--texto-2); }
.ultimo__meta--reciente { color: var(--blue-2); }
.ultimo__titulo { font-size: 15px; font-weight: 600; line-height: 1.35; }
.ultimo__vacio { padding: 20px 0; color: var(--texto-2); font-size: 14px; }

/* ── 13. Responsive ───────────────────────────────────────── */
.hero__bloque { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 36px; }
.hero__grilla { display: grid; gap: 36px; align-items: center; }
@media (min-width: 1000px) {
  .hero__grilla { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 40px; }
  .hero__texto { position: relative; z-index: 2; }
  .beneficios { position: relative; z-index: 2; }
}
@media (min-width: 640px) and (max-width: 999px) {
  .hero__grilla { grid-template-columns: 1fr 1fr; }
}
.personas--inferior {
  align-self: center;
  max-width: 980px;
  margin: 10px auto 0;
}
/* Menú hamburguesa por debajo de 1280px. */
@media (max-width: 1279px) {
  .menu-boton { display: inline-flex; }
  .cabecera__fila { flex-wrap: wrap; }
  .menu {
    display: none; order: 3; flex: 1 1 100%; flex-direction: column; gap: 0;
    margin: 10px -20px 0; padding: 8px 0; background: #ffffff; border-top: 1px solid #e2e8f0;
    box-shadow: 0 12px 28px rgba(7, 24, 39, 0.12);
  }
  .cabecera--abierta .menu { display: flex; }
  .menu a {
    padding: 14px 24px; color: #0b2230; font-size: 14px; font-weight: 700;
    border-bottom: 1px solid #f1f5f9; box-shadow: none;
  }
  .menu a:hover, .menu a[aria-current="page"] {
    color: #1683ff; background: #f8fafc; box-shadow: inset 4px 0 0 #1683ff; padding-left: 28px;
  }
  .ingreso { order: 1; margin-left: auto; padding: 9px 14px; }
  .menu-boton { order: 2; margin-left: 0; }
}
@media (max-width: 1279px) and (min-width: 640px) { .menu { margin: 10px -32px 0; padding: 8px 0; } }
/* Mobile: texto, botones, personas, beneficios (en ese orden). */
@media (max-width: 899px) {
  .diseno-selector-contenedor {
    position: relative;
    top: 0;
    margin-bottom: 20px;
    justify-content: center;
  }
  .diseno-selector-bar {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 16px;
  }
  .hero:not(.hero--video-top) { min-height: 0; padding-top: calc(var(--alto-header) + 32px); padding-bottom: 48px; }
  .hero__grilla { gap: 32px; }
  .personas { width: 112%; margin: 0 -6%; }
  .beneficios { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 639px) {
  :root { --alto-header: 66px; }
  .marca img { height: 30px; }
  .ingreso { font-size: 0; gap: 0; padding: 0; width: 44px; height: 44px; justify-content: center; }
  .ingreso svg { width: 20px; height: 20px; }
  .hero__titulo { font-size: clamp(40px, 11.5vw, 56px); }
  .hero__bajada { font-size: 16px; }
  .tienda { min-width: 0; flex: 1 1 150px; }
  .beneficios { grid-template-columns: 1fr; }
  .todo-app { padding: 64px 0; }
  .bloque-sec { padding: 56px 0; }
  .tabla td:nth-child(2), .tabla th:nth-child(2) { display: none; }
}

/* ── 14. Animaciones y accesibilidad ──────────────────────── */
@keyframes entrada { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__texto { animation: entrada 0.7s ease-out both; }
.personas { animation: entrada 0.8s 0.15s ease-out both; }
.beneficios { animation: entrada 0.8s 0.3s ease-out both; }

.saltar { position: absolute; left: 16px; top: -48px; z-index: 30; padding: 10px 16px; border-radius: 8px; background: #fff; color: var(--navy); font-weight: 700; }
.saltar:focus { top: 8px; }
.visualmente-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.cabecera :focus-visible, .hero :focus-visible, .pie :focus-visible { outline-color: var(--blue-claro); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ── Diseño 3 definitivo ──────────────────────────────────── */
/* Portada: la cabecera forma parte del hero. En secciones y notas conserva
   una franja propia para que la navegación siga siendo legible. */
html:not(.sin-portada) .cabecera {
  position: absolute;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(4, 19, 33, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.sin-portada .cabecera {
  background: var(--navy);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 5px 18px rgba(7, 24, 39, 0.14);
}
.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}
.marca:hover { color: #fff; }
.marca img {
  width: auto;
  height: 54px;
}
.marca .marca__logo--claro,
html[data-tema="oscuro"] .marca .marca__logo { display: none; }
html[data-tema="oscuro"] .marca .marca__logo--claro { display: block; }
.marca__texto { display: flex; align-items: center; gap: 10px; line-height: 1.15; }
.marca__texto small {
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 9px;
  font-weight: 600;
}
html:not(.sin-portada) .menu a,
.sin-portada .menu a { color: #fff; }
html:not(.sin-portada) .menu a:hover,
html:not(.sin-portada) .menu a[aria-current="page"],
.sin-portada .menu a:hover,
.sin-portada .menu a[aria-current="page"] { color: #73b9ff; box-shadow: inset 0 -3px 0 var(--blue); }
html:not(.sin-portada) .ingreso,
.sin-portada .ingreso {
  border-color: rgba(255, 255, 255, 0.72);
  background: transparent;
  color: #fff;
}
html:not(.sin-portada) .ingreso:hover,
.sin-portada .ingreso:hover { background: #fff; border-color: #fff; color: var(--navy); }

.hero,
.hero[data-diseno="3"] {
  min-height: clamp(700px, 88vh, 830px);
  padding: 132px 0 42px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(3, 16, 28, 0.97) 0%, rgba(4, 22, 38, 0.85) 36%, rgba(4, 24, 42, 0.63) 67%, rgba(3, 17, 30, 0.86) 100%),
    linear-gradient(180deg, rgba(3, 16, 28, 0.1) 45%, rgba(3, 16, 28, 0.82) 100%),
    url(img/hero-upsafip.jpg) center 43% / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}
.hero__bloque { width: 100%; }
.hero__grilla {
  width: 100%;
  grid-template-columns: minmax(285px, 0.88fr) minmax(470px, 1.45fr) minmax(245px, 0.72fr);
  gap: 18px;
  align-items: center;
}
.hero__texto { min-width: 0; max-width: 390px; }
.hero__eyebrow {
  margin-bottom: 12px;
  color: #a8d4ff;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.hero__titulo {
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(43px, 3.6vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}
.hero__titulo span { color: #2c9cff; }
.hero__bajada { margin-bottom: 26px; color: #e3edf6; font-size: 16.5px; line-height: 1.5; }
.tienda { border-radius: 6px; }

.hero .personas {
  width: 116%;
  max-width: none;
  margin: 0 -8%;
  align-self: end;
  -webkit-mask-image: none;
  mask-image: none;
}
.hero .personas::before { opacity: 0.4; }

.hero .beneficios { gap: 4px; }
.hero .beneficios a {
  min-height: 68px;
  padding: 11px 8px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.hero .beneficios li:last-child a { border-bottom: 0; }
.hero .beneficios a:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.2); }
.hero .beneficios__icono {
  width: 39px;
  height: 39px;
  border: 1px solid rgba(115, 185, 255, 0.45);
  background: rgba(7, 36, 61, 0.72);
  color: #8fc8ff;
}
.hero .beneficios b { color: #fff; font-size: 14px; }
.hero .beneficios small { color: #b8c9d9; font-size: 11.5px; }

.todo-app { padding: 76px 0; }

@media (max-width: 1279px) {
  .marca__texto small { display: none; }
  html:not(.sin-portada) .menu,
  .sin-portada .menu {
    background: rgba(4, 19, 33, 0.98);
    border-top-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 28px rgba(2, 12, 22, 0.35);
  }
  html:not(.sin-portada) .menu a,
  .sin-portada .menu a { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.08); }
  html:not(.sin-portada) .menu a:hover,
  html:not(.sin-portada) .menu a[aria-current="page"],
  .sin-portada .menu a:hover,
  .sin-portada .menu a[aria-current="page"] {
    color: #8fc8ff;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 4px 0 0 var(--blue);
  }
  html:not(.sin-portada) .menu-boton,
  .sin-portada .menu-boton {
    border-color: rgba(255, 255, 255, 0.45);
    background: transparent;
  }
  html:not(.sin-portada) .menu-boton__barras,
  html:not(.sin-portada) .menu-boton__barras::before,
  html:not(.sin-portada) .menu-boton__barras::after,
  .sin-portada .menu-boton__barras,
  .sin-portada .menu-boton__barras::before,
  .sin-portada .menu-boton__barras::after { background: #fff; }
  html:not(.sin-portada) .cabecera--abierta .menu-boton__barras,
  .sin-portada .cabecera--abierta .menu-boton__barras { background: transparent; }
}

@media (min-width: 900px) and (max-width: 1099px) {
  .hero { min-height: 0; padding-top: 132px; padding-bottom: 48px; }
  .hero__grilla { grid-template-columns: minmax(280px, 0.82fr) minmax(480px, 1.18fr); gap: 20px; }
  .hero .personas { width: 108%; margin: 0 -4%; }
  .hero .beneficios { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
}

@media (max-width: 899px) {
  .hero,
  .hero:not(.hero--video-top) {
    min-height: 0;
    padding: 124px 0 52px;
    background-position: 58% center;
  }
  .hero__grilla { grid-template-columns: 1fr; gap: 30px; }
  .hero__texto { max-width: 570px; }
  .hero .personas { width: 100%; max-width: 680px; margin: 0 auto; }
  .hero .beneficios { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
}

@media (max-width: 639px) {
  .cabecera__fila { gap: 10px; }
  .marca { gap: 7px; }
  .marca img { height: 40px; }
  .hero,
  .hero:not(.hero--video-top) { padding-top: 108px; padding-bottom: 42px; background-position: 62% center; }
  .hero__grilla { gap: 24px; }
  .hero__titulo { font-size: 42px; line-height: 1.04; }
  .hero__bajada { font-size: 15.5px; }
  .hero .personas { width: 108%; margin: 0 -4%; }
  .hero .beneficios { grid-template-columns: 1fr; }
  .hero .beneficios a { min-height: 62px; }
  .todo-app { padding: 58px 0; }
}

/* ── Formulario de afiliación ─────────────────────────────── */
.afiliacion {
  width: min(1180px, calc(100% - 40px));
  max-width: none;
  height: min(860px, calc(100vh - 40px));
  height: min(860px, calc(100dvh - 40px));
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--texto);
  box-shadow: 0 30px 80px rgba(2, 13, 23, 0.38);
}
.afiliacion[open] { animation: afiliacion-entrada 0.24s ease-out both; }
.afiliacion::backdrop { background: rgba(3, 14, 25, 0.74); }
@keyframes afiliacion-entrada {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.afiliacion__panel { display: grid; grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr); height: 100%; }
.afiliacion__presentacion {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 48px;
  overflow: hidden;
  color: #fff;
  background:
    /* Arriba y abajo más oscuro para el logo y el texto; en el medio se ve el paisaje. */
    linear-gradient(180deg, rgba(1, 40, 72, 0.6) 0%, rgba(1, 40, 72, 0.1) 26%, rgba(1, 40, 72, 0.2) 40%, rgba(1, 34, 68, 0.72) 58%, rgba(1, 30, 66, 0.9) 100%),
    url(img/afiliacion-paisaje.jpg) center 60% / cover no-repeat #0b3d7a;
}
.afiliacion__presentacion::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% 15%;
  aspect-ratio: 1;
  border: 1px solid rgba(83, 169, 255, 0.32);
  border-radius: 50%;
}
.afiliacion__marca { position: relative; z-index: 1; align-self: flex-start; }
.afiliacion__marca img { display: block; width: auto; height: 120px; }
.afiliacion__presentacion > div { position: relative; z-index: 1; }
.afiliacion__eyebrow,
.afiliacion__paso { margin: 0 0 12px; color: #8fc8ff; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; }
.afiliacion__presentacion h2 { margin: 0 0 18px; max-width: 13ch; color: #fff; font-size: clamp(30px, 3vw, 44px); line-height: 1.12; letter-spacing: 0; }
.afiliacion__presentacion p:last-child { margin: 0; max-width: 37ch; color: #d9e6f1; font-size: 15px; line-height: 1.65; }
.afiliacion__contenido { min-width: 0; overflow-y: auto; overscroll-behavior: contain; padding: 42px 48px 36px; }
.afiliacion__cabecera { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.afiliacion__cabecera h2 { margin: 0 0 8px; color: var(--tinta); font-size: 34px; line-height: 1.1; letter-spacing: 0; }
.afiliacion__cabecera p:last-child { margin: 0; max-width: 56ch; color: var(--texto-2); font-size: 14px; }
.afiliacion__cerrar {
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--linea);
  border-radius: 50%;
  background: #fff;
  color: var(--tinta);
}
.afiliacion__cerrar:hover { border-color: var(--blue); color: var(--blue-2); }
.afiliacion__cerrar svg { width: 20px; height: 20px; }
.afiliacion__grilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; }
.campo { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.campo--ancho { grid-column: 1 / -1; }
.campo > span,
.campo > label span { color: var(--tinta); font-size: 12px; font-weight: 700; }
.campo b,
.afiliacion__obligatorios b { color: #d23a3a; }
.campo input,
.campo select {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #cbd5df;
  border-radius: 4px;
  background: #fff;
  color: var(--tinta);
  font: inherit;
  font-size: 14px;
}
.campo input::placeholder { color: #8a99a8; }
.campo input:hover,
.campo select:hover { border-color: #8fa7ba; }
.campo input:focus,
.campo select:focus { border-color: var(--blue); outline: 3px solid rgba(22, 131, 255, 0.14); }
.campo [aria-invalid="true"] { border-color: #d23a3a; outline-color: rgba(210, 58, 58, 0.14); }
.campo__error { color: #b42318; font-size: 12px; font-weight: 600; line-height: 1.35; }
.campo__error[hidden] { display: none; }
.afiliacion-autocompletar { position: relative; }
.afiliacion-sugerencias {
  position: absolute;
  z-index: 5;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #cbd5df;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(7, 24, 39, 0.16);
}
.afiliacion-sugerencia,
.afiliacion-sugerencias__mensaje { padding: 11px 13px; font-size: 13px; line-height: 1.35; }
.afiliacion-sugerencia { cursor: pointer; color: var(--tinta); }
.afiliacion-sugerencia + .afiliacion-sugerencia { border-top: 1px solid var(--linea); }
.afiliacion-sugerencia:hover,
.afiliacion-sugerencia[aria-selected="true"] { background: #edf5ff; color: var(--blue-2); }
.afiliacion-sugerencias__mensaje { color: var(--texto-2); }
.afiliacion__website { position: fixed; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.afiliacion__obligatorios { margin: 18px 0 0; font-size: 11.5px; color: var(--texto-2); }
.afiliacion__captcha { margin-top: 14px; min-height: 78px; }
.afiliacion__captcha[hidden] { display: none; }
.afiliacion__estado { min-height: 24px; margin-top: 8px; font-size: 13px; font-weight: 700; }
.afiliacion__estado--error { color: #b42318; }
.afiliacion__estado--exito { color: #137448; }
.afiliacion__acciones { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--linea); }
.afiliacion__cancelar,
.afiliacion__enviar {
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 4px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.afiliacion__cancelar { border: 1px solid #b9c6d1; background: #fff; color: var(--tinta); }
.afiliacion__cancelar:hover { border-color: var(--navy-2); }
.afiliacion__enviar { border: 1px solid var(--blue-2); background: var(--blue-2); color: #fff; }
.afiliacion__enviar:hover { border-color: var(--navy-2); background: var(--navy-2); }
.afiliacion__enviar:disabled { cursor: wait; opacity: 0.65; }

@media (max-width: 900px) {
  .afiliacion { width: min(720px, calc(100% - 28px)); height: calc(100vh - 28px); height: calc(100dvh - 28px); }
  .afiliacion__panel { grid-template-columns: 1fr; grid-template-rows: 210px minmax(0, 1fr); }
  .afiliacion__presentacion { padding: 28px 34px; }
  .afiliacion__marca img { height: 80px; }
  .afiliacion__presentacion h2 { max-width: 22ch; font-size: 28px; margin-bottom: 8px; }
  .afiliacion__presentacion p:last-child { font-size: 13px; }
  .afiliacion__contenido { padding: 32px 34px; }
}

@media (max-width: 560px) {
  .afiliacion { inset: 0; width: 100%; height: 100vh; height: 100dvh; border-radius: 0; }
  .afiliacion__panel { grid-template-rows: 158px minmax(0, 1fr); }
  .afiliacion__presentacion { padding: 20px; }
  .afiliacion__marca { display: none; }
  .afiliacion__presentacion h2 { font-size: 23px; }
  .afiliacion__presentacion p:last-child { display: none; }
  .afiliacion__contenido { padding: 24px 20px 28px; }
  .afiliacion__cabecera { margin-bottom: 24px; }
  .afiliacion__cabecera h2 { font-size: 28px; }
  .afiliacion__cabecera p:last-child { font-size: 12.5px; }
  .afiliacion__grilla { grid-template-columns: 1fr; gap: 16px; }
  .campo--ancho { grid-column: auto; }
  .campo input,
  .campo select { font-size: 16px; }
  .afiliacion__acciones { position: sticky; bottom: -28px; margin: 18px -20px -28px; padding: 16px 20px; background: #fff; }
  .afiliacion__cancelar,
  .afiliacion__enviar { flex: 1; padding-inline: 10px; }
}

@media (max-width: 900px) and (max-height: 650px) {
  .afiliacion__panel { grid-template-rows: 104px minmax(0, 1fr); }
  .afiliacion__presentacion { padding: 16px 24px; justify-content: center; }
  .afiliacion__marca,
  .afiliacion__presentacion p:last-child { display: none; }
  .afiliacion__presentacion h2 { margin: 0; font-size: 22px; }
  .afiliacion__eyebrow { margin-bottom: 5px; }
}

/* ── Template 1: editorial institucional ─────────────────── */
:root { --radio: 4px; }
.cabecera,
html:not(.sin-portada) .cabecera,
.sin-portada .cabecera {
  position: sticky;
  inset: auto;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--linea);
  box-shadow: 0 4px 16px rgba(7, 24, 39, 0.05);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.marca,
.marca:hover { color: var(--tinta); }
.marca__texto small { border-left-color: var(--linea); color: var(--texto-2); }
html:not(.sin-portada) .menu a,
.sin-portada .menu a { color: var(--tinta); }
html:not(.sin-portada) .menu a:hover,
html:not(.sin-portada) .menu a[aria-current="page"],
.sin-portada .menu a:hover,
.sin-portada .menu a[aria-current="page"] { color: var(--blue-2); box-shadow: inset 0 -3px 0 var(--blue); }
html:not(.sin-portada) .ingreso,
.sin-portada .ingreso {
  border-color: var(--navy-2);
  background: transparent;
  color: var(--navy-2);
}
html:not(.sin-portada) .ingreso:hover,
.sin-portada .ingreso:hover { border-color: var(--navy-2); background: var(--navy-2); color: #fff; }
.tema-boton {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--linea);
  border-radius: 50%;
  background: transparent;
  color: var(--tinta);
}
.tema-boton:hover { border-color: var(--blue); color: var(--blue-2); }
.tema-boton svg { width: 17px; height: 17px; }
.tema-boton__sol { display: none; }
html[data-tema="oscuro"] .tema-boton__luna { display: none; }
html[data-tema="oscuro"] .ingreso { border-color: rgba(255, 255, 255, 0.6); background: transparent; color: #fff; }
html[data-tema="oscuro"] .ingreso:hover { border-color: #fff; background: #fff; color: var(--navy); }
html[data-tema="oscuro"] .tema-boton__sol { display: block; }
.ultimo-momento { border-top: 0; background: var(--navy); }

/* Banner de portada (pieza "Afiliate y formá parte"): ocupa todo el ancho
   y abre la solicitud de afiliación. Solo en el inicio. */
.hero-banner { position: relative; background: #eaf3fb; }
.hero-banner__boton { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.hero-banner__boton img { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 600; object-fit: cover; }
.hero-banner__boton:focus-visible { outline: 3px solid var(--blue); outline-offset: -6px; }
.sin-portada .hero-banner { display: none; }
.boton-editorial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 3px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}
.boton-editorial--primario,
.boton-editorial--azul { border: 1px solid var(--blue-2); background: var(--blue-2); color: #fff; }
.boton-editorial--primario:hover,
.boton-editorial--azul:hover { border-color: #fff; background: #fff; color: var(--navy); }
.boton-editorial--secundario { border: 1px solid rgba(255, 255, 255, 0.7); color: #fff; }
.boton-editorial--secundario:hover { background: #fff; color: var(--navy); }

.accesos-principales { border-bottom: 1px solid var(--linea); background: #fff; }
.accesos-principales__grilla { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.accesos-principales a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-height: 108px;
  padding: 22px 20px;
  border-right: 1px solid var(--linea);
  color: var(--tinta);
  text-decoration: none;
}
.accesos-principales a:first-child { border-left: 1px solid var(--linea); }
.accesos-principales a:hover { background: var(--fondo); color: var(--blue-2); }
.accesos-principales svg { width: 27px; height: 27px; color: var(--blue-2); }
.accesos-principales b { display: block; font-size: 13px; }
.accesos-principales small { display: block; margin-top: 3px; color: var(--texto-2); font-size: 10px; }

.app-editorial { overflow: hidden; background: var(--navy-2); color: #fff; }
.app-editorial__grilla { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px; align-items: center; min-height: 470px; }
.app-editorial__eyebrow { margin: 0 0 14px; color: #91c9ff; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; }
.app-editorial__texto h2 { max-width: 13ch; margin: 0 0 16px; color: #fff; font-size: clamp(35px, 4vw, 50px); line-height: 1.06; letter-spacing: 0; }
.app-editorial__texto h2 span { display: block; color: #62b1ff; }
.app-editorial__texto > p:not(.app-editorial__eyebrow) { max-width: 43ch; margin: 0 0 26px; color: #c6d7e2; font-size: 15px; }
/* Las pantallas van detrás de la foto: las manos de las personas quedan por encima de los teléfonos. */
.app-escena { position: relative; align-self: end; margin: 48px 0 0; overflow: hidden; aspect-ratio: 1210 / 572; container-type: inline-size; -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent); mask-image: linear-gradient(to bottom, #000 80%, transparent); }
.app-escena::before { content: ""; position: absolute; inset: 8% 4% -30%; background: radial-gradient(closest-side, rgba(98, 177, 255, 0.28), transparent); }
.app-escena__telefono { position: absolute; padding: 0.55cqw; border-radius: 2.6cqw; background: #05090d; box-shadow: 0 0 0 0.12cqw rgba(255, 255, 255, 0.14), 0 3cqw 5cqw -1.5cqw rgba(0, 0, 0, 0.75); }
.app-escena__telefono img { display: block; width: 100%; height: auto; border-radius: 2.1cqw; }
.app-escena__telefono--inicio { left: 12.4%; top: 42%; width: 18.2%; }
.app-escena__telefono--credencial { left: 55.5%; top: 43.7%; width: 14.9%; }
.app-escena__personas { position: relative; z-index: 1; display: block; width: 100%; height: auto; pointer-events: none; }

@media (max-width: 1000px) {
  .app-editorial__grilla { grid-template-columns: 1fr; gap: 10px; padding-top: 62px; }
  .app-escena { width: 100%; max-width: 760px; margin: 24px auto 0; }
}

.afiliacion-cta { padding: 64px 0; background: #fff; }
.afiliacion-cta__fila { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding-top: 30px; padding-bottom: 30px; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.afiliacion-cta p { margin: 0 0 7px; color: var(--blue-2); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; }
.afiliacion-cta h2 { margin: 0 0 8px; color: var(--tinta); font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: 0; }
.afiliacion-cta span { color: var(--texto-2); }
.afiliacion-cta .boton-editorial { flex-shrink: 0; }
.afiliacion-cta .boton-editorial:hover { border-color: var(--navy-2); background: var(--navy-2); color: #fff; }
.sin-portada .accesos-principales,
.sin-portada .app-editorial,
.sin-portada .afiliacion-cta { display: none; }

.pieza,
.tarjeta,
.rubro,
.ejemplo-teaser { border-radius: 4px; box-shadow: none; }
.pieza--grande { border-radius: 4px; }

html[data-tema="oscuro"] {
  --fondo: #0b1a26;
  --tinta: #edf5fa;
  --texto: #c6d3dc;
  --texto-2: #9bafbd;
  --linea: #29404f;
}
html[data-tema="oscuro"] body,
html[data-tema="oscuro"] main,
html[data-tema="oscuro"] .bloque-sec { background: #0d1e2a; color: var(--texto); }
html[data-tema="oscuro"] .bloque-sec--papel,
html[data-tema="oscuro"] .portada > .contenedor,
html[data-tema="oscuro"] .accesos-principales { background: #0a1823; }
html[data-tema="oscuro"] .cabecera,
html[data-tema="oscuro"] html:not(.sin-portada) .cabecera,
html[data-tema="oscuro"] .sin-portada .cabecera,
html[data-tema="oscuro"] .afiliacion-cta { background: #0d1e2a; }
html[data-tema="oscuro"] .pieza,
html[data-tema="oscuro"] .tarjeta,
html[data-tema="oscuro"] .rubro,
html[data-tema="oscuro"] .ejemplo-teaser { background: #102331; }
html[data-tema="oscuro"] .tabla a { color: var(--tinta); }
html[data-tema="oscuro"] .afiliacion { background: #0d1e2a; color: var(--texto); }
html[data-tema="oscuro"] .afiliacion__contenido,
html[data-tema="oscuro"] .afiliacion__acciones,
html[data-tema="oscuro"] .campo input,
html[data-tema="oscuro"] .campo select,
html[data-tema="oscuro"] .afiliacion-sugerencias { background: #102331; color: var(--tinta); }
html[data-tema="oscuro"] .campo__error { color: #ff8f85; }
html[data-tema="oscuro"] .afiliacion__cancelar,
html[data-tema="oscuro"] .afiliacion__cerrar { background: transparent; color: var(--tinta); }

@media (max-width: 1279px) {
  html:not(.sin-portada) .menu,
  .sin-portada .menu,
  html[data-tema="oscuro"] html:not(.sin-portada) .menu,
  html[data-tema="oscuro"] .sin-portada .menu { background: #fff; border-top-color: var(--linea); box-shadow: 0 16px 28px rgba(7, 24, 39, 0.12); }
  html:not(.sin-portada) .menu a,
  .sin-portada .menu a { color: var(--tinta); border-bottom-color: var(--linea); }
  html:not(.sin-portada) .menu a:hover,
  html:not(.sin-portada) .menu a[aria-current="page"],
  .sin-portada .menu a:hover,
  .sin-portada .menu a[aria-current="page"] { color: var(--blue-2); background: var(--fondo); }
  html:not(.sin-portada) .menu-boton,
  .sin-portada .menu-boton { border-color: var(--linea); background: transparent; }
  html:not(.sin-portada) .menu-boton__barras,
  html:not(.sin-portada) .menu-boton__barras::before,
  html:not(.sin-portada) .menu-boton__barras::after,
  .sin-portada .menu-boton__barras,
  .sin-portada .menu-boton__barras::before,
  .sin-portada .menu-boton__barras::after { background: var(--tinta); }
  html:not(.sin-portada) .cabecera--abierta .menu-boton__barras,
  .sin-portada .cabecera--abierta .menu-boton__barras { background: transparent; }
  html[data-tema="oscuro"]:not(.sin-portada) .menu,
  html[data-tema="oscuro"].sin-portada .menu { background: #0d1e2a; }
}

@media (max-width: 760px) {
  /* En celulares se recorta la parte del paisaje para que el texto de la pieza se lea. */
  .hero-banner__boton img { aspect-ratio: 1120 / 600; object-position: left center; }
  .accesos-principales__grilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .accesos-principales a:nth-child(odd) { border-left: 1px solid var(--linea); }
  .app-escena { width: auto; margin: 24px -20px 0; }
  .afiliacion-cta__fila { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .tema-boton { width: 42px; height: 42px; order: 1; margin-left: auto; }
  .ingreso { order: 2; margin-left: 0; }
  .menu-boton { order: 3; }
  .menu { order: 4; }
  .accesos-principales__grilla { grid-template-columns: 1fr; }
  .accesos-principales a,
  .accesos-principales a:first-child,
  .accesos-principales a:nth-child(odd) { min-height: 84px; border-left: 0; border-right: 0; border-bottom: 1px solid var(--linea); }
}

/* ── Menú Institucional (desplegable) ─────────────────────── */
.menu__grupo { position: relative; display: flex; }
.menu__desplegar {
  display: inline-flex; align-items: center; gap: 5px; padding: 10px 14px; border: 0; background: none; cursor: pointer;
  color: var(--tinta); font: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
}
.menu__desplegar .icono { width: 15px; height: 15px; transition: transform 0.2s ease; }
.menu__desplegar[aria-expanded="true"] .icono { transform: rotate(180deg); }
.menu__desplegar:hover,
.menu__desplegar--activo { color: var(--blue-2); box-shadow: inset 0 -3px 0 var(--blue); }
.submenu { display: none; }
.menu__desplegar[aria-expanded="true"] + .submenu { display: block; }
@media (min-width: 1280px) {
  .menu__grupo:hover .submenu,
  .menu__grupo:focus-within .submenu { display: block; }
  .submenu {
    position: absolute; top: 100%; left: 50%; z-index: 120; min-width: 330px; padding: 8px; transform: translateX(-50%);
    border: 1px solid var(--linea); border-radius: 8px; background: #fff; box-shadow: 0 18px 40px rgba(1, 45, 63, 0.16);
  }
  .submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
}
.cabecera .menu .submenu a {
  display: block; padding: 12px 14px; border: 0; border-radius: 6px; box-shadow: none;
  color: var(--tinta); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: normal;
}
.cabecera .menu .submenu a:hover,
.cabecera .menu .submenu a[aria-current="page"] { padding-left: 14px; background: var(--fondo); box-shadow: inset 3px 0 0 var(--blue); color: var(--blue-2); }
html[data-tema="oscuro"] .submenu { border-color: var(--linea); background: #102331; }
@media (max-width: 1279px) {
  .menu__grupo { flex-direction: column; }
  .menu__desplegar { justify-content: space-between; width: 100%; padding: 14px 24px; border-bottom: 1px solid var(--linea); font-size: 14px; text-align: left; }
  .menu__desplegar:hover,
  .menu__desplegar--activo { box-shadow: inset 4px 0 0 var(--blue); background: var(--fondo); }
  .submenu { padding: 6px 0; border-bottom: 1px solid var(--linea); background: var(--fondo); }
  .cabecera .menu .submenu a { padding: 12px 24px 12px 40px; border-radius: 0; }
  .cabecera .menu .submenu a:hover,
  .cabecera .menu .submenu a[aria-current="page"] { padding-left: 40px; }
}

/* ── Comisiones directivas ────────────────────────────────── */
.comision { padding-top: 48px; padding-bottom: 72px; }
.comision__cabeza { padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--linea); }
.comision__eyebrow { margin: 0 0 10px; color: var(--blue-2); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.comision__cabeza h1 { margin: 0 0 10px; color: var(--tinta); font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: 0; }
.comision__cabeza > p:not(.comision__eyebrow) { margin: 0 0 24px; color: var(--texto-2); font-size: 15px; }
.comision__pestanas { display: flex; flex-wrap: wrap; gap: 8px; }
.comision__pestanas a {
  padding: 9px 16px; border: 1px solid var(--linea); border-radius: 999px; color: var(--tinta); text-decoration: none;
  font-size: 13px; font-weight: 700;
}
.comision__pestanas a:hover { border-color: var(--navy); }
.comision__pestanas a[aria-current="page"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.comision h2 {
  display: flex; align-items: center; gap: 14px; margin: 0 0 20px; color: var(--tinta);
  font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.comision h2::after { content: ""; flex: 1; height: 1px; background: var(--linea); }
.comision__bloque { margin-bottom: 44px; }
.autoridades { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.autoridad {
  display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--linea); border-radius: 8px; background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.autoridad:hover { border-color: #b9cfdc; box-shadow: 0 10px 24px rgba(1, 45, 63, 0.08); }
.autoridad__avatar {
  flex-shrink: 0; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: #e3eff5; color: var(--navy); font-size: 15px; font-weight: 800; letter-spacing: 0.02em;
}
.autoridad__texto { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.autoridad__cargo { color: var(--texto-2); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; line-height: 1.35; text-transform: uppercase; }
.autoridad__nombre { color: var(--tinta); font-size: 16px; font-weight: 700; line-height: 1.25; }
.autoridad--destacada {
  grid-column: 1 / -1; gap: 20px; padding: 26px 28px; border: 0;
  background: linear-gradient(120deg, var(--navy) 0%, #026a93 100%); color: #fff;
}
.autoridad--destacada .autoridad__avatar { width: 64px; height: 64px; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 20px; }
.autoridad--destacada .autoridad__cargo { color: #a9d6ea; font-size: 12px; }
.autoridad--destacada .autoridad__nombre { color: #fff; font-size: clamp(20px, 2.4vw, 26px); }
.comision__paneles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.comision__panel { padding: 26px 28px; border: 1px solid var(--linea); border-radius: 8px; background: var(--fondo); }
.comision__columnas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.integrantes h3 {
  display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--navy);
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.integrantes h3 span { padding: 1px 8px; border-radius: 999px; background: #dcebf3; color: var(--navy); font-size: 11px; letter-spacing: 0; }
.integrantes ol,
.integrantes ul { margin: 0; padding: 0; list-style: none; counter-reset: integrante; }
.integrantes li { position: relative; padding: 9px 0 9px 30px; border-bottom: 1px solid var(--linea); color: var(--tinta); font-size: 14.5px; line-height: 1.35; }
.integrantes li:last-child { border-bottom: 0; }
.integrantes ol li { counter-increment: integrante; }
.integrantes ol li::before { content: counter(integrante); position: absolute; left: 0; top: 9px; width: 20px; color: var(--texto-2); font-size: 12px; font-weight: 700; text-align: right; }
.integrantes ul li::before { content: ""; position: absolute; left: 8px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
html[data-tema="oscuro"] .autoridad { background: #102331; }
html[data-tema="oscuro"] .autoridad__avatar { background: #19364a; color: #cfe6f2; }
html[data-tema="oscuro"] .autoridad--destacada { background: linear-gradient(120deg, #014b6b 0%, #026a93 100%); }
html[data-tema="oscuro"] .comision__panel { background: #102331; }
html[data-tema="oscuro"] .integrantes h3,
html[data-tema="oscuro"] .integrantes h3 span { color: #cfe6f2; }
html[data-tema="oscuro"] .integrantes h3 span { background: #19364a; }
html[data-tema="oscuro"] .comision__pestanas a[aria-current="page"] { border-color: #026a93; background: #026a93; }
@media (max-width: 900px) {
  .comision__paneles { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .comision { padding-top: 32px; }
  .comision__columnas { grid-template-columns: 1fr; gap: 18px; }
  .comision__panel { padding: 20px; }
  .autoridad--destacada { padding: 20px; }
}
html[data-tema="oscuro"] .comision__pestanas a:not([aria-current="page"]) { border-color: #2c475a; color: #dbe8f0; }
html[data-tema="oscuro"] .comision__pestanas a:not([aria-current="page"]):hover { border-color: #8fc8ff; }

/* Menú de escritorio compacto: entra completo desde 1280px. */
@media (min-width: 1280px) {
  .cabecera__fila { gap: 14px; }
  .menu { gap: 0; }
  .cabecera .menu > a,
  .cabecera .menu__desplegar { padding: 10px 9px; font-size: 12.5px; letter-spacing: 0.02em; }
}
@media (min-width: 1280px) and (max-width: 1399px) {
  .cabecera .menu > a,
  .cabecera .menu__desplegar { padding: 10px 6px; font-size: 12px; }
  .ingreso { padding: 9px 13px; letter-spacing: 0.03em; }
}

/* Textos del panel del formulario legibles sobre la foto. */
.afiliacion__presentacion .afiliacion__eyebrow { color: #d4ecff; }
.afiliacion__presentacion h2,
.afiliacion__presentacion .afiliacion__eyebrow,
.afiliacion__presentacion p:last-child { text-shadow: 0 1px 10px rgba(1, 25, 50, 0.55); }

/* En escritorio los logos de redes van más chicos; en celular quedan a 46px. */
@media (min-width: 901px) {
  .pie .red__logo { width: 32px; height: 32px; }
  .pie__columna--redes .pie__lista { gap: 10px; }
  .red { border-radius: 8px; }
}

/* Sitio todavía no habilitado en Atheria GRM (script.js, mostrarSitioInactivo). */
.verificando-sitio body { visibility: hidden; }
.sitio-inactivo body > :not(.sitio-preparando) { display: none !important; }
.sitio-preparando {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--fondo);
  color: var(--tinta);
  text-align: center;
}
.sitio-preparando__logo { width: min(260px, 70vw); height: auto; margin-bottom: 32px; }
.sitio-preparando__logo--claro,
html[data-tema="oscuro"] .sitio-preparando__logo { display: none; }
html[data-tema="oscuro"] .sitio-preparando__logo--claro { display: block; }
.sitio-preparando h1 { margin: 0 0 12px; font-size: clamp(24px, 5vw, 32px); }
.sitio-preparando p { margin: 0; max-width: 420px; color: var(--texto-2); line-height: 1.5; }
