/* ===========================================
   EXPOSALUDMENTAL MADRID2027 — styles
   =========================================== */

/* ===========================================
   DESIGN TOKENS
   Paleta: azul corporativo + verde lima
   Dark mode por defecto. Light mode se activa
   automáticamente según el sistema operativo.
   =========================================== */
:root {
  /* Marca — paleta corporativa de Carlos */
  --corp-blue:    #7DBAD1;   /* azul corporativo claro — acento en dark */
  --corp-blue-dk: #5A9EBE;   /* hover / pressed */
  --navy:    #1B3A6B;        /* azul oscuro para fondos */

  /* Acento activo */
  --accent:    var(--corp-blue);
  --accent-dk: var(--corp-blue-dk);

  /* Fondo base y orbs — azul más vivo que antes */
  --bg:    #091830;
  --orb-1: rgba(27,58,107,.55);
  --orb-2: rgba(37,99,176,.30);
  --orb-3: rgba(27,58,107,.38);
  --orb-4: rgba(37,99,176,.20);

  /* Jerarquía de texto */
  --t-1: rgba(255,255,255,.88);
  --t-2: rgba(255,255,255,.52);
  --t-3: rgba(255,255,255,.52);
  --t-4: rgba(255,255,255,.14);

  /* UI */
  --line: rgba(255,255,255,.06);
  --gap:  rgba(255,255,255,.05);

  /* Tintes de sección */
  --tint-stats:    rgba(9,28,72,.80);
  --tint-ejes:     rgba(18,35,90,.70);
  --tint-colabora: rgba(30,50,100,.40);

  /* Celdas interactivas */
  --cell:          rgba(9,24,60,.65);
  --cell-hover:    rgba(90,158,190,.22);
  --eje-cell:      rgba(18,35,90,.55);
  --eje-hover:     rgba(90,158,190,.30);

  /* Nav */
  --nav-bg: rgba(9,24,48,.92);

  /* Hero */
  --hero-base: #091830;
  --hero-fade: #091830;

  /* Tipografía y layout */
  --font:         'Poppins', sans-serif;
  --font-display: 'Fraunces', serif;
  --ease:  cubic-bezier(.25,.46,.45,.94);
  --max-w: 1280px;
  --pad:   clamp(1.25rem, 5vw, 4rem);
}

/* Light mode eliminado — el manual no tiene variante clara.
   El sitio usa siempre fondo oscuro + secciones de gradiente corporativo.
   Todos los textos en blanco o en los azules del manual. */

/* ===========================================
   RESET
   =========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

/* ===========================================
   ACCESIBILIDAD — Skip link + Focus visible
   =========================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  background: var(--bg);
  color: var(--accent);
  padding: .75rem 1.5rem;
  font-size: .875rem;
  font-weight: 700;
  border: 2px solid var(--accent);
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

body {
  font-family: var(--font);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 40% at 10% 15%, var(--orb-1) 0%, transparent 60%),
    radial-gradient(ellipse 60% 35% at 90% 55%, var(--orb-2) 0%, transparent 55%),
    radial-gradient(ellipse 70% 30% at 30% 85%, var(--orb-3) 0%, transparent 55%),
    radial-gradient(ellipse 50% 25% at 80% 95%, var(--orb-4) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--t-1);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }

/* ===========================================
   UTILIDADES
   =========================================== */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px; width: 0;
  background: var(--accent);
  z-index: 999;
  transition: width .08s linear;
  pointer-events: none;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section-label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
}

/* ===========================================
   SISTEMA DE BOTONES — 3 variantes
   Principal / Secundario / Outline
   =========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .875rem 2rem;
  border: 1.5px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: background .22s var(--ease), color .22s, border-color .22s, transform .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Principal — fill corp-blue, texto fondo oscuro */
.btn--primary {
  background: var(--corp-blue);
  color: var(--bg);
  border-color: var(--corp-blue);
}
.btn--primary:hover {
  background: var(--corp-blue-dk);
  border-color: var(--corp-blue-dk);
  color: var(--bg);
}

