/* ==========================================================================
   CF CRACKS · componentes
   Las piezas que salen de piezas.py (y que js/vivo.js repinta): cabecera, barra
   del móvil, botón, enlace, cabecera de página, foto, partido, noticia, ficha
   de jugador, tabla, aviso, filtros y pie.
   ========================================================================== */

/* ================================================================ cabecera */
/* Una barra blanca con su raya. En escritorio se queda arriba, traslúcida, y el
   contenido pasa por debajo; en móvil no, porque ahí navega la barra de abajo. */
.cab {
  position: relative;
  z-index: 40;
  background: var(--blanco);
  border-bottom: 1px solid var(--raya);
  view-transition-name: cabecera;
}
.cab__caja {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e-5);
  height: var(--alto-cabecera);
}
.cab__marca {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--marino);
  text-decoration: none;
}
.cab__marca img {
  width: 2.25rem;
  height: 2.25rem;
}
.cab__nombre {
  font-family: var(--f-rotulo);
  font-size: 1.375rem;
  font-weight: 640;
  font-stretch: 76%;
  letter-spacing: -0.005em;
  line-height: 1;
}
.cab__nav {
  display: none;
}
@media (min-width: 56.25em) {
  .cab {
    position: sticky;
    top: 0;
    background: rgb(255 255 255 / 0.9);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    backdrop-filter: saturate(1.6) blur(14px);
  }
  .cab__marca img {
    width: 2.75rem;
    height: 2.75rem;
  }
  .cab__nombre {
    font-size: 1.5rem;
  }
  .cab__nav {
    display: block;
    align-self: stretch;
  }
  .cab__nav ul {
    display: flex;
    gap: clamp(1rem, 2.4vw, 2.25rem);
    height: 100%;
  }
  .cab__nav a {
    display: flex;
    align-items: center;
    height: 100%;
    font-size: var(--t-pequeno);
    font-weight: var(--p-medio);
    font-stretch: var(--a-interfaz);
    text-decoration: none;
    box-shadow: inset 0 -2px 0 transparent;
    transition: box-shadow var(--d-gesto) var(--salida), color var(--d-gesto) var(--salida);
  }
  /* la sección en la que estás: su raya azul, en el canto de la cabecera */
  .cab__nav a[aria-current="page"] {
    color: var(--azul);
    box-shadow: inset 0 -2px 0 var(--azul);
  }
}
@media (hover: hover) and (pointer: fine) {
  .cab__nav a:hover {
    color: var(--azul);
    box-shadow: inset 0 -2px 0 var(--raya-fuerte);
  }
  .cab__nav a[aria-current="page"]:hover {
    box-shadow: inset 0 -2px 0 var(--azul);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .cab {
    background: var(--blanco);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ============================================ la barra de pestañas del móvil */
/* Fija abajo, a un pulgar. Blanca y traslúcida, como la cabecera. En escritorio
   no existe. */
.barra {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 45;
  padding-bottom: var(--seguro-abajo);
  background: rgb(255 255 255 / 0.93);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-top: 1px solid var(--raya);
  view-transition-name: barra;
}
.barra ul {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: var(--alto-barra);
}
.barra a,
.barra button {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.1875rem;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tinta-suave);
  font-size: 0.6875rem;
  font-weight: 560;
  font-stretch: var(--a-interfaz);
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.barra svg {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform var(--d-pulso) var(--salida);
}
.barra [aria-current="page"] {
  color: var(--azul);
}
/* la pestaña activa lleva su raya azul sobre la raya de la barra */
.barra [aria-current="page"]::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 24%;
  right: 24%;
  height: 2px;
  background: var(--azul);
}
.barra a:active svg,
.barra button:active svg {
  transform: scale(0.9);
}
.barra :focus-visible {
  outline-offset: -4px;
}
@media (min-width: 56.25em) {
  .barra,
  .panel-mas {
    display: none;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .barra {
    background: var(--blanco);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* La hoja «Más»: sale de debajo del pulgar. popover + @starting-style. Es lo
   único con esquinas de 14 px, y solo las de arriba. */
.panel-mas {
  position: fixed;
  inset: auto 0 calc(var(--alto-barra) + var(--seguro-abajo)) 0;
  width: 100%;
  max-width: none;
  max-height: calc(100dvh - var(--alto-barra) - var(--seguro-abajo) - 4rem);
  margin: 0;
  padding: var(--e-3) var(--margen) var(--e-4);
  border: 0;
  border-radius: var(--r-hoja) var(--r-hoja) 0 0;
  background: var(--blanco);
  color: var(--tinta);
  box-shadow: 0 -1px 0 var(--raya), 0 -22px 44px -26px rgb(10 37 64 / 0.5);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(1rem);
  transition:
    opacity var(--d-hoja) var(--salida),
    transform var(--d-hoja) var(--salida),
    overlay var(--d-hoja) allow-discrete,
    display var(--d-hoja) allow-discrete;
}
.panel-mas:popover-open,
.panel-mas[data-abierto] {
  opacity: 1;
  transform: none;
}
@starting-style {
  .panel-mas:popover-open {
    opacity: 0;
    transform: translateY(1rem);
  }
}
.panel-mas::backdrop {
  background: rgb(10 37 64 / 0.34);
}
/* navegadores sin popover: la hoja no existe hasta que sitio.js la abre */
@supports not selector(:popover-open) {
  .panel-mas:not([data-abierto]) {
    display: none;
  }
}
.panel-mas a {
  display: flex;
  align-items: center;
  min-height: 3.25rem;
  border-bottom: 1px solid var(--raya);
  font-size: 1.125rem;
  font-weight: 560;
  font-stretch: var(--a-3);
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
}
.panel-mas li:last-child a {
  border-bottom: 0;
}
.panel-mas a[aria-current="page"],
.panel-mas a:active {
  color: var(--azul);
}
@media (prefers-reduced-motion: reduce) {
  .panel-mas {
    transform: none;
    transition: opacity 120ms linear, overlay 120ms allow-discrete, display 120ms allow-discrete;
  }
}

/* ========================================================= botón y enlace */
/* El botón es una placa: el texto y, en su propia celda, la flecha. Uno relleno
   por pantalla. */
.boton {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  min-height: 3.25rem;
  padding-left: 1.25rem;
  border-radius: var(--r-placa);
  background: var(--azul);
  color: var(--blanco);
  font-size: 1rem;
  font-weight: var(--p-fuerte);
  font-stretch: var(--a-interfaz);
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: background-color var(--d-gesto) var(--salida), transform var(--d-pulso) var(--salida);
}
.boton__flecha {
  display: grid;
  place-items: center;
  align-self: stretch;
  width: 3.25rem;
  border-left: 1px solid rgb(255 255 255 / 0.3);
}
.boton__flecha svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform var(--d-gesto) var(--salida);
}
.boton:active {
  transform: scale(0.98);
  background: var(--azul-hondo);
}
/* sobre la pintura, la placa es blanca */
.boton--claro {
  background: var(--blanco);
  color: var(--marino);
}
.boton--claro .boton__flecha {
  border-left-color: var(--raya);
  color: var(--azul);
}
.boton--claro:active {
  background: var(--azul-tenue);
}
@media (hover: hover) and (pointer: fine) {
  .boton:hover {
    background: var(--azul-hondo);
  }
  .boton--claro:hover {
    background: var(--azul-tenue);
  }
  .boton:hover .boton__flecha svg {
    transform: translateX(3px);
  }
}

.enlace {
  display: inline-block;
  padding: 0;
  border: 0;
  background: none;
  color: var(--azul);
  font-weight: 560;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  cursor: pointer;
  transition: transform var(--d-pulso) var(--salida);
}
.enlace:active {
  transform: scale(0.98);
}
.pintura .enlace {
  color: var(--blanco);
}
@media (hover: hover) and (pointer: fine) {
  .enlace:hover {
    text-decoration-thickness: 2px;
  }
}

/* ================================================================== migas */
.migas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem 0.5rem;
  font-size: var(--t-menor);
  color: var(--tinta-suave);
}
.migas li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--raya-fuerte);
}
.migas a {
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .migas a:hover {
    text-decoration: underline;
  }
}

/* ====================================================== cabecera de página */
/* Con banda: la foto real de la sección de pared a pared, el velo marino y el
   título pintado encima. Sin banda (páginas de texto): el título sobre hormigón. */
.portadilla__caja {
  display: grid;
  gap: var(--e-3);
  padding-block: var(--e-6) var(--e-4);
}
.portadilla h1 {
  max-width: 20ch;
}
.portadilla--banda {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(14rem, 30vw, 22.5rem);
  overflow: hidden;
}
.portadilla__foto {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.portadilla__foto picture,
.portadilla__foto img {
  width: 100%;
  height: 100%;
}
.portadilla__foto img {
  object-fit: cover;
  object-position: 50% 50%;
}
/* el velo: la foto se hunde en marino donde va el título */
.portadilla--banda::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgb(10 37 64 / 0.94) 0%, rgb(10 37 64 / 0.68) 34%, rgb(10 37 64 / 0.22) 72%, rgb(10 37 64 / 0.1) 100%),
    linear-gradient(to right, rgb(10 37 64 / 0.5) 0%, rgb(10 37 64 / 0) 68%);
}
.portadilla--banda .portadilla__caja {
  padding-block: var(--e-8) var(--e-5);
}
.portadilla--banda .migas {
  color: rgb(255 255 255 / 0.86);
}
.portadilla--banda .migas li + li::before {
  color: rgb(255 255 255 / 0.5);
}
.portadilla__pie {
  display: grid;
  gap: var(--e-3);
  padding-top: var(--e-5);
}
.portadilla__datos {
  color: var(--tinta-suave);
  font-size: var(--t-dato-pequeno);
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* paralaje leve: al irse, la foto se queda un poco atrás */
    .portadilla__foto img {
      animation: banda-atras linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }
    @keyframes banda-atras {
      to {
        transform: translateY(14%) scale(1.04);
      }
    }
  }
}

