/* ================================
RESET + BASE
================================ */
*{
  box-sizing:border-box;
  margin:0;
  padding:0;
  font-family:"Segoe UI",Arial,sans-serif;
}

body{
  background:#000;
  color:#fff;
  overflow-x:hidden;
}

.hidden{display:none;}

input,button{
  border:none;
  outline:none;
}

button{cursor:pointer;}


/* ================================
APP CONTENEDOR GLOBAL
================================ */
#app{
  max-width:1200px;
  margin:auto;
  padding:0 18px;
}


/* ================================
HEADER
================================ */
.header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 24px;

  background:linear-gradient(180deg,#0f172a,#020617);
  border-radius:0 0 18px 18px;

  box-shadow:
  0 20px 50px rgba(0,0,0,.9),
  inset 0 1px 0 rgba(255,255,255,.05);
}

.logout-btn{
  padding:10px 16px;
  border-radius:12px;
  background:linear-gradient(135deg,#ef4444,#7f1d1d);
  color:#fff;
  font-weight:600;
  transition:.25s;
}

.logout-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 25px rgba(239,68,68,.35);
}


/* ================================
MENU PRO
================================ */
.menu{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;

  margin:18px auto;
  padding:18px;

  max-width:1100px;

  background:rgba(255,255,255,.03);
  backdrop-filter:blur(12px);
  border-radius:20px;

  box-shadow:
  inset 0 0 0 1px rgba(255,255,255,.05),
  0 20px 50px rgba(0,0,0,.7);
}

.menu button{
  padding:12px 22px;
  border-radius:14px;
  font-weight:600;
  letter-spacing:.4px;

  background:linear-gradient(145deg,#1e3a8a,#0f172a);
  color:#e2e8f0;

  transition:.25s;

  box-shadow:
  0 6px 18px rgba(0,0,0,.6),
  inset 0 1px 0 rgba(255,255,255,.08);
}

.menu button:hover{
  transform:translateY(-2px);
  background:linear-gradient(145deg,#2563eb,#1e40af);
  box-shadow:
  0 10px 28px rgba(37,99,235,.35);
}

.menu button:active{
  transform:scale(.96);
}


/* ================================
SECCIONES
================================ */
.container{padding:20px;}

.section{
  max-width:1100px;
  margin:auto;
  display:none;
}

.section.active{display:block;}

.section h3{
  margin-bottom:14px;
  font-weight:600;
  opacity:.9;
}


/* ================================
BOX
================================ */
.box{
  background:linear-gradient(180deg,#101c45,#0a1433);
  border:1px solid rgba(255,255,255,.05);
  padding:18px;
  border-radius:18px;

  box-shadow:
  0 20px 50px rgba(0,0,0,.8),
  inset 0 1px 0 rgba(255,255,255,.05);

  max-width:520px;
  margin:auto;
}

.box input{
  width:100%;
  margin-bottom:10px;
  padding:11px;
  border-radius:10px;
  background:rgba(255,255,255,.08);
  color:#fff;
  border:1px solid rgba(255,255,255,.05);
  font-size:14px;
}


/* ================================
GRID
================================ */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,200px));
  justify-content:center;
  gap:16px;
}

.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,190px));
  justify-content:center;
  gap:16px;
}

/* ========================================
GOLEADORES / ASISTENCIAS PRO EDITION
======================================== */

.player-card{
  position:relative;
  width:100%;
  max-width:240px;
  margin:auto;

  background:linear-gradient(160deg,#0b1230,#070d24);
  border-radius:22px;
  padding:18px;
  text-align:center;

  border:1px solid rgba(0,245,255,.15);

  box-shadow:
    0 0 20px rgba(0,245,255,.08),
    0 30px 70px rgba(0,0,0,.9);

  transition:.35s ease;
  overflow:hidden;
}

.player-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(120deg,transparent,rgba(0,245,255,.08),transparent);
  transform:translateX(-100%);
  transition:.6s;
}

.player-card:hover::before{
  transform:translateX(100%);
}

.player-card:hover{
  transform:translateY(-6px) scale(1.03);
  border:1px solid #00f5ff;
  box-shadow:
    0 0 25px #00f5ff,
    0 0 60px rgba(0,245,255,.3);
}

.player-photo{
  width:100%;
  height:130px;
  object-fit:cover;
  border-radius:16px;
  margin-bottom:14px;
}