/* Secundario — tint + borde corp-blue */
.btn--secondary {
  background: rgba(125,186,209,.12);
  color: var(--corp-blue);
  border-color: rgba(125,186,209,.38);
}
.btn--secondary:hover {
  background: rgba(125,186,209,.22);
  border-color: rgba(125,186,209,.65);
}

/* Outline — sin relleno, borde blanco (sobre fondos oscuros) */
.btn--outline {
  background: transparent;
  color: rgba(255,255,255,.80);
  border-color: rgba(255,255,255,.28);
}
.btn--outline:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.55);
  color: #ffffff;
}

/* Scroll-driven fade */
[data-fade] {
  will-change: opacity, transform, filter;
  transition: none;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===========================================
   NAV
   =========================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--pad);
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: none;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.is-solid {
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .12em;
  white-space: nowrap;
  color: var(--navy);
}
/* Logo swap: dark por defecto, light cuando nav es sólido */
.nav__logo {
  height: 32px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.nav__logo--light { display: none; }
.nav.is-solid .nav__logo--dark  { display: none; }
.nav.is-solid .nav__logo--light { display: block; }
/* Fuera del hero (nav sólido) adapta el color */
.nav.is-solid .nav__brand { color: var(--t-1); }
.nav.is-solid .nav__link  { color: var(--t-2); }
.nav.is-solid .nav__link:hover { color: var(--t-1); }

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__link {
  color: var(--navy);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .07em;
  transition: color .2s;
}
.nav__link:hover { color: var(--corp-blue-dk); }
.nav.is-solid .nav__link       { color: var(--t-2); text-shadow: none; }
.nav.is-solid .nav__link:hover { color: var(--t-1); }

.nav__cta {
  background: var(--navy);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: .5rem 1.25rem;
  border-radius: 3px;
  border: 1.5px solid transparent;
  transition: background .2s, border-color .2s;
}
.nav__cta:hover { background: var(--corp-blue-dk); }

/* Nav sólido: primary = corp-blue fill + texto oscuro (mismo sistema que .btn--primary) */
.nav.is-solid .nav__cta           { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.nav.is-solid .nav__cta:hover     { background: var(--accent-dk); border-color: var(--accent-dk); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px; height: 2px;
  background: rgba(255,255,255,.8);
  border-radius: 1px;
  transition: transform .3s, opacity .3s;
}
/* En nav sólido (light mode), las líneas del burger se adaptan */
.nav.is-solid .nav__burger span { background: var(--t-1); }

.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.mobile-menu.is-open { opacity: 1; pointer-events: all; }
.mobile-menu__close {
  position: absolute;
  top: 1.5rem; right: var(--pad);
  background: none; border: none;
  color: var(--t-3);
  font-size: 1.25rem;
  cursor: pointer; padding: .5rem;
  transition: color .2s;
}
.mobile-menu__close:hover { color: var(--t-1); }
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
}
.mobile-menu__link {
  color: var(--t-1);
  font-size: clamp(1.75rem, 7vw, 3rem);
  font-weight: 800;
  letter-spacing: .02em;
  transition: color .2s;
}
.mobile-menu__link:hover { color: var(--accent); }

/* ===========================================
   1. HERO  (gradiente corporativo del manual)
   =========================================== */
.hero {
  position: relative;
  min-height: 100svh;
  background: radial-gradient(ellipse 160% 130% at 15% 55%,
    #5B9EBF 0%,
    #71AFC8 22%,
    #7DBAD1 42%,
    #95C5D8 65%,
    #B8D8E8 84%,
    #CCE5F0 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 0 0 clamp(3.5rem, 8vh, 5.5rem);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 5% 55%, rgba(255,255,255,.22) 0%, transparent 60%),
    radial-gradient(ellipse 45% 45% at 88% 15%, rgba(149,197,216,.30) 0%, transparent 55%);
  animation: hbg 9s ease-in-out infinite alternate;
}
@keyframes hbg { from { opacity: .7; } to { opacity: 1; } }

/* Gradiente de transición: fusiona el hero con el fondo del body */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 35%;
  background: linear-gradient(to bottom, transparent, var(--hero-fade));
  pointer-events: none;
}

/* Foto hero: encuadrada a la derecha, tintura azul para alinearse con el manual */
.hero__photo {
  position: absolute;
  right: 0; top: 0;
  height: 100%; width: 70%;
  object-fit: cover;
  object-position: 38% center;
  /* Efecto duotono azul: igual que las fotos del dossier */
  filter: grayscale(1) sepia(.55) hue-rotate(168deg) saturate(2.2) brightness(1.12);
  /* Máscara: la foto entra desde el centro */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 22%, rgba(0,0,0,.75) 42%, black 58%);
  mask-image:         linear-gradient(to right, transparent 0%, transparent 22%, rgba(0,0,0,.75) 42%, black 58%);
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(5rem, 9vh, 7rem) var(--pad) 0;
}