/* el punto de encuadre de una foto va en una clase, nunca en un style */
.foco--alto {
  object-position: 50% 22% !important;
}
.foco--medio-alto {
  object-position: 50% 38% !important;
}
.foco--bajo {
  object-position: 50% 78% !important;
}
.foco--izquierda {
  object-position: 22% 50% !important;
}
.foco--derecha {
  object-position: 78% 50% !important;
}

/* ==================================================================== foto */
/* La foto como documento: en color, a su tamaño o menor, en su placa. Nunca
   lleva texto encima. */
.foto picture {
  overflow: hidden;
  border-radius: var(--r-placa);
  background: var(--hormigon);
}
.foto img {
  width: 100%;
}
.foto figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.125rem 1rem;
  margin-top: 0.625rem;
  font-size: var(--t-menor);
  line-height: 1.4;
  color: var(--tinta-suave);
}
.foto figcaption .dato {
  font-size: 0.75rem;
}
.pintura .foto figcaption {
  color: var(--niebla);
}

/* varias fotos en rejilla: con número impar, la primera ocupa el ancho */
.galeria {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.375rem;
}
.galeria picture {
  aspect-ratio: 4 / 3;
}
.galeria img {
  height: 100%;
  object-fit: cover;
}
.galeria li:first-child:nth-last-child(odd) {
  grid-column: 1 / -1;
}
.galeria li:first-child:nth-last-child(odd) picture {
  aspect-ratio: 16 / 9;
}