.player-rating{
  position:absolute;
  top:14px;
  right:14px;

  background:linear-gradient(135deg,#00f5ff,#00ff9d);
  color:#000;

  width:42px;
  height:42px;
  border-radius:50%;
  font-weight:800;

  display:flex;
  align-items:center;
  justify-content:center;

  box-shadow:
    0 0 15px #00f5ff,
    0 0 25px rgba(0,255,157,.5);
}

.player-name{
  font-weight:700;
  font-size:15px;
  letter-spacing:.5px;
  margin-bottom:8px;
}

.player-card .player-info,
.player-card .stats,
.player-card .info,
.player-card .player-stats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px 12px;
  margin-top:10px;
  font-size:13px;
  opacity:.85;
  text-align:left;
}


/* 🔥 FIX — STATS EN 2 COLUMNAS SIN TOCAR JS */
.player-card .player-info,
.player-card .stats,
.player-card .info,
.player-card .player-stats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:4px 10px;
  margin-top:6px;
  font-size:13px;
  opacity:.9;
  text-align:left;
}

/* ================================
TABLA GENERAL – VERSION PREMIUM CLEAN
================================ */

#tabla{
  background:#111a3a;
  border-radius:16px;
  padding:20px;
  overflow-x:auto;
}

/* contenedor */
#tabla .tabla{
  min-width:820px;
}

/* HEADER */
#tabla .tabla-header{
  display:grid;
  grid-template-columns: 2fr repeat(9,.8fr);
  gap:8px;
  align-items:center;

  padding:12px 14px;
  font-size:12px;
  letter-spacing:.6px;
  text-transform:uppercase;

  background:#1a2550;
  border-bottom:1px solid rgba(255,255,255,.08);
}

/* FILAS BASE */
#tabla .tabla-row{
  display:grid;
  grid-template-columns: 2fr repeat(9,.8fr);
  gap:8px;
  align-items:center;

  padding:12px 14px;
  font-size:13px;

  border-bottom:1px solid rgba(255,255,255,.06);
  transition:.15s ease;
}

/* Alternadas sutiles */
#tabla .tabla-row:nth-child(even){
  background:#141f45;
}

#tabla .tabla-row:nth-child(odd){
  background:#111a3a;
}

/* Hover elegante */
#tabla .tabla-row:hover{
  background:#1b2760;
}

/* Campeón — solo línea izquierda fina */
#tabla .tabla-row:nth-child(1){
  border-left:3px solid #00d084;
}

/* Segundo */
#tabla .tabla-row:nth-child(2){
  border-left:3px solid #4da3ff;
}

/* Tercero */
#tabla .tabla-row:nth-child(3){
  border-left:3px solid #f4a261;
}

/* Inputs integrados */
#tabla input{
  width:48px;
  padding:4px;
  border-radius:6px;
  border:1px solid rgba(255,255,255,.08);
  background:#0f1735;
  color:#fff;
  text-align:center;
  font-size:12px;
  transition:.2s;
}

#tabla input:focus{
  border-color:#4da3ff;
  background:#16205a;
}

/* DF */
#tabla .df{
  text-align:center;
  font-weight:600;
  opacity:.9;
}

