/* ==========================================================================
   Foro de Vinculación y Emprendimiento FCA UNAM 2026 · css/foro.css
   Identidad visual y efectos del sitio sobre Bootstrap 5.3 (css/bootstrap.min.css se
   carga antes). Base cálida (hueso, arena, piedra) con el azul marino institucional
   como color de acción y el teal para "en vivo".

   Organización: una sección por componente, en el orden en que aparecen en el sitio.
   Dentro de cada sección van primero las reglas generales y al final sus @media.

   Índice
   01  Tipografías
   02  Variables
   03  Base
   04  Puente con Bootstrap 5.3
   05  Tipografía, revelados y piezas de sección
   06  Contenedores, botones y controles
   07  Encabezado
   08  Menú móvil (offcanvas de Bootstrap)
   09  Buscador (modal de Bootstrap) y resultados
   10  Portada · Corto y franja de fechas
   11  Portada · Franjas de título
   12  Portada · Universidad, Empresa y Sociedad
   13  Portada · Un encuentro estratégico
   14  Portada · El Foro en cifras
   15  Portada · Portafolio de actividades
   16  Conferencistas
   17  Agenda
   18  Chips de filtro
   19  Portada · Expositores
   20  Sede y mapa
   21  Plano del piso
   22  Páginas interiores
   23  Perfil de conferencista
   24  Directorio de expositores
   25  Resumen ejecutivo
   26  Pie
   27  Animaciones
   ========================================================================== */

/* ==========================================================================
   01. Tipografías
   Barlow Condensed (títulos) y Barlow (texto), servidas desde css/fonts/barlow/ (SIL OFL).
   ========================================================================== */
@font-face {
  font-family: "Foro Display";
  src: url("fonts/barlow/barlow-condensed-latin-600-normal.woff2") format("woff2");
  font-weight: 100 650;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Foro Display";
  src: url("fonts/barlow/barlow-condensed-latin-700-normal.woff2") format("woff2");
  font-weight: 651 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Foro Display";
  src: url("fonts/barlow/barlow-condensed-latin-600-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow/barlow-latin-400-normal.woff2") format("woff2");
  font-weight: 100 449;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow/barlow-latin-500-normal.woff2") format("woff2");
  font-weight: 450 549;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow/barlow-latin-600-normal.woff2") format("woff2");
  font-weight: 550 649;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow/barlow-latin-700-normal.woff2") format("woff2");
  font-weight: 650 900;
  font-style: normal;
  font-display: swap;
}
/* ==========================================================================
   02. Variables
   Colores, tipografías, radios, sombras, medidas y capas. Todo el archivo usa estas variables.
   ========================================================================== */
:root {
  --bone: #f1f4f8;
  --paper: #fbfcfe;
  --sand: #e4e9f1;
  --sand-2: #d8dfea;
  --stone: #c3ccda;
  --stone-2: #98a3b7;
  /* tinta azulada: títulos marino, textos pizarra */
  --ink: #0e1a36;
  --ink-2: #26335a;
  --muted: #4f5c7a;
  /* escala de azules de la marca */
  --b-ink: #0b1f4d; /* marino de títulos */
  --b-strong: #1f56e8; /* azul fuerte del ∞ */
  --b-deep: #1440c4;
  --b-sky: #1d86a8; /* azul verdoso tipo CANACO */
  --b-grad: linear-gradient(115deg, #0b1f4d 8%, #1f56e8 62%, #1d86a8 100%);
  --line: rgba(14, 26, 54, 0.09);
  --line-2: rgba(14, 26, 54, 0.16);

  /* superficies oscuras: azul marino profundo */
  --char: #0a1736;
  --char-2: #0e1e46;
  --char-3: #162a5a;
  --on-dark: #eef2fb;
  --on-dark-2: #aebad6;
  --line-dark: rgba(206, 220, 255, 0.11);
  --line-dark-2: rgba(206, 220, 255, 0.2);

  --navy: #0c2570;
  --navy-2: #173489;
  --teal: #066f87;
  --teal-soft: #d7ebee;
  --lime: #b3cc23;
  --bronze: #7d8fae;

  --display: "Foro Display", "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Barlow", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --num: "Barlow", ui-sans-serif, system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --bezel: 6px;

  --sh-1: 0 1px 1px rgba(30, 42, 66, 0.04), 0 2px 8px -3px rgba(30, 42, 66, 0.08);
  --sh-2: 0 1px 1px rgba(30, 42, 66, 0.04), 0 14px 30px -14px rgba(30, 42, 66, 0.2),
    0 44px 90px -44px rgba(30, 42, 66, 0.28);
  --sh-dark: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 60px -30px rgba(0, 0, 0, 0.55);

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 80px;
  --hdr-full: 104px;
  --section: clamp(44px, 5vw, 76px); /* espacio arriba y abajo de cada sección (antes 64–112px) */

  --z-grain: 1;
  --z-nav: 40;
  /* menú, ficha y buscador usan las capas de Bootstrap (offcanvas 1045, modal 1055) */
  --z-top: 30;
  --accent-ink: var(--b-strong);
}
@media (min-width: 701px) {
  /* Escritorio: +25 % */
  :root {
    --hdr-full: 138px;
    --nav-h: 138px;
  }
}
@media (min-width: 701px) and (max-height: 820px) {
  /* Laptops medianas (1280–1600 px de ancho con poca altura útil por las barras del navegador):
   encabezado más compacto para que la portada respire */
  :root {
    --hdr-full: 112px;
    --nav-h: 112px;
  }
}
@media (min-width: 701px) and (max-height: 680px) {
  :root {
    --hdr-full: 96px;
    --nav-h: 96px;
  }
}
@media (max-width: 700px) {
  :root {
    --nav-h: 64px;
    --hdr-full: 68px;
    --r-xl: 26px;
  }
}
/* ==========================================================================
   03. Base
   Reinicio mínimo, foco, enlace para saltar al contenido, grano de la página y scroll suave (Lenis).
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 32px);
  background: var(--bone);
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  font-kerning: normal;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
img,
svg,
iframe,
canvas {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
[hidden] {
  display: none !important;
}
::selection {
  background: var(--navy);
  color: var(--paper);
}
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 8px;
}
input::placeholder {
  color: #7f8aa0;
  opacity: 1;
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--stone) transparent;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--stone);
  border-radius: 10px;
  border: 3px solid var(--bone);
}
::-webkit-scrollbar-track {
  background: transparent;
}
.i {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip {
  position: fixed;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 500 14px/1 var(--sans);
  transition: top 0.2s var(--ease-out);
}
.skip:focus {
  top: 16px;
}
/* Grano fijo: textura táctil muy tenue */
.grain {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-tone="0"] {
  --tone: #0c2570;
}
[data-tone="1"] {
  --tone: #066f87;
}
[data-tone="2"] {
  --tone: #a07a52;
}
[data-tone="3"] {
  --tone: #5f6f3a;
}
[data-tone="4"] {
  --tone: #7a4b5e;
}
[data-tone="5"] {
  --tone: #3c5f8d;
}
[data-tone="6"] {
  --tone: #8a5a2b;
}
[data-tone="7"] {
  --tone: #2f6d5d;
}
[data-tone="8"] {
  --tone: #5b4c86;
}
[data-tone="9"] {
  --tone: #6b6358;
}
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: rgba(14, 26, 54, 0.06);
  box-shadow: inset 0 -1px 0 rgba(14, 26, 54, 0.1);
  font: 500 11.5px/1 var(--sans);
  color: var(--muted);
}
mark {
  background: rgba(12, 37, 112, 0.12);
  color: var(--navy);
  border-radius: 3px;
  padding: 0 2px;
}
@media (max-width: 700px) {
  body {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  body {
    background: #fff;
  }
  .skip,
  [data-to-top] {
    display: none !important;
  }
}
/* ==========================================================================
   04. Puente con Bootstrap 5.3
   css/bootstrap.min.css se carga antes. Aquí Bootstrap recibe los colores y la tipografía del Foro (--bs-*), se devuelven a su valor normal las reglas base que cambiarían el aspecto y .container toma el ancho del sitio (1240 px + medianiles).
   ========================================================================== */
/* ---------- Puente con Bootstrap 5.3 ----------
   css/bootstrap.min.css se carga Aquí:
   1) se le pasan a Bootstrap los colores y la tipografía del Foro (variables --bs-*), para que
      sus componentes (botones, panel lateral, ventana del buscador, pestañas, formularios)
      salgan ya con la identidad del sitio;
   2) se devuelven a su valor normal las pocas reglas base de Bootstrap que cambiarían el aspecto
      (tamaño de títulos, <small>, <dt>, <label> y el desplazamiento suave del navegador, que
      aquí controla Lenis);
   3) .container toma el ancho del Foro: 1240 px de contenido más medianiles fluidos.
   Las filas (.row) con separación amplia (--bs-gutter-x) la reducen bajo 992 px (ver «Filas en
   pantallas chicas» al final), para que en el teléfono nunca se salgan de la pantalla. */
:root {
  --bs-body-font-family: var(--sans);
  --bs-body-font-size: 17px;
  --bs-body-line-height: 1.6;
  --bs-body-color: var(--ink);
  --bs-body-color-rgb: 14, 26, 54;
  --bs-body-bg: var(--bone);
  --bs-body-bg-rgb: 241, 244, 248;
  --bs-emphasis-color: var(--ink);
  --bs-secondary-color: var(--muted);
  --bs-heading-color: inherit;
  --bs-primary: #0c2570;
  --bs-primary-rgb: 12, 37, 112;
  --bs-info: #066f87;
  --bs-info-rgb: 6, 111, 135;
  --bs-link-color: var(--navy);
  --bs-link-color-rgb: 12, 37, 112;
  --bs-link-hover-color: var(--navy-2);
  --bs-link-hover-color-rgb: 23, 52, 137;
  --bs-border-color: rgba(14, 26, 54, 0.16);
  --bs-border-color-translucent: rgba(14, 26, 54, 0.09);
  --bs-border-radius: var(--r-sm);
  --bs-border-radius-lg: var(--r-lg);
  --bs-border-radius-xl: var(--r-xl);
  --bs-border-radius-pill: 999px;
  --bs-focus-ring-color: rgba(12, 37, 112, 0.25);
  --bs-highlight-bg: rgba(12, 37, 112, 0.12);
  scroll-behavior: auto;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: bold;
  line-height: inherit;
  color: inherit;
}
h1 {
  font-size: 2em;
}
h2 {
  font-size: 1.5em;
}
h3 {
  font-size: 1.17em;
}
h4 {
  font-size: 1em;
}
h5 {
  font-size: 0.83em;
}
h6 {
  font-size: 0.67em;
}
small {
  font-size: smaller;
}
dt {
  font-weight: normal;
}
label {
  display: inline;
}
.container {
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
/* ==========================================================================
   05. Tipografía, revelados y piezas de sección
   Títulos grandes, párrafo de entrada, enlaces de texto, revelados al hacer scroll, encabezados divididos y pies de sección.
   ========================================================================== */
.display {
  font: 500 clamp(2.5rem, 5.4vw, 4.6rem) / 1.02 var(--display);
  font-optical-sizing: auto;
  letter-spacing: -0.006em;
  text-wrap: balance;
  color: var(--b-ink);
  font-weight: 600;
}
.display--sm {
  font-size: clamp(2rem, 3.6vw, 3rem);
}
.lead {
  font: 400 clamp(1.25rem, 1.9vw, 1.6rem) / 1.45 var(--sans);
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: pretty;
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 15px/1.2 var(--sans);
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition:
    text-decoration-color 0.25s var(--ease),
    color 0.25s var(--ease);
}
.link .i {
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--ease-out);
}
/* Líneas enmascaradas (títulos) */
[data-lines] .ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
[data-lines] .ln > span {
  display: inline-block;
}
.motion [data-lines]:not(.in) .ln > span {
  transform: translateY(105%);
}
.motion [data-lines].in .ln > span {
  transform: none;
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--l, 0) * 90ms);
}
/* Revelado genérico */
.motion [data-reveal]:not(.in) {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(8px);
}
.motion [data-reveal].in {
  opacity: 1;
  transform: none;
  filter: none;
  transition:
    opacity 0.9s var(--ease-out),
    transform 1s var(--ease-out),
    filter 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.section {
  position: relative;
  padding: var(--section) 0;
}
.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 28px 72px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.split-head__text {
  max-width: 54ch;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}
.split-head__side {
  display: grid;
  gap: 24px;
  justify-items: start;
}
.section-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: clamp(40px, 5vw, 64px);
}
.section-foot--center {
  justify-content: center;
}
.figure-prose {
  max-width: 34ch;
  font: 400 clamp(1.3rem, 2vw, 1.75rem) / 1.4 var(--sans);
  letter-spacing: -0.012em;
  color: var(--muted);
  text-wrap: pretty;
}
.figure-prose b {
  font-weight: 600;
  color: var(--navy);
}
.figure-prose--sm {
  max-width: 42ch;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}
.inline-fig {
  font-weight: 600;
  color: var(--ink);
}
/* Texto corrido justificado, con división silábica en español para evitar huecos */
.lead,
.split-head__text,
.figure-prose {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
  text-wrap: pretty;
}
.display em,
.split-head .display em {
  color: var(--accent-ink);
}
/* secciones oscuras: se redefinen los tonos dentro de la sección */
.tone-dark {
  --ink: #f3f6ff;
  --ink-2: #dfe6f7;
  --muted: #aab7d4;
  --teal: #5ef0a0;
  --navy: #8fb0ff;
  --line: rgba(206, 220, 255, 0.12);
  --line-2: rgba(206, 220, 255, 0.2);
  --paper: rgba(255, 255, 255, 0.07);
  --b-ink: #f3f6ff;
  --b-strong: #9cc2ff;
  --b-deep: #c9dcff;
  --b-sky: #8fe3ff;
  background: #0a1736 !important;
  color: var(--muted);
}
.tone-dark ::selection {
  background: #5ef0a0;
  color: #050d26;
}
.tone-dark :focus-visible {
  outline-color: #5ef0a0;
}
.tone-dark .split-head__text,
.tone-dark .lead {
  color: var(--muted);
}
.tone-dark .inline-fig {
  color: var(--ink);
}
/* encuentro estratégico en oscuro */
.motion .tone-dark .panorama__step:not(.is-on) p {
  color: rgba(240, 244, 255, 0.22);
}
.tone-dark .panorama__step p {
  color: #f3f6ff;
}
.tone-dark .panorama__media {
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.6);
}
.tone-dark .panorama__idx {
  color: #8fe3ff;
}
/* agenda en oscuro */
.tone-dark.agenda-home .seg {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(206, 220, 255, 0.1);
}
.tone-dark .seg__pill {
  background: #f3f6ff;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6);
}
.tone-dark .seg__tab {
  color: rgba(214, 226, 250, 0.7);
}
.tone-dark .seg__tab[aria-selected="true"],
.tone-dark .seg__tab[aria-selected="true"] span {
  color: #0b1f4d;
}
.tone-dark .seg__tab[aria-selected="true"] b {
  color: #1f56e8;
}
.no-js .tone-dark .seg__tab[aria-selected="true"] {
  background: #f3f6ff;
}
.tone-dark .days__panel[data-day]::before {
  -webkit-text-stroke: 1.2px rgba(160, 195, 255, 0.16);
}
.tone-dark .slot::after {
  background: #0a1736 !important;
  box-shadow: inset 0 0 0 2px #9cc2ff;
}
.tone-dark .slot.is-now::after {
  background: #9cc2ff !important;
}
.tone-dark .slot::before {
  background: linear-gradient(180deg, rgba(156, 194, 255, 0.35), rgba(143, 227, 255, 0.15)) !important;
}
.tone-dark .btn-primary {
  --bs-btn-bg: #f3f6ff;
  --bs-btn-color: #0a1736;
  --bs-btn-hover-bg: #f3f6ff;
  --bs-btn-hover-color: #0a1736;
  --bs-btn-active-bg: #f3f6ff;
  --bs-btn-active-color: #0a1736;
}
.display em {
  font-style: normal;
}
@media (hover: hover) and (pointer: fine) {
  .link:hover {
    text-decoration-color: currentColor;
  }
  .link:hover .i {
    transform: translateX(3px);
  }
  .tone-dark .slot:hover {
    background: linear-gradient(90deg, rgba(156, 194, 255, 0.07), rgba(156, 194, 255, 0));
  }
  .tone-dark .slot:hover::after {
    background: #9cc2ff !important;
  }
  .tone-dark .chip-btn:hover {
    background: #f3f6ff;
    border-color: #f3f6ff;
    color: #0a1736;
  }
  .tone-dark .person-chip:hover {
    box-shadow: inset 0 0 0 1px #f3f6ff;
  }
  .tone-dark .round-btn:not(:disabled):hover {
    background: #f3f6ff;
    border-color: #f3f6ff;
    color: #0a1736;
  }
}
@media (max-width: 1023px) {
  .split-head {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* ==========================================================================
   06. Contenedores, botones y controles
   Bisel doble, botones de Bootstrap con la forma del Foro (btn-primary / btn-light / btn-ghost), chips, botones redondos, carruseles en el teléfono y estados vacíos.
   ========================================================================== */
.bezel {
  position: relative;
  display: block;
  padding: var(--bezel);
  border-radius: var(--r-xl);
  background: rgba(14, 26, 54, 0.035);
  box-shadow:
    inset 0 0 0 1px var(--line),
    var(--sh-1);
  transform-style: preserve-3d;
  will-change: transform;
}
.bezel--lg {
  --bezel: 8px;
  border-radius: 40px;
}
/* ---------- Botones (sobre .btn de Bootstrap) ----------
   Se usan con las clases de Bootstrap: btn btn-primary | btn btn-light | btn btn-ghost (propia).
   Cada variante define las variables --bs-btn-* para que Bootstrap aplique los mismos colores
   en reposo, al pasar el puntero, con foco y al presionar. La forma (píldora con pozo de ícono)
   y el movimiento son del Foro. */
.btn {
  --bs-btn-border-width: 1px;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-border-color: transparent;
  --bs-btn-disabled-opacity: 0.55;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 54px;
  padding: 0 6px 0 24px;
  border-radius: 999px;
  white-space: nowrap;
  text-align: left;
  font: 500 15px/1 var(--sans);
  letter-spacing: -0.005em;
  transition:
    background-color 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  will-change: transform;
}
.btn__well {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition:
    transform 0.45s var(--ease-out),
    background-color 0.3s var(--ease);
}
.btn__well .i {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
}
.btn:active .btn__label {
  transform: scale(0.98);
}
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--navy);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--navy-2);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--navy-2);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--navy);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 24px -12px rgba(12, 37, 112, 0.6);
}
.btn-primary .btn__well {
  background: rgba(255, 255, 255, 0.14);
}
.btn-ghost {
  --bs-btn-color: var(--ink);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--line-2);
  --bs-btn-hover-color: var(--ink);
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-border-color: var(--ink);
  --bs-btn-active-color: var(--ink);
  --bs-btn-active-bg: transparent;
  --bs-btn-active-border-color: var(--ink);
}
.btn-ghost .btn__well {
  background: var(--sand);
}
.btn-light {
  --bs-btn-color: var(--ink);
  --bs-btn-bg: var(--paper);
  --bs-btn-hover-color: var(--ink);
  --bs-btn-hover-bg: var(--paper);
  --bs-btn-active-color: var(--ink);
  --bs-btn-active-bg: var(--paper);
  box-shadow: var(--sh-1);
}
.btn-light .btn__well {
  background: var(--sand);
}
.btn:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 4px;
  border-radius: 999px;
}
.btn-primary:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 24px -12px rgba(12, 37, 112, 0.6);
}
.btn-light:focus-visible {
  box-shadow: var(--sh-1);
}
.btn-ghost:focus-visible {
  box-shadow: none;
}
.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font: 500 13px/1 var(--sans);
  color: var(--ink);
  white-space: nowrap;
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.16s var(--ease-out);
}
.chip-btn .i {
  width: 17px;
  height: 17px;
}
.chip-btn:active {
  transform: scale(0.97);
}
.round-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--ink);
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.16s var(--ease-out),
    opacity 0.25s var(--ease);
}
.round-btn:active {
  transform: scale(0.94);
}
.round-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.chip-btn--glass {
  background: var(--paper);
  border-color: transparent;
  box-shadow: 0 1px 2px rgba(30, 42, 66, 0.08);
}
.rail-ctrl {
  display: flex;
  gap: 10px;
}
.empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 72px 24px;
  border-radius: var(--r-lg);
  background: var(--sand);
  text-align: center;
  color: var(--muted);
}
.empty__title {
  font: 600 24px/1.2 var(--display);
  color: var(--ink);
}
.swipe {
  display: none;
}
@media (hover: none) {
  /* En pantallas táctiles el color de "pasar el puntero" no se queda pegado */
  .btn-primary {
    --bs-btn-hover-bg: var(--navy);
  }
  .btn-ghost {
    --bs-btn-hover-border-color: var(--line-2);
  }
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn__well {
    transform: translate(2px, -1px) scale(1.06);
  }
  .chip-btn:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
  }
  .round-btn:not(:disabled):hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
  }
}
@media (hover: none) and (pointer: coarse) {
  /* Respuesta al toque en pantallas táctiles */
  .bezel {
    -webkit-tap-highlight-color: transparent;
  }
  .bezel:active {
    transform: scale(0.985);
    transition: transform 0.16s var(--ease-out);
  }
}
@media (max-width: 700px) {
  .js .swipe {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
  }
  .swipe__count {
    flex: none;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font: 500 13px/1 var(--num);
    font-variant-numeric: tabular-nums;
    color: var(--muted);
  }
  .swipe__count b {
    font-weight: 600;
    color: var(--ink);
  }
  .swipe__bar {
    position: relative;
    flex: 1 1 auto;
    height: 2px;
    border-radius: 2px;
    background: rgba(14, 26, 54, 0.1);
    overflow: hidden;
  }
  .swipe__bar i {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--w, 33%);
    border-radius: inherit;
    background: var(--ink);
    transform: translateX(var(--x, 0%));
    transition: transform 0.45s var(--ease-out);
  }
  .swipe__btn {
    display: grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    margin: 0 -6px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition:
      opacity 0.25s var(--ease),
      transform 0.16s var(--ease-out);
  }
  .swipe__btn + .swipe__btn {
    margin-left: 2px;
  }
  .swipe__btn .i {
    width: 20px;
    height: 20px;
  }
  .swipe__btn:active {
    transform: scale(0.88);
  }
  .swipe__btn:disabled {
    opacity: 0.25;
    cursor: default;
  }
}
/* ==========================================================================
   07. Encabezado
   Escudo UNAM + FCA, submenús con indicador, vidrio al desplazarse y botón de menú. FORO_HEADER_BLANCO (template/inc/config.php) activa la versión blanca.
   ========================================================================== */