/* una tira de tres: en móvil se pasa con el dedo, con su imán */
.tira {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78vw;
  gap: 0.375rem;
  margin-inline: calc(var(--margen) * -1);
  padding-inline: var(--margen);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--margen);
  scrollbar-width: none;
}
.tira::-webkit-scrollbar {
  display: none;
}
.tira li {
  scroll-snap-align: start;
}
.tira picture {
  aspect-ratio: 3 / 2;
}
.tira img {
  height: 100%;
  object-fit: cover;
}
@media (min-width: 48em) {
  .tira {
    grid-auto-columns: minmax(0, 1fr);
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
}

/* ================================================================= partido */
/* Fecha a máquina, dos renglones (local arriba, visitante abajo) y a la derecha
   el tanteo, la hora o el estado. Es una fila: lo que la separa de la siguiente
   es una raya. El nombre de un equipo es un dato: se lee entero, aunque ocupe
   dos renglones; por eso cada cifra del tanteo va en el renglón de su equipo. */
.partidos {
  display: grid;
  border-top: 1px solid var(--raya);
}
.partido {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "cuando cuando"
    "local goles-local"
    "visita goles-visita"
    "pie pie";
  column-gap: var(--e-4);
  row-gap: 0.3125rem;
  padding-block: 0.9375rem;
  border-bottom: 1px solid var(--raya);
}
.partido__cuando {
  grid-area: cuando;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.75em;
  margin-bottom: 0.125rem;
  font-size: var(--t-dato-pequeno);
  color: var(--tinta-suave);
}
.partido__cuando time {
  font-size: inherit;
  font-weight: var(--p-dato-fuerte);
  color: var(--tinta);
}
.partido__lado {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  line-height: 1.25;
}
.partido__lado--local {
  grid-area: local;
}
.partido__lado--visita {
  grid-area: visita;
}
.partido__nombre {
  min-width: 0;
  overflow-wrap: anywhere;
}
.partido__lado--propio .partido__nombre {
  font-weight: var(--p-fuerte);
  color: var(--marino);
}
/* el tanteo no pinta caja: sus hijos son celdas de la fila del partido */
.partido__tanteo {
  display: contents;
  font-family: var(--f-rotulo);
  font-stretch: var(--a-cifra);
  font-weight: var(--p-cifra);
  font-size: 1.625rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--marino);
}
.partido__tanteo > * {
  align-self: center;
  justify-self: end;
  font-weight: inherit;
}
.partido__tanteo > :first-child {
  grid-area: goles-local;
}
.partido__tanteo > :last-child {
  grid-area: goles-visita;
}
/* la hora y el estado son una sola pieza: ocupan los dos renglones */
.partido .partido__tanteo--hora > *,
.partido .partido__tanteo--texto > * {
  grid-area: auto;
  grid-column: 2;
  grid-row: 2 / span 2;
}
.partido__tanteo--hora {
  font-size: 1.75rem;
  color: var(--azul);
}
.partido__tanteo--texto {
  font-family: var(--f);
  font-stretch: var(--a-interfaz);
  font-size: var(--t-menor);
  font-weight: var(--p-medio);
  color: var(--tinta-suave);
}
.partido__pie {
  grid-area: pie;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem var(--e-4);
  margin-top: 0.125rem;
  font-size: var(--t-dato-pequeno);
  color: var(--tinta-suave);
}
/* Aplazado o suspendido: los equipos se apagan y no hay tanteo. */
.partido[data-estado="aplazado"] .partido__lado,
.partido[data-estado="suspendido"] .partido__lado {
  opacity: 0.66;
}