/* PTS */
#tabla .pts{
  text-align:center;
  font-weight:700;
  color:#ffd166;
}
/* ================================
🔥 PROGRAMACION MAS CLARA
================================ */
.partido-edit{
  background:
  linear-gradient(180deg,#1a2a66,#132055);

  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;

  padding:14px;
  margin-bottom:14px;

  display:grid;
  grid-template-columns:repeat(5,auto);
  gap:10px;
  align-items:center;

  box-shadow:
  0 10px 25px rgba(0,0,0,.5),
  inset 0 1px 0 rgba(255,255,255,.08);
}

.partido-edit input,
.partido-edit select{
  background:rgba(255,255,255,.18);
  color:white;
  border:1px solid rgba(255,255,255,.15);
  border-radius:8px;
  padding:6px 8px;
}

.partido-edit button{
  background:linear-gradient(135deg,#3b5bdb,#364fc7);
  border-radius:10px;
  padding:6px 12px;
  font-size:13px;
}

.partido-edit button:hover{
  filter:brightness(1.15);
}


/* ================================
FOOTER
================================ */
.footer{
  text-align:center;
  width:100%;
  margin-top:40px;
  opacity:.6;
}


/* ================================
RESPONSIVE
================================ */
@media(max-width:768px){

  #app{ padding:0 12px; }

  .menu button{
    font-size:13px;
    padding:10px 14px;
  }

  .grid{ grid-template-columns:repeat(2,1fr); }
  .cards{ grid-template-columns:repeat(2,1fr); }

  #tabla .tabla{ min-width:700px; }
}


/* ================================
BOTON GLOBAL
================================ */
button{
  background:linear-gradient(145deg,#1e3a8a,#0f172a);
  color:#e2e8f0;
  padding:10px 18px;
  border-radius:12px;
  font-weight:600;
  transition:.25s;

  box-shadow:
  0 6px 18px rgba(0,0,0,.6),
  inset 0 1px 0 rgba(255,255,255,.08);
}

button:hover{
  transform:translateY(-2px);
  background:linear-gradient(145deg,#2563eb,#1e40af);
  box-shadow:0 10px 28px rgba(37,99,235,.35);
}

.toggle-btn{
  margin-bottom:14px;
}

.tabla-header{
  background:rgba(255,255,255,.12);
  border-radius:10px;
  font-size:13px;
}

.tabla-row{
  border-top:1px solid rgba(255,255,255,.08);
}

.delete-btn{
  background:#ef4444;
  padding:6px 10px;
  border-radius:8px;
}

/* ================================
LOGIN FIX (NO TOCA MENUS)
================================ */

.login-wrapper{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

/* Header login separado visualmente */
.login-header{
  padding:30px 20px 10px 20px;
}

/* Zona central */
.login-body{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px 20px;
}

/* Card login */
.login-card{
  width:100%;
  max-width:480px;

  background:linear-gradient(180deg,#101c45,#0a1433);
  border-radius:22px;
  padding:30px;

  box-shadow:
  0 30px 80px rgba(0,0,0,.9),
  inset 0 1px 0 rgba(255,255,255,.05);
}

/* Inputs login */
.login-card input{
  width:100%;
  margin-bottom:14px;
  padding:14px;
  border-radius:12px;
  background:rgba(255,255,255,.08);
  color:#fff;
  border:1px solid rgba(255,255,255,.05);
  font-size:15px;
}

/* Botón login */
.login-card button{
  width:100%;
  margin-top:6px;
  padding:14px;
  font-size:15px;
}

/* Footer login */
.login-footer{
  text-align:center;
  padding:25px;
  opacity:.6;
}

/* ================================
LOGIN CENTER PERFECT FIX
(NO TOCA MENUS NI APP)
================================ */

body{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.login-wrapper{
  flex:1;
  display:flex;
  flex-direction:column;
}

/* Centrado REAL matemático */
.login-body{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;

  /* 👇 Ajuste fino visual */
  padding-top:40px;
  padding-bottom:40px;
}

/* Evita que header empuje visualmente */
.login-header{
  flex-shrink:0;
}

/* Footer siempre abajo */
.login-footer{
  flex-shrink:0;
  margin-top:auto;
}

/* Micro ajuste visual para centrar óptico */
@media(min-height:700px){
  .login-body{
    transform:translateY(-20px);
  }
}

/* ================================
LOGIN HARD CENTER FIX
NO TOCA MENUS / APP
================================ */

/* Wrapper ocupa todo el viewport */
.login-wrapper{
  width:100%;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

/* Centro REAL horizontal + vertical */
.login-body{
  flex:1;
  width:100%;

  display:flex;
  justify-content:center;
  align-items:center;
}

/* Card SIEMPRE centrado */
.login-card{
  margin:auto;
}
/* =========================================
DASHBOARD PRO NEON PREMIUM
(SE AGREGA AL FINAL DEL CSS)
========================================= */

.dashboard-wrapper{
  padding:20px 0 40px 0;
}

.dashboard-header{
  text-align:center;
  margin-bottom:30px;
}

.dashboard-header h2{
  font-size:22px;
  letter-spacing:2px;
  color:#00f5ff;

  text-shadow:
    0 0 10px #00f5ff,
    0 0 20px #00f5ff55,
    0 0 40px #00f5ff33;
}

.dashboard-header p{
  margin-top:6px;
  opacity:.7;
}

.dashboard-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:22px;
}

.dashboard-card{
  background:linear-gradient(160deg,#0c1335,#0a1433);
  border-radius:18px;
  padding:25px;
  text-align:center;

  border:1px solid rgba(0,245,255,.2);

  box-shadow:
    0 0 15px rgba(0,245,255,.15),
    0 0 30px rgba(0,245,255,.05);

  transition:.3s ease;
}

.dashboard-card:hover{
  transform:translateY(-6px);

  box-shadow:
    0 0 25px #00f5ff,
    0 0 60px rgba(0,245,255,.4);
}

.dashboard-card span{
  display:block;
  margin-bottom:12px;
  font-weight:600;
  letter-spacing:.6px;
  color:#00f5ff;
}

.dashboard-card h1{
  font-size:38px;
  margin:0;
  font-weight:700;
  color:#fff;

  text-shadow:0 0 15px rgba(255,255,255,.3);
}

.dashboard-card h3{
  margin:0;
  font-size:18px;
  font-weight:600;
}

.dashboard-card p{
  margin-top:6px;
  opacity:.8;
}

.dashboard-card small{
  display:block;
  margin-top:12px;
  font-size:13px;
  opacity:.7;
}

.dashboard-finanzas{
  grid-column:span 2;
}

.dashboard-finanzas h1{
  font-size:42px;
}

.positivo{
  color:#00ff9d;
  text-shadow:
    0 0 10px #00ff9d,
    0 0 25px #00ff9d55;
}

.negativo{
  color:#ff4d6d;
  text-shadow:
    0 0 10px #ff4d6d,
    0 0 25px #ff4d6d55;
}

/* Responsive ajuste */
@media(max-width:768px){
  .dashboard-finanzas{
    grid-column:span 1;
  }
}

.mini-item{
  padding:6px 0;
  font-size:15px;
  border-bottom:1px solid rgba(0,245,255,.1);
}

.mini-item:last-child{
  border-bottom:none;
}

.bar-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin:6px 0;
}

.bar{
  flex:1;
  height:8px;
  background:rgba(255,255,255,.1);
  border-radius:6px;
  overflow:hidden;
}

.bar-fill{
  height:100%;
  background:linear-gradient(90deg,#00f5ff,#00ff9d);
  box-shadow:0 0 10px #00f5ff;
}

/* ========================================
MENU NEON UNIFICADO (SIN DUPLICADOS)
======================================== */

.menu button{

  padding:12px 22px;
  border-radius:14px;

  font-weight:600;
  letter-spacing:.4px;

  color:#e2e8f0;

  background:
  linear-gradient(145deg,#0f172a,#1e3a8a);

  border:1px solid rgba(0,255,255,.15);

  transition:.25s;

  box-shadow:
  0 6px 18px rgba(0,0,0,.6),
  inset 0 1px 0 rgba(255,255,255,.05);
}

.menu button:hover{

  transform:translateY(-2px);

  background:
  linear-gradient(90deg,#00f5ff,#00ff9d);

  color:#000;

  box-shadow:
  0 0 15px #00f5ff,
  0 0 30px rgba(0,255,157,.5);
}

.menu button.active{

  background:
  linear-gradient(90deg,#00ff9d,#00f5ff);

  color:#000;

  box-shadow:
  0 0 18px #00ff9d,
  0 0 35px rgba(0,255,157,.6);
}


/* ========================================
TITULO TORNEO PREMIUM
======================================== */

#torneoName,
#torneoTitulo{

  font-size:28px;
  font-weight:800;
  letter-spacing:1.2px;
  text-transform:uppercase;

  background:linear-gradient(90deg,#00f5ff,#00ff9d,#00f5ff);
  background-size:200% auto;

  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;

  animation:shine 5s linear infinite;

  text-align:center;
  margin-bottom:18px;

  text-shadow:
    0 0 10px rgba(0,245,255,.4),
    0 0 20px rgba(0,255,157,.25);
}

@keyframes shine{
  to{
    background-position:200% center;
  }
}

/* ========================================
NOMBRE APP ULTRA PREMIUM
======================================== */

#appName{

  font-size:34px;
  font-weight:900;
  letter-spacing:2px;

  text-transform:uppercase;

  background:
  linear-gradient(120deg,#00f5ff,#3b82f6,#00ff9d,#00f5ff);

  background-size:300% auto;

  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;

  animation:appGlow 6s linear infinite;

  text-align:center;

  margin:25px 0 10px;

  position:relative;
}

/* glow detrás del texto */

#appName::after{
  content:attr(data-text);
  position:absolute;
  left:0;
  right:0;
  top:0;
  z-index:-1;

  color:#00f5ff;
  filter:blur(20px);
  opacity:.4;
}

@keyframes appGlow{
  to{
    background-position:300% center;
  }
}

/* ========================================
PRO CINEMATIC INTRO
======================================== */

#proIntro{
  position:fixed;
  inset:0;
  z-index:9999;
  overflow:hidden;
}

#proIntro canvas{
  position:absolute;
  inset:0;
}

.intro-title-pro{
  position:absolute;
  bottom:20%;
  width:100%;
  text-align:center;

  font-size:42px;
  font-weight:900;
  letter-spacing:3px;
  text-transform:uppercase;

  background:linear-gradient(90deg,#00f5ff,#fff,#00ff9d);
  background-size:300% auto;

  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;

  animation:shinePro 4s linear infinite;
}

@keyframes shinePro{
  to{background-position:300% center;}
}

#proIntro.fade-out{
  animation:introFadePro 1.2s ease forwards;
}

@keyframes introFadePro{
  to{
    opacity:0;
    visibility:hidden;
  }
}

/* ========================================
STAR BACKGROUND PERMANENTE
======================================== */

#starsBackground{
display:none;

 }

/* =========================================
TABLA GENERAL – NEON PRO RANKING EDITION
========================================= */

#tabla{
  position:relative;
  background:linear-gradient(180deg,#0b122e,#070d24);
  border-radius:22px;
  padding:24px;
  overflow:hidden;

  box-shadow:
    0 0 40px rgba(0,245,255,.08),
    0 40px 90px rgba(0,0,0,.9);
}

/* efecto luz que cruza */
#tabla::before{
  content:"";
  position:absolute;
  top:0;
  left:-100%;
  width:50%;
  height:100%;
  background:linear-gradient(
    120deg,
    transparent,
    rgba(0,245,255,.15),
    transparent
  );
  transform:skewX(-20deg);
  animation:shineTable 6s infinite;
}

@keyframes shineTable{
  to{
    left:150%;
  }
}

/* HEADER PERFECTAMENTE ALINEADO */
#tabla .tabla-header{
  display:grid;
  grid-template-columns: 2.4fr repeat(9,1fr);
  gap:8px;
  align-items:center;
  text-align:center;

  padding:14px;
  font-size:12px;
  letter-spacing:.8px;

  background:linear-gradient(90deg,#0f1c4f,#13236b);
  border-radius:14px;

  text-shadow:0 0 10px rgba(0,245,255,.4);
}

/* FILAS */
#tabla .tabla-row{
  display:grid;
  grid-template-columns: 2.4fr repeat(9,1fr);
  gap:8px;
  align-items:center;
  text-align:center;

  padding:14px;
  font-size:13px;

  border-radius:12px;
  margin-top:8px;

  background:rgba(255,255,255,.03);
  transition:.25s;
}

#tabla .tabla-row:hover{
  transform:scale(1.01);
  background:rgba(0,245,255,.08);
}

/* COLUMNA EQUIPO alineada izquierda */
#tabla .tabla-row div:first-child,
#tabla .tabla-header div:first-child{
  text-align:left;
  padding-left:12px;
  font-weight:600;
}

/* NUMERACION AUTOMATICA */
#tabla .tabla-row{
  counter-increment: ranking;
  position:relative;
}

#tabla{
  counter-reset: ranking;
}

#tabla .tabla-row div:first-child::before{
  content:"# " counter(ranking) "  ";
  font-weight:800;
  opacity:.6;
  margin-right:6px;
}