/* Encabezado sobre el hero oscuro */
.hdr__vinc {
  display: grid;
  flex: none;
}
.hdr__vinc > img {
  grid-area: 1 / 1;
}
.hdr__logo--light {
  visibility: hidden;
  opacity: 0;
}
.hdr.is-dark .hdr__logo--light {
  visibility: visible;
  opacity: 1;
}
.hdr.is-dark .hdr__vinc > img:not(.hdr__logo--light) {
  visibility: hidden;
  opacity: 0;
}
.hdr.is-dark .hdr__logo--unam,
.hdr.is-dark .hdr__logo--fca {
  filter: brightness(0) invert(1);
}
.hdr.is-dark .hdr__rule {
  background: rgba(232, 237, 255, 0.24);
}
.hdr.is-dark .hdr__trigger {
  color: rgba(232, 237, 255, 0.78);
}
.hdr.is-dark .hdr__trigger.is-current,
.hdr.is-dark .hdr__trigger.is-active,
.hdr.is-dark .hdr__trigger[aria-expanded="true"] {
  color: #fff;
}
.hdr.is-dark .hdr__ink {
  background: #4ee37f;
}
.hdr.is-dark .hdr__burger {
  color: #fff;
}
.hdr.is-dark.is-scrolled {
  background: rgba(6, 10, 34, 0.6);
  box-shadow:
    inset 0 -1px 0 rgba(160, 180, 255, 0.12),
    0 18px 40px -32px rgba(0, 0, 0, 0.6);
}
.hdr.is-dark .hdr__progress {
  background: #4ee37f;
}
/* Sobre el hero oscuro el submenú es de pizarra mate (como la franja inferior); en el resto, claro */
.hdr.is-dark .hdr__sub {
  background: rgba(10, 23, 54, 0.92);
  -webkit-backdrop-filter: blur(26px) saturate(0.85);
  backdrop-filter: blur(26px) saturate(0.85);
  box-shadow:
    inset 0 0 0 1px rgba(230, 235, 242, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 28px -14px rgba(0, 0, 0, 0.6),
    0 40px 72px -32px rgba(0, 0, 0, 0.7);
}
.hdr.is-dark .hdr__sub-in li + li::before {
  background: rgba(230, 235, 242, 0.08);
}
.hdr.is-dark .hdr__sub a span {
  color: #fafaf7;
}
.hdr.is-dark .hdr__sub a small {
  color: #9fb0dc;
}
.hdr.is-dark .hdr__sub a::after {
  border-color: #5ef0a0;
}
.hdr.is-dark .hdr__sub a:active {
  background: rgba(250, 250, 247, 0.07);
}
.hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  background: rgba(251, 252, 254, 0);
  box-shadow: inset 0 -1px 0 rgba(14, 26, 54, 0);
  transition:
    background-color 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out),
    -webkit-backdrop-filter 0.45s var(--ease-out),
    backdrop-filter 0.45s var(--ease-out);
}
.hdr.is-scrolled {
  background: rgba(251, 252, 254, 0.88);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  box-shadow:
    inset 0 -1px 0 rgba(14, 26, 54, 0.08),
    0 18px 40px -32px rgba(30, 42, 66, 0.45);
}
.hdr__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  /* a todo el ancho: los logos quedan pegados a la izquierda y el menú a la derecha */
  height: var(--hdr-full);
  max-width: none;
  margin: 0;
  padding: 0 var(--gutter);
  transition: height 0.5s var(--ease-out);
  position: relative;
  z-index: 2;
}
.hdr.is-compact .hdr__bar {
  height: var(--hdr-full);
}
.hdr__brand {
  display: flex;
  align-items: center;
  min-width: 0;
  border-radius: 14px;
}
.hdr__logos {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}
/* Logos institucionales: +20 % respecto a la v6 (60 → 72 px) */
.hdr__logo {
  width: auto;
  height: 100px;
  transition: height 0.5s var(--ease-out);
}
.hdr__logo--fca {
  height: 100px;
}
.hdr__logo--vinc {
  height: 100px;
  flex: none;
}
/* El encabezado conserva su tamaño al desplazarse */
.hdr__rule {
  flex: none;
  width: 1px;
  height: 46px;
  margin: 0 22px;
  background: var(--line-2);
  transition: height 0.5s var(--ease-out);
}
.hdr__nav {
  position: relative;
  flex: none;
  margin-left: auto;
}
.hdr__list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.hdr__item {
  position: relative;
}
.hdr__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font: 500 15.5px/1 var(--sans);
  color: #0f2f94;
  transition: color 0.2s var(--ease);
}
.hdr__trigger.is-current,
.hdr__trigger.is-active,
.hdr__trigger[aria-expanded="true"] {
  color: var(--b-ink);
}
.hdr__caret {
  width: 14px;
  height: 14px;
  opacity: 0.55;
  transition:
    transform 0.4s var(--ease-out),
    opacity 0.2s var(--ease);
}
.hdr__trigger[aria-expanded="true"] .hdr__caret {
  transform: rotate(180deg);
  opacity: 1;
}
.hdr__ink {
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--b-strong);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}
.hdr__ink.is-on {
  opacity: 1;
}
.hdr__sub {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: 336px;
  margin-left: -168px;
  padding: 6px;
  border-radius: 20px;
  background: rgba(252, 251, 248, 0.94);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  box-shadow:
    inset 0 0 0 1px rgba(14, 22, 40, 0.07),
    0 1px 2px rgba(14, 22, 40, 0.04),
    0 10px 24px -12px rgba(14, 22, 40, 0.14),
    0 36px 64px -32px rgba(14, 22, 40, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: 50% 0;
  transition:
    opacity 0.18s var(--ease-out),
    transform 0.22s var(--ease-out),
    visibility 0s linear 0.22s;
}
.hdr__item:nth-last-child(2) .hdr__sub,
.hdr__item:last-child .hdr__sub {
  left: auto;
  right: -8px;
  margin-left: 0;
  transform-origin: 85% 0;
}
/* puente invisible para pasar del botón al submenú sin que se cierre */
.hdr__sub::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.hdr__item.is-open .hdr__sub,
.no-js .hdr__item:hover .hdr__sub,
.hdr__item:focus-within .hdr__sub {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.24s var(--ease-out),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s;
}
.hdr__sub-in {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hdr__sub-in li {
  position: relative;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.22s var(--ease-out),
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}
.hdr__sub-in li:nth-child(2) {
  transition-delay: 0.03s;
}
.hdr__sub-in li:nth-child(3) {
  transition-delay: 0.06s;
}
.hdr__sub-in li:nth-child(4) {
  transition-delay: 0.09s;
}
.hdr__item.is-open .hdr__sub-in li,
.no-js .hdr__item:hover .hdr__sub-in li,
.hdr__item:focus-within .hdr__sub-in li {
  opacity: 1;
  transform: none;
}
/* filete fino entre opciones; se oculta junto a la opción señalada */
.hdr__sub-in li + li::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 1px;
  background: rgba(14, 22, 40, 0.06);
  transition: opacity 0.2s var(--ease);
}
.hdr__sub a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  column-gap: 12px;
  row-gap: 3px;
  padding: 12px 14px;
  border-radius: 14px;
  transition:
    background-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.hdr__sub a span {
  grid-column: 1;
  font: 500 15px/1.25 var(--sans);
  letter-spacing: -0.005em;
  color: var(--ink);
}
.hdr__sub a small {
  grid-column: 1;
  font: 400 12.5px/1.35 var(--sans);
  color: var(--muted);
}
.hdr__sub a::after {
  content: "";
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 7px;
  height: 7px;
  justify-self: center;
  border-top: 1.5px solid var(--ink);
  border-right: 1.5px solid var(--ink);
  rotate: 45deg;
  opacity: 0;
  translate: -5px 0;
  transition:
    opacity 0.25s var(--ease),
    translate 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.hdr__sub a:active {
  background: rgba(14, 22, 40, 0.05);
}
.hdr__sub a:focus-visible::after {
  opacity: 1;
  translate: 0 0;
}
/* Botón del menú: solo las tres rayas, sin círculo; el área táctil es de 48 px */
.hdr__burger {
  display: none;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  margin-right: -10px;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.16s var(--ease-out),
    color 0.25s var(--ease);
}
.hdr__burger:active {
  transform: scale(0.9);
}
.hdr__burger-lines {
  position: relative;
  width: 28px;
  height: 14px;
}
.hdr__burger-lines i {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.75px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.45s var(--ease-out),
    opacity 0.2s var(--ease),
    right 0.35s var(--ease-out);
}
.hdr__burger-lines i:nth-child(1) {
  top: 0;
}
.hdr__burger-lines i:nth-child(2) {
  top: 6.1px;
  right: 9px;
}
.hdr__burger-lines i:nth-child(3) {
  top: 12.25px;
}
.hdr__burger[aria-expanded="true"] .hdr__burger-lines i:nth-child(1) {
  transform: translateY(6.1px) rotate(45deg);
}
.hdr__burger[aria-expanded="true"] .hdr__burger-lines i:nth-child(2) {
  opacity: 0;
}
.hdr__burger[aria-expanded="true"] .hdr__burger-lines i:nth-child(3) {
  transform: translateY(-6.1px) rotate(-45deg);
}
.hdr__progress {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--navy);
  transform-origin: 0 50%;
  transform: scaleX(0);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.hdr.is-scrolled .hdr__progress {
  opacity: 1;
}
.hdr__search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  height: 44px;
  padding: 0 14px;
  margin-left: 6px;
  border-radius: 999px;
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font: 500 15px/1 var(--sans);
  transition:
    color 0.2s var(--ease),
    background-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    transform 0.16s var(--ease-out);
}
.hdr__search .i {
  width: 19px;
  height: 19px;
}
.hdr__search:active {
  transform: scale(0.95);
}
.hdr__kbd {
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(14, 26, 54, 0.06);
  font: 500 11.5px/1 var(--sans);
  color: var(--muted);
}
.hdr.is-dark .hdr__search {
  color: rgba(232, 237, 255, 0.85);
  box-shadow: inset 0 0 0 1px rgba(160, 180, 255, 0.24);
}
.hdr.is-dark .hdr__kbd {
  background: rgba(232, 237, 255, 0.1);
  color: rgba(232, 237, 255, 0.7);
}
.hdr.hdr--white,
.hdr.hdr--white.is-scrolled {
  background: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow:
    inset 0 -1px 0 rgba(10, 23, 54, 0.08),
    0 16px 36px -30px rgba(10, 23, 54, 0.45);
}
@media (hover: hover) and (pointer: fine) {
  .hdr.is-dark .hdr__trigger:hover {
    color: #fff;
  }
  .hdr.is-dark .hdr__sub a:hover {
    background: rgba(250, 250, 247, 0.08);
    box-shadow: inset 0 0 0 1px rgba(230, 235, 242, 0.08);
  }
  .hdr__trigger:hover {
    color: var(--b-ink);
  }
  .hdr__trigger:hover .hdr__caret {
    opacity: 1;
  }
  .hdr__sub a:hover {
    background: #fff;
    box-shadow:
      0 0 0 1px rgba(14, 22, 40, 0.05),
      0 6px 14px -10px rgba(14, 22, 40, 0.25);
  }
  .hdr__sub a:hover::after {
    opacity: 0.8;
    translate: 0 0;
  }
  .hdr__sub-in li:hover::before,
  .hdr__sub-in li:hover + li::before {
    opacity: 0;
  }
  .hdr__burger:hover .hdr__burger-lines i:nth-child(2) {
    right: 0;
  }
  .hdr__search:hover {
    color: var(--ink);
    background: #fff;
    box-shadow:
      inset 0 0 0 1px var(--line-2),
      0 6px 16px -10px rgba(14, 22, 40, 0.3);
  }
  .hdr.is-dark .hdr__search:hover {
    color: #fff;
    background: rgba(232, 237, 255, 0.1);
  }
}
@media (min-width: 701px) {
  .hdr__logo {
    height: 100px;
  }
  .hdr__logo--fca {
    height: 100px;
  }
  .hdr__logo--vinc {
    height: 100px;
  }
  .hdr__rule {
    height: 56px;
    margin: 0 24px;
  }
  .hdr__logos {
    gap: 20px;
  }
  .hdr .hdr__trigger {
    height: 54px;
    padding: 0 17px;
    font-size: 19px;
    gap: 7px;
  }
  .hdr .hdr__caret {
    width: 16px;
    height: 16px;
  }
}
@media (min-width: 701px) and (max-height: 820px) {
  .hdr__logo {
    height: 71px;
  }
  .hdr__logo--fca {
    height: 74px;
  }
  .hdr__logo--vinc {
    height: 78px;
  }
  .hdr__rule {
    height: 46px;
    margin: 0 20px;
  }
  .hdr .hdr__trigger {
    height: 46px;
    padding: 0 15px;
    font-size: 17px;
  }
}
@media (min-width: 701px) and (max-height: 680px) {
  .hdr__logo {
    height: 80px;
  }
  .hdr__logo--fca {
    height: 80px;
  }
  .hdr__logo--vinc {
    height: 80px;
  }
  .hdr__rule {
    height: 39px;
    margin: 0 18px;
  }
  .hdr .hdr__trigger {
    font-size: 16px;
  }
}
@media (max-width: 1439px) {
  .hdr__search-label,
  .hdr__kbd {
    display: none;
  }
  .hdr__search {
    width: 44px;
    padding: 0;
    justify-content: center;
  }
}
@media (max-width: 1180px) {
  .hdr .hdr__search,
  .hdr.is-dark .hdr__search {
    margin-left: auto;
    box-shadow: none;
  }
  .hdr__nav {
    display: none;
  }
  .hdr__burger {
    display: grid;
  }
}
@media (hover: none) {
  .hdr__kbd {
    display: none;
  }
}
@media (max-width: 700px) {
  .hdr__bar {
    gap: 14px;
  }
  .hdr__logos {
    gap: 10px;
  }
  .hdr__logo,
  .hdr.is-compact .hdr__logo {
    height: 53px;
  }
  .hdr__logo--fca,
  .hdr.is-compact .hdr__logo--fca {
    height: 54px;
  }
  .hdr__logo--vinc,
  .hdr.is-compact .hdr__logo--vinc {
    height: 56px;
  }
  .hdr__rule,
  .hdr.is-compact .hdr__rule {
    height: 41px;
    margin: 0 12px;
  }
  .hdr__burger {
    width: 46px;
    height: 46px;
    margin-right: -8px;
  }
}
@media (max-width: 360px) {
  .hdr__rule {
    display: none;
  }
  .hdr__logos {
    margin-right: 10px;
  }
  .hdr__logo,
  .hdr.is-compact .hdr__logo {
    height: 44px;
  }
  .hdr__logo--fca,
  .hdr.is-compact .hdr__logo--fca {
    height: 45px;
  }
  .hdr__logo--vinc,
  .hdr.is-compact .hdr__logo--vinc {
    height: 50px;
  }
}
@media print {
  .hdr {
    display: none !important;
  }
}
/* ==========================================================================
   08. Menú móvil (offcanvas de Bootstrap)
   Tarjeta flotante bajo el encabezado, grupos plegables y entrada escalonada.
   ========================================================================== */
/* Panel de Bootstrap (.offcanvas.offcanvas-end) con forma de tarjeta flotante bajo el encabezado */
.offcanvas.mnav {
  top: calc(var(--hdr-full) - 6px);
  right: max(12px, calc(var(--gutter) - 8px));
  bottom: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  width: min(360px, calc(100vw - 24px));
  max-height: calc(100dvh - var(--hdr-full) - 12px - env(safe-area-inset-bottom));
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  background: rgba(251, 250, 247, 0.94);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  backdrop-filter: blur(28px) saturate(1.4);
  box-shadow:
    inset 0 0 0 1px rgba(14, 22, 40, 0.07),
    0 2px 6px -2px rgba(14, 22, 40, 0.08),
    0 30px 60px -28px rgba(14, 22, 40, 0.38);
  transform-origin: calc(100% - 24px) 0;
  transform: translateY(-8px) scale(0.96);
  opacity: 0;
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s var(--ease-out),
    visibility 0s linear 0.38s;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: none;
}
.offcanvas.mnav.showing,
.offcanvas.mnav.show:not(.hiding) {
  transform: none;
  opacity: 1;
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s var(--ease-out),
    visibility 0s;
}
.offcanvas.mnav.is-dragging {
  transition: none;
}
.mnav::-webkit-scrollbar {
  display: none;
}
.mnav__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px 4px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(rgba(251, 250, 247, 0.98) 72%, rgba(251, 250, 247, 0));
}
.mnav__home {
  font: 500 1.5rem/1 var(--display);
  letter-spacing: -0.006em;
  color: var(--ink);
  padding: 8px 0;
}
.mnav__when {
  font-size: 12.5px;
  color: var(--muted);
}
.mnav__body {
  display: grid;
  padding: 0 8px;
}
.mnav__group,
.mnav__link,
.mnav__foot {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.3s var(--ease-out),
    transform 0.45s var(--ease-out);
  transition-delay: calc(var(--i) * 35ms + 80ms);
}
.mnav:is(.showing, .show:not(.hiding)) :is(.mnav__group, .mnav__link, .mnav__foot) {
  opacity: 1;
  transform: none;
}
.mnav__group + .mnav__group,
.mnav__link {
  border-top: 1px solid rgba(14, 22, 40, 0.07);
}
.mnav__group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 12px;
  border-radius: 14px;
  font: 500 16px/1.2 var(--sans);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.mnav__group summary::-webkit-details-marker {
  display: none;
}
.mnav__group summary:active {
  background: rgba(14, 22, 40, 0.05);
}
.mnav__caret {
  width: 16px;
  height: 16px;
  opacity: 0.55;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.mnav__group[open] .mnav__caret {
  transform: rotate(180deg);
  opacity: 0.9;
}
.mnav__group ul {
  display: grid;
  gap: 2px;
  margin: 0 0 10px;
  padding: 4px;
  list-style: none;
  border-radius: 16px;
  background: rgba(14, 22, 40, 0.035);
}
.mnav__group[open] ul {
  animation: mnav-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.mnav__group a {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
}
.mnav__group a span {
  font: 500 15px/1.25 var(--sans);
  color: var(--ink);
}
.mnav__group a small,
.mnav__link small {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--muted);
}
.mnav__group a:active {
  background: #fff;
}
.mnav__link {
  display: grid;
  gap: 2px;
  padding: 14px 12px;
}
.mnav__link span {
  font: 500 16px/1.2 var(--sans);
  color: var(--ink);
}
.mnav__foot {
  display: flex;
  margin-top: 4px;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(14, 22, 40, 0.07);
}
.mnav__foot .btn {
  width: 100%;
  justify-content: space-between;
}
.mnav__foot p {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--muted);
  text-align: right;
}
/* El encabezado queda sobre el velo de Bootstrap: el botón (ya en X) sigue a la vista y cierra el menú */
body.mnav-open .hdr {
  z-index: 1046;
}
body.mnav-open .offcanvas-backdrop {
  background: rgba(14, 22, 40, 0.18);
  transition: opacity 0.35s var(--ease-out);
}
body.mnav-open .offcanvas-backdrop.show {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .offcanvas.mnav,
  .mnav__group,
  .mnav__link,
  .mnav__foot {
    transition: none;
  }
  .mnav__group[open] ul {
    animation: none;
  }
}
/* ==========================================================================
   09. Buscador (modal de Bootstrap) y resultados
   Buscador instantáneo, buscador de expositores de la portada y página buscar.php.
   ========================================================================== */
