/* Pro-PADEL 2.0 · fibra de carbono negra, blanco de alto contraste, naranja fuego.
   Exclusivamente móvil: una columna desde 320 px; en pantallas grandes, centrada con ancho de teléfono. */

:root {
  --fondo: #08090B;
  --tarjeta: #15171B;
  --elevada: #202329;
  --borde: #2A2E35;
  --borde-fuerte: #3A3F48;
  --blanco: #FFFFFF;
  --texto-2: #B9BEC7;
  --naranja: #FF5A1F;
  --naranja-hover: #FF7240;
  --sobre-naranja: #08090B;           /* 6,4:1 sobre el naranja */
  --ok: #4ADE80;
  --mal: #FF7A7A;
  --pend: #FACC15;
  --radio: 14px;
  --radio-s: 10px;
  --ancho: 480px;
  --barra-inf: 68px;
  --oscurece: .35; /* capa negra sobre la fibra de fondo (24/10): más alto = más oscuro */
  --sa-top: env(safe-area-inset-top, 0px);
  --sa-bot: env(safe-area-inset-bottom, 0px);
  --fuente: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fuente-tit: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; color: var(--blanco); font: 400 16px/1.45 var(--fuente);
  background-color: var(--fondo);
  /* Trama de carbono: muy tenue para no restar lectura */
  background-image:
    linear-gradient(27deg, #0B0C0F 5px, transparent 5px),
    linear-gradient(207deg, #0B0C0F 5px, transparent 5px),
    linear-gradient(27deg, #0D0E11 5px, transparent 5px),
    linear-gradient(207deg, #0D0E11 5px, transparent 5px),
    linear-gradient(90deg, #0A0B0D 10px, transparent 10px),
    linear-gradient(#0B0C0E 25%, #090A0C 25%, #090A0C 50%, transparent 50%, transparent 75%, #0C0D10 75%, #0C0D10);
  background-position: 0 5px, 10px 0, 0 10px, 10px 5px, 0 0, 0 0;
  background-size: 20px 20px;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
body.con-hoja { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--fuente-tit); margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.solo-lector { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tenue { color: var(--texto-2); }
.blanco { color: var(--blanco); }
.centro { text-align: center; }
.acento { color: var(--naranja); }
.ok { color: var(--ok); } .mal { color: var(--mal); } .pend { color: var(--pend); }
.ico { width: 22px; height: 22px; flex: none; }
.rot90 { transform: rotate(90deg); }

:focus-visible { outline: 3px solid var(--naranja); outline-offset: 2px; border-radius: 6px; }
#vista:focus { outline: none; }

/* ── Carcasa ───────────────────────────────────────────────────────── */
#app { max-width: var(--ancho); margin: 0 auto; min-height: 100dvh; position: relative; }
@media (min-width: 560px) {
  #app { border-left: 1px solid var(--borde); border-right: 1px solid var(--borde); box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
}
.barra-sup {
  position: sticky; top: 0; z-index: 20; padding: calc(var(--sa-top) + 8px) 16px 8px;
  background: rgba(8, 9, 11, 0.94); border-bottom: 1px solid var(--borde);
}
@supports (backdrop-filter: blur(1px)) { .barra-sup { background: rgba(8,9,11,.88); backdrop-filter: saturate(1.2) blur(10px); } }
.barra-fila { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; }
.equipo-activo {
  display: flex; align-items: center; gap: 10px; min-height: 48px; min-width: 0; padding: 4px 8px 4px 4px; margin-left: -4px;
  background: none; border: 0; border-radius: var(--radio-s); cursor: pointer; text-align: left;
}
.equipo-activo[aria-disabled="true"] { cursor: default; }
.equipo-activo:not([aria-disabled="true"]):active { background: var(--elevada); }
.equipo-nombre { font: 800 17px/1.15 var(--fuente-tit); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.estado-guardado { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--texto-2); flex: none; max-width: 52%; text-align: right; }
.estado-guardado span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.estado-guardado .ico { width: 18px; height: 18px; }
.eg-ok { color: var(--ok); } .eg-pend { color: var(--pend); } .eg-mal { color: var(--mal); }
.estado-guardado .enlace { min-height: 44px; }
.barra-demo { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
.sello-demo { display: inline-flex; align-items: center; gap: 4px; font: 800 12px/1 var(--fuente); letter-spacing: .08em; color: var(--pend); border: 1px solid #5c4d0f; border-radius: 6px; padding: 6px 8px; }
.sello-demo .ico { width: 14px; height: 14px; }
.logo-mini { font: 900 16px var(--fuente-tit); } .logo-mini b { color: var(--naranja); }

.banda { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; padding: 10px 12px; border-radius: var(--radio-s); font-size: 14px; line-height: 1.35; }
.banda-aviso { background: #2a2408; border: 1px solid #5c4d0f; color: #FDE68A; }
.banda .ico { width: 18px; height: 18px; margin-top: 1px; }
.banda .enlace { margin-left: auto; }

main { padding: 16px 16px calc(var(--barra-inf) + var(--sa-bot) + 24px); }
body.sin-carcasa main { padding-bottom: calc(var(--sa-bot) + 24px); padding-top: calc(var(--sa-top) + 16px); }

.barra-inf {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--ancho); z-index: 20;
  background: rgba(13, 14, 17, 0.97); border-top: 1px solid var(--borde); padding-bottom: var(--sa-bot);
}
.barra-inf ul { display: grid; grid-template-columns: repeat(5, 1fr); }
.tab {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: var(--barra-inf); text-decoration: none; color: var(--texto-2); font-size: 12.5px; font-weight: 600;
}
.tab .ico { width: 24px; height: 24px; }
.tab.activa { color: var(--blanco); }
.tab.activa::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--naranja); }
.tab.activa .ico { color: var(--naranja); }
.punto { position: absolute; top: 10px; left: calc(50% + 8px); width: 10px; height: 10px; border-radius: 50%; background: var(--naranja); border: 2px solid var(--fondo); }

/* ── Tipografía de pantalla ─────────────────────────────────────────── */
.pantalla { display: flex; flex-direction: column; gap: 14px; animation: entrar .18s ease-out; }
.titulo-pantalla { font: 900 28px/1.1 var(--fuente-tit); letter-spacing: -0.02em; }
.subtitulo { color: var(--texto-2); margin-top: -8px; }
.sub { font: 800 18px var(--fuente-tit); margin-top: 6px; }
.cab-detalle { display: flex; align-items: center; gap: 4px; }
.cab-detalle .titulo-pantalla { font-size: 24px; }
.cab-detalle .subtitulo { margin-top: 2px; font-size: 15px; }
.volver { margin-left: -10px; }

/* ── Botones ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px;
  border-radius: var(--radio-s); border: 1px solid transparent; font-weight: 700; font-size: 16px; text-decoration: none;
  cursor: pointer; transition: transform .08s ease, background-color .15s ease; user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-ancho { width: 100%; }
.btn-grande { min-height: 60px; font-size: 18px; border-radius: var(--radio); font-weight: 800; }
.btn-primario { background: var(--naranja); color: var(--sobre-naranja); }
.btn-primario .ico { stroke-width: 2.6; }
.btn-secundario { background: var(--elevada); border-color: var(--borde-fuerte); color: var(--blanco); }
.btn-fantasma { background: transparent; color: var(--blanco); }
.btn-fantasma:active { background: var(--elevada); }
.btn-peligro { background: #3a1414; border-color: #6b2323; color: #FFC9C9; }
.btn-icono { padding: 0 12px; min-width: 48px; }
.btn-mini { min-height: 44px; min-width: 48px; padding: 0 10px; font-size: 14px; font-weight: 600; color: var(--texto-2); }
.btn-mini .ico { width: 18px; height: 18px; }
.btn.cargando { pointer-events: none; }
.enlace { background: none; border: 0; padding: 0 4px; min-height: 48px; color: var(--naranja); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.girando { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: girar .7s linear infinite; flex: none; }
.pila { display: flex; flex-direction: column; gap: 10px; }
.dos-acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dos-acciones .btn { padding: 0 10px; font-size: 15px; }
.barra-acciones { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px; align-items: stretch; }
.barra-acciones .btn { min-height: 60px; padding: 0 10px; }
@media (max-width: 359px) { .barra-acciones { grid-template-columns: 1fr; } .dos-acciones { grid-template-columns: 1fr; } }
.rejilla-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rejilla-botones .btn { padding: 0 10px; font-size: 15px; min-height: 52px; }
.rejilla-botones .btn-primario { grid-column: 1 / -1; min-height: 56px; }

/* ── Tarjetas ──────────────────────────────────────────────────────── */
.tarjeta { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio); padding: 16px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.tarjeta-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tarjeta-titulo { font: 800 18px/1.2 var(--fuente-tit); display: flex; align-items: center; gap: 8px; }
.tarjeta-cab .tenue { font-size: 14px; }

/* Encuentro protagonista */
.encuentro { gap: 14px; border-color: var(--borde-fuerte); background: linear-gradient(180deg, #1A1C21 0%, var(--tarjeta) 70%); }
.enc-cab { display: flex; justify-content: space-between; align-items: center; }
.etiqueta-fase { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--texto-2); font-size: 15px; }
.etiqueta-fase .ico { width: 18px; height: 18px; }
.enc-cuando { font: 800 15px var(--fuente); color: var(--naranja); text-transform: uppercase; letter-spacing: .04em; }
.enc-equipos { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 6px; }
.enc-eq { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font: 800 16px/1.2 var(--fuente-tit); min-width: 0; overflow-wrap: anywhere; }
.enc-vs { font: 900 15px var(--fuente-tit); color: var(--texto-2); margin-top: 20px; }
.enc-fecha { display: flex; justify-content: center; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 17px; text-align: center; }
.enc-hora { font: 900 30px/1 var(--fuente-tit); font-variant-numeric: tabular-nums; }
.enc-lugar { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--texto-2); flex-wrap: wrap; text-align: center; }
.enc-hora-pend { display: inline-flex; align-items: center; gap: 6px; color: var(--pend); font-weight: 700; font-size: 15px; }
.enc-hora-pend .ico { width: 18px; height: 18px; }
.encuentro.compacta .enc-hora { font-size: 24px; }

.escudo { display: inline-grid; place-items: center; flex: none; border-radius: 50%; font: 900 11px/1 var(--fuente-tit); letter-spacing: .02em; color: var(--blanco);
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 55%, #000) 0%, color-mix(in srgb, var(--c) 30%, #000) 100%);
  border: 2px solid var(--c); }
.escudo-s { width: 36px; height: 36px; font-size: 10px; }
.escudo-m { width: 44px; height: 44px; }
.escudo-l { width: 60px; height: 60px; font-size: 14px; border-width: 3px; }

.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: var(--elevada); border: 1px solid var(--borde-fuerte); font: 800 14px var(--fuente-tit); color: var(--blanco); }
.avatar-s { width: 32px; height: 32px; font-size: 12px; }
.avatar-m { width: 40px; height: 40px; }
.avatar-l { width: 48px; height: 48px; font-size: 16px; }
.avatar-xl { width: 72px; height: 72px; font-size: 24px; border-color: var(--naranja); border-width: 2px; }
.avatar-vacio { border-style: dashed; color: var(--texto-2); }

/* Chips de estado: icono + texto, nunca solo color */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--elevada); border: 1px solid var(--borde-fuerte); white-space: nowrap; color: var(--blanco); }
.chip .ico { width: 15px; height: 15px; stroke-width: 2.6; }
.chip-ok { color: var(--ok); border-color: #1f5a37; background: #0f2418; }
.chip-mal { color: var(--mal); border-color: #6b2323; background: #2a1010; }
.chip-pend { color: var(--pend); border-color: #5c4d0f; background: #241f08; }
.chip-acento { color: var(--naranja); border-color: #6b2f17; background: #2a140b; }

/* Acción protagonista */
.accion-principal { display: flex; flex-direction: column; gap: 6px; }
.accion-principal .btn { min-height: 64px; font-size: 19px; }
.motivo { text-align: center; color: var(--texto-2); font-size: 15px; }
.pendientes-enlace { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 56px; border-radius: var(--radio); background: #241f08; border: 1px solid #5c4d0f; color: #FDE68A; text-decoration: none; }
.pendientes-enlace > span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pendientes-enlace small { color: #E5D9A3; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Recuento disponibilidad */
.recuento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-decoration: none; }
.rc { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: var(--radio-s); background: var(--elevada); border: 1px solid var(--borde); text-align: center; }
.rc b { font: 900 30px/1 var(--fuente-tit); font-variant-numeric: tabular-nums; }
.rc span { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; line-height: 1.15; }
.rc .ico { width: 15px; height: 15px; stroke-width: 2.6; }
.rc-ok span { color: var(--ok); } .rc-mal span { color: var(--mal); } .rc-pend span { color: var(--pend); }
.mi-respuesta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mi-respuesta > span:first-child { color: var(--texto-2); }

.mi-pareja { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radio-s); background: #2a140b; border: 1px solid #6b2f17; text-decoration: none; min-height: 64px; }
.mp-pista { display: flex; flex-direction: column; align-items: center; justify-content: center; font: 900 15px/1.1 var(--fuente-tit); color: var(--naranja); min-width: 64px; text-align: center; }
.mp-pista small { color: var(--blanco); font-size: 13px; font-weight: 700; }
.mp-txt { flex: 1; display: flex; flex-direction: column; } .mp-txt small { color: var(--texto-2); font-size: 14px; } .mp-txt b { font-size: 18px; }

.dos-columnas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini { gap: 4px; min-height: 120px; justify-content: center; }
.mini-tit { font-size: 14px; color: var(--texto-2); font-weight: 700; }
.mini-cifra { font: 900 36px/1 var(--fuente-tit); font-variant-numeric: tabular-nums; }
.mini-txt { font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.forma { display: inline-flex; gap: 3px; }
.forma span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; font: 800 12px var(--fuente); }
.forma-G { background: var(--naranja); color: var(--sobre-naranja); }
.forma-E { background: var(--elevada); color: var(--blanco); border: 1px solid var(--texto-2); }
.forma-P { background: transparent; color: var(--texto-2); border: 1px solid var(--borde-fuerte); }

.guia { border-color: #6b2f17; }
.guia ol { list-style: decimal; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.guia .btn { align-self: flex-start; }

/* ── Respuesta de disponibilidad ───────────────────────────────────── */
.dos-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-respuesta {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 96px; padding: 10px;
  border-radius: var(--radio); background: var(--elevada); border: 2px solid var(--borde-fuerte); font: 800 18px var(--fuente-tit); cursor: pointer;
  transition: transform .1s ease, background-color .2s ease, border-color .2s ease; touch-action: manipulation;
}
.btn-respuesta .ico { width: 30px; height: 30px; stroke-width: 2.6; }
.btn-respuesta:active:not(:disabled) { transform: scale(.96); }
.btn-respuesta:disabled { opacity: .6; }
.btn-respuesta.si.elegida { background: var(--naranja); border-color: var(--naranja); color: var(--sobre-naranja); animation: latido .28s ease-out; }
.btn-respuesta.no.elegida { background: #3a1414; border-color: var(--mal); color: #FFE1E1; animation: latido .28s ease-out; }
.estado-respuesta { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--texto-2); min-height: 24px; text-align: center; }
.estado-respuesta.ok { color: var(--ok); }
.estado-respuesta .ico { width: 18px; height: 18px; }
.resumen-enc { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radio-s); background: var(--elevada); }
.resumen-enc div { display: flex; flex-direction: column; } .resumen-enc small { color: var(--texto-2); }

/* ── Fases de la jornada ───────────────────────────────────────────── */
.fases ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; position: relative; }
.fase { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 2px; min-height: 64px; border-radius: var(--radio-s); text-decoration: none; color: var(--texto-2); font-size: 12.5px; font-weight: 700; text-align: center; line-height: 1.15; }
.fase-punto { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--borde-fuerte); background: var(--tarjeta); font: 800 14px var(--fuente); color: var(--texto-2); }
.fase-punto .ico { width: 16px; height: 16px; stroke-width: 3; }
.fase.hecha .fase-punto { border-color: var(--texto-2); color: var(--blanco); }
.fase.actual .fase-punto { border-color: var(--naranja); color: var(--naranja); }
.fase.actual { color: var(--blanco); }
.fase.vista { background: var(--tarjeta); border: 1px solid var(--borde-fuerte); color: var(--blanco); }
.fase.vista .fase-punto { background: var(--naranja); border-color: var(--naranja); color: var(--sobre-naranja); }
@media (max-width: 359px) { .fase { font-size: 11px; } .rc span { font-size: 12px; } }
.fase-txt { overflow-wrap: anywhere; }
.fase-cuerpo { display: flex; flex-direction: column; gap: 14px; animation: entrar .2s ease-out; }
.siguiente-paso { display: flex; align-items: center; gap: 10px; padding: 14px 16px; min-height: 60px; border-radius: var(--radio); border: 1px dashed var(--borde-fuerte); text-decoration: none; }
.siguiente-paso span { flex: 1; display: flex; flex-direction: column; font: 800 17px var(--fuente-tit); }
.siguiente-paso small { font: 600 13px var(--fuente); color: var(--texto-2); text-transform: uppercase; letter-spacing: .06em; }
.siguiente-paso .ico { color: var(--naranja); }
.nav-jornadas { display: flex; justify-content: space-between; }

/* Filtros */
.filtros { display: flex; flex-wrap: wrap; gap: 8px; }
.filtro { min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--tarjeta); border: 1px solid var(--borde-fuerte); font-weight: 700; font-size: 15px; cursor: pointer; }
.filtro b { color: var(--texto-2); font-weight: 700; margin-left: 2px; }
.filtro.activo { background: var(--blanco); color: var(--fondo); border-color: var(--blanco); }
.filtro.activo b { color: #3a3f48; }

/* Listas de jugadores */
.lista-jugadores { display: flex; flex-direction: column; }
.lj { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--borde); flex-wrap: wrap; }
.lj:first-child { border-top: 0; }
.lj-txt { flex: 1 1 120px; min-width: 0; display: flex; flex-direction: column; }
.lj-txt small { color: var(--texto-2); font-size: 14px; overflow-wrap: anywhere; }

.plantilla { display: flex; flex-direction: column; gap: 8px; }
.jugador { display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 68px; border-radius: var(--radio); background: var(--tarjeta); border: 1px solid var(--borde); text-decoration: none; }
.jug-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.jug-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jug-txt small { color: var(--texto-2); font-size: 14px; }
@media (max-width: 374px) { .jugador .chip span { display: none; } .jugador .chip { padding: 6px; } }
.fila-flecha { color: var(--texto-2); width: 20px; height: 20px; }
.buscador { position: relative; }
.buscador .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--texto-2); pointer-events: none; }
.buscador input { width: 100%; min-height: 52px; padding: 0 14px 0 46px; border-radius: var(--radio); background: var(--tarjeta); border: 1px solid var(--borde-fuerte); font-size: 16px; }

/* Parejas */
.parejas { display: flex; flex-direction: column; gap: 10px; }
.pareja { border: 1px solid var(--borde); background: var(--elevada); border-radius: var(--radio-s); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.pareja.mia { border-color: var(--naranja); }
.pareja.con-error { border-color: var(--mal); }
.pareja-cab { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pareja-cab > b { font: 800 16px var(--fuente-tit); margin-right: auto; }
.pareja-jug { display: flex; align-items: center; gap: 10px; }
.pareja-jug span { display: flex; flex-direction: column; } .pareja-jug small { color: var(--texto-2); font-size: 14px; }
.pista-sel select { min-height: 44px; background: var(--tarjeta); border: 1px solid var(--borde-fuerte); border-radius: 8px; padding: 0 8px; font-size: 15px; }
.hueco { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 60px; padding: 8px 10px; border-radius: var(--radio-s); background: var(--tarjeta); border: 1px solid var(--borde-fuerte); text-align: left; cursor: pointer; }
.hueco.vacio { border-style: dashed; }
.hueco.vacio b { color: var(--naranja); }
.hueco-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hueco-txt small { color: var(--texto-2); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.hueco-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hueco > .ico { color: var(--texto-2); }
.pareja-acciones { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.avisos-lista { display: flex; flex-direction: column; gap: 6px; }
.avisos-lista li { display: flex; gap: 8px; align-items: flex-start; color: var(--pend); font-size: 15px; }
.avisos-lista.errores li { color: var(--mal); }
.avisos-lista .ico { width: 18px; height: 18px; margin-top: 2px; }
.destacado { font-size: 18px; } .destacado b { color: var(--naranja); }

.selector { display: flex; flex-direction: column; gap: 6px; }

/* Filas genéricas */
.fila { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 14px; border-radius: var(--radio); background: var(--tarjeta); border: 1px solid var(--borde); text-decoration: none; text-align: left; cursor: pointer; }
.fila:disabled { opacity: .5; cursor: not-allowed; }
.fila-activa { border-color: var(--naranja); }
.fila.urgente { border-color: #6b2f17; }
.fila-ico { display: grid; place-items: center; flex: none; }
.fila-ico > .ico { color: var(--naranja); }
.fila-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 700; }
.fila-txt small { color: var(--texto-2); font-weight: 400; font-size: 14px; }
.fila-valor { font-weight: 800; color: var(--naranja); }
.menu, .pendientes, .lista-jornadas { display: flex; flex-direction: column; gap: 8px; }
.lj-marcador { font: 900 20px var(--fuente-tit); font-variant-numeric: tabular-nums; }
.fila-tarjeta { flex-direction: row; align-items: center; justify-content: space-between; min-height: 64px; padding: 12px 14px; }
.fila-tarjeta > span { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fila-tarjeta > span > span { display: flex; flex-direction: column; } .fila-tarjeta small { color: var(--texto-2); }
.fila-tarjeta b { margin-left: auto; }
.rival-enlace b.acento { white-space: nowrap; }

/* Marcador */
.marcador-pareja { border: 1px solid var(--borde); border-radius: var(--radio-s); background: var(--elevada); padding: 12px; margin: 0; min-width: 0; }
.marcador-pareja legend { display: contents; }
.marcador-pareja legend b { display: block; font: 800 16px var(--fuente-tit); }
.marcador-pareja legend span { display: block; color: var(--texto-2); font-size: 14px; margin-bottom: 10px; }
.marcador-rejilla { display: grid; grid-template-columns: minmax(36px, auto) repeat(3, minmax(0, 1fr)); gap: 8px; align-items: center; }
.mr-cab { text-align: center; font-size: 13px; color: var(--texto-2); font-weight: 700; }
.mr-eq { font: 800 14px var(--fuente-tit); }
.mr-celda { width: 100%; min-height: 60px; text-align: center; font: 900 26px var(--fuente-tit); font-variant-numeric: tabular-nums; border-radius: var(--radio-s); background: var(--tarjeta); border: 2px solid var(--borde-fuerte); padding: 0; }
.mr-celda:focus { border-color: var(--naranja); outline: none; box-shadow: 0 0 0 3px rgba(255,90,31,.35); }
.val-pareja { margin-top: 10px; font-size: 15px; min-height: 22px; }
.val-pareja span { display: inline-flex; align-items: center; gap: 6px; }
.val-pareja .ico { width: 18px; height: 18px; }
.val-pareja .error { color: var(--mal); }
.global-previo { text-align: center; color: var(--texto-2); min-height: 22px; }
.global-previo b { color: var(--blanco); font-size: 20px; }
.datos-partido { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.datos-partido div { display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
.datos-partido dt { display: flex; align-items: center; gap: 6px; color: var(--texto-2); font-size: 15px; }
.datos-partido dt .ico { width: 18px; height: 18px; }
.datos-partido dd { margin: 0; font-weight: 700; display: flex; flex-direction: column; }
.datos-partido dd small { color: var(--texto-2); font-weight: 400; }

/* Resultado */
.resultado { align-items: center; text-align: center; padding: 22px 16px; }
.resultado.gano { border-color: var(--naranja); background: linear-gradient(180deg, #2a140b 0%, var(--tarjeta) 75%); }
.res-veredicto { font: 900 16px var(--fuente-tit); letter-spacing: .14em; text-transform: uppercase; }
.resultado.gano .res-veredicto { color: var(--naranja); }
.res-marcador { display: flex; align-items: center; justify-content: center; gap: 14px; }
.res-eq { display: flex; flex-direction: column; align-items: center; gap: 4px; } .res-eq small { font-weight: 800; color: var(--texto-2); }
.res-cifra { font: 900 72px/1 var(--fuente-tit); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; animation: aparecer .35s ease-out; }
.res-cifra i { font-style: normal; color: var(--texto-2); margin: 0 4px; }
.desglose { display: flex; flex-direction: column; gap: 8px; }
.desglose li { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "res nombres" "res sets"; gap: 2px 12px; align-items: center; padding: 10px 12px; border-radius: var(--radio-s); background: var(--elevada); border-left: 4px solid var(--borde-fuerte); }
.desglose li.gano { border-left-color: var(--naranja); }
.dg-res { grid-area: res; display: flex; flex-direction: column; align-items: center; font-size: 13px; font-weight: 800; min-width: 56px; }
.gano .dg-res { color: var(--naranja); } .perdio .dg-res { color: var(--texto-2); }
.dg-nombres { grid-area: nombres; font-size: 15px; } .dg-sets { grid-area: sets; display: flex; gap: 10px; font: 800 18px var(--fuente-tit); font-variant-numeric: tabular-nums; color: var(--texto-2); }
.dg-sets .set-g { color: var(--blanco); }
.mvp { display: flex; align-items: center; gap: 8px; } .mvp .ico { color: var(--naranja); }

/* Clasificación */
.clasificacion { display: flex; flex-direction: column; gap: 6px; }
.clasificacion a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 68px; border-radius: var(--radio); background: var(--tarjeta); border: 1px solid var(--borde); text-decoration: none; }
.clasificacion li.mio a { border: 2px solid var(--naranja); background: #1d120c; }
.cl-pos { width: 26px; text-align: center; font: 900 20px var(--fuente-tit); font-variant-numeric: tabular-nums; }
.mio .cl-pos { color: var(--naranja); }
.cl-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cl-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-txt small { color: var(--texto-2); font-size: 13.5px; }
.cl-pts { display: flex; flex-direction: column; align-items: center; } .cl-pts b { font: 900 24px/1 var(--fuente-tit); } .cl-pts small { color: var(--texto-2); font-size: 12px; }
.selectores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.selectores .campo:first-child { grid-column: 1 / -1; }
.claves { display: flex; flex-direction: column; gap: 10px; }
.clave { gap: 6px; }
.clave-tit { color: var(--texto-2); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.clave-valor { font: 900 26px var(--fuente-tit); color: var(--naranja); }

/* Cifras */
.cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cifras.dos { grid-template-columns: 1fr 1fr; }
.cifra { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio); padding: 14px 8px; text-align: center; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cifra b { font: 900 26px/1.1 var(--fuente-tit); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cifra span { color: var(--texto-2); font-size: 14px; }
.ficha-cab { flex-direction: row; align-items: center; gap: 16px; }
.ficha-cab > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ficha-nombre { font: 900 22px/1.15 var(--fuente-tit); }
.nota-demo { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.nota-demo .ico { width: 18px; height: 18px; margin-top: 1px; }
.lista-simple { display: flex; flex-direction: column; }
.lista-simple li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--borde); min-height: 52px; }
.lista-simple li:first-child { border-top: 0; }
.lista-simple li > span:nth-child(2) { flex: 1; min-width: 0; }
.lista-simple li b { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.lista-simple li b .ico { width: 16px; height: 16px; }
.encuentros-eq li > span:first-child { width: 32px; }
.perfil { display: flex; align-items: center; gap: 12px; } .perfil div { display: flex; flex-direction: column; } .perfil small { color: var(--texto-2); }

/* Plegables */
.plegable { padding: 0; }
.plegable summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; min-height: 56px; cursor: pointer; list-style: none; font-weight: 700; }
.plegable summary::-webkit-details-marker { display: none; }
.plegable summary > span { display: flex; align-items: center; gap: 8px; }
.plegable[open] summary > .ico { transform: rotate(180deg); }
.plegable > :not(summary) { padding: 0 16px 16px; }
.plegable-texto summary { display: flex; align-items: center; gap: 6px; min-height: 44px; color: var(--texto-2); cursor: pointer; font-size: 15px; font-weight: 600; list-style: none; }
.plegable-texto summary::-webkit-details-marker { display: none; }
.plegable-texto summary .ico { width: 18px; height: 18px; }
.plegable-texto ul { list-style: disc; padding-left: 20px; color: var(--texto-2); font-size: 15px; display: flex; flex-direction: column; gap: 4px; }
.plegable-texto p { color: var(--texto-2); font-size: 15px; }
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq p { color: var(--texto-2); }

/* Historial y movimientos */
.historial { display: flex; flex-direction: column; }
.historial li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid var(--borde); }
.historial.tarjeta li { padding: 12px 0; }
.historial li:first-child { border-top: 0; }
.historial small { color: var(--texto-2); font-size: 14px; }
.historial .enlace { align-self: flex-start; min-height: 40px; padding: 0; }
.historial li.sin-leer b { color: var(--blanco); } .historial li.sin-leer b::before { content: "● "; color: var(--naranja); }
.movimientos { display: flex; flex-direction: column; }
.movimientos li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--borde); }
.movimientos li:first-child { border-top: 0; }
.mov-txt { display: flex; flex-direction: column; min-width: 0; } .mov-txt small { color: var(--texto-2); font-size: 14px; }
.mov-imp { font: 800 17px var(--fuente-tit); font-variant-numeric: tabular-nums; text-align: right; }
.mov-pago .mov-imp, .mov-ingreso .mov-imp { color: var(--ok); }
.movimientos .btn-mini { grid-column: 1 / -1; justify-self: start; margin-left: -10px; }
.movimientos li.anulado .mov-txt b, .movimientos li.anulado .mov-imp { text-decoration: line-through; color: var(--texto-2); }

/* Formularios */
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label { font-weight: 700; }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: var(--radio-s); background: var(--elevada); border: 1px solid var(--borde-fuerte); font-size: 16px;
}
.campo select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--texto-2) 50%), linear-gradient(135deg, var(--texto-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.campo input:focus, .campo select:focus, .campo textarea:focus, .buscador input:focus { border-color: var(--naranja); outline: none; box-shadow: 0 0 0 3px rgba(255,90,31,.35); }
.campo.con-error input, .campo.con-error select { border-color: var(--mal); }
.campo-error { display: flex; align-items: flex-start; gap: 6px; color: var(--mal); font-size: 15px; font-weight: 600; }
.campo-error .ico { width: 18px; height: 18px; margin-top: 1px; }
.campo-ayuda { color: var(--texto-2); font-size: 14px; }
.dos-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.interruptor { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 0; cursor: pointer; position: relative; }
.interruptor-txt { flex: 1; display: flex; flex-direction: column; } .interruptor-txt small { color: var(--texto-2); font-size: 14px; }
.interruptor input { position: absolute; opacity: 0; width: 52px; height: 32px; right: 0; margin: 0; cursor: pointer; }
.interruptor-pista { flex: none; width: 52px; height: 32px; border-radius: 999px; background: var(--elevada); border: 1px solid var(--borde-fuerte); position: relative; transition: background-color .2s; }
.interruptor-pista::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--texto-2); transition: transform .2s, background-color .2s; }
.interruptor input:checked + .interruptor-pista { background: var(--naranja); border-color: var(--naranja); }
.interruptor input:checked + .interruptor-pista::after { transform: translateX(20px); background: var(--sobre-naranja); }
.interruptor input:focus-visible + .interruptor-pista { outline: 3px solid var(--naranja); outline-offset: 2px; }

.segmentado { display: flex; border: 1px solid var(--borde-fuerte); border-radius: 10px; padding: 3px; margin: 0; background: var(--tarjeta); }
.seg { position: relative; flex: 1; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 42px; padding: 0 12px; border-radius: 7px; font-weight: 700; font-size: 15px; color: var(--texto-2); }
.seg.activo span, .seg input:checked + span { background: var(--blanco); color: var(--fondo); }
.seg input:focus-visible + span { outline: 3px solid var(--naranja); }
.segmentado-mini .seg span { min-height: 40px; padding: 0 14px; font-size: 14px; }

.resumen { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.resumen div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--borde); }
.resumen dt { color: var(--texto-2); } .resumen dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }

/* Mensajes y vacíos */
.mensaje { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radio-s); background: var(--elevada); border: 1px solid var(--borde-fuerte); }
.mensaje > .ico { color: var(--texto-2); margin-top: 1px; }
.mensaje-cuerpo { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mensaje-cuerpo .btn { align-self: flex-start; }
.mensaje-error { border-color: #6b2323; background: #2a1010; } .mensaje-error > .ico { color: var(--mal); }
.mensaje-ok { border-color: #1f5a37; background: #0f2418; } .mensaje-ok > .ico { color: var(--ok); }
p.mensaje { font-size: 15px; }
.vacio { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 8px; text-align: center; }
.vacio-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--elevada); color: var(--texto-2); }
.vacio-ico .ico { width: 26px; height: 26px; }
.vacio-titulo { font: 800 18px var(--fuente-tit); }
.vacio-texto { color: var(--texto-2); max-width: 32ch; }
.vacio .btn { margin-top: 6px; }
.esq { height: 72px; border-radius: var(--radio); background: linear-gradient(90deg, var(--tarjeta) 0%, var(--elevada) 50%, var(--tarjeta) 100%); background-size: 200% 100%; animation: brillo 1.2s ease-in-out infinite; }
.esq-alto { height: 260px; }
.texto-compartir { white-space: pre-wrap; overflow-wrap: anywhere; font: 15px/1.45 var(--fuente); background: var(--elevada); border: 1px solid var(--borde-fuerte); border-radius: var(--radio-s); padding: 12px; margin: 0; max-height: 40vh; overflow: auto; }

/* ── Hoja inferior y avisos ────────────────────────────────────────── */
#hoja { position: fixed; inset: 0; z-index: 50; }
.hoja-fondo { position: absolute; inset: 0; background: rgba(0, 0, 0, .66); }
.hoja {
  position: absolute; left: 50%; bottom: 0; width: 100%; max-width: var(--ancho); transform: translate(-50%, 100%);
  max-height: calc(100dvh - var(--sa-top) - 24px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--tarjeta); border-top: 1px solid var(--borde-fuerte); border-radius: 20px 20px 0 0;
  padding: 8px 16px calc(var(--sa-bot) + 20px); transition: transform .22s cubic-bezier(.2,.8,.3,1);
}
#hoja.abierta .hoja { transform: translate(-50%, 0); }
.hoja:focus { outline: none; }
.hoja-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: sticky; top: -8px; background: var(--tarjeta); padding: 8px 0; z-index: 1; }
.hoja-cab h2 { font: 900 21px var(--fuente-tit); }
.hoja-cuerpo { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.hoja-texto { font-size: 16px; }

.aviso {
  position: fixed; left: 50%; bottom: calc(var(--barra-inf) + var(--sa-bot) + 12px); transform: translate(-50%, 20px); z-index: 60;
  width: calc(100% - 32px); max-width: calc(var(--ancho) - 32px); display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  border-radius: var(--radio); background: var(--blanco); color: var(--fondo); font-weight: 700; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
body.sin-carcasa .aviso { bottom: calc(var(--sa-bot) + 16px); }
.aviso.visible { opacity: 1; transform: translate(-50%, 0); }
.aviso-error { background: #FFE1E1; color: #4a0d0d; }
.aviso .ico { flex: none; }

/* ── Bienvenida y acceso ───────────────────────────────────────────── */
.publica { display: flex; flex-direction: column; gap: 16px; min-height: calc(100dvh - var(--sa-top) - var(--sa-bot) - 40px); }
.bienvenida { display: flex; flex-direction: column; gap: 24px; flex: 1; justify-content: center; }
.bv-marca { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.bv-icono { width: 88px; height: 88px; border-radius: 22px; border: 1px solid var(--borde-fuerte); }
.bv-claim { font: 700 20px/1.35 var(--fuente-tit); color: var(--texto-2); }
.bv-puntos { display: flex; flex-direction: column; gap: 10px; }
.bv-puntos li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radio-s); background: var(--tarjeta); border: 1px solid var(--borde); }
.bv-puntos .ico { color: var(--naranja); }
.pie-nota { font-size: 14px; }
.logotipo { display: inline-flex; align-items: baseline; font: italic 900 30px/1 var(--fuente-tit); letter-spacing: -0.02em; }
.logotipo.grande { font-size: clamp(34px, 11vw, 46px); }
.lg-pro { color: var(--blanco); } .lg-padel { color: var(--blanco); }
.lg-ver { margin-left: .2em; padding: .08em .22em .1em; background: var(--naranja); color: var(--sobre-naranja); border-radius: 6px; font-style: normal; font-size: .62em; transform: skewX(-10deg); align-self: center; }
.pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; counter-reset: p; }
.pasos li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; color: var(--texto-2); font-weight: 700; text-align: center; }
.pasos li span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--borde-fuerte); font-weight: 800; }
.pasos li.activo { color: var(--blanco); } .pasos li.activo span { background: var(--naranja); border-color: var(--naranja); color: var(--sobre-naranja); }
.pasos li.hecho span { border-color: var(--texto-2); color: var(--blanco); }
.demo-herr { border-style: dashed; border-color: #5c4d0f; }

/* ── Movimiento ────────────────────────────────────────────────────── */
@keyframes entrar { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes aparecer { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes latido { 0% { transform: scale(.94); } 60% { transform: scale(1.03); } 100% { transform: none; } }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes brillo { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .girando { animation: girar 1.6s linear infinite !important; }
}

/* ── Scouting ─────────────────────────────────────────────────────── */
.barras { display: flex; flex-direction: column; gap: 8px; }
.barras li { display: grid; grid-template-columns: 76px 1fr 28px; align-items: center; gap: 10px; font-size: 15px; }
.barra { height: 12px; border-radius: 6px; background: var(--elevada); overflow: hidden; }
.barra span { display: block; height: 100%; background: var(--naranja); border-radius: 6px; }
.temporadas li > span:nth-child(2) { display: flex; flex-direction: column; } .temporadas small { color: var(--texto-2); font-size: 13.5px; }
.lista-simple li > span small { display: block; color: var(--texto-2); font-size: 13.5px; }
.por-posicion { display: flex; flex-direction: column; gap: 10px; }
.por-posicion li { display: grid; grid-template-columns: 36px 1fr; gap: 8px; }
.por-posicion li > b { color: var(--naranja); font: 900 18px var(--fuente-tit); }
.por-posicion li > span { display: flex; flex-direction: column; gap: 4px; } .por-posicion small { color: var(--texto-2); }
.ranking { display: flex; flex-direction: column; gap: 6px; }
.rk-pos { width: 26px; text-align: center; font: 900 18px var(--fuente-tit); color: var(--texto-2); }
.comparativa { display: flex; flex-direction: column; gap: 8px; }
.comparativa li { display: grid; grid-template-columns: 32px 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: var(--radio-s); background: var(--elevada); }
.cmp-n { font: 900 16px var(--fuente-tit); color: var(--naranja); }
.cmp-txt { display: flex; flex-direction: column; min-width: 0; } .cmp-txt small { color: var(--texto-2); font-size: 13.5px; }
.dg-rival { display: block; color: var(--texto-2); font-size: 13.5px; }
.resultado.empate .res-veredicto { color: var(--blanco); }

/* ── Intro del club ───────────────────────────────────────────────── */
#intro {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(rgba(0,0,0,var(--oscurece)), rgba(0,0,0,var(--oscurece))), #050506 url("../img/fondo-carbono-tesela.jpg") 0 0 / 160px 160px repeat;
  transition: opacity .38s ease;
}
#intro::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,.55) 100%); pointer-events: none; }
#intro.fuera { opacity: 0; }
body.con-intro { overflow: hidden; }
.intro-logo { position: relative; z-index: 1; width: min(76vw, 360px); transition: transform .7s cubic-bezier(.65,0,.25,1); }
.intro-logo svg { width: 100%; height: auto; overflow: visible; }
#intro path {
  fill: #FFFFFF; fill-opacity: 0; stroke: #FFFFFF;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
#intro.dibujando path { animation: trazo .9s cubic-bezier(.5,0,.2,1) forwards; animation-delay: var(--retardo, 0ms); }
#intro.relleno path { transition: fill-opacity .6s ease, stroke-opacity .6s ease; fill-opacity: 1; stroke-opacity: 0; }
#intro.volando .pieza:not(:first-child) { opacity: 0; transition: opacity .35s ease; }
.intro-saltar {
  position: absolute; z-index: 2; right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); min-height: 48px; min-width: 88px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.45); color: #fff; font-weight: 700; font-size: 16px; cursor: pointer;
}
@keyframes trazo { to { stroke-dashoffset: 0; } }
.bv-simbolo { width: auto; height: 104px; margin: 0 auto; filter: drop-shadow(0 2px 10px rgba(0,0,0,.6)); }
body.con-intro .bv-simbolo { visibility: hidden; }


/* ═══ Fibra de carbono de fondo + botones de cristal con volumen ═══ */
body { background: #060708; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(0,0,0,var(--oscurece)), rgba(0,0,0,var(--oscurece))), url("../img/fondo-carbono-tesela.jpg") 0 0 / 160px 160px repeat, #060708;
}
body::after { /* viñeta: oscurece los bordes y mantiene la lectura */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 30%, rgba(0,0,0,.05) 0%, rgba(0,0,0,.55) 100%);
}
@media (min-width: 560px) { #app { box-shadow: none; background: rgba(0,0,0,.25); } }

/* Tarjetas casi lisas: dejan intuir la trama sin restar contraste */
.tarjeta, .jugador, .fila, .clasificacion a, .cifra, .bv-puntos li, .marcador-pareja, .pareja, .rc {
  background-color: rgba(21, 23, 27, .9);
}
.barra-sup { background: rgba(6, 7, 8, .82); }
.barra-inf { background: rgba(10, 11, 13, .9); }
@supports (backdrop-filter: blur(1px)) {
  .barra-inf { backdrop-filter: blur(12px) saturate(1.2); background: rgba(10, 11, 13, .78); }
}

/* Base común de todos los botones: volumen y reflejo */
.btn, .btn-respuesta, .filtro, .hueco, .seg span, .intro-saltar {
  position: relative; isolation: isolate; overflow: hidden;
  transition: transform .09s ease, box-shadow .12s ease, background-color .15s ease, filter .15s ease;
}
.btn::before, .btn-respuesta::before, .filtro::before, .hueco::before, .intro-saltar::before {
  /* reflejo de cristal en la mitad superior */
  content: ""; position: absolute; inset: 1px 1px 50% 1px; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.04) 100%);
}

/* Primario: naranja fuego en relieve (texto oscuro: contraste ≥ 6:1) */
.btn-primario {
  background: linear-gradient(180deg, #FF7A45 0%, #FF5A1F 48%, #E9480F 100%);
  color: var(--sobre-naranja);
  border: 1px solid #FF8A5C;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(0,0,0,.18), 0 4px 0 #A8360B, 0 10px 22px rgba(255,90,31,.28), 0 6px 14px rgba(0,0,0,.55);
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
}
.btn-primario::before { background: linear-gradient(180deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,.06) 100%); }
.btn-primario:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -1px 0 rgba(0,0,0,.2), 0 1px 0 #A8360B, 0 4px 10px rgba(255,90,31,.22), 0 3px 8px rgba(0,0,0,.5); }

/* Secundario y peligro: cristal esmerilado con canto */
.btn-secundario, .btn-peligro, .filtro, .hueco, .intro-saltar {
  background: linear-gradient(180deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.05) 100%), rgba(24, 26, 31, .72);
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(0,0,0,.35), 0 3px 0 rgba(0,0,0,.55), 0 8px 18px rgba(0,0,0,.45);
}
@supports (backdrop-filter: blur(1px)) {
  .btn-secundario, .btn-peligro, .filtro, .hueco, .intro-saltar { backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3); }
}
.btn-peligro { background: linear-gradient(180deg, rgba(255,120,120,.22) 0%, rgba(255,80,80,.06) 100%), rgba(58, 20, 20, .8); border-color: rgba(255,122,122,.45); }
.btn-secundario:active:not(:disabled), .btn-peligro:active:not(:disabled), .filtro:active, .hueco:active, .intro-saltar:active {
  transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -1px 0 rgba(0,0,0,.3), 0 1px 0 rgba(0,0,0,.55), 0 3px 8px rgba(0,0,0,.4);
}
.hueco.vacio { border-style: dashed; border-color: rgba(255,90,31,.55); }

/* Fantasma: cristal muy leve para que también se lea como botón */
.btn-fantasma { background: linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.02) 100%); border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 2px 0 rgba(0,0,0,.4); }
.btn-fantasma::before { background: linear-gradient(180deg, rgba(255,255,255,.1) 0%, transparent 100%); }
.btn-fantasma:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 0 rgba(0,0,0,.4); }
.volver.btn-fantasma { border-color: transparent; box-shadow: none; background: none; }
.volver.btn-fantasma::before { display: none; }