/* =========================
TOP 1 – CAMPEON
========================= */
#tabla .tabla-row:nth-child(2){
  background:linear-gradient(90deg,#00ff9d22,#00f5ff22);
  border:1px solid #00ff9d;

  box-shadow:
    0 0 20px #00ff9d,
    0 0 40px rgba(0,255,157,.3);
}

#tabla .tabla-row:nth-child(2) div:first-child::before{
  content:"🥇 #1  ";
  color:#00ff9d;
}

/* =========================
TOP 2
========================= */
#tabla .tabla-row:nth-child(3){
  background:linear-gradient(90deg,#4da3ff22,#00f5ff22);
  border:1px solid #4da3ff;

  box-shadow:
    0 0 18px #4da3ff,
    0 0 35px rgba(77,163,255,.3);
}

#tabla .tabla-row:nth-child(3) div:first-child::before{
  content:"🥈 #2  ";
  color:#4da3ff;
}

/* =========================
TOP 3
========================= */
#tabla .tabla-row:nth-child(4){
  background:linear-gradient(90deg,#f4a26122,#ffb70322);
  border:1px solid #f4a261;

  box-shadow:
    0 0 18px #f4a261,
    0 0 35px rgba(244,162,97,.3);
}

#tabla .tabla-row:nth-child(4) div:first-child::before{
  content:"🥉 #3  ";
  color:#f4a261;
}