.finder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  max-width: 860px;
  margin: 0 auto clamp(48px, 6vw, 72px);
  position: relative;
}
.finder__field {
  position: relative;
  display: block;
}
.finder__field .i {
  position: absolute;
  left: 22px;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  color: var(--muted);
  pointer-events: none;
}
.finder__field input {
  width: 100%;
  height: 60px;
  padding: 0 24px 0 56px;
  border-radius: 999px;
  border: 0;
  outline: none;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  box-shadow:
    inset 0 0 0 1px var(--line-2),
    inset 0 2px 4px rgba(14, 26, 54, 0.04);
  transition: box-shadow 0.25s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.finder__field input:focus {
  box-shadow:
    inset 0 0 0 1.5px var(--navy),
    0 0 0 5px rgba(12, 37, 112, 0.1);
}
/* Con .form-control de Bootstrap: el fondo no cambia al enfocar y la altura de línea es la del sitio */
.finder__field .form-control {
  line-height: inherit;
}
.finder__field .form-control:focus {
  background-color: var(--paper);
  color: var(--ink);
}
.finder__field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
/* Búsqueda del sitio y mapa del sitio */
.search-page__form {
  margin-top: 32px;
  max-width: 760px;
}
.results {
  padding-bottom: var(--section);
}
.results__hint {
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
}
.results__hint a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.results__group + .results__group {
  margin-top: clamp(48px, 6vw, 72px);
}
.results__title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
  font: 500 clamp(1.6rem, 2.6vw, 2.1rem) / 1.1 var(--display);
  letter-spacing: -0.006em;
  color: var(--ink);
}
.results__title span {
  font: 500 15px/1 var(--num);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.results__list a {
  display: grid;
  gap: 6px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  transition: padding 0.45s var(--ease-out);
}
.results__name {
  font: 600 17px/1.35 var(--sans);
  color: var(--ink);
}
.results__text {
  max-width: 90ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
  text-wrap: pretty;
}
.results__more {
  margin-top: 18px;
}
/* Ventana de Bootstrap (.modal > .modal-dialog > .modal-content) con el panel del buscador */
.sx.fade {
  transition: opacity 0.25s var(--ease-out);
}
.sx .modal-dialog {
  max-width: min(680px, calc(100% - 24px));
  margin: clamp(12px, 10vh, 120px) auto 12px;
  transform: translateY(-10px) scale(0.985);
  transform-origin: 50% 0;
  transition: transform 0.35s var(--ease-out);
}
.sx.show .modal-dialog {
  transform: none;
}
.modal-backdrop {
  --bs-backdrop-bg: rgba(7, 16, 41, 0.42);
  --bs-backdrop-opacity: 1;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal-backdrop.fade {
  transition: opacity 0.25s var(--ease-out);
}
.sx__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: min(640px, calc(100dvh - 24px - clamp(0px, 10vh, 108px)));
  border: 0;
  border-radius: 22px;
  color: var(--ink);
  background: rgba(252, 251, 248, 0.97);
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(14, 22, 40, 0.07),
    0 2px 6px -2px rgba(10, 23, 54, 0.1),
    0 40px 90px -30px rgba(10, 23, 54, 0.5);
}
.sx__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 0 20px;
  border-bottom: 1px solid var(--line);
}
.sx__icon {
  flex: none;
  width: 21px;
  height: 21px;
  color: var(--navy);
}
.sx__input {
  flex: 1;
  min-width: 0;
  height: 64px;
  border: 0;
  background: transparent;
  font: 400 19px/1 var(--sans);
  color: var(--ink);
  outline: none;
}
.sx__input::placeholder {
  color: #7f8aa0;
}
.sx__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.sx__close {
  flex: none;
  padding: 6px;
  border: 0;
  background: none;
  cursor: pointer;
}
.sx__body {
  position: relative;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 8px 12px;
  scrollbar-width: thin;
}
.sx__idle {
  padding: 12px 12px 6px;
}
.sx__label {
  margin: 8px 0 10px;
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.sx__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.sx__chips button {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(12, 37, 112, 0.06);
  color: var(--ink-2);
  font: 500 14px/1 var(--sans);
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.16s var(--ease-out);
}
.sx__chips button:active {
  transform: scale(0.96);
}
.sx__group + .sx__group {
  margin-top: 6px;
}
.sx__gl {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 12px 6px;
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.sx__gl span {
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: #7f8aa0;
}
.sx__opt {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 14px;
  padding: 9px 12px;
  border-radius: 14px;
  color: var(--ink);
  scroll-margin: 8px;
}
.sx__opt[aria-selected="true"] {
  background: rgba(12, 37, 112, 0.07);
}
.sx__opt[aria-selected="true"] .sx__go {
  opacity: 1;
  transform: none;
}
.sx__thumb {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(12, 37, 112, 0.06);
  color: var(--navy);
  overflow: hidden;
}
.sx__thumb .i {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sx__thumb.is-img {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.sx__thumb img {
  max-width: 84%;
  max-height: 84%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.sx__txt {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.sx__t {
  font: 600 15.5px/1.3 var(--sans);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sx__m {
  font: 500 13px/1.3 var(--sans);
  color: #12806b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sx__x {
  font: 400 13.5px/1.4 var(--sans);
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sx__go {
  width: 18px;
  height: 18px;
  color: var(--navy);
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 0.2s,
    transform 0.25s var(--ease-out);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sx mark,
.finder__pop mark,
.results mark {
  background: rgba(71, 226, 124, 0.28);
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
}
.sx__more {
  display: block;
  margin: 2px 12px 4px 70px;
  padding: 6px 0;
  font: 500 13.5px/1.3 var(--sans);
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: rgba(12, 37, 112, 0.25);
  text-underline-offset: 4px;
}
.sx__note {
  margin: 8px 12px 4px;
  font-size: 14px;
  color: var(--muted);
}
.sx__note button,
.sx__empty button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.sx__empty {
  display: grid;
  gap: 6px;
  padding: 28px 16px;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}
.sx__empty p:first-child {
  font: 600 17px/1.3 var(--sans);
  color: var(--ink);
}
.sx__empty a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sx__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.sx__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.sx__keys {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sx__keys kbd + kbd {
  margin-left: -2px;
}
.sx__all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 14px/1 var(--sans);
  color: var(--navy);
}
.sx__all .i {
  width: 15px;
  height: 15px;
}
.finder__pop {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  max-width: 860px;
  max-height: 440px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 20px;
  background: rgba(252, 251, 248, 0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow:
    inset 0 0 0 1px rgba(14, 22, 40, 0.07),
    0 10px 24px -12px rgba(10, 23, 54, 0.18),
    0 40px 70px -30px rgba(10, 23, 54, 0.35);
}
.finder__pop[hidden] {
  display: none;
}
.finder__pop .sx__more {
  margin-left: 12px;
}
/* Página de resultados */
.results__note {
  margin: 0 0 28px;
  font-size: 16px;
  color: var(--muted);
}
.results__note a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.results__meta {
  font: 500 14px/1.3 var(--sans);
  color: #12806b;
}
.results__list a.has-thumb {
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: 18px;
}
.results__list a.has-thumb > :not(.results__thumb) {
  grid-column: 2;
}
.results__thumb {
  grid-row: 1 / span 3;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.results__thumb img {
  max-width: 82%;
  max-height: 82%;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (hover: hover) and (pointer: fine) {
  .results__list a:hover {
    padding-left: 12px;
  }
  .results__list a:hover .results__name {
    color: var(--navy);
  }
  .sx__chips button:hover {
    background: var(--navy);
    color: #fff;
  }
}
@media (hover: none), (max-width: 700px) {
  .sx__keys {
    display: none;
  }
  .sx__foot {
    justify-content: flex-end;
  }
}
@media (max-width: 700px) {
  .sx .modal-dialog {
    max-width: calc(100% - 16px);
    margin: 8px auto;
  }
  .sx__panel {
    max-height: calc(100dvh - 16px);
    border-radius: 20px;
  }
  .sx__input {
    height: 58px;
    font-size: 17px;
  }
  .finder {
    grid-template-columns: minmax(0, 1fr);
  }
  .finder .btn {
    justify-self: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sx.fade,
  .sx .modal-dialog,
  .modal-backdrop.fade {
    transition: none;
  }
}
/* ==========================================================================
   10. Portada · Corto y franja de fechas
   Corto 3D (js/hero-film.js), título, franja inferior con fechas, sede y cuenta regresiva.
   ========================================================================== */
.dock {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
}
.dock__in {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  background: rgba(251, 252, 254, 0.66);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  box-shadow:
    inset 0 0 0 1px rgba(14, 26, 54, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 18px 40px -22px rgba(30, 42, 66, 0.45);
}
.dock__label {
  font: 500 13px/1 var(--sans);
  color: var(--muted);
}
.countdown {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-variant-numeric: tabular-nums;
}
.countdown__unit {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}
.countdown__unit b {
  font: 500 22px/1 var(--num);
  letter-spacing: -0.02em;
  color: var(--ink);
  min-width: 2ch;
  display: inline-block;
  text-align: right;
}
.countdown__unit small {
  font: 400 12px/1 var(--sans);
  color: var(--muted);
}
.dock__live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 15px/1 var(--sans);
  color: var(--ink);
}
.dock__live i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(179, 204, 35, 0.6);
  animation: pulse 2s var(--ease-out) infinite;
}
.film {
  --f-bg: #03051a;
  --f-ink: #f1f4ff;
  --f-ink-2: #a3b0da;
  --f-neon: #4ee37f;
  --f-line: rgba(160, 180, 255, 0.2);
  position: relative;
  background: var(--f-bg);
  color: var(--f-ink);
  --accent-ink: #8fb4ff;
}
.film__stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(80% 50% at 50% 100%, rgba(33, 60, 168, 0.32), transparent 70%),
    radial-gradient(70% 55% at 50% 0%, #0b113c 0%, transparent 72%), var(--f-bg);
}
.film__canvas {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.film__poster {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 34%;
  width: min(280px, 46vw);
  height: auto;
  translate: -50% -50%;
}
/* Mientras carga el corto: escena vacía, sin el texto fijo de respaldo */
.film-boot .film:not(.is-film) .film__poster,
.film-boot .film:not(.is-film) .film__copy,
.film-boot .film:not(.is-film) .film__bar {
  opacity: 0;
  visibility: hidden;
}
.film:not(.is-film) .film__poster,
.film:not(.is-film) .film__copy,
.film:not(.is-film) .film__bar {
  transition:
    opacity 0.6s var(--ease-out),
    visibility 0.6s;
}
.film.is-film .film__poster {
  display: none;
}
/* Veladura atmosférica: el centro (símbolo y título) queda limpio; los costados,
   donde vive la multitud, se hunden en el azul de la escena */
.film__grain {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(46% 52% at 50% 44%, transparent 0%, transparent 55%, rgba(4, 7, 28, 0.42) 100%),
    linear-gradient(
      90deg,
      rgba(4, 7, 28, 0.5) 0%,
      rgba(4, 7, 28, 0) 26%,
      rgba(4, 7, 28, 0) 74%,
      rgba(4, 7, 28, 0.5) 100%
    ),
    radial-gradient(120% 95% at 50% 42%, transparent 52%, rgba(2, 3, 14, 0.78) 100%);
}
/* Frase del cartel: ahora la escriben las partículas del corto; el texto HTML queda oculto */
.film__caption,
.film.is-film .film__caption {
  display: none !important;
}
.film.is-film:not(.is-still) .film__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.32em;
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: calc(var(--hdr-full) + clamp(4px, 2.4vh, 36px));
  padding: 0 var(--gutter);
  margin: 0;
  font: 400 clamp(1.6rem, min(3.1vw, 5.4vh), 2.7rem) / 1.1 var(--display);
  letter-spacing: -0.006em;
  color: #eef2ff;
  pointer-events: none;
  transition:
    opacity 0.8s var(--ease-out),
    translate 0.8s var(--ease-out);
}
.film__caption span {
  opacity: 0;
  translate: 0 14px;
  filter: blur(10px);
  transition:
    opacity 1.1s var(--ease-out),
    translate 1.1s var(--ease-out),
    filter 1.1s var(--ease-out),
    color 1s;
}
.film__caption [data-cap="conexiones"] {
  font-style: italic;
}
.film[data-beat="ideas"] [data-cap="ideas"],
.film[data-beat="conexiones"] [data-cap="ideas"],
.film[data-beat="conexiones"] [data-cap="conexiones"],
.film[data-beat="oportunidades"] .film__caption span {
  opacity: 1;
  translate: 0 0;
  filter: blur(0);
}
.film[data-beat="conexiones"] [data-cap="ideas"],
.film[data-beat="oportunidades"] [data-cap="ideas"],
.film[data-beat="oportunidades"] [data-cap="conexiones"] {
  color: rgba(238, 242, 255, 0.42);
}
.film[data-beat="title"] .film__caption {
  opacity: 0;
  translate: 0 -12px;
}
/* Título: entra cuando el símbolo ya está formado */
.film__copy {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: 55%;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 0 var(--gutter);
  opacity: calc(1 - var(--sp, 0) * 1.5);
}
.film__title {
  font: 400 clamp(2.2rem, min(4.7vw, 8.4vh), 4.7rem) / 1 var(--display);
  font-optical-sizing: auto;
  letter-spacing: -0.006em;
  color: var(--f-ink);
  text-wrap: balance;
  font-weight: 600;
}
.film__title span {
  display: inline;
}
.film__title em {
  color: #d9e1ff;
  font-style: normal;
}
.film__tag {
  margin-top: clamp(12px, 2vh, 18px);
  font: 500 clamp(0.98rem, 1.2vw, 1.1rem) / 1.4 var(--sans);
  color: var(--f-neon);
}
.film__tag b {
  font-weight: 500;
  color: #cdd6fb;
  white-space: nowrap;
}
.film__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 26px;
  margin-top: clamp(18px, 3vh, 28px);
}
.film__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 500 15.5px/1.2 var(--sans);
  color: var(--f-ink);
  text-decoration: underline;
  text-decoration-color: rgba(242, 244, 255, 0.3);
  text-underline-offset: 5px;
  transition: text-decoration-color 0.25s;
}
.film__link .i {
  width: 16px;
  height: 16px;
}
.film__copy > * {
  transition:
    opacity 1.1s var(--ease-out),
    translate 1.1s var(--ease-out),
    filter 1.1s var(--ease-out);
}
.film__copy > :nth-child(2) {
  transition-delay: 0.12s;
}
.film__copy > :nth-child(3) {
  transition-delay: 0.24s;
}
.film.is-film:not([data-beat="title"]):not(.is-still) .film__copy:not(:focus-within) > * {
  opacity: 0;
  translate: 0 18px;
  filter: blur(8px);
  transition-delay: 0s;
}
.film ::selection {
  background: var(--f-neon);
  color: #03051a;
}
.film :focus-visible {
  outline-color: var(--f-neon);
}
/* Franja inferior: cuándo y dónde, cuenta regresiva y control del corto */
.film__bar {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(14px, 2.2vh, 20px) max(var(--gutter), calc((100% - var(--wrap)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
/* Franja de información: desvanecido del azul marino al azul verdoso (estilo CANACO),
   con texto claro; un brillo fino arriba la separa de la escena */
.film__bar::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(9, 24, 64, 0.96) 0%,
    rgba(17, 48, 112, 0.95) 34%,
    rgba(26, 98, 150, 0.95) 68%,
    rgba(44, 150, 172, 0.95) 100%
  );
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  transition: opacity 1.1s var(--ease-out);
}
.film__bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(120, 170, 255, 0.15),
    rgba(150, 225, 240, 0.6) 60%,
    rgba(150, 225, 240, 0.25)
  );
  transition: opacity 1.1s var(--ease-out);
}
.film .film__bar .film__when {
  color: rgba(240, 246, 255, 0.92);
  font-weight: 500;
}
.film .film__bar .film__when span + span::before {
  background: rgba(150, 225, 240, 0.7);
}
.film .film__bar .chip-btn--glass {
  background: #fff;
  color: var(--b-ink);
  box-shadow: none;
}
.film .film__bar .dock__label,
.film .film__bar .countdown__unit small {
  color: rgba(214, 236, 250, 0.72);
}
.film .film__bar .countdown__unit b {
  color: #fff;
}
.film .film__bar .dock__live,
.film .film__bar .dock__live--after {
  color: #fff;
}
.film .film__bar .film__ctrl {
  background: rgba(10, 16, 48, 0.6);
  box-shadow: inset 0 0 0 1px rgba(160, 180, 255, 0.18);
}
.film[data-beat="title"] .film__bar .film__ctrl,
.film.is-still .film__bar .film__ctrl {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(214, 236, 250, 0.35);
}
.film[data-beat="title"] .film__ring circle {
  stroke: #8fe3ee;
}
.film .film__bar .dock__in {
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  padding-left: 0;
}
.film__when,
.film .film__bar .dock {
  transition:
    opacity 1.1s var(--ease-out),
    translate 1.1s var(--ease-out),
    filter 1.1s var(--ease-out);
}
.film .film__bar .dock {
  transition-delay: 0.12s;
  position: static;
  transform: none;
  width: auto;
  max-width: none;
  margin: 0;
}
/* Mientras corre el corto solo queda el control; la información llega con el título */
.film.is-film:not([data-beat="title"]):not(.is-still) .film__bar::before,
.film.is-film:not([data-beat="title"]):not(.is-still) .film__bar::after {
  opacity: 0;
}
.film.is-film:not([data-beat="title"]):not(.is-still) .film__when,
.film.is-film:not([data-beat="title"]):not(.is-still) .film__bar .dock {
  opacity: 0;
  translate: 0 14px;
  filter: blur(6px);
  pointer-events: none;
  transition-delay: 0s;
}
.film.is-film:not([data-beat="title"]):not(.is-still) .film__right {
  justify-content: flex-end;
}
.film__when {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--f-ink-2);
}
.film__when span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 14px 3px 0;
  border-radius: 50%;
  background: rgba(163, 176, 218, 0.6);
}
.film__right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.film__ctrl {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(10, 16, 48, 0.6);
  color: #fff;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(160, 180, 255, 0.18);
  transition:
    background-color 0.2s,
    transform 0.16s var(--ease-out);
}
.film__ctrl[hidden] {
  display: none;
}
.film__ctrl:active {
  transform: scale(0.94);
}
.film__ring {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.film__ring svg {
  width: 100%;
  height: 100%;
  rotate: -90deg;
}
.film__ring circle {
  fill: none;
  stroke: var(--f-neon);
  stroke-width: 1.5;
  stroke-dasharray: 129;
  stroke-dashoffset: 129;
  stroke-linecap: round;
}
.film__ctrl[data-state="ended"] .film__ring circle {
  stroke: rgba(160, 180, 255, 0);
}
.film__i {
  position: relative;
  width: 18px;
  height: 18px;
  display: none;
}
.film__ctrl[data-state="playing"] .film__i--pause,
.film__ctrl:not([data-state]) .film__i--pause,
.film__ctrl[data-state="paused"] .film__i--play,
.film__ctrl[data-state="ended"] .film__i--replay {
  display: block;
}
.film__i--play {
  fill: currentColor;
  stroke: none;
}
.dock--dark .dock__in {
  background: rgba(10, 16, 48, 0.6);
  box-shadow:
    inset 0 0 0 1px rgba(160, 180, 255, 0.2),
    0 24px 50px -24px rgba(0, 0, 0, 0.7);
}
.dock--dark .dock__label,
.dock--dark .countdown__unit small {
  color: #9fb0dc;
}
.dock--dark .countdown__unit b,
.dock--dark .dock__live {
  color: #fff;
}
.dock--dark .chip-btn--glass {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(160, 180, 255, 0.22);
}
.dock--dark .dock__live i {
  background: #4ee37f;
}
/* Corto: sin scroll hasta que termina; botón para saltarlo e indicador para seguir */
html.is-film-lock {
  overflow: hidden;
  scrollbar-gutter: stable;
}
.film__when--big {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
  margin: 0;
}
.film__dates {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
}
.film__day {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 0 clamp(10px, 1.1vw, 16px);
}
.film__day + .film__day {
  box-shadow: inset 1px 0 0 rgba(214, 236, 250, 0.22);
}
.film__day:first-of-type {
  padding-left: 0;
}
.film__day b {
  font: 400 clamp(2.3rem, 3.3vw, 3.2rem) / 0.82 var(--display);
  letter-spacing: -0.006em;
  color: #fff;
  font-variant-numeric: lining-nums tabular-nums;
}
.film__day small {
  font: 600 10.5px/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(214, 236, 250, 0.7);
}
.film__month {
  margin-left: clamp(4px, 0.6vw, 10px);
  padding-left: clamp(12px, 1.2vw, 18px);
  box-shadow: inset 2px 0 0 #5fe0b4;
  font: 600 12.5px/1.3 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}
.film__place {
  display: grid;
  gap: 7px;
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  color: rgba(240, 246, 255, 0.92);
}
.film__venue {
  font-weight: 500;
}
.film__free {
  justify-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(214, 236, 250, 0.4);
  font: 600 11px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bfe9f3;
}
.film .film__bar .film__when--big span + span::before {
  content: none;
}
@media (hover: hover) and (pointer: fine) {
  .film__link:hover {
    text-decoration-color: currentColor;
  }
  .film .film__bar .chip-btn--glass:hover {
    background: #e6f6fa;
    color: var(--b-ink);
  }
  .film .film__bar .film__ctrl:hover {
    background: rgba(30, 40, 90, 0.75);
  }
  .film__ctrl:hover {
    background: rgba(30, 40, 90, 0.75);
  }
  .dock--dark .chip-btn--glass:hover {
    background: #fff;
    color: #0a1230;
  }
}
@media (max-width: 700px) {
  .film__stage {
    min-height: 580px;
  }
  .film__copy {
    top: 45%;
  }
  .film__title {
    font-size: clamp(2.3rem, 10.5vw, 3rem);
  }
  .film__title span {
    display: block;
  }
  .film__actions {
    gap: 12px 20px;
  }
  .film__bar {
    padding: 12px 12px calc(10px + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .film__when {
    justify-content: center;
    font-size: 13px;
  }
  .film__when span:nth-child(2) {
    display: none;
  }
  .film__when span + span::before {
    margin-right: 10px;
  }
  .film__right {
    gap: 8px;
  }
  .film .film__bar .dock {
    flex: 1 1 auto;
  }
  .film .dock__in {
    flex-wrap: nowrap;
    justify-content: space-between;
    border-radius: 999px;
    padding: 8px 8px 8px 16px;
    gap: 10px;
  }
  .film .dock__label {
    display: none;
  }
  .film .countdown {
    gap: 9px;
  }
  .film .countdown__unit b {
    font-size: 18px;
  }
  .film .chip-btn span {
    display: none;
  }
  .film .chip-btn {
    padding: 0 11px;
  }
  .film__poster {
    top: 28%;
  }
  .motion .dock {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: auto;
    margin: 0;
  }
  .motion .dock__in {
    flex-wrap: nowrap;
    justify-content: space-between;
    border-radius: 999px;
    padding: 8px 8px 8px 18px;
    gap: 10px;
  }
  .motion .dock__label {
    display: none;
  }
  .motion .dock .countdown {
    gap: 9px;
  }
  .motion .dock .countdown__unit b {
    font-size: 19px;
  }
  .motion .dock .chip-btn span {
    display: none;
  }
  .motion .dock .chip-btn {
    padding: 0 11px;
  }
  .dock {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin-top: 24px;
  }
  .dock__in {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 28px;
    padding: 16px;
    gap: 12px 16px;
  }
  .countdown {
    gap: 12px;
  }
  .film__when--big {
    justify-content: center;
    gap: 14px;
  }
  .film__day b {
    font-size: 2.05rem;
  }
  .film__day {
    padding: 0 9px;
  }
  .film__month {
    font-size: 11px;
  }
  .film__venue {
    display: none;
  }
  .film__place {
    gap: 0;
  }
  .film__when--big .film__day:nth-child(2) {
    display: grid;
  }
  .film__when--big .film__free {
    display: block;
  }
}
@media (min-width: 701px) and (max-width: 1100px) {
  /* Tableta: la franja del hero se apila para que fechas y sede quepan en un renglón */
  .film__bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .film__when {
    justify-content: center;
  }
  .film__right {
    justify-content: center;
  }
}
@media (max-width: 1100px) {
  .film__venue {
    max-width: 22ch;
  }
}
/* ==========================================================================
   11. Portada · Franjas de título
   Franja con foto que abre cada sección de la portada (foro_band() en template/inc/components.php).
   ========================================================================== */
.has-band {
  padding-top: 0 !important;
}
.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  margin-bottom: clamp(32px, 4vw, 56px);
  background: #0a1736;
  color: #fff;
  min-height: clamp(230px, 24vw, 340px);
}
.band__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: grayscale(0.85) contrast(0.95);
}
.motion .band__img {
  transition: transform 1.8s var(--ease-out);
}
.band:has(.band__title.in) .band__img,
html:not(.motion) .band__img {
  transform: none;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 20, 56, 0.9) 0%, rgba(8, 20, 56, 0.66) 40%, rgba(8, 20, 56, 0.22) 100%),
    linear-gradient(0deg, rgba(8, 20, 56, 0.6) 0%, rgba(8, 20, 56, 0) 62%);
}
/* filo con el degradado del ∞ (azul → verde azulado → verde) */
.band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #1f56e8, #1d86a8 55%, #2ea36b);
  height: 2px;
  opacity: 0.75;
}
.band__in {
  position: relative;
  width: 100%;
  padding-top: 56px;
  padding-bottom: clamp(34px, 4vw, 56px);
}
.band__eyebrow {
  margin: 0 0 16px;
  text-transform: uppercase;
  color: #bfe9f3;
  font: 600 12.5px/1.3 var(--sans);
  letter-spacing: 0.24em;
}
.band__title {
  margin: 0;
  color: #fff;
  text-wrap: balance;
  max-width: 24ch;
  font: 600 clamp(2.6rem, 4.6vw, 4.4rem) / 0.98 var(--display);
  letter-spacing: -0.006em;
}
.band__title em {
  color: #a9d4ff;
  font-style: normal;
}
.band__title .ln > span {
  color: #fff;
}
/* ajustes de cada sección sin su título */
.has-band .split-head {
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: clamp(36px, 4.5vw, 56px);
}
.has-band .split-head__text {
  max-width: 74ch;
}
/* clara: foto en gris con velo de papel; título azul marino y rótulo en azul */
.band--light {
  background: #eef1f6;
  color: var(--b-ink);
}
.band--light .band__img {
  filter: grayscale(1) contrast(0.9) brightness(1.06);
  opacity: 0.9;
}
.band--light::before {
  background: linear-gradient(
      90deg,
      rgba(236, 240, 246, 0.97) 0%,
      rgba(236, 240, 246, 0.9) 38%,
      rgba(236, 240, 246, 0.55) 72%,
      rgba(236, 240, 246, 0.35) 100%
    ),
    linear-gradient(0deg, rgba(236, 240, 246, 0.75) 0%, rgba(236, 240, 246, 0) 50%);
}
.band--light .band__title,
.band--light .band__title .ln > span {
  color: var(--b-ink);
}
.band--light .band__title em {
  color: var(--b-strong);
}
.band--light .band__eyebrow {
  color: var(--b-strong);
}
/* oscura: foto casi en gris bajo un velo azul marino que se funde con la sección */
.band--dark {
  background: #0a1736;
}
.band--dark .band__img {
  filter: grayscale(0.75) contrast(1.05) brightness(1.05);
}
.band--dark::before {
  background: linear-gradient(90deg, rgba(10, 23, 54, 0.86) 0%, rgba(10, 23, 54, 0.55) 45%, rgba(10, 23, 54, 0.2) 100%),
    linear-gradient(0deg, #0a1736 0%, rgba(10, 23, 54, 0) 45%);
}
.band--dark .band__eyebrow {
  color: #8fe3ff;
}
.band--dark::after {
  display: none;
}
@media (max-width: 700px) {
  .band {
    margin-bottom: 40px;
  }
  .band__in {
    padding-top: 40px;
    padding-bottom: 28px;
  }
  .band__eyebrow {
    margin-bottom: 12px;
  }
  .band::before {
    background: linear-gradient(0deg, rgba(8, 20, 56, 0.92) 0%, rgba(8, 20, 56, 0.55) 55%, rgba(8, 20, 56, 0.25) 100%);
  }
  .band--light::before {
    background: linear-gradient(
      0deg,
      rgba(236, 240, 246, 0.97) 0%,
      rgba(236, 240, 246, 0.82) 60%,
      rgba(236, 240, 246, 0.6) 100%
    );
  }
  .band--dark::before {
    background: linear-gradient(0deg, #0a1736 0%, rgba(10, 23, 54, 0.78) 55%, rgba(10, 23, 54, 0.55) 100%);
  }
  .band__title {
    font-size: clamp(2.3rem, 10vw, 2.9rem);
  }
}
/* Línea animada bajo el título "El Foro en cifras": un riel claro y una barra que va y viene
   de izquierda a derecha. Para usarla en otro título: agregar su selector junto a #cifras.
   Se usa en: Cifras, Ecosistema (Tres sectores) y Conferencistas. */
/* en esta franja se quita la línea inferior de color (queda solo la animada) */
#cifras .band::after,
#ecosistema .band::after,
#conferencistas .band::after {
  display: none;
}
#cifras .band__title,
#ecosistema .band__title,
#conferencistas .band__title {
  position: relative;
  padding-bottom: 26px;
}
#cifras .band__title::before,
#ecosistema .band__title::before,
#conferencistas .band__title::before,
#cifras .band__title::after,
#ecosistema .band__title::after,
#conferencistas .band__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 5px;
  border-radius: 5px;
}
#cifras .band__title::before,
#ecosistema .band__title::before,
#conferencistas .band__title::before {
  width: min(420px, 100%);
  background: rgba(18, 103, 93, 0.18);
}
#cifras .band__title::after,
#ecosistema .band__title::after,
#conferencistas .band__title::after {
  width: calc(min(420px, 100%) * 0.3);
  background: linear-gradient(90deg, #12675d, #2fa38f, #12675d); /* verde */
  box-shadow: 0 0 12px rgba(47, 163, 143, 0.45);
  animation: band-line 2.8s ease-in-out infinite alternate;
}
/* Ecosistema y Conferencistas: franja de título más baja (menos espacio arriba y abajo) */
#ecosistema .band,
#conferencistas .band {
  min-height: clamp(160px, 15vw, 220px);
  margin-bottom: clamp(24px, 3vw, 36px);
}
#ecosistema .band__in,
#conferencistas .band__in {
  padding-top: clamp(24px, 3vw, 36px);
  padding-bottom: clamp(20px, 2.5vw, 28px);
}
#ecosistema .band__eyebrow,
#conferencistas .band__eyebrow {
  margin-bottom: 10px;
}

@keyframes band-line {
  from { transform: translateX(0); }
  to { transform: translateX(233.33%); }
}
@media (prefers-reduced-motion: reduce) {
  #cifras .band__title::after,
#ecosistema .band__title::after,
#conferencistas .band__title::after { animation: none; }
}

/* ==========================================================================
   12. Portada · Universidad, Empresa y Sociedad
   Tres tarjetas de sector; carrusel en tableta y teléfono.
   ========================================================================== */
.eco {
  --card-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  z-index: 2;
  padding: clamp(104px, 12vw, 176px) 0 var(--section); /* abajo: igual que el resto de secciones */
  overflow: clip;
  color: var(--ink);
  background: linear-gradient(180deg, #f2f4f8 0%, #e9edf3 100%);
}
.eco__head {
  display: flex;
  align-items: flex-end;
  align-items: last baseline;
  justify-content: space-between;
  gap: 32px 64px;
  flex-wrap: wrap;
  margin-bottom: clamp(44px, 6vw, 80px);
}
.eco__total {
  display: flex;
  align-items: flex-end;
  align-items: last baseline;
  gap: 18px;
  margin: 0;
}
.eco__total b {
  font: 400 clamp(4rem, 8.4vw, 8.4rem) / 0.82 var(--display);
  letter-spacing: -0.006em;
  color: var(--b-ink);
  font-variant-numeric: lining-nums tabular-nums;
  background: var(--b-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.06em;
}
.eco__total span {
  max-width: 15ch;
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
}
.eco__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(16px, 1.8vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
  perspective: 1400px;
}
.eco-card {
  display: flex;
  min-width: 0;
  --card-bg: linear-gradient(160deg, #0b1f4d 0%, #1a3fa8 100%);
}
.eco-card__in {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  padding: clamp(26px, 2.4vw, 34px) clamp(24px, 2.2vw, 32px) 8px;
  border-radius: 24px;
  border: 1px solid rgba(14, 22, 40, 0.08);
  box-shadow:
    0 1px 1px rgba(14, 22, 40, 0.03),
    0 4px 10px -4px rgba(14, 22, 40, 0.05),
    0 28px 56px -32px rgba(14, 22, 40, 0.16);
  transform: translate3d(0, var(--lift, 0px), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition:
    transform 0.7s var(--card-ease),
    box-shadow 0.7s var(--card-ease),
    border-color 0.5s var(--card-ease);
  will-change: transform;
  background: var(--card-bg);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}
/* luz de acento muy tenue en la esquina y brillo especular que sigue al puntero */
.eco-card__in::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(80% 60% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(95, 224, 180, 0.14), transparent 70%);
}
.eco-card__in::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 0%),
    rgba(255, 255, 255, 0.7),
    rgba(255, 255, 255, 0) 60%
  );
  transition: opacity 0.6s var(--card-ease);
  mix-blend-mode: overlay;
}
.eco-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.eco-card__idx {
  font: 500 13px/1 var(--num);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: #8fe3ff;
}
.eco-card__idx i {
  font-style: normal;
  color: rgba(226, 236, 255, 0.55);
}
.eco-card__icon {
  width: 34px;
  height: 34px;
  fill: none;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: #fff;
  opacity: 0.9;
}
.eco-card__name {
  margin: 0;
  font: 400 clamp(2.3rem, 3vw, 3rem) / 0.95 var(--display);
  font-optical-sizing: auto;
  letter-spacing: -0.006em;
  color: #fff;
  font-weight: 600;
}
.eco-card__name i {
  font-style: normal;
  color: #5fe0b4;
}
.eco-card__line {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.6;
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
  text-wrap: pretty;
  color: rgba(234, 241, 255, 0.86);
}
.eco-card__n {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: auto 0 0;
  padding: clamp(32px, 4vw, 52px) 0 22px;
}
.eco-card__n b {
  font: 400 clamp(3rem, 4vw, 3.9rem) / 0.85 var(--display);
  letter-spacing: -0.006em;
  font-variant-numeric: lining-nums tabular-nums;
  color: #fff;
}
.eco-card__n span {
  font-size: 13.5px;
  color: rgba(226, 236, 255, 0.72);
}
.eco-card__cats {
  margin: 0 calc(clamp(24px, 2.2vw, 32px) * -1 + 8px) 0;
  padding: 6px 0;
  list-style: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px -16px rgba(5, 13, 38, 0.55);
}
.eco-card__cats li + li a::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 1px;
  background: rgba(14, 22, 40, 0.07);
}
.eco-card__cats a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.3;
  transition:
    background-color 0.35s var(--card-ease),
    color 0.35s var(--card-ease);
  color: var(--ink-2);
}
.eco-card__cats b {
  font: 600 12.5px/1 var(--num);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.eco-card__cats .i {
  width: 14px;
  height: 14px;
  color: var(--accent);
  opacity: 0;
  translate: -4px 0;
  transition:
    opacity 0.35s var(--card-ease),
    translate 0.45s var(--card-ease);
}
.eco-card__cats a:focus-visible .i {
  opacity: 1;
  translate: 0 0;
}
.eco__dots {
  display: none;
}
.eco__foot {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(20px, 2.5vw, 32px);
}
.eco__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 15.5px/1.2 var(--sans);
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 6px;
  transition:
    text-decoration-color 0.25s,
    gap 0.3s var(--ease-out);
}
.eco__more .i {
  width: 18px;
  height: 18px;
}
.eco a:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
.eco.has-band .eco__head {
  margin-bottom: clamp(32px, 4vw, 52px);
}
.eco-card:nth-child(2) {
  --card-bg: linear-gradient(160deg, #0f2a66 0%, #1b6f9c 100%);
}
.eco-card:nth-child(3) {
  --card-bg: linear-gradient(160deg, #0d4a5f 0%, #23895f 100%);
}
.eco.has-band .band {
  margin-bottom: clamp(40px, 4.5vw, 64px);
}
@media (hover: hover) and (pointer: fine) {
  .eco-card__in:hover {
    --lift: -6px;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow:
      0 1px 1px rgba(5, 13, 38, 0.06),
      0 14px 28px -10px rgba(5, 13, 38, 0.25),
      0 48px 80px -36px rgba(5, 13, 38, 0.5);
  }
  .eco-card__in:hover::after {
    opacity: 1;
  }
  .eco-card__cats a:hover {
    color: var(--ink);
    background: #eef3ff;
  }
  .eco-card__cats a:hover::before,
  .eco-card__cats li:hover + li a::before {
    opacity: 0;
  }
  .eco-card__cats a:hover .i {
    opacity: 1;
    translate: 0 0;
  }
  .eco__more:hover {
    text-decoration-color: currentColor;
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .eco-card__in {
    transition: none;
    transform: none;
  }
}
@supports (grid-template-rows: subgrid) {
  @media (min-width: 961px) {
    /* Escritorio: las tres tarjetas comparten filas (subgrid), así nombre, cifra y bandeja quedan alineados */
    .eco__cards > .eco-card {
      display: grid;
      grid-row: span 5;
      grid-template-rows: subgrid;
    }
    .eco-card > .eco-card__in {
      display: grid;
      grid-row: 1 / -1;
      grid-template-rows: subgrid;
    }
    .eco-card__in > .eco-card__n {
      margin: 0;
      align-self: end;
    }
  }
}
@media (max-width: 960px) {
  /* Tableta y móvil: carrusel con desplazamiento nativo; la tarjeta siguiente asoma */
  .eco__cards {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(78%, 400px);
    gap: 14px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 6px var(--gutter) 26px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    perspective: none;
  }
  .eco__cards::-webkit-scrollbar {
    display: none;
  }
  .eco-card {
    scroll-snap-align: start;
  }
  .eco-card__cats .i {
    opacity: 1;
    translate: 0 0;
  }
  .eco__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2px;
  }
  .eco__dots i {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: rgba(14, 22, 40, 0.18);
    transition:
      width 0.5s var(--card-ease),
      background-color 0.5s var(--card-ease);
  }
  .eco__dots i.is-on {
    width: 22px;
    background: var(--ink);
  }
}
@media (max-width: 700px) {
  .eco {
    padding: 88px 0 80px;
  }
  .eco__head {
    margin-bottom: 32px;
    gap: 22px;
  }
  .eco__total b {
    font-size: 4.4rem;
  }
  .eco-card__in {
    padding: 24px 22px 8px;
    border-radius: 22px;
  }
  .eco-card__cats {
    margin: 0 -14px;
    border-radius: 14px;
  }
  .eco-card__top {
    margin-bottom: 36px;
  }
  .eco-card__name {
    font-size: 2.4rem;
  }
  .eco-card__n {
    padding: 28px 0 18px;
  }
  .eco-card__n b {
    font-size: 3rem;
  }
  .eco__foot {
    justify-content: flex-start;
  }
  /* sectores: una tarjeta a todo el ancho */
  .js .eco__dots {
    display: none;
  }
  .eco__cards {
    grid-auto-columns: 100%;
    gap: calc(var(--gutter) + 12px);
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }
  .eco-card {
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
  .eco.has-band {
    padding-top: 0;
  }
}
/* ==========================================================================
   13. Portada · Un encuentro estratégico
   Foto fija que se acerca con el scroll y párrafos que se encienden.
   ========================================================================== */
/* Panorama: foto fija en un marco que se acerca despacio; al lado, tres párrafos que se
   encienden uno por uno. Escritorio: foto a la izquierda (fija), título y párrafos a la derecha.
   Teléfono: título, foto y párrafos apilados. Base sin JS: todo el texto en tinta. */
.panorama__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(48px, 6vw, 112px);
  grid-template-areas: "media title" "media steps";
  align-items: start;
}
.panorama__media {
  grid-area: media;
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  /* sección más compacta: la foto ya no ocupa toda la pantalla */
  height: min(calc(100vh - var(--nav-h) - 140px), 560px);
  min-height: 380px;
  border-radius: 28px;
  background: var(--char);
  box-shadow:
    0 1px 2px rgba(14, 22, 40, 0.06),
    0 30px 60px -36px rgba(14, 22, 40, 0.45);
}
.panorama__pan {
  position: absolute;
  inset: -6%;
  transform: translate(var(--tx, 0%), var(--ty, 0%));
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.panorama__pan img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  filter: saturate(0.82) contrast(1.03);
  will-change: transform;
}
.panorama__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 11, 15, 0) 55%, rgba(10, 11, 15, 0.55) 100%);
}
.panorama__count {
  position: absolute;
  left: 24px;
  bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  font: 500 13px/1 var(--num);
  letter-spacing: 0.04em;
  color: #fafaf7;
  font-variant-numeric: tabular-nums;
}
.panorama__count i {
  font-style: normal;
  color: rgba(250, 250, 247, 0.55);
}
.panorama__steps {
  grid-area: steps;
  margin: 0;
  padding: clamp(8px, 2vh, 24px) 0 clamp(8px, 4vh, 48px);
  list-style: none;
}
.panorama__step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  padding: clamp(24px, 6vh, 64px) 0 !important;
  border-top: 1px solid var(--line);
}
.panorama__step:first-child {
  border-top: 0;
  padding-top: clamp(8px, 2vh, 24px) !important;
}
.panorama__idx {
  padding-top: 0.55em;
  font: 500 12.5px/1 var(--num);
  letter-spacing: 0.04em;
  color: #8fa3c2;
  font-variant-numeric: tabular-nums;
}
.panorama__step p {
  margin: 0;
  font: 400 clamp(1.2rem, 1.7vw, 1.55rem) / 1.48 var(--sans);
  letter-spacing: -0.012em;
  color: var(--ink);
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
  text-wrap: pretty;
}
/* con movimiento: solo el párrafo activo queda en tinta */
.motion .panorama__step p,
.motion .panorama__idx {
  transition:
    color 0.7s var(--ease-out),
    opacity 0.7s var(--ease-out);
    font-size: 18px;
    font-weight: normal;
}
.motion .panorama__step:not(.is-on) p {
  color: rgba(14, 26, 54, 0.2);
}
.motion .panorama__step:not(.is-on) .panorama__idx {
  opacity: 0.35;
}
.panorama.has-band .panorama__grid {
  grid-template-areas: "media steps";
}
@media (max-width: 900px) {
  .panorama__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "media" "steps";
  }
  .panorama__media {
    position: relative;
    top: auto;
    height: clamp(300px, 52svh, 460px);
    min-height: 0;
    margin-top: 36px;
    border-radius: 22px;
  }
  .panorama__steps {
    padding: 8px 0 0;
  }
  .panorama__step {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    padding: 24px 0 !important;
  }
  .panorama__step:first-child {
    padding-top: 10px;
  }
  .panorama__count {
    left: 18px;
    bottom: 16px;
  }
}
@media (max-width: 1023px) {
  .panorama__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .panorama.has-band .panorama__grid {
    grid-template-areas: "media" "steps";
  }
  .panorama.has-band .panorama__media {
    margin-top: 0;
  }
}
/* ==========================================================================
   14. Portada · El Foro en cifras
   Libro mayor de cifras con encabezado fijo (row > col-lg-4 + col-lg-8).
   ========================================================================== */