/* El estado. «En juego» es la única placa azul, con su piloto encendido
   (Regla de la Tinta Única: no hay color de alarma). */
.estado {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: var(--p-dato-fuerte);
}
.estado--vivo {
  padding: 0.125rem 0.5rem;
  border-radius: var(--r-placa);
  background: var(--azul);
  color: var(--blanco);
}
/* el piloto está encendido, no parpadea: en la web no se mueve nada por su cuenta */
.estado--vivo::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-radius: var(--r-circulo);
  background: var(--blanco);
}

/* La chapa: el escudo, o las iniciales del rival si su escudo no llega. Es de
   las pocas cosas redondas, porque un escudo lo es. */
.chapa {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--r-circulo);
  background: var(--hormigon);
  box-shadow: inset 0 0 0 1px var(--raya);
  color: var(--tinta-suave);
  font-family: var(--f-dato);
  font-size: 0.625rem;
  font-weight: var(--p-dato-fuerte);
  letter-spacing: 0;
  overflow: hidden;
}
.chapa img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.chapa--propia {
  background: none;
  box-shadow: none;
}
/* El escudo del rival llega de la federación, con fondos de todo tipo: va sobre blanco. */
.chapa--escudo {
  background: var(--blanco);
}
.chapa--escudo img {
  padding: 2px;
}

/* El próximo partido de un equipo: la única placa azul de su página. */
.partido--cartel {
  padding: var(--e-5);
  border: 0;
  border-radius: var(--r-placa);
  background: var(--azul);
  color: var(--blanco);
  row-gap: 0.5rem;
}
.partido--cartel .partido__cuando,
.partido--cartel .partido__pie {
  font-size: var(--t-dato);
  color: var(--sobre-azul);
}
.partido--cartel .partido__cuando time,
.partido--cartel .partido__lado--propio .partido__nombre,
.partido--cartel .partido__tanteo {
  color: var(--blanco);
}
.partido--cartel .partido__lado {
  font-size: clamp(1.125rem, 1rem + 0.8vw, 1.5rem);
}
/* aquí el nombre del rival se lee entero */
.partido--cartel .partido__nombre {
  white-space: normal;
  overflow: visible;
}
/* sobre la pintura azul, el escudo (azul) va en su disco blanco: si no, desaparece */
.partido--cartel .chapa {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--blanco);
  box-shadow: none;
  font-size: 0.75rem;
}
.partido--cartel .chapa--propia img {
  padding: 2px;
}
.partido--cartel .partido__tanteo {
  font-size: clamp(2.5rem, 1.8rem + 3.4vw, 4.25rem);
}
.partido--cartel .partido__tanteo--texto {
  font-size: var(--t-pequeno);
  color: var(--sobre-azul);
}
.partido--cartel .estado--vivo {
  background: var(--blanco);
  color: var(--azul);
}
.partido--cartel .estado--vivo::before {
  background: var(--azul);
}
@media (min-width: 45em) {
  .partido--cartel {
    padding: var(--e-6);
  }
}

