:root {
  --principal: #5bb8f0;       /* azul cielo */
  --principal-suave: #e6f3fd;
  --oscuro: #1f2933;          /* texto */
  --gris: #f6f6f6;
  --blanco: #ffffff;
  --sombra: 0 4px 12px rgba(0,0,0,0.12);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--oscuro);

  /* FONDO GENERAL
     Antes era "img/fondo-app.png" (4,5 MB) con background-attachment: fixed, pero esa
     imagen era un lienzo 100 % blanco: se cargaba y repintaba en cada scroll sin aportar
     nada. Un color liso se ve exactamente igual y no pesa. */
  background-color: #ffffff;
}

/* Solo para lectores de pantalla (texto presente pero no visible) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== HEADER + NAV WRAPPER ===== */
.header-wrapper {
  position: relative; /* scroll normal */
}

/* =========================
   CABECERA CON IMAGEN PNG
========================= */

.app-header {
  position: relative;
  height: 190px;
  background-image: url("../img/header.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: var(--principal);
}

@media (max-width: 768px) {
  .app-header {
    height: 120px;
    /* versión más ligera para móvil (8 KB frente a 15 KB) */
    background-image: url("../img/header-m.webp");
  }
}

/* =========================
   NAV GLASS iOS STYLE
========================= */

.nav-principal {
  position: relative;

  /* SOLO margen negativo, NADA de top */
  margin: -34px auto 16px;

  width: calc(100% - 32px);
  max-width: 900px;

  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);

  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 28px;

  padding: 14px 10px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  box-shadow:
    0 20px 20px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.35);

  z-index: 10;
}

/* BOTONES TRANSPARENTES */
.nav-principal button {
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  border: none;
  padding: 6px 4px;          /* reduce ancho */

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 3px;                  /* menos separación */
  min-width: 44px;           /* tamaño táctil iOS */
  min-height: 44px;          /* objetivo táctil mínimo recomendado */

  font-size: 15px;           /* icono más pequeño */
  color: #1f2933;            /* TEXTO NEGRO */

  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-principal button span {
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

/* Interacción tipo iOS */
.nav-principal button:active {
  transform: scale(0.88);
  opacity: 1;
}

/* MÓVIL */
@media (max-width: 480px) {
  .nav-principal {
    margin-top: -30px;
    padding: 10px 8px;
  }

  .nav-principal button {
    font-size: 14px;   /* icono */
    padding: 4px 2px;
  }

  .nav-principal button span {
    font-size: 9px;
  }
}

.nav-principal button {
  opacity: 0.55;
  filter: grayscale(20%);
}

.nav-principal button.activo {
  opacity: 1;
  color: var(--principal);
  filter: none;
}

/* Emoji (primer nodo del botón) */
.nav-principal button.activo {
  text-shadow:
    0 0 6px rgba(91,184,240,0.9),
    0 0 14px rgba(91,184,240,0.6);
  transform: scale(1.05);
}

/* Texto activo */
.nav-principal button.activo span {
  color: #1f2933;
  font-weight: 700;
}

.nav-principal button.activo::after {
  content: "";
  position: absolute;
  bottom: -6px;
  width: 26px;
  height: 4px;
  border-radius: 999px;
  background: rgba(91,184,240,0.7);
  box-shadow: 0 0 12px rgba(91,184,240,0.9);
}

/* CONTENIDO */
main {
  background: transparent;
  padding-top: 0px;
  padding-left: max(15px, env(safe-area-inset-left));
  padding-right: max(15px, env(safe-area-inset-right));

  /* mismo ancho máximo que el menú (900 px + sus 2 márgenes de 16 px) */
  max-width: 932px;
  margin: 0 auto;
}

/* BOTONES GENERALES */
button {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  background: var(--blanco);
  box-shadow: var(--sombra);
  margin-bottom: 10px;
}

button:active {
  transform: scale(0.98);
}

/* TARJETAS */
.card {
  background: rgba(255,255,255,0.95);
  padding: 15px;
  border-radius: 12px;
  box-shadow: var(--sombra);
  margin-bottom: 12px;
}

.bloque-titulo {
  margin-top: 24px;
  margin-bottom: 12px;
}

.partido-fecha {
  margin-bottom: 6px;
  font-size: 15px;
  text-transform: capitalize;
  opacity: 0.85;
}

.resultado-final {
  margin-top: 6px;
  font-size: 18px;
}

/* PARTIDOS */
.partido-nombre {
  font-weight: bold;
  margin-bottom: 5px;
}

.partido-marcador {
  font-size: 18px;
  text-align: right;
}

/* BOTONES MARCADOR */
.boton-local {
  background: #ffe5e5;
}

.boton-visitante {
  background: #e5f0ff;
}

.volver {
  background: var(--principal);
  color: white;
}

/* CLASIFICACION */
.tabla {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.tabla th, .tabla td {
  border: 1px solid #ccc;
  padding: 6px;
  text-align: center;
}

.tabla th {
  background: var(--principal);
  color: white;
}

/* =========================
   SPLASH SCREEN (CORRECTO)
========================= */

#splash {
  position: fixed;
  inset: 0;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Logo */
#splash img {
  width: 400px;
  max-width: 70%;
  height: auto;
  animation: splashZoom 0.8s ease-out;
}

@keyframes splashZoom {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Ocultar contenido mientras está el splash */
body.splash-activo main {
  display: none;
}

body.splash-activo header,
body.splash-activo #admin-fab,
body.splash-activo .bottom-nav {
  display: none !important;
}

/* =========================
   BOTONES GENERALES (MEJORADOS)
========================= */
button {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border: none;
  border-radius: 14px;
  background: var(--blanco);
  box-shadow: var(--sombra);
  margin-bottom: 10px;
}

button:active {
  transform: scale(0.97);
}

/* =========================
   PARTIDOS – VISTA PRO
========================= */
.partido-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  padding: 16px;
  margin-bottom: 14px;
}

/* Equipos + marcador */

.equipo {
  width: 35%;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
}

/* Botón abrir */
.abrir-btn {
  background: var(--principal);
  color: white;
  font-weight: 600;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 4px 10px rgba(91,184,240,0.5);
}

.abrir-btn:active {
  transform: scale(0.96);
}

/* =========================
   TABS DE CATEGORÍAS
========================= */
.tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-bottom: 15px;
}

.tab {
  padding: 10px 18px;
  border-radius: 20px;
  border: none;
  background: #eaeaea;
  font-weight: 600;
  white-space: nowrap;
}

.tab.active {
  background: var(--principal);
  color: white;
}

/* SUBFILTROS */
.subfiltros {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.subfiltros select {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  border: none;
  box-shadow: var(--sombra);
}

/* BOTÓN ADMIN FLOTANTE */
#admin-fab {
  position: fixed;
  bottom: calc(60px + env(safe-area-inset-bottom));   /* baja el botón */
  right: max(18px, env(safe-area-inset-right));

  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--principal);
  color: white;
  font-size: 22px;
  box-shadow: var(--sombra);
  z-index: 1200;
}

#admin-fab.admin-activo {
  background: #2ecc71;
}

/* ===== MARCADOR PRO DEFINITIVO ===== */
.marcador-pro {
  overflow: visible;
  padding-top: 20px;
}

.equipo-marcador {
  overflow: visible;
}

.escudo-marcador {
  max-width: 70px;
  max-height: 70px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .marcador-pro {
    padding-top: 32px;
  }

  .escudo-marcador {
    max-width: 60px;
    max-height: 60px;
  }
}

.marcador-pro {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  margin: 30px 0;
}

/* Bloque equipo */
.equipo-marcador {
  width: 140px;
  padding: 16px 10px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: white;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* Local / Visitante */
.equipo-marcador.local {
  background: var(--tile);
}

.equipo-marcador.visitante {
  background: #e6ecf2;
}

/* Escudo grande */
.escudo-marcador {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.4));
}

/* Nombre equipo */
.nombre-equipo {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  opacity: 0.95;
}

/* GOLES (protagonistas) */
.goles {
  font-size: 48px;
  font-weight: 800;
  color: #9ca3af;        /* gris claro */
  line-height: 1;
}

/* si quieres distinguir un poco local y visitante */
.equipo-marcador.local .goles {
  color: #94a3b8;
}

.equipo-marcador.visitante .goles {
  color: #9ca3af;
}

/* Animación al cambiar */
.goles.animar {
  transform: scale(1.25);
  color: #f2f9fe;
}

/* Separador */
.separador {
  font-size: 42px;
  font-weight: 800;
  color: #555;
}

/* =========================
   BOTONES + / -
========================= */

.marcador-botones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.btn-local {
  background: #e6f3fd;
  color: #e65100;
  font-weight: 700;
}

.btn-visitante {
  background: #e3f2fd;
  color: #0d47a1;
  font-weight: 700;
}

.btn-local:active,
.btn-visitante:active {
  transform: scale(0.96);
}

.marcador-pro {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin: 25px 0;
}