/* El Foro en cifras: sección clara (descanso entre la portada y la vitrina azul de Contenido).
   Reutiliza las variables "on-dark" redefinidas a tinta para no duplicar reglas. */
.cifras {
  --on-dark: var(--ink);
  --on-dark-2: var(--muted);
  --line-dark: var(--line);
  --line-dark-2: var(--line-2);
  position: relative;
  background: linear-gradient(180deg, #eef1f6 0%, #e4e9f1 100%);
  color: var(--muted);
  padding: var(--section) 0;
  overflow: clip;
  border-top: 1px solid var(--line);
}

/* Cifras: título sin foto, sobre el mismo gris de la sección y con menos espacio */
#cifras .band__img,
#cifras .band::before {
  display: none;
}
#cifras .band {
  background: transparent;
  min-height: 0;
  margin-bottom: clamp(20px, 2.5vw, 32px);
}
#cifras .band__in {
  padding-top: clamp(28px, 3vw, 40px);
  padding-bottom: 0;
}
.cifras::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(50% 60% at 92% 0%, rgba(47, 98, 234, 0.07), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(71, 226, 124, 0.06), transparent 70%);
}
/* Retícula de Bootstrap: .row > .col-lg-4 (encabezado fijo) + .col-lg-8 (libro mayor) */
.cifras__wrap {
  position: relative;
  --bs-gutter-x: clamp(40px, 6vw, 96px);
  --bs-gutter-y: clamp(40px, 6vw, 96px);
}
.cifras__head {
  position: sticky;
  top: calc(var(--nav-h) + 48px);
  display: grid;
  gap: 22px;
  justify-items: start;
  align-content: start;
}
.cifras__lead {
  max-width: 30ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--on-dark-2);
  text-wrap: pretty;
}
.cifras__ledger {
  list-style: none;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  counter-reset: none;
}
.cifras__row:last-child {
  border-bottom: 1px solid var(--line-dark-2);
}
.cifras__row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 16px clamp(28px, 4vw, 56px);
  align-items: start;
  padding: clamp(32px, 4.4vw, 56px) 0;
  border-top: 1px solid var(--line-dark-2);
  transition: opacity 0.6s var(--ease-out);
}
.cifras__fig {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font: 400 clamp(3.6rem, 7vw, 6rem) / 0.86 var(--display);
  letter-spacing: -0.006em;
  color: var(--on-dark);
  font-variant-numeric: lining-nums tabular-nums;
  font-optical-sizing: auto;
}
.cifras__fig .fig-plus {
  color: var(--navy);
  margin-right: 0.02em;
}
.cifras__fig small {
  font: 400 clamp(1.4rem, 2.2vw, 2rem) / 1 var(--display);
  letter-spacing: -0.006em;
  color: var(--on-dark-2);
}
.cifras__body {
  padding-top: 6px;
}
.cifras__name {
  font: 600 18px/1.3 var(--sans);
  color: var(--on-dark);
}
.cifras__text {
  margin-top: 10px;
  max-width: 54ch;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--on-dark-2);
  text-wrap: pretty;
}
.cifras__roster {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0 28px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.cifras__row--wide > .cifras__more {
  grid-column: 1 / -1;
  margin-top: 0;
  justify-self: start;
}
.cifras__roster li {
  padding: 13px 0;
  border-top: 1px solid var(--line-dark);
  font-size: 14px;
  line-height: 1.5;
  color: var(--on-dark-2);
}
.cifras__roster strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 600;
  color: var(--on-dark);
}
.cifras__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding-bottom: 2px;
  font: 500 15px/1.2 var(--sans);
  color: var(--on-dark);
  text-decoration: underline;
  text-decoration-color: var(--line-dark-2);
  text-underline-offset: 5px;
  transition:
    text-decoration-color 0.25s,
    gap 0.3s var(--ease-out);
}
.cifras__more .i {
  width: 16px;
  height: 16px;
}
.cifras ::selection {
  background: var(--navy);
  color: #fff;
}
.motion .cifras__ledger.is-tracking .cifras__row {
  opacity: 0.42;
}
.motion .cifras__ledger.is-tracking .cifras__row.is-on {
  opacity: 1;
}
.cifras__text,
.cifras__lead {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
  text-wrap: pretty;
}
.cifras .cifras__fig {
  background: var(--b-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cifras .cifras__fig small {
  -webkit-text-fill-color: var(--muted);
}
.cifras .cifras__fig .fig-plus {
  -webkit-text-fill-color: var(--b-strong);
}
@media (hover: hover) and (pointer: fine) {
  .cifras__more:hover {
    text-decoration-color: currentColor;
    gap: 10px;
  }
}
@media (max-width: 991.98px) {
  .cifras__head {
    position: static;
  }
  /* ---------- Filas en pantallas chicas ----------
   Bootstrap compensa la separación de columnas con márgenes negativos en .row. Bajo 992 px las
   columnas se apilan, así que la separación horizontal se limita a 2 × medianil para que la
   fila no se salga del contenedor. */
  .cifras__wrap {
    --bs-gutter-x: min(56px, calc(var(--gutter) * 2));
  }
}
@media (max-width: 700px) {
  .cifras__row {
    grid-template-columns: minmax(0, 1fr);
  }
  .cifras__roster {
    grid-template-columns: minmax(0, 1fr);
  }
  .motion .cifras__ledger.is-tracking .cifras__row {
    opacity: 1;
  }
}
/* ==========================================================================
   15. Portada · Portafolio de actividades
   Vitrina de tarjetas: una abierta a la vez en escritorio, apiladas en tableta y teléfono.
   ========================================================================== */
.contenido {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.acc__headrow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.acc__arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.16s var(--ease-out);
}
.acc__arrow .i {
  width: 20px;
  height: 20px;
}
.acc__arrow:active {
  transform: scale(0.94);
}
html:not(.js) .acc__arrow {
  display: none;
}
.acc__wrap {
  max-width: calc(1440px + var(--gutter) * 2);
}
.acc {
  --acc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --acc-gap: clamp(10px, 1.2vw, 16px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: clamp(24px, 2.6vw, 34px);
  padding: clamp(14px, 3vw, 44px);
  background: radial-gradient(60% 80% at 8% 110%, rgba(47, 98, 234, 0.55), transparent 62%),
    radial-gradient(48% 70% at 96% -10%, rgba(71, 226, 124, 0.28), transparent 60%),
    radial-gradient(40% 60% at 70% 120%, rgba(33, 185, 168, 0.3), transparent 64%),
    linear-gradient(160deg, #0e1e46 0%, #0a1736 55%, #071029 100%);
  box-shadow:
    0 1px 1px rgba(10, 23, 54, 0.1),
    0 40px 80px -48px rgba(10, 23, 54, 0.6);
}
/* el resplandor respira despacio, como la escena de la portada */
.acc::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -20%;
  pointer-events: none;
  background: radial-gradient(30% 40% at 30% 40%, rgba(94, 240, 160, 0.12), transparent 70%),
    radial-gradient(34% 44% at 72% 64%, rgba(76, 120, 240, 0.2), transparent 70%);
}
.motion .acc::before {
  animation: acc-drift 18s ease-in-out infinite alternate;
}
.acc__list {
  display: grid;
  gap: var(--acc-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.acc__item {
  position: relative;
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  scroll-margin-top: calc(var(--nav-h) + 24px);
  display: grid;
}
.acc__h {
  margin: 0;
  font: inherit;
}
.acc__tab {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  margin: 0;
  background: #fff;
  color: inherit;
  text-align: center;
  cursor: pointer;
  font: inherit;
}
.acc__tab:focus-visible {
  outline: 2px solid #5ef0a0;
  outline-offset: -4px;
  border-radius: 18px;
}
.acc__face {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  padding: clamp(26px, 3vw, 40px) clamp(14px, 1.6vw, 22px);
  min-height: 172px;
}
.acc__title {
  font: 500 clamp(12.5px, 1vw, 15px) / 1.35 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}
.acc__rule {
  width: 28px;
  height: 1px;
  background: var(--ink);
  opacity: 0.25;
  transition:
    width 0.6s var(--acc-ease),
    opacity 0.4s;
}
.acc__tag {
  max-width: 22ch;
  font: 400 15px/1.45 var(--sans);
  color: var(--muted);
  text-wrap: balance;
}
.acc__media {
  position: relative;
  display: block;
  flex: 1 1 auto;
  min-height: 150px;
  overflow: hidden;
  background: #0a1736;
}
.acc__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 1.2s var(--acc-ease),
    filter 0.6s;
}
.acc__plus {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #0a1736;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.5s var(--acc-ease),
    opacity 0.3s;
}
.acc__plus .i {
  width: 16px;
  height: 16px;
}
.acc__panel {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.acc__body {
  padding: clamp(24px, 2.6vw, 40px);
}
.acc__count {
  margin: 0 0 14px;
  font: 500 12.5px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #12806b;
}
.acc__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #0a1736;
  color: #fff;
  font: 500 14.5px/1 var(--sans);
  transition:
    background-color 0.25s var(--ease),
    transform 0.16s var(--ease-out);
}
.acc__cta .i {
  width: 16px;
  height: 16px;
}
.acc__cta:active {
  transform: scale(0.97);
}
html:not(.js) .acc__tab,
html:not(.js) .acc__plus {
  cursor: default;
}
html:not(.js) .acc__plus {
  display: none;
}
/* sin JS en cualquier ancho: tarjetas apiladas con foto, título y lista */
html:not(.js) .acc__media {
  height: 200px;
  flex: none;
}
.portafolio__head {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.portafolio__lead {
  max-width: 64ch;
  margin: 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--muted);
}
.acc__num {
  font: 500 12px/1 var(--num);
  letter-spacing: 0.08em;
  color: #12806b;
  font-variant-numeric: tabular-nums;
}
.acc__text {
  margin: 0;
  font-size: clamp(15.5px, 1.05vw, 17px);
  line-height: 1.7;
  color: var(--ink-2);
  text-wrap: pretty;
  text-align: justify;
}
.acc__poster {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 230px;
  margin-top: 22px;
  border-radius: 6px;
  box-shadow: 0 18px 36px -22px rgba(5, 13, 38, 0.6);
}
.acc__body .acc__cta {
  margin-top: 24px;
}
@media (hover: hover) and (pointer: fine) {
  .acc__arrow:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
  }
  .acc__item:not(.is-open) .acc__tab:hover .acc__media img {
    transform: scale(1.05);
  }
  .acc__item:not(.is-open) .acc__tab:hover .acc__plus {
    transform: rotate(90deg);
  }
  .acc__item:not(.is-open) .acc__tab:hover .acc__rule {
    width: 48px;
    opacity: 0.5;
  }
  .acc__cta:hover {
    background: var(--navy-2);
  }
}
@media (min-width: 1101px) {
  /* ---- Escritorio: vitrina al estilo Nespresso ----
     La sección entera es azul marino con pinceladas de azul y verde (img/contenido-fondo.webp);
     tarjetas blancas de esquinas casi rectas, títulos en mayúsculas espaciadas y flechas
     translúcidas a los lados. */
  .contenido {
    --acc-grow: 3.8;
    --acc-min: 180px;
    --acc-body: 0.625;
    position: relative;
    border: 0;
    color: var(--on-dark);
    background: #050d26 url("../img/contenido-fondo.webp") center / cover no-repeat;
  }
  .contenido .display {
    color: #f3f6ff;
  }
  .acc__headrow {
    justify-content: center;
    text-align: center;
  }
  .acc__wrap {
    position: relative;
    max-width: calc(1560px + var(--gutter) * 2);
  }
  .acc {
    overflow: visible;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .acc::before {
    display: none;
  }

  .js .acc__list {
    display: flex;
    gap: 18px;
    height: var(--acc-h, clamp(560px, calc(100vh - var(--nav-h) - 160px), 660px));
    min-height: 540px;
  }
  .js .acc__item {
    flex: 1 1 0;
    border-radius: 3px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0fr);
    box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.7);
    transition:
      flex-grow 0.85s var(--acc-ease),
      grid-template-columns 0.85s var(--acc-ease);
  }
  .js .acc__item:not(.is-open) {
    min-width: var(--acc-min);
  }
  .js .acc__item.is-open {
    flex-grow: var(--acc-grow);
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  }
  .js .acc__h {
    min-width: 0;
    height: 100%;
  }
  .js .acc__tab:focus-visible {
    border-radius: 3px;
  }
  /* cerrada: bloque blanco con el título y la frase; la foto llena el resto */
  .js .acc__face {
    min-height: 0;
    flex: 0 0 38%;
    gap: 16px;
    padding: clamp(30px, 3vw, 48px) 12px;
  }
  .js .acc__title {
    font: 300 clamp(14px, 1.05vw, 19px) / 1.35 var(--sans);
    letter-spacing: 0.15em;
    color: #141413;
  }
  .js .acc__rule {
    display: none;
  }
  .js .acc__tag {
    max-width: 20ch;
    font: 400 clamp(15px, 1.1vw, 17.5px) / 1.5 var(--sans);
    letter-spacing: 0.03em;
    color: #3d3a36;
  }
  .js .acc__plus {
    display: none;
  }
  .js .acc__media img {
    transition: transform 1.4s var(--acc-ease);
  }
  .js .acc__item:not(.is-open) .acc__face {
    animation: acc-face-in 0.7s var(--acc-ease) both;
  }
  /* abierta: foto a la izquierda con el título en blanco; texto en el panel blanco */
  .js .acc__item.is-open .acc__tab {
    cursor: default;
  }
  .js .acc__item.is-open .acc__media {
    position: absolute;
    inset: 0;
    min-height: 0;
  }
  .js .acc__item.is-open .acc__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 13, 38, 0.22) 0%, rgba(5, 13, 38, 0.5) 100%);
  }
  .js .acc__item.is-open .acc__face {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    background: transparent;
    animation: acc-face-in 0.9s var(--acc-ease) both;
  }
  .js .acc__item.is-open .acc__title {
    color: #fff;
    font-size: clamp(18px, 1.6vw, 28px);
    letter-spacing: 0.2em;
  }
  .js .acc__item.is-open .acc__rule {
    display: block;
    width: 56px;
    height: 2px;
    background: #fff;
    opacity: 0.9;
  }
  .js .acc__item.is-open .acc__tag {
    max-width: 18ch;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(17px, 1.35vw, 22px);
  }
  .js .acc__panel {
    display: flex;
    align-items: center;
    background: #fff;
  }
  .js .acc__body {
    flex: none;
    width: var(--acc-body-w, max(100%, 380px));
    max-height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    padding: clamp(32px, 3vw, 52px) clamp(30px, 3vw, 52px);
  }
  .js .acc__count {
    text-align: center;
    color: #12806b;
  }
  .js .acc__cta {
    display: table;
    margin: 24px auto 0;
    padding: 14px 24px;
    border-radius: 2px;
    background: #0a1736;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .js .acc__cta .i {
    display: none;
  }
  .js .acc__item:not(.is-open) .acc__body {
    opacity: 0;
    transform: translateX(24px);
    transition:
      opacity 0.25s,
      transform 0.25s;
    visibility: hidden;
  }
  .js .acc__item.is-open .acc__body {
    opacity: 1;
    transform: none;
    transition:
      opacity 0.6s var(--acc-ease) 0.32s,
      transform 0.8s var(--acc-ease) 0.32s;
  }
  /* flechas translúcidas a los lados, como en la vitrina de referencia */
  .js .acc__arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: grid;
    width: 56px;
    height: 112px;
    margin-top: -56px;
    border: 0;
    border-radius: 3px;
    background: rgba(5, 13, 38, 0.55);
    color: #fff;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 0 1px rgba(206, 220, 255, 0.12);
  }
  .js .acc__arrow .i {
    width: 30px;
    height: 30px;
    stroke-width: 1.2;
  }
  .js .acc__arrow--prev {
    left: max(4px, calc(var(--gutter) - 66px));
  }
  .js .acc__arrow--next {
    right: max(4px, calc(var(--gutter) - 66px));
  }
  .portafolio {
    --acc-closed: 190px;
    --acc-body: 0.54;
  }
  .portafolio .portafolio__lead {
    color: rgba(226, 234, 252, 0.82);
  }
  .js .acc--rail {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    margin: -36px 0;
    padding: 36px 0;
    overscroll-behavior-x: contain;
  }
  .js .acc--rail::-webkit-scrollbar {
    display: none;
  }
  .js .acc--rail .acc__list {
    width: max-content;
  }
  .js .acc--rail .acc__item {
    flex: 0 0 var(--acc-closed);
    min-width: 0;
    transition:
      flex-basis 0.85s var(--acc-ease),
      grid-template-columns 0.85s var(--acc-ease);
  }
  .js .acc--rail .acc__item.is-open {
    flex-basis: var(--acc-open, 720px);
    flex-grow: 0;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  }
  .js .acc--rail .acc__face {
    flex-basis: 44%;
  }
  .js .acc--rail .acc__title {
    font-size: clamp(13px, 0.95vw, 15.5px);
  }
  .js .acc--rail .acc__tag {
    font-size: clamp(14px, 1vw, 16px);
  }
  .js .acc--rail .acc__item.is-open .acc__title {
    font-size: clamp(17px, 1.4vw, 24px);
    letter-spacing: 0.12em;
    text-wrap: balance;
    padding: 0 8px;
  }
  .js .acc--rail .acc__item.is-open .acc__num {
    color: #8ff0c4;
  }
  .js .acc--rail .acc__count {
    text-align: left;
  }
  .js .acc--rail .acc__body .acc__cta {
    margin: 26px 0 0;
  }
  .js .acc--rail .acc__item.is-open .acc__tag {
    max-width: 22ch;
    font-size: clamp(16px, 1.2vw, 19px);
  }
  /* la tarjeta de FONART usa el cartel como foto: al abrirse, velo más denso para que el título no compita con el cartel (que se ve limpio a un lado) */
  .js .acc__item.has-poster.is-open .acc__media::after {
    background: rgba(5, 13, 38, 0.8);
  }
}
@media (min-width: 1101px) {
  @media (hover: hover) and (pointer: fine) {
    .js .acc__cta:hover {
      background: #12806b;
    }
    .js .acc__item:not(.is-open) .acc__tab:hover .acc__media img {
      transform: scale(1.06);
    }
    .js .acc__arrow:hover {
      background: rgba(18, 128, 107, 0.75);
      color: #fff;
    }
  }
}
@media (max-width: 1100px) {
  .js .acc__item {
    grid-template-rows: auto minmax(0, 0fr);
    transition: grid-template-rows 0.7s var(--acc-ease);
  }
  .js .acc__item.is-open {
    grid-template-rows: auto minmax(0, 1fr);
  }
  .js .acc__tab {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 16px;
    padding: 12px 16px 12px 12px;
    text-align: left;
  }
  .js .acc__media {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    height: 80px;
    border-radius: 12px;
    transition: height 0.7s var(--acc-ease);
  }
  .js .acc__face {
    grid-column: 2;
    grid-row: 1;
    justify-items: start;
    padding: 0;
    min-height: 0;
    gap: 6px;
  }
  .js .acc__rule {
    display: none;
  }
  .js .acc__title {
    font-size: 13.5px;
    letter-spacing: 0.16em;
  }
  .js .acc__tag {
    max-width: none;
    font-size: 14.5px;
  }
  .js .acc__plus {
    position: static;
    grid-column: 3;
    grid-row: 1;
    background: #eef1f7;
    box-shadow: none;
  }
  .js .acc__item.is-open .acc__plus {
    transform: rotate(45deg);
    background: #0a1736;
    color: #fff;
    grid-row: 2;
    grid-column: 2;
  }
  /* abierta: la foto se vuelve portada a todo el ancho */
  .js .acc__item.is-open .acc__tab {
    grid-template-columns: minmax(0, 1fr) 34px;
    row-gap: 14px;
  }
  .js .acc__item.is-open .acc__media {
    grid-column: 1 / -1;
    height: clamp(150px, 40vw, 240px);
  }
  .js .acc__item.is-open .acc__face {
    grid-row: 2;
    grid-column: 1;
  }
  .js .acc__body {
    padding: 4px 18px 22px;
  }
  .js .acc__item:not(.is-open) .acc__body {
    visibility: hidden;
    opacity: 0;
    transition:
      opacity 0.2s,
      visibility 0s 0.7s;
  }
  .js .acc__item.is-open .acc__body {
    opacity: 1;
    transition: opacity 0.5s var(--acc-ease) 0.15s;
  }
  .acc__arrow {
    display: none !important;
  }
  .portafolio .acc__num {
    display: none;
  }
  .acc__poster {
    max-height: 280px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .acc__item,
  .acc__body,
  .acc__face,
  .acc__media,
  .acc__media img,
  .acc::before {
    transition: none !important;
    animation: none !important;
  }
}
/* ==========================================================================
   16. Conferencistas
   Retratos, carril horizontal y tarjetas de conferencista.
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  [data-tilt]:hover .portrait__sheen {
    opacity: 1;
  }
}
/* Conferencistas: carril */
/* Controles del carril de conferencistas: centrados debajo de las tarjetas */
.rail-ctrl--center {
  justify-content: center;
  gap: 10px;
  margin-top: clamp(20px, 2.5vw, 32px);
}
.ponentes {
  padding-bottom: var(--section);
  background: var(--paper);
}
.rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  padding: 8px max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 28px;
  scroll-padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2));
}
.rail::-webkit-scrollbar {
  display: none;
}
.rail:focus-visible {
  outline-offset: -2px;
}
.speaker {
  flex: none;
  width: clamp(250px, 23vw, 300px);
  scroll-snap-align: start;
  perspective: 1000px;
}
.speaker__link {
  display: grid;
  gap: 18px;
}
.speaker__meta {
  display: grid;
  gap: 6px;
  padding: 0 6px;
}
.speaker__name {
  font: 600 22px/1.15 var(--display);
  letter-spacing: -0.006em;
  color: var(--ink);
}
.speaker__role {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--muted);
}
.speaker__when {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font: 500 13px/1 var(--num);
  color: var(--teal);
}
.speaker__when .i {
  width: 15px;
  height: 15px;
}
.portrait {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: calc(var(--r-xl) - var(--bezel));
  background: radial-gradient(120% 80% at 28% 12%, #fbfcfe 0%, #e6ebf2 46%, #cfd7e3 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 0 0 1px rgba(14, 26, 54, 0.05);
  isolation: isolate;
}
.portrait::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: calc(var(--r-xl) - var(--bezel) - 10px);
  border: 1px solid rgba(120, 140, 170, 0.28);
  pointer-events: none;
}
.portrait.has-photo::before {
  display: none;
}
/* sin foto: silueta neutra sobre un fondo frío y suave */
.portrait:not(.has-photo) {
  background: linear-gradient(180deg, #e9edf4 0%, #d6dce8 100%);
}
.portrait:not(.has-photo)::before {
  display: none;
}
.portrait__ghost {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 78%;
  height: auto;
  translate: -50% 0;
  fill: #b4bdce;
}
.portrait__ghost circle {
  fill: #bdc5d4;
}
.portrait--chip .portrait__ghost {
  width: 92%;
}
.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}
.portrait__sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  mix-blend-mode: soft-light;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 0%),
    rgba(255, 255, 255, 0.75),
    rgba(255, 255, 255, 0) 50%
  );
}
.portrait--profile {
  border-radius: calc(40px - 8px);
}
.portrait--chip {
  width: 30px;
  height: 30px;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line);
}
.portrait--chip::before,
.portrait--chip .portrait__sheen {
  display: none;
}
.ponentes--more {
  padding-top: clamp(80px, 10vw, 140px);
}
.ponentes.has-band .split-head__side {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 48px;
  width: 100%;
}
.ponentes.has-band .split-head__text {
  max-width: 64ch;
}
.ponentes.has-band .band {
  margin-bottom: clamp(44px, 5vw, 72px);
}
@media (max-width: 700px) {
  .speaker {
    transition:
      transform 0.2s linear,
      opacity 0.2s linear;
    transform-origin: 50% 60%;
    width: calc(100vw - var(--gutter) * 2);
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
  /* conferencistas: una a la vez; las flechas grandes de arriba se ocultan */
  .js .ponentes .rail-ctrl {
    display: none;
  }
  .rail {
    gap: calc(var(--gutter) + 12px);
    padding: 8px var(--gutter) 8px;
    scroll-padding: 0 var(--gutter);
  }
}
/* ==========================================================================
   17. Agenda
   Pestañas de días (tabs de Bootstrap con píldora deslizante), renglones de sesión, filtro por día y "En curso / Siguiente".
   ========================================================================== */
.now__label i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(179, 204, 35, 0.6);
  animation: pulse 2s var(--ease-out) infinite;
}
/* Agenda: control segmentado + renglones */
.seg {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  padding: 6px;
  border-radius: 26px;
  background: rgba(14, 26, 54, 0.06);
  box-shadow: inset 0 1px 2px rgba(14, 26, 54, 0.06);
  max-width: 100%;
}
.seg__pill {
  position: absolute;
  z-index: 0;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 0;
  border-radius: 20px;
  background: var(--paper);
  box-shadow:
    0 1px 1px rgba(30, 42, 66, 0.06),
    0 8px 20px -10px rgba(30, 42, 66, 0.35);
  transition:
    transform 0.55s var(--ease-io),
    width 0.55s var(--ease-io);
}
.no-js .seg__pill {
  display: none;
}
.seg__tab {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 150px;
  height: 64px;
  padding: 0 22px;
  border-radius: 20px;
  color: var(--muted);
  transition: color 0.35s var(--ease);
}
.seg__tab b {
  font: 500 32px/1 var(--display);
  letter-spacing: -0.006em;
  font-variant-numeric: lining-nums;
}
.seg__tab span {
  font: 500 14px/1.2 var(--sans);
}
.no-js .seg__tab[aria-selected="true"] {
  background: var(--paper);
}
.days__panels {
  display: grid;
  margin-top: 40px;
}
/* Pestañas de Bootstrap: los tres días ocupan la misma celda (sin saltos de altura al cambiar)
   y solo se ve el activo. Sin JavaScript se ven los tres, uno debajo de otro. */