.hero__label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(0,0,0,.72);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp .7s var(--ease) .15s forwards;
}
.hero__title {
  display: flex;
  flex-direction: column;
  line-height: .88;
  margin-bottom: clamp(2rem, 5vh, 4rem);
  user-select: none;
}
.hero__line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 11vw, 11rem);
  font-weight: 300;
  letter-spacing: -.03em;
}
.hero__line--outline {
  color: rgba(255,255,255,.70);
  -webkit-text-stroke: 0;
  opacity: 0;
  animation: slideIn .85s var(--ease) .30s forwards;
}
.hero__line--fill {
  color: #ffffff;
  font-weight: 700;
  opacity: 0;
  animation: slideIn .85s var(--ease) .30s forwards;
}
/* MADRID2027: segundo plano, tipografía ligera */
.hero__line--year {
  font-size: clamp(1rem, 3.5vw, 4rem);
  font-weight: 300;
  letter-spacing: .18em;
  color: rgba(255,255,255,.28);
  margin-top: .5rem;
  opacity: 0;
  animation: slideIn .85s var(--ease) .30s forwards;
}
/* Escalonado: EXPO, SALUD, MENTAL, MADRID2027 */
.hero__title .hero__line:nth-child(1) { animation-delay: .30s; }
.hero__title .hero__line:nth-child(2) { animation-delay: .50s; }
.hero__title .hero__line:nth-child(3) { animation-delay: .70s; }
.hero__title .hero__line:nth-child(4) { animation-delay: .90s; }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-48px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  opacity: 0;
  animation: fadeUp .75s var(--ease) .95s forwards;
}
.hero__tagline {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: .04em;
}
.hero__sub {
  font-size: .875rem;
  color: rgba(255,255,255,.58);
  letter-spacing: .04em;
  margin-top: .25rem;
}
.hero__scroll {
  position: absolute;
  bottom: clamp(5rem, 12vh, 8rem); right: var(--pad);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.scroll-line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, rgba(255,255,255,.75), rgba(255,255,255,.40));
  animation: sline 1.6s ease-in-out infinite;
}
.scroll-caret {
  width: 9px; height: 9px;
  border-right: 1.5px solid rgba(255,255,255,.75);
  border-bottom: 1.5px solid rgba(255,255,255,.75);
  transform: rotate(45deg);
  margin-top: 3px;
  animation: caretPulse 1.6s ease-in-out infinite;
}
@keyframes caretPulse {
  0%        { opacity: 0; }
  40%, 65%  { opacity: .80; }
  100%      { opacity: 0; }
}
@keyframes sline {
  0%   { transform: scaleY(0); transform-origin: top;    opacity: 1; }
  49%  { transform: scaleY(1); transform-origin: top;    opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ===========================================
   2. STATEMENT
   =========================================== */
.statement { padding: clamp(3rem, 8vh, 7rem) 0; }

.statement__text {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--t-1);
  margin-bottom: 1.5rem;
}
.statement__aside {
  font-size: clamp(.875rem, 1.5vw, 1.125rem);
  font-weight: 500;
  color: rgba(255,255,255,.72);
  letter-spacing: .06em;
}

/* ===========================================
   3. STATS
   =========================================== */
.stats {
  padding: clamp(3rem, 8vh, 6rem) 0;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--tint-stats) 18%,
    var(--tint-stats) 82%,
    transparent
  );
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gap);
}
.stat {
  background: var(--cell);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: .625rem;
  transition: background .28s var(--ease);
  backdrop-filter: blur(4px);
}
.stat:hover { background: var(--cell-hover); }
.stat__num {
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  font-weight: 900;
  color: var(--t-1);
  letter-spacing: -.03em;
  line-height: 1;
}
.stat__suf {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.stat > .stat__num,
.stat > .stat__suf { display: inline; }
.stat__fixed {
  font-size: clamp(2.25rem, 5.5vw, 4.75rem);
  font-weight: 900;
  color: var(--t-1);
  letter-spacing: -.02em;
  line-height: 1;
}
.stat__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--t-3);
}