/* Filtro activo: cristal blanco */
.filtro.activo { background: linear-gradient(180deg, #FFFFFF 0%, #E6E8EC 100%); color: var(--fondo); border-color: #fff; box-shadow: inset 0 -2px 0 rgba(0,0,0,.12), 0 3px 0 rgba(0,0,0,.5), 0 8px 16px rgba(0,0,0,.4); }

/* Respuesta de disponibilidad: botones grandes en relieve */
.btn-respuesta {
  background: linear-gradient(180deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.04) 100%), rgba(24, 26, 31, .8);
  border: 2px solid rgba(255,255,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 4px 0 rgba(0,0,0,.6), 0 12px 22px rgba(0,0,0,.45);
}
.btn-respuesta:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 0 rgba(0,0,0,.6), 0 4px 10px rgba(0,0,0,.4); }
.btn-respuesta.si.elegida { background: linear-gradient(180deg, #FF7A45 0%, #FF5A1F 50%, #E9480F 100%); border-color: #FF8A5C; box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 4px 0 #A8360B, 0 12px 24px rgba(255,90,31,.3); }
.btn-respuesta.no.elegida { background: linear-gradient(180deg, #5a1d1d 0%, #3a1414 100%); border-color: var(--mal); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 4px 0 #1f0808, 0 12px 24px rgba(0,0,0,.45); }

/* Control segmentado (Jugador / Capitán) */
.segmentado { background: rgba(10,11,13,.7); border-color: rgba(255,255,255,.16); box-shadow: inset 0 2px 6px rgba(0,0,0,.6); }
.seg.activo span, .seg input:checked + span { background: linear-gradient(180deg, #FFFFFF 0%, #DDE0E6 100%); box-shadow: 0 2px 0 rgba(0,0,0,.45), inset 0 -1px 0 rgba(0,0,0,.12); }

/* Botones de la barra inferior: la pestaña activa se «levanta» */
.tab.activa .ico { filter: drop-shadow(0 0 6px rgba(255,90,31,.55)); }

@media (prefers-reduced-motion: reduce) { .btn:active, .btn-respuesta:active, .filtro:active, .hueco:active { transform: none !important; } }

/* Texto que va directamente sobre la fibra: sombra para mantener la lectura */
.bv-claim { color: #D9DCE2; }
.bv-claim, .pie-nota, .titulo-pantalla, .subtitulo, .sub, .pantalla > p.tenue, .publica > p.tenue, .motivo, .nota-demo, .nav-jornadas, .cab-detalle {
  text-shadow: 0 1px 2px rgba(0,0,0,.95), 0 0 12px rgba(0,0,0,.85);
}

/* Botón de WhatsApp: verde en relieve, con el mismo cristal que el resto */
.btn-wa {
  background: linear-gradient(180deg, #4FE08A 0%, #25D366 50%, #1DB954 100%); color: #06240F;
  border: 1px solid #6BEA9E;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(0,0,0,.15), 0 4px 0 #128C3E, 0 10px 22px rgba(37,211,102,.22), 0 6px 14px rgba(0,0,0,.55);
}
.btn-wa::before { background: linear-gradient(180deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,.05) 100%); }
.btn-wa:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 1px 0 #128C3E, 0 4px 10px rgba(0,0,0,.5); }
.btn-wa .ico { stroke-width: 2.4; }

/* ═══ Todos los botones en naranja fuego (petición de Óscar, 18/10) ═══
   Texto oscuro sobre naranja (≥ 6:1). Lo elegido = naranja macizo; lo no elegido = naranja translúcido.
   Cada botón conserva icono y texto: el color no es la única pista. */
.btn-primario, .btn-secundario, .btn-fantasma:not(.volver), .btn-peligro, .btn-wa, .intro-saltar {
  background: linear-gradient(180deg, #FF7A45 0%, #FF5A1F 48%, #E9480F 100%);
  color: var(--sobre-naranja); border: 1px solid #FF8A5C; text-shadow: 0 1px 0 rgba(255,255,255,.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(0,0,0,.18), 0 4px 0 #A8360B, 0 10px 22px rgba(255,90,31,.25), 0 6px 14px rgba(0,0,0,.55);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.btn-secundario::before, .btn-fantasma:not(.volver)::before, .btn-peligro::before, .btn-wa::before, .intro-saltar::before {
  background: linear-gradient(180deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,.06) 100%);
}
.btn-secundario:active:not(:disabled), .btn-fantasma:not(.volver):active:not(:disabled), .btn-peligro:active:not(:disabled), .btn-wa:active:not(:disabled), .intro-saltar:active {
  transform: translateY(3px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -1px 0 rgba(0,0,0,.2), 0 1px 0 #A8360B, 0 4px 10px rgba(255,90,31,.2), 0 3px 8px rgba(0,0,0,.5);
}
.btn-mini { color: var(--sobre-naranja); }
.enlace { color: #FF7A45; }
/* «Cerrar» y botones de icono en cabeceras: mismo naranja, más compactos */
.hoja-cab .btn, .estado-guardado .btn { min-height: 44px; }

/* Filtros, huecos y respuestas sin elegir: naranja translúcido; elegidos: naranja macizo */
.filtro, .hueco, .btn-respuesta {
  background: linear-gradient(180deg, rgba(255,122,69,.34) 0%, rgba(255,90,31,.16) 100%), rgba(30, 16, 10, .75);
  border-color: rgba(255,122,69,.65); color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255,190,160,.35), 0 3px 0 rgba(120,38,8,.85), 0 8px 18px rgba(0,0,0,.45);
}
.filtro b { color: #FFD3BF; }
.hueco.vacio b { color: #FFB08F; }
.hueco > .ico { color: #FFB08F; }
.filtro.activo, .btn-respuesta.si.elegida, .btn-respuesta.no.elegida {
  background: linear-gradient(180deg, #FF7A45 0%, #FF5A1F 48%, #E9480F 100%); color: var(--sobre-naranja); border-color: #FF8A5C;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 4px 0 #A8360B, 0 12px 24px rgba(255,90,31,.3);
}
.filtro.activo b { color: #3a1a0c; }
/* La respuesta «No puedo» elegida se distingue por su icono ✕, su texto y un borde interior oscuro */
.btn-respuesta.no.elegida { box-shadow: inset 0 0 0 3px rgba(8,9,11,.55), inset 0 1px 0 rgba(255,255,255,.55), 0 4px 0 #A8360B, 0 12px 24px rgba(255,90,31,.3); }
.seg.activo span, .seg input:checked + span { background: linear-gradient(180deg, #FF7A45 0%, #FF5A1F 55%, #E9480F 100%); color: var(--sobre-naranja); }

/* ═══ Botones más grandes y navegación más clara (18/10) ═══ */
.btn { min-height: 56px; font-size: 17px; padding: 0 20px; border-radius: 14px; }
.btn .ico { width: 24px; height: 24px; }
.btn-grande, .accion-principal .btn { min-height: 64px; font-size: 19px; }
.accion-principal .btn { min-height: 68px; font-size: 20px; }
.btn-mini { min-height: 48px; font-size: 15px; padding: 0 14px; }
.btn-mini .ico { width: 20px; height: 20px; }
.btn-icono { min-width: 56px; }
.dos-acciones .btn, .rejilla-botones .btn { min-height: 56px; font-size: 16px; }
.barra-acciones .btn { min-height: 64px; }
.filtro { min-height: 48px; padding: 0 16px; font-size: 16px; }
.btn-respuesta { min-height: 120px; font-size: 20px; }
.btn-respuesta .ico { width: 36px; height: 36px; }
.hueco { min-height: 64px; }
.fila { min-height: 68px; }
.seg span { min-height: 46px; font-size: 16px; }
.segmentado-mini .seg span { min-height: 44px; font-size: 15px; }
.campo input, .campo select, .campo textarea { min-height: 56px; font-size: 17px; }
.tab { min-height: 72px; font-size: 13.5px; }
.tab .ico { width: 27px; height: 27px; }
:root { --barra-inf: 72px; }
.volver.btn-fantasma { min-height: 52px; font-size: 16px; }
.hoja-cab .btn { min-height: 48px; }

/* Migas de pan */
.migas { margin: -4px 0 12px; }
.migas ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }
.migas li { display: flex; align-items: center; font-size: 15px; color: var(--texto-2); text-shadow: 0 1px 2px #000; }
.migas li + li::before { content: "›"; margin: 0 6px; color: #FF7A45; font-weight: 800; font-size: 18px; }
.migas a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 4px; color: #FFB08F; font-weight: 700; text-decoration: none; border-radius: 8px; }
.migas a .ico { width: 18px; height: 18px; }
.migas a:active { background: rgba(255,90,31,.15); }
.migas [aria-current] { color: var(--blanco); font-weight: 700; padding: 0 4px; }

/* Qué hacer en este paso */
.paso-actual { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(255,90,31,.12); border: 1px solid rgba(255,122,69,.45); font-size: 16px; }
.paso-actual .ico { color: #FF7A45; margin-top: 1px; }
.paso-actual b { color: #FFB08F; }

/* ═══ Intro: neón naranja que se enciende y queda por debajo (18/10) ═══ */
#intro path { stroke: #FF5A1F; }
#intro.dibujando .intro-logo svg {
  filter: drop-shadow(0 0 2px #FF7A45) drop-shadow(0 0 8px rgba(255,90,31,.9)) drop-shadow(0 0 22px rgba(255,90,31,.55));
}
/* Halo bajo el logo: se enciende con parpadeo de neón y se queda encendido */
.intro-logo::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 58%; width: 120%; height: 70%;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(255,90,31,.55) 0%, rgba(255,90,31,.22) 45%, rgba(255,90,31,0) 100%);
  filter: blur(6px);
}
#intro.relleno .intro-logo::before { animation: neon-encendido 1.1s steps(1, end) forwards, neon-respira 3.2s ease-in-out 1.1s infinite; }
#intro.relleno path { stroke: #FF7A45; }
#intro.relleno .intro-logo svg {
  filter: drop-shadow(0 0 1px rgba(255,255,255,.9)) drop-shadow(0 6px 10px rgba(255,90,31,.85)) drop-shadow(0 14px 28px rgba(255,90,31,.6));
  animation: neon-parpadeo .9s linear;
}
@keyframes neon-encendido { 0% { opacity: 0; } 12% { opacity: .9; } 20% { opacity: .15; } 32% { opacity: 1; } 40% { opacity: .35; } 55%, 100% { opacity: 1; } }
@keyframes neon-respira { 0%, 100% { opacity: 1; } 50% { opacity: .78; } }
@keyframes neon-parpadeo { 0% { opacity: .55; } 10% { opacity: 1; } 18% { opacity: .6; } 30% { opacity: 1; } 38% { opacity: .8; } 50%, 100% { opacity: 1; } }

/* El símbolo de la bienvenida conserva la luz encendida por debajo */
.bv-marca { position: relative; }
.bv-simbolo {
  filter: drop-shadow(0 0 1px rgba(255,255,255,.8)) drop-shadow(0 6px 8px rgba(255,90,31,.85)) drop-shadow(0 12px 24px rgba(255,90,31,.55));
}
.bv-marca::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 70px; width: 220px; height: 120px; transform: translateX(-50%);
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,90,31,.45) 0%, rgba(255,90,31,.15) 50%, rgba(255,90,31,0) 100%); filter: blur(6px);
}
@media (prefers-reduced-motion: reduce) { #intro.relleno .intro-logo::before { animation: none; opacity: 1; } }

/* ═══ Botones en rojo fuego más intenso (18/10) ═══
   Degradado profundo y texto blanco: en el centro del botón (#D92D0A) el contraste es ≈ 4,9:1. */
.btn-primario, .btn-secundario, .btn-fantasma:not(.volver), .btn-peligro, .btn-wa, .intro-saltar,
.filtro.activo, .btn-respuesta.si.elegida, .btn-respuesta.no.elegida {
  background: linear-gradient(180deg, #F2461A 0%, #D92D0A 52%, #A81C06 100%);
  color: #FFFFFF; border-color: #FF6A3D; text-shadow: 0 1px 1px rgba(60, 8, 0, .55);
  box-shadow: inset 0 1px 0 rgba(255,200,170,.6), inset 0 -2px 0 rgba(0,0,0,.25), 0 4px 0 #6E1103, 0 10px 24px rgba(230, 50, 10, .4), 0 6px 14px rgba(0,0,0,.55);
}
.btn-primario::before, .btn-secundario::before, .btn-fantasma:not(.volver)::before, .btn-peligro::before, .btn-wa::before, .intro-saltar::before {
  background: linear-gradient(180deg, rgba(255,255,255,.38) 0%, rgba(255,255,255,.04) 100%);
}
.btn-primario:active:not(:disabled), .btn-secundario:active:not(:disabled), .btn-fantasma:not(.volver):active:not(:disabled),
.btn-peligro:active:not(:disabled), .btn-wa:active:not(:disabled), .intro-saltar:active {
  transform: translateY(3px);
  box-shadow: inset 0 1px 0 rgba(255,200,170,.45), inset 0 -1px 0 rgba(0,0,0,.25), 0 1px 0 #6E1103, 0 4px 10px rgba(230,50,10,.3), 0 3px 8px rgba(0,0,0,.5);
}
.btn-primario .ico, .btn-secundario .ico, .btn-wa .ico, .btn-mini .ico { color: #FFFFFF; }
.btn-mini { color: #FFFFFF; }
.filtro.activo b { color: #FFD9C9; }
.btn-respuesta.no.elegida { box-shadow: inset 0 0 0 3px rgba(8,9,11,.6), inset 0 1px 0 rgba(255,200,170,.6), 0 4px 0 #6E1103, 0 12px 24px rgba(230,50,10,.4); }
.seg.activo span, .seg input:checked + span { background: linear-gradient(180deg, #F2461A 0%, #D92D0A 55%, #A81C06 100%); color: #FFFFFF; text-shadow: 0 1px 1px rgba(60,8,0,.5); }
/* Sin elegir: rojo fuego translúcido */
.filtro, .hueco, .btn-respuesta {
  background: linear-gradient(180deg, rgba(242,70,26,.38) 0%, rgba(217,45,10,.18) 100%), rgba(32, 10, 6, .78);
  border-color: rgba(255,106,61,.7);
  box-shadow: inset 0 1px 0 rgba(255,170,140,.35), 0 3px 0 rgba(110,17,3,.9), 0 8px 18px rgba(0,0,0,.45);
}
.tab.activa .ico { color: #FF4A1A; filter: drop-shadow(0 0 6px rgba(230,50,10,.7)); }
.tab.activa::before { background: #E8350E; }

/* ═══ Listados de botones (menú Más, pendientes, accesos) en rojo fuego (18/10) ═══ */
.menu .fila, .pendientes .fila, a.fila-tarjeta, .pendientes-enlace, .siguiente-paso {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, #F2461A 0%, #D92D0A 52%, #A81C06 100%);
  border: 1px solid #FF6A3D; color: #FFFFFF; text-shadow: 0 1px 1px rgba(60, 8, 0, .55);
  box-shadow: inset 0 1px 0 rgba(255,200,170,.6), inset 0 -2px 0 rgba(0,0,0,.25), 0 4px 0 #6E1103, 0 10px 22px rgba(230,50,10,.32), 0 6px 14px rgba(0,0,0,.5);
  transition: transform .09s ease, box-shadow .12s ease;
  min-height: 76px;
}
.menu .fila::before, .pendientes .fila::before, a.fila-tarjeta::before, .pendientes-enlace::before, .siguiente-paso::before {
  content: ""; position: absolute; inset: 1px 1px 50% 1px; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,.03) 100%);
}
.menu .fila:active, .pendientes .fila:active, a.fila-tarjeta:active, .pendientes-enlace:active, .siguiente-paso:active {
  transform: translateY(3px);
  box-shadow: inset 0 1px 0 rgba(255,200,170,.45), 0 1px 0 #6E1103, 0 4px 10px rgba(230,50,10,.25), 0 3px 8px rgba(0,0,0,.5);
}
.menu .fila .fila-txt span, .pendientes .fila .fila-txt span { font-size: 18px; }
.menu .fila small, .pendientes .fila small, a.fila-tarjeta small, .pendientes-enlace small, .siguiente-paso small { color: #FFFFFF; opacity: .92; }
.menu .fila .ico, .pendientes .fila .ico, a.fila-tarjeta .ico, .pendientes-enlace .ico, .siguiente-paso .ico,
.menu .fila .fila-ico > .ico, .pendientes .fila .fila-ico > .ico { color: #FFFFFF; }
.menu .fila .fila-ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(0,0,0,.18); box-shadow: inset 0 1px 2px rgba(0,0,0,.35); }
.menu .fila .fila-valor, .pendientes .fila .fila-valor { color: #FFFFFF; background: rgba(0,0,0,.28); border-radius: 999px; padding: 2px 10px; min-width: 32px; text-align: center; }
a.fila-tarjeta b.acento, a.fila-tarjeta .acento { color: #FFFFFF; }
.fila.urgente { border-color: #FFD0BC; }
.menu, .pendientes { gap: 12px; }

/* ═══ Menú «Más»: botones cuadrados, dos por fila (18/10) ═══ */
.menu { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.menu .fila {
  aspect-ratio: 1 / 1; min-height: 0; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 10px; text-align: center; border-radius: 20px;
}
.menu .fila .fila-ico { width: 64px; height: 64px; border-radius: 18px; }
.menu .fila .fila-ico > .ico { width: 34px; height: 34px; }
.menu .fila .fila-txt { flex: none; align-items: center; gap: 2px; }
.menu .fila .fila-txt span { font-size: 18px; line-height: 1.15; }
.menu .fila .fila-txt small { font-size: 13.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.menu .fila .fila-flecha { display: none; }
.menu .fila .fila-valor { position: absolute; top: 10px; right: 10px; font-size: 15px; background: #FFFFFF; color: #A81C06; text-shadow: none; box-shadow: 0 2px 0 rgba(0,0,0,.35); }
/* Si queda uno suelto al final, ocupa el ancho completo */
.menu .fila:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: auto; min-height: 120px; flex-direction: row; gap: 14px; }
.menu .fila:last-child:nth-child(odd) .fila-txt { align-items: flex-start; text-align: left; }
@media (max-width: 359px) {
  .menu .fila .fila-ico { width: 52px; height: 52px; } .menu .fila .fila-ico > .ico { width: 28px; height: 28px; }
  .menu .fila .fila-txt span { font-size: 16px; } .menu .fila .fila-txt small { font-size: 12.5px; }
}

/* Explorador de la liga */
.ranking-simple { display: flex; flex-direction: column; }
.ranking-simple li { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; min-height: 48px; border-top: 1px solid var(--borde); }
.ranking-simple li:first-child { border-top: 0; }
.ranking-simple b { font-variant-numeric: tabular-nums; }
.partidos-grupo li > span:first-child, .partidos-grupo li > span:nth-child(2) { flex: 1; min-width: 0; }
.partidos-grupo li.mio { background: rgba(217,45,10,.18); border-radius: 10px; padding-left: 8px; padding-right: 8px; }
.partidos-grupo b { font: 900 18px var(--fuente-tit); font-variant-numeric: tabular-nums; }
.menu .fila-activa { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.menu .fila .fila-ico .escudo { width: 52px; height: 52px; font-size: 13px; }

/* Símbolo CR arriba a la derecha y firma al pie (todas las pantallas) */
.cr-esquina { flex: none; width: 40px; height: 40px; object-fit: contain; margin-left: 4px;
  filter: drop-shadow(0 0 1px rgba(255,255,255,.7)) drop-shadow(0 3px 6px rgba(230,50,10,.75)); }
.estado-guardado { margin-left: auto; }
.cr-flotante { position: absolute; top: calc(var(--sa-top) + 12px); right: 16px; width: 40px; height: 40px; z-index: 5;
  filter: drop-shadow(0 0 1px rgba(255,255,255,.7)) drop-shadow(0 3px 6px rgba(230,50,10,.75)); }
#vista { position: relative; }
.firma { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 28px 0 4px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #C9CDD4; text-align: center; text-shadow: 0 1px 2px #000; }
.firma span:first-child { font-weight: 700; color: #FFFFFF; letter-spacing: .02em; }
.publica + .firma, .publica .firma { margin-top: 20px; }

/* ═══ Intro como puerta de entrada (18/10) ═══ */
#intro { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  padding: calc(var(--sa-top) + 24px) 20px calc(var(--sa-bot) + 24px); overflow-y: auto; }
.intro-logo { width: min(72vw, 340px, 46dvh); flex: none; }
.intro-pie { position: relative; z-index: 2; width: min(100%, 400px); display: flex; flex-direction: column; align-items: center; gap: 16px;
  opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .5s ease, transform .5s ease; }
#intro.listo .intro-pie { opacity: 1; transform: none; pointer-events: auto; }
#intro.saliendo .intro-pie { opacity: 0; transition-duration: .25s; }
.intro-entrar { min-height: 64px; font-size: 20px; }
.intro-credito { text-align: center; font-size: 13.5px; line-height: 1.45; color: #D5D8DE; text-shadow: 0 1px 2px #000; }
.intro-credito b { color: #FFFFFF; letter-spacing: .04em; }
.intro-credito a { color: #FF8A5C; font-weight: 700; display: inline-block; min-height: 32px; line-height: 32px; }
.intro-saltar { display: none; }
#intro.listo { cursor: default; }

/* ═══ Foto de pádel con transparencia en el arranque (puerta, bienvenida e Inicio) ═══ */
body.con-foto::after, #intro::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6,7,8,.15) 0%, rgba(6,7,8,.45) 45%, rgba(6,7,8,.92) 80%, #060708 100%),
    url("../img/foto-padel.jpg") center top / cover no-repeat;
  opacity: .55; mix-blend-mode: screen;
}
body.con-foto::after { z-index: -1; }
#intro::before { z-index: 0; opacity: .5; }
@media (min-width: 560px) { body.con-foto::after { background-size: auto, 480px auto; background-position: center, center top; } }
body.con-foto::after, #intro::before { mix-blend-mode: normal; opacity: .62;
  background:
    linear-gradient(180deg, rgba(6,7,8,.05) 0%, rgba(6,7,8,.35) 40%, rgba(6,7,8,.9) 78%, #060708 100%),
    url("../img/foto-padel.jpg") center top / cover no-repeat; }
#intro::before { opacity: .58; }

/* Foto entera y más pequeña: banda superior al ancho de la app, fundida hacia abajo (18/10) */
body.con-foto::after, #intro::before {
  opacity: .7;
  background:
    linear-gradient(180deg, rgba(6,7,8,0) 0%, rgba(6,7,8,0) calc(min(100vw, 480px) * .38), #060708 calc(min(100vw, 480px) * .67)),
    url("../img/foto-padel.jpg") center top / min(100vw, 480px) auto no-repeat;
}

/* Foto de pádel bajo el botón «Entrar» (sustituye al fondo de foto) */
body.con-foto::after, #intro::before { content: none; }
.foto-padel {
  display: block; width: 100%; height: auto; aspect-ratio: 1200 / 801; object-fit: cover; border-radius: 18px;
  -webkit-mask-image: radial-gradient(120% 110% at 50% 45%, #000 60%, transparent 100%);
          mask-image: radial-gradient(120% 110% at 50% 45%, #000 60%, transparent 100%);
  opacity: .92; box-shadow: 0 10px 30px rgba(0,0,0,.6);
}
.intro-pie .foto-padel { max-width: 400px; }
.intro-logo { width: min(68vw, 320px, 40dvh); }
.bv-acciones + .foto-padel { margin-top: 4px; }

/* Foto: arriba se funde con el fondo; esquinas en ángulo recto */
.foto-padel {
  border-radius: 0; box-shadow: none; opacity: 1;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.35) 18%, #000 48%);
          mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.35) 18%, #000 48%);
}

/* Pantalla de entrada: logotipo arriba del todo */
#intro { justify-content: flex-start; gap: 16px; padding-top: calc(var(--sa-top) + 10px); }
.intro-logo { margin-top: 0; }

/* Acceso con usuario y contraseña en la pantalla de entrada */
.intro-acceso { width: 100%; display: flex; flex-direction: column; gap: 12px; padding: 14px; background: rgba(12, 13, 16, .82); border: 1px solid rgba(255,255,255,.14); }
.intro-acceso[hidden] { display: none; }
.intro-acceso .campo label { color: #FFFFFF; text-shadow: 0 1px 2px #000; }
.intro-acceso .campo-error:not([hidden]) { display: flex; }
.intro-demo { align-self: center; min-height: 44px; font-size: 15px; }

/* Mosaico de Inicio y Liga: botones grandes con su dato clave */
.mosaico .fila { aspect-ratio: auto; min-height: 168px; justify-content: flex-start; padding: 16px 12px 14px; gap: 6px; }
.mosaico .fila .fila-ico { width: 52px; height: 52px; border-radius: 14px; }
.mosaico .fila .fila-ico > .ico { width: 28px; height: 28px; }
.mosaico .fila-txt > span { font-size: 15px !important; font-weight: 700; opacity: .95; }
.mos-valor { font: 900 20px/1.1 var(--fuente-tit); color: #FFFFFF; overflow-wrap: anywhere; }
.mosaico .fila-txt small { font-size: 13px; -webkit-line-clamp: 2; }
.mosaico .mos-largo { grid-column: 1 / -1; min-height: 112px; flex-direction: row; justify-content: flex-start; text-align: left; gap: 14px; }
.mosaico .mos-largo .fila-txt { align-items: flex-start; text-align: left; flex: 1; }
.mosaico .mos-largo .mos-valor { font-size: 22px; }
@media (max-width: 359px) { .mos-valor { font-size: 17px; } .mosaico .fila { min-height: 156px; } }
.mosaico { grid-auto-flow: row dense; }
.mosaico .fila:last-child:nth-child(odd):not(.mos-largo) { grid-column: auto; }
.mosaico .fila:last-child:nth-child(odd):not(.mos-largo) { flex-direction: column; min-height: 168px; gap: 6px; }
.mosaico .fila:last-child:nth-child(odd):not(.mos-largo) .fila-txt { align-items: center; text-align: center; }

/* Jornada por interés: pasos en botones grandes */
.mos-ahora { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 999px; background: #FFFFFF; color: #A81C06;
  font: 800 12.5px/1.2 var(--fuente); letter-spacing: .04em; text-transform: uppercase; text-shadow: none; box-shadow: 0 2px 0 rgba(0,0,0,.35); }
.mos-ahora.en-titulo { position: static; display: inline-block; vertical-align: middle; margin-left: 6px; }
.mosaico .mos-visto { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.mosaico .mos-actual:not(.mos-visto) { outline: 2px dashed rgba(255,255,255,.75); outline-offset: 2px; }
.fase-titulo { scroll-margin-top: 150px; font-size: 22px; margin-top: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.jornada .fases { display: none; }

/* Pantalla de entrada: logo y todo un poco más abajo */
#intro { padding-top: calc(var(--sa-top) + max(44px, 8dvh)); }

/* Equipo: ranking de parejas */
.sub#plantilla { scroll-margin-top: 150px; }
.ranking-parejas { display: flex; flex-direction: column; gap: 8px; }
.ranking-parejas li { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; }
.rp-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; } .rp-txt small { color: var(--texto-2); font-size: 14px; }
.rp-cifra { display: flex; flex-direction: column; align-items: flex-end; } .rp-cifra b { font: 900 22px var(--fuente-tit); } .rp-cifra small { color: var(--texto-2); }

/* Pantallas sin barra superior: que el símbolo CR de la esquina no pise los títulos */
body.sin-carcasa #vista > .pantalla > :first-child, body.sin-carcasa .cab-detalle { padding-right: 52px; }

/* ═══ Botón «Cómo vamos»: azul cian con texto blanco (petición de Óscar, 24/10) ═══
   Texto blanco grueso y grande sobre cian profundo: en el centro (#0891B2) ≈ 3,7:1, válido para texto grande. */
.btn-cian {
  background: linear-gradient(180deg, #22C5E6 0%, #0891B2 52%, #0E6F8C 100%);
  color: #FFFFFF; border: 1px solid #5EE3F7; text-shadow: 0 1px 2px rgba(0, 40, 60, .7);
  box-shadow: inset 0 1px 0 rgba(200,245,255,.6), inset 0 -2px 0 rgba(0,0,0,.25), 0 4px 0 #0A4A5E, 0 10px 24px rgba(34,211,238,.32), 0 6px 14px rgba(0,0,0,.55);
  font-weight: 800; letter-spacing: .01em;
}
.btn-cian::before { background: linear-gradient(180deg, rgba(255,255,255,.4) 0%, rgba(255,255,255,.04) 100%); }
.btn-cian .ico { color: #FFFFFF; stroke-width: 2.4; }
.btn-cian:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(200,245,255,.45), inset 0 -1px 0 rgba(0,0,0,.25), 0 1px 0 #0A4A5E, 0 4px 10px rgba(34,211,238,.25), 0 3px 8px rgba(0,0,0,.5); }
.btn-cian:focus-visible { outline-color: #A5F3FC; }
.intro-como-vamos { min-height: 64px; font-size: 20px; }

/* ═══ Panel «Cómo vamos» ═══ */
.como-vamos { --cian: #22D3EE; display: flex; flex-direction: column; gap: 18px; }
.cv-cab { display: flex; align-items: center; gap: 12px; padding-right: 52px; }
.cv-simbolo { width: 52px; height: 52px; flex: none; filter: drop-shadow(0 2px 8px rgba(34,211,238,.45)); }
.cv-cab h1 { font: 900 30px/1.05 var(--fuente-tit); }
.cv-cab small { display: block; color: var(--texto-2); font-size: 14.5px; margin-top: 3px; }
body.sin-carcasa #vista > .como-vamos > .cv-cab { padding-right: 52px; }

/* Píldoras de secciones, como las de Google: se desplazan en horizontal y se quedan arriba */
.cv-nav { position: sticky; top: 0; z-index: 6; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 -16px; padding: 10px 16px; background: rgba(6,7,8,.88); border-bottom: 1px solid rgba(255,255,255,.08); }
@supports (backdrop-filter: blur(1px)) { .cv-nav { background: rgba(6,7,8,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); } }
.cv-nav::-webkit-scrollbar { display: none; }
.cv-chip { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06);
  color: #FFFFFF; font-weight: 700; font-size: 15px; cursor: pointer; }
.cv-chip:active { background: rgba(34,211,238,.25); border-color: var(--cian); }
.cv-actualizado { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--texto-2); font-size: 13.5px; margin-top: -6px; }
.cv-en-directo { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: #D92D0A; color: #FFFFFF; font-weight: 800; font-size: 13px; }
.cv-vivo { width: 8px; height: 8px; border-radius: 50%; background: #FFFFFF; animation: cv-latido 1.2s ease-in-out infinite; }
@keyframes cv-latido { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .cv-vivo { animation: none; } }
.cv-seccion { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 72px; }
.cv-h2 { font: 800 21px/1.2 var(--fuente-tit); }
.cv-nota-pie { font-size: 13px; }

/* Resumen: un mosaico por equipo con su posición */
.cv-resumen { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cv-resumen a { display: flex; flex-direction: column; gap: 8px; min-height: 132px; padding: 12px; text-decoration: none; border-radius: var(--radio);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 22%, transparent) 0%, rgba(21,23,27,.92) 60%); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); }
.cv-res-cab { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cv-res-cab > span:not(.escudo) { display: flex; flex-direction: column; min-width: 0; }
.cv-res-cab small { color: var(--texto-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-res-pos { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.cv-res-pos b { font: 900 34px/1 var(--fuente-tit); color: #FFFFFF; font-variant-numeric: tabular-nums; }
.cv-res-pos small { color: var(--texto-2); font-size: 13px; }
.cv-resumen .forma { margin-top: auto; }

/* Partidos: marcador compacto como el de Google */
.cv-partidos { display: flex; flex-direction: column; gap: 10px; }
.cv-partido { gap: 8px; padding: 12px 14px; color: inherit; }
.cv-cat { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.cv-punto { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.cv-partido-cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.cv-eqs { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding-right: 12px; border-right: 1px solid rgba(255,255,255,.12); }
.cv-eq { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cv-eq-nom { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; }
.cv-eq.nuestro .cv-eq-nom { font-weight: 800; color: #FFFFFF; }
.cv-eq.pierde .cv-eq-nom, .cv-eq.pierde .cv-goles { color: #8E949E; }
.cv-goles { font: 900 20px var(--fuente-tit); font-variant-numeric: tabular-nums; min-width: 16px; text-align: right; }
.cv-gana { font-size: 11px; color: #FFFFFF; margin-left: -4px; }
.cv-eq:not(:has(.cv-gana)) .cv-goles { margin-right: 11px; }
.cv-estado { display: flex; flex-direction: column; align-items: center; text-align: center; width: 104px; gap: 2px; }
.cv-estado b { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.cv-estado small { color: var(--texto-2); font-size: 13px; }
.cv-estado.vivo b { color: #4ADE80; }
.cv-estado.vivo .cv-vivo { background: #4ADE80; }

/* Clasificación: tabla corta con la posición del equipo destacada */
.cv-clasif { gap: 10px; padding: 14px 12px; }
.cv-clasif-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cv-clasif-cab > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.cv-clasif-cab small { font-size: 13px; }
.cv-directo { color: #4ADE80; font-weight: 700; }
.cv-mi-pos { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 62px; padding: 6px 8px; border-radius: 12px;
  background: color-mix(in srgb, var(--c) 18%, transparent); border: 2px solid var(--c); }
.cv-mi-pos b { font: 900 24px/1 var(--fuente-tit); } .cv-mi-pos small { font-size: 12px; color: #D5D8DE; }
.cv-tabla { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; table-layout: fixed; }
.cv-tabla th, .cv-tabla td { padding: 7px 2px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.08); width: 30px; }
.cv-tabla thead th { color: var(--texto-2); font-size: 12.5px; font-weight: 700; }
.cv-tabla th[scope="row"], .cv-tabla thead th:nth-child(2) { width: auto; text-align: left; font-weight: 400; }
.cv-tabla .cv-pos { width: 22px; color: var(--texto-2); }
.cv-tabla .cv-pts { width: 34px; font-weight: 900; color: #FFFFFF; }
.cv-club { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cv-club > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-club .escudo { width: 26px; height: 26px; font-size: 8px; border-width: 1.5px; }
.cv-tabla tr.nuestro td, .cv-tabla tr.nuestro th { background: rgba(34,211,238,.13); font-weight: 800; color: #FFFFFF; }
.cv-tabla tr.nuestro .cv-pos { color: var(--cian); }
.cv-salto td { color: var(--texto-2); padding: 0; line-height: 1.2; letter-spacing: .3em; }
.cv-forma { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.cv-mas { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; min-height: 44px; color: var(--cian); font-weight: 700; text-decoration: none; }
.cv-mas .ico { width: 18px; height: 18px; }

/* Líderes: pestañas y ranking con avatar */
.cv-pestanas { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid rgba(255,255,255,.14); }
.cv-pestanas::-webkit-scrollbar { display: none; }
.cv-pestana { flex: none; min-height: 46px; padding: 0 12px; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--texto-2); font-weight: 700; font-size: 15px; cursor: pointer; }
.cv-pestana.activa { color: #FFFFFF; border-bottom-color: var(--cian); }
.cv-lideres { gap: 0; padding: 4px 14px; }
.cv-lideres li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.cv-lideres li:last-child { border-bottom: 0; }
.cv-rk { width: 18px; text-align: center; font-weight: 800; color: var(--texto-2); }
.cv-lid-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cv-lid-txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-lid-txt small { display: flex; align-items: center; gap: 6px; color: var(--texto-2); font-size: 13px; }
.cv-lid-val { font: 900 22px var(--fuente-tit); font-variant-numeric: tabular-nums; }
.cv-lideres .cv-nota { font-size: 12.5px; padding: 8px 0 6px; }
.escudo-xs { width: 18px; height: 18px; font-size: 0; border-width: 1.5px; }

/* Avatar con iniciales y el color del equipo (la Federación no publica fotos) */
.cv-avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; color: #FFFFFF; font: 800 15px var(--fuente-tit); letter-spacing: .02em;
  background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--c) 70%, #fff) 0%, color-mix(in srgb, var(--c) 55%, #000) 70%);
  border: 2px solid color-mix(in srgb, var(--c) 80%, #fff); text-shadow: 0 1px 2px rgba(0,0,0,.6); box-shadow: 0 3px 10px rgba(0,0,0,.45); }
.cv-avatar-l { width: 48px; height: 48px; }
.cv-avatar-xl { width: 64px; height: 64px; font-size: 20px; }

/* Jugadores: carrusel horizontal por equipo */
.cv-plantilla { display: flex; flex-direction: column; gap: 8px; }
.cv-plantilla-cab { display: flex; align-items: center; gap: 10px; min-height: 52px; text-decoration: none; }
.cv-plantilla-cab > span:not(.escudo) { flex: 1; display: flex; flex-direction: column; } .cv-plantilla-cab small { color: var(--texto-2); font-size: 13px; }
.cv-carrusel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -16px; padding: 4px 16px 10px; scrollbar-width: none; }
.cv-carrusel::-webkit-scrollbar { display: none; }
.cv-carrusel li { flex: none; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; scroll-snap-align: start; }
.cv-jug-nom { font-size: 13px; line-height: 1.25; font-weight: 700; }
.cv-carrusel small { color: var(--texto-2); font-size: 12px; }

.cv-compartir { margin-top: 6px; }
/* WhatsApp en su verde (la capa «todo en rojo fuego» lo había teñido) */
.cv-compartir .btn-wa { background: linear-gradient(180deg, #4FE08A 0%, #25D366 50%, #1DB954 100%); color: #06240F; border-color: #6BEA9E; text-shadow: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(0,0,0,.15), 0 4px 0 #128C3E, 0 10px 22px rgba(37,211,102,.22), 0 6px 14px rgba(0,0,0,.55); }
.cv-compartir .btn-wa .ico { color: #06240F; }
.cv-cab { padding-right: 56px; }

/* ═══ Ventana de cookies (24/10) ═══ por encima de la puerta de entrada; aceptar y rechazar pesan igual */
.cookies { position: fixed; z-index: 200; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, var(--ancho));
  max-height: 85dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px;
  padding: 18px 16px calc(var(--sa-bot) + 16px); background: rgba(14, 15, 18, .97); border-top: 2px solid #22D3EE;
  box-shadow: 0 -12px 40px rgba(0,0,0,.7); }
@supports (backdrop-filter: blur(1px)) { .cookies { background: rgba(14,15,18,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } }
.cookies h2 { font: 800 19px/1.2 var(--fuente-tit); }
.cookies p { font-size: 15px; color: #D5D8DE; }
.cookies-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookies-botones .btn { padding: 0 8px; font-size: 16px; }
.cookies-detalle summary { min-height: 44px; display: flex; align-items: center; color: #22D3EE; font-weight: 700; cursor: pointer; }
.cookies-detalle[open] { display: flex; flex-direction: column; gap: 10px; }
.cookies-tipo label { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
.cookies-tipo input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: #22D3EE; }
.cookies-tipo span { display: flex; flex-direction: column; gap: 4px; } .cookies-tipo small { color: var(--texto-2); font-size: 13.5px; line-height: 1.4; }
.cookies-resp { font-size: 13px !important; color: var(--texto-2) !important; } .cookies-resp a { color: #22D3EE; }
.firma-cookies { margin-top: 6px; min-height: 40px; padding: 0 10px; background: none; border: 0; color: #C9CDD4; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ═══ Registro en la puerta de entrada (24/10) ═══ */
.intro-registro, .intro-acceso { width: 100%; display: flex; flex-direction: column; gap: 12px; padding: 14px; background: rgba(12, 13, 16, .82); border: 1px solid rgba(255,255,255,.14); }
.intro-registro[hidden], .intro-acceso[hidden] { display: none; }
.intro-reg-tit { font: 800 17px/1.3 var(--fuente-tit); color: #FFFFFF; }
.intro-registro .campo label { color: #FFFFFF; text-shadow: 0 1px 2px #000; }
.opcional { font-weight: 400; color: var(--texto-2); }
.reg-privacidad { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.4; }
.reg-privacidad input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: #22D3EE; }
.reg-privacidad input[aria-invalid="true"] { outline: 3px solid var(--mal); outline-offset: 2px; }
.reg-privacidad a { color: #22D3EE; }
.reg-privacidad-texto { font-size: 13px; line-height: 1.5; color: #D5D8DE; padding: 10px; border-left: 3px solid #22D3EE; background: rgba(34,211,238,.07); }
.reg-trampa { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#intro-error:not([hidden]) { display: flex; width: 100%; }
.intro-cambiar { align-self: center; min-height: 44px; font-size: 15px; }
.intro-cambiar[hidden] { display: none; }

/* Carrusel de jugadores: puesto en la plantilla y puntos en pastilla del color del equipo (24/10) */
.cv-puesto { font: 900 26px/1 var(--fuente-tit); letter-spacing: -.02em; }
.cv-puesto { font-size: 30px; }
.cv-puesto sup { font-size: 15px; font-weight: 800; vertical-align: top; position: relative; top: -2px; margin-left: 1px; }
.cv-pts-pastilla { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--c); color: #08090B;
  font: 800 14px/1.2 var(--fuente); font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 2px 6px rgba(0,0,0,.45); }
.cv-carrusel li { width: 92px; }

/* «Volver» que añade la carcasa a las pantallas que no traen el suyo (24/10) */
.volver-global { align-self: flex-start; margin: 0 0 4px -10px; }
body.sin-carcasa .volver-global { margin-top: 4px; }

/* Logotipo nuevo en bienvenida, invitación y sesión caducada (24/10) */
.logotipo-img { display: block; width: min(62vw, 260px); height: auto; margin: 0 auto; filter: drop-shadow(0 0 10px rgba(230,50,10,.55)); }

/* Partidos ya jugados: texto atenuado en gris claro (24/10) */
.cv-partido.pasado .cv-eq-nom, .cv-partido.pasado .cv-eq.nuestro .cv-eq-nom, .cv-partido.pasado .cv-goles, .cv-partido.pasado .cv-gana,
.cv-partido.pasado .cv-estado b, .cv-partido.pasado .cv-cat { color: #A9AFB9; }
.cv-partido.pasado .cv-eq.pierde .cv-eq-nom, .cv-partido.pasado .cv-eq.pierde .cv-goles { color: #868C96; }
.partidos-grupo li.pasado, .partidos-grupo li.pasado span, .partidos-grupo li.pasado b:not(.ok):not(.mal) { color: #A9AFB9; }
.partidos-grupo li.pasado small { color: #8E949E; }

/* Carrusel de plantillas: tres a la vista y flechas intermitentes a los lados (24/10) */
.cv-marco { position: relative; }
.cv-carrusel { margin: 0; padding: 4px 34px 10px; gap: 10px; scroll-snap-type: x mandatory; scroll-padding: 0 34px; }
.cv-carrusel li { flex: 0 0 calc((100% - 20px) / 3); width: auto; }
.cv-flecha { position: absolute; top: 34px; z-index: 2; width: 34px; height: 46px; display: grid; place-items: center; padding: 0;
  border: 1px solid rgba(255,255,255,.35); border-radius: 10px; background: rgba(8,9,11,.82); color: #FFFFFF; cursor: pointer;
  animation: cv-parpadeo 1.3s ease-in-out infinite; }
.cv-flecha .ico { width: 22px; height: 22px; stroke-width: 2.8; }
.cv-izq { left: 0; } .cv-der { right: 0; }
.cv-marco.al-inicio .cv-izq, .cv-marco.al-final .cv-der { opacity: 0; pointer-events: none; animation: none; }
@keyframes cv-parpadeo { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .cv-flecha { animation: none; } }
.cv-carrusel { -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 26px, #000 34px, #000 calc(100% - 34px), transparent calc(100% - 26px));
                       mask-image: linear-gradient(90deg, transparent 0, transparent 26px, #000 34px, #000 calc(100% - 34px), transparent calc(100% - 26px)); }

/* Puerta: registro y acceso plegados como una persiana hasta pulsar (24/10) */
.intro-registro.persiana, .intro-acceso.persiana { display: grid; grid-template-rows: 0fr; padding: 0; border-width: 0; opacity: 0;
  transition: grid-template-rows .42s cubic-bezier(.2,.7,.2,1), opacity .3s ease, padding .42s ease, border-width .42s; }
.persiana.abierta { grid-template-rows: 1fr; opacity: 1; padding: 14px; border-width: 1px; }
.persiana[hidden] { display: none; }
.persiana-dentro { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 12px; }
.persiana.abierta .persiana-dentro { overflow: visible; }
@media (prefers-reduced-motion: reduce) { .intro-registro.persiana, .intro-acceso.persiana { transition: none; } }

/* Temporada bajo la pelota del logotipo, espaciada como «CANTABRIA» (24/10) */
.temporada { margin: 10px 0 0; text-align: center; font: 800 clamp(15px, 4.6vw, 19px)/1 var(--fuente-tit); letter-spacing: .42em; padding-left: .42em;
  color: #FFFFFF; text-shadow: 0 0 6px rgba(255,90,31,.9), 0 0 16px rgba(230,50,10,.6); }
#intro .temporada { opacity: 0; transition: opacity .6s ease; }
#intro.relleno .temporada { opacity: 1; }
.logotipo-bloque { display: flex; flex-direction: column; align-items: center; }
/* Botón de envío al pie del formulario desplegado */
.reg-enviar { margin-top: 4px; }

/* Ventana flotante «Los resultados, en tu correo» sobre la puerta (24/10) */
.aviso-resultados { position: fixed; z-index: 150; left: 50%; bottom: calc(var(--sa-bot) + 16px); width: min(calc(100% - 32px), 420px);
  transform: translate(-50%, 24px); opacity: 0; transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .3s ease;
  display: flex; flex-direction: column; gap: 10px; padding: 18px 16px 16px; text-align: center;
  background: rgba(12,13,16,.96); border: 1px solid rgba(34,211,238,.6); border-top: 3px solid #22D3EE; box-shadow: 0 18px 50px rgba(0,0,0,.75), 0 0 30px rgba(34,211,238,.18); }
.aviso-resultados.dentro { transform: translate(-50%, 0); opacity: 1; }
.aviso-resultados.fuera { transform: translate(-50%, 24px); opacity: 0; }
.aviso-resultados h2 { font: 800 20px/1.2 var(--fuente-tit); }
.aviso-resultados p { color: #D5D8DE; font-size: 15.5px; line-height: 1.45; }
.ar-icono { font-size: 30px; line-height: 1; }
.ar-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.ar-botones .btn { padding: 0 8px; }
@media (prefers-reduced-motion: reduce) { .aviso-resultados { transition: none; } }
/* Garantía de uso del correo junto a la casilla y en la ventana flotante (24/10) */
.reg-garantia, .ar-garantia { font-size: 13px !important; line-height: 1.45; color: #A5F3FC !important; padding: 8px 10px; border-left: 3px solid #22D3EE; background: rgba(34,211,238,.08); text-align: left; }
.reg-garantia { margin: -4px 0 2px 34px; }

/* «Tu equipo» en Cómo vamos (24/10) */
.cv-tuyo { display: flex; flex-direction: column; gap: 12px; padding: 14px; text-decoration: none; color: inherit;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 30%, transparent) 0%, rgba(21,23,27,.94) 65%); border: 2px solid var(--c); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 30%, transparent); }
.cv-tuyo-cab { display: flex; align-items: center; gap: 12px; }
.cv-tuyo-cab > span:not(.escudo):not(.cv-tuyo-pos) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cv-tuyo-cab small { color: var(--texto-2); font-size: 13px; } .cv-tuyo-cab b { font: 900 22px/1.15 var(--fuente-tit); }
.cv-tuyo-cab > span:nth-child(2) > small:first-child { color: var(--c); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
.cv-tuyo-pos { display: flex; flex-direction: column; align-items: flex-end; } .cv-tuyo-pos b { font: 900 34px/1 var(--fuente-tit); }
.cv-tuyo-partido { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.14); }
.cv-tuyo-partido small { color: var(--texto-2); font-size: 13px; }
.cv-tuyo-partido > span { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cv-tuyo-partido em { font-style: normal; color: #FFFFFF; font-weight: 700; white-space: nowrap; }
.cv-tuyo-partido b.ok, .cv-tuyo-partido b.mal { font: 900 22px var(--fuente-tit); }
.cv-tu-marca { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #22D3EE; color: #08090B; font: 800 11px/1.4 var(--fuente); letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.cv-resumen a.mio { border-width: 2px; box-shadow: 0 0 16px color-mix(in srgb, var(--c) 35%, transparent); }

/* «HABLAR CON ADMINISTRADOR DE APP»: verde WhatsApp con su símbolo, solo para capitanes (24/10).
   Texto blanco grueso sobre verde profundo: ≥ 3:1 en el centro, válido para texto grande. */
.btn-admin { margin-top: 22px; min-height: 60px; font-size: 16px; font-weight: 900; letter-spacing: .02em; color: #FFFFFF; text-decoration: none;
  background: linear-gradient(180deg, #2BD96F 0%, #1A9E4B 52%, #12803B 100%); border: 1px solid #6BEA9E; text-shadow: 0 1px 2px rgba(0,40,15,.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(0,0,0,.2), 0 4px 0 #0B5E2B, 0 10px 22px rgba(37,211,102,.3), 0 6px 14px rgba(0,0,0,.55); }
.btn-admin::before { background: linear-gradient(180deg, rgba(255,255,255,.38) 0%, rgba(255,255,255,.04) 100%); }
.btn-admin .ico { width: 26px; height: 26px; color: #FFFFFF; stroke-width: 2.2; }
.btn-admin:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 1px 0 #0B5E2B, 0 4px 10px rgba(0,0,0,.5); }

/* Puerta: «COMPARTIR APP» encima de la foto; pie: invitación a otros clubes y mail (25/10) */
.btn-compartir-app { margin-top: 4px; }
.firma-club { max-width: 340px; margin: 12px auto 2px; font-size: 13.5px; line-height: 1.45; color: #E6E8EC; }
.firma-mail { display: inline-block; min-height: 40px; line-height: 40px; color: #22D3EE; font-weight: 800; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* «SOY USUARIO»: negro con cristal muy brillante y texto blanco (25/10) */
.btn-cristal { min-height: 60px; font-size: 18px; font-weight: 900; letter-spacing: .06em; color: #FFFFFF; text-decoration: none;
  background: linear-gradient(180deg, #3A3F48 0%, #15171B 46%, #050506 54%, #0E1013 100%);
  border: 1px solid rgba(255,255,255,.55); text-shadow: 0 1px 2px #000;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -2px 0 rgba(255,255,255,.12), 0 0 0 1px rgba(0,0,0,.6), 0 4px 0 #000, 0 10px 24px rgba(0,0,0,.7), 0 0 18px rgba(255,255,255,.12); }
.btn-cristal::before { inset: 1px 1px 50% 1px; background: linear-gradient(180deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.12) 100%); }
.btn-cristal::after { content: ""; position: absolute; top: 0; left: -40%; width: 30%; height: 100%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.35) 50%, transparent 100%); transform: skewX(-20deg); animation: cristal-brillo 4s ease-in-out infinite; }
@keyframes cristal-brillo { 0%, 70% { left: -40%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .btn-cristal::after { animation: none; display: none; } }
.btn-cristal:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 1px 0 #000, 0 4px 10px rgba(0,0,0,.6); }
.intro-cambiar.btn { align-self: stretch; }
/* Plegada, la persiana no deja hueco: anula la separación del contenedor */
.intro-pie > .persiana:not(.abierta) { margin-top: -16px; }
.firma-club { max-width: none; }