/* ================================================================= noticia */
/* Hoy ninguna trae foto: la pieza es tipográfica. Fecha a máquina, titular y
   dos líneas. Es una fila; la destacada es la misma fila, más grande. */
.noticias {
  display: grid;
  border-bottom: 1px solid var(--raya);
}
.noticia {
  border-top: 1px solid var(--raya);
}
.noticia__enlace {
  display: grid;
  gap: 0.375rem;
  height: 100%;
  align-content: start;
  padding-block: 1.125rem;
  color: inherit;
  text-decoration: none;
}
.noticia__fecha,
.noticia__fecha time {
  font-size: var(--t-dato-pequeno);
  color: var(--tinta-suave);
}
.noticia__titulo {
  font-size: 1.25rem;
  font-stretch: 86%;
  line-height: 1.16;
  letter-spacing: -0.005em;
}
.noticia__resumen {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: var(--t-pequeno);
  line-height: 1.5;
  color: var(--tinta-suave);
}
.noticia__foto {
  margin-bottom: 0.5rem;
}
.noticia__foto picture {
  display: block;
}
.noticia__foto img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--r-placa);
  background: var(--hormigon);
}
.noticia__foto figcaption {
  padding-top: 0.5rem;
  font-size: var(--t-menor);
  color: var(--tinta-suave);
}
@media (hover: hover) and (pointer: fine) {
  .noticia__enlace:hover .noticia__titulo {
    color: var(--azul);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
  }
}
.noticia__enlace:active .noticia__titulo {
  color: var(--azul);
}
/* la destacada */
.noticia--destacada .noticia__enlace {
  gap: 0.625rem;
}
.noticia--destacada .noticia__titulo {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-stretch: 74%;
  line-height: 1.04;
  letter-spacing: -0.012em;
}
.noticia--destacada .noticia__resumen {
  -webkit-line-clamp: 5;
  line-clamp: 5;
  font-size: var(--t-cuerpo);
  max-width: 34em;
}
/* en el archivo, la fecha tiene su columna */
@media (min-width: 40em) {
  .noticias--archivo .noticia__enlace {
    grid-template-columns: 6.25rem minmax(0, 1fr);
    column-gap: var(--e-5);
  }
  .noticias--archivo .noticia__fecha {
    grid-row: 1 / span 2;
    padding-top: 0.25rem;
  }
  .noticias--archivo .noticia__titulo,
  .noticias--archivo .noticia__resumen {
    grid-column: 2;
  }
}
@media (min-width: 64em) {
  .noticias--archivo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--e-8);
  }
}

/* ================================================================= jugador */
/* La ficha: el dorsal en grande, el nombre y, a máquina, la posición y el año.
   Una rejilla de raya fina; las líneas las dibuja cada celda. */
.jugadores {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.75rem, 1fr));
  border-top: 1px solid var(--raya);
  border-left: 1px solid var(--raya);
}
.jugadores > li {
  border-right: 1px solid var(--raya);
  border-bottom: 1px solid var(--raya);
}
.jugador {
  display: grid;
  align-content: start;
  gap: 0.25rem;
  height: 100%;
  padding: 0.875rem 0.875rem 1rem;
}
.jugador__dorsal {
  font-family: var(--f-rotulo);
  font-stretch: 62%;
  font-weight: var(--p-cifra);
  font-size: 2.75rem;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  color: var(--azul);
  margin-bottom: 0.375rem;
}
.jugador__dorsal--sin {
  color: var(--raya-fuerte);
}
.jugador__nombre {
  font-weight: var(--p-fuerte);
  line-height: 1.2;
  color: var(--marino);
  overflow-wrap: anywhere;
}
.jugador__nombre--vacio {
  font-weight: var(--p-texto);
  color: var(--tinta-suave);
}
.jugador__datos {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.625em;
  font-size: 0.75rem;
  color: var(--tinta-suave);
}
.jugador__foto {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-placa);
  margin-bottom: 0.5rem;
  background: var(--hormigon);
}
@media (max-width: 26em) {
  .jugadores {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.linea + .linea {
  margin-top: var(--e-6);
}
.linea__titulo {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  margin-bottom: var(--e-3);
}
@media (min-width: 60em) {
  .linea {
    display: grid;
    grid-template-columns: 11rem minmax(0, 1fr);
    column-gap: var(--e-6);
    align-items: start;
  }
  .linea + .linea {
    margin-top: var(--e-5);
  }
  .linea__titulo {
    margin: 0;
    padding-top: 0.875rem;
  }
}

/* una lista de personas: el nombre a la izquierda, el cargo a la derecha */
.tecnicos {
  border-top: 1px solid var(--raya);
}
.tecnicos li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.125rem var(--e-4);
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--raya);
}
.tecnicos b {
  color: var(--marino);
}
.tecnicos span {
  font-size: var(--t-pequeno);
  text-align: right;
}