.days__panels.tab-content > .tab-pane {
  display: block;
}
.js .days__panel {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
}
.js .days__panel.active {
  visibility: visible;
  opacity: 1;
}
.no-js .days__panel + .days__panel {
  margin-top: 48px;
}
.days__panel:focus-visible {
  outline-offset: 8px;
}
.days__date {
  margin-bottom: 8px;
  font: 500 13px/1 var(--sans);
  letter-spacing: 0.02em;
  color: var(--teal);
}
.slots {
  border-top: 1px solid var(--line-2);
}
.slot {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 14px 40px;
  align-items: start;
  padding: 30px 0 32px;
  border-bottom: 1px solid var(--line-2);
  transition: background-color 0.35s var(--ease);
}
.slot__time {
  display: grid;
  gap: 6px;
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.slot__time span {
  font: 400 14px/1 var(--num);
  color: var(--muted);
}
.slot__time span::before {
  content: "hasta ";
  font-family: var(--sans);
}
.slot__day {
  margin-bottom: 6px;
  font: 500 13px/1 var(--sans);
  color: var(--teal);
}
.slot__title {
  font: 600 clamp(1.3rem, 1.9vw, 1.65rem) / 1.2 var(--display);
  letter-spacing: -0.006em;
  text-wrap: balance;
  color: var(--b-ink);
}
.slot__detail {
  margin-top: 8px;
  max-width: 70ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
  text-wrap: pretty;
}
.slot__people {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.person-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px 0 5px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  font: 500 13.5px/1 var(--sans);
  color: var(--ink);
  transition:
    box-shadow 0.25s var(--ease),
    transform 0.16s var(--ease-out);
}
.person-chip:active {
  transform: scale(0.97);
}
.slot__state {
  position: absolute;
  top: 10px;
  left: 0;
  display: none;
  align-items: center;
  gap: 8px;
  font: 500 12px/1 var(--sans);
}
.slot.is-now {
  background: linear-gradient(90deg, rgba(179, 204, 35, 0.12), rgba(179, 204, 35, 0));
}
.slot.is-now .slot__state,
.slot.is-next .slot__state {
  display: inline-flex;
}
.slot.is-now .slot__state {
  color: #3e5a0b;
}
.slot.is-now .slot__state::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 2s var(--ease-out) infinite;
}
.slot.is-now .slot__state::after {
  content: "En curso";
}
.slot.is-next .slot__state {
  color: var(--teal);
}
.slot.is-next .slot__state::after {
  content: "Siguiente";
}
.slot.is-now,
.slot.is-next {
  padding-top: 40px;
}
.slot.is-flash {
  animation: flash 2.4s var(--ease);
}
.now {
  margin-bottom: clamp(40px, 5vw, 64px);
}
.now__in {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: calc(var(--r-xl) - var(--bezel));
  background: var(--paper);
  overflow: hidden;
}
.now__col {
  padding: 28px 32px;
}
.now__col + .now__col {
  box-shadow: inset 1px 0 0 var(--line);
}
.now__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 13px/1 var(--sans);
  color: #3e5a0b;
}
.now__label--next {
  color: var(--teal);
}
.now__title {
  margin-top: 12px;
  font: 600 22px/1.25 var(--display);
  color: var(--ink);
}
.now__time {
  margin-top: 8px;
  font: 500 14px/1 var(--num);
  color: var(--muted);
}
.day {
  padding: 24px 0 clamp(56px, 7vw, 96px);
}
.day__head {
  position: sticky;
  top: calc(var(--nav-h) + 22px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0 18px;
  background: linear-gradient(var(--bone) 78%, rgba(241, 244, 248, 0));
}
.day__num {
  font: 500 clamp(3.6rem, 6vw, 5rem) / 0.8 var(--display);
  letter-spacing: -0.006em;
  color: var(--stone);
  font-variant-numeric: lining-nums;
}
.day__title {
  font: 600 clamp(1.6rem, 2.4vw, 2.1rem) / 1.1 var(--display);
  letter-spacing: -0.006em;
}
.day__meta {
  margin-top: 6px;
  font: 400 14px/1 var(--num);
  color: var(--muted);
}
.days__date,
.slot__day {
  color: var(--b-sky);
}
/* ---------- Agenda: más presencia sin perder calma ----------
   Hora grande en azul, línea de tiempo con nodos, ponentes con retrato más grande
   y el número del día como marca de agua. */
.agenda-home {
  background: #edf1f8;
}
.agenda-home .seg {
  background: rgba(11, 31, 77, 0.06);
}
.seg__tab[aria-selected="true"] {
  color: var(--b-ink);
}
.seg__tab[aria-selected="true"] b {
  color: var(--b-strong);
}
.days__panel {
  position: relative;
}
.days__panel[data-day]::before {
  content: attr(data-day);
  position: absolute;
  right: -0.04em;
  top: -0.98em;
  z-index: 0;
  pointer-events: none;
  font: 400 clamp(8rem, 17vw, 15rem) / 1 var(--display);
  letter-spacing: -0.006em;
  font-variant-numeric: lining-nums;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(31, 86, 232, 0.16);
}
.days__panel > * {
  position: relative;
  z-index: 1;
}
.slot__time time {
  font: 400 clamp(2rem, 2.8vw, 2.6rem) / 0.9 var(--display);
  letter-spacing: -0.006em;
  color: var(--b-strong);
  font-variant-numeric: lining-nums tabular-nums;
}
.slot .portrait--chip {
  width: 40px;
  height: 40px;
}
.slot .person-chip {
  height: 50px;
  padding: 0 18px 0 5px;
  font-size: 14px;
}
.agenda-home.has-band .band {
  margin-bottom: clamp(44px, 5vw, 72px);
}
@media (hover: hover) and (pointer: fine) {
  .person-chip:hover {
    box-shadow: inset 0 0 0 1px var(--ink);
  }
  .slot:hover {
    background: linear-gradient(90deg, rgba(31, 86, 232, 0.05), rgba(31, 86, 232, 0));
  }
  .slot:hover::after {
    background: var(--b-strong);
    transform: scale(1.15);
  }
  .slot:hover .slot__title {
    color: var(--b-deep);
  }
}
@media (max-width: 700px) {
  .slot {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 26px 0;
  }
  .slot__time {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }
  .slot .chip-btn {
    justify-self: start;
  }
  .seg {
    display: grid;
    width: 100%;
  }
  .seg__tab {
    min-width: 0;
    flex-direction: column;
    gap: 4px;
    height: 76px;
    padding: 0 8px;
  }
  .seg__tab b {
    font-size: 28px;
  }
  .seg__tab span {
    font-size: 12.5px;
  }
  .now__in {
    grid-template-columns: minmax(0, 1fr);
  }
  .now__col + .now__col {
    box-shadow: inset 0 1px 0 var(--line);
  }
  .day__head {
    top: calc(var(--nav-h) + 16px);
    gap: 16px;
  }
}
@media (hover: none) and (pointer: coarse) {
  .person-chip,
  .seg__tab {
    -webkit-tap-highlight-color: transparent;
  }
}
@media print {
  .day[hidden] {
    display: block !important;
  }
  .slot {
    break-inside: avoid;
  }
}
@media (min-width: 761px) {
  /* línea de tiempo entre la hora y el contenido */
  .slots {
    position: relative;
  }
  .slot::before {
    content: "";
    position: absolute;
    left: 170px;
    top: 0;
    bottom: -1px;
    width: 1px;
    background: linear-gradient(180deg, rgba(31, 86, 232, 0.28), rgba(29, 134, 168, 0.18));
  }
  .slot::after {
    content: "";
    position: absolute;
    left: 165px;
    top: 44px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #edf1f8;
    box-shadow: inset 0 0 0 2px var(--b-strong);
    transition:
      background-color 0.3s var(--ease),
      transform 0.3s var(--ease-out);
  }
  .slot {
    grid-template-columns: 150px minmax(0, 1fr) auto;
    column-gap: 58px;
  }
  .slot.is-now::after {
    background: var(--b-strong);
  }
}
@media (max-width: 760px) {
  .days__panel[data-day]::before {
    font-size: 7rem;
    top: -0.5em;
  }
}
/* ==========================================================================
   18. Chips de filtro
   Filtro por día de la agenda y fila de categorías del directorio (con flechas y bordes que se desvanecen).
   ========================================================================== */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 32px;
}
.filter__chip,
.chips .filter__chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--line-2);
  font: 500 14px/1 var(--sans);
  color: var(--ink-2);
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    transform 0.16s var(--ease-out);
}
.filter__chip b {
  font: 500 12.5px/1 var(--num);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.filter__chip:active {
  transform: scale(0.97);
}
.filter__chip.is-active {
  background: var(--ink);
  color: var(--paper);
  box-shadow: none;
}
.filter__chip.is-active b {
  color: var(--stone);
}
/* Botones de categoría: azul marino de inicio; gris al pasar el mouse */
.chips .filter__chip:not(.is-active) {
  background: var(--ink); /* azul marino #0e1a36 */
  color: #fff;
  box-shadow: none;
}
.chips .filter__chip:not(.is-active) b {
  color: rgba(255, 255, 255, 0.78);
}
.chips .filter__chip:not(.is-active)::before {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}
@media (hover: hover) and (pointer: fine) {
  /* al pasar el mouse: vuelve al estilo gris (sin relleno, con borde fino) */
  .chips .filter__chip:not(.is-active):hover {
    background: transparent;
    color: var(--ink-2);
    box-shadow: inset 0 0 0 1px var(--line-2);
  }
  .chips .filter__chip:not(.is-active):hover b {
    color: var(--muted);
  }
  .chips .filter__chip:not(.is-active):hover::before {
    box-shadow: none;
  }
}
/* El botón elegido se queda gris (igual que al pasar el mouse) */
.chips .filter__chip.is-active {
  background: transparent;
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.chips .filter__chip.is-active b {
  color: var(--muted);
}
.chips .filter__chip.is-active::before {
  background: var(--tone, var(--ink));
}
/* Categorías: fila deslizable con flechas a los lados y bordes que se desvanecen */
.chips-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 20px 0 28px;
}
.chips {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 2px 4px;
  scroll-padding-inline: 48px;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
}
.chips-nav.has-prev .chips {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px);
  mask-image: linear-gradient(90deg, transparent 0, #000 56px);
}
.chips-nav.has-next .chips {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent 100%);
}
.chips-nav.has-prev.has-next .chips {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%);
}
.chips-nav__btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition:
    opacity 0.3s var(--ease),
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.16s var(--ease-out);
}
.chips-nav__btn[hidden] {
  display: grid;
}
.chips-nav__btn .i {
  width: 18px;
  height: 18px;
}
.chips-nav__btn:active {
  transform: scale(0.92);
}
.chips-nav__btn:disabled {
  opacity: 0.28;
  cursor: default;
}
html:not(.js) .chips-nav__btn {
  display: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chips .filter__chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tone, var(--ink));
}
.chips .filter__chip[data-cat-chip=""]::before {
  display: none;
}
.chips .filter__chip.is-active::before {
  background: var(--paper);
}
@media (hover: hover) and (pointer: fine) {
  .filter__chip:not(.is-active):hover {
    box-shadow: inset 0 0 0 1px var(--ink);
    color: var(--ink);
  }
  .chips-nav__btn:not(:disabled):hover {
    background: var(--ink);
    color: var(--paper);
    box-shadow: none;
  }
}
@media (max-width: 700px) {
  .chips-nav {
    gap: 4px;
    margin-left: calc(var(--gutter) * -0.5);
    margin-right: calc(var(--gutter) * -0.5);
  }
  .chips-nav__btn {
    width: 34px;
    height: 34px;
    background: transparent;
    box-shadow: none;
  }
}
@media (hover: none) and (pointer: coarse) {
  .filter__chip {
    -webkit-tap-highlight-color: transparent;
  }
}
/* ==========================================================================
   19. Portada · Expositores
   Cintas de logos y participación por categoría.
   ========================================================================== */