/* ===========================================
   4. SOBRE EL EVENTO
   =========================================== */
.about { padding: clamp(3rem, 7vh, 6rem) 0; }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}
.about__text {
  font-size: clamp(.9375rem, 1.5vw, 1.125rem);
  line-height: 1.85;
  color: var(--t-2);
}

/* ===========================================
   5. EJES TEMÁTICOS
   =========================================== */
.ejes {
  padding: clamp(4rem, 10vh, 8rem) 0;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--tint-ejes) 12%,
    var(--tint-ejes) 88%,
    transparent
  );
}
.ejes__intro {
  font-size: clamp(.875rem, 1.5vw, 1rem);
  color: var(--t-3);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.ejes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gap);
}
.eje {
  background: var(--eje-cell);
  backdrop-filter: blur(4px);
  padding: 1.5rem 1.25rem 1.5rem 1rem;
  display: flex;
  gap: .875rem;
  align-items: flex-start;
  transition: background .22s var(--ease);
  cursor: default;
}
.eje:hover { background: var(--eje-hover); }
.eje__n {
  font-size: .625rem;
  font-weight: 800;
  color: var(--t-4);
  letter-spacing: .12em;
  flex-shrink: 0;
  margin-top: .2em;
  transition: color .22s;
}
.eje:hover .eje__n { color: var(--t-2); }
.eje__t {
  font-size: .875rem;
  font-weight: 500;
  color: var(--t-2);
  line-height: 1.55;
  transition: color .22s;
}
.eje:hover .eje__t { color: var(--t-1); }

/* Hover: texto siempre blanco sobre el azul corporativo */

/* ===========================================
   5b. MARQUEE CONTENIDOS
   =========================================== */
.ejes__marquee {
  position: relative;
  overflow: hidden;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(1rem, 3vw, 2rem);
}

/* Fade en los bordes — efecto "infinito" */
.ejes__marquee::before,
.ejes__marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(60px, 10vw, 160px);
  z-index: 2;
  pointer-events: none;
}
.ejes__marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}
.ejes__marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.marquee__track {
  display: flex;
  gap: 1px;
  width: max-content;
  will-change: transform;
}
.marquee__track--fwd {
  animation: mq-fwd 160s linear infinite;
}
.marquee__track--fwd:hover {
  animation-play-state: paused;
}

@keyframes mq-fwd {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee__item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem 1.75rem 1.5rem;
  min-width: clamp(220px, 20vw, 300px);
  min-height: clamp(200px, 26vh, 280px);
  background: var(--eje-cell);
  border-right: 1px solid var(--line);
  white-space: normal;
  flex-shrink: 0;
  cursor: default;
  transition: background .22s var(--ease);
}
.marquee__item:hover { background: var(--eje-hover); }

.marquee__num {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: rgba(125, 186, 209, .22);
  line-height: 1;
  flex-shrink: 0;
  transition: color .22s;
}
.marquee__item:hover .marquee__num { color: rgba(125, 186, 209, .45); }