/* =================================================================== tabla */
/* Cifras a máquina. Sin caja: una raya gruesa bajo la cabecera y una fina por
   fila. El Cracks, resaltado con fondo y peso, no con un color nuevo. */
.hoja {
  overflow-x: auto;
}
.hoja table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--f-dato);
  font-size: var(--t-dato-pequeno);
  font-variant-numeric: tabular-nums;
}
.hoja caption {
  padding-bottom: 0.875rem;
  text-align: left;
  font-family: var(--f);
  font-size: var(--t-pequeno);
  color: var(--tinta-suave);
  caption-side: top;
}
.hoja th,
.hoja td {
  padding: 0.5625rem 0.4375rem;
  text-align: right;
  white-space: nowrap;
}
.hoja thead th {
  border-bottom: 2px solid var(--tinta);
  font-weight: var(--p-dato-fuerte);
  color: var(--tinta);
}
.hoja abbr {
  text-decoration: none;
}
.hoja tbody tr {
  border-bottom: 1px solid var(--raya);
}
.hoja tbody td:first-child:not(.hoja__equipo) {
  width: 2.25rem;
  color: var(--tinta-suave);
}
.hoja .hoja__equipo {
  width: 100%;
  text-align: left;
  font-family: var(--f);
  font-size: var(--t-pequeno);
  white-space: normal;
}
.hoja .hoja__puntos {
  font-weight: var(--p-dato-fuerte);
  color: var(--marino);
}
.hoja__nuestro {
  background: var(--azul-tenue);
}
.hoja__nuestro td {
  color: var(--marino);
}
.hoja__nuestro .hoja__equipo {
  font-weight: var(--p-fuerte);
}
.hoja a {
  font-weight: var(--p-medio);
  color: var(--marino);
  text-decoration-color: var(--raya-fuerte);
}
@media (hover: hover) and (pointer: fine) {
  .hoja a:hover {
    color: var(--azul);
    text-decoration-color: currentColor;
  }
}
/* la tabla resumen: un corte por categoría */
.hoja .hoja__corte th {
  padding: var(--e-6) 0.4375rem 0.5rem;
  border-bottom: 2px solid var(--tinta);
  text-align: left;
  font-family: var(--f-rotulo);
  font-stretch: var(--a-2);
  font-weight: var(--p-rotulo);
  font-size: 1.5rem;
  color: var(--marino);
}
.hoja tbody .hoja__corte {
  border-bottom: 0;
}
.hoja__competicion {
  display: block;
  margin-top: 0.125rem;
  font-family: var(--f-dato);
  font-size: 0.6875rem;
  color: var(--tinta-suave);
}
.hoja .hoja__puesto b {
  font-family: var(--f-rotulo);
  font-stretch: var(--a-cifra);
  font-weight: var(--p-cifra);
  font-size: 1.25rem;
  color: var(--azul);
}
.hoja .hoja__sin {
  text-align: left;
  font-family: var(--f);
}
@media (max-width: 30em) {
  .hoja .hoja__goles {
    display: none;   /* goles a favor y en contra: en móvil, solo lo que decide */
  }
  .hoja th,
  .hoja td {
    padding-inline: 0.3125rem;
  }
}
@media (max-width: 44.99em) {
  .hoja .hoja__racha,
  .hoja--resumen .hoja__goles {
    display: none;
  }
}

/* La racha: los últimos resultados, cada uno en su casilla. Sin verde ni rojo:
   ganado relleno, empatado en contorno, perdido tenue. */