/* Cintas infinitas de logos: dos filas en sentidos opuestos, bordes que se desvanecen,
   logos en gris tinta que toman color al pasar el cursor */
.loops-wrap {
  margin: 0 0 clamp(56px, 7vw, 96px);
}
.loops {
  position: relative;
  display: grid;
  gap: clamp(6px, 1vw, 14px);
  overflow: hidden;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.loop {
  overflow: hidden;
}
.loop__track {
  display: flex;
  width: max-content;
  animation: loop-x var(--dur, 120s) linear infinite;
  will-change: transform;
}
.loop--rev .loop__track {
  animation-direction: reverse;
}
.loop__set {
  display: flex;
  flex: none;
  margin: 0;
  padding: 0;
  list-style: none;
}
.loop__item {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(128px, 12vw, 176px);
  height: clamp(76px, 7vw, 100px);
  border-radius: 16px;
  transition: background-color 0.4s var(--ease-out);
}
.loop__item img {
  max-width: 72%;
  max-height: 54%;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 1;
  transition:
    filter 0.45s var(--ease-out),
    opacity 0.45s var(--ease-out),
    transform 0.6s var(--ease-out);
}
.loop__name {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  font: 500 12px/1.2 var(--sans);
  color: var(--muted);
  opacity: 0;
  translate: 0 4px;
  transition:
    opacity 0.3s var(--ease-out),
    translate 0.3s var(--ease-out);
}
.loop__item:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: -4px;
}
.loop__item:focus-visible img {
  filter: grayscale(1) contrast(1.08);
  opacity: 0.7;
}
.loop__item:focus-visible .loop__name {
  opacity: 1;
  translate: 0 0;
}
.loops:focus-within .loop__track {
  animation-play-state: paused;
}
.cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 64px;
  border-top: 1px solid var(--line-2);
}
.cat {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-2);
  transition:
    color 0.3s var(--ease),
    padding 0.45s var(--ease-out);
  grid-template-rows: auto auto;
  row-gap: 10px;
}
.cats__title {
  margin: clamp(56px, 6vw, 80px) 0 18px;
  font: 600 17px/1.3 var(--sans);
  color: var(--b-sky);
}
.cat__bar {
  grid-column: 2 / 4;
  grid-row: 2;
  height: 4px;
  border-radius: 4px;
  background: rgba(14, 26, 54, 0.06);
  overflow: hidden;
}
.cat__bar i {
  display: block;
  width: calc(var(--share) * 100%);
  height: 100%;
  border-radius: inherit;
  background: var(--tone, var(--navy));
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 1.2s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.no-js .cat__bar i,
li.in .cat__bar i {
  transform: none;
}
.cat::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tone, var(--navy));
}
.cat__name {
  font: 500 17px/1.3 var(--sans);
  color: var(--ink);
}
.cat__count {
  font: 500 15px/1 var(--num);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.cat__arrow {
  color: var(--muted);
  transition:
    transform 0.45s var(--ease-out),
    color 0.3s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .loop:hover .loop__track {
    animation-play-state: paused;
  }
  .loop__item:hover {
    background: rgba(255, 255, 255, 0.7);
  }
  .loop__item:hover img {
    filter: grayscale(1) contrast(1.08);
    opacity: 0.7;
    transform: translateY(-6px) scale(1.05);
  }
  .loop__item:hover .loop__name {
    opacity: 1;
    translate: 0 0;
  }
  .loops:hover .loop__item:not(:hover) img {
    opacity: 0.4;
  }
  .cat:hover {
    padding-left: 12px;
  }
  .cat:hover .cat__arrow {
    transform: translate(3px, -3px);
    color: var(--navy);
  }
}
@media (max-width: 700px) {
  .loops {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  }
  .loop__item {
    width: 116px;
    height: 70px;
  }
  .loop__item img {
    max-width: 78%;
    max-height: 58%;
    opacity: 0.7;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loop {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .loop__track {
    animation: none;
  }
  .loop__set[aria-hidden] {
    display: none;
  }
}
@media (max-width: 1023px) {
  .cats {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (hover: none) and (pointer: coarse) {
  .cat {
    -webkit-tap-highlight-color: transparent;
  }
  .cat:active {
    background: var(--paper);
  }
}
/* ==========================================================================
   20. Sede y mapa
   Foto de la sede, cómo llegar y mapa (MapLibre / Leaflet).
   ========================================================================== */
/* Sede */
.sede {
  position: relative;
  padding-bottom: var(--section);
  background: var(--bone);
}
.sede__stage {
  position: relative;
  height: clamp(520px, 92vh, 920px);
  color: #fff;
}
.sede__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--char);
}
.sede__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
  will-change: transform;
}
.sede__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 23, 54, 0.78) 0%, rgba(10, 23, 54, 0.25) 45%, rgba(10, 23, 54, 0.18) 100%);
}
.motion .sede__media {
  clip-path: inset(var(--sy, 0%) var(--sx, 0%) round var(--sr, 0px));
  will-change: clip-path;
}
.sede__over {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(40px, 7vw, 96px);
  z-index: 2;
}
.sede__title {
  font: 500 clamp(5rem, 15vw, 13rem) / 0.82 var(--display);
  letter-spacing: -0.006em;
  font-weight: 600;
}
.sede__place {
  margin-top: 22px;
  font: 400 clamp(17px, 1.6vw, 21px) / 1.45 var(--sans);
  color: rgba(255, 255, 255, 0.86);
}
/* Retícula de Bootstrap: .row > .col-lg-6 + .col-lg-6 */
.sede__info {
  padding-top: clamp(64px, 8vw, 112px);
}
.sede__info > .row {
  --bs-gutter-x: 96px;
  --bs-gutter-y: 48px;
}
.sede__text {
  display: grid;
  gap: 32px;
  justify-items: start;
  align-content: start;
}
.ways li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line-2);
}
.ways li:last-child {
  border-bottom: 1px solid var(--line-2);
}
.ways .i {
  width: 24px;
  height: 24px;
  color: var(--navy);
}
.ways p {
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
/* Mapa de la sede: consola de navegación sobre mapa vectorial 3D (MapLibre + OpenFreeMap) */
.map {
  --m-bg: #0a1230;
  --m-line: rgba(143, 168, 240, 0.18);
  --m-ink: #e8edff;
  --m-ink-2: #9fb0dc;
  --m-cyan: #5fd4e6;
  --m-blue: #a9bcff;
  margin-top: clamp(56px, 7vw, 88px);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.map__in {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--r-xl) - var(--bezel));
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: 500px;
  background: var(--m-bg);
  isolation: isolate;
  color: var(--m-ink-2);
}
.map__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  filter: blur(10px) saturate(0.6);
  transform: scale(1.04);
  transition:
    opacity 1.2s var(--ease-out),
    filter 1.6s var(--ease-out),
    transform 2s var(--ease-out);
}
.map.is-ready .map__canvas {
  opacity: 1;
  filter: none;
  transform: none;
}
.map__canvas.leaflet-container {
  background: var(--m-bg);
  font-family: var(--sans);
  outline: none;
}
.map__in .map__canvas.maplibregl-map {
  position: absolute;
}
.map__canvas .maplibregl-canvas {
  outline: none;
}
/* respaldo raster: OpenStreetMap llevado a la paleta nocturna */
.map-tiles {
  filter: invert(1) grayscale(1) brightness(1.55) contrast(1.05) sepia(0.7) hue-rotate(185deg) saturate(2.2)
    brightness(0.62);
}
.map__fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  color: var(--m-ink-2);
  font-size: 15.5px;
  line-height: 1.5;
  background:
    linear-gradient(var(--m-line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--m-line) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--m-bg);
}
.map__fallback-icon {
  width: 30px;
  height: 30px;
  color: var(--m-cyan);
}
.map.is-ready .map__fallback {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.8s var(--ease),
    visibility 0s 0.8s;
}
/* HUD: retícula fina, esquinas de visor, barrido y lecturas en vivo */
.map__hud {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.map__hud::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(143, 168, 240, 0.07) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(143, 168, 240, 0.07) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 50%, transparent 35%, #000 85%);
  mask-image: radial-gradient(120% 90% at 50% 50%, transparent 35%, #000 85%);
}
.map__hud::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 120px 20px rgba(6, 10, 30, 0.75);
}
.map__corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 0 solid rgba(169, 188, 255, 0.55);
}
.map__corner--tl {
  left: 14px;
  top: 14px;
  border-left-width: 1.5px;
  border-top-width: 1.5px;
  border-top-left-radius: 6px;
}
.map__corner--tr {
  right: 14px;
  top: 14px;
  border-right-width: 1.5px;
  border-top-width: 1.5px;
  border-top-right-radius: 6px;
}
.map__corner--bl {
  left: 14px;
  bottom: 14px;
  border-left-width: 1.5px;
  border-bottom-width: 1.5px;
  border-bottom-left-radius: 6px;
}
.map__corner--br {
  right: 14px;
  bottom: 14px;
  border-right-width: 1.5px;
  border-bottom-width: 1.5px;
  border-bottom-right-radius: 6px;
}
.map__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 28%;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(95, 212, 230, 0.07) 85%, rgba(95, 212, 230, 0.35) 100%);
  border-bottom: 1px solid rgba(95, 212, 230, 0.45);
}
.motion .map.is-live .map__scan {
  animation: map-scan 7s cubic-bezier(0.45, 0, 0.55, 1) 0.4s infinite;
}
.map__readout {
  position: absolute;
  display: flex;
  align-items: baseline;
  gap: 6px 10px;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(10, 18, 48, 0.72);
  box-shadow: inset 0 0 0 1px var(--m-line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font: 500 11px/1 var(--num);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(159, 176, 220, 0.75);
}
.map__readout b {
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--m-ink);
  font-variant-numeric: tabular-nums;
  text-transform: none;
  margin-right: 6px;
}
.map__readout b:last-child {
  margin-right: 0;
}
.map__readout--coords {
  left: 50%;
  bottom: 18px;
  translate: -50% 0;
}
.map__readout--cam {
  right: 74px;
  top: 22px;
}
/* Ficha: vidrio oscuro */
.map__card {
  position: absolute;
  z-index: 3;
  left: 22px;
  top: 22px;
  width: min(370px, calc(100% - 44px));
  padding: 24px;
  border-radius: 22px;
  background: rgba(10, 18, 48, 0.74);
  color: var(--m-ink-2);
  -webkit-backdrop-filter: saturate(1.3) blur(18px);
  backdrop-filter: saturate(1.3) blur(18px);
  box-shadow:
    inset 0 0 0 1px rgba(169, 188, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.map__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.04em;
  color: var(--m-cyan);
}
.map__live i {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--m-cyan);
  box-shadow: 0 0 0 0 rgba(95, 212, 230, 0.6);
}
.motion .map__live i {
  animation: map-live 2.2s var(--ease-out) infinite;
}
.map__name {
  font: 600 clamp(1.3rem, 1.8vw, 1.55rem) / 1.15 var(--display);
  letter-spacing: -0.006em;
  color: var(--m-ink);
}
.map__addr {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--m-ink-2);
}
.map__data {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--m-line);
}
.map__data div {
  display: grid;
  gap: 4px;
}
.map__data dt {
  font: 500 12px/1.2 var(--sans);
  color: rgba(159, 176, 220, 0.8);
}
.map__data dd {
  margin: 0;
  font: 600 17px/1.2 var(--sans);
  color: var(--m-ink);
  font-variant-numeric: tabular-nums;
}
.map__data dd small {
  font-weight: 400;
  font-size: 13px;
  color: var(--m-ink-2);
}
.map__mono {
  font-size: 14.5px !important;
  letter-spacing: 0.02em;
}
.map__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 20px;
}
.map__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 15px/1.2 var(--sans);
  color: var(--m-ink);
  text-decoration: underline;
  text-decoration-color: rgba(232, 237, 255, 0.3);
  text-underline-offset: 5px;
  transition: text-decoration-color 0.25s;
}
.map__link .i {
  width: 16px;
  height: 16px;
}
.map__ctrl {
  position: absolute;
  z-index: 3;
  right: 20px;
  top: 20px;
  display: grid;
  gap: 8px;
}
.map__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  background: rgba(10, 18, 48, 0.74);
  color: var(--m-ink);
  box-shadow: inset 0 0 0 1px rgba(169, 188, 255, 0.2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font: 700 12.5px/1 var(--num);
  letter-spacing: 0.04em;
  transition:
    background-color 0.25s,
    box-shadow 0.25s,
    transform 0.16s var(--ease-out);
}
.map__btn .i {
  width: 18px;
  height: 18px;
}
.map__btn:active {
  transform: scale(0.94);
}
.map__btn[aria-pressed="true"] {
  background: rgba(95, 212, 230, 0.16);
  box-shadow: inset 0 0 0 1px rgba(95, 212, 230, 0.6);
  color: var(--m-cyan);
}
.map__btn[hidden] {
  display: none;
}
.map__btn:focus-visible {
  outline: 2px solid var(--m-cyan);
  outline-offset: 2px;
}
/* Marcadores */
.map-radar {
  position: relative;
  width: 22px;
  height: 22px;
}
.map-radar__dot {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 3px var(--m-cyan, #5fd4e6),
    0 0 18px 4px rgba(95, 212, 230, 0.8);
}
.map-radar__ring {
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1.5px solid rgba(95, 212, 230, 0.7);
  opacity: 0;
}
.motion .map-radar__ring {
  animation: map-ring 3s var(--ease-out) infinite;
}
.motion .map-radar__ring + .map-radar__ring {
  animation-delay: 1.5s;
}
.map-radar__sweep {
  position: absolute;
  inset: -46px;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(from 0deg, rgba(95, 212, 230, 0.32), transparent 22%);
  -webkit-mask-image: radial-gradient(circle, #000 0 64%, transparent 66%);
  mask-image: radial-gradient(circle, #000 0 64%, transparent 66%);
}
.motion .map-radar__sweep {
  animation: map-sweep 4s linear infinite;
}
.map-metro {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #0a1230;
  color: var(--m-cyan, #5fd4e6);
  font: 700 13px/1 var(--sans);
  box-shadow:
    inset 0 0 0 1.5px currentColor,
    0 0 16px rgba(95, 212, 230, 0.45);
}
.map-tag {
  padding: 8px 13px;
  border-radius: 10px;
  background: rgba(232, 237, 255, 0.95);
  color: #0a1230;
  font: 600 13px/1 var(--sans);
  white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.7);
}
.map-tag--metro {
  background: rgba(10, 18, 48, 0.85);
  color: var(--m-ink, #e8edff);
  box-shadow: inset 0 0 0 1px rgba(169, 188, 255, 0.3);
}
.map-km {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 7px 11px;
  border-radius: 10px;
  opacity: 0;
  translate: 0 6px;
  background: rgba(10, 18, 48, 0.86);
  box-shadow:
    inset 0 0 0 1px rgba(95, 212, 230, 0.5),
    0 0 24px rgba(95, 212, 230, 0.25);
  transition:
    opacity 0.6s var(--ease-out),
    translate 0.6s var(--ease-out);
}
.map-km b {
  font: 700 15px/1 var(--num);
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.map-km span {
  font: 500 10.5px/1 var(--sans);
  letter-spacing: 0.05em;
  color: var(--m-cyan, #5fd4e6);
}
.map.is-arc .map-km {
  opacity: 1;
  translate: 0 0;
}
.map__in .leaflet-div-icon {
  background: none;
  border: 0;
}
.map__in .leaflet-tooltip {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.map__in .leaflet-tooltip::before {
  display: none;
}
.map__in .maplibregl-ctrl-attrib,
.map__in .leaflet-control-attribution {
  margin: 0 12px 10px 0 !important;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10, 18, 48, 0.78) !important;
  font: 400 11px/1.4 var(--sans);
  color: var(--m-ink-2);
}
.map__in .maplibregl-ctrl-attrib a,
.map__in .leaflet-control-attribution a {
  color: var(--m-ink);
}
.map__in .maplibregl-ctrl-attrib-button {
  filter: invert(1);
}
.map__in .maplibregl-cooperative-gesture-screen {
  background: rgba(6, 10, 30, 0.6);
  font: 500 16px/1.4 var(--sans);
  color: #fff;
  z-index: 4;
}
.sede__text p,
.ways p {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
  text-wrap: pretty;
}
@media (hover: hover) and (pointer: fine) {
  .map__link:hover {
    text-decoration-color: currentColor;
  }
  .map__btn:hover {
    box-shadow: inset 0 0 0 1px rgba(169, 188, 255, 0.5);
  }
}
@media (max-width: 1023px) {
  .sede__info {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  .map__in {
    aspect-ratio: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .map__canvas,
  .map__fallback,
  .map__in .map__canvas.maplibregl-map {
    position: relative;
    inset: auto;
    height: 420px;
    flex: none;
  }
  .map__fallback {
    position: absolute;
    inset: 0 0 auto 0;
  }
  .map__hud {
    bottom: auto;
    height: 420px;
  }
  .map__readout--cam {
    display: none;
  }
  .map__readout--coords {
    left: 14px;
    top: 14px;
    bottom: auto;
    translate: none;
    white-space: nowrap;
  }
  .map__card {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    border-radius: 0;
    background: #0c1538;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: inset 0 1px 0 rgba(169, 188, 255, 0.16);
  }
  .map__ctrl {
    top: 14px;
    right: 14px;
  }
  .map__btn {
    width: 42px;
    height: 42px;
  }
}
@media (max-width: 991.98px) {
  .sede__info > .row {
    --bs-gutter-x: min(56px, calc(var(--gutter) * 2));
  }
}
/* ==========================================================================
   21. Plano del piso
   Plano 2D con zonas y simulación 3D (js/plano-3d.js).
   ========================================================================== */
/* Plano del piso: hoja de dibujo sobre retícula, zonas señaladas desde la leyenda, clic para acercar */
.plano {
  padding-top: var(--section);
  padding-bottom: clamp(40px, 6vw, 80px);
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
/* Retícula de Bootstrap: .row.align-items-end > .col-lg-6 + .col-lg-6 */
.plano__head {
  --bs-gutter-x: 64px;
  --bs-gutter-y: 24px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.plano__lead {
  max-width: 52ch;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-2);
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
  text-wrap: pretty;
}
.plano__in {
  position: relative;
  overflow: hidden;
  border-radius: calc(40px - 8px);
  padding: clamp(18px, 3vw, 40px);
  background-color: var(--paper);
  background-image: linear-gradient(rgba(12, 37, 112, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 37, 112, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(12, 37, 112, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 37, 112, 0.028) 1px, transparent 1px);
  background-size:
    96px 96px,
    96px 96px,
    24px 24px,
    24px 24px;
  background-position: -1px -1px;
  cursor: default;
}
.plano__sheet {
  position: relative;
  aspect-ratio: 2820 / 1538;
  transform-origin: var(--zx, 50%) var(--zy, 50%);
  transition: transform 0.6s var(--ease-out);
}
.plano__sheet img {
  display: block;
  width: 100%;
  height: 100%;
  transition: opacity 0.35s;
}
.plano__scale {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(251, 252, 254, 0.9);
  box-shadow: inset 0 0 0 1px var(--line);
  font: 500 12.5px/1 var(--sans);
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.plano__zone {
  --zc: var(--navy);
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  border-radius: 4px;
  pointer-events: none;
  box-shadow: 0 0 0 0 transparent;
  background: transparent;
  transition:
    background-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}
.plano__zone--pitch {
  --zc: #a12f8c;
}
.plano__zone--bootcamp {
  --zc: var(--teal);
}
.plano__zone--accesos {
  --zc: #2e8b57;
}
.plano__zone--servicios {
  --zc: var(--bronze);
}
.plano__zone i {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  translate: -50% 4px;
  white-space: nowrap;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--zc);
  color: #fff;
  font: 600 11.5px/1 var(--sans);
  font-style: normal;
  opacity: 0;
  transition:
    opacity 0.25s,
    translate 0.35s var(--ease-out);
}
.plano__zone--servicios:last-child i,
.plano__zone--edge i {
  left: auto;
  right: 0;
  translate: 0 4px;
}
[data-active="bootcamp"] .plano__zone--bootcamp,
[data-active="pitch"] .plano__zone--pitch,
[data-active="area"] .plano__zone--area,
[data-active="accesos"] .plano__zone--accesos,
[data-active="servicios"] .plano__zone--servicios {
  background: color-mix(in srgb, var(--zc) 16%, transparent);
  box-shadow:
    0 0 0 2px var(--zc),
    0 8px 24px -10px var(--zc);
}
[data-active="bootcamp"] .plano__zone--bootcamp i,
[data-active="pitch"] .plano__zone--pitch i,
[data-active="area"] .plano__zone--area i,
[data-active="accesos"] .plano__zone--accesos i,
[data-active="servicios"] .plano__zone--servicios i {
  opacity: 1;
  translate: -50% 0;
}
[data-active="servicios"] .plano__zone--servicios:last-child i,
[data-active="servicios"] .plano__zone--edge i {
  translate: 0 0;
}
.plano__in[data-active] .plano__sheet img {
  opacity: 0.55;
  transition: opacity 0.35s;
}
.plano__cap {
  display: grid;
  gap: 14px;
  padding: 18px 18px 10px;
  font-size: 14px;
  color: var(--muted);
}
.plano__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.plano__key {
  --zc: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--ink-2);
  font: 500 13.5px/1 var(--sans);
  cursor: pointer;
  transition:
    background-color 0.25s,
    border-color 0.25s,
    color 0.25s,
    transform 0.16s var(--ease-out);
}
.plano__key:active {
  transform: scale(0.97);
}
.plano__key i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 2px var(--zc);
}
.plano__key--pitch {
  --zc: #a12f8c;
}
.plano__key--bootcamp {
  --zc: var(--teal);
}
.plano__key--accesos {
  --zc: #2e8b57;
}
.plano__key--servicios {
  --zc: var(--bronze);
}
.plano__key[aria-pressed="true"] {
  background: var(--zc);
  border-color: var(--zc);
  color: #fff;
}
.plano__key[aria-pressed="true"] i {
  box-shadow: inset 0 0 0 2px #fff;
}
.plano__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 24px;
}
.plano__canvas,
.plano__labels,
.plano__tools,
.plano__drag {
  display: none;
}
.plano__in.is-3d {
  padding: 0;
  aspect-ratio: 16 / 9;
  cursor: grab;
  overflow: hidden;
  background: radial-gradient(90% 80% at 50% 30%, #f7f9fc 0%, #e3e8f0 100%);
}
.plano__in.is-3d.is-grabbing {
  cursor: grabbing;
}
.plano__in.is-3d .plano__sheet,
.plano__in.is-3d .plano__scale {
  display: none;
}
.plano__in.is-3d .plano__canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}
.plano__in.is-3d .plano__labels {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.plano__tag {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: -15px 0 0;
  padding: 6px 11px 6px 9px;
  border-radius: 999px;
  translate: -50% -100%;
  white-space: nowrap;
  background: rgba(251, 252, 254, 0.92);
  color: var(--ink-2);
  font: 600 12.5px/1 var(--sans);
  box-shadow:
    inset 0 0 0 1px rgba(14, 26, 54, 0.08),
    0 8px 18px -10px rgba(30, 42, 66, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition:
    opacity 0.3s,
    background-color 0.3s,
    color 0.3s,
    scale 0.3s var(--ease-out);
}
.plano__tag i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--zc);
}
.plano__tag--bootcamp {
  --zc: var(--teal);
}
.plano__tag--pitch {
  --zc: #a12f8c;
}
.plano__tag--area {
  --zc: var(--navy);
}
.plano__tag--accesos {
  --zc: #2e8b57;
}
.plano__tag--servicios {
  --zc: var(--bronze);
}
.plano__in.has-focus .plano__tag:not(.is-on) {
  opacity: 0.35 !important;
}
.plano__tag.is-on {
  background: var(--zc);
  color: #fff;
  scale: 1.08;
}
.plano__tag.is-on i {
  background: #fff;
}
.plano__in.is-3d .plano__tools:not([hidden]) {
  display: flex;
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  align-items: center;
  gap: 8px;
}
.plano__seg {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(251, 252, 254, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(14, 26, 54, 0.08),
    0 8px 20px -14px rgba(30, 42, 66, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.plano__view {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 600 13px/1 var(--sans);
  cursor: pointer;
  transition:
    background-color 0.25s,
    color 0.25s;
}
.plano__view.is-on {
  background: var(--ink);
  color: #fff;
}
.plano__btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  background: rgba(251, 252, 254, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(14, 26, 54, 0.08),
    0 8px 20px -14px rgba(30, 42, 66, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition:
    background-color 0.2s,
    transform 0.16s var(--ease-out);
}
.plano__btn .i {
  width: 18px;
  height: 18px;
}
.plano__btn[aria-pressed="false"] {
  color: var(--stone-2);
}
.plano__btn:active,
.plano__view:active {
  transform: scale(0.95);
}
.plano__btn:focus-visible,
.plano__view:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.plano__in.is-3d .plano__drag:not([hidden]) {
  display: inline-flex;
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 14px;
  align-items: center;
  gap: 10px;
  margin: 0;
  font: 500 12.5px/1 var(--sans);
  color: var(--muted);
  pointer-events: none;
}
.plano__drag span {
  position: relative;
  width: 30px;
  height: 2px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(14, 26, 54, 0.14);
}
.plano__drag span::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 2px;
  background: var(--ink-2);
  animation: eco-hand 2.4s var(--ease-io) infinite;
}
.plano__frame:has(.plano__in.is-3d) .plano__hint {
  display: none;
}
.plano__hint {
  display: none;
}
.plano__zone--actividades,
.plano__key--actividades,
.plano__tag--actividades {
  --zc: #1f56e8;
}
.plano__zone--reto,
.plano__key--reto,
.plano__tag--reto {
  --zc: var(--navy);
}
.plano__zone--pg,
.plano__key--pg,
.plano__tag--pg {
  --zc: #b4442f;
}
.plano__zone--piso2,
.plano__key--piso2,
.plano__tag--piso2 {
  --zc: #5a4bb0;
}
[data-active="actividades"] .plano__zone--actividades,
[data-active="reto"] .plano__zone--reto,
[data-active="pg"] .plano__zone--pg,
[data-active="piso2"] .plano__zone--piso2 {
  background: color-mix(in srgb, var(--zc) 16%, transparent);
  box-shadow:
    0 0 0 2px var(--zc),
    0 8px 24px -10px var(--zc);
}
[data-active="actividades"] .plano__zone--actividades i,
[data-active="reto"] .plano__zone--reto i,
[data-active="pg"] .plano__zone--pg i,
[data-active="piso2"] .plano__zone--piso2 i {
  opacity: 1;
  translate: -50% 0;
}
@media (hover: hover) {
  .plano__key:hover {
    border-color: var(--zc);
    color: var(--ink);
  }
}
@media (hover: hover) and (pointer: fine) {
  .plano__btn:hover {
    background: #fff;
  }
  .plano__view:not(.is-on):hover {
    color: var(--ink);
  }
}
@media (max-width: 700px) {
  .plano__in {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
  }
  .plano__in.is-3d {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    padding: 0;
  }
  .plano__in.is-3d .plano__tools:not([hidden]) {
    top: 10px;
    right: 10px;
    gap: 6px;
  }
  .plano__btn {
    width: 38px;
    height: 38px;
  }
  .plano__view {
    height: 30px;
    padding: 0 11px;
  }
  .plano__tag {
    font-size: 11.5px;
    padding: 5px 9px 5px 8px;
  }
  .plano__sheet {
    width: 900px;
  }
  .plano__scale {
    position: sticky;
    left: 0;
    bottom: auto;
    display: inline-block;
    margin-top: 10px;
  }
  .plano__hint {
    display: block;
    flex-basis: 100%;
    color: var(--ink-2);
  }
}
@media (max-width: 991.98px) {
  .plano__head {
    --bs-gutter-x: min(56px, calc(var(--gutter) * 2));
  }
}
/* ==========================================================================
   22. Páginas interiores
   Cabecera de página, regreso, mapa del sitio y página 404.
   ========================================================================== */
/* Retícula de Bootstrap: .row.row-cols-1.row-cols-md-2.row-cols-lg-3 */
.sitemap {
  --bs-gutter-x: 56px;
  --bs-gutter-y: 48px;
  padding-bottom: var(--section);
}
.sitemap__title {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
  font: 500 1.7rem/1.1 var(--display);
  letter-spacing: -0.006em;
  color: var(--ink);
}
.sitemap a {
  display: grid;
  gap: 3px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.sitemap a span {
  font: 500 16px/1.3 var(--sans);
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.sitemap a small {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--muted);
}
.interior {
  padding-top: calc(var(--hdr-full) + 14px);
}
/* Franja de título azul para páginas interiores (convocatorias.php):
   degradado marino → azul del ∞, rayas diagonales finas y una línea de acento verde azulado */
.interior--hero {
  padding-top: var(--hdr-full);
}
.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: clamp(48px, 6vw, 80px);
  padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 80px);
  color: #eef2fb;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 2px, transparent 2px 26px),
    linear-gradient(100deg, #0b1f4d 0%, #142f7a 55%, #1f56e8 130%);
  box-shadow: inset 0 -3px 0 rgba(94, 240, 160, 0.55);
}
.page-hero__title {
  max-width: 18ch;
  margin: 0;
  font: 600 clamp(2.6rem, 6vw, 5.2rem) / 0.98 var(--display);
  letter-spacing: -0.006em;
  color: #fff;
  text-wrap: balance;
}
.page-hero__rule {
  display: block;
  width: 96px;
  height: 4px;
  margin: clamp(18px, 2vw, 26px) 0 clamp(20px, 2.4vw, 30px);
  border-radius: 4px;
  background: linear-gradient(90deg, #1d86a8, #5ef0a0);
}
.page-hero__lead {
  max-width: 62ch;
  margin: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: rgba(234, 241, 255, 0.86);
}
/* plano.php: el plano empieza poco después de la franja de título */
.page-hero + .plano,
/* Sede: la foto trae el escudo UNAM a la izquierda. La franja es más alta y el texto
   baja (queda abajo, alineado a la izquierda) para que el escudo se vea completo encima. */
.sede-hero .band {
  min-height: clamp(330px, 25vw, 480px);
}
.sede-hero .band__img {
  object-position: 50% 47% !important; /* el escudo queda arriba, sin espacio vacío encima */
}
@media (min-width: 768px) {
  .sede-hero .band__in {
    padding-top: 24px;
    padding-bottom: 26px;
  }
}
@media (max-width: 767.98px) {
  .sede-hero .band {
    min-height: 300px;
  }
  .sede-hero .band__img {
    object-position: 22% 30% !important;
  }
  .sede-hero .band__in {
    padding-top: 150px;
  }
}
.expo-hero + .sede {
  padding-top: 0;
}
.expo-hero + .plano {
  padding-top: 0;
}
/* convocatorias.php: título con franja de foto oscura (como la agenda) */
.expo-hero {
  margin-bottom: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.expo-hero .split-head__text {
  margin-top: clamp(28px, 3vw, 40px);
  max-width: 70ch;
}
/* eventos.php: la sección azul de la agenda empieza justo bajo el encabezado */
.interior--agenda {
  padding-top: var(--hdr-full);
  background: #0a1736;
}
.page-head {
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
  height: 38px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-2);
  font: 500 13.5px/1 var(--sans);
  color: var(--ink-2);
  transition:
    box-shadow 0.25s var(--ease),
    transform 0.16s var(--ease-out);
}
.back .i {
  width: 16px;
  height: 16px;
}
.back:active {
  transform: scale(0.97);
}
.page-head__title {
  max-width: 16ch;
  font: 500 clamp(2.9rem, 6.6vw, 5.8rem) / 0.98 var(--display);
  letter-spacing: -0.006em;
  text-wrap: balance;
  color: var(--b-ink);
  font-weight: 600;
}
.page-head__lead {
  max-width: 60ch;
  margin-top: 24px;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
  text-wrap: pretty;
}
.page-head__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}
.lost {
  min-height: 80vh;
  display: grid;
  align-items: center;
}
.lost__in {
  padding-top: 40px;
  padding-bottom: 80px;
}
.lost__code {
  font: italic 500 clamp(7rem, 20vw, 16rem) / 0.8 var(--display);
  letter-spacing: -0.006em;
  color: var(--sand-2);
  margin-bottom: 24px;
}
.page-head__title em {
  color: var(--accent-ink);
  font-style: normal;
}
@media (hover: hover) and (pointer: fine) {
  .sitemap a:hover span {
    color: var(--navy);
  }
  .back:hover {
    box-shadow: inset 0 0 0 1px var(--ink);
  }
}
@media (max-width: 767.98px) {
  .sitemap {
    --bs-gutter-y: 36px;
  }
}
@media print {
  .back {
    display: none !important;
  }
}
@media (max-width: 991.98px) {
  .sitemap {
    --bs-gutter-x: min(56px, calc(var(--gutter) * 2));
  }
}
/* ==========================================================================
   23. Perfil de conferencista
   Retrato fijo, sesión, semblanza y navegación (row > col-lg-5 + col-lg-7).
   ========================================================================== */
.profile {
  padding-top: clamp(48px, 6vw, 88px);
}
/* Retícula de Bootstrap: .row.align-items-start > .col-lg-5 (retrato fijo) + .col-lg-7 */
.profile__grid {
  --bs-gutter-x: clamp(48px, 7vw, 112px);
  --bs-gutter-y: 48px;
}
.profile__media {
  position: sticky;
  top: calc(var(--nav-h) + 48px);
  perspective: 1200px;
}
.profile__name {
  font: 500 clamp(2.8rem, 6vw, 5.4rem) / 0.98 var(--display);
  letter-spacing: -0.006em;
}
.profile__role {
  margin-top: 18px;
  max-width: 46ch;
  font: 400 clamp(18px, 1.6vw, 21px) / 1.45 var(--sans);
  color: var(--ink-2);
}
.session-card {
  margin-top: 40px;
  border-radius: 28px;
}
.session-card__in {
  padding: 28px;
  border-radius: calc(28px - var(--bezel));
  background: var(--paper);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.session-card__when {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 13.5px/1.3 var(--num);
  color: var(--teal);
}
.session-card__title {
  margin-top: 14px;
  font: 600 clamp(1.5rem, 2.3vw, 2rem) / 1.15 var(--display);
  letter-spacing: -0.006em;
  color: var(--ink);
}
.session-card__room {
  margin-top: 10px;
  font-size: 15.5px;
  color: var(--muted);
}
.session-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 24px;
}
.bio {
  margin-top: 56px;
  max-width: 64ch;
}
.bio__title {
  margin-bottom: 18px;
  font: 500 13px/1 var(--sans);
  letter-spacing: 0.02em;
  color: var(--muted);
}
.bio p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-2);
}
.bio p + p {
  margin-top: 18px;
}
.bio__empty {
  padding: 22px 24px;
  border-radius: var(--r-md);
  background: var(--sand);
  color: var(--muted) !important;
  font-size: 16px !important;
}
.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(72px, 9vw, 128px);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.pager__link {
  display: grid;
  gap: 10px;
  padding: 28px 4px;
  transition: background-color 0.3s var(--ease);
}
.pager__link--next {
  text-align: right;
  justify-items: end;
  box-shadow: inset 1px 0 0 var(--line-2);
  padding-right: 4px;
  padding-left: 24px;
}
.pager__dir {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 13px/1 var(--sans);
  color: var(--muted);
}
.pager__dir .i {
  width: 16px;
  height: 16px;
}
.pager__name {
  font: 600 clamp(1.4rem, 2.4vw, 2rem) / 1.1 var(--display);
  letter-spacing: -0.006em;
  color: var(--ink);
}
.profile__body p {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
  text-wrap: pretty;
}
@media (max-width: 991.98px) {
  .profile__media {
    max-width: 420px;
  }
  .profile__grid {
    --bs-gutter-x: min(56px, calc(var(--gutter) * 2));
  }
}
@media (hover: hover) and (pointer: fine) {
  .pager__link:hover .pager__name {
    color: var(--navy);
  }
}
@media (max-width: 700px) {
  .pager {
    grid-template-columns: minmax(0, 1fr);
  }
  .pager__link--next {
    box-shadow: inset 0 1px 0 var(--line-2);
    padding-left: 4px;
  }
}
/* ==========================================================================
   24. Directorio de expositores
   Formulario, categorías, tarjetas, patrocinadores y ficha (offcanvas de Bootstrap).
   ========================================================================== */
.select .form-select {
  line-height: inherit;
}
/* Retícula de Bootstrap: .row > .col-lg (búsqueda) + .col-lg-4 (categoría) + .col-auto (Filtrar) */
.tools {
  --bs-gutter-x: 12px;
  --bs-gutter-y: 12px;
  align-items: center;
}
.select {
  position: relative;
  display: block;
}
.select select {
  width: 100%;
  height: 60px;
  padding: 0 52px 0 22px;
  border-radius: 999px;
  border: 0;
  outline: none;
  cursor: pointer;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  text-overflow: ellipsis;
  box-shadow: inset 0 0 0 1px var(--line-2);
  -webkit-appearance: none;
  appearance: none;
}
.select select:focus {
  box-shadow:
    inset 0 0 0 1.5px var(--navy),
    0 0 0 5px rgba(12, 37, 112, 0.1);
}
.select .i {
  position: absolute;
  right: 22px;
  top: 50%;
  margin-top: -9px;
  pointer-events: none;
  color: var(--muted);
}
.js .tools__submit {
  display: none;
}
/* Tarjetas agrupadas: quién está en cada stand (zonas de ANFECA, artesanos FONART…) */
.ex__members {
  margin: 14px 0 4px;
}
.ex__members summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  font: 600 13.5px/1.3 var(--sans);
  color: var(--navy);
}
.ex__members summary::-webkit-details-marker {
  display: none;
}
.ex__members summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease-out);
}
.ex__members[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}
.ex__members-list {
  display: grid;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.ex__members-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.35;
}
.ex__mlabel {
  font-weight: 600;
  color: var(--ink);
}
.ex__mstand {
  flex: none;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.drawer__members {
  margin-top: 18px;
}
.drawer__members .ex__members-list {
  max-height: none;
}
.directory__count {
  margin-bottom: 24px;
  font: 500 14px/1 var(--num);
  color: var(--muted);
}
.ex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}
.ex {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 22px;
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow:
    inset 0 0 0 1px var(--line),
    var(--sh-1);
  transition:
    box-shadow 0.35s var(--ease),
    transform 0.5s var(--ease-out);
}
.ex.is-entering {
  animation: ex-in 0.7s var(--ease-out) both;
  animation-delay: calc(var(--k, 0) * 35ms);
}
.ex__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.ex__num {
  font: 500 14px/1 var(--num);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ex__cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 12.5px/1.3 var(--sans);
  color: var(--ink-2);
  text-align: right;
}
.ex__cat::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tone);
}
.ex__name {
  font: 600 21px/1.2 var(--display);
  letter-spacing: -0.006em;
  color: var(--ink);
}
.ex__desc {
  margin-top: 10px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
}
.js .ex__desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.ex__more {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  align-self: flex-start;
  font: 500 14px/1 var(--sans);
  color: var(--navy);
}
.js .ex__more {
  display: inline-flex;
}
.ex__more .i {
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--ease-out);
}
/* Logotipo del expositor: placa blanca, el logo nunca se deforma */
.ex__logo {
  display: grid;
  place-items: center;
  height: 112px;
  margin: -10px -10px 20px;
  padding: 14px 18px;
  border-radius: calc(var(--r-lg) - 10px);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.ex__logo img {
  max-width: 100%;
  max-height: 84px;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* Patrocinadores: aro bronce, sello y franja superior */
.ex--sponsor {
  position: relative;
  background: linear-gradient(180deg, rgba(120, 140, 170, 0.09), transparent 120px), var(--paper);
  box-shadow:
    inset 0 0 0 1px rgba(120, 140, 170, 0.45),
    var(--sh-1);
}
.ex--sponsor::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, transparent, var(--bronze), transparent);
}
.ex__badge,
.drawer__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin: -8px 0 12px;
  padding: 5px 11px 5px 8px;
  border-radius: 999px;
  background: rgba(120, 140, 170, 0.14);
  color: #3f5275;
  font: 600 12.5px/1 var(--sans);
  letter-spacing: 0.01em;
}
.ex__badge .i,
.drawer__badge .i {
  width: 15px;
  height: 15px;
}
.drawer__badge {
  margin: 0 0 14px;
}
.drawer__logo {
  display: grid;
  place-items: center;
  height: 150px;
  margin: -6px 0 26px;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.drawer__logo[hidden],
.drawer__badge[hidden] {
  display: none;
}
.drawer__logo img {
  max-width: 100%;
  max-height: 114px;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* Muro de patrocinadores sobre el directorio */
.sponsors {
  margin-bottom: clamp(40px, 5vw, 64px);
}
.sponsors__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 18px;
}
.sponsors__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 clamp(1.35rem, 2.2vw, 1.7rem) / 1.15 var(--display);
  color: #12675d; /* verde de la línea animada */
}
.sponsors__title .i {
  width: 24px;
  height: 24px;
  color: #12675d;
}
.sponsors__note {
  font-size: 15px;
  color: var(--muted);
}
.sponsors__wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sponsor {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  height: 100%;
  min-height: 128px;
  padding: 18px 16px 16px;
  border-radius: 20px;
  text-align: center;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(120, 140, 170, 0.35);
  transition:
    box-shadow 0.3s var(--ease),
    transform 0.45s var(--ease-out);
}
.sponsor::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(120, 140, 170, 0.16) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%;
  background-position: 120% 0;
  transition: background-position 0.9s var(--ease-out);
}
.sponsor img {
  max-width: 100%;
  max-height: 62px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.sponsor__name {
  font: 600 19px/1.15 var(--display);
  letter-spacing: -0.006em;
  color: var(--ink);
  text-wrap: balance;
}
.sponsor small {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--muted);
  text-wrap: balance;
}
.sponsor:active {
  transform: scale(0.98);
}
/* Invitados especiales: mismo muro, en teal (los patrocinadores van en bronce) */
.sponsors--guest {
  --guest: var(--teal);
}
.sponsors--guest .sponsors__title .i {
  color: var(--guest);
}
.sponsor--guest {
  box-shadow: inset 0 0 0 1px rgba(6, 111, 135, 0.3);
}
.sponsor--guest::after {
  background-image: linear-gradient(115deg, transparent 35%, rgba(6, 111, 135, 0.14) 50%, transparent 65%);
}
.ex--guest {
  position: relative;
  background: linear-gradient(180deg, rgba(6, 111, 135, 0.07), transparent 120px), var(--paper);
  box-shadow:
    inset 0 0 0 1px rgba(6, 111, 135, 0.35),
    var(--sh-1);
}
.ex--guest::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
}
.ex__badge--guest,
.drawer__badge--guest {
  background: rgba(6, 111, 135, 0.12);
  color: #04586b;
}
@media (hover: hover) and (pointer: fine) {
  .sponsor.sponsor--guest:hover,
  .ex.ex--guest:hover {
    box-shadow:
      inset 0 0 0 1px var(--teal),
      var(--sh-2);
  }
}
/* Panel de Bootstrap (.offcanvas.offcanvas-end) con la hoja flotante del Foro; en el teléfono, hoja inferior */
body.drawer-open .offcanvas-backdrop {
  background: rgba(10, 23, 54, 0.38);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: opacity 0.4s var(--ease-out);
}
body.drawer-open .offcanvas-backdrop.show {
  opacity: 1;
}
.offcanvas.drawer {
  top: 12px;
  right: 12px;
  bottom: auto;
  height: auto;
  display: block;
  width: min(520px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px 32px 36px;
  border: 0;
  border-radius: 28px;
  color: var(--ink);
  background: var(--paper);
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 40px 100px -30px rgba(10, 23, 54, 0.5);
  transform: translateX(calc(100% + 24px));
  transition: transform 0.5s var(--ease-drawer);
}
.offcanvas.drawer.showing,
.offcanvas.drawer.show:not(.hiding) {
  transform: none;
}
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}
.drawer__num {
  font: 500 15px/1 var(--num);
  color: var(--muted);
}
.drawer__cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 13px/1.3 var(--sans);
  color: var(--ink-2);
}
.drawer__cat::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tone, var(--navy));
}
.drawer__title {
  margin-top: 14px;
  font: 600 clamp(2rem, 4vw, 2.8rem) / 1.05 var(--display);
  letter-spacing: -0.006em;
  color: var(--ink);
}
.drawer__desc {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
}
.drawer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 36px;
}
.drawer__toast {
  min-height: 20px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--teal);
}
.ex__desc,
.drawer__desc,
.sponsors__note {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
  text-wrap: pretty;
}
@media (hover: hover) and (pointer: fine) {
  .ex:hover {
    transform: translateY(-3px);
    box-shadow:
      inset 0 0 0 1px var(--line-2),
      var(--sh-2);
  }
  .ex__more:hover .i {
    transform: translateX(3px);
  }
  .ex--sponsor:hover {
    box-shadow:
      inset 0 0 0 1px var(--bronze),
      var(--sh-2);
  }
  .sponsor:hover {
    transform: translateY(-3px);
    box-shadow:
      inset 0 0 0 1px var(--bronze),
      var(--sh-2);
  }
  .sponsor:hover::after {
    background-position: -20% 0;
  }
}
@media (max-width: 700px) {
  .sponsors__wall {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 62%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    margin: 0 calc(var(--gutter) * -1);
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    scroll-padding: 0 var(--gutter);
  }
  .sponsors__wall li {
    scroll-snap-align: start;
  }
  .ex__logo {
    height: 96px;
  }
  .ex-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .offcanvas.drawer {
    top: auto;
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    max-height: 86svh;
    padding: 22px 22px 28px;
    transform: translateY(calc(100% + 16px));
  }
}
@media (hover: none) and (pointer: coarse) {
  .ex {
    -webkit-tap-highlight-color: transparent;
  }
  .ex:active {
    transform: scale(0.985);
    transition: transform 0.16s var(--ease-out);
  }
}
/* ==========================================================================
   25. Resumen ejecutivo
   Página sobria para leer o imprimir.
   ========================================================================== */