.marquee__text {
  font-size: clamp(.875rem, 1.2vw, 1rem);
  font-weight: 400;
  color: var(--t-1);
  line-height: 1.45;
  max-width: 220px;
  transition: color .22s;
}
.marquee__item:hover .marquee__text { color: #fff; }

/* Controles del marquee: pausa + flechas de teclado */
.marquee__controls {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 var(--pad) .625rem;
}
.marquee__arrow {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--t-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.marquee__arrow:hover,
.marquee__arrow:focus-visible { background: rgba(255,255,255,.16); color: var(--t-1); }
.marquee__arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (pointer: coarse) { .marquee__controls { display: none; } }

/* Botón pausa (WCAG 2.2.2) — discreto, sin borde */
.marquee__pause {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
  padding: .2rem 0;
  background: none;
  border: none;
  color: var(--t-2);   /* 5.52:1 sobre #091830 — pasa WCAG AA */
  font-family: var(--font);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s;
}
.marquee__pause:hover,
.marquee__pause:focus-visible { color: var(--accent); }

/* Toggling icono/texto — CSS maneja todo, sin inline styles */
.marquee__pause[aria-pressed="true"]  .pause-icon { display: none; }
.marquee__pause[aria-pressed="true"]  .play-icon  { display: inline-flex; }
.marquee__pause[aria-pressed="false"] .pause-icon { display: inline-flex; }
.marquee__pause[aria-pressed="false"] .play-icon  { display: none; }

/* Sin animación si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
  .marquee__track--fwd { animation: none; }
  .ejes__marquee { overflow-x: auto; }
  .marquee__track { flex-wrap: wrap; width: 100%; gap: 1px; }
  .marquee__item { flex: 1 1 260px; min-height: auto; }
  .marquee__pause { display: none; }
}

/* Marquee en dispositivos táctiles — scroll nativo horizontal */
@media (pointer: coarse) {
  /* Botón de pausa innecesario en touch */
  .marquee__pause { display: none; }
}

/* ===========================================
   FORMATOS DE ACTIVIDAD
   =========================================== */
.formatos {
  padding: clamp(3rem, 7vh, 5rem) 0;
  border-top: 1px solid var(--line);
}
.formatos__label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
}
.formatos__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--gap);
  list-style: none;
}
.formato {
  background: var(--eje-cell);
  backdrop-filter: blur(4px);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: background .22s var(--ease);
  cursor: default;
}
.formato:hover { background: var(--eje-hover); }
.formato__icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
  margin-bottom: .25rem;
}
.formato__name {
  font-size: .875rem;
  font-weight: 600;
  color: var(--t-1);
  line-height: 1.35;
}
.formato__detail {
  font-size: .6875rem;
  color: var(--t-3);
  line-height: 1.55;
}
@media (max-width: 1024px) {
  .formatos__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .formatos__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .formatos__grid { grid-template-columns: 1fr; }
}

/* ===========================================
   6. PERSONALIDADES
   =========================================== */
.personas { padding: clamp(4rem, 10vh, 8rem) 0; }
.personas__intro {
  font-size: clamp(.875rem, 1.5vw, 1rem);
  color: var(--t-3);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

/* ===========================================
   7. ENTIDADES
   =========================================== */
.entidades { padding: clamp(4rem, 10vh, 8rem) 0; }
.entidades__intro {
  font-size: clamp(.875rem, 1.5vw, 1rem);
  color: var(--t-3);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.placeholder {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--t-4);
}

/* Lista de entidades en párrafo corrido */
.entidades__lista {
  font-size: clamp(.875rem, 1.4vw, 1.0625rem);
  color: var(--t-2);
  line-height: 2;
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
  max-width: 900px;
}

/* ===========================================
   8. COLABORA — gradiente corporativo (opción C)
   =========================================== */
.colabora {
  padding: clamp(5rem, 12vh, 9rem) 0;
  background: radial-gradient(ellipse 160% 130% at 85% 45%,
    #5B9EBF 0%,
    #71AFC8 22%,
    #7DBAD1 42%,
    #95C5D8 65%,
    #B8D8E8 84%,
    #CCE5F0 100%
  );
}
/* Texto blanco sobre gradiente — colores del manual */
.colabora .section-label { color: rgba(255,255,255,.58); }
.colabora__title  { color: #ffffff; }
.colabora__body   { color: rgba(255,255,255,.78); }
.colabora .btn--outline {
  color: rgba(255,255,255,.82);
  border-color: rgba(255,255,255,.38);
}
.colabora .btn--outline:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.78);
  color: #ffffff;
}
.colabora__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 5.5rem);
  font-weight: 700;
  color: var(--t-1);
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}
.colabora__body {
  font-size: clamp(.9375rem, 1.5vw, 1.0625rem);
  color: var(--t-2);
  max-width: 640px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.colabora__tipos {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 3rem;
}
.colabora__tipos li {
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--t-3);
  border: 1px solid var(--line);
  padding: .5rem 1.125rem;
  transition: border-color .2s, color .2s;
}
.colabora__tipos li:hover {
  border-color: var(--accent);
  color: var(--accent);
}
/* Gradiente: los overrides van DESPUÉS del base para ganar la cascada */
.colabora .colabora__tipos li {
  color: rgba(255,255,255,.65);
  border-color: rgba(255,255,255,.22);
}
.colabora .colabora__tipos li:hover {
  border-color: #ffffff;
  color: #ffffff;
}