.racha {
  display: inline-flex;
  gap: 0.1875rem;
  vertical-align: middle;
}
.racha i {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: var(--r-placa);
  background: var(--hormigon);
  color: var(--tinta-suave);
  font-family: var(--f-dato);
  font-size: 0.6875rem;
  font-style: normal;
  font-weight: var(--p-dato-fuerte);
}
.racha i[data-r="G"] {
  background: var(--marino);
  color: var(--blanco);
}
.racha i[data-r="E"] {
  background: none;
  box-shadow: inset 0 0 0 1px var(--raya-fuerte);
  color: var(--tinta);
}
.hoja__nuestro .racha i[data-r="P"] {
  background: var(--blanco);
}

/* =================================================================== aviso */
/* Lo que está pendiente y los estados vacíos. Una placa sobria que dice qué
   falta y cuándo aparecerá. */
.aviso {
  display: grid;
  gap: 0.375rem;
  max-width: 46rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-placa);
  background: var(--hormigon);
  font-size: var(--t-pequeno);
  color: var(--tinta-suave);
}
.aviso__titulo {
  font-size: var(--t-cuerpo);
  font-weight: var(--p-fuerte);
  font-stretch: var(--a-interfaz);
  color: var(--marino);
}
.aviso strong {
  color: var(--tinta);
}
.hormigon .aviso {
  background: var(--blanco);
}

/* ================================================================= filtros */
.filtro {
  display: grid;
  gap: var(--e-4);
  margin-block: var(--e-5) var(--e-6);
}
.filtro__vacio {
  padding-block: var(--e-5);
}
/* una fila de fichas: en móvil se pasa con el dedo */
.saltos {
  display: flex;
  gap: 0.5rem;
  margin-inline: calc(var(--margen) * -1);
  padding-inline: var(--margen);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.saltos::-webkit-scrollbar {
  display: none;
}
.saltos > li {
  flex: none;
}
@media (min-width: 48em) {
  .saltos {
    flex-wrap: wrap;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
}
.saltos--calendario {
  flex-wrap: wrap;
  margin-inline: 0;
  padding-inline: 0;
  overflow: visible;
}
.saltos--categorias {
  margin-block: var(--e-5) 0;
}
.ficha {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 0.875rem;
  border: 1px solid var(--raya-fuerte);
  border-radius: var(--r-placa);
  background: var(--blanco);
  color: var(--tinta);
  font-size: var(--t-pequeno);
  font-weight: var(--p-medio);
  font-stretch: var(--a-interfaz);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform var(--d-pulso) var(--salida);
}
.ficha .dato {
  font-size: 0.75rem;
  color: var(--tinta-suave);
}
.ficha:active {
  transform: scale(0.97);
}
.ficha[aria-pressed="true"],
.ficha--actual {
  border-color: var(--marino);
  background: var(--marino);
  color: var(--blanco);
}
@media (hover: hover) and (pointer: fine) {
  .ficha:hover {
    border-color: var(--marino);
  }
}
.saltos--calendario .ficha {
  min-height: 2.5rem;
  padding-inline: 0.625rem;
  font-family: var(--f-dato);
  font-size: var(--t-dato-pequeno);
  font-weight: var(--p-dato);
}

.buscador {
  position: relative;
  display: block;
  max-width: 34rem;
}
.buscador svg {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  width: 1.25rem;
  height: 1.25rem;
  transform: translateY(-50%);
  color: var(--tinta-suave);
  pointer-events: none;
}
.buscador input {
  width: 100%;
  min-height: 3rem;
  padding: 0 1rem 0 2.75rem;
  border: 1px solid var(--raya-fuerte);
  border-radius: var(--r-placa);
  background: var(--blanco);
  color: var(--tinta);
  font: inherit;
  font-size: 1rem;   /* 16 px: por debajo, iOS amplía la página al enfocar */
  appearance: none;
}
.buscador input::placeholder {
  color: var(--tinta-suave);
  opacity: 1;
}
.buscador input:focus-visible {
  outline: 2px solid var(--azul);
  outline-offset: 1px;
  border-color: var(--azul);
}

/* ========================================================== paso y desplegable */
.paso {
  display: flex;
  justify-content: space-between;
  gap: var(--e-4);
  padding-block: var(--e-5);
}
.paso .enlace {
  white-space: nowrap;
}
.paso__largo {
  display: none;
}
@media (min-width: 34em) {
  .paso__largo {
    display: inline;
  }
  .paso__corto {
    display: none;
  }
}
/* la flecha de «anterior» y «siguiente» es un trazo, no un carácter */
.enlace--adelante::after,
.enlace--atras::before {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  vertical-align: -0.08em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h15M13.5 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h15M13.5 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.enlace--adelante::after {
  margin-left: 0.4em;
}
.enlace--atras::before {
  margin-right: 0.4em;
  transform: scaleX(-1);
}

.desplegable {
  margin-top: var(--e-5);
}
.desplegable summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  border-block: 1px solid var(--raya);
  font-weight: var(--p-medio);
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-user-select: none;
}
.desplegable summary::-webkit-details-marker {
  display: none;
}
.desplegable summary:active {
  color: var(--azul);
}
.desplegable summary .dato {
  color: var(--tinta-suave);
}
/* el más y el menos: dos trazos; al abrir, uno desaparece */
.desplegable summary::after {
  content: "";
  width: 0.875rem;
  height: 0.875rem;
  margin-left: auto;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  color: var(--azul);
}
.desplegable[open] summary::after {
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
}
.desplegable .partidos {
  border-top: 0;
}

/* ============================================================ patrocinadores */
/* Una rejilla de raya fina. En la portada, en una sola tinta; en su página, a color. */
.logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--raya);
  border-left: 1px solid var(--raya);
}
.logo {
  display: grid;
  place-items: center;
  height: 6.5rem;
  padding: 1rem;
  border-right: 1px solid var(--raya);
  border-bottom: 1px solid var(--raya);
}
.logo img {
  width: auto;
  max-width: 78%;
  max-height: 2.5rem;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.78;
  mix-blend-mode: multiply;
}
.logo--alta img {
  max-height: 3.25rem;
}
.logo--xl img {
  max-height: 4rem;
}
.logos--color .logo {
  height: 8.5rem;
}
.logos--color .logo img {
  filter: none;
  opacity: 1;
  max-height: 3.25rem;
}
.logos--color .logo--alta img {
  max-height: 4.25rem;
}
.logos--color .logo--xl img {
  max-height: 5.25rem;
}
@media (min-width: 45em) {
  .logos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .logo {
    height: 7.5rem;
  }
  .logos--color .logo {
    height: 10rem;
  }
}