/* PUNTOS SUPER DESTACADOS */
#tabla .pts{
  font-weight:800;
  font-size:15px;
  color:#ffd166;
  text-shadow:0 0 10px rgba(255,209,102,.6);
}

/* DIFERENCIA GOLES */
#tabla .df{
  font-weight:700;
  color:#00f5ff;
  text-shadow:0 0 8px rgba(0,245,255,.5);
}

/* =========================================
RANKING CORREGIDO PROFESIONAL
========================================= */

/* Quitamos contador anterior */
#tabla{
  counter-reset: ranking;
}

#tabla .tabla-row{
  counter-increment: ranking;
  position:relative;
}

/* NUMERO NORMAL (del 4 en adelante) */
#tabla .tabla-row div:first-child::before{
  content:"# " counter(ranking);
  font-weight:700;
  opacity:.45;
  margin-right:8px;
  transition:.2s;
}

/* ===================================
TOP 1
=================================== */
#tabla .tabla-row:nth-of-type(1){
  background:linear-gradient(90deg,#00ff9d18,#00f5ff18);
  border:1px solid #00ff9d;
  box-shadow:
    0 0 18px rgba(0,255,157,.6),
    0 0 40px rgba(0,255,157,.2);
}

#tabla .tabla-row:nth-of-type(1) div:first-child::before{
  content:"🥇 #1";
  color:#00ff9d;
  font-weight:900;
  opacity:1;
}

