/* LINAMAG · Liga de Natación del Magdalena
   Mundo visual: el afiche de torneo. Tintas planas, mayúsculas condensadas,
   cifras tabulares y un único eje de brazada (6°) para todos los cortes. */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders-display.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  /* Tintas */
  --noche: #0a1633;
  --noche-2: #142650;
  --azul: #1b3fa6;
  --azul-osc: #142f7d;
  --celeste: #3fa6f2;
  --rojo: #d7282f;
  --rojo-osc: #b51f26;
  --papel: #ffffff;
  --concreto: #eef1f5;
  --concreto-2: #e2e7ee;
  --linea: #d3d9e3;
  --borde: #6b7487;
  --tinta: #0d1017;
  --tinta-2: #4a5468;
  --sobre-noche: #b9c6e4;

  /* Tipografía */
  --f-afiche: "Big Shoulders Display", "Archivo", "Arial Narrow", sans-serif;
  --f-texto: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Eje de brazada */
  --angulo: 6deg;
  --caida: 10.5vw; /* tan(6°) del ancho de pantalla */

  /* Ritmo */
  --pad: clamp(16px, 4vw, 40px);
  --seccion: clamp(3.5rem, 2.2rem + 5vw, 7rem);
  --ancho: 1240px;
  --cab-alto: 72px;

  /* Movimiento */
  --salida: cubic-bezier(0.22, 1, 0.36, 1);
  --rapido: 160ms;
  --medio: 280ms;
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--cab-alto) + 16px);
  scrollbar-color: #9aa3b5 var(--concreto);
}
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
  caret-color: var(--rojo);
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--azul); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
a:hover { color: var(--azul-osc); }
::selection { background: var(--rojo); color: #fff; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; }
.banda--noche :focus-visible, .afiche :focus-visible, .portada :focus-visible, .pie :focus-visible { outline-color: var(--celeste); }
[hidden] { display: none !important; }

.i { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.num { font-variant-numeric: tabular-nums lining-nums; }

.oculto-visual {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.saltar {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--noche); color: #fff; padding: 12px 18px; font-weight: 700;
}
.saltar:focus, .saltar:hover { top: 12px; color: #fff; }
/* Enlaces sobre tinta oscura: el hover pasa a celeste, nunca a azul oscuro. */
.banda--noche a:not(.btn):hover, .banda--azul a:not(.btn):hover, .afiche a:not(.btn):hover, .portada a:not(.btn):hover, .caja-resultados a:hover { color: var(--celeste); }

.envoltura { width: 100%; max-width: calc(var(--ancho) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.seccion { padding-block: var(--seccion); }
.seccion--corta { padding-block: calc(var(--seccion) * 0.6); }
.banda--concreto { background: var(--concreto); }
.banda--noche { background: var(--noche); color: #fff; }
.banda--azul { background: var(--azul); color: #fff; }

/* Títulos de afiche */
.titulo-afiche, .h2 {
  font-family: var(--f-afiche);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.9;
}
.h2 { font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem); font-weight: 800; }
.h3 { font-family: var(--f-texto); font-weight: 700; font-size: 1.3rem; line-height: 1.25; }
.cabeza-seccion { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.75rem, 1rem + 2vw, 2.75rem); }
.cabeza-seccion p { color: var(--tinta-2); max-width: 60ch; margin-top: 0.75rem; }
.banda--noche .cabeza-seccion p, .banda--azul .cabeza-seccion p { color: var(--sobre-noche); }
.enlace-flecha {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; text-decoration: none; color: var(--azul);
  font-stretch: 87.5%; text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.95rem;
  padding-block: 0.5rem;
}
.enlace-flecha .i { transition: transform var(--medio) var(--salida); }
.enlace-flecha:hover .i { transform: translateX(4px); }
.banda--noche .enlace-flecha, .banda--azul .enlace-flecha { color: #fff; }
.lead { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.55; color: var(--tinta-2); max-width: 62ch; }

/* ------------------------------------------------------------ botones */
.btn {
  --fondo: var(--noche); --texto: #fff; --borde-btn: var(--fondo);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 50px; padding: 0 1.4rem;
  background: var(--fondo); color: var(--texto);
  border: 2px solid var(--borde-btn); border-radius: 0;
  font-family: var(--f-texto); font-weight: 750; font-stretch: 87.5%;
  font-size: 0.98rem; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--rapido) ease, border-color var(--rapido) ease, color var(--rapido) ease, transform var(--rapido) var(--salida);
  touch-action: manipulation; user-select: none;
}
.btn:hover { color: var(--texto); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn--rojo { --fondo: var(--rojo); }
.btn--rojo:hover { --fondo: var(--rojo-osc); }
.btn--azul { --fondo: var(--azul); }
.btn--azul:hover { --fondo: var(--azul-osc); }
.btn--noche:hover { --fondo: var(--noche-2); }
.btn--blanco { --fondo: #fff; --texto: var(--noche); }
.btn--blanco:hover { --fondo: var(--concreto); }
.btn--linea { --fondo: transparent; --texto: var(--noche); --borde-btn: var(--noche); }
.btn--linea:hover { --fondo: var(--noche); --texto: #fff; }
.btn--linea-clara { --fondo: transparent; --texto: #fff; --borde-btn: rgba(255,255,255,.7); }
.btn--linea-clara:hover { --fondo: #fff; --texto: var(--noche); --borde-btn: #fff; }
.btn--ancho { width: 100%; }
.btn--chico { min-height: 42px; padding: 0 1rem; font-size: 0.88rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.btn .i { width: 1.15em; height: 1.15em; }
.acciones { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ------------------------------------------------------------ cabecera */
.cabecera {
  position: sticky; top: 0; z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--linea);
}
.cabecera__fila { display: flex; align-items: center; gap: 1.25rem; height: var(--cab-alto); }
.cabecera__logo { flex: none; display: block; }
.cabecera__logo img { height: 50px; width: auto; }
.nav { margin-left: auto; }
.nav__lista { display: flex; align-items: center; gap: 0.15rem; list-style: none; }
.nav__lista > li > a, .nav__mas-boton {
  position: relative; display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.6rem 0.7rem; color: var(--tinta); text-decoration: none;
  font-weight: 600; font-size: 0.97rem; background: none; border: 0;
}
.nav__lista > li > a::after, .nav__mas-boton::after {
  content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.25rem; height: 3px;
  background: var(--rojo); transform: scaleX(0); transform-origin: left;
  transition: transform var(--medio) var(--salida);
}
.nav__lista > li > a:hover::after, .nav__mas-boton:hover::after { transform: scaleX(1); }
.nav__lista > li > a[aria-current="page"]::after, .nav__mas-boton[data-activo]::after { transform: scaleX(1); }
.nav__lista > li > a:hover, .nav__mas-boton:hover { color: var(--tinta); }
.nav__mas { position: relative; }
.nav__mas-boton .i { width: 0.9em; height: 0.9em; transition: transform var(--medio) var(--salida); }
.nav__mas-boton[aria-expanded="true"] .i { transform: rotate(180deg); }
.nav__submenu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px;
  list-style: none; background: #fff; border: 2px solid var(--noche); padding: 0.4rem 0;
  transform-origin: top right; animation: abrir-menu var(--medio) var(--salida);
}
.nav__submenu a { display: block; padding: 0.7rem 1.1rem; color: var(--tinta); text-decoration: none; font-weight: 600; }
.nav__submenu a:hover, .nav__submenu a[aria-current="page"] { background: var(--concreto); color: var(--tinta); }
.nav__submenu a[aria-current="page"] { color: var(--rojo-osc); font-weight: 750; }
@keyframes abrir-menu { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.cabecera__cta { flex: none; }
.cabecera__menu {
  display: none; margin-left: auto; width: 48px; height: 48px; align-items: center; justify-content: center;
  background: none; border: 2px solid var(--noche); color: var(--noche);
}
.cabecera__menu .i { width: 26px; height: 26px; }

@media (max-width: 1239px) {
  .nav, .cabecera__cta { display: none; }
  .cabecera__menu { display: inline-flex; }
}
@media (max-width: 640px) {
  :root { --cab-alto: 64px; }
  .cabecera__logo img { height: 42px; }
}

/* Cajón móvil */
.cajon { position: fixed; inset: 0; z-index: 60; }
.cajon__fondo { position: absolute; inset: 0; background: rgba(10, 22, 51, 0.55); animation: aparecer var(--medio) ease both; }
.cajon__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw);
  background: #fff; overflow-y: auto; overscroll-behavior: contain;
  padding: 1rem 1.25rem calc(2rem + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 1.25rem;
  animation: entrar-cajon 340ms var(--salida) both;
}
.cajon__cabeza { display: flex; align-items: center; justify-content: space-between; }
.cajon__logo { height: 44px; width: auto; }
.cajon__cerrar { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--noche); }
.cajon__cerrar .i { width: 28px; height: 28px; }
.cajon__lista { list-style: none; border-top: 1px solid var(--linea); }
.cajon__lista a {
  display: block; padding: 0.8rem 0.25rem; border-bottom: 1px solid var(--linea);
  font-family: var(--f-afiche); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; line-height: 1.1;
  color: var(--noche); text-decoration: none;
}
.cajon__lista a[aria-current="page"] { color: var(--rojo-osc); }
.cajon__lista--sec a { font-family: var(--f-texto); font-weight: 600; text-transform: none; font-size: 1.05rem; }
@keyframes aparecer { from { opacity: 0; } }
@keyframes entrar-cajon { from { transform: translateX(100%); } }
.cajon[data-cerrando] .cajon__panel { animation: salir-cajon 220ms ease-in both; }
.cajon[data-cerrando] .cajon__fondo { animation: desaparecer 220ms ease both; }
@keyframes salir-cajon { to { transform: translateX(100%); } }
@keyframes desaparecer { to { opacity: 0; } }
body.sin-scroll { overflow: hidden; }

/* ------------------------------------------------------------ afiche (inicio y evento) */
.afiche {
  position: relative; background: var(--noche); color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--caida)), 0 100%);
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) calc(var(--caida) + clamp(2rem, 1rem + 3vw, 3.5rem));
}
.afiche__rejilla {
  display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start;
}
.afiche__estado { margin: 0; }
.afiche__titulo {
  font-size: clamp(2.9rem, 1.4rem + 5.6vw, 6rem);
  color: #fff; overflow-wrap: anywhere; hyphens: auto;
}
.afiche__datos {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; margin: 1.5rem 0 0;
  color: var(--sobre-noche); font-size: 1.05rem; list-style: none;
}
.afiche__datos li { display: inline-flex; align-items: center; gap: 0.5rem; }
.afiche__datos .i { color: var(--celeste); }
.afiche .acciones { margin-top: 2rem; }
.afiche__lado { display: grid; gap: 1.5rem; justify-items: stretch; }
.afiche__imagen { border: 6px solid #fff; background: #fff; transform: rotate(calc(var(--angulo) * -0.35)); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.afiche__imagen img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Bloque de fecha: el rojo del afiche, inclinado sobre el eje de brazada */
.fecha-bloque {
  position: relative; background: var(--rojo); color: #fff;
  transform: skewX(calc(var(--angulo) * -1));
  padding: clamp(1.1rem, 0.8rem + 1vw, 1.6rem) clamp(1.4rem, 1rem + 1.5vw, 2.2rem);
  margin-inline: calc(var(--angulo) * 2);
}
.fecha-bloque > * { transform: skewX(var(--angulo)); }
.fecha-bloque__mes { font-family: var(--f-afiche); font-weight: 800; text-transform: uppercase; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); letter-spacing: 0.04em; line-height: 1; }
.fecha-bloque__dias { font-family: var(--f-afiche); font-weight: 900; font-size: clamp(4rem, 2.6rem + 4.6vw, 6rem); line-height: 0.85; font-variant-numeric: tabular-nums lining-nums; margin: 0.15em 0 0.08em; white-space: nowrap; }
.fecha-bloque__anio { font-family: var(--f-afiche); font-weight: 800; font-size: 1.5rem; line-height: 1; opacity: 0.92; }
.fecha-bloque__disc { margin-top: 0.9rem; padding-top: 0.8rem; border-top: 2px solid rgba(255,255,255,.5); font-weight: 700; font-size: 1rem; font-stretch: 87.5%; text-transform: uppercase; letter-spacing: 0.05em; }

/* Cuenta regresiva */
.cuenta { border-top: 1px solid rgba(255,255,255,.22); padding-top: 1.1rem; }
.cuenta__titulo { font-size: 0.95rem; color: var(--sobre-noche); margin-bottom: 0.6rem; }
.cuenta__cifras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; list-style: none; }
.cuenta__cifras li { background: var(--noche-2); padding: 0.55rem 0.4rem 0.45rem; text-align: center; }
.cuenta__cifras b { display: block; font-family: var(--f-afiche); font-weight: 800; font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.5rem); line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.cuenta__cifras span { font-size: 0.78rem; color: var(--sobre-noche); text-transform: uppercase; letter-spacing: 0.08em; }
.cuenta--fin .cuenta__titulo { color: #fff; font-weight: 600; }

/* Franja: el pie del afiche */
.franja { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); border-top: 1px solid rgba(255,255,255,.22); padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; }
.franja__grupo { display: flex; align-items: center; gap: 1rem; }
.franja__rotulo { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--sobre-noche); }
.franja__logo { background: #fff; padding: 6px 10px; height: 56px; display: flex; align-items: center; }
.franja__logo img { height: 44px; width: auto; }
.franja__logos { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Entrada del afiche: un solo momento, la impresión del pliego */
@media (prefers-reduced-motion: no-preference) {
  .afiche [data-entra] { animation: entra-afiche 760ms var(--salida) both; animation-delay: calc(var(--orden, 0) * 70ms); }
  .afiche .fecha-bloque[data-entra] { animation-name: entra-fecha; animation-duration: 900ms; }
  @keyframes entra-afiche { from { opacity: 0; transform: translateY(18px); } }
  @keyframes entra-fecha { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
}

@media (max-width: 899px) {
  /* En celular: fecha, luego título y acción, y la cuenta regresiva después. */
  .afiche__rejilla { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .afiche__lado { display: contents; }
  .fecha-bloque { order: -1; justify-self: start; }
  .afiche__imagen { display: none; }
}

/* ------------------------------------------------------------ portada de páginas internas */
.portada {
  background: var(--noche); color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--caida) * 0.5), 0 100%);
  padding-block: clamp(2.25rem, 1.5rem + 2.5vw, 3.75rem) calc(var(--caida) * 0.5 + clamp(2rem, 1.25rem + 2vw, 3rem));
}
.migas { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; font-size: 0.92rem; color: var(--sobre-noche); margin-bottom: 1rem; }
.migas li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.6; }
.migas a { color: #fff; text-decoration: none; }
.migas a:hover { color: var(--celeste); }
.portada__titulo { font-size: clamp(2.7rem, 1.6rem + 4.6vw, 5.5rem); }
.portada__lead { margin-top: 1rem; font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); color: var(--sobre-noche); max-width: 60ch; line-height: 1.55; }
.portada .acciones { margin-top: 1.6rem; }

.subnav { position: sticky; top: var(--cab-alto); z-index: 30; background: #fff; border-bottom: 1px solid var(--linea); }
.subnav ul { display: flex; gap: 0.25rem; list-style: none; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 0.95rem 0.9rem; white-space: nowrap; font-weight: 600; color: var(--tinta-2); text-decoration: none; border-bottom: 3px solid transparent; }
.subnav a:hover, .subnav a[aria-current="true"] { color: var(--tinta); border-color: var(--rojo); }

/* ------------------------------------------------------------ estados */
.estado {
  display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap;
  padding: 0.3rem 0.65rem; font-size: 0.8rem; font-weight: 700; font-stretch: 87.5%;
  text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.2;
  background: var(--concreto); color: var(--tinta);
}
.estado .i { width: 1.05em; height: 1.05em; }
.estado--abierta { background: var(--azul); color: #fff; }
.estado--cerrada { background: var(--concreto-2); color: var(--tinta-2); }
.estado--finalizado { background: var(--tinta); color: #fff; }
.estado--resultados { background: var(--rojo); color: #fff; }
.estado--ejemplo { background: transparent; color: var(--tinta-2); box-shadow: inset 0 0 0 1.5px currentColor; }
.afiche .estado--abierta { background: var(--celeste); color: var(--noche); }
.afiche .estado--proximo, .afiche .estado--cerrada { background: var(--noche-2); color: #fff; }
.afiche .estado--ejemplo { color: var(--sobre-noche); }

/* ------------------------------------------------------------ publicidad */
.publicidad { position: relative; }
.publicidad__rotulo { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--tinta-2); margin-bottom: 0.45rem; }
.publicidad__pieza { display: block; position: relative; overflow: hidden; background: var(--concreto); }
.publicidad__pieza img { width: 100%; height: 100%; object-fit: cover; }
.publicidad--principal .publicidad__pieza { aspect-ratio: 970 / 180; }
.publicidad--lateral .publicidad__pieza { aspect-ratio: 1 / 1; }
.publicidad__propia {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem) clamp(1.25rem, 1rem + 2vw, 2.5rem);
  background: var(--concreto); border: 2px dashed #9aa3b5; color: var(--tinta); text-decoration: none; height: 100%;
}
.publicidad__propia:hover { border-color: var(--azul); color: var(--tinta); }
.publicidad__propia strong { font-family: var(--f-afiche); font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1; display: block; }
.publicidad__propia span { color: var(--tinta-2); }
.publicidad--lateral .publicidad__propia { flex-direction: column; align-items: flex-start; justify-content: center; aspect-ratio: 1 / 1; height: auto; width: 100%; }
.publicidad__puntos { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.publicidad__puntos button { width: 28px; height: 28px; border: 0; background: none; padding: 0; display: grid; place-items: center; }
.publicidad__puntos button::before { content: ""; width: 10px; height: 10px; background: rgba(255,255,255,.6); box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.publicidad__puntos button[aria-current="true"]::before { background: #fff; }

/* ------------------------------------------------------------ accesos */
.accesos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-block: 1px solid var(--linea); }
.accesos a {
  display: flex; flex-direction: column; gap: 0.9rem; padding: 1.6rem 1.25rem 1.4rem;
  color: var(--tinta); text-decoration: none; border-left: 1px solid var(--linea);
  transition: background-color var(--medio) ease;
}
.accesos li:first-child a { border-left: 0; }
.accesos .i { width: 34px; height: 34px; color: var(--azul); transition: transform var(--medio) var(--salida); }
.accesos strong { font-family: var(--f-afiche); font-weight: 800; text-transform: uppercase; font-size: 1.75rem; line-height: 0.95; }
.accesos span { color: var(--tinta-2); font-size: 0.95rem; line-height: 1.4; }
.accesos a:hover { background: #fff; color: var(--tinta); }
.accesos a:hover .i { transform: translateY(-3px); color: var(--rojo); }
.accesos { list-style: none; }
@media (max-width: 1023px) {
  .accesos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .accesos a { border-left: 0; border-top: 1px solid var(--linea); }
  .accesos li:nth-child(even) a { border-left: 1px solid var(--linea); }
  .accesos li:nth-child(-n + 2) a { border-top: 0; }
  .accesos li:last-child { grid-column: 1 / -1; }
  .accesos li:last-child a { border-left: 0; }
}

/* ------------------------------------------------------------ tablero de eventos */
.tablero { list-style: none; border-top: 3px solid var(--noche); }
.fila-evento {
  display: grid; align-items: center; gap: 1rem 1.5rem;
  grid-template-columns: 112px minmax(0, 1fr) minmax(0, 0.5fr) 236px;
  padding: 1.15rem 0; border-bottom: 1px solid var(--linea);
}
.fila-evento__fecha { font-family: var(--f-afiche); line-height: 0.95; text-transform: uppercase; }
.fila-evento__fecha b { display: block; font-size: 2.6rem; font-weight: 900; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.fila-evento__fecha span { font-weight: 800; font-size: 1.05rem; color: var(--rojo-osc); letter-spacing: 0.04em; }
.fila-evento__titulo { font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.fila-evento__titulo a { color: var(--tinta); text-decoration: none; }
.fila-evento__titulo a::after { content: ""; position: absolute; inset: 0; }
.fila-evento__titulo a:hover { text-decoration: underline; text-decoration-color: var(--rojo); }
.fila-evento { position: relative; }
.fila-evento__meta { color: var(--tinta-2); font-size: 0.95rem; margin-top: 0.25rem; }
.fila-evento__sede { color: var(--tinta-2); font-size: 0.97rem; display: flex; gap: 0.4rem; align-items: flex-start; }
.fila-evento__sede .i { margin-top: 0.2em; color: var(--azul); }
.fila-evento__estado { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
.fila-evento__cierre { font-size: 0.85rem; color: var(--tinta-2); }
/* El tablero se adapta al ancho de su contenedor (portada, calendario, columnas). */
.tablero { container-type: inline-size; }
@container (max-width: 780px) {
  .fila-evento { grid-template-columns: 80px minmax(0, 1fr); gap: 0.5rem 1rem; align-items: start; }
  .fila-evento__fecha { grid-row: span 3; }
  .fila-evento__fecha b { font-size: 2.1rem; }
  .fila-evento__sede, .fila-evento__estado { grid-column: 2; }
  .fila-evento__estado { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; }
}

/* ------------------------------------------------------------ inicio: noticias + lateral */
.dos-columnas { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: start; }
@media (max-width: 1023px) { .dos-columnas { grid-template-columns: 1fr; } }
.lateral { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
.lateral .publicidad--lateral { max-width: 360px; width: 100%; min-width: 0; }

.notas { display: grid; gap: 0; list-style: none; }
.nota { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.25rem 1.75rem; padding: 1.5rem 0; border-top: 1px solid var(--linea); position: relative; }
.nota:first-child { border-top: 0; padding-top: 0; }
.nota__imagen { aspect-ratio: 4 / 3; background: var(--concreto); overflow: hidden; }
.nota__imagen img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--salida); }
.nota:hover .nota__imagen img { transform: scale(1.04); }
.nota__imagen--vacia { display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--linea); }
.nota__imagen--vacia img { width: 58%; height: auto; object-fit: contain; filter: none; transform: none !important; }
.nota__meta { font-size: 0.88rem; color: var(--tinta-2); display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; align-items: center; margin-top: 0.5rem; }
.nota__cat { color: var(--rojo-osc); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; }
.nota__titulo { font-weight: 700; font-size: 1.3rem; line-height: 1.25; }
.nota__titulo a { color: var(--tinta); text-decoration: none; }
.nota__titulo a::after { content: ""; position: absolute; inset: 0; }
.nota__titulo a:hover { text-decoration: underline; text-decoration-color: var(--rojo); }
.nota__resumen { color: var(--tinta-2); margin-top: 0.5rem; }
.nota--destacada { grid-template-columns: 1fr; }
.nota--destacada .nota__imagen { aspect-ratio: 16 / 8; }
.nota--destacada .nota__imagen--vacia { aspect-ratio: 16 / 5; }
.nota--destacada .nota__titulo { font-family: var(--f-afiche); font-weight: 800; text-transform: uppercase; font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem); line-height: 0.98; }
@media (max-width: 640px) {
  .nota { grid-template-columns: 112px minmax(0, 1fr); gap: 1rem; }
  .nota--destacada { grid-template-columns: 1fr; }
  .nota__titulo { font-size: 1.08rem; }
  .nota:not(.nota--destacada) .nota__resumen { display: none; }
}

.caja-resultados { background: var(--noche); color: #fff; padding: 1.6rem 1.5rem; }
.caja-resultados h3 { font-family: var(--f-afiche); font-weight: 800; text-transform: uppercase; font-size: 2rem; line-height: 1; }
.caja-resultados ul { list-style: none; margin: 1rem 0 0.5rem; }
.caja-resultados li { border-top: 1px solid rgba(255,255,255,.18); }
.caja-resultados li a { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.8rem 0; color: #fff; text-decoration: none; font-weight: 600; line-height: 1.35; }
.caja-resultados li a:hover { color: var(--celeste); }
.caja-resultados li .i { color: var(--celeste); margin-top: 0.1em; }
.caja-resultados small { display: block; color: var(--sobre-noche); font-weight: 400; font-size: 0.85rem; }
.caja-resultados p { color: var(--sobre-noche); margin-top: 0.8rem; }
.caja-resultados .enlace-flecha { color: #fff; }

/* ------------------------------------------------------------ institucional */
.manifiesto { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: end; }
.manifiesto__frase { font-family: var(--f-afiche); font-weight: 800; text-transform: uppercase; font-size: clamp(2.2rem, 1.4rem + 3.2vw, 4.25rem); line-height: 0.95; }
.manifiesto__frase em { font-style: normal; color: var(--celeste); }
.valores { list-style: none; display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.3); }
.valores li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,.3); }
.valores b { font-family: var(--f-afiche); font-weight: 800; text-transform: uppercase; font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.9rem); line-height: 1; }
.valores span { color: var(--sobre-noche); text-align: right; font-size: 0.95rem; }
@media (max-width: 899px) { .manifiesto { grid-template-columns: 1fr; align-items: start; } }

/* Muro de logos de clubes */
.muro-logos { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--linea); border: 1px solid var(--linea); }
.muro-logos li { background: #fff; }
.muro-logos a { display: grid; place-items: center; aspect-ratio: 1 / 1; padding: 1.25rem; transition: background-color var(--medio) ease; }
.muro-logos img { width: 100%; max-width: 132px; aspect-ratio: 1 / 1; object-fit: contain; transition: transform var(--medio) var(--salida); }
.muro-logos a:hover { background: var(--concreto); }
.muro-logos a:hover img { transform: scale(1.05); }
.muro-logos .logo-foto { border-radius: 50%; object-fit: cover; }

/* Disciplinas en lista tipográfica */
.lista-disciplinas { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0; }
.lista-disciplinas a {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.35rem 1.4rem 0.35rem 0;
  font-family: var(--f-afiche); font-weight: 800; text-transform: uppercase; color: var(--tinta);
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.4rem); line-height: 1; text-decoration: none;
}
.lista-disciplinas a::after { content: "/"; color: var(--rojo); margin-left: 1.2rem; font-weight: 700; }
.lista-disciplinas li:last-child a::after { content: none; }
.lista-disciplinas a:hover { color: var(--azul); }

/* Galería en inicio */
.mosaico { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 6px; aspect-ratio: 16 / 7; list-style: none; }
.mosaico li:first-child { grid-row: span 2; }
.mosaico a { display: block; height: 100%; overflow: hidden; background: var(--concreto); }
.mosaico img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--salida); }
.mosaico a:hover img { transform: scale(1.05); }
@media (max-width: 640px) { .mosaico { grid-template-columns: 1fr 1fr; aspect-ratio: auto; grid-template-rows: auto; } .mosaico li { aspect-ratio: 1; } .mosaico li:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; } }

/* Patrocinadores */
.patrocinadores { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.patrocinadores a, .patrocinadores span { display: grid; place-items: center; height: 96px; min-width: 160px; padding: 0.75rem 1.25rem; background: #fff; border: 1px solid var(--linea); }
.patrocinadores img { max-height: 64px; width: auto; max-width: 180px; object-fit: contain; }

/* Llamado de cierre */
.cierre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cierre h2 { font-family: var(--f-afiche); font-weight: 900; text-transform: uppercase; font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); line-height: 0.92; max-width: 16ch; }

/* ------------------------------------------------------------ filtros */
.filtros { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: end; padding: 1.25rem; background: var(--concreto); }
@media (max-width: 767px) { .filtros { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 42px; padding: 0 1rem;
  background: #fff; color: var(--tinta); border: 1.5px solid var(--borde);
  font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
  transition: background-color var(--rapido) ease, color var(--rapido) ease, border-color var(--rapido) ease;
}
.chip:hover { border-color: var(--noche); color: var(--tinta); }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--noche); border-color: var(--noche); color: #fff; }
.contador { color: var(--tinta-2); font-size: 0.95rem; margin: 1.25rem 0 0.75rem; }

/* ------------------------------------------------------------ clubes */
.fichas { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 899px) { .fichas { grid-template-columns: 1fr; } }
.ficha-club { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 1.25rem 1.5rem; padding: 1.5rem; background: #fff; border: 1px solid var(--linea); border-top: 3px solid var(--noche); scroll-margin-top: calc(var(--cab-alto) + 24px); }
.ficha-club:target { border-top-color: var(--rojo); box-shadow: 0 0 0 3px rgba(215, 40, 47, 0.2); }
.ficha-club__logo { width: 112px; height: 112px; object-fit: contain; }
.ficha-club__logo.logo-foto { border-radius: 50%; object-fit: cover; }
.ficha-club h3 { font-family: var(--f-afiche); font-weight: 800; text-transform: uppercase; font-size: 1.9rem; line-height: 0.95; }
.ficha-club__lugar { color: var(--tinta-2); margin-top: 0.35rem; font-size: 0.95rem; }
.ficha-club__disc { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.8rem 0 0; list-style: none; }
.ficha-club__disc li { font-size: 0.8rem; font-weight: 700; background: var(--concreto); padding: 0.25rem 0.55rem; text-transform: uppercase; letter-spacing: 0.04em; font-stretch: 87.5%; }
.datos { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.45rem 1rem; margin: 1rem 0 0; font-size: 0.97rem; grid-column: 1 / -1; }
.datos dt { color: var(--tinta-2); }
.datos dd { margin: 0; overflow-wrap: anywhere; }
.datos a { font-weight: 600; }
.ficha-club__pendiente { grid-column: 1 / -1; color: var(--tinta-2); font-size: 0.95rem; border-top: 1px solid var(--linea); padding-top: 0.9rem; }
@media (max-width: 480px) { .ficha-club { grid-template-columns: 80px minmax(0, 1fr); padding: 1.15rem; } .ficha-club__logo { width: 80px; height: 80px; } .ficha-club h3 { font-size: 1.55rem; } }

.requisitos { counter-reset: req; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
.requisitos li { counter-increment: req; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: 0.5rem; padding: 0.9rem 0; border-top: 1px solid rgba(255,255,255,.25); }
.requisitos li::before { content: counter(req, decimal-leading-zero); font-family: var(--f-afiche); font-weight: 800; font-size: 1.3rem; color: var(--celeste); line-height: 1.2; }
@media (max-width: 767px) { .requisitos { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ calendario */
.calendario { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: clamp(2rem, 1rem + 3vw, 3.5rem); align-items: start; }
@media (max-width: 1023px) { .calendario { grid-template-columns: 1fr; } }
.mes { border: 1px solid var(--linea); background: #fff; position: sticky; top: calc(var(--cab-alto) + 16px); }
@media (max-width: 1023px) { .mes { position: static; } }
.mes__cabeza { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; background: var(--noche); color: #fff; padding: 0.5rem; }
.mes__titulo { font-family: var(--f-afiche); font-weight: 800; text-transform: uppercase; font-size: 1.7rem; line-height: 1; }
.mes__nav { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: #fff; }
.mes__nav:hover { background: var(--noche-2); }
.mes__rejilla { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 0.6rem; gap: 3px; }
.mes__dia-semana { text-align: center; font-size: 0.78rem; font-weight: 700; color: var(--tinta-2); text-transform: uppercase; padding: 0.3rem 0; }
.mes__dia {
  position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center;
  border: 0; background: none; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--tinta);
  font-size: 0.98rem; padding: 0;
}
.mes__dia:disabled { color: transparent; cursor: default; }
.mes__dia--hoy { box-shadow: inset 0 0 0 2px var(--noche); }
.mes__dia--evento { background: var(--concreto); }
.mes__dia--evento::after { content: ""; position: absolute; bottom: 6px; left: 50%; width: 16px; height: 4px; transform: translateX(-50%); background: var(--azul); }
.mes__dia--cierre::after { background: var(--rojo); }
.mes__dia--evento:hover { background: var(--concreto-2); }
.mes__dia[aria-pressed="true"] { background: var(--noche); color: #fff; }
.mes__leyenda { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; padding: 0.75rem 1rem 1rem; font-size: 0.88rem; color: var(--tinta-2); border-top: 1px solid var(--linea); list-style: none; }
.mes__leyenda li { display: inline-flex; align-items: center; gap: 0.45rem; }
.mes__leyenda i { width: 16px; height: 4px; background: var(--azul); display: inline-block; }
.mes__leyenda .ley-cierre { background: var(--rojo); }
.mes__pie { padding: 0 1rem 1rem; display: grid; gap: 0.5rem; }
.dia-activo { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--noche); color: #fff; padding: 0.6rem 0.6rem 0.6rem 1rem; margin-bottom: 1rem; }
.dia-activo button { background: none; border: 1.5px solid rgba(255,255,255,.6); color: #fff; min-height: 40px; padding: 0 0.9rem; font-weight: 700; }

/* ------------------------------------------------------------ documentos y resultados */
.docs { list-style: none; border-top: 3px solid var(--noche); }
.doc { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 0.5rem 1.25rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--linea); position: relative; }
.doc__icono { width: 48px; height: 48px; display: grid; place-items: center; background: var(--concreto); color: var(--rojo-osc); }
.doc__icono .i { width: 26px; height: 26px; }
.doc__titulo { font-weight: 700; line-height: 1.3; }
.doc__titulo a { color: var(--tinta); text-decoration: none; }
.doc__titulo a::after { content: ""; position: absolute; inset: 0; }
.doc__titulo a:hover { text-decoration: underline; text-decoration-color: var(--rojo); }
.doc__meta { color: var(--tinta-2); font-size: 0.9rem; margin-top: 0.2rem; display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; }
.doc__accion { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; color: var(--azul); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.04em; font-stretch: 87.5%; }
.doc--sin-archivo .doc__accion { color: var(--tinta-2); }
@media (max-width: 560px) { .doc { grid-template-columns: 40px minmax(0, 1fr); } .doc__icono { width: 40px; height: 40px; } .doc__accion { grid-column: 2; } }

.pestanas { display: flex; gap: 0; border-bottom: 1px solid var(--linea); overflow-x: auto; scrollbar-width: none; margin-bottom: 1.5rem; }
.pestanas button { flex: none; background: none; border: 0; border-bottom: 3px solid transparent; padding: 0.9rem 1.1rem; font-weight: 700; color: var(--tinta-2); white-space: nowrap; }
.pestanas button[aria-selected="true"] { color: var(--tinta); border-bottom-color: var(--rojo); }
.pestanas button:hover { color: var(--tinta); }

/* ------------------------------------------------------------ evento */
.evento-info { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: start; }
@media (max-width: 1023px) { .evento-info { grid-template-columns: 1fr; } }
.ficha-tecnica { display: grid; grid-template-columns: minmax(130px, auto) minmax(0, 1fr); border-top: 3px solid var(--noche); margin: 0; }
.ficha-tecnica dt, .ficha-tecnica dd { padding: 0.85rem 0; border-bottom: 1px solid var(--linea); margin: 0; }
.ficha-tecnica dt { color: var(--tinta-2); padding-right: 1rem; }
.ficha-tecnica dd { font-weight: 600; }
.compartir { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ------------------------------------------------------------ prosa */
.prosa { max-width: 70ch; font-size: 1.08rem; line-height: 1.7; }
.prosa > * + * { margin-top: 1.1em; }
.prosa h2 { font-family: var(--f-afiche); font-weight: 800; text-transform: uppercase; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem); line-height: 1; margin-top: 2.2em; scroll-margin-top: calc(var(--cab-alto) + 70px); }
.prosa h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.8em; }
.prosa ul, .prosa ol { padding-left: 1.3em; }
.prosa li + li { margin-top: 0.4em; }
.prosa li::marker { color: var(--rojo); }
.prosa strong { font-weight: 700; }
.columna-lectura { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.indice { position: sticky; top: calc(var(--cab-alto) + 24px); border-top: 3px solid var(--noche); }
.indice h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--tinta-2); padding: 0.9rem 0 0.4rem; }
.indice ol { list-style: none; }
.indice a { display: block; padding: 0.45rem 0; color: var(--tinta); text-decoration: none; font-weight: 600; font-size: 0.97rem; border-bottom: 1px solid var(--linea); }
.indice a:hover { color: var(--azul); }
@media (max-width: 1023px) { .columna-lectura { grid-template-columns: 1fr; } .indice { position: static; } }

/* La Liga */
.mision { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); }
@media (max-width: 899px) { .mision { grid-template-columns: 1fr; } }
.lista-marcas { list-style: none; border-top: 3px solid var(--noche); }
.lista-marcas li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 0.9rem; padding: 0.95rem 0; border-bottom: 1px solid var(--linea); font-size: 1.08rem; line-height: 1.5; }
.lista-marcas li::before { content: ""; width: 12px; height: 12px; margin-top: 0.45em; background: var(--rojo); transform: skewX(calc(var(--angulo) * -1)); }
.vision { font-family: var(--f-afiche); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.6rem); line-height: 1; max-width: 22ch; }
.hitos { list-style: none; display: grid; gap: 0; border-top: 3px solid var(--noche); }
.hitos li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 1.5rem; padding: 1.15rem 0; border-bottom: 1px solid var(--linea); }
.hitos b { font-family: var(--f-afiche); font-weight: 900; font-size: 2.4rem; line-height: 1; color: var(--rojo-osc); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .hitos li { grid-template-columns: 1fr; gap: 0.25rem; } }
.personas { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2rem 1.5rem; }
.persona__foto { aspect-ratio: 4 / 5; background: var(--concreto); overflow: hidden; display: grid; place-items: center; }
.persona__foto img { width: 100%; height: 100%; object-fit: cover; }
.persona__iniciales { font-family: var(--f-afiche); font-weight: 900; font-size: 4rem; color: var(--azul); }
.persona h3 { margin-top: 0.9rem; font-size: 1.15rem; font-weight: 700; }
.persona p { color: var(--rojo-osc); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.2rem; }

/* Servicios */
.servicios { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 1rem + 3vw, 4rem); }
@media (max-width: 899px) { .servicios { grid-template-columns: 1fr; } }
.servicio { padding: 1.75rem 0; border-top: 3px solid var(--noche); display: grid; gap: 0.75rem; align-content: start; }
.servicio__para { color: var(--rojo-osc); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.82rem; }
.servicio h3 { font-family: var(--f-afiche); font-weight: 800; text-transform: uppercase; font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); line-height: 0.95; }
.servicio p { color: var(--tinta-2); }
.servicio ul { padding-left: 1.2em; color: var(--tinta-2); }
.servicio li::marker { color: var(--rojo); }
.servicio__valor { font-weight: 700; }
.tarifas { width: 100%; border-collapse: collapse; border-top: 3px solid var(--noche); }
.tarifas th, .tarifas td { text-align: left; padding: 0.9rem 0.5rem 0.9rem 0; border-bottom: 1px solid var(--linea); vertical-align: top; }
.tarifas th { font-weight: 600; }
.tarifas td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Pagos */
.cuentas { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.cuenta-pago { background: #fff; border: 1px solid var(--linea); border-top: 3px solid var(--noche); padding: 1.25rem; }
.cuenta-pago h3 { font-family: var(--f-afiche); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; line-height: 1; }
.cuenta-pago .numero { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 0.6rem; letter-spacing: 0.02em; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.cuenta-pago p { color: var(--tinta-2); font-size: 0.95rem; margin-top: 0.3rem; }
.copiar { display: inline-flex; align-items: center; gap: 0.3rem; min-height: 36px; padding: 0 0.6rem; background: var(--concreto); border: 0; font-size: 0.82rem; font-weight: 700; color: var(--azul); }
.pasos { list-style: none; counter-reset: paso; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.pasos li { counter-increment: paso; border-top: 3px solid var(--noche); padding-top: 1rem; }
.pasos li::before { content: counter(paso); display: block; font-family: var(--f-afiche); font-weight: 900; font-size: 3rem; line-height: 1; color: var(--rojo); }
.pasos b { display: block; font-size: 1.1rem; margin: 0.4rem 0 0.25rem; }
.pasos p { color: var(--tinta-2); }
@media (max-width: 767px) { .pasos { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ formularios */
.formulario { display: grid; gap: 2rem; }
.formulario fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 1.25rem; min-width: 0; }
.formulario legend { font-family: var(--f-afiche); font-weight: 800; text-transform: uppercase; font-size: 1.75rem; line-height: 1; padding: 0 0 1rem; border-bottom: 3px solid var(--noche); width: 100%; margin-bottom: 0.5rem; }
.formulario legend small { display: block; font-family: var(--f-texto); text-transform: none; font-weight: 400; font-size: 0.95rem; color: var(--tinta-2); margin-top: 0.4rem; line-height: 1.4; }
.rejilla-campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.rejilla-campos--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.campo--ancho { grid-column: 1 / -1; }
@media (max-width: 767px) { .rejilla-campos, .rejilla-campos--3 { grid-template-columns: 1fr; } }
.campo { display: grid; gap: 0.45rem; align-content: start; min-width: 0; }
.campo > label, .campo__etiqueta { font-weight: 700; font-size: 0.98rem; }
.campo__opcional { font-weight: 400; color: var(--tinta-2); }
.campo__ayuda { font-size: 0.88rem; color: var(--tinta-2); line-height: 1.45; }
.control {
  width: 100%; min-height: 52px; padding: 0.7rem 0.9rem;
  background: #fff; color: var(--tinta);
  border: 1.5px solid var(--borde); border-radius: 0;
  font-size: 1rem; line-height: 1.4;
  transition: border-color var(--rapido) ease, box-shadow var(--rapido) ease;
  -webkit-appearance: none; appearance: none;
}
.control::placeholder { color: #6b7487; }
.control:hover { border-color: var(--tinta); }
.control:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(27, 63, 166, 0.25); }
textarea.control { min-height: 150px; resize: vertical; }
select.control {
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%230d1017' d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 18px;
}
.control[aria-invalid="true"] { border-color: var(--rojo); box-shadow: 0 0 0 3px rgba(215, 40, 47, 0.15); }
.campo__error { display: flex; gap: 0.4rem; align-items: flex-start; color: var(--rojo-osc); font-weight: 600; font-size: 0.92rem; }
.campo__error .i { margin-top: 0.1em; }
.marcar { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 0.75rem; align-items: start; cursor: pointer; line-height: 1.5; }
.marcar input { width: 22px; height: 22px; margin: 0.12em 0 0; accent-color: var(--azul); cursor: pointer; }
.casillas { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 0.5rem; list-style: none; }
.casillas label { display: flex; gap: 0.6rem; align-items: center; min-height: 48px; padding: 0.5rem 0.75rem; border: 1.5px solid var(--linea); background: #fff; cursor: pointer; font-weight: 600; font-size: 0.95rem; }
.casillas input { width: 20px; height: 20px; accent-color: var(--azul); flex: none; }
.casillas label:has(input:checked) { border-color: var(--azul); background: #eef2fb; }
.archivo { position: relative; display: grid; gap: 0.35rem; justify-items: center; text-align: center; padding: 1.5rem 1rem; border: 2px dashed var(--borde); background: var(--concreto); transition: border-color var(--rapido) ease, background-color var(--rapido) ease; }
.archivo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.archivo .i { width: 32px; height: 32px; color: var(--azul); }
.archivo strong { font-weight: 700; }
.archivo span { color: var(--tinta-2); font-size: 0.9rem; }
.archivo:hover, .archivo[data-arrastrando] { border-color: var(--azul); background: #e8eef9; }
.archivo:focus-within { box-shadow: 0 0 0 3px rgba(27, 63, 166, 0.3); border-color: var(--azul); }
.archivo[data-lleno] { border-style: solid; border-color: var(--azul); background: #eef2fb; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulario__envio { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; border-top: 1px solid var(--linea); padding-top: 1.5rem; }
.formulario__envio p { color: var(--tinta-2); font-size: 0.92rem; max-width: 52ch; }
.btn[data-cargando] { pointer-events: none; }
.btn[data-cargando]::after { content: ""; width: 16px; height: 16px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: girar 700ms linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

.alerta { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0.85rem; padding: 1.1rem 1.25rem; background: var(--concreto); border-top: 4px solid var(--azul); }
.alerta .i { width: 26px; height: 26px; color: var(--azul); }
.alerta--error { border-top-color: var(--rojo); }
.alerta--error .i { color: var(--rojo-osc); }
.alerta--ok { border-top-color: var(--azul); background: #eef2fb; }
.alerta h3 { font-size: 1.1rem; font-weight: 700; }
.alerta p { color: var(--tinta-2); margin-top: 0.25rem; }
.alerta .folio { font-weight: 700; color: var(--tinta); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ vacíos y carga */
.vacio { display: grid; gap: 0.6rem; justify-items: start; padding: clamp(1.75rem, 1.25rem + 2vw, 3rem); background: var(--concreto); border-top: 3px solid var(--noche); }
.vacio .i { width: 36px; height: 36px; color: var(--azul); }
.vacio h3 { font-family: var(--f-afiche); font-weight: 800; text-transform: uppercase; font-size: 1.8rem; line-height: 1; }
.vacio p { color: var(--tinta-2); max-width: 56ch; }
.banda--noche .vacio { background: var(--noche-2); border-top-color: var(--celeste); }
.banda--noche .vacio p { color: var(--sobre-noche); }
.esqueleto { display: grid; gap: 0.75rem; }
.esqueleto span { display: block; height: 72px; background: linear-gradient(90deg, var(--concreto) 0%, #f6f8fa 40%, var(--concreto) 80%); background-size: 300% 100%; animation: brillo 1.4s ease infinite; }
@keyframes brillo { from { background-position: 100% 0; } to { background-position: 0 0; } }


/* ------------------------------------------------------------ galería */
.albumes { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem 1.5rem; }
.album button { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: var(--tinta); }
.album__portada { aspect-ratio: 4 / 3; overflow: hidden; background: var(--concreto); position: relative; }
.album__portada img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--salida); }
.album button:hover img { transform: scale(1.04); }
.album__cantidad { position: absolute; right: 0; bottom: 0; background: var(--noche); color: #fff; padding: 0.35rem 0.7rem; font-weight: 700; font-size: 0.85rem; display: inline-flex; gap: 0.4rem; align-items: center; }
.album h3 { margin-top: 0.85rem; font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.album p { color: var(--tinta-2); font-size: 0.92rem; margin-top: 0.2rem; }
.visor { padding: 0; border: 0; background: rgba(5, 11, 26, 0.96); color: #fff; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; }
.visor::backdrop { background: rgba(5, 11, 26, 0.9); }
.visor[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: aparecer var(--medio) ease; }
.visor__barra { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.75rem 1rem; padding-top: max(0.75rem, env(safe-area-inset-top)); }
.visor__barra p { font-weight: 600; }
.visor__figura { margin: 0; display: grid; place-items: center; padding: 0 0.5rem; min-height: 0; position: relative; }
.visor__figura img { max-width: 100%; max-height: 100%; object-fit: contain; }
.visor__ctrl { width: 52px; height: 52px; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 0; color: #fff; }
.visor__ctrl:hover { background: rgba(255,255,255,.2); }
.visor__ctrl .i { width: 26px; height: 26px; }
.visor__pie { display: flex; justify-content: center; align-items: center; gap: 1rem; padding: 0.75rem 1rem; padding-bottom: max(0.75rem, env(safe-area-inset-bottom)); }
.visor__pie span { font-variant-numeric: tabular-nums; min-width: 6ch; text-align: center; }
.videos { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--noche); overflow: hidden; }
.video button { position: absolute; inset: 0; width: 100%; border: 0; background: none; color: #fff; display: grid; place-items: center; padding: 0; }
.video button img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.video button .i { position: relative; width: 72px; height: 72px; background: var(--rojo); padding: 18px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-titulo { margin-top: 0.6rem; font-weight: 600; }

/* Mapa */
.mapa { aspect-ratio: 16 / 10; background: var(--concreto); position: relative; }
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mapa button { position: absolute; inset: 0; width: 100%; border: 0; background: var(--concreto); display: grid; place-content: center; justify-items: center; gap: 0.6rem; text-align: center; padding: 1rem; color: var(--tinta); }
.mapa button .i { width: 40px; height: 40px; color: var(--rojo); }
.mapa button strong { font-weight: 700; }
.mapa button span { color: var(--tinta-2); font-size: 0.92rem; max-width: 40ch; }

/* Contacto */
.contacto { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
@media (max-width: 1023px) { .contacto { grid-template-columns: 1fr; } }
.canales { list-style: none; border-top: 3px solid var(--noche); }
.canales li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--linea); }
.canales .i { width: 28px; height: 28px; color: var(--azul); margin-top: 0.15rem; }
.canales small { display: block; color: var(--tinta-2); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.canales a, .canales p { font-weight: 600; font-size: 1.08rem; overflow-wrap: anywhere; }

/* Mapa del sitio */
.mapa-sitio { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2rem 2.5rem; }
.mapa-sitio h2 { font-family: var(--f-afiche); font-weight: 800; text-transform: uppercase; font-size: 1.9rem; border-bottom: 3px solid var(--noche); padding-bottom: 0.5rem; margin-bottom: 0.5rem; }
.mapa-sitio ul { list-style: none; }
.mapa-sitio a { display: block; padding: 0.45rem 0; font-weight: 600; }

/* ------------------------------------------------------------ pie */
.pie { background: var(--noche); color: var(--sobre-noche); margin-top: 0; }
.pie a { color: #fff; text-decoration: none; }
.pie a:hover { color: var(--celeste); text-decoration: underline; }
.pie__rejilla { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 2.5rem 2rem; padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); }
.pie__marca img { width: 220px; background: #fff; padding: 12px 16px; }
.pie__marca p { margin-top: 1.25rem; max-width: 36ch; font-size: 0.97rem; }
.pie__contacto { list-style: none; margin-top: 1.25rem; display: grid; gap: 0.5rem; font-size: 0.97rem; }
.pie__contacto li { display: flex; gap: 0.6rem; align-items: flex-start; }
.pie__contacto .i { color: var(--celeste); margin-top: 0.2em; }
.pie__redes { list-style: none; display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.pie__redes a { width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,.35); }
.pie__redes a:hover { background: #fff; color: var(--noche); border-color: #fff; text-decoration: none; }
.pie__redes .i { width: 22px; height: 22px; }
.pie__titulo { font-family: var(--f-afiche); font-weight: 800; text-transform: uppercase; color: #fff; font-size: 1.35rem; margin-bottom: 0.9rem; }
.pie__col ul { list-style: none; display: grid; gap: 0.55rem; font-size: 0.97rem; }
.pie__legal { border-top: 1px solid rgba(255,255,255,.15); }
.pie__legal-fila { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1.25rem calc(1.25rem + env(safe-area-inset-bottom)); font-size: 0.9rem; }
.pie__legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
@media (max-width: 1023px) { .pie__rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pie__marca { grid-column: 1 / -1; } }
@media (max-width: 480px) { .pie__rejilla { grid-template-columns: 1fr; } }

/* Aviso flotante */
.aviso-flotante {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 70;
  transform: translateX(-50%); background: var(--noche); color: #fff; padding: 0.85rem 1.25rem;
  font-weight: 600; box-shadow: 0 16px 40px -16px rgba(0,0,0,.5); max-width: calc(100vw - 32px);
  animation: subir-aviso 320ms var(--salida);
}
@keyframes subir-aviso { from { opacity: 0; transform: translate(-50%, 12px); } }

/* Utilidades de composición */
.pila > * + * { margin-top: var(--espacio, 1.5rem); }
.centro-texto { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.separador-seccion { height: 0; border-top: 1px solid var(--linea); }

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

@media print {
  .cabecera, .cajon, .pie, .publicidad, .subnav { display: none !important; }
  .afiche, .portada { clip-path: none; background: #fff; color: #000; }
}

/* Elementos enfocados por código para lectores de pantalla (alertas, vistas): sin anillo visual. */
[tabindex="-1"]:focus { outline: none; }