.ejx__eyebrow {
  margin: 0 0 18px;
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--b-sky);
}
.ejx__title {
  max-width: 18ch;
}
.ejx__facts {
  padding-bottom: clamp(48px, 6vw, 88px);
}
/* Retícula de Bootstrap: .row.g-0 > .col-6.col-md-4 */
.ejx-facts {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--b-grad);
  box-shadow: 0 30px 60px -36px rgba(11, 31, 77, 0.55);
}
.ejx-fact {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(22px, 2.6vw, 34px);
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12);
  color: #fff;
}
.ejx-fact dt {
  font: 600 11.5px/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #bfe9f3;
}
.ejx-fact dd {
  display: grid;
  gap: 8px;
  margin: 0;
}
.ejx-fact b {
  font: 400 clamp(2.1rem, 3.2vw, 3rem) / 0.95 var(--display);
  letter-spacing: -0.006em;
  font-variant-numeric: lining-nums tabular-nums;
}
.ejx-fact b.ejx-fact__sm {
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.ejx-fact span {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(234, 241, 255, 0.82);
}
.ejx__body {
  display: grid;
  padding-bottom: var(--section);
}
/* Cada bloque: .row > .col-lg-4 (título) + .col-lg-8 (contenido) */
.ejx-block > .row {
  --bs-gutter-x: clamp(40px, 6vw, 96px);
  --bs-gutter-y: 24px;
}
.ejx-block {
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.ejx-block__head {
  display: grid;
  align-content: start;
  gap: 10px;
}
.ejx-block__idx {
  font: 500 12.5px/1 var(--num);
  letter-spacing: 0.06em;
  color: var(--b-sky);
  font-variant-numeric: tabular-nums;
}
.ejx-block__title {
  margin: 0;
  font: 400 clamp(1.9rem, 2.6vw, 2.5rem) / 1.05 var(--display);
  letter-spacing: -0.006em;
  color: var(--b-ink);
  font-weight: 600;
}
.ejx-block__note {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}
.ejx-block__main {
  min-width: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  list-style: none;
}
.ejx-prose p {
  margin: 0 0 18px;
  font-size: clamp(16.5px, 1.2vw, 18.5px);
  line-height: 1.65;
  color: var(--ink-2);
}
.ejx-prose p:last-child {
  margin-bottom: 0;
}
.ejx-num li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.ejx-num li:first-child {
  padding-top: 0;
}
.ejx-num span {
  padding-top: 0.3em;
  font: 500 13px/1 var(--num);
  color: var(--b-strong);
  font-variant-numeric: tabular-nums;
}
.ejx-num p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.ejx-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ejx-grid li {
  position: relative;
  padding: 20px 20px 20px 46px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.ejx-grid li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 27px;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #1f56e8, #2ea36b);
}
.ejx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ejx-chips li {
  padding: 11px 18px;
  border-radius: 999px;
  background: #edf1f8;
  font-size: 15px;
  line-height: 1.3;
  color: var(--b-ink);
}
.ejx-sectors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ejx-sector {
  padding: 22px 20px 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.ejx-sector__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 12px;
  font: 600 13px/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--b-ink);
}
.ejx-sector__head b {
  font: 400 2.4rem/0.9 var(--display);
  letter-spacing: -0.006em;
  color: var(--b-strong);
}
.ejx-sector__bar {
  display: block;
  height: 4px;
  margin-bottom: 10px;
  border-radius: 4px;
  background: #edf1f8;
  overflow: hidden;
}
.ejx-sector__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f56e8, #1d86a8, #2ea36b);
}
.ejx-sector ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ejx-sector li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.35;
}
.ejx-sector li a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s var(--ease);
}
.ejx-sector li b {
  font: 600 13px/1.35 var(--num);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ejx-small {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.ejx-acts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.ejx-acts li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 2px 8px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.ejx-acts span {
  grid-row: span 2;
  padding-top: 0.25em;
  font: 500 12px/1 var(--num);
  color: var(--b-sky);
}
.ejx-acts b {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--b-ink);
}
.ejx-acts em {
  font-style: normal;
  font-size: 13.5px;
  color: var(--muted);
}
.ejx-days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.ejx-days a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #edf1f8;
  color: var(--b-ink);
  transition:
    background-color 0.2s var(--ease),
    transform 0.16s var(--ease-out);
}
.ejx-days a:active {
  transform: scale(0.98);
}
.ejx-days b {
  grid-row: span 2;
  font: 400 2.6rem/0.85 var(--display);
  letter-spacing: -0.006em;
  color: var(--b-strong);
}
.ejx-days span {
  font-weight: 600;
  font-size: 15px;
}
.ejx-days small {
  font-size: 13px;
  color: var(--muted);
}
.ejx-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.ejx-two p {
  margin: 0 0 10px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.ejx-label {
  font: 600 11.5px/1 var(--sans) !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--b-sky) !important;
  margin-bottom: 14px !important;
}
.ejx-strong {
  font-size: 18px !important;
  font-weight: 600;
  color: var(--b-ink) !important;
}
.ejx-strong a {
  color: inherit;
}
@media (hover: hover) and (pointer: fine) {
  .ejx-sector li a:hover {
    text-decoration-color: currentColor;
  }
  .ejx-days a:hover {
    background: #e2e9f6;
  }
}
@media (max-width: 1023px) {
  .ejx-sectors,
  .ejx-acts {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  .ejx-facts {
    border-radius: 20px;
  }
  .ejx-fact {
    padding: 18px;
  }
  .ejx-grid,
  .ejx-sectors,
  .ejx-acts,
  .ejx-days,
  .ejx-two {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media print {
  .ejx__actions {
    display: none !important;
  }
  .ejx .page-head {
    padding-top: 0;
    padding-bottom: 16px;
  }
  .ejx-facts {
    box-shadow: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .ejx-block {
    break-inside: auto;
    padding: 18px 0;
  }
  .ejx-block__head {
    break-after: avoid;
  }
  .ejx-grid li,
  .ejx-sector,
  .ejx-num li,
  .ejx-acts li {
    break-inside: avoid;
  }
  .ejx__body {
    padding-bottom: 0;
  }
  main.ejx {
    padding-bottom: 0;
  }
  .ejx-grid li,
  .ejx-sector {
    box-shadow: inset 0 0 0 1px #ccc;
  }
  .ejx [data-lines] .ln > span,
  .ejx [data-lines] {
    opacity: 1 !important;
    transform: none !important;
  }
}
@media (max-width: 991.98px) {
  .ejx-block > .row {
    --bs-gutter-x: min(56px, calc(var(--gutter) * 2));
  }
}
/* ==========================================================================
   26. Pie
   Contacto, redes, logos UNAM, banda legal y botón de volver arriba.
   ========================================================================== */
.foot :focus-visible {
  outline-color: var(--on-dark);
}
.foot {
  position: relative;
  z-index: 2;
  color: var(--on-dark-2);
  --accent-ink: #8fb4ff;
}
.foot__main {
  background: linear-gradient(120deg, #1f2552 0%, #2b2f6b 52%, #3a3a86 100%);
  padding: clamp(56px, 6vw, 80px) 0 clamp(52px, 5.5vw, 72px);
  box-shadow: inset 0 1px 0 var(--line-dark);
  --on-dark-2: rgba(240, 245, 255, 0.86);
  --line-dark: rgba(255, 255, 255, 0.16);
  --line-dark-2: rgba(255, 255, 255, 0.4);
}
/* Retícula de Bootstrap: .row > 3 × .col-lg-4 (sitio · universidad · redes) */
.foot__grid {
  --bs-gutter-x: 48px;
  --bs-gutter-y: 40px;
  align-items: flex-start;
  --foot-accent: #e2a54a;
}
.foot__label {
  margin-bottom: 22px;
  font: 600 12px/1.2 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c7cbf0;
}
.foot__arrow {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  color: var(--foot-accent);
  stroke-width: 2.2;
  vertical-align: -4px;
}
/* Izquierda */
.foot__list {
  display: grid;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 17px;
  line-height: 1.3;
  color: var(--on-dark);
}
.foot__list a,
.foot__address a {
  color: var(--on-dark);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: text-decoration-color 0.25s var(--ease);
}
#contador {
  font-variant-numeric: tabular-nums;
}
/* Centro */
.foot__col--uni {
  text-align: center;
}
.foot__uni {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.5vw, 32px);
}
.foot__uni img {
  width: auto;
  height: clamp(63px, 6vw, 84px);
  opacity: 0.94;
}
.foot__uni a {
  border-radius: 8px;
  transition: opacity 0.25s var(--ease);
}
.foot__address {
  margin: 26px auto 0;
  max-width: 34ch;
  font-style: normal;
  font-size: 16px;
  line-height: 1.5;
  color: var(--on-dark);
}
.foot__address p {
  margin: 0 0 6px;
}
.foot__pin {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  fill: var(--foot-accent);
  stroke: var(--foot-accent);
  vertical-align: -4px;
}
.foot__pin circle {
  fill: #2b2f6b;
}
/* Derecha */
.foot__col--social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 20px;
}
.foot__title {
  margin: 0 0 22px;
  padding: 0 4px 14px;
  border-bottom: 1px solid var(--line-dark-2);
  font: 600 19px/1.3 var(--sans);
  color: var(--on-dark);
}
.foot__social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 0;
  padding: 0 4px;
  list-style: none;
}
.foot__social a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  color: var(--on-dark);
  transition:
    color 0.25s var(--ease),
    transform 0.16s var(--ease-out);
}
.foot__social .i--brand {
  width: 36px;
  height: 36px;
}
.foot__social a:active {
  transform: scale(0.92);
}
.i--brand {
  fill: currentColor;
  stroke: none;
}