/* ===================================
TOP 2
=================================== */
#tabla .tabla-row:nth-of-type(2){
  background:linear-gradient(90deg,#4da3ff18,#00f5ff18);
  border:1px solid #4da3ff;
  box-shadow:
    0 0 16px rgba(77,163,255,.6),
    0 0 35px rgba(77,163,255,.2);
}

#tabla .tabla-row:nth-of-type(2) div:first-child::before{
  content:"🥈 #2";
  color:#4da3ff;
  font-weight:900;
  opacity:1;
}

/* ===================================
TOP 3
=================================== */
#tabla .tabla-row:nth-of-type(3){
  background:linear-gradient(90deg,#f4a26118,#ffb70318);
  border:1px solid #f4a261;
  box-shadow:
    0 0 14px rgba(244,162,97,.6),
    0 0 30px rgba(244,162,97,.2);
}

#tabla .tabla-row:nth-of-type(3) div:first-child::before{
  content:"🥉 #3";
  color:#f4a261;
  font-weight:900;
  opacity:1;
}

/* ===================================
RESTO DE EQUIPOS (PRO PERO DISCRETO)
=================================== */
#tabla .tabla-row:nth-of-type(n+4){
  background:rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.05);
}

#tabla .tabla-row:nth-of-type(n+4):hover{
  background:rgba(0,245,255,.06);
  border:1px solid rgba(0,245,255,.2);
}

/* Sutil línea lateral clasificación */
#tabla .tabla-row:nth-of-type(n+4)::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  height:100%;
  width:3px;
  background:linear-gradient(#00f5ff,#00ff9d);
  opacity:.15;
}

/* =========================================
GOLEO / ASISTENCIAS – PREMIUM REAL PRO
========================================= */

#goleo .tabla,
#asistencias .tabla{
  position:relative;
  background:linear-gradient(160deg,#0a1338,#060b22);
  border-radius:24px;
  padding:30px 30px 30px 60px; /* espacio para medalla */
  overflow:hidden;

  box-shadow:
    0 0 40px rgba(0,255,255,.15),
    0 40px 100px rgba(0,0,0,.9);
}

/* glow animado real */
#goleo .tabla::before,
#asistencias .tabla::before{
  content:"";
  position:absolute;
  top:0;
  left:-120%;
  width:60%;
  height:100%;
  background:linear-gradient(
    120deg,
    transparent,
    rgba(0,255,255,.18),
    transparent
  );
  transform:skewX(-25deg);
  animation:shinePro 7s infinite linear;
}

@keyframes shinePro{
  to{ left:160%; }
}

/* GRID REAL DE 4 COLUMNAS */
#goleo .tabla-header,
#goleo .tabla-row,
#asistencias .tabla-header,
#asistencias .tabla-row{
  display:grid;
  grid-template-columns: 2fr 1.5fr 1fr 60px;
  align-items:center;
  gap:14px;
}

/* HEADER */
#goleo .tabla-header,
#asistencias .tabla-header{
  padding:16px 20px;
  border-radius:14px;

  background:linear-gradient(90deg,#111c4f,#182a75);
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:1px;
  font-weight:700;

  color:#00f5ff;
  text-shadow:0 0 10px rgba(0,255,255,.6);
}

/* FILAS */
#goleo .tabla-row,
#asistencias .tabla-row{
  position:relative;
  padding:16px 20px;
  margin-top:12px;
  border-radius:16px;

  background:rgba(255,255,255,.04);
  border:1px solid rgba(0,255,255,.2);

  transition:.3s;
}

/* HOVER PREMIUM FUERTE */
#goleo .tabla-row:hover,
#asistencias .tabla-row:hover{
  transform:translateY(-3px);
  background:linear-gradient(90deg,#00f5ff22,#00ff9d22);

  box-shadow:
    0 0 30px rgba(0,255,255,.6),
    0 0 60px rgba(0,255,157,.3);
}

/* 🔥 MEDALLA FUERA DEL GRID */
#goleo .tabla-row div:first-child,
#asistencias .tabla-row div:first-child{
  position:absolute;
  left:-40px;
  top:50%;
  transform:translateY(-50%);
  font-size:22px;
  font-weight:900;
  text-shadow:0 0 10px #ffd700;
}