.equipo-marcador {
  width: 90px;
  height: 90px;
  background: #111;
  color: white;
  font-size: 42px;
  font-weight: bold;
  border-radius: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.equipo-marcador.local {
  background: var(--tile);
}

.equipo-marcador.visitante {
  background: #e6ecf2;
}

.separador {
  font-size: 42px;
  font-weight: bold;
  color: #555;
}

/* =========================
   ANIMACIONES DE TRANSICIÓN
========================= */

.fade-enter {
  animation: fadeEnter 0.25s ease-out;
}

.slide-enter {
  animation: slideEnter 0.3s ease-out;
}

@keyframes fadeEnter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideEnter {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== PATROCINADORES GRID ===== */
.patrocinadores-scroll {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 14px;

  padding: 12px;
  margin-bottom: 24px;

  overflow: hidden;   /* CLAVE */
}

.patrocinador-card {
  background: white;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 10px;
  text-align: center;
  position: relative;
  overflow: visible;
  width: 100%;

  aspect-ratio: 1 / 1;      /* CUADRADO */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.patrocinador-card img {
  max-width: 85%;
  max-height: 65%;
  object-fit: contain;
  border-radius: 12px;
}

.patrocinador-nombre {
  margin-top: 6px;
  font-weight: 600;
  font-size: 13px;
}

.patrocinador-card button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ff5c5c;
  color: white;
  font-size: 14px;
  padding: 0;
}

.patrocinador-card img {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.patrocinador-card img:active {
  transform: scale(0.95);
}

.btn-borrar-patrocinador {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ff4d4d;
  color: white;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 14px;
}

@media (min-width: 600px) {
  .patrocinadores-scroll {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================
   CLASIFICACIÓN PRO
========================= */

.clasificacion-pro {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.clasificacion-pro th {
  background: #3aa5e8; /* azul */
  color: white;
  font-size: 13px;
  padding: 10px 6px;
}

.clasificacion-pro td {
  padding: 8px 6px;
  font-size: 14px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.clasificacion-pro .equipo {
  text-align: left;
  font-weight: 600;
}

.clasificacion-pro .puesto {
  font-weight: bold;
  width: 40px;
}

.clasificacion-pro .puntos {
  font-weight: bold;
  color: #d97706;
}

/* Líder */
.clasificacion-pro tr.lider {
  background: #f2f9fe;
}

/* Hover */
.clasificacion-pro tr:hover {
  background: #fef3c7;
}

.club-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.club-escudo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.club-escudo-grande {
  width: 120px;
  display: block;
  margin: 15px auto;
}

.club-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: #f4f4f4;
  cursor: pointer;
}

.club-card:hover {
  background: #ececec;
}

.club-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.club-escudo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.club-acciones {
  display: flex;
  gap: 10px;
}

.club-acciones button {
  padding: 6px 10px;
  border-radius: 10px;
  border: none;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}

.club-acciones button:hover {
  background: #eaeaea;
}

.partido-equipos {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.equipo-partido {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.escudo-partido {
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
}

.tabla-escudo {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 6px;
}

/* ===== EQUIPOS EN CATEGORÍAS ===== */
.equipo-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.escudo-equipo-mini {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}

.equipo-info {
  display: flex;
  flex-direction: column;
}

.equipo-grupo {
  font-size: 0.85em;
  opacity: 0.7;
}

/* ===== CLASIFICACIÓN ===== */
.equipo-tabla {
  display: flex;
  align-items: center;
  gap: 8px;
}

.escudo-tabla {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

#contenido {
  display: block;

  /* Sin backdrop-filter: el fondo de la app es blanco liso, así que el desenfoque no se
     veía, pero obligaba al móvil a recalcularlo sobre toda la pantalla en cada scroll. */
  background: rgba(255, 255, 255, 0.88);

  border-radius: 26px;
  padding: 16px;
  margin: 12px auto;
}

.badge-estado {
  display: inline-block;
  margin: 6px 0 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  width: fit-content;
}

/* Pendiente */
.badge-estado.pendiente {
  background: #ffe5e5;
  color: #c62828;
}

/* En juego */
.badge-estado.en_juego {
  background: #e6f4ea;
  color: #1b7f3a;
}

/* Finalizado */
.badge-estado.finalizado {
  background: #f2f2f2;
  color: #555;
}

/* ================== TABLA CLASIFICACIÓN ================== */

/* ================== CONTENEDOR ================== */
.tabla-wrapper {
  width: 100%;
  overflow-x: auto;          /* evita que la app se ensanche */
  -webkit-overflow-scrolling: touch;
}

/* ================== TABLA ================== */
.tabla {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;       /* clave para que NO rompa el layout */
  font-size: 13px;
}

/* Celdas */
.tabla th,
.tabla td {
  padding: 6px 4px;
  text-align: center;
  border-bottom: 1px solid #ddd;
  white-space: nowrap;
}

/* Cabecera */
.tabla th {
  background: #f6a21a;
  color: #fff;
  font-weight: 600;
}

/* ================== EQUIPO ================== */
.equipo-tabla {
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
}

.escudo-tabla {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* ================== POSICIÓN ================== */
.posicion {
  font-weight: normal; /* nada en negrita */
}

/* Medallas */
.medalla-oro,
.medalla-plata,
.medalla-bronce {
  font-weight: 700;
}

/* ================== PUNTOS ================== */
.col-puntos {
  font-weight: 700;    /* SOLO puntos en negrita */
}

/* ================== MÓVIL ================== */
@media (max-width: 480px) {

  .tabla {
    font-size: 12px;
  }

  .tabla th,
  .tabla td {
    padding: 5px 3px;
  }
}

/* === TABLA CLASIFICACIÓN === */

.tabla-wrapper {
  width: 100%;
  overflow-x: auto;
}

.tabla.clasificacion-pro {
  width: 100%;
  min-width: 720px; /* NO agranda la app */
  border-collapse: collapse;
}

/* celda equipo */
.equipo-tabla {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 200px;
}

.nombre-equipo-tabla {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

/* escudos */
.escudo-tabla {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* ===== TABLA CLASIFICACIÓN (FIX NOMBRES) ===== */

.tabla.clasificacion-pro {
  table-layout: fixed;   /* CLAVE */
  width: 100%;
  min-width: 720px;
}

/* columna posición */
.tabla.clasificacion-pro th.col-pos,
.tabla.clasificacion-pro td.posicion {
  width: 42px;
  text-align: center;
}

/* columna equipo */
.tabla.clasificacion-pro th.col-equipo,
.tabla.clasificacion-pro td:nth-child(2) {
  width: 200px;          /* ancho fijo */
  max-width: 200px;
}

/* contenido equipo */
.equipo-tabla {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  overflow: hidden;
}

/* nombre del equipo */
.nombre-equipo-tabla {
  display: block;
  max-width: 150px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* escudo */
.escudo-tabla {
  width: 22px;
  height: 22px;
  flex-shrink: 0; /* evita que el escudo se aplaste */
}

.partido-categoria {
  display: inline-block;
  font-size: 0.75rem;
  background: #f2f2f2;
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 6px;
}

.info-partido-detalle {
  text-align: center;
  margin: 10px 0 20px;
}

.detalle-fecha-hora {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 4px;
}

.detalle-categoria {
  display: inline-block;
  font-size: 0.8rem;
  background: #5bb8f0;
  color: white;
  padding: 4px 10px;
  border-radius: 14px;
  margin-bottom: 6px;
}

.detalle-lugar {
  font-size: 0.9rem;
  color: #666;
}

/* Estado inicial del splash */
#splash {
  position: fixed;
  inset: 0;
  background: #5bb8f0; /* tu color */
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: 
    opacity 0.6s ease,
    transform 0.6s ease;
}

/* Estado mientras carga */
body.splash-activo #splash {
  opacity: 1;
  transform: scale(1);
}

/* Estado al desaparecer */
#splash.splash-hide {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

#splash img {
  transition: transform 0.6s ease;
}

#splash.splash-hide img {
  transform: scale(0.9);
}

/* =========================
   MENÚ – ICONOS + TEXTO PRO
========================= */



/* =========================
   ESTADO ACTIVO (SECCIÓN)
========================= */


/* =========================
   EFECTO SUAVE DE ENTRADA
========================= */


@keyframes menuFadeUp {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   BOTÓN REDES SOCIALES (PNG)
========================= */

.social-fab {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(130px + env(safe-area-inset-bottom)); /* sigue encima del admin */
  z-index: 1800;

  display: flex;
  flex-direction: column-reverse; /* ESTO LO ARREGLA */
  align-items: flex-end;
}

/* Botón principal */
.social-main {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: white;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  padding: 10px;
  cursor: pointer;
}

.social-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-main:active {
  transform: scale(0.9);
}

/* Menú */
.social-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;

  margin-top: 10px;              /* ahora hacia arriba */
  opacity: 0;
  transform: translateY(-10px);  /* sube */
  pointer-events: none;
  transition: background-color .15s ease, color .15s ease, transform .15s ease, opacity .15s ease 0.25s ease;
}

.social-fab.open .social-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Botones de red */
.social-btn {
  display: flex;
  align-items: center;
  gap: 10px;

  background: white;
  padding: 8px 12px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);

  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 600;
}

.social-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.social-btn span {
  white-space: nowrap;
}

.social-btn:active {
  transform: scale(0.95);
}

.historia {
  padding: 16px 0;
  margin-top: 20px;   /* separación real */
  clear: both;
}

/* historia */
.historia-card {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

/* ===== GALERÍA 2026 – BADGE ENLACE ===== */

.galeria2026-scroll {
  padding: 12px 0;
}

.galeria-badge {
  display: flex;
  align-items: center;
  gap: 14px;

  background: var(--tile);
  color: white;
  text-decoration: none;

  padding: 16px 18px;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);

  max-width: 320px;
}

.galeria-badge:active {
  transform: scale(0.96);
}

.badge-icon {
  font-size: 34px;
}

.badge-texto {
  display: flex;
  flex-direction: column;
}

.badge-texto span {
  font-size: 13px;
  opacity: 0.9;
}

.badge-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Efecto toque icono badge galería */
.galeria-badge:active .badge-icon img {
  transform: scale(0.9);
  transition: transform 0.15s ease;
}

/* ===== PABELLONES ===== */

.pabellones-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.pabellon-card {
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.18);

  background-size: cover;        /* */
  background-position: center;  /* */
  background-repeat: no-repeat; /* */

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  overflow: hidden;             /* */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pabellon-overlay { /* taste-skill-ignore: velo neutro sobre foto */
  width: 100%;
  height: 100%;

  background: linear-gradient(
    rgba(0,0,0,0.25),
    rgba(0,0,0,0.45)
  );

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  color: white;
}

.pabellon-card:active {
  transform: scale(0.96);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.pabellon-nombre {
  font-size: 18px;
}

.pabellon-contador {
  font-size: 13px;
  opacity: 0.8;
  margin-top: 6px;
}

.volver-pabellones {
  margin-top: 30px;
  background: var(--tile);
  color: white;
  font-weight: 600;
  border-radius: 18px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.pabellon-nombre,
.pabellon-contador {
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.app-header,
.nav-principal {
  background-color: transparent;
}

/* =========================
   BADGES PABELLÓN (GLASS)
========================= */

.pabellon-badges {
  display: flex;
  gap: 10px;
  margin: 10px 0 18px;
  flex-wrap: wrap;
}

/* Base badge glass */
.badge-glass {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 6px 14px;
  border-radius: 999px;

  font-size: 13px;
  font-weight: 600;
  text-decoration: none;

  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);

  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);

  color: #fff;
}

/* Ubicación (verde) */
.badge-ubicacion {
  background: rgba(46, 204, 113, 0.55);
}

/* Directo (rojo) */
.badge-directo {
  background: rgba(231, 76, 60, 0.75);
  color: white;
  font-weight: 700;
  animation: parpadeo 1.4s infinite;
}

@keyframes parpadeo {
  0%   { opacity: 1; }
  50%  { opacity: 0.6; }
  100% { opacity: 1; }
}

/* efecto toque */
.badge-glass:active {
  transform: scale(0.95);
}

/* ===== FIX DEFINITIVO ALTURA PARTIDO ===== */

.marcador-pro {
  margin-bottom: 32px;   /* separa del botón Volver */
}

.equipo-marcador {
  min-height: 160px;     /* evita que los goles se salgan */
  justify-content: flex-start;
}

.goles {
  margin-top: 10px;
}

/* =========================
   MARCADOR CENTRADO (LISTA PARTIDOS)
========================= */

/* Contenedor central */
.partido-equipos .vs {
  min-width: 64px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: #999;
}

/* VS normal (pendiente / en juego) */
.partido-equipos .vs {
  opacity: 0.6;
  letter-spacing: 1px;
}

/* Resultado cuando está finalizado */
.partido-equipos .resultado-centro {
  font-size: 20px;
  font-weight: 800;
  color: #111;
  opacity: 1;
  letter-spacing: 0;
}

/* Un poco de aire visual */
.partido-equipos {
  margin: 10px 0;
}

/* =========================
   PARTIDOS AGRUPADOS POR FECHA
========================= */

.fecha-bloque {
  margin-bottom: 18px;
}

/* Cabecera de fecha (clicable) */
.fecha-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 14px 16px;
  border-radius: 18px;

  background: var(--tile);
  color: white;

  font-weight: 700;
  font-size: 15px;

  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  cursor: pointer;
}

.fecha-header:active {
  transform: scale(0.97);
}

/* Flecha */
.fecha-header .flecha {
  transition: transform 0.25s ease;
}

/* Abierta */
.fecha-bloque.abierta .fecha-header .flecha {
  transform: rotate(180deg);
}

/* Contenedor de partidos */
.fecha-partidos {
  margin-top: 10px;
  display: none;
}

/* Mostrar cuando está abierta */
.fecha-bloque.abierta .fecha-partidos {
  display: block;
  animation: fadeEnter 0.25s ease;
}

/* =========================
   SPLASH – BARRA DE CARGA GLASS
========================= */

.splash-content {
  position: absolute;
  bottom: 30px;          /* distancia desde abajo (ajústala a gusto) */
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.splash-texto {
  font-size: 18px;
  font-weight: 600;
  color: white;
  opacity: 0.9;
}

/* contenedor barra */
.splash-barra {
  width: 260px;
  height: 18px;
  border-radius: 999px;

  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);

  border: 1px solid rgba(255,255,255,0.35);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* progreso */
#splash-progreso {
  height: 100%;
  width: 0%;

  background: var(--accent-text);

  border-radius: inherit;
  transition: width 0.4s ease;
}

/* ===== CATEGORÍAS DENTRO DEL DÍA ===== */

.bloque-categoria-dia {
  margin-top: 16px;
}

.titulo-categoria-dia {
  font-size: 14px;
  font-weight: 700;
  color: #1b6fb8;
  margin: 10px 0 8px;
  padding-left: 6px;
  border-left: 4px solid #5bb8f0;
}

.partido-cuadro:hover {
  transform: scale(1.03);
}

.partido-cuadro .resultado {
  font-weight: bold;
  margin: 6px 0;
}

.badge-fase {
  margin: 6px auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: #5bb8f0;
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  width: fit-content;
}

.match .team {
  font-size: 12px;
}

.match .score {
  font-size: 16px;
}

.match .vs {
  font-size: 12px;
}

.match:hover {
  transform: scale(1.02);
}

.match-final {
  border: 2px solid #5bb8f0;
  background: #f2f9fe;
}

.match.empty {
  opacity: 0.4;
  cursor: default;
}

.team {
  font-weight: 600;
}

.vs, .score {
  margin: 6px 0;
  font-weight: bold;
}

.bloque-categoria-dia {
  margin-bottom: 12px;
}

.categoria-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  padding: 10px 14px;
  border-left: 4px solid #3aa5e8;
  background: #f2f9fe;
  border-radius: 10px;
  cursor: pointer;
}

.categoria-header:active {
  transform: scale(0.98);
}

.categoria-partidos {
  margin-top: 8px;
}

.categoria-header .flecha {
  transition: transform 0.25s ease;
}

/* opcional: rotar flecha cuando esté abierto */
.categoria-partidos:not(.oculto) + .flecha {
  transform: rotate(180deg);
}

/* =========================
   CATEGORÍAS – ANIMACIÓN iOS
========================= */

.categoria-partidos {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    max-height 0.45s cubic-bezier(0.4, 0.0, 0.2, 1),
    opacity 0.3s ease,
    transform 0.35s ease;
}

/* Estado abierto
   Antes era max-height: 2000px, y un bloque con muchos partidos (varias categorías,
   grupos y partidos anidados) quedaba cortado sin forma de verlo. Ahora no hay límite:
   el JS (toggleCategoriaDia) anima la apertura con la altura real y luego lo deja libre. */
.categoria-partidos.abierto {
  max-height: none;
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.categoria-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  font-weight: 600;
  padding: 10px 14px;

  border-left: 4px solid #3aa5e8;
  background: #f2f9fe;
  border-radius: 12px;

  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
}

.categoria-header:active {
  transform: scale(0.97);
}

/* Flecha */
.categoria-header .flecha {
  transition: transform 0.35s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Flecha abierta */
.categoria-header.abierto .flecha {
  transform: rotate(180deg);
}

/* =========================
   FOOTER SCROLL iOS STYLE
========================= */

.app-footer {
  width: 100%;
  /* margen inferior extra: los botones flotantes (admin y redes) no tapan el pie */
  padding: 20px 0 calc(110px + env(safe-area-inset-bottom));

  display: flex;
  flex-direction: column;   /* CLAVE */
  align-items: center;
  gap: 6px;

  text-align: center;
  pointer-events: auto;     /* permite clicar el mail */
}

.footer-email {
  font-size: 13px;
  font-weight: 500;
}

.footer-email a {
  color: #1b6fb8;
  text-decoration: none;
}

.footer-email a:active {
  opacity: 0.7;
}

.footer-copy {
  font-size: 12px;
  color: rgba(31, 41, 51, 0.45);
  letter-spacing: 0.3px;
}

/* Texto */
.footer-texto {
  font-size: 12px;
  font-weight: 500;
  color: rgba(31, 41, 51, 0.45);
  letter-spacing: 0.3px;

  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

/* Cuando se llega al final */
.app-footer.visible .footer-texto {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   PARTIDO CARD iOS STYLE
========================= */

.partido-card.ios {
  background: rgba(255,255,255,0.96);
  border-radius: 22px;
  padding: 18px 16px;
  margin-bottom: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/* Fecha + fase */
.partido-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.partido-fecha {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.75;
}

/* =========================
   EQUIPOS + MARCADOR
========================= */

.partido-equipos {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 14px 0 10px;
}

.equipo-partido {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.escudo-partido {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-bottom: 6px;
}

.nombre-equipo {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

/* MARCADOR CENTRADO */
.resultado-centro {
  font-size: 26px;
  font-weight: 800;
  color: #111;
  padding: 6px 14px;
  border-radius: 14px;
  background: #f3f4f6;
  min-width: 72px;
  text-align: center;
}

/* =========================
   INFO PARTIDO
========================= */

.partido-info {
  text-align: center;
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}

/* BOTÓN */
.partido-card .abrir-btn {
  width: 100%;
  border-radius: 16px;
}

@media (max-width: 480px) {
  .resultado-centro {
    font-size: 22px;
    min-width: 64px;
  }

  .escudo-partido {
    width: 38px;
    height: 38px;
  }

  .nombre-equipo {
    font-size: 12px;
  }
}

/* ====== MARCADOR iOS ====== */

.marcador-ios {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  margin: 24px 0;
}

.equipo-ios {
  flex: 1;
  background: rgba(255,255,255,0.9);
  border-radius: 22px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.equipo-ios.local {
  background: var(--tile);
  color: white;
}

.equipo-ios.visitante {
  background: #e6ecf2;
  color: white;
}

.escudo-ios {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
}

.nombre-ios {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.2;
}

.goles-ios {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
}

.vs-ios {
  font-size: 40px;
  font-weight: 700;
  opacity: 0.4;
}

.team-ios-card {
  background: rgba(255,255,255,0.85);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.team-ios-header {
  display: flex;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #1b6fb8;
  margin-bottom: 6px;
}

.team-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.team-group {
  font-size: 14px;
  color: #666;
}

.team-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.team-actions button {
  flex: 1;
  border: none;
  border-radius: 12px;
  padding: 8px 0;
  background: #f2f2f7;
  font-size: 14px;
}

.team-ios-card[data-cat="Infantil"] {
  border-left: 4px solid #5ac8fa;
}

.team-ios-card[data-cat="Cadete"] {
  border-left: 4px solid #7c6cf0;
}

.team-ios-card[data-cat="Juvenil"] {
  border-left: 4px solid #34c759;
}

/* Partido */

.match:active {
  transform: scale(0.96);
}

.match-final {
  border: 2px solid #5bb8f0;
  background: #f2f9fe;
}

/* Equipos */
.match .team {
  font-weight: 600;
  font-size: 14px;
}

/* Resultado */
.match .score {
  font-size: 18px;
  font-weight: 800;
  margin: 6px 0;
}

.match .vs {
  font-size: 14px;
  opacity: 0.6;
  margin: 6px 0;
}

/* Vacío */
.match.empty {
  opacity: 0.4;
  cursor: default;
}

/* Tercer puesto */
.bracket-tercer {
  margin-top: 24px;
  text-align: center;
}

/* =========================
   CUADRO ELIMINATORIO – FIX DEFINITIVO
========================= */

.bracket-scroll {
  width: 100%;
  overflow-x: hidden;   /* nunca scroll lateral */
  padding: 10px 0;
}

/* títulos */
.round h4 {
  font-size: 13px;
  font-weight: 700;
  color: #1b6fb8;
}

/* partidos */
.match,
.match-final {
  width: 100%;
  max-width: 140px;
  padding: 8px 6px;
  text-align: center;

  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* final destacada */
.match-final {
  border: 2px solid #5bb8f0;
  background: #f2f9fe;
}

/* texto */
.match .team {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.match .score,
.match .vs {
  font-size: 13px;
  font-weight: 700;
  margin: 4px 0;
}

/* =========================
   MÓVIL REAL
========================= */

@media (max-width: 480px) {

  .bracket {
    gap: 6px;
  }

  .match,
  .match-final {
    max-width: 110px;   /* aquí se arregla */
    padding: 6px 4px;
  }

  .match .team {
    font-size: 10px;
  }

  .match .score,
  .match .vs {
    font-size: 12px;
  }
}

/* =========================
   CUADRO ELIMINATORIO PRO (VERTICAL)
========================= */

.bracket-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.semifinales {
  display: flex;
  gap: 18px;
  justify-content: center;
}

.match {
  width: 130px;
  padding: 10px 8px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  text-align: center;
  position: relative;
}

.match-final {
  border: 2px solid var(--principal);
  background: #f2f9fe;
}

/* LÍNEAS */
.lineas-final {
  position: relative;
  width: 100%;
  height: 36px;
}

.lineas-final::before,
.lineas-final::after {
  content: "";
  position: absolute;
  top: 0;
  width: 2px;
  height: 36px;
  background: var(--principal);
}

.lineas-final::before {
  left: 38%;
}

.lineas-final::after {
  right: 38%;
}

.lineas-final span {
  position: absolute;
  bottom: 0;
  left: 38%;
  right: 38%;
  height: 2px;
  background: var(--principal);
}

.final {
  display: flex;
  justify-content: center;
}

/* =========================
   EQUIPO DERROTADO
========================= */

.team.perdedor {
  color: #c62828;
  opacity: 0.55;
  text-decoration: line-through;
  filter: grayscale(30%);
}

/* si es tarjeta completa */
.match.perdido {
  background: #ffecec;
  border-color: #e57373;
  opacity: 0.75;
}

.team.perdedor {
  animation: fadeLoser 0.4s ease-out;
}

@keyframes fadeLoser {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.6;
  }
}

/* =========================
   ACTUALIZACIONES HOME
========================= */

.actualizaciones-home {
  margin: 24px 0;
}

.actualizaciones-home h3 {
  margin-bottom: 12px;
  color: #1b6fb8;
}

.actualizacion-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.actualizacion-card:active {
  transform: scale(0.97);
}

/* ===== ACTUALIZACIONES HOME – PRO ===== */

.actualizacion-categoria {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #1b6fb8;
  margin-bottom: 8px;
}

.actualizacion-contenido {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.equipo-actualizacion {
  display: flex;
  align-items: center;
  gap: 8px;
}

.equipo-actualizacion img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.equipo-actualizacion span {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.equipo-actualizacion.local {
  justify-content: flex-start;
}

.equipo-actualizacion.visitante {
  justify-content: flex-end;
  text-align: right;
}

.marcador-actualizacion {
  font-size: 16px;
  font-weight: 800;
  background: #f3f4f6;
  padding: 6px 14px;
  border-radius: 14px;
  min-width: 64px;
  text-align: center;
}

.actualizacion-estado {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #16a34a;
}

/* =========================
   ICONO CAMPEÓN
========================= */

.campeon {
  position: relative;
}

.campeon::after {
  content: "";
  position: absolute;
  top: -14px;
  right: -10px;
  font-size: 22px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  animation: coronaPop 0.4s ease-out;
}

@keyframes coronaPop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.team.perdedor,
.equipo-actualizacion.perdedor {
  opacity: 0.5;
  filter: grayscale(60%);
}

.actualizacion-fase {
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1b6fb8;
  text-align: center;
}

.btn-ver-mas-partidos {
  background: transparent;
  border: none;
  margin: 10px auto 0;
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1b6fb8;
  cursor: pointer;
}

.btn-ver-mas-partidos:active {
  transform: scale(0.96);
}

/* =========================
   FIX VISUAL PATROCINADORES + HISTORIA
========================= */

/* Contenedor patrocinadores */
.patrocinadores-scroll {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 14px;

  padding: 14px;          /* margen lateral real */
  margin-top: 10px;
  margin-bottom: 26px;    /* separación con historia */

  width: 100%;
}

/* Tarjetas */
.patrocinador-card {
  width: 100%;
  aspect-ratio: 1 / 1;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Historia */
.historia {
  margin-top: 10px;
  margin-bottom: 10px;

  padding: 0 14px;        /* alineación con patrocinadores */
}

/* Tarjeta historia */
.historia-card {
  margin-top: 6px;
}

/* =========================
   BOTONES ADMIN PATROCINADORES
========================= */

.acciones-admin {
  position: absolute;
  top: -8px;
  right: -8px;

  display: flex;
  flex-direction: column;
  gap: 4px;

  z-index: 10;
}

.acciones-admin button {
  width: 28px;
  height: 28px;

  border-radius: 50%;
  border: none;

  color: white;
  font-size: 13px;
  font-weight: bold;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  padding: 0;
}

.acciones-admin button:nth-child(1) {
  background: #3b82f6; /* subir */
}

.acciones-admin button:nth-child(2) {
  background: #10b981; /* bajar */
}

.acciones-admin button:nth-child(3) {
  background: #ef4444; /* borrar */
}

.acciones-admin button:active {
  transform: scale(0.9);
}

/* ===== BADGES POR CATEGORÍA ===== */

.badge-categoria {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}

/* Infantil */
.badge-infantil {
  background: #5bb8f0;
  color: #FFFFFF;
}

/* Cadete */
.badge-cadete {
  background: #5bb8f0;
  color: #FFFFFF;
}

/* Juvenil */
.badge-juvenil {
  background: #5bb8f0;
  color: #FFFFFF;
}

.badge-genero {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}

/* Masculino */
.badge-masculino {
  background: #64B5F6;
  color: #FFFFFF;
}

/* Femenino */
.badge-femenino {
  background: #F48FB1;
  color: #FFFFFF;
}

.reproductor-cancion {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.controles-cancion {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

.btn-control {
  background: transparent;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  padding: 8px 12px;
  cursor: pointer;
}

#barra-cancion {

  width: 100%;
  max-width: 320px;

  margin-top: 10px;

}

/* ============================================================
   MEJORAS 2027 · rendimiento, móvil y accesibilidad
   (bloque añadido al final para que prevalezca sobre lo anterior)
   ============================================================ */

/* iOS hace zoom automático al enfocar un campo con letra menor de 16 px */
input,
select,
textarea {
  font-size: 16px;
}

/* sin retardo ni zoom por doble toque en elementos pulsables */
button,
a,
[role="button"],
select,
input {
  touch-action: manipulation;
}

[role="button"] {
  cursor: pointer;
}

/* foco visible para quien navega con teclado */
:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 2px;
}

button:focus-visible,
[role="button"]:focus-visible,
a:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 2px;
}

/* Bloques desplegables ocultos: no deben recibir foco ni leerse con el lector de pantalla.
   "visibility" se retrasa al cerrar para que se vea la animación de plegado. */
.categoria-partidos {
  transition:
    max-height 0.45s cubic-bezier(0.4, 0.0, 0.2, 1),
    opacity 0.3s ease,
    transform 0.35s ease,
    visibility 0s linear 0.45s;
}

.categoria-partidos.oculto {
  visibility: hidden;
}

.categoria-partidos.abierto {
  visibility: visible;
  transition:
    max-height 0.45s cubic-bezier(0.4, 0.0, 0.2, 1),
    opacity 0.3s ease,
    transform 0.35s ease,
    visibility 0s;
}

/* ---------- avisos (sustituyen a alert()) ---------- */
.avisos {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(92vw, 420px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 3000;
  pointer-events: none;
}

.aviso {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #1f2933;
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
  animation: avisoEntra 0.25s ease-out;
}

.aviso.error {
  background: #b91c1c;
}

.aviso.ok {
  background: #15803d;
}

.aviso button {
  width: auto;
  margin: 0;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  background: #fff;
  color: #1f2933;
  box-shadow: none;
  white-space: nowrap;
}

@keyframes avisoEntra {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- tarjetas de instalación / mensajes de estado ---------- */
.tarjeta-instalar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f2f9fe;
  border: 1px solid #fbd5a5;
  font-size: 14px;
}

.tarjeta-instalar strong {
  display: block;
}

.tarjeta-instalar .acciones {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.tarjeta-instalar button {
  width: auto;
  margin: 0;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}

.tarjeta-instalar .principal {
  background: var(--principal);
  color: #fff;
}

.estado-vacio,
.estado-error {
  text-align: center;
  padding: 28px 12px;
  color: #555;
}

.estado-error button {
  width: auto;
  display: inline-block;
  margin-top: 12px;
  padding: 12px 22px;
  background: var(--principal);
  color: #fff;
  font-weight: 700;
}

/* ---------- clasificación: que quepa en un móvil sin deslizar de lado ---------- */
@media (max-width: 520px) {
  .tabla.clasificacion-pro {
    min-width: 0;
    table-layout: fixed;
    width: 100%;
  }

  /* Se ocultan GF y GC (la diferencia DG ya resume ambos) */
  .tabla.clasificacion-pro th:nth-child(7),
  .tabla.clasificacion-pro td:nth-child(7),
  .tabla.clasificacion-pro th:nth-child(8),
  .tabla.clasificacion-pro td:nth-child(8) {
    display: none;
  }

  .tabla.clasificacion-pro th.col-pos,
  .tabla.clasificacion-pro td.posicion {
    width: 34px;
  }

  .tabla.clasificacion-pro th.col-mini,
  .tabla.clasificacion-pro td.col-mini {
    width: 32px;
    padding-left: 2px;
    padding-right: 2px;
  }

  .tabla.clasificacion-pro th.col-puntos,
  .tabla.clasificacion-pro td.col-puntos {
    width: 40px;
  }

  .tabla.clasificacion-pro th.col-equipo,
  .tabla.clasificacion-pro td:nth-child(2) {
    width: auto;
    max-width: none;
  }

  .equipo-tabla {
    min-width: 0;
    gap: 6px;
  }

  /* el nombre puede ocupar dos líneas en vez de cortarse con "…" */
  .nombre-equipo-tabla {
    white-space: normal;
    max-width: none;
    line-height: 1.15;
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .tabla.clasificacion-pro td,
  .tabla.clasificacion-pro th {
    white-space: normal;
  }
}

/* ---------- respetar a quien desactiva las animaciones ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ==========================================================================
   RENOVACIÓN 2027 · estilo "pastel consumer" (taste-skill)
   - La cabecera (.app-header y sus imágenes) NO se toca: la diseñas tú.
   - Azul claro como color principal: fondos y fichas en tonos pálidos de azul,
     texto en azul muy oscuro y el azul cielo solo en marcas pequeñas.
   - Superficies planas: sin sombras en reposo, sin degradados, sin emojis.
   - Un solo radio grande (20 px) que baja a 12 / 10 / 8 en lo que va dentro.
   Este bloque va al final a propósito: redefine los componentes sin tocar lo anterior.
   Para cambiar el color de toda la app basta con modificar las variables de aquí abajo.
   ========================================================================== */

:root {
  --ground: #eef6fc;          /* fondo de la app */
  --surface: #ffffff;         /* tarjetas */
  --raised: #f4f9fd;
  --tile: #dcf1ff;            /* fichas y chips azul claro */
  --tile-ink: #0a3a80;        /* texto sobre las fichas */
  --accent: #5bb8f0;          /* azul cielo: solo marcas pequeñas */
  --accent-text: #1b6fb8;     /* azul para texto y enlaces (contraste AA) */
  --border: #dbe7f1;
  --rule: #ebf2f8;
  --control: #c9d8e5;
  --text: #14212b;
  --muted: #566672;
  --positive: #247b50;
  --negative: #c41c29;
  --pill-live-bg: #ffedea;  --pill-live-ink: #831c1e;
  --pill-done-bg: #dcf1ff;  --pill-done-ink: #0a3a80;
  --pill-wait-bg: #eef1f4;  --pill-wait-ink: #3a3d40;

  --r-card: 20px;
  --r-control: 12px;
  --r-chip: 999px;
  --gap: 16px;
  --alto-barra: 64px;
  --fuente: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* compatibilidad con el CSS anterior */
  --principal: var(--accent);
  --principal-suave: var(--tile);
  --oscuro: var(--text);
  --blanco: #fff;
  --sombra: none;
}

body {
  background: var(--ground);
  color: var(--text);
  font-family: var(--fuente);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}
button, input, select, textarea { font-family: inherit; }

.ico { flex: none; display: block; }

/* ---------- navegación ---------- */
.header-wrapper { z-index: 20; }

/* Escritorio: barra de pestañas bajo la cabecera */
.nav-principal {
  position: sticky;
  top: 8px;
  margin: 14px auto 20px;
  padding: 6px;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-principal button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 52px;
  margin: 0;
  padding: 6px 4px;
  gap: 4px;
  opacity: 1;
  filter: none;
  background: none !important;
  color: var(--muted);
  border-radius: 14px !important;
  transition: background-color .15s ease, color .15s ease;
}
.nav-principal button span { font-size: 12px; font-weight: 500; color: inherit; line-height: 1; }
.nav-principal button.activo {
  background: var(--tile) !important;
  color: var(--tile-ink);
  text-shadow: none;
  transform: none;
}
.nav-principal button.activo span { color: var(--tile-ink); font-weight: 600; }
.nav-principal button.activo::after { display: none; }
@media (hover: hover) {
  .nav-principal button:not(.activo):hover { background: var(--raised) !important; color: var(--text); }
}

/* Móvil: barra inferior fija, a la altura del pulgar (y lejos de la cabecera) */
@media (max-width: 768px) {
  body { padding-bottom: calc(var(--alto-barra) + 24px + env(safe-area-inset-bottom)); }

  .nav-principal {
    position: fixed;
    top: auto; left: 0; right: 0;
    bottom: 0;
    width: auto; max-width: none;
    margin: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    z-index: 50;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
  }
  .nav-principal button { min-height: 48px; }
  .nav-principal button span { font-size: 11px; }

  #admin-fab { bottom: calc(var(--alto-barra) + 16px + env(safe-area-inset-bottom)); }
  .social-fab { bottom: calc(var(--alto-barra) + 78px + env(safe-area-inset-bottom)); }
  .avisos { bottom: calc(var(--alto-barra) + 16px + env(safe-area-inset-bottom)); }
}

/* ---------- títulos ---------- */
#contenido { background: transparent; border-radius: 0; padding: 8px 0 16px; }
main { padding-bottom: 24px; }

main h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  margin: 8px 0 18px;
}
main h3, .bloque-titulo {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text);
  margin: 28px 0 12px;
}
main h4 { font-weight: 600; color: var(--text); }

/* ---------- superficies planas ---------- */
.card, .club-card, .partido-card, .partido-card-mini, .equipo-card, .team-ios-card,
.bloque-actualizaciones, .tarjeta-instalar, .estado-error {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: none;
  background-image: none;
}

/* ---------- botones ---------- */
button {
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--control);
  border-radius: var(--r-control);
  box-shadow: none;
  min-height: 44px;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
@media (hover: hover) {
  main button:hover { background: var(--raised); border-color: var(--accent); }
}
button:active { transform: scale(.985); }

.volver, .volver-pabellones, .abrir-btn, .btn-finalizar, .estado-error button, .tarjeta-instalar .principal {
  background: var(--tile);
  background-image: none;
  color: var(--tile-ink);
  border-color: var(--tile);
  text-shadow: none;
}
@media (hover: hover) {
  main .volver:hover, main .abrir-btn:hover { background: #cbe8fb; border-color: #cbe8fb; }
}

/* ---------- campos ---------- */
select, input[type="text"], input[type="number"], input[type="time"], input[type="date"],
input[type="password"], input[type="search"], textarea {
  color: var(--text);
  background-color: var(--surface);
  border: 1px solid var(--control);
  border-radius: var(--r-control);
  min-height: 44px;
  box-shadow: none;
}
select:focus, input:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.subfiltros { display: flex; flex-wrap: wrap; gap: 8px; }
.subfiltros select { flex: 1 1 100px; min-width: 0; max-width: 100%; font-size: 14px; padding-left: 10px; padding-right: 22px; text-overflow: clip; }

.tab {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--control);
  border-radius: var(--r-chip);
  box-shadow: none;
}
.tab.active { background: var(--tile); color: var(--tile-ink); border-color: var(--tile); }

/* ---------- partidos agrupados ---------- */
.fecha-header, .categoria-header {
  background: var(--tile);
  background-image: none;
  color: var(--tile-ink);
  border: 0;
  border-radius: var(--r-card);
  box-shadow: none;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  text-shadow: none;
}
.fecha-header * { color: inherit; }
.categoria-header { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-control); }

/* chips de categoría y género dentro de la lista */
.badge-infantil, .badge-cadete, .badge-juvenil, .badge-genero, .badge-fase {
  background: var(--tile);
  background-image: none;
  color: var(--tile-ink);
  border-radius: var(--r-chip);
  font-weight: 600;
  text-shadow: none;
}

/* ---------- tarjeta de partido: el marcador es el protagonista ---------- */
.partido-card { padding: 16px; position: relative; overflow: hidden; }
.partido-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent); }

.partido-fecha { font-size: 14px; color: var(--muted); opacity: 1; margin-bottom: 8px; }
.partido-fecha strong { font-weight: 500; }
.partido-categoria { background: var(--tile); color: var(--tile-ink); font-weight: 600; font-size: 12px; padding: 3px 10px; border-radius: var(--r-chip); }
.partido-grupo { color: var(--muted); font-size: 14px; margin-top: 4px; }

.partido-equipos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin: 14px 0 10px;
}
.equipo-partido { text-align: center; gap: 4px; }
.escudo-partido { width: 40px; height: 40px; object-fit: contain; margin: 0 0 2px; }
.nombre-equipo { font-size: 14px; font-weight: 600; line-height: 1.25; opacity: 1; }

.partido-equipos .resultado-centro {
  min-width: 76px;
  padding: 8px 12px;
  border-radius: var(--r-control);
  background: var(--tile);
  color: var(--tile-ink);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
  opacity: 1;
}

/* estado: una sola marca por tarjeta */
.badge-estado { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-chip); }
.badge-estado::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-estado.en_juego { background: var(--pill-live-bg); color: var(--pill-live-ink); }
.badge-estado.finalizado { background: var(--pill-done-bg); color: var(--pill-done-ink); }
.badge-estado.pendiente { background: var(--pill-wait-bg); color: var(--pill-wait-ink); }

.info-partido, .partido-info, .partido-hora-lugar { color: var(--muted); font-size: 14px; }

/* ---------- cifras ---------- */
.partido-marcador, .resultado-final, .goles, .marcador-pro, .tabla td, .clasificacion-pro td, .posicion {
  font-variant-numeric: tabular-nums;
}

/* ---------- tablas: sin banda de cabecera, solo alineación y líneas finas ---------- */
.tabla-wrapper { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 6px 4px; }
.tabla, .clasificacion-pro { border-collapse: collapse; width: 100%; }
.tabla th, .clasificacion-pro th {
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  border: 0;
  border-bottom: 1px solid var(--border);
  text-transform: none;
  letter-spacing: 0;
}
.tabla td, .clasificacion-pro td { border: 0; border-bottom: 1px solid var(--rule); color: var(--text); }
.clasificacion-pro tr:last-child td { border-bottom: 0; }
.clasificacion-pro td.col-puntos, .clasificacion-pro th.col-puntos { font-weight: 600; color: var(--tile-ink); }

/* ---------- tarjetas con relleno azul claro ---------- */
.galeria-badge, .detalle-categoria, .equipo-ios.local {
  background: var(--tile);
  background-image: none;
  color: var(--tile-ink);
  border: 0;
  border-radius: var(--r-card);
  box-shadow: none;
}
.galeria-badge *, .detalle-categoria * { color: inherit; }
.badge-texto { color: var(--tile-ink); }
.btn-control { background: var(--surface); border: 1px solid var(--control); color: var(--tile-ink); min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- enlaces y pie ---------- */
a { color: var(--accent-text); }
.footer-email a { color: var(--accent-text); }
.app-footer, .footer-copy { color: var(--muted); }
.titulo-categoria-dia, .round h4 { color: var(--accent-text); }

/* ---------- carga y botones flotantes ---------- */
#splash { background: var(--tile); overflow: hidden; }
#splash-progreso { background: var(--accent-text); }

#admin-fab, .social-main {
  background: var(--surface);
  color: var(--tile-ink);
  border: 1px solid var(--border);
  box-shadow: none;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
}
#admin-fab.admin-activo { background: var(--tile); border-color: var(--accent); }

.aviso { background: var(--text); color: #fff; border-radius: var(--r-control); box-shadow: 0 6px 24px rgba(20, 33, 43, .22); }
.social-menu { border-radius: var(--r-card); box-shadow: 0 6px 24px rgba(20, 33, 43, .16); }

/* ---------- vacíos ---------- */
.estado-vacio { color: var(--muted); border: 1px dashed var(--control); border-radius: var(--r-control); padding: 20px; text-align: center; background: transparent; }

/* accesibilidad: foco visible en todo lo que se puede pulsar */
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }

/* ---- afinado tras revisar capturas ---- */
.genero-header { background: transparent; border: 0; box-shadow: none; padding: 6px 0; min-height: 0; }
.badge-masculino { background: var(--tile); color: var(--tile-ink); }
.badge-femenino  { background: #fde4ee; color: #7a1f45; }

/* las fechas se escriben ya con su formato: sin poner mayúscula a "De" */
.partido-fecha, .detalle-fecha-hora { text-transform: none; }
.partido-fecha strong::first-letter, .detalle-fecha-hora strong::first-letter { text-transform: uppercase; }

/* estado en la tarjeta de "partidos en juego" del inicio: mismo lenguaje que las demás */
.actualizacion-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: none; }
.estado-en-juego, .estado-en_juego { color: var(--pill-live-ink); }
.actualizacion-estado { display: inline-flex; align-items: center; gap: 6px; background: var(--pill-live-bg); color: var(--pill-live-ink); font-weight: 600; font-size: 13px; padding: 4px 10px; border-radius: var(--r-chip); }
.actualizacion-estado::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---- ajustes tras pasar el inspector ---- */
main { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

.historia-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: none; color: var(--text); padding: 20px; }
.historia-card p { margin: 0 0 12px; max-width: 68ch; }
.historia-card p:last-child { margin-bottom: 0; }

.galeria-badge { max-width: none; background: var(--tile); box-shadow: none; }

/* los botones de la lista de redes viven dentro de un menú flotante: planos, con borde */
.social-btn { box-shadow: none; border: 1px solid var(--border); background: var(--surface); color: var(--text); }

/* el título de la página está solo para lectores de pantalla (la cabecera visual la diseñas tú) */
.app-header h1 { font-size: 22px; font-weight: 600; }

/* seis destinos en una barra de 390 px: los textos nunca quedan pegados al borde */
@media (max-width: 768px) {
  .nav-principal { padding-left: 14px; padding-right: 14px; gap: 0; }
  .nav-principal button { padding-left: 0; padding-right: 0; }
  .nav-principal button span { letter-spacing: -0.01em; white-space: nowrap; }
}

/* ---- detalle del partido: dos fichas planas y el marcador en grande ---- */
.equipo-marcador { color: var(--tile-ink); box-shadow: none; border-radius: var(--r-card); width: 148px; }
.equipo-marcador.local { background: var(--tile); }
.equipo-marcador.visitante { background: #e6ecf2; color: var(--text); }
.escudo-marcador { filter: none; }
.goles, .equipo-marcador.local .goles, .equipo-marcador.visitante .goles { font-size: 44px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.goles.animar { color: var(--accent-text); }
.separador { font-size: 32px; font-weight: 500; color: var(--muted); }
.marcador-botones button { min-height: 52px; font-size: 20px; }
.boton-local { background: var(--tile); border-color: var(--tile); color: var(--tile-ink); }
.boton-visitante { background: #e6ecf2; border-color: #e6ecf2; color: var(--text); }
.info-partido-detalle { color: var(--muted); }

/* ---- detalle del partido (marcador) ---- */
.marcador-ios { padding: 8px 0; gap: 12px; }
.equipo-ios { background: var(--tile); color: var(--tile-ink); border-radius: var(--r-card); box-shadow: none; }
.equipo-ios.visitante { background: #e6ecf2; color: var(--text); }
.escudo-ios { filter: none; }
.nombre-ios { font-weight: 600; }
.goles-ios { font-size: 44px; font-weight: 600; font-variant-numeric: tabular-nums; }
.vs-ios { font-size: 28px; font-weight: 500; opacity: 1; color: var(--muted); }

.team-ios-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: none; }
.team-name { font-weight: 600; }
.team-group { color: var(--muted); }
.team-ios-header { color: var(--accent-text); }

/* ---- clasificación: cifras a la derecha, equipo a la izquierda ---- */
.clasificacion-pro th, .clasificacion-pro td { text-align: right; font-variant-numeric: tabular-nums; }
.clasificacion-pro th:nth-child(1), .clasificacion-pro td:nth-child(1),
.clasificacion-pro th:nth-child(2), .clasificacion-pro td:nth-child(2) { text-align: left; }
.titulo-grupo { font-size: 16px; font-weight: 600; margin: 14px 8px 8px; color: var(--text); }

/* ---- filtros: los tres caben en 390 px sin cortar "Masculino" ---- */
.subfiltros select { font-size: 14px; padding: 10px 24px 10px 12px; flex: 1 1 108px; }
.subfiltros select { flex: 1 1 calc(50% - 8px); }

/* ---- últimos retoques ---- */
.actualizaciones-home h3 { color: var(--text); }

.tarjeta-instalar { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 16px; }
.tarjeta-instalar span { color: var(--muted); font-size: 14px; }
.tarjeta-instalar .acciones { display: flex; gap: 8px; margin-top: 4px; }
.tarjeta-instalar button { flex: 1; margin: 0; }
@media (min-width: 769px) {
  .tarjeta-instalar { flex-direction: row; align-items: center; }
  .tarjeta-instalar span { flex: 1; }
  .tarjeta-instalar .acciones { margin: 0; }
  .tarjeta-instalar button { flex: none; width: auto; padding: 0 16px; }
}

.badge-texto { flex: 1; text-align: left; }
input[type="range"] { width: 100%; accent-color: var(--accent-text); }

/* ============================================================
   PORTADA 2027 · hero, reproductor y fotos (más color y energía)
   ============================================================ */
:root {
  --azul-fuerte: #1b6fb8;
  --azul-medio: #2b86d9;
  --brillo: #bfe5fb;
}

/* ---- hero ---- */
.hero-inicio {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--azul-medio) 0%, var(--azul-fuerte) 100%);
  color: #fff;
  border-radius: 28px;
  padding: 26px 22px 22px;
  margin: 4px 0 18px;
  animation: entra .5s ease both;
}
.hero-inicio::before, .hero-inicio::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255,255,255,.12);
}
.hero-inicio::before { width: 220px; height: 220px; right: -70px; top: -90px; }
.hero-inicio::after  { width: 130px; height: 130px; right: 40px; bottom: -70px; background: rgba(255,255,255,.08); }
.hero-inicio > * { position: relative; z-index: 1; }
.hero-etiqueta {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255,255,255,.18); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}
main .hero-inicio h2 { color: #fff; font-size: clamp(28px, 7vw, 40px); font-weight: 800; letter-spacing: -.03em; margin: 0 0 10px; }
.hero-inicio p { margin: 0 0 20px; font-size: 15px; line-height: 1.5; color: #e8f4fd; max-width: 46ch; }
.hero-accesos { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-accesos button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  flex: 1 1 0; min-width: 96px; min-height: 48px; padding: 0 14px; margin: 0;
  background: #fff; color: var(--azul-fuerte); border: 0; border-radius: 999px;
  font-weight: 700; font-size: 14px; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.hero-accesos button:hover { background: #eaf5fd; }
.hero-accesos button:active { transform: scale(.96); }

/* ---- reproductor de la canción ---- */
.reproductor {
  display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center;
  grid-template-areas: "cover cab" "cover bar" "cover pie";
  background: linear-gradient(135deg, #e6f4fe 0%, #cfe9fb 100%);
  border: 1px solid #c3e1f7;
  border-radius: 24px; padding: 16px; margin: 0 0 22px;
  animation: entra .5s .08s ease both;
}
.reproductor-portada {
  grid-area: cover; align-self: center; width: 88px; height: 88px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--azul-medio), var(--azul-fuerte)); color: #fff; border-radius: 24px;
}
.reproductor-cabecera { grid-area: cab; }
#barra-cancion { grid-area: bar; }
.reproductor-pie { grid-area: pie; }
.reproductor.sonando .reproductor-portada { animation: late 1.6s ease-in-out infinite; }
.reproductor-cabecera { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.reproductor-etiqueta { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--azul-fuerte); margin-bottom: 2px; }
.reproductor-titulo { display: block; font-size: 18px; font-weight: 800; color: #0a3a80; letter-spacing: -.01em; }

.ecualizador { display: flex; align-items: flex-end; gap: 3px; height: 26px; flex: none; }
.ecualizador i { display: block; width: 4px; height: 26px; border-radius: 3px; background: var(--azul-medio); transform-origin: bottom; transform: scaleY(var(--h, .3)); }
.ecualizador i:nth-child(1) { --h: .35; } .ecualizador i:nth-child(2) { --h: .6; } .ecualizador i:nth-child(3) { --h: .45; } .ecualizador i:nth-child(4) { --h: .75; } .ecualizador i:nth-child(5) { --h: .3; }
.reproductor.sonando .ecualizador i { animation: eq 0.9s ease-in-out infinite; }
.reproductor.sonando .ecualizador i:nth-child(2) { animation-delay: -.7s; }
.reproductor.sonando .ecualizador i:nth-child(3) { animation-delay: -.3s; }
.reproductor.sonando .ecualizador i:nth-child(4) { animation-delay: -.55s; }
.reproductor.sonando .ecualizador i:nth-child(5) { animation-delay: -.15s; }

#barra-cancion {
  -webkit-appearance: none; appearance: none; width: 100%; max-width: none; height: 8px; margin: 12px 0 8px;
  border-radius: 999px; outline: none; cursor: pointer;
  background: linear-gradient(to right, var(--azul-fuerte) var(--p, 0%), rgba(27,111,184,.2) var(--p, 0%));
}
#barra-cancion::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--azul-fuerte); }
#barra-cancion::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--azul-fuerte); }
#barra-cancion:focus-visible { outline: 3px solid #0a3a80; outline-offset: 4px; }

.reproductor-pie { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; color: #0a3a80; font-variant-numeric: tabular-nums; }
.reproductor .controles-cancion { gap: 12px; }
.reproductor .btn-control { width: 44px; height: 44px; padding: 0; border-radius: 50%; background: #fff; border: 1px solid #b4d8f2; color: var(--azul-fuerte); transition: transform .15s ease; }
.reproductor .btn-control:active { transform: scale(.92); }
.reproductor .btn-play { width: 60px; height: 60px; background: var(--azul-fuerte); border-color: var(--azul-fuerte); color: #fff; }
.reproductor .btn-play .ico { fill: currentColor; }

/* ---- fotos ---- */
.titulo-seccion { margin: 6px 0 12px; }
.fotos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.fotos-grid section { min-width: 0; }
.fotos-grid .galeria2026-scroll, .fotos-grid .galeria-scroll { padding: 0; }
.fotos-grid .galeria-badge {
  flex-direction: column; align-items: flex-start; gap: 14px; height: 100%;
  background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 16px; max-width: none;
  color: var(--text); transition: transform .15s ease, border-color .15s ease;
}
.fotos-grid .galeria-badge:hover { border-color: var(--accent); }
.fotos-grid .galeria-badge .badge-icon {
  width: 48px; height: 48px; border-radius: 16px; background: var(--tile); color: var(--azul-fuerte);
}
.fotos-grid .badge-texto strong { font-size: 17px; font-weight: 800; color: var(--text); }
.fotos-grid .badge-texto span { font-size: 13px; color: var(--accent-text); font-weight: 600; opacity: 1; }

/* ---- títulos de sección con barra de color ---- */
main h3 { position: relative; padding-left: 14px; }
main h3::before { content: ""; position: absolute; left: 0; top: 14%; bottom: 14%; width: 4px; border-radius: 4px; background: var(--accent); }

/* ---- animaciones ---- */
@keyframes entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
@keyframes late { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) {
  .hero-inicio, .reproductor, .reproductor.sonando .reproductor-portada, .reproductor.sonando .ecualizador i { animation: none; }
  .reproductor.sonando .ecualizador i { transform: scaleY(.6); }
}

@media (max-width: 520px) {
  .reproductor { grid-template-columns: 64px 1fr; grid-template-areas: "cover cab" "bar bar" "pie pie"; row-gap: 4px; }
  .reproductor-portada { width: 64px; height: 64px; border-radius: 20px; }
  .hero-accesos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-accesos button { flex-direction: column; gap: 4px; min-width: 0; min-height: 64px; padding: 8px 4px; border-radius: 20px; font-size: 13px; }
}

/* ---- hero en azul claro (sin azul oscuro) ---- */
.hero-inicio {
  background: linear-gradient(135deg, #e3f4ff 0%, #bfe5fb 100%);
  color: #0a3a80;
  border: 1px solid #b4daf3;
}
.hero-inicio::before { background: rgba(91,184,240,.28); }
.hero-inicio::after  { background: rgba(255,255,255,.55); }
.hero-etiqueta { background: #fff; color: var(--azul-fuerte); }
main .hero-inicio h2 { color: #0a3a80; }
.hero-inicio p { color: #1d4f86; }
.hero-accesos button { border: 1px solid #b4daf3; }
.hero-accesos button:hover { background: #f4faff; }

/* botón de play y portada del reproductor también en azul claro/medio */
.reproductor-portada { background: linear-gradient(135deg, #7cc8f5, #4aa9ea); }
.reproductor .btn-play { background: var(--azul-medio); border-color: var(--azul-medio); }

/* ============================================================
   TIENDA · expositor de productos del torneo
   ============================================================ */
.tienda-intro { margin: -6px 0 18px; color: var(--muted); max-width: 60ch; }
.tienda-intro strong { color: var(--text); }
.tienda-nuevo { margin: 0 0 18px; }

.productos-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .productos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .productos-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.producto-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: 22px; overflow: hidden;
  animation: entra .4s ease both; transition: border-color .15s ease, transform .15s ease;
}
.producto-card:hover { border-color: var(--accent); }
.producto-foto { position: relative; aspect-ratio: 1 / 1; background: var(--tile); display: flex; align-items: center; justify-content: center; }
.producto-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.producto-sin-foto { color: var(--azul-fuerte); opacity: .6; }
.producto-agotado {
  position: absolute; top: 10px; left: 10px; background: #fff; color: #8a2020; font-size: 12px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px; border: 1px solid #f0c9c9;
}
.producto-card.agotado .producto-foto img { filter: grayscale(.85); opacity: .65; }
.producto-info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.producto-nombre { font-weight: 700; font-size: 16px; color: var(--text); line-height: 1.25; }
.producto-desc {
  margin: 0; font-size: 13px; color: var(--muted); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.producto-precio {
  margin-top: auto; align-self: flex-start; background: var(--tile); color: var(--azul-fuerte);
  font-weight: 800; font-size: 17px; padding: 6px 12px; border-radius: 999px; font-variant-numeric: tabular-nums;
}
.producto-card.agotado .producto-precio { background: #eef1f4; color: #6b7a86; text-decoration: line-through; }

.producto-admin { display: flex; gap: 8px; padding: 0 14px 14px; }
.producto-admin button { flex: 1; margin: 0; min-height: 40px; padding: 0 8px; font-size: 14px; }
.producto-admin .secundario { background: var(--tile); color: var(--tile-ink); border: 0; }
.producto-admin .peligro { background: #fdecec; color: #8a2020; border: 0; }

.tienda-vacia {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  background: var(--surface); border: 1px dashed #b4daf3; border-radius: 22px; padding: 40px 20px; color: var(--muted);
}
.tienda-vacia .ico { color: var(--azul-medio); }
.tienda-vacia strong { color: var(--text); font-size: 18px; }

textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--text); resize: vertical; }
.check-linea { display: flex; align-items: center; gap: 10px; margin: 8px 0 16px; }
.check-linea input { width: 20px; height: 20px; accent-color: var(--azul-fuerte); }

/* siete pestañas: etiquetas algo más compactas en móvil */
@media (max-width: 520px) {
  .nav-principal button span { font-size: 10.5px; }
  .nav-principal button { padding-left: 2px; padding-right: 2px; }
}

/* ---- tienda: ajustes ---- */
.producto-nombre, .producto-desc { overflow-wrap: anywhere; }
.producto-card { min-width: 0; }
.producto-admin button { font-size: 13px; }

.form-producto { max-width: 560px; }
.form-producto label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; color: var(--text); }
.form-producto input:not([type="checkbox"]):not([type="file"]), .form-producto textarea {
  display: block; width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; color: var(--text);
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
}
.form-producto input:focus-visible, .form-producto textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.form-producto input[type="file"] { width: 100%; padding: 12px; background: #fff; border: 1px dashed #9fcff0; border-radius: 14px; font: inherit; }
.form-producto input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--tile); color: var(--tile-ink); font-weight: 600; cursor: pointer; }
.form-producto .check-linea { display: flex; font-weight: 500; }
.form-producto #prod-guardar { margin-top: 22px; background: var(--azul-medio); color: #fff; border: 0; }
.form-producto #prod-guardar:disabled { opacity: .6; }
.form-producto .volver { margin-top: 10px; }

@media (max-width: 520px) { .nav-principal button span { font-size: 10px; letter-spacing: -.01em; } }

/* ---- club: equipos desplegables con sus partidos ---- */
.team-clicable { cursor: pointer; transition: border-color .15s ease; }
.team-clicable:hover, .team-clicable.abierto { border-color: var(--accent); }
.team-clicable:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.team-ver-partidos { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--accent-text); }
.team-ver-partidos .ico { transition: transform .2s ease; }
.team-clicable.abierto .team-ver-partidos .ico { transform: rotate(180deg); }
.partidos-club { margin-top: 12px; padding-top: 4px; border-top: 1px solid var(--border); cursor: default; }
.partidos-club.oculto { display: none; }
.partidos-club .bloque-partidos { margin: 12px 0 8px; color: var(--text); font-size: 14px; }
.partidos-club .partido-card-mini { margin: 0 0 8px; padding: 10px 12px; cursor: pointer; border-color: var(--border); }
.partidos-club .partido-card-mini:hover { border-color: var(--accent); }
.partidos-club .partido-vacio { margin: 4px 0 8px; color: var(--muted); font-size: 14px; }

/* ============================================================
   AVISOS DE PARTIDOS
   ============================================================ */
.tarjeta-avisos {
  display: flex; align-items: center; gap: 14px; width: 100%; margin: 0 0 18px; padding: 14px 16px; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px; color: var(--text); cursor: pointer;
  transition: border-color .15s ease, transform .15s ease; animation: entra .45s ease both;
}
.tarjeta-avisos:hover { border-color: var(--accent); }
.tarjeta-avisos:active { transform: scale(.985); }
.avisos-icono { flex: none; width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--tile); color: var(--azul-fuerte); }
.avisos-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.avisos-texto strong { font-size: 16px; font-weight: 700; }
.avisos-texto small { font-size: 13px; color: var(--muted); }
.tarjeta-avisos > .ico:last-child { color: var(--muted); }

.aviso-info { background: #fff8e6; border: 1px solid #f1deaa; color: #6a4f06; border-radius: 16px; padding: 12px 14px; margin: 0 0 16px; font-size: 14px; line-height: 1.45; }

.avisos-switch {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
}
.avisos-switch.desactivado { opacity: .55; cursor: not-allowed; }
.avisos-switch span { display: flex; flex-direction: column; gap: 2px; }
.avisos-switch small { color: var(--muted); font-size: 13px; }
.avisos-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.avisos-switch i { flex: none; position: relative; width: 52px; height: 32px; border-radius: 999px; background: #c9d6e0; transition: background .2s ease; }
.avisos-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.avisos-switch input:checked ~ i { background: var(--azul-medio); }
.avisos-switch input:checked ~ i::after { transform: translateX(20px); }
.avisos-switch input:focus-visible ~ i { outline: 3px solid var(--accent); outline-offset: 3px; }
.avisos-guardado { min-height: 20px; margin: 6px 4px 0; font-size: 13px; color: var(--accent-text); }

.avisos-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.aviso-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.aviso-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 14px; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.aviso-chip input:checked + span { background: var(--azul-medio); border-color: var(--azul-medio); color: #fff; }
.aviso-chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.avisos-buscar { width: 100%; min-height: 48px; padding: 12px 16px; margin: 0 0 12px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font: inherit; }
.avisos-club { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; margin-bottom: 10px; overflow: hidden; }
.avisos-club[open] { border-color: var(--accent); }
.avisos-club summary { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; cursor: pointer; list-style: none; }
.avisos-club summary::-webkit-details-marker { display: none; }
.avisos-club summary:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 20px; }
.avisos-escudo { flex: none; width: 26px; height: 26px; object-fit: contain; }
.avisos-club-nombre { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; color: var(--text); overflow-wrap: anywhere; }
.avisos-contador { flex: none; font-size: 12px; font-weight: 700; color: var(--azul-fuerte); }
.avisos-contador:not(:empty) { background: var(--tile); padding: 4px 10px; border-radius: 999px; }
.avisos-club summary .ico { flex: none; color: var(--muted); transition: transform .2s ease; }
.avisos-club[open] summary .ico { transform: rotate(180deg); }
.avisos-club-equipos { padding: 0 16px 8px; border-top: 1px solid var(--border); }
.aviso-opcion { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 0; cursor: pointer; border-top: 1px solid var(--border); }
.aviso-opcion:first-of-type { border-top: 0; }
.aviso-opcion input { width: 22px; height: 22px; flex: none; accent-color: var(--azul-fuerte); }
.aviso-opcion span { display: flex; flex-direction: column; }
.aviso-opcion small { color: var(--muted); font-size: 13px; }

/* ---- fotos: la edición más reciente ocupa todo el ancho en móvil ---- */
.fotos-grid .galeria2027 { grid-column: 1 / -1; }
.fotos-grid .galeria2027 .galeria-badge { flex-direction: row; align-items: center; background: var(--tile); border-color: #b4daf3; }
.fotos-grid .galeria2027 .badge-icon { background: #fff; }
@media (min-width: 720px) {
  .fotos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fotos-grid .galeria2027 { grid-column: auto; }
  .fotos-grid .galeria2027 .galeria-badge { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   REPRODUCTOR FLOTANTE (círculo a la izquierda, como admin y redes)
   ============================================================ */
body.splash-activo .music-fab { display: none !important; }

.music-fab {
  position: fixed; left: max(18px, env(safe-area-inset-left)); bottom: calc(60px + env(safe-area-inset-bottom));
  z-index: 1800; display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 10px;
}
@media (max-width: 768px) { .music-fab { bottom: calc(var(--alto-barra) + 16px + env(safe-area-inset-bottom)); } }

.music-main {
  position: relative; width: 48px; height: 48px; padding: 0; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--azul-fuerte); border: 1px solid var(--border); box-shadow: none;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.music-main:active { transform: scale(.92); }
.music-main:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.music-fab.open .music-main { background: var(--tile); border-color: var(--accent); }

/* mientras suena, la nota deja paso al ecualizador */
.music-main .ecualizador { display: none; height: 20px; }
.music-main .ecualizador i { width: 3px; }
.music-fab.sonando .music-main { background: var(--azul-medio); border-color: var(--azul-medio); color: #fff; }
.music-fab.sonando .music-main .ecualizador { display: flex; }
.music-fab.sonando .music-main .ecualizador i { background: #fff; animation: eq .9s ease-in-out infinite; }
.music-fab.sonando .music-main .ecualizador i:nth-child(2) { animation-delay: -.6s; }
.music-fab.sonando .music-main .ecualizador i:nth-child(3) { animation-delay: -.3s; }
.music-fab.sonando .music-main .ecualizador i:nth-child(4) { animation-delay: -.45s; }
.music-fab.sonando .music-main .ico-nota { display: none; }

.music-panel {
  width: min(300px, calc(100vw - 36px)); padding: 14px 16px 12px; border-radius: 22px;
  background: linear-gradient(135deg, #f1f9ff 0%, #d9eefc 100%); border: 1px solid #b4daf3;
  box-shadow: 0 6px 24px rgba(20, 33, 43, .16);
  opacity: 0; transform: translateY(8px); pointer-events: none; visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.music-fab.open .music-panel { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.music-cabecera { display: flex; flex-direction: column; }
.music-panel #barra-cancion { margin: 10px 0 6px; }
.music-panel .reproductor-pie { gap: 6px; }
.music-panel .btn-control { width: 40px; height: 40px; padding: 0; border-radius: 50%; background: #fff; border: 1px solid #b4d8f2; color: var(--azul-fuerte); display: inline-flex; align-items: center; justify-content: center; }
.music-panel .btn-play { width: 52px; height: 52px; background: var(--azul-medio); border-color: var(--azul-medio); color: #fff; }
.music-panel .btn-play .ico { fill: currentColor; }
@media (prefers-reduced-motion: reduce) { .music-fab.sonando .music-main .ecualizador i { animation: none; transform: scaleY(.6); } }
.music-main .ecualizador { height: 20px; }
.music-main .ecualizador i { height: 20px; }

/* ---------- splash con vídeo ---------- */
.splash-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.splash-velo {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(223,240,253,.8), rgba(223,240,253,.68) 50%, rgba(223,240,253,.85));
}
#splash img { position: relative; max-width: 70vw; height: auto; filter: drop-shadow(0 6px 18px rgba(27,111,184,.25)); }
.splash-content { z-index: 1; }
.splash-texto { color: var(--accent-text); }
@media (prefers-reduced-motion: reduce) { .splash-video { display: none; } }

/* ---------- clasificación renovada ---------- */
.clas-lista { display: grid; gap: 16px; }
.clas-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: 0 8px 24px rgba(27,111,184,.08); }
.clas-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: linear-gradient(135deg, var(--tile), var(--brillo)); }
.clas-cab h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--tile-ink); }
.clas-cab span { font-size: 12px; font-weight: 600; color: var(--accent-text); background: rgba(255,255,255,.7); padding: 4px 10px; border-radius: 999px; }
.clas-scroll { overflow-x: auto; }
.clas-tabla { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.clas-tabla th { padding: 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--muted); text-align: center; background: #f6fafe; border-bottom: 1px solid var(--border); }
.clas-tabla td { padding: 10px 6px; font-size: 14px; text-align: center; color: var(--text); border-bottom: 1px solid #edf3f9; }
.clas-tabla tbody tr:last-child td { border-bottom: 0; }
.clas-tabla tbody tr:nth-child(even) { background: #fafcfe; }
.clas-tabla tr.es-lider { background: linear-gradient(90deg, rgba(91,184,240,.16), rgba(91,184,240,0) 70%); }
.clas-tabla .c-pos { width: 44px; padding-left: 12px; }
.clas-tabla .c-eq { text-align: left; width: 100%; min-width: 140px; }
.clas-tabla .c-pts { width: 56px; padding-right: 12px; }
.clas-tabla .c-ext { display: none; }
.clas-equipo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.clas-equipo span { font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.clas-escudo { width: 28px; height: 28px; object-fit: contain; flex: none; }
.clas-escudo-vacio { border-radius: 50%; background: var(--tile); }
.pos-badge { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: 700; color: var(--muted); }
.pos-1 { background: linear-gradient(135deg, var(--accent), var(--azul-medio)); color: #fff; box-shadow: 0 4px 10px rgba(43,134,217,.35); }
.pos-2 { background: var(--brillo); color: var(--tile-ink); }
.pos-3 { background: var(--tile); color: var(--tile-ink); }
.pts-pill { display: inline-block; min-width: 34px; padding: 4px 8px; border-radius: 999px; background: var(--tile); color: var(--tile-ink); font-weight: 700; }
.es-lider .pts-pill { background: var(--azul-fuerte); color: #fff; }
.dg-pos { color: #1c8a4f; font-weight: 600; }
.dg-neg { color: #c4453a; font-weight: 600; }
.clas-leyenda { margin: 14px 4px 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
@media (min-width: 700px) {
  .clas-tabla .c-ext { display: table-cell; }
  .clas-tabla th, .clas-tabla td { padding: 12px 10px; }
  .clas-tabla td { font-size: 15px; }
}
@media (max-width: 420px) {
  .clas-tabla th, .clas-tabla td { padding-left: 3px; padding-right: 3px; }
  .clas-tabla .c-pos { width: 38px; padding-left: 8px; }
  .clas-tabla .c-pts { padding-right: 8px; }
  .clas-escudo { width: 24px; height: 24px; }
  .clas-equipo { gap: 8px; }
  .clas-equipo span { font-size: 13px; }
}

/* ---------- pabellones renovados ---------- */
.pab-intro { margin: 4px 0 18px; color: var(--muted); font-size: 14px; }
.pab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pab-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; cursor: pointer; box-shadow: 0 8px 22px rgba(27,111,184,.09); transition: transform .2s ease, box-shadow .2s ease; }
.pab-card:active { transform: scale(.97); }
.pab-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) { .pab-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(27,111,184,.18); } .pab-card:hover .pab-foto img { transform: scale(1.06); } .pab-card:hover .pab-flecha { background: var(--azul-fuerte); color: #fff; } }
.pab-foto { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tile); }
.pab-foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.pab-foto::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(10,58,128,.28)); pointer-events: none; }
.pab-chip { position: absolute; top: 10px; left: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 8px; border-radius: 999px; background: rgba(255,255,255,.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--tile-ink); font-size: 11px; font-weight: 600; }
.pab-info { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 12px 14px 14px; }
.pab-texto { display: grid; gap: 2px; min-width: 0; }
.pab-nombre { font-size: 16px; font-weight: 600; color: var(--text); line-height: 1.2; overflow-wrap: anywhere; }
.pab-contador { font-size: 13px; color: var(--accent-text); font-weight: 500; }
.pab-flecha { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--tile); color: var(--tile-ink); transition: background .2s, color .2s; }
@media (min-width: 760px) { .pab-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 380px) { .pab-chip { display: none; } .pab-nombre { font-size: 15px; } }

.pab-chip { display: none; }
.pab-flecha { position: absolute; right: 10px; bottom: 10px; z-index: 1; width: 34px; height: 34px; background: rgba(255,255,255,.92); box-shadow: 0 4px 10px rgba(10,58,128,.25); }
.pab-info { padding: 12px 14px 14px; }
.pab-nombre { overflow-wrap: normal; }

/* ---------- partidos renovados ---------- */
.pt-resumen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 22px; }
.pt-dato { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 12px 8px; text-align: center; box-shadow: 0 6px 18px rgba(27,111,184,.07); }
.pt-dato strong { display: block; font-size: 24px; font-weight: 700; color: var(--tile-ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.pt-dato span { font-size: 12px; font-weight: 600; color: var(--muted); }
.pt-dato.vivo { background: var(--pill-live-bg); border-color: transparent; }
.pt-dato.vivo strong, .pt-dato.vivo span { color: var(--pill-live-ink); }
.pt-titulo { display: flex; align-items: center; gap: 10px; }
.pt-cuenta { font-size: 12px; font-weight: 700; color: var(--accent-text); background: var(--tile); padding: 3px 10px; border-radius: 999px; }
p.estado-vacio { background: var(--surface); border: 1px dashed var(--border); border-radius: 18px; padding: 22px; text-align: center; color: var(--muted); }

.fecha-bloque { margin-bottom: 12px; }
.fecha-header { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 6px 18px rgba(27,111,184,.07); padding: 14px 16px; color: var(--text); }
.fecha-header .fecha-texto { flex: 1; min-width: 0; font-weight: 600; }
.fecha-header .fecha-texto::first-letter { text-transform: uppercase; }
.fecha-header .fecha-cuenta { font-size: 12px; font-weight: 600; color: var(--accent-text); background: var(--tile); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.chip-hoy { font-style: normal; font-size: 11px; font-weight: 700; margin-left: 6px; padding: 3px 8px; border-radius: 999px; background: var(--azul-fuerte); color: #fff; vertical-align: middle; text-transform: none; }

.partido-card.pc { padding: 16px; border-radius: 20px; box-shadow: 0 8px 22px rgba(27,111,184,.09); }
.partido-card.pc::before { width: 5px; }
.partido-card.pc.en_juego::before { background: #e5483f; }
.partido-card.pc.finalizado::before { background: var(--azul-fuerte); }
.pc-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pc-hora { font-size: 20px; font-weight: 700; color: var(--tile-ink); font-variant-numeric: tabular-nums; }
.pc-duelo { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 10px 0 14px; }
.pc-equipo { display: grid; justify-items: center; gap: 6px; text-align: center; min-width: 0; }
.pc-escudo { width: 46px; height: 46px; object-fit: contain; }
.pc-escudo-vacio { border-radius: 50%; background: var(--tile); }
.pc-nombre { font-size: 14px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.pc-centro { min-width: 64px; text-align: center; }
.pc-vs { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--accent-text); background: var(--tile); padding: 6px 12px; border-radius: 999px; }
.pc-marcador { display: inline-flex; align-items: center; gap: 6px; font-size: 26px; font-variant-numeric: tabular-nums; color: var(--muted); }
.pc-marcador b { font-weight: 700; }
.pc-marcador b.gana { color: var(--tile-ink); }
.pc-marcador i { font-style: normal; opacity: .5; }
.pc-pie { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.pc-dato { display: inline-flex; align-items: center; gap: 5px; }
.pc-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pc-abrir { flex: 1 1 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* ---------- categorías renovadas ---------- */
.tabs { display: flex; gap: 4px; padding: 5px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; box-shadow: 0 6px 18px rgba(27,111,184,.07); }
.tabs .tab { flex: 1; border: 0; background: transparent; color: var(--muted); font-weight: 600; border-radius: 999px; padding: 11px 6px; transition: background .2s, color .2s, box-shadow .2s; }
.tabs .tab.active { background: linear-gradient(135deg, var(--accent), var(--azul-medio)); color: #fff; box-shadow: 0 6px 14px rgba(43,134,217,.35); }
.cat-equipos { display: grid; gap: 12px; }
@media (min-width: 760px) { .cat-equipos { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.cat-equipo { display: block; padding: 0; overflow: hidden; border-radius: 20px; box-shadow: 0 8px 22px rgba(27,111,184,.09); }
.cat-equipo.abierto { border-color: var(--accent); }
.cat-cab { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; }
.cat-cab:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.cat-escudo { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--ground); }
.cat-escudo img { width: 40px; height: 40px; object-fit: contain; }
.cat-info { flex: 1; min-width: 0; display: grid; gap: 6px; }
.cat-info strong { font-size: 16px; font-weight: 600; line-height: 1.2; }
.cat-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cat-grupo { font-size: 12px; font-weight: 600; color: var(--tile-ink); background: var(--tile); padding: 3px 10px; border-radius: 999px; }
.cat-n { font-size: 13px; color: var(--muted); }
.cat-flecha { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tile); color: var(--tile-ink); transition: transform .25s ease, background .2s; }
.cat-equipo.abierto .cat-flecha { transform: rotate(90deg); background: var(--azul-fuerte); color: #fff; }
.cat-equipo .partidos-equipo { padding: 0 14px 14px; }
.cat-equipo .bloque-partidos { margin: 14px 2px 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.cat-equipo .partido-vacio { margin: 0; padding: 12px; border-radius: 14px; background: var(--ground); color: var(--muted); font-size: 14px; text-align: center; }
.pm { padding: 12px 14px; margin: 0 0 8px; border-radius: 14px; box-shadow: none; background: var(--ground); border-color: transparent; cursor: pointer; display: grid; gap: 8px; }
.pm:hover { border-color: var(--accent); }
.pm-fecha { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font-size: 13px; color: var(--muted); }
.pm-fecha strong { font-weight: 600; color: var(--text); }
.pm-duelo { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; font-size: 14px; }
.pm-eq { font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; }
.pm-eq:last-child { text-align: right; }
.pm-eq.gana { font-weight: 700; color: var(--tile-ink); }
.pm-res { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent-text); background: var(--surface); padding: 4px 10px; border-radius: 999px; }
.cat-equipo .partidos-equipo.oculto { display: none; padding: 0; }
.pm-fecha strong::first-letter { text-transform: uppercase; }

/* ---------- clubs renovados ---------- */
.clubs-admin { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.clubs-buscar { display: flex; align-items: center; gap: 10px; padding: 0 16px; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; box-shadow: 0 6px 18px rgba(27,111,184,.07); color: var(--muted); }
.clubs-buscar input { flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none; padding: 13px 0; font-size: 16px; color: var(--text); outline: none; }
.clubs-buscar:focus-within { border-color: var(--accent); }
.clubs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.club-tile { display: block; margin: 0; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 8px 22px rgba(27,111,184,.09); transition: transform .2s, box-shadow .2s; }
.club-tile[hidden] { display: none; }
.club-tile:active { transform: scale(.98); }
@media (hover: hover) { .club-tile:hover { background: var(--surface); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(27,111,184,.18); } .club-tile:hover .cat-flecha { background: var(--azul-fuerte); color: #fff; } }
.club-tile-fila { display: grid; justify-items: center; gap: 10px; text-align: center; position: relative; }
.club-tile-escudo { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 22px; background: var(--ground); }
.club-tile-escudo img { width: 62px; height: 62px; object-fit: contain; }
.club-tile-texto { display: grid; gap: 3px; min-width: 0; }
.club-tile-texto strong { font-size: 15px; font-weight: 600; line-height: 1.2; }
.club-tile-texto span { font-size: 13px; color: var(--accent-text); font-weight: 500; }
.club-tile .cat-flecha { position: absolute; top: 0; right: 0; width: 28px; height: 28px; }
.club-tile .club-acciones { display: flex; gap: 8px; margin-top: 12px; }
.club-tile .club-acciones button { flex: 1; }
@media (min-width: 760px) { .clubs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }

.club-hero { display: flex; align-items: center; gap: 16px; padding: 18px; margin: 4px 0 18px; border-radius: 22px; background: linear-gradient(135deg, var(--tile), var(--brillo)); }
.club-hero-escudo { flex: none; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 24px; background: #fff; box-shadow: 0 8px 20px rgba(27,111,184,.2); }
.club-hero-escudo img { width: 66px; height: 66px; object-fit: contain; }
.club-hero h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.15; color: var(--tile-ink); }
.club-hero .pt-cuenta { background: rgba(255,255,255,.75); }
.volver-arriba { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; padding: 8px 14px; font-size: 14px; background: var(--surface); color: var(--accent-text); border: 1px solid var(--border); border-radius: 999px; box-shadow: none; }
.team-ios-card.team-clicable { border-radius: 20px; box-shadow: 0 8px 22px rgba(27,111,184,.09); }
.team-ios-card .team-cat { background: var(--tile); color: var(--tile-ink); padding: 3px 10px; border-radius: 999px; }
.team-ios-card .team-gen { color: var(--muted); font-weight: 500; align-self: center; }
.team-ios-card .team-name { font-size: 17px; font-weight: 600; }
.club-tile-texto, .club-tile-texto strong, .club-hero > div { min-width: 0; max-width: 100%; }
.club-tile-texto strong, .club-hero h2 { overflow-wrap: anywhere; }

/* ---------- formularios de partido (admin) ---------- */
.fa-form { display: grid; gap: 14px; }
.fa-seccion { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 16px; box-shadow: 0 8px 22px rgba(27,111,184,.08); }
.fa-titulo { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 16px; }
.fa-titulo::before { display: none; }
.fa-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--azul-medio)); color: #fff; font-size: 13px; font-weight: 700; }
.fa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fa-ancho { grid-column: 1 / -1; }
.fa-campo { display: grid; gap: 6px; min-width: 0; align-content: start; }
.fa-campo[hidden] { display: none; }
.fa-campo label { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0; }
.fa-campo select, .fa-campo input { width: 100%; min-height: 48px; margin: 0; box-sizing: border-box; font-size: 16px; }
.fa-equipos { display: grid; gap: 10px; }
.fa-vs { justify-self: center; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--accent-text); background: var(--tile); padding: 5px 12px; border-radius: 999px; }
.fa-resumen { display: grid; gap: 4px; padding: 14px 16px; border-radius: 20px; background: linear-gradient(135deg, var(--tile), var(--brillo)); color: var(--tile-ink); font-size: 14px; }
.fa-resumen strong { font-size: 16px; }
.fa-resumen b { font-weight: 600; opacity: .6; }
.fa-resumen-etiqueta { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.fa-botones { display: grid; gap: 10px; }
.fa-guardar { width: 100%; min-height: 52px; border: 0; border-radius: 16px; background: linear-gradient(135deg, var(--accent), var(--azul-medio)); color: #fff; font-size: 16px; font-weight: 700; box-shadow: 0 8px 18px rgba(43,134,217,.35); }
.fa-botones .volver { margin: 0; }
@media (min-width: 760px) {
  .fa-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fa-ancho { grid-column: span 2; }
  .fa-equipos { grid-template-columns: 1fr auto 1fr; align-items: end; }
  .fa-vs { margin-bottom: 14px; }
  .fa-botones { grid-template-columns: 2fr 1fr; }
}

/* ---------- detalle de partido y marcador (admin / mesa) ---------- */
.ap-cabecera { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 16px; margin: 6px 0 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 8px 22px rgba(27,111,184,.08); }
.ap-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ap-chip { font-size: 12px; font-weight: 600; color: var(--tile-ink); background: var(--tile); padding: 5px 12px; border-radius: 999px; }
.ap-chip.fase { background: var(--azul-fuerte); color: #fff; }
.ap-cuando { font-size: 15px; color: var(--muted); }
.ap-cuando strong { color: var(--text); font-weight: 600; }
.ap-cuando strong::first-letter { text-transform: uppercase; }
.ap-donde { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--accent-text); font-weight: 500; }
.ap-marcador { margin-bottom: 14px; }
.ap-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 16px; margin-bottom: 14px; box-shadow: 0 8px 22px rgba(27,111,184,.08); display: grid; gap: 14px; }
.ap-titulo { margin: 0; font-size: 16px; }
.ap-titulo::before { display: none; }
.ap-steppers { display: grid; gap: 14px; }
.ap-lado { display: grid; gap: 8px; }
.ap-lado > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.ap-stepper { display: grid; grid-template-columns: 64px 1fr 64px; gap: 10px; align-items: stretch; }
.ap-stepper input { width: 100%; min-width: 0; margin: 0; text-align: center; font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; min-height: 64px; box-sizing: border-box; }
.ap-mas-menos { min-height: 64px; margin: 0; padding: 0; font-size: 30px; line-height: 1; font-weight: 600; border-radius: 16px; border: 1px solid var(--border); background: var(--ground); color: var(--tile-ink); }
.ap-mas-menos.mas { background: linear-gradient(135deg, var(--accent), var(--azul-medio)); border-color: transparent; color: #fff; box-shadow: 0 6px 14px rgba(43,134,217,.3); }
.ap-mas-menos:active { transform: scale(.94); }
.ap-stepper.visitante .ap-mas-menos.mas { background: linear-gradient(135deg, #2b86d9, #1b6fb8); }
.ap-finalizar { width: 100%; min-height: 50px; margin: 0; border-radius: 16px; background: var(--surface); color: #b3261e; border: 1.5px solid #f0c4c0; font-weight: 700; }
.ap-nota { margin: -4px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.ap-secundario { width: 100%; min-height: 48px; margin: 0; border-radius: 14px; background: var(--tile); color: var(--tile-ink); border: 0; font-weight: 600; }
@media (min-width: 760px) { .ap-steppers { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* ---------- partidos en juego (inicio) ---------- */
.en-vivo-titulo { display: flex; align-items: center; gap: 10px; }
.punto-vivo { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #e5483f; box-shadow: 0 0 0 0 rgba(229,72,63,.55); animation: pulso-vivo 1.6s ease-out infinite; flex: none; }
@keyframes pulso-vivo { 70% { box-shadow: 0 0 0 9px rgba(229,72,63,0); } 100% { box-shadow: 0 0 0 0 rgba(229,72,63,0); } }
@media (prefers-reduced-motion: reduce) { .punto-vivo { animation: none; } }
.actualizacion-card.vivo { display: grid; gap: 14px; padding: 16px; margin-bottom: 12px; text-align: left; cursor: pointer; border-radius: 22px; border: 1px solid var(--border); background: var(--surface); box-shadow: 0 10px 26px rgba(27,111,184,.12); position: relative; overflow: hidden; }
.actualizacion-card.vivo::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: #e5483f; }
@media (hover: hover) { .actualizacion-card.vivo:hover { box-shadow: 0 14px 32px rgba(27,111,184,.2); } }
.vivo-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.vivo-chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; background: var(--pill-live-bg); color: var(--pill-live-ink); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.vivo-chip .punto-vivo { width: 8px; height: 8px; }
.vivo-cat { font-size: 13px; font-weight: 600; color: var(--accent-text); }
.vivo-fase { font-size: 13px; color: var(--muted); }
.vivo-duelo { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.vivo-equipo { display: grid; justify-items: center; gap: 6px; text-align: center; min-width: 0; }
.vivo-equipo img { width: 52px; height: 52px; object-fit: contain; }
.vivo-equipo span { font-size: 14px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.vivo-marcador { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 18px; background: var(--ground); font-size: 32px; font-variant-numeric: tabular-nums; color: var(--muted); }
.vivo-marcador b { font-weight: 800; color: var(--text); }
.vivo-marcador b.lidera { color: var(--azul-fuerte); }
.vivo-marcador i { font-style: normal; opacity: .45; }
.vivo-pie { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.vivo-pie span { display: inline-flex; align-items: center; gap: 5px; }
.vivo-pie .vivo-ver { margin-left: auto; color: var(--accent-text); font-weight: 600; }
@media (max-width: 380px) { .vivo-marcador { font-size: 26px; padding: 6px 12px; } .vivo-equipo img { width: 44px; height: 44px; } }

/* ===== Selector de idioma ===== */
.idioma-fab { position: absolute; top: 10px; right: 12px; z-index: 30; }
.idioma-bandera {
  display: block; width: 100%; height: 100%; aspect-ratio: 1 / 1; border-radius: 50%;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.idioma-boton {
  box-sizing: border-box; flex: none; width: 40px; height: 40px; min-width: 40px; min-height: 40px; max-height: 40px; aspect-ratio: 1 / 1; padding: 3px; border-radius: 50%;
  border: 2px solid #fff; background: #fff; cursor: pointer;
  box-shadow: 0 2px 10px rgba(10, 58, 128, .28);
  display: block; -webkit-tap-highlight-color: transparent;
}
.idioma-boton:focus-visible, .idioma-opcion:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.idioma-menu {
  position: absolute; top: 48px; right: 0; min-width: 160px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 10px 28px rgba(10, 58, 128, .22);
  display: none; flex-direction: column; gap: 2px;
}
.idioma-fab.abierto .idioma-menu { display: flex; }
.idioma-opcion {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 7px 10px; border: 0; border-radius: 10px; background: transparent;
  font: inherit; font-weight: 600; font-size: .92rem; color: var(--text); cursor: pointer; text-align: left;
}
.idioma-opcion .idioma-bandera { flex: 0 0 26px; width: 26px; height: 26px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.idioma-opcion:hover { background: var(--tile); }
.idioma-opcion.activo { background: var(--tile); color: var(--tile-ink); }
body.splash-activo .idioma-fab { display: none; }
html:not([lang="es"]) .nav-principal button span { font-size: .68rem; letter-spacing: -.01em; }

/* ===== Partidos: desplegables de categoría > género > grupo ===== */
.pj-cat { margin: 12px 0 0; }
.pj-cab { display: flex; align-items: center; gap: 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; }
.pj-cab:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.pj-nombre { flex: 1; min-width: 0; font-weight: 700; }
.pj-num { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.pj-flecha { display: inline-flex; color: var(--accent-text); transition: transform .3s ease; flex: none; }
.pj-cab.abierto .pj-flecha { transform: rotate(180deg); }
.pj-interior { padding-top: 6px; }

/* categoría: tarjeta con barra de color */
.pj-cab-cat { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 13px 16px 13px 0; box-shadow: 0 6px 18px rgba(27,111,184,.07); overflow: hidden; }
.pj-cab-cat .pj-nombre { font-size: 17px; color: var(--text); }
.pj-barra { align-self: stretch; width: 6px; border-radius: 0 6px 6px 0; background: var(--azul-medio); margin: -13px 0 -13px 0; flex: none; }
.pj-cab-cat .pj-nombre { margin-left: 4px; }
.pj-cat.pj-infantil .pj-barra { background: #5bb8f0; }
.pj-cat.pj-cadete .pj-barra { background: #2b86d9; }
.pj-cat.pj-juvenil .pj-barra { background: #0a3a80; }
.pj-cab-cat.abierto { background: var(--tile); border-color: transparent; }

/* género: sangrado con línea guía */
.pj-cat > .categoria-partidos > .pj-interior { margin-left: 14px; padding-left: 14px; border-left: 2px solid var(--brillo); }
.pj-gen { margin-top: 8px; }
.pj-cab-gen { padding: 9px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.pj-cab-gen .pj-nombre { font-size: 15px; color: var(--text); }
.pj-punto { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.pj-gen.pj-masculino .pj-punto { background: #2b86d9; }
.pj-gen.pj-femenino .pj-punto { background: #e0578a; }
.pj-gen.pj-masculino .pj-cab-gen.abierto { background: var(--tile); border-color: transparent; color: var(--tile-ink); }
.pj-gen.pj-femenino .pj-cab-gen.abierto { background: #fde4ee; border-color: transparent; }

/* grupo: etiqueta ligera */
.pj-gen > .categoria-partidos > .pj-interior { padding-top: 4px; }
.pj-grupo { margin-top: 6px; }
.pj-cab-grupo { padding: 8px 4px; border-bottom: 1px dashed var(--border); }
.pj-cab-grupo .pj-nombre { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.pj-partidos { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }
.pj-cab-grupo ~ .categoria-partidos .pj-partidos { margin: 0; }

/* ===== Botón "+" de la barra (PH Highlights) ===== */

/* ===== PH Highlights ===== */
.hl-cab h2 { margin-bottom: 4px; }
.hl-subir { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 14px 0 6px; padding: 14px 18px; border: 0; border-radius: 16px; background: linear-gradient(135deg, var(--azul-medio), var(--azul-fuerte)); color: #fff; font: inherit; font-weight: 700; font-size: 16px; box-shadow: 0 8px 20px rgba(27,111,184,.28); cursor: pointer; }
.hl-subir:disabled { opacity: .6; }
.hl-filtros { display: flex; gap: 8px; overflow-x: auto; padding: 14px 2px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hl-filtros::-webkit-scrollbar { display: none; }
.hl-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--tile-ink); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.hl-chip.activo { background: var(--tile-ink); border-color: var(--tile-ink); color: #fff; }
.hl-orden { display: inline-flex; margin: 10px 0 14px; padding: 3px; background: var(--tile); border-radius: 999px; }
.hl-orden button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 13px; color: var(--tile-ink); cursor: pointer; }
.hl-orden button.activo { background: var(--surface); box-shadow: 0 2px 8px rgba(27,111,184,.18); }
.hl-lista { display: flex; flex-direction: column; gap: 16px; }
.hl-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: 0 6px 18px rgba(27,111,184,.08); }
.hl-card.destacado { margin-bottom: 16px; border-color: var(--accent); box-shadow: 0 10px 28px rgba(27,111,184,.2); }
.hl-video { position: relative; background: #0a1a2b; }
.hl-video video { display: block; width: 100%; max-height: 62vh; aspect-ratio: 16 / 10; object-fit: contain; background: #0a1a2b; }
.hl-insignia { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; background: #ffd24a; color: #5a3b00; font-weight: 700; font-size: 12px; }
.hl-insignia .ico { fill: currentColor; }
.hl-cuerpo { padding: 14px 16px 12px; }
.hl-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 8px; }
.hl-tipo { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; background: var(--tile); color: var(--tile-ink); font-weight: 700; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; }
.hl-quien { font-size: 13px; font-weight: 600; color: var(--muted); overflow-wrap: anywhere; }
.hl-desc { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: var(--text); line-height: 1.35; overflow-wrap: anywhere; }
.hl-valoracion { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--border); }
.hl-resumen { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hl-nota { display: inline-flex; align-items: center; gap: 5px; font-size: 20px; color: var(--text); }
.hl-nota .ico { color: #f5a623; fill: #f5a623; }
.hl-votos { font-size: 12px; color: var(--muted); font-weight: 600; }
.hl-estrellas { display: flex; gap: 0; }
.hl-estrella { border: 0; background: transparent; padding: 5px 2px; color: #b9c9d6; cursor: pointer; line-height: 0; -webkit-tap-highlight-color: transparent; }
.hl-estrella.llena { color: #f5a623; }
.hl-estrella.llena .ico { fill: currentColor; }
.hl-estrella.propio { opacity: .45; }
.hl-pie { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; }
.hl-enlace { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; padding: 8px 0; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.hl-enlace.peligro { color: #b3261e; }
.hl-mas { display: block; width: 100%; margin: 16px 0 0; padding: 13px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--tile-ink); font: inherit; font-weight: 700; cursor: pointer; }
.hl-pendientes { margin: 18px 0 6px; padding: 14px; border-radius: 20px; background: #fff7e0; border: 1px dashed #f0c04a; }
.hl-pendientes h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 16px; }
.hl-admin { display: flex; gap: 10px; }
.hl-btn { flex: 1; padding: 11px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font: inherit; font-weight: 700; cursor: pointer; }
.hl-btn.primario { background: var(--azul-fuerte); border-color: var(--azul-fuerte); color: #fff; }
.hl-btn.peligro { color: #b3261e; }
.hl-form { padding-bottom: 20px; }
.hl-archivo { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 16px; margin: 6px 0 14px; border: 2px dashed var(--accent); border-radius: 18px; background: var(--tile); color: var(--tile-ink); text-align: center; cursor: pointer; }
.hl-archivo span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.hl-archivo strong { overflow-wrap: anywhere; }
.hl-contador { text-align: right; font-size: 12px; color: var(--muted); margin: 4px 0 12px; }
.hl-permiso { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0; font-size: 13.5px; line-height: 1.4; color: var(--text); font-weight: 500; }
.hl-permiso input { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.hl-aviso { display: flex; align-items: center; gap: 8px; margin: 12px 0; padding: 10px 12px; border-radius: 12px; background: var(--tile); color: var(--tile-ink); font-size: 13.5px; font-weight: 600; }
@media (max-width: 480px) {
  .nav-principal { padding-left: 6px; padding-right: 6px; }
  .nav-principal button { padding-left: 0; padding-right: 0; }
  .nav-principal button span { font-size: 9.5px; letter-spacing: -.02em; }
}
.hl-chip, .hl-orden button, .hl-estrella, .hl-enlace, .hl-btn, .hl-subir, .hl-mas { margin-bottom: 0; box-shadow: none; }
.hl-chip, .hl-orden button, .hl-estrella, .hl-enlace { width: auto; }
.hl-subir { box-shadow: 0 8px 20px rgba(27,111,184,.28); }
.hl-chip { padding: 9px 14px; border-radius: 999px; }
.hl-orden button { padding: 7px 14px; border-radius: 999px; white-space: nowrap; }
.hl-estrella { padding: 5px 2px; border-radius: 0; background: transparent; }
.hl-enlace { padding: 8px 0; background: transparent; border-radius: 0; font-size: 12.5px; }
.hl-btn { padding: 11px; border-radius: 12px; }
.hl-mas { margin-top: 16px; }
.hl-subir { margin: 14px 0 6px; }
.estado-vacio strong, .estado-vacio > span { display: block; }
.estado-vacio .ico { display: block; margin: 0 auto 8px; }
@media (max-width: 480px) { html[lang="de"] .nav-principal button span, html[lang="fr"] .nav-principal button span, html[lang="pt"] .nav-principal button span { font-size: 9px; letter-spacing: -.03em; } }

/* ===== Botón "+" con abanico (canción, redes y acceso de organización) ===== */
.hub { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: calc(60px + env(safe-area-inset-bottom)); width: 56px; height: 56px; z-index: 1800; }
@media (max-width: 768px) { .hub { bottom: calc(var(--alto-barra) + 16px + env(safe-area-inset-bottom)); } }
body.splash-activo .hub { display: none !important; }

.hub-main { position: absolute; inset: 0; width: 56px; height: 56px; min-height: 56px; max-height: 56px; margin: 0; padding: 0; border: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2;
  background: linear-gradient(135deg, var(--azul-medio), var(--azul-fuerte)); color: #fff; box-shadow: 0 8px 22px rgba(27,111,184,.38);
  transition: background .25s ease, box-shadow .25s ease, transform .15s ease; -webkit-tap-highlight-color: transparent; }
.hub-main:active { transform: scale(.92); }
.hub-main:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; }
.hub-main .ico { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.hub.open .hub-main { background: #e5566b; box-shadow: 0 8px 22px rgba(229,86,107,.4); }
.hub.open .hub-main .ico { transform: rotate(135deg); }
/* si la canción está sonando, el "+" lo avisa con un puntito */
.hub:has(.music-fab.sonando) .hub-main::after { content: ""; position: absolute; top: 3px; right: 3px; width: 13px; height: 13px; border-radius: 50%; background: #3ddc84; border: 2px solid #fff; animation: hubLatido 1.4s ease-in-out infinite; }
@keyframes hubLatido { 50% { transform: scale(1.25); } }

/* los tres botones salen en abanico desde el "+" */
.hub .music-fab, .hub .social-fab, .hub #admin-fab {
  position: absolute; left: auto; right: 4px; bottom: 4px; top: auto; z-index: 1;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translate(0, 0) scale(.2);
  transition: transform .42s cubic-bezier(.34, 1.56, .64, 1), opacity .2s ease, visibility 0s linear .42s;
}
.hub .music-fab, .hub .social-fab { align-items: flex-end; width: auto; }
.hub.open .music-fab, .hub.open .social-fab, .hub.open #admin-fab { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.hub.open #admin-fab  { transform: translate(-84px, 0) scale(1); transition-delay: .02s; }
.hub.open .social-fab { transform: translate(-59px, -59px) scale(1); transition-delay: .07s; }
.hub.open .music-fab  { transform: translate(0, -84px) scale(1); transition-delay: .12s; }
.hub #admin-fab { display: flex; align-items: center; justify-content: center; }
.hub .music-panel { transform-origin: bottom right; }
@media (prefers-reduced-motion: reduce) { .hub .music-fab, .hub .social-fab, .hub #admin-fab, .hub-main .ico { transition-duration: .01s; } }

/* ================== ZONA FAN + PH PORRA ================== */
.zona-barra{display:flex;gap:4px;padding:4px;margin:0 0 16px;background:var(--tile);border-radius:14px}
.zona-barra button{flex:1;width:auto;margin:0;padding:9px 6px;min-height:40px;box-shadow:none;border:0;background:transparent;color:var(--tile-ink);border-radius:11px;font-weight:700;font-size:13px;display:flex;align-items:center;justify-content:center;gap:6px}
.zona-barra button.activo{background:var(--surface);color:var(--accent-text);box-shadow:0 1px 4px rgba(10,58,128,.15)}
.po-alias,.po-yo,.po-card,.po-reglas,.po-gest,.po-fila{background:var(--surface);border:1px solid var(--border);border-radius:16px}
.po-alias{padding:16px;margin-bottom:14px}
.po-alias p{margin:4px 0 12px;color:var(--muted);font-size:14px}
.po-alias-fila{display:flex;gap:8px}
.po-alias-fila input{flex:1;min-width:0;padding:12px;border:1px solid var(--border);border-radius:12px;font:inherit}
.po-alias-fila button,.po-cambiar{width:auto;margin:0;padding:0 18px;min-height:44px;box-shadow:none}
.po-yo{display:flex;align-items:center;gap:8px;padding:10px 12px;margin-bottom:14px;font-size:14px;color:var(--tile-ink)}
.po-yo span{flex:1}
.po-cambiar{min-height:32px;padding:0 12px;font-size:13px;background:var(--tile);color:var(--tile-ink)}
.po-titulo{margin:18px 0 10px;font-size:15px}
.po-card{padding:14px;margin-bottom:12px}
.po-card.cerrada{background:var(--ground)}
.po-cab{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted);margin-bottom:10px}
.po-cat{font-weight:700;color:var(--accent-text)}
.po-card .pc-duelo{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;margin-bottom:12px}
.po-card .pc-equipo{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.po-card .pc-escudo{width:44px;height:44px;object-fit:contain}
.po-card .pc-escudo-vacio{display:block;border-radius:50%;background:var(--tile)}
.po-card .pc-nombre{font-size:13px;font-weight:700;overflow-wrap:anywhere}
.po-card .pc-vs{font-size:12px;font-weight:800;color:var(--muted)}
.po-pregunta{text-align:center;font-size:13px;color:var(--muted);margin:0 0 10px}
.po-marcador{display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:12px}
.po-guion{font-weight:800;font-size:20px}
.po-paso{display:flex;align-items:center;gap:8px}
.po-paso button{width:36px;height:36px;min-height:36px;margin:0;padding:0;box-shadow:none;border-radius:50%;background:var(--tile);color:var(--tile-ink);display:flex;align-items:center;justify-content:center}
.po-paso output{min-width:32px;text-align:center;font-size:26px;font-weight:800;color:var(--tile-ink)}
.po-guardar{margin:0;box-shadow:none}
.po-hecho{display:flex;align-items:center;justify-content:center;gap:6px;margin:10px 0 0;font-size:13px;color:var(--azul-fuerte)}
.po-real{text-align:center;font-size:15px;margin-bottom:8px}
.po-mio{display:flex;justify-content:center;align-items:center;gap:10px;font-size:14px}
.po-mio.vacio{color:var(--muted)}
.po-pts{padding:3px 10px;border-radius:99px;background:var(--tile);color:var(--tile-ink);font-weight:800;font-size:13px}
.po-pts.p10{background:var(--azul-fuerte);color:#fff}
.po-pts.p0{background:#eee;color:var(--muted)}
.po-tendencia{margin-top:12px}
.po-barra{display:flex;height:8px;border-radius:99px;overflow:hidden;background:var(--tile)}
.po-barra .l{background:var(--azul-fuerte)}.po-barra .e{background:var(--accent)}.po-barra .v{background:var(--brillo)}
.po-leyenda{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin-top:4px}
.po-ranking{display:flex;flex-direction:column;gap:8px}
.po-fila{display:flex;align-items:center;gap:12px;padding:10px 12px}
.po-fila.yo{border-color:var(--accent);background:var(--tile)}
.po-pos{width:30px;height:30px;border-radius:50%;background:var(--tile);color:var(--tile-ink);display:flex;align-items:center;justify-content:center;font-weight:800;flex:none}
.po-pos.top{background:var(--azul-fuerte);color:#fff}
.po-quien{flex:1;min-width:0}
.po-quien small{color:var(--muted);font-size:12px}
.po-pbarra{height:5px;border-radius:99px;background:var(--tile);margin:5px 0}
.po-pbarra i{display:block;height:100%;border-radius:99px;background:var(--accent)}
.po-total{font-weight:800;color:var(--tile-ink)}
.po-ocultar{width:30px;height:30px;min-height:30px;padding:0;margin:0;box-shadow:none;background:transparent;color:var(--muted)}
.po-reglas{padding:16px}
.po-reglas .po-titulo{margin-top:0}
.po-tabla>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--border);font-size:14px}
.po-tabla b{min-width:34px;text-align:center;padding:3px 0;border-radius:99px;background:var(--tile);color:var(--tile-ink)}
.po-reglas p,.po-reglas li{font-size:13px;color:var(--muted)}
.po-gestion{display:flex;flex-direction:column;gap:8px}
.po-gest{display:flex;align-items:center;gap:12px;padding:10px 12px}
.po-gest.on{border-color:var(--accent);background:var(--tile)}
.po-gest input{width:20px;height:20px;flex:none}
.po-gest small{display:block;color:var(--muted)}

.avisos-fab { position: absolute; top: 10px; left: 12px; z-index: 30; box-sizing: border-box; width: 40px; height: 40px; min-width: 40px; min-height: 40px; max-height: 40px; aspect-ratio: 1 / 1; padding: 0; margin: 0; border-radius: 50%; border: 2px solid #fff; background: #fff; color: var(--azul-fuerte); box-shadow: 0 2px 10px rgba(10, 58, 128, .28); display: flex; align-items: center; justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
body.splash-activo .avisos-fab { display: none; }

/* ================== PH RADAR ================== */
.rd-panel{background:#0b1726;color:#e8f1fb;border-radius:22px;padding:16px;margin-bottom:8px}
.rd-cab{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:12px}
.rd-cab h2{color:#6fdcf5;margin:0;font-size:24px}
.rd-cab p{margin:2px 0 0;color:#9fb3c8;font-size:13px}
.rd-live{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:99px;background:rgba(91,209,106,.14);color:#5bd16a;font-size:12px;font-weight:800}
.rd-live i{width:8px;height:8px;border-radius:50%;background:#5bd16a;animation:rdpulso 1.6s infinite}
@keyframes rdpulso{50%{opacity:.25}}
.rd-mapa-scroll{overflow-x:auto;border-radius:16px;-webkit-overflow-scrolling:touch}
.rd-mapa{position:relative;width:max(100%,620px);aspect-ratio:1100/650;background:#101f31 url('../img/radar-mapa.webp') center/cover no-repeat}
.rd-calles{position:absolute;inset:0;width:100%;height:100%}
.rd-calles polygon{fill:#1a2e45;stroke:#2f5069;stroke-width:.6}
.rd-calles path{fill:none;stroke:#2f5069;stroke-width:1.1;stroke-linecap:round}
.rd-punto{position:absolute;transform:translate(-50%,-50%);width:auto;margin:0;padding:0;min-height:0;background:transparent;box-shadow:none;border:0;display:flex;flex-direction:column;align-items:center;gap:4px;color:#fff;cursor:pointer}
.rd-punto i{display:block;width:20px;height:20px;border-radius:50%;background:var(--c);border:2px solid #fff;box-shadow:0 0 0 7px color-mix(in srgb,var(--c) 28%,transparent)}
.rd-punto.en_juego i{animation:rdhalo 1.8s infinite}
@keyframes rdhalo{50%{box-shadow:0 0 0 12px color-mix(in srgb,var(--c) 10%,transparent)}}
.rd-punto span{font-size:12px;font-weight:800;text-shadow:0 0 3px #000,0 1px 4px #000;white-space:nowrap}
.rd-punto.sel i{transform:scale(1.25)}
.rd-nota{margin:8px 0;font-size:12px;color:#9fb3c8}
.rd-leyenda{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12px;color:#c5d4e4;margin-bottom:12px}
.rd-leyenda i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:5px}
.rd-filtros .hl-filtros{margin:0 0 8px}
.rd-panel .hl-chip{background:#16293f;border-color:#27425d;color:#d8e6f4}
.rd-panel .hl-chip.activo{background:#6fdcf5;color:#06223a;border-color:#6fdcf5}
.rd-sub{margin:14px 0 8px;font-size:15px;color:#fff}
.rd-lista{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.rd-item{width:auto;margin:0;box-shadow:none;text-align:left;background:#16293f;border:1px solid #27425d;border-radius:14px;padding:10px 12px;color:#fff;min-height:0}
.rd-item.sel{border-color:#6fdcf5;background:#1d3650}
.rd-item strong{display:flex;align-items:center;gap:8px;font-size:14px}
.rd-item strong i{width:9px;height:9px;border-radius:50%;flex:none}
.rd-item small{color:#9fb3c8;font-size:12px}
.rd-ficha{margin-top:14px;background:#16293f;border:1px solid #27425d;border-radius:16px;padding:14px}
.rd-ficha-cab{display:flex;justify-content:space-between;align-items:center;gap:8px}
.rd-ficha h3{margin:0;font-size:20px;color:#fff}
.rd-ficha h4{margin:12px 0 6px;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#9fb3c8}
.rd-pill{padding:4px 12px;border-radius:99px;font-size:12px;font-weight:800;color:var(--c);background:color-mix(in srgb,var(--c) 16%,transparent)}
.rd-partido{display:grid;grid-template-columns:1fr auto 1fr;gap:4px 10px;align-items:center;font-size:14px;margin-bottom:6px}
.rd-eq.der{text-align:right}
.rd-marc{font-size:18px;color:#6fdcf5}
.rd-hora{font-size:15px}
.rd-partido small{grid-column:1/-1;color:#9fb3c8;font-size:12px}
.rd-nada{color:#9fb3c8;font-size:14px;margin:10px 0 0}
.rd-acciones{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.rd-enlace{width:auto;margin:0;box-shadow:none;min-height:0;padding:9px 14px;border-radius:99px;background:#6fdcf5;color:#06223a;font-weight:700;font-size:13px;text-decoration:none;border:0;cursor:pointer;font-family:inherit}
button.rd-enlace{background:transparent;color:#6fdcf5;border:1px solid #6fdcf5}

/* ================== PH SORTEOS ================== */
@media (max-width: 480px){ .zona-barra button{padding:9px 2px;font-size:12.5px;gap:4px} .zona-barra button .ico{display:none} }
.sr-card{background:var(--surface);border:1px solid var(--border);border-radius:20px;overflow:hidden;margin-bottom:14px}
.sr-foto img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}
.sr-cuerpo{padding:14px}
.sr-fila{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}
.sr-pill{padding:4px 12px;border-radius:99px;font-size:12px;font-weight:800;background:var(--tile);color:var(--tile-ink)}
.sr-pill.ok{background:#dff5e3;color:#1c7a33}.sr-pill.espera{background:#fdeccf;color:#9a5b00}.sr-pill.fin{background:#e7ebf1;color:#55657a}
.sr-gratis{font-size:12px;font-weight:700;color:var(--accent-text)}
.sr-card h3{margin:0 0 6px;font-size:20px}
.sr-desc{margin:0 0 10px;color:var(--muted);font-size:14px}
.sr-meta{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:13px;color:var(--muted);margin-bottom:12px}
.sr-participar{margin:0;display:flex;align-items:center;justify-content:center;gap:8px}
.sr-dentro,.sr-espera{display:flex;align-items:center;justify-content:center;gap:6px;padding:12px;border-radius:14px;background:var(--tile);color:var(--tile-ink);font-weight:700;font-size:14px;text-align:center;margin-top:6px}
.sr-ganador{display:flex;align-items:center;gap:8px;padding:12px 14px;border-radius:14px;background:var(--tile);color:var(--tile-ink)}
.sr-ganador strong{margin-left:auto;font-size:18px}
.sr-ganador.yo{background:var(--azul-fuerte);color:#fff}
.sr-premio{margin:10px 0 0;font-weight:700;color:var(--azul-fuerte);text-align:center}
.sr-admin{display:flex;gap:8px;margin-top:12px}
.sr-admin button{margin:0;box-shadow:none;width:auto;flex:1;padding:11px 8px;min-height:0;font-size:13px}
.sr-cancelar{background:transparent;color:#b3261e;border:1px solid #e3b4b0}
.sr-ig{margin:-4px 0 14px;padding:10px 12px;border-radius:12px;background:var(--tile);color:var(--tile-ink);font-size:13px}
.sr-ig a{color:var(--azul-fuerte);font-weight:800}

/* ================== INFORMACIÓN DEL TORNEO ================== */
.info-lista{display:flex;flex-direction:column;gap:10px;margin-bottom:18px}
.info-card{display:flex;gap:12px;background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:14px}
.info-card.info-aviso{background:#fff7e6;border-color:#f3d9a4}
.info-icono{flex:none;width:44px;height:44px;border-radius:14px;background:var(--tile);color:var(--tile-ink);display:flex;align-items:center;justify-content:center}
.info-card.info-aviso .info-icono{background:#fde7b8;color:#9a5b00}
.info-cuerpo{min-width:0;flex:1}
.info-etiqueta{font-size:12px;font-weight:700;color:var(--accent-text);text-transform:uppercase;letter-spacing:.04em}
.info-fijado{color:#c26a00}
.info-cuerpo h4{margin:2px 0 4px;font-size:16px}
.info-cuerpo p{margin:0;color:var(--text);font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.info-admin{display:flex;gap:8px;margin-top:10px}
.info-admin button{margin:0;box-shadow:none;width:auto;min-height:0;padding:8px 14px;font-size:13px}
.info-borrar{background:transparent;color:#b3261e;border:1px solid #e3b4b0}

/* ================== PANEL DE INFORMACIÓN ================== */
.info-fab{position:fixed;left:max(18px,env(safe-area-inset-left));bottom:calc(60px + env(safe-area-inset-bottom));width:56px;height:56px;min-width:56px;min-height:56px;max-height:56px;margin:0;padding:0;border:0;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:1800;background:#fff;color:var(--azul-fuerte);box-shadow:0 8px 22px rgba(27,111,184,.32);-webkit-tap-highlight-color:transparent}
@media (max-width:768px){.info-fab{bottom:calc(var(--alto-barra) + 16px + env(safe-area-inset-bottom))}}
body.splash-activo .info-fab,body.info-abierto .info-fab,body.info-abierto .hub{display:none!important}
.info-panel{position:fixed;inset:0;z-index:2500;display:flex;align-items:flex-end;justify-content:center}
.info-panel[hidden]{display:none}
.info-fondo{position:absolute;inset:0;background:rgba(6,34,58,.55)}
.info-hoja{position:relative;width:min(560px,100%);max-height:88vh;background:var(--ground);border-radius:24px 24px 0 0;display:flex;flex-direction:column;animation:infosube .25s ease}
@keyframes infosube{from{transform:translateY(40px);opacity:0}}
.info-cab{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 16px 8px}
.info-cab h2{margin:0;font-size:20px}
.info-cerrar{width:40px;height:40px;min-height:40px;margin:0;padding:0;border-radius:50%;box-shadow:none;background:var(--tile);color:var(--tile-ink);display:flex;align-items:center;justify-content:center}
.info-scroll{overflow-y:auto;padding:8px 16px calc(24px + env(safe-area-inset-bottom));-webkit-overflow-scrolling:touch}
.info-img{display:block;width:100%;max-height:220px;object-fit:cover;border-radius:12px;margin:6px 0 8px}

.info-img{cursor:zoom-in}
.info-visor{position:fixed;inset:0;z-index:3000;background:rgba(0,0,0,.94);display:flex;align-items:center;justify-content:center;animation:infosube .2s ease}
.info-visor-zona{width:100%;height:100%;overflow:auto;display:flex;align-items:center;justify-content:center;touch-action:pinch-zoom pan-x pan-y}
.info-visor-zona img{max-width:100%;max-height:100%;object-fit:contain}
.info-visor-cerrar{position:absolute;top:max(14px,env(safe-area-inset-top));right:14px;z-index:2;width:44px;height:44px;min-height:44px;margin:0;padding:0;border-radius:50%;border:0;box-shadow:none;background:rgba(255,255,255,.18);color:#fff;display:flex;align-items:center;justify-content:center}
/* pabellón seleccionado en el radar: ondas y rebote */
.rd-punto i{position:relative}
.rd-punto.sel{z-index:3}
.rd-punto.sel i{animation:rdrebote 1.4s ease-in-out infinite;border-color:#fff;box-shadow:0 0 0 3px rgba(255,255,255,.55),0 0 14px 4px var(--c)}
.rd-punto.sel i::before,.rd-punto.sel i::after{content:"";position:absolute;left:50%;top:50%;width:100%;height:100%;border-radius:50%;border:2px solid var(--c);transform:translate(-50%,-50%) scale(1);opacity:.9;animation:rdonda 1.8s ease-out infinite;pointer-events:none}
.rd-punto.sel i::after{animation-delay:.9s}
.rd-punto.sel span{background:#fff;color:#06223a;text-shadow:none;padding:2px 8px;border-radius:99px;font-size:12.5px}
@keyframes rdonda{to{transform:translate(-50%,-50%) scale(3.4);opacity:0}}
@keyframes rdrebote{50%{transform:scale(1.3)}}
@media (prefers-reduced-motion:reduce){.rd-punto.sel i,.rd-punto.sel i::before,.rd-punto.sel i::after{animation:none}}