/* Ícono al lado del texto (los svg del sitio son bloque por defecto) */
.foot__list li,
.foot__title,
.foot__address p:first-child {
  display: flex;
  align-items: center;
}
.foot__address p:first-child {
  justify-content: center;
  text-align: left;
}
.foot__arrow,
.foot__pin {
  display: inline-block;
  flex: none;
  vertical-align: middle;
}
.foot__main {
  padding: clamp(32px, 3.5vw, 44px) 0 !important;
}
.foot__list {
  gap: 16px !important;
}
.foot__address {
  margin-top: 16px !important;
  max-width: 44ch !important;
}
.foot__col--social {
  padding-top: 8px !important;
}
.foot__title {
  margin-bottom: 16px !important;
}
.foot__uni img {
  height: clamp(56px, 5vw, 72px) !important;
}

/* Pie en 4 columnas: sitio · universidad · contacto · redes */
.foot__col--uni .foot__uni {
  gap: 18px;
}
.foot__col--uni .foot__uni img {
  height: clamp(48px, 4.2vw, 64px) !important;
}
.foot__col--contact .foot__address {
  margin: 0 !important;
  max-width: none !important;
  font-size: 15px;
  text-align: left;
}
.foot__col--contact .foot__address p:first-child {
  justify-content: flex-start;
  align-items: flex-start;
}
.foot__col--contact .foot__pin {
  margin-top: 2px;
}
.foot__address a {
  overflow-wrap: anywhere;
}
.foot__col--social {
  padding-top: 0 !important;
}
.foot__col--contact .foot__title,
.foot__col--social .foot__title {
  font-size: 17px;
}
@media (max-width: 991.98px) {
  .foot__col--uni {
    order: 0;
  }
  .foot__col--social {
    align-items: flex-start;
  }
}

/* Pie: sin negritas y letra más chica */
.foot__main,
.foot__main b,
.foot__main strong,
.foot__title,
.foot__list,
.foot__address {
  font-weight: 400 !important;
}
.foot__list,
.foot__col--contact .foot__address {
  font-size: 14px !important;
  line-height: 1.45;
}
.foot__list {
  gap: 12px !important;
}
.foot__col--contact .foot__title,
.foot__col--social .foot__title,
.foot__title {
  font-size: 15px !important;
  padding-bottom: 10px;
}
.foot__arrow {
  width: 16px !important;
  height: 16px !important;
  margin-right: 6px !important;
}
.foot__pin {
  width: 16px !important;
  height: 16px !important;
}
.foot__social .i--brand {
  width: 30px !important;
  height: 30px !important;
}
.foot__social a {
  width: 38px !important;
  height: 38px !important;
}

/* Dirección bajo los logos; teléfonos y correo con ícono en Contacto */
.foot__address--uni {
  margin: 14px 0 0 !important;
  max-width: none !important;
  font-size: 14px !important;
}
.foot__address--uni p {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  margin: 0;
}
.foot__col--contact .foot__address p {
  display: flex;
  align-items: flex-start;
  margin: 0 0 10px;
}
.foot__address .foot__pin {
  margin-top: 2px;
  margin-right: 8px;
}
.foot__col--contact .foot__pin {
  fill: none !important;
  stroke: var(--foot-accent);
  stroke-width: 1.8;
}

/* Columna derecha: logos, dirección y redes alineados a la derecha */
.foot__col--uni {
  text-align: right !important;
}
.foot__col--uni .foot__uni {
  justify-content: flex-end !important;
}
.foot__address--uni p {
  justify-content: flex-end !important;
}
.foot__follow {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 18px;
}
.foot__follow .foot__title {
  margin-bottom: 12px !important;
}
@media (max-width: 991.98px) {
  .foot__col--uni {
    text-align: left !important;
  }
  .foot__col--uni .foot__uni,
  .foot__address--uni p {
    justify-content: flex-start !important;
  }
  .foot__follow {
    align-items: flex-start;
  }
}

/* 4 columnas: sitio · dirección y redes · contacto · logos */
.foot__col--where .foot__address--uni {
  margin: 0 !important;
}
.foot__col--where .foot__address--uni p {
  justify-content: flex-start !important;
}
.foot__col--where .foot__follow {
  align-items: flex-start;
}

/* Íconos de redes centrados bajo su título */
.foot__follow {
  display: inline-flex !important;
  align-items: stretch !important;
}
.foot__follow .foot__social {
  justify-content: center !important;
}
.foot__legal {
  background: #121430;
  padding: 16px 0 calc(18px + env(safe-area-inset-bottom));
  box-shadow: inset 0 1px 0 var(--line-dark);
}
/* Retícula de Bootstrap: .row > .col-md-2 + .col-md-10 */
.foot__legal-grid {
  --bs-gutter-x: 40px;
  --bs-gutter-y: 8px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(238, 242, 251, 0.92);
}
.foot__made {
  color: rgba(238, 242, 251, 0.9);
}
.foot__made b {
  font-weight: 500;
  color: #fff;
}
.foot__terms p {
  color: rgba(238, 242, 251, 0.92);
}
/* enlaces legales en ámbar subrayado, como el pie institucional de la FCA */
.foot__terms a,
.foot__links a {
  color: #e2a65a;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.25s var(--ease);
}
.foot__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 0;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}
.foot__links li + li::before {
  content: "|";
  margin: 0 5px;
  color: rgba(238, 242, 251, 0.92);
}
.foot__links a {
  display: inline-block;
  padding: 1px 0;
}
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: var(--z-top);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(251, 252, 254, 0.72);
  color: var(--ink);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow:
    inset 0 0 0 1px rgba(14, 26, 54, 0.08),
    0 10px 24px -14px rgba(30, 42, 66, 0.45);
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  pointer-events: none;
  transition:
    opacity 0.35s var(--ease-out),
    transform 0.35s var(--ease-out);
}
.to-top .i {
  transform: rotate(-90deg);
}
.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top.show.is-hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .foot__list a:hover,
  .foot__address a:hover {
    text-decoration-color: currentColor;
  }
  .foot__social a:hover {
    color: var(--foot-accent);
    transform: translateY(-2px);
  }
  .foot__uni a:hover {
    opacity: 0.8;
  }
  .foot__terms a:hover,
  .foot__links a:hover {
    color: #ffc77a;
  }
}
@media (max-width: 991.98px) {
  .foot__col--uni {
    order: 3;
  }
  .foot__col--social {
    padding-top: 0;
  }
  .foot__grid {
    --bs-gutter-x: min(56px, calc(var(--gutter) * 2));
  }
}
@media (max-width: 767.98px) {
  .foot__grid {
    --bs-gutter-y: 44px;
  }
  .foot__col--social {
    align-items: flex-start;
  }
  .foot__social {
    gap: 12px;
  }
  .foot__uni {
    gap: 24px;
  }
  .foot__uni img {
    height: 57px;
  }
  .foot__legal-grid {
    font-size: 12.5px;
  }
}
@media (max-width: 700px) {
  .to-top {
    right: 12px;
    bottom: 12px;
  }
}
@media print {
  .foot,
  .to-top {
    display: none !important;
  }
}
/* ==========================================================================
   27. Animaciones
   Keyframes usados por las secciones de arriba.
   ========================================================================== */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(179, 204, 35, 0.55);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(179, 204, 35, 0);
  }
}
@keyframes acc-drift {
  to {
    transform: translate3d(6%, -5%, 0) rotate(8deg);
  }
}
@keyframes acc-face-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes flash {
  0%,
  50% {
    background-color: rgba(12, 37, 112, 0.08);
  }
  100% {
    background-color: rgba(12, 37, 112, 0);
  }
}
@keyframes loop-x {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}
@keyframes map-scan {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translateY(380%);
    opacity: 0;
  }
}
@keyframes map-live {
  0% {
    box-shadow: 0 0 0 0 rgba(95, 212, 230, 0.55);
  }
  100% {
    box-shadow: 0 0 0 9px rgba(95, 212, 230, 0);
  }
}
@keyframes map-ring {
  0% {
    transform: scale(0.25);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
@keyframes map-sweep {
  to {
    transform: rotate(1turn);
  }
}
@keyframes eco-hand {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 20px 0;
  }
}
@keyframes mnav-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
@keyframes ex-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