/* Botones sobre el gradiente claro de colabora */
.colabora .btn--primary {
  background: #ffffff;
  color: var(--navy);
  border-color: #ffffff;
}
.colabora .btn--primary:hover {
  background: rgba(255,255,255,.88);
  border-color: rgba(255,255,255,.88);
  color: var(--navy);
}
.colabora__modelos-label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.52);
  margin-bottom: .875rem;
}
.colabora__manual-note {
  font-size: .9375rem;
  color: rgba(255,255,255,.70);
  line-height: 1.65;
  margin-top: -1.25rem;
  margin-bottom: 2.5rem;
  max-width: 520px;
}
/* ===========================================
   TIERS DE PATROCINIO — opción C (paleta corporativa)
   Jerarquía por borde-top + opacidad de texto
   =========================================== */
.colabora__tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 1.75rem;
}
.tier {
  padding: 1.1rem 1rem .9rem;
  border-top: 2px solid transparent;
  transition: border-color .22s var(--ease);
  cursor: default;
}
.tier__name {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0;
}

/* Base oscuro */
.tier--bronce { border-top-color: rgba(255,255,255,.12); }
.tier--bronce .tier__name { color: rgba(255,255,255,.28); }
.tier--plata  { border-top-color: rgba(125,186,209,.35); }
.tier--plata  .tier__name { color: rgba(125,186,209,.62); }
.tier--oro    { border-top-color: var(--corp-blue); }
.tier--oro    .tier__name { color: var(--corp-blue); }
.tier--platino { background: rgba(125,186,209,.12); border-top: 3px solid var(--corp-blue); }
.tier--platino .tier__name { color: var(--corp-blue); }

/* Colabora — gradiente claro (navy en vez de corp-blue) */
.colabora .tier--bronce { border-top-color: rgba(27,58,107,.35); }
.colabora .tier--bronce .tier__name { color: rgba(27,58,107,.55); }
.colabora .tier--plata  { border-top-color: rgba(27,58,107,.55); }
.colabora .tier--plata  .tier__name { color: rgba(27,58,107,.72); }
.colabora .tier--oro    { border-top-color: var(--navy); }
.colabora .tier--oro    .tier__name { color: var(--navy); }
.colabora .tier--platino { background: rgba(27,58,107,.12); border-top-color: var(--navy); }
.colabora .tier--platino .tier__name { color: var(--navy); }

@media (max-width: 600px) {
  .colabora__tiers { grid-template-columns: repeat(2, 1fr); }
}
.colabora__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ===========================================
   9. CONTACTO
   =========================================== */
.contacto { padding: clamp(4rem, 10vh, 8rem) 0; }
.contacto__emails {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  margin-top: .5rem;
}
.contacto__email {
  display: inline-block;
  font-size: clamp(1.25rem, 4vw, 3.25rem);
  font-weight: 800;
  color: var(--t-1);
  letter-spacing: -.01em;
  position: relative;
  transition: color .3s;
}
.contacto__email::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .4s var(--ease);
}
.contacto__email:hover { color: var(--accent); }
.contacto__email:hover::after { width: 100%; }

/* ===========================================
   FOOTER
   =========================================== */
