/* Sistema de Ligas - QF Producciones */
:root {
  --acento: #0b6e4f;
  --acento2: #0f1614;
  --fondo: #f3f5f4;
  --tarjeta: #ffffff;
  --texto: #1c2321;
  --suave: #66706c;
  --borde: #dde3e0;
  --amarilla: #f5c518;
  --roja: #d7263d;
  --radio: 12px;
}
@media (prefers-color-scheme: dark) {
  :root { --fondo: #111614; --tarjeta: #1b2220; --texto: #e7ecea; --suave: #9aa5a0; --borde: #2c3633; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: var(--fondo); color: var(--texto); font-size: 15px; line-height: 1.45; }
a { color: var(--acento); }
img { max-width: 100%; }
h1 { font-size: 1.5rem; margin: .2rem 0 1rem; }
h2 { font-size: 1.2rem; margin: 1.4rem 0 .6rem; }
h3 { font-size: 1.05rem; margin: 1rem 0 .5rem; }
small, .suave { color: var(--suave); }
.contenedor { max-width: 1100px; margin: 0 auto; padding: 16px; }
.barra-in { max-width: 1100px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Barra superior del panel */
.barra { background: #0f1614; color: #fff; }
.barra .barra-in { min-height: 56px; }
.marca { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.marca small { color: #9fb; font-weight: 400; }
.menu { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.menu a { color: #dfe; text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.menu a:hover, .menu a.activo { background: rgba(255,255,255,.12); color: #fff; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; }
.subbarra { background: var(--acento); color: #fff; font-size: .9rem; }
.subbarra .barra-in { min-height: 38px; }
.subbarra a { color: #fff; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .menu { display: none; width: 100%; flex-direction: column; padding-bottom: 10px; }
  .menu-abierto .menu { display: flex; }
}

/* Portada pública */
.portada { background: linear-gradient(135deg, var(--acento), var(--acento2, #0f1614) 75%, #0f1614); color: #fff; padding: 18px 0; }
.portada-marca { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.portada-marca strong { display: block; font-size: 1.35rem; }
.portada-marca small { color: rgba(255,255,255,.8); }
.logo-liga { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; background: #fff; flex: none; font-size: 1.4rem; }

/* Tarjetas y rejillas */
.tarjeta { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio); padding: 16px; margin-bottom: 16px; }
.rejilla { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.rejilla-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.cifras { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-bottom: 16px; }
.cifra { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio); padding: 14px; }
.cifra b { display: block; font-size: 1.7rem; color: var(--acento); }
.fila-titulo { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fila-titulo h1, .fila-titulo h2 { margin: .3rem 0; }

/* Botones */
.btn { display: inline-block; background: var(--acento); color: #fff; border: 0; border-radius: 9px; padding: 9px 15px; font-size: .95rem; cursor: pointer; text-decoration: none; font-weight: 600; line-height: 1.2; }
.btn:hover { filter: brightness(1.1); }
.btn-sec { background: transparent; color: var(--acento); border: 1.5px solid var(--acento); }
.btn-peligro { background: var(--roja); }
.btn-chico { padding: 5px 10px; font-size: .85rem; }
.acciones { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }

/* Formularios */
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], input[type=tel], input[type=url], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--borde); border-radius: 8px; font: inherit; background: var(--tarjeta); color: var(--texto);
}
input[type=color] { width: 60px; height: 38px; border: 1px solid var(--borde); border-radius: 8px; padding: 2px; background: var(--tarjeta); }
textarea { min-height: 80px; }
.campos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-bottom: 14px; }
.campo-ancho { grid-column: 1 / -1; }
.ayuda { font-size: .8rem; color: var(--suave); font-weight: 400; margin-top: 3px; }
.check { display: block; position: relative; padding-left: 28px; font-weight: 600; line-height: 1.4; }
.check > input[type=checkbox], .check > input[type=radio] { position: absolute; left: 0; top: 1px; width: 18px; height: 18px; margin: 0; }
fieldset { border: 1px solid var(--borde); border-radius: var(--radio); margin: 0 0 16px; padding: 14px; }
legend { font-weight: 700; padding: 0 6px; }

/* Avisos */
.aviso { padding: 11px 14px; border-radius: 9px; margin-bottom: 14px; }
.aviso-ok { background: #e2f6ec; color: #0b5a3c; border: 1px solid #b6e6cc; }
.aviso-error { background: #fde8ea; color: #8a1323; border: 1px solid #f5c1c8; }
.aviso-info { background: #e8f0fd; color: #183f7a; border: 1px solid #c3d6f6; }

/* Tablas */
.tabla-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; background: var(--tarjeta); }
th, td { padding: 8px 9px; border-bottom: 1px solid var(--borde); text-align: left; white-space: nowrap; }
th { font-size: .8rem; text-transform: uppercase; color: var(--suave); letter-spacing: .03em; }
td.num, th.num { text-align: center; }
tr.clasifica td:first-child { box-shadow: inset 4px 0 0 var(--acento); }
.pts { font-weight: 800; }
.eq-celda { display: flex; align-items: center; gap: 8px; }

/* Escudos y fotos */
.escudo { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; background: #fff; }
.escudo-grande { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; flex: none; background: #fff; font-size: 2rem; }
.mini { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: #fff; font-size: .7rem; }
.escudo-vacio, .foto-vacia { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: .8rem; background: #777; }
.foto { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; }
.foto-grande { width: 140px; height: 140px; border-radius: 16px; object-fit: cover; font-size: 2.5rem; }
.foto-vacia { background: linear-gradient(135deg, #8a9591, #5b6663); }

/* Jugadores (tarjetas con foto) */
.jugadores { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.jugador-card { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; text-decoration: none; color: inherit; display: block; position: relative; }
.jugador-card .foto-card { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; }
.jugador-card .datos { padding: 8px 10px; }
.jugador-card .dorsal { position: absolute; top: 8px; left: 8px; background: var(--acento); color: #fff; font-weight: 800; border-radius: 8px; padding: 2px 8px; }
.jugador-card .nombre { font-weight: 700; display: block; line-height: 1.2; }

/* Partidos */
.partido-link { text-decoration: none; color: inherit; display: block; }
.partido { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio); padding: 10px 12px; margin-bottom: 8px; }
.partido-link:hover .partido { border-color: var(--acento); }
.partido .eq { display: flex; align-items: center; gap: 8px; min-width: 0; }
.partido .eq-l { justify-content: flex-end; text-align: right; }
.partido .nom { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.partido .centro { text-align: center; min-width: 70px; }
.partido .marcador { font-size: 1.25rem; font-weight: 800; background: #0f1614; color: #fff; border-radius: 8px; padding: 3px 10px; display: inline-block; }
.partido .hora { font-weight: 700; color: var(--suave); }
.partido .pen { display: block; color: var(--suave); }
.partido .info { grid-column: 1 / -1; text-align: center; font-size: .8rem; color: var(--suave); }
.jornada-titulo { margin: 18px 0 8px; font-weight: 800; color: var(--acento); text-transform: uppercase; font-size: .85rem; letter-spacing: .05em; }
.descansa { font-size: .85rem; color: var(--suave); margin: -2px 0 10px; }

/* Etiquetas */
.etiqueta { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--borde); color: var(--texto); }
.etiqueta.roja { background: var(--roja); color: #fff; }
.etiqueta.verde { background: var(--acento); color: #fff; }
.etiqueta.gris { background: #8a9591; color: #fff; }
.etiqueta.amarilla { background: var(--amarilla); color: #222; }
.tarjeta-am, .tarjeta-ro { display: inline-block; width: 11px; height: 15px; border-radius: 2px; vertical-align: -2px; }
.tarjeta-am { background: var(--amarilla); }
.tarjeta-ro { background: var(--roja); }
.forma { display: inline-flex; gap: 3px; }
.forma span { width: 18px; height: 18px; border-radius: 4px; font-size: .65rem; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.forma .G { background: #1a9e5c; } .forma .E { background: #8a9591; } .forma .P { background: var(--roja); }

/* Pestañas */
.pestanas { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 16px; padding-bottom: 4px; }
.pestanas a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; text-decoration: none; background: var(--tarjeta); border: 1px solid var(--borde); color: var(--texto); font-weight: 600; font-size: .9rem; }
.pestanas a.activa { background: var(--acento); color: #fff; border-color: var(--acento); }

/* Eventos del partido */
.eventos { list-style: none; padding: 0; margin: 0; }
.eventos li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--borde); }
.minuto { font-weight: 800; min-width: 34px; color: var(--suave); }

/* Sorteo animado */
.sorteo-grupos { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.sorteo-grupo h3 { background: var(--acento); color: #fff; margin: 0; padding: 10px 14px; border-radius: var(--radio) var(--radio) 0 0; }
.sorteo-grupo ul { list-style: none; margin: 0; padding: 8px 14px; background: var(--tarjeta); border: 1px solid var(--borde); border-top: 0; border-radius: 0 0 var(--radio) var(--radio); }
.sorteo-grupo li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-weight: 700; opacity: 0; transform: translateY(10px) scale(.95); animation: aparecer .6s forwards; }
@keyframes aparecer { to { opacity: 1; transform: none; } }

/* Perfil */
.perfil { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

/* Pie */
.pie { text-align: center; color: var(--suave); font-size: .8rem; padding: 26px 16px; }

/* Login */
.login { max-width: 380px; margin: 50px auto; }

/* Planilla de juego (impresión) */
.planilla { background: #fff; color: #000; }
.planilla table { background: #fff; }
.planilla th, .planilla td { border: 1px solid #000; color: #000; padding: 5px 6px; }
.planilla .caja { width: 44px; }
.planilla h1, .planilla h2 { color: #000; }
@media print {
  .no-imprimir, .barra, .pie { display: none !important; }
  body { background: #fff; }
  .contenedor { max-width: none; padding: 0; }
  .salto { page-break-before: always; }
}

/* ===== Versión 2: en vivo, vocalía, árbitro ===== */
.marcador-vivo { background: var(--roja) !important; }
.en-vivo { display: block; color: var(--roja); font-weight: 800; font-size: .72rem; letter-spacing: .03em; animation: latido 1.6s infinite; }
@keyframes latido { 50% { opacity: .45; } }
.pestanas a.vivo { border-color: var(--roja); color: var(--roja); }
.pestanas a.vivo.activa { background: var(--roja); color: #fff; }

/* Vocalía (celular) */
.vocal-body { background: #0f1614; }
.vocal-body .contenedor { max-width: 640px; padding: 12px; }
.marcador-grande { position: sticky; top: 0; z-index: 5; background: #0f1614; color: #fff; border-radius: 0 0 16px 16px; padding: 12px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; text-align: center; margin: -12px -12px 12px; }
.marcador-grande .nom { font-weight: 700; font-size: .9rem; line-height: 1.2; }
.marcador-grande .goles { font-size: 2.4rem; font-weight: 900; letter-spacing: .05em; }
.marcador-grande .reloj { grid-column: 1 / -1; font-weight: 800; color: #7ef0b0; }
.btn-grande { display: block; width: 100%; padding: 15px; font-size: 1.05rem; border-radius: 12px; text-align: center; margin-bottom: 8px; }
.botonera { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.botonera button { padding: 14px 6px; font-size: .95rem; border-radius: 12px; border: 0; font-weight: 800; cursor: pointer; color: #fff; }
.b-gol { background: #1a9e5c; } .b-am { background: var(--amarilla); color: #222 !important; } .b-ro { background: var(--roja); } .b-pen { background: #137a47; } .b-ag { background: #6b7572; }
.lista-presentes label { font-weight: 400; display: flex; gap: 10px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--borde); }
.lista-presentes input { width: 22px; height: 22px; }
.estado-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 800; font-size: .8rem; }
.chip-ok { background: #e2f6ec; color: #0b5a3c; } .chip-pend { background: #fff4d6; color: #7a5a00; } .chip-mal { background: #fde8ea; color: #8a1323; }
.galeria { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.galeria figure { margin: 0; background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 10px; overflow: hidden; }
.galeria img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.galeria figcaption { padding: 6px 8px; font-size: .78rem; }
tr.dif td { background: #fde8ea; color: #8a1323; }
@media (max-width: 520px) {
  .partido { padding: 10px 8px; gap: 6px; }
  .partido .nom { font-size: .85rem; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.2; }
  .partido .escudo { width: 24px; height: 24px; font-size: .65rem; }
  .partido .centro { min-width: 58px; }
  .partido .marcador { font-size: 1.1rem; padding: 2px 8px; }
  .en-vivo { font-size: .62rem; }
}

/* ===== Versión 4: carnets, verificación, finanzas, redes ===== */
.carnet-verif { max-width: 460px; margin: 0 auto; }
.estado-grande { color: #fff; font-weight: 900; font-size: 1.6rem; text-align: center; padding: 12px; border-radius: 10px; letter-spacing: .04em; }
.carnet-foto { text-align: center; margin-top: 14px; }
.foto-verif { width: 240px; height: 240px; border-radius: 16px; object-fit: cover; font-size: 3rem; display: inline-flex; }
.reloj-verif { text-align: center; font-weight: 800; font-size: 1.1rem; background: #0f1614; color: #7ef0b0; border-radius: 8px; padding: 8px; }
.verif-vocal { border: 3px solid var(--acento); }
.verif-vocal .foto-verif { width: 200px; height: 200px; }
#lector { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 50; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; }
#lector video { width: 100%; max-width: 480px; border-radius: 12px; }
#lector p { color: #fff; text-align: center; }
.saldo-debe { color: var(--roja); font-weight: 800; }
.saldo-ok { color: #1a9e5c; font-weight: 800; }
.img-redes { width: 100%; border-radius: 10px; border: 1px solid var(--borde); display: block; background: #222; }
.rejilla-redes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ===== Versión 6 ===== */
.banner-cola { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px; font-weight: 700; text-align: center; font-size: .92rem; }
.banner-cola.sin-red { background: #b7791f; color: #fff; }
.banner-cola.enviando { background: #183f7a; color: #fff; }
.toast { position: fixed; left: 50%; bottom: 70px; transform: translateX(-50%); background: #0f1614; color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 60; max-width: 90%; text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.eventos li.pendiente { opacity: .75; background: repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(183,121,31,.08) 6px, rgba(183,121,31,.08) 12px); }
.vocal-body .contenedor { padding-bottom: 70px; }
.codigos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin: 10px 0; }
.codigos code { background: var(--fondo); border: 1px dashed var(--borde); padding: 8px; border-radius: 8px; text-align: center; font-size: 1.05rem; font-weight: 700; letter-spacing: .05em; }
.qr-2fa { background: #fff; display: inline-block; padding: 8px; border-radius: 10px; margin: 8px 0; }
.qr-2fa svg { display: block; width: 210px; height: 210px; }
.pasos li { margin-bottom: 10px; }
code.copiar { background: var(--fondo); border: 1px solid var(--borde); padding: 3px 8px; border-radius: 6px; font-size: 1rem; user-select: all; }
pre.mensaje { white-space: pre-wrap; background: var(--fondo); padding: 10px; border-radius: 8px; font-size: .85rem; }
.bloques { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; }
.tabla-prog input, .tabla-prog select { min-width: 0; padding: 6px 8px; }
.aviso-suscripcion a { color: inherit; }
.legal h2 { font-size: 1.05rem; margin-top: 1.2rem; }
.legal li { margin-bottom: 4px; }
/* Página de venta */
.hero { background: linear-gradient(135deg, #0b6e4f, #0f1614 75%); color: #fff; border-radius: 18px; padding: 42px 22px; text-align: center; margin: 4px 0 22px; }
.hero h1 { font-size: 2rem; line-height: 1.15; margin: 0 auto 12px; max-width: 760px; }
.hero p { font-size: 1.08rem; opacity: .92; max-width: 720px; margin: 0 auto 20px; }
.hero-botones { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hero-botones .btn-grande { width: auto; min-width: 230px; display: inline-block; }
.hero-nota { font-size: .85rem !important; opacity: .75 !important; margin: 12px 0 0 !important; }
.btn-blanco { background: #fff; color: #0b6e4f; }
.btn-wa { background: #1faa55; }
.btn-sec-blanco { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
.vitrina { margin-bottom: 18px; }
.vitrina-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.vitrina-logos a { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100px; text-align: center; text-decoration: none; color: var(--texto); }
.vitrina-logos .escudo-grande { width: 64px; height: 64px; font-size: 1.4rem; }
.titulo-seccion { text-align: center; font-size: 1.5rem; margin: 30px 0 16px; }
.funciones { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.funcion { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio); padding: 16px; }
.funcion h3 { margin: .4rem 0 .3rem; font-size: 1rem; }
.funcion p { margin: 0; color: var(--suave); font-size: .9rem; }
.funcion-ico { font-size: 1.8rem; }
.pasos-venta { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.pasos-venta > div { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio); padding: 16px; text-align: center; }
.pasos-venta b { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: var(--acento); color: #fff; align-items: center; justify-content: center; font-size: 1.1rem; }
.pasos-venta h3 { margin: .5rem 0 .2rem; }
.pasos-venta p { margin: 0; color: var(--suave); font-size: .9rem; }
.planes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; margin-bottom: 10px; }
.plan { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 16px; padding: 22px 18px; position: relative; display: flex; flex-direction: column; }
.plan-destacado { border: 2.5px solid var(--acento); box-shadow: 0 10px 30px rgba(11,110,79,.15); }
.plan-cinta { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--acento); color: #fff; font-size: .75rem; font-weight: 800; padding: 3px 12px; border-radius: 999px; }
.plan h3 { margin: 0; font-size: 1.2rem; }
.plan-precio { font-size: 2.2rem; font-weight: 900; margin: 6px 0 0; color: var(--acento); }
.plan-precio small { font-size: .95rem; color: var(--suave); font-weight: 600; }
.plan ul { padding-left: 18px; margin: 14px 0; flex: 1; }
.plan li { margin-bottom: 6px; }
.faq details { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: .6rem 0 0; color: var(--suave); }
.cta-final { background: linear-gradient(135deg, #0f1614, #0b6e4f); color: #fff; text-align: center; border-radius: 18px; padding: 32px 18px; margin: 28px 0 8px; }
.cta-final h2 { margin: 0 0 14px; font-size: 1.5rem; }
.registro { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.lista-check { list-style: none; padding: 0; }
.lista-check li { padding: 6px 0 6px 28px; position: relative; }
.lista-check li::before { content: '✓'; position: absolute; left: 0; color: var(--acento); font-weight: 900; }
.historia-campeon { display: flex; align-items: center; gap: 12px; }
@media (max-width: 520px) { .hero h1 { font-size: 1.5rem; } .hero { padding: 30px 16px; } .hero-botones .btn-grande { width: 100%; min-width: 0; } }
@media print { .banner-cola, .toast { display: none !important; } }

/* ===== Versión 7 ===== */
/* Patrocinadores */
.contenedor-patro { margin: 0 0 14px; }
.patrocinio { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #e3e8e6; border-radius: 12px; padding: 8px 12px; color: inherit; text-decoration: none; min-height: 54px; }
.patrocinio:hover { box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.patro-etq { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #6b7572; }
.patro-logo { height: 40px; max-width: 140px; object-fit: contain; vertical-align: middle; }
.patro-banner { max-height: 90px; width: 100%; object-fit: contain; flex: 1; }
.patro-txt { line-height: 1.2; }
.presentado { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 auto 10px; color: inherit; text-decoration: none; font-size: .95rem; }
.presentado small { color: #6b7572; }
/* Votaciones */
.opciones-voto { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.opcion-voto { display: flex; align-items: center; gap: 10px; border: 2px solid #e3e8e6; border-radius: 12px; padding: 8px 10px; cursor: pointer; font-weight: 400; }
.opcion-voto:has(input:checked) { border-color: var(--acento); background: #f2faf6; }
.opcion-voto .foto { width: 42px; height: 42px; }
.barra-voto { margin: 8px 0; }
.barra-voto-txt { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.barra-voto-txt span { margin-left: auto; font-weight: 700; }
.barra-voto-fondo { background: #e8eeeb; border-radius: 8px; height: 12px; overflow: hidden; }
.barra-voto-fondo div { background: var(--acento); height: 100%; border-radius: 8px; }
.barra-voto.mio .barra-voto-txt b::after { content: ' ✓'; color: var(--acento); }
/* Polla */
.polla-fila { border-bottom: 1px solid #eef1f0; padding: 8px 0; }
.polla-partido { display: grid; grid-template-columns: 1fr 58px auto 58px 1fr; gap: 6px; align-items: center; }
.polla-partido input { text-align: center; font-size: 1.2rem; font-weight: 700; padding: 8px 4px; }
.polla-partido .eq-celda { font-size: .9rem; }
/* Ecuavóley */
.sets-detalle { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: -4px 0 12px; }
.sets-detalle span { background: #fff; border: 1px solid #e3e8e6; border-radius: 8px; padding: 3px 10px; font-size: .9rem; }
.sets-detalle .set-vivo { border-color: #d7263d; color: #d7263d; }
.sets-mini { grid-column: 1 / -1; text-align: center; font-size: .95rem; opacity: .9; }
.set-tablero { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.set-equipo { text-align: center; border: 2px solid #e3e8e6; border-radius: 14px; padding: 10px; }
.set-nombre { font-weight: 700; }
.set-puntos { font-size: 3.4rem; font-weight: 800; line-height: 1.1; margin: 4px 0 8px; }
.sets-form { display: flex; flex-wrap: wrap; gap: 10px; }
.sets-form input { width: 64px; text-align: center; }
/* Básquet */
.ev-tec { display: inline-block; background: #b7791f; color: #fff; font-weight: 800; font-size: .75rem; border-radius: 3px; padding: 0 4px; }

/* ===== Versión 8 ===== */
.b-asis { background: #2b6cb0; }
.ev-asis { display: inline-block; background: #2b6cb0; color: #fff; font-weight: 800; font-size: .72rem; border-radius: 50%; width: 18px; height: 18px; line-height: 18px; text-align: center; }
/* Llaves */
.llave { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: stretch; }
.llave-col { min-width: 210px; flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 10px; }
.llave-col h3 { text-align: center; margin: 0 0 4px; font-size: .9rem; text-transform: uppercase; color: var(--acento); }
.llave-partido { display: block; background: #fff; border: 1px solid #e3e8e6; border-radius: 10px; padding: 6px 8px; color: inherit; text-decoration: none; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.llave-eq { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.llave-eq span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.llave-eq .escudo { flex: 0 0 22px; width: 22px; height: 22px; font-size: .55rem; }
.llave { scroll-snap-type: x proximity; } .llave-col { scroll-snap-align: start; min-width: 190px; }
.llave-eq.gana { font-weight: 800; } .llave-eq.pierde { opacity: .55; }
.llave-eq b small { font-weight: 400; margin-left: 2px; }
.llave-info { display: block; text-align: center; color: #6b7572; font-size: .75rem; }
/* Comprobantes */
.comprobante { display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: start; }
.comprobante img { width: 140px; max-height: 190px; object-fit: cover; border-radius: 8px; border: 1px solid #e3e8e6; }
@media (max-width: 560px) { .comprobante { grid-template-columns: 1fr; } .comprobante img { width: 100%; } }
pre.mensaje { white-space: pre-wrap; background: #f5f8f7; border-radius: 8px; padding: 10px; font-family: inherit; font-size: .9rem; }
/* Portal del jugador */
.carnet-digital { max-width: 420px; margin: 0 auto 14px; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.14); border-top: 8px solid var(--c); }
.cd-cab { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--c); color: #fff; }
.cd-cab small { display: block; font-size: .7rem; letter-spacing: .06em; opacity: .9; }
.cd-cuerpo { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 14px; align-items: center; }
.cd-foto .foto-verif { width: 120px; height: 150px; border-radius: 10px; }
.cd-nombre { font-size: 1.2rem; font-weight: 800; line-height: 1.2; margin-bottom: 4px; }
.cd-datos > div { margin: 2px 0; display: flex; align-items: center; gap: 6px; }
.cd-qr { width: 200px; margin: 10px auto 0; }
/* Reservas y agenda */
.agenda-canchas { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.agenda-col h3 { margin: 0 0 6px; font-size: 1rem; }
.turno { display: block; width: 100%; text-align: left; border: 1px solid #e3e8e6; border-radius: 8px; padding: 7px 10px; margin-bottom: 5px; font-size: .9rem; background: #fff; font-family: inherit; }
.turno.libre { border-color: #1a9e5c; color: #137a47; cursor: pointer; }
button.turno.libre:hover { background: #eaf7f0; }
.turno.ocupado { background: #f2f4f3; color: #8a9591; }
/* (v10) Aviso de vencimiento, direcciones del campeonato, tablero del negocio, pedidos, seguir equipo */
.aviso-vence { background: #fff6e0; border: 2px solid #f0a500; border-radius: var(--radio); padding: 14px 16px; margin: 0 0 14px; color: #5a3d00; }
.aviso-vence-tit { font-size: 1.25rem; font-weight: 800; margin-bottom: 4px; }
.aviso-vence p { margin: .3rem 0; }
.aviso-vence-valor { font-size: 1.1rem; font-weight: 700; }
.aviso-vence-datos { background: #fff; border: 1px dashed #d59a00; border-radius: 8px; padding: 8px 10px; margin-top: 8px; }
.btn-mini { padding: 2px 8px; font-size: .75rem; border-radius: 6px; }
.direcciones-torneo { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .9rem; margin: -2px 0 10px; }
.direcciones-torneo .dir-item { white-space: nowrap; }
.barras { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding: 8px 0 0; border-bottom: 1px solid var(--borde); overflow-x: auto; }
.barra-col { flex: 1 0 34px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: .72rem; }
.barra-col i { display: block; width: 100%; max-width: 38px; background: var(--acento); border-radius: 6px 6px 0 0; min-height: 2px; }
.barra-col b { font-size: .72rem; margin-bottom: 2px; white-space: nowrap; }
.barras-eje { display: flex; gap: 6px; font-size: .72rem; color: #6b7572; overflow-x: auto; }
.barras-eje span { flex: 1 0 34px; text-align: center; }
.riesgo { border-left: 4px solid #d93a3a; }
.pedido { border-left: 4px solid #f0a500; }
.pedido.aprobado { border-left-color: #1a9e5c; } .pedido.rechazado { border-left-color: #d93a3a; } .pedido.cancelado { border-left-color: #aab; }
.seguir-equipo { margin: .6rem 0 0; }
.demo-cinta { background: #1f2a27; color: #fff; text-align: center; padding: 6px 10px; font-size: .88rem; }
.demo-cinta a { color: #ffd54a; font-weight: 700; }

/* ===== Versión 11: escuelas ===== */
.semaforo { display: inline-block; padding: 2px 9px; border-radius: 999px; font-weight: 800; font-size: .78rem; margin: 1px; }
.s-verde { background: #e2f6ec; color: #0b5a3c; } .s-amarillo { background: #fff4d6; color: #7a5a00; } .s-rojo { background: #fde8ea; color: #8a1323; } .s-gris { background: #eef1f0; color: #44504c; }
.asis-fila { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid #eef1f0; flex-wrap: wrap; }
.asis-botones { display: inline-flex; gap: 4px; }
.asis-b input, .eval-num input { position: absolute; opacity: 0; pointer-events: none; }
.asis-b b, .eval-num b { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 10px; border: 2px solid #d5ddd9; background: #fff; cursor: pointer; font-size: 1rem; }
.asis-b-P input:checked + b { background: #1a9e5c; border-color: #1a9e5c; color: #fff; }
.asis-b-T input:checked + b { background: #e0a100; border-color: #e0a100; color: #fff; }
.asis-b-J input:checked + b { background: #8a9591; border-color: #8a9591; color: #fff; }
.asis-b-A input:checked + b { background: var(--roja); border-color: var(--roja); color: #fff; }
.eval-fila { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid #eef1f0; flex-wrap: wrap; }
.eval-num input:checked + b { background: var(--acento); border-color: var(--acento); color: #fff; }
.radar { width: 100%; max-width: 380px; height: auto; } .linea { width: 100%; height: auto; }
.calendario-asis { display: flex; flex-wrap: wrap; gap: 4px; }
.tabla-asis td, .tabla-asis th { text-align: center; padding: 4px; } .tabla-asis td:first-child { text-align: left; white-space: nowrap; }
.foto-vacia { display: inline-flex; align-items: center; justify-content: center; background: #dfe5e2; color: #44504c; font-weight: 800; }
img.mini { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; vertical-align: middle; }
/* (v12) Página de venta por módulos, folletos, comparativa, cobros con tarjeta, mi plan */
.nav-venta { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--borde); margin: -4px -16px 12px; backdrop-filter: blur(6px); }
.nav-venta .barra-in { display: flex; gap: 4px 16px; flex-wrap: wrap; align-items: center; padding: 8px 16px; font-size: .92rem; }
.nav-venta a { color: inherit; text-decoration: none; font-weight: 600; }
.nav-venta a:hover { color: var(--acento); }
.nav-venta .nav-cta { margin-left: auto; background: var(--acento); color: #fff; padding: 5px 14px; border-radius: 999px; }
.hero-tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.hero-tabs a { color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-size: .92rem; }
.hero-tabs a.activa { background: #fff; color: #0b6e4f; font-weight: 700; }
.periodos { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.periodos button { border: 1.5px solid var(--acento); background: #fff; color: var(--acento); border-radius: 999px; padding: 7px 16px; font-weight: 700; cursor: pointer; font-family: inherit; }
.periodos button small { display: block; font-weight: 500; font-size: .72rem; }
.periodos button.activo { background: var(--acento); color: #fff; }
.planes-v12 .plan-eslogan { margin: 2px 0 6px; font-size: .9rem; }
.planes-v12 .plan-equiv { margin: -4px 0 8px; font-size: .85rem; min-height: 1.2em; }
.plan-limites { font-weight: 600; }
.plan-modulos { list-style: none; padding: 0; margin: 6px 0 14px; font-size: .9rem; flex: 1; }
.plan-modulos li { padding: 3px 0; border-bottom: 1px dashed #edf0ef; }
.plan-modulos li.si { color: #135c3e; } .plan-modulos li.no { color: #a0aaa6; }
.plan-folleto { display: block; text-align: center; margin-top: 8px; font-weight: 600; }
.modulos-detalle .modulo-planes { margin: 6px 0 0; }
.modulo-planes .etiqueta { font-size: .7rem; }
.cobros-venta { background: linear-gradient(135deg, #fff6e0, #fff); border: 2px solid #f0a500; border-radius: 18px; padding: 24px 20px; margin: 26px 0; }
.cobros-venta h2 { margin: 6px 0 8px; }
.rejilla-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 10px 0; }
.rejilla-3 h3 { margin: 0 0 4px; font-size: 1rem; }
.rejilla-modulos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 14px; }
.lista-modulos { list-style: none; padding: 0; margin: 0; }
.lista-modulos li { padding: 4px 0; } .lista-modulos .mod-no { color: #a0aaa6; }
table.comparativa th, table.comparativa td { text-align: center; white-space: normal; }
table.comparativa td:first-child { text-align: left; }
.comparativa .comp-grupo td { background: #f1f5f3; font-weight: 800; text-align: left; }
.comparativa .comp-dest { background: var(--acento); color: #fff; }
.comp-si { color: #1a9e5c; font-weight: 800; font-size: 1.2rem; } .comp-no { color: #b9c2bf; }
.folleto-cab { background: linear-gradient(135deg, #0b6e4f, #0f1614); color: #fff; border-radius: 14px; padding: 20px; margin-bottom: 10px; }
.folleto-cab h1 { margin: 2px 0; color: #fff; font-size: 2.2rem; }
.folleto-cab small { letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.folleto-cab p { margin: 4px 0 0; opacity: .9; }
.folleto-mod { border-left: 3px solid var(--acento); padding: 6px 10px; margin: 8px 0; background: #fafcfb; }
.dos-columnas { columns: 2; } @media (max-width: 560px) { .dos-columnas { columns: 1; } }
.pago-caja { max-width: 560px; margin: 10px auto; }
.pago-caja table td, .pago-caja table th { padding: 8px 6px; }
.planes-v12 .plan-precio small { font-size: .95rem; white-space: nowrap; }
.planes-v12 .plan-limites { min-height: 7.2em; }
.comparativa .comp-dest small { color: #fff; opacity: .9; }

/* (v13) Factura del árbitro o del profesor */
.factura-subir { display: inline-block; margin-top: 4px; }
.factura-subir summary { cursor: pointer; font-size: .82rem; color: var(--acento); font-weight: 700; list-style: none; }
.factura-subir summary::-webkit-details-marker { display: none; }
.factura-subir form { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; min-width: 210px; padding: 8px; border: 1px dashed var(--borde, #ccc); border-radius: 8px; }
.factura-subir input[type=file] { font-size: .8rem; }
.doc-factura { margin-top: 14px; page-break-inside: avoid; }

/* (v13) Formulario de pago con Plux */
.plux-caja { margin-top: 10px; }
.plux-caja #plux-numero { font-size: 1.15rem; letter-spacing: .06em; }
.plux-mensaje:empty { display: none; }
.plux-mensaje { margin-top: 12px; }

/* ===== Versión 15: página de demostración ===== */
.demo-accesos { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 10px; }
.demo-acceso { margin: 0; }
.demo-acceso button { width: 100%; height: 100%; text-align: left; background: #fff; border: 1px solid #e3e8e6; border-radius: 14px; padding: 14px; cursor: pointer; font-family: inherit; box-shadow: 0 2px 8px rgba(0,0,0,.05); display: flex; flex-direction: column; gap: 4px; }
.demo-acceso button:hover { border-color: var(--acento); box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.demo-acceso .demo-ico { font-size: 1.8rem; }
.demo-acceso b { font-size: 1.02rem; color: #15201c; }
.demo-acceso small { color: #5d6865; line-height: 1.35; }