/* ===================================================================== pie */
/* Pintura marina de pared a pared. */
.pie {
  padding-block: var(--e-8) var(--e-6);
  font-size: var(--t-pequeno);
}
.pie__cabeza {
  display: flex;
  align-items: center;
  gap: var(--e-4);
  padding-bottom: var(--e-6);
  border-bottom: 1px solid var(--raya-marino);
}
.pie__cabeza img {
  width: 4rem;
  height: 4rem;
}
.pie__nombre {
  font-family: var(--f-rotulo);
  font-stretch: var(--a-2);
  font-weight: var(--p-rotulo);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.05;
}
.pie__nombre span {
  display: block;
  margin-top: 0.375rem;
  font-family: var(--f-dato);
  font-stretch: 100%;
  font-size: var(--t-dato-pequeno);
  font-weight: var(--p-dato);
  letter-spacing: -0.02em;
  color: var(--niebla);
}
.pie__rejilla {
  display: grid;
  gap: var(--e-6);
  padding-block: var(--e-6);
}
.pie .pie__titulo {
  margin-bottom: var(--e-3);
  font-family: var(--f);
  font-stretch: var(--a-interfaz);
  font-size: var(--t-menor);
  font-weight: var(--p-medio);
  letter-spacing: 0;
  color: var(--niebla);
}
.pie a {
  text-decoration: none;
}
.pie p + p {
  margin-top: 0.375rem;
}
.pie__grande {
  font-family: var(--f-rotulo);
  font-stretch: var(--a-cifra);
  font-weight: var(--p-cifra);
  font-size: 1.875rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.pie__horario {
  color: var(--niebla);
}
.pie address + p a,
.pie__rejilla > div > p > a:not(.pie__grande) {
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 0.4);
}
.pie__lista {
  display: grid;
  gap: 0.5rem;
}
.pie__lista--doble {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--e-5);
}
.pie__letra {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem var(--e-5);
  padding-top: var(--e-5);
  border-top: 1px solid var(--raya-marino);
  font-size: var(--t-menor);
  color: var(--niebla);
}
@media (hover: hover) and (pointer: fine) {
  .pie a:hover {
    text-decoration: underline;
    text-decoration-color: currentColor;
  }
}
@media (min-width: 45em) {
  .pie__rejilla {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 64em) {
  .pie__rejilla {
    grid-template-columns: 1.1fr 1.1fr 1.3fr 0.7fr;
    gap: var(--e-7);
  }
}