.footer {
  padding: clamp(2.5rem, 6vh, 4rem) 0;
  border-top: 1px solid var(--line);
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}
.footer__name {
  font-size: .8125rem;
  font-weight: 800;
  color: var(--t-1);
  letter-spacing: .04em;
  margin-bottom: .25rem;
}
.footer__lema {
  font-size: .6875rem;
  color: var(--t-3);
  letter-spacing: .08em;
}
.footer__promotor {
  font-size: .75rem;
  color: var(--t-3);
  text-align: right;
  line-height: 1.7;
  letter-spacing: .07em;
}
.footer__promotor strong { color: var(--t-2); font-weight: 700; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}
.footer__legal {
  font-size: .75rem;
  color: var(--t-3);
  letter-spacing: .06em;
  display: flex;
  gap: .5rem;
  align-items: center;
}
.footer__legal a { color: var(--t-3); transition: color .2s; }
.footer__legal a:hover { color: var(--t-1); }
.footer__credit {
  font-size: .6875rem;
  color: var(--t-2);
  letter-spacing: .04em;
  display: flex;
  gap: .375rem;
  align-items: center;
}
.footer__credit a {
  color: var(--corp-blue);
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}
.footer__credit a:hover { color: #fff; }

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 1024px) {
  .ejes__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav__links  { display: none; }
  .nav__burger { display: flex; }
  .hero__photo { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; }
  .ejes__grid  { grid-template-columns: repeat(2, 1fr); }
  .footer__promotor { text-align: left; }

  /* Hero móvil: ocupa el 100% de la pantalla sin huecos.
     El inner crece para llenar todo el espacio disponible y distribuye
     label / título / tagline verticalmente con space-between. */
  .hero {
    align-items: flex-start;
    padding-top: 5rem;
    min-height: 100svh;
    padding-bottom: 0;
  }
  .hero__inner {
    padding-top: 0;
    min-height: calc(100svh - 5rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: clamp(3.5rem, 8vh, 5rem);
  }
  .hero__line { font-size: clamp(3rem, 22vw, 6rem); }
  .hero__line--year { font-size: clamp(1rem, 7vw, 2rem); letter-spacing: .12em; }
  .hero__title { margin-bottom: 0; }

  /* Reducir espacios entre secciones en móvil */
  .statement { padding: 2rem 0 2.5rem; }
  .stats     { padding: 2rem 0; }
  .about     { padding: 2rem 0 2.5rem; }
  .ejes      { padding: 2.5rem 0; }
  .entidades { padding: 2.5rem 0; }
  .colabora  { padding: 2.5rem 0; }
  .contacto  { padding: 2.5rem 0; }
}

@media (max-width: 480px) {
  .ejes__grid  { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  /* Cifras de stats más ajustadas en 2 cols */
  .stat__num   { font-size: clamp(1.5rem, 8vw, 2.5rem); }
  .stat__suf   { font-size: clamp(.75rem, 4vw, 1.25rem); }
  .stat__fixed { font-size: clamp(1.25rem, 7vw, 2rem); }
  /* Botones de Participa apilados */
  .colabora__ctas { flex-direction: column; align-items: flex-start; }
  /* Hero foot más compacto */
  .hero__foot  { gap: 1.25rem 1.5rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* 380px y menos: pantallas muy pequeñas (320–375px) */
@media (max-width: 380px) {
  .colabora .container { padding-left: clamp(1.5rem, 6vw, 2rem); }
  /* Stats a 1 columna: 2 cols con números grandes desborda */
  .stats__grid { grid-template-columns: 1fr; }
  .stat__num   { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .stat__fixed { font-size: clamp(2rem, 9vw, 3rem); }
  /* Hero foot: botón a ancho completo */
  .hero__foot  { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .hero .btn   { width: 100%; text-align: center; }
  /* Colabora: botones a ancho completo */
  .colabora__ctas .btn,
  .colabora__ctas .btn--cta-manual { width: 100%; text-align: center; justify-content: center; }
}

/* ===========================================
   REDUCCIÓN DE MOVIMIENTO
   =========================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