/* INPUT */
#goleo input,
#asistencias input{
  background:#0f1735;
  border:1px solid #00f5ff55;
  border-radius:10px;
  padding:6px;
  text-align:center;
  color:#00ffcc;
  font-weight:700;
}

/* BOTON */
#goleo button,
#asistencias button{
  background:#2a0f25;
  border:1px solid #ff005555;
  color:#ff4d6d;
  border-radius:10px;
  padding:6px 8px;
}

/* ================================
TABLAS GENERALES (ADMIN / GOLEO / ASIST)
DISEÑO PRO UNIFICADO
================================ */

.tabla{
  margin-top:18px;
  border-radius:16px;
  overflow:hidden;

  background:#111a3a;

  box-shadow:
  0 20px 40px rgba(0,0,0,.7),
  inset 0 1px 0 rgba(255,255,255,.05);
}

/* HEADER */
.tabla-header{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;

  padding:12px 16px;

  background:#1a2550;
  font-size:12px;
  letter-spacing:.5px;
  text-transform:uppercase;

  border-bottom:1px solid rgba(255,255,255,.08);
}

/* FILAS */
.tabla-row{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;

  align-items:center;

  padding:12px 16px;
  font-size:13px;

  border-bottom:1px solid rgba(255,255,255,.06);

  transition:.15s;
}

/* Alternadas */
.tabla-row:nth-child(even){
  background:#141f45;
}

.tabla-row:nth-child(odd){
  background:#111a3a;
}

/* Hover */
.tabla-row:hover{
  background:#1b2760;
}

/* BOTONES DENTRO TABLA */
.tabla-row button{
  padding:6px 10px;
  font-size:12px;
  border-radius:8px;
}

/* ACCIONES */
.tabla-row span:last-child{
  display:flex;
  gap:6px;
  justify-content:flex-end;
}

/* ========================================
ADMIN PANEL NEON PRO
======================================== */

.neon-toggle{
  margin-bottom:16px;
  font-size:14px;
  letter-spacing:.5px;

  background:linear-gradient(145deg,#1a2c6b,#101b45);

  box-shadow:
  0 0 12px rgba(0,245,255,.2),
  inset 0 1px 0 rgba(255,255,255,.1);
}

.neon-toggle:hover{
  box-shadow:
  0 0 15px #00f5ff,
  0 0 35px rgba(0,245,255,.4);
}

/* PANEL CREAR LICENCIA */

.admin-box{
  max-width:620px;
}

.admin-inputs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:14px;
}

.admin-inputs input,
.admin-inputs select{

  background:rgba(0,245,255,.08);

  border:1px solid rgba(0,245,255,.2);

  box-shadow:
  inset 0 0 10px rgba(0,245,255,.1);

}

.admin-inputs input:focus,
.admin-inputs select:focus{

  border-color:#00f5ff;

  box-shadow:
  0 0 10px rgba(0,245,255,.5),
  inset 0 0 10px rgba(0,245,255,.3);
}

/* BOTONES */

.admin-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
}

.btn-neon{

  background:linear-gradient(135deg,#00f5ff,#0066ff);

  color:#000;
  font-weight:700;

  box-shadow:
  0 0 12px #00f5ff,
  0 0 30px rgba(0,245,255,.4);

}

.btn-neon:hover{

  transform:translateY(-2px);

  box-shadow:
  0 0 20px #00f5ff,
  0 0 50px rgba(0,245,255,.6);

}

.btn-neon.green{

  background:linear-gradient(135deg,#00ff9d,#00c853);

  box-shadow:
  0 0 12px #00ff9d,
  0 0 30px rgba(0,255,157,.4);

}

/* ========================================
TABLA LICENCIAS – NEON PREMIUM
(NO MODIFICA HTML NI JS)
======================================== */

/* contenedor */
#admin .tabla{
  margin-top:20px;
  border-radius:18px;
  overflow:hidden;

  background:linear-gradient(180deg,#0a1433,#070d24);

  box-shadow:
  0 0 25px rgba(0,245,255,.08),
  inset 0 0 0 1px rgba(0,245,255,.15);
}

/* header */
#admin .tabla-header{

  display:grid;
  grid-template-columns:1fr 1fr .6fr .6fr .8fr;

  padding:14px 18px;

  background:linear-gradient(145deg,#00f5ff22,#0044ff22);

  border-bottom:1px solid rgba(0,245,255,.2);

  font-size:12px;
  letter-spacing:.7px;
  text-transform:uppercase;

  color:#00f5ff;

  text-shadow:
  0 0 10px rgba(0,245,255,.5);
}

/* filas */

#admin .tabla-row{

  display:grid;
  grid-template-columns:1fr 1fr .6fr .6fr .8fr;

  align-items:center;

  padding:14px 18px;

  font-size:13px;

  border-bottom:1px solid rgba(255,255,255,.06);

  transition:.25s;

}

/* alternado */

#admin .tabla-row:nth-child(even){
  background:#08112c;
}

#admin .tabla-row:nth-child(odd){
  background:#050b22;
}

/* hover neon */

#admin .tabla-row:hover{

  background:#0c1b4d;

  transform:scale(1.01);

  box-shadow:
  inset 0 0 20px rgba(0,245,255,.15);

}

/* licencia highlight */

#admin .tabla-row span:nth-child(1){
  font-weight:600;
  color:#00f5ff;

  text-shadow:
  0 0 8px rgba(0,245,255,.5);
}

/* rol badge */

#admin .tabla-row span:nth-child(3){

  text-align:center;

  padding:4px 8px;

  border-radius:8px;

  background:linear-gradient(135deg,#4f46e5,#1e40af);

  font-size:12px;

  box-shadow:
  0 0 10px rgba(79,70,229,.5);
}

/* estado badge */

#admin .tabla-row span:nth-child(4){

  text-align:center;

  padding:4px 8px;

  border-radius:8px;

  background:linear-gradient(135deg,#00ff9d,#00c853);

  color:#000;
  font-weight:600;

  box-shadow:
  0 0 10px rgba(0,255,157,.6);

}

/* botones */

#admin .tabla-row button{

  font-size:12px;

  padding:6px 10px;

  border-radius:8px;

  margin-right:6px;

}

/* boton estado */

#admin .tabla-row button:nth-child(1){

  background:linear-gradient(135deg,#00f5ff,#2563eb);

  color:#000;

  box-shadow:
  0 0 10px rgba(0,245,255,.5);

}

/* boton eliminar */

#admin .tabla-row button:nth-child(2){

  background:linear-gradient(135deg,#ff4d4d,#b91c1c);

  box-shadow:
  0 0 10px rgba(255,77,77,.5);

}

#admin .tabla-row button:hover{

  transform:translateY(-2px) scale(1.05);

  filter:brightness(1.2);

}

/* ===== FIX DEFINITIVO TABLA GENERAL ===== */

#tablaGeneral .tabla-row{
  display:grid !important;
  grid-template-columns: 2fr repeat(7,0.7fr) 0.9fr 0.9fr !important;
  align-items:center;
  gap:8px;
}

#tablaGeneral .tabla-row strong{
  text-align:left;
  padding-left:12px;
}

#tablaGeneral .tabla-row span:last-child{
  text-align:center;
  justify-self:center;
}

/* =================================
ALINEACION TITULOS TABLA GENERAL
================================= */

#tabla .tabla-header{
  display:grid !important;
  grid-template-columns: 2fr repeat(7,0.7fr) 0.9fr 0.9fr !important;
  align-items:center;
  gap:8px;
}

/* columna equipo */
#tabla .tabla-header div:first-child{
  text-align:left;
  padding-left:12px;
}

/* columnas numericas */
#tabla .tabla-header div:not(:first-child){
  text-align:center;
}

/* columna puntos */
#tabla .tabla-header div:last-child{
  font-weight:700;
}

/* ========================================
FONDO ESTADIO FUTBOL CINEMATIC
======================================== */

body::before{

content:"";

position:fixed;
top:0;
left:0;

width:100%;
height:100%;

background:url("estadio.jpg") center/cover no-repeat;

z-index:-2;

animation:stadiumMove 40s infinite alternate ease-in-out;

filter:brightness(.45) saturate(1.2);

}

/* movimiento tipo cámara TV */

@keyframes stadiumMove{

0%{
transform:scale(1);
}

100%{
transform:scale(1.1) translateY(-10px);
}

}

/* ========================================
LUCES ESTADIO
======================================== */

body::after{

content:"";

position:fixed;

top:0;
left:0;

width:100%;
height:100%;

background:
radial-gradient(circle at center, transparent 30%, rgba(0,0,0,.7));

z-index:-1;

pointer-events:none;

}

/* ========================================
AMBIENTE PUBLICO
======================================== */

.fansGlow{

position:fixed;

bottom:0;
left:0;

width:100%;
height:200px;

background:
linear-gradient(
to top,
rgba(0,0,0,.9),
transparent
);

z-index:-1;

animation:crowdMove 6s infinite alternate ease-in-out;

}

@keyframes crowdMove{

0%{opacity:.85;}
100%{opacity:1;}

}