/* ===========================================================
   PALETA PRINCIPAL Y VARIABLES DEL TEMA (Mismo estilo, +detalles)
   =========================================================== */

:root {
  --bg: #0a0a0a;
  --panel: #101014;
  --panel-2: #14141a;
  --panel-3: #181820;

  --text: #e7e7e7;
  --text-soft: #cfcfe0;
  --muted: #a1a1b0;

  --morado: #8b5cf6;
  --morado-light: #a788ff;
  --morado-dark: #5f32d0;

  --rojo: #ef4444;
  --rojo-dark: #c53030;

  --celeste: #22d3ee;
  --celeste-dark: #12889a;

  --success: #8bfd8b;
  --warning: #ffd27a;
  --danger: #ff7a7a;

  --radius: 16px;
  --radius-sm: 10px;

  --shadow-1: 0 4px 15px rgba(0, 0, 0, .25);
  --shadow-2: 0 10px 35px rgba(0, 0, 0, .35);

  --transition: .25s ease;
  --transition-fast: .15s ease;
  --ring: 0 0 0 3px rgba(139, 92, 246, .25);

  --space-1: 6px;  --space-2: 12px; --space-3: 18px; --space-4: 24px;
  --fw-bold: 800; --fw-semi: 700; --fw-medium: 600;
}

/* ===========================================================
   BASE
   =========================================================== */

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(1200px 800px at 10% -20%, rgba(139,92,246,.08), transparent 60%),
              radial-gradient(900px 600px at 110% 10%, rgba(34,211,238,.07), transparent 55%),
              var(--bg);
  color: var(--text);
  font-family: system-ui,-apple-system, Segoe UI, Roboto, Ubuntu,'Helvetica Neue', Arial, sans-serif;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; display: block; }
.hidden { display: none !important; }

*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #262633, #1a1a23); border-radius: 10px; border: 2px solid #0a0a0a; }
*::-webkit-scrollbar-track { background: #0a0a0a; }

a { color: var(--celeste); text-decoration: none; transition: opacity var(--transition-fast); }
a:hover { opacity: .9; }

/* ===========================================================
   CONTAINERS
   =========================================================== */

.container { max-width: 1100px; margin: 0 auto; padding: var(--space-2); }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent 30%) , var(--panel);
  border: 1px solid #1f1f26;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-1);
  transition: var(--transition-fast);
  position: relative;
  overflow: clip;
}
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }

.card::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(139,92,246,.0);
  transition: var(--transition);
}
.card:hover::after { box-shadow: 0 0 0 1px rgba(139,92,246,.35), 0 0 24px rgba(139,92,246,.1) inset; }

/* GRID */

.row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px){ .row { grid-template-columns: 1fr; } }

/* ===========================================================
   BOTONES
   =========================================================== */

.btn {
  border: none;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: var(--fw-semi);
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex; align-items: center;
}
.btn-primary { background: var(--morado); color: white; }
.btn-danger { background: var(--rojo); color: white; }
.btn-info { background: var(--celeste); color: #06242a; }
.btn:hover { transform: translateY(-1px); }

/* ===========================================================
   TABLE
   =========================================================== */

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { border-bottom: 1px solid #23232c; padding: 10px; }
.table th { background: var(--panel-2); color: var(--muted); font-weight: var(--fw-semi); }
.table tr:nth-child(even) { background: #121217; }
.table tr:hover { background: rgba(255,255,255,.03); }

/* ===========================================================
   STATUS
   =========================================================== */

.status-pill {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.status-ocupado { background: #2b2b36; color: var(--celeste); border: 1px solid #23444a; }
.status-libre { background: #1f2d1f; color: var(--success); border: 1px solid #2a5031; }
.status-descalificado { background: #3a1d1f; color: #ff9090; border: 1px solid #5a2a2a; }

/* ===========================================================
   NUEVO: DUO & ESCUADRA
   =========================================================== */

.member-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: #1f2d1f;
  border: 1px solid #2a5031;
  border-radius: 12px;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--success);
  box-shadow: 0 0 6px rgba(0,255,0,.18);
  transition: filter var(--transition-fast);
}
.member-box:hover { filter: brightness(1.12); }

.member-kills {
  font-size: 14px;
  font-weight: 700;
  color: var(--success);
  text-shadow: 0 0 4px rgba(0,255,0,.25);
}

.total-kills-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: #1f2d1f;
  border: 1px solid #2a5031;
  color: var(--success);
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0,255,0,.25);
  text-transform: uppercase;
}

.team-cell { display: flex; flex-direction: column; gap: 6px; }
.total-kills-center { display: flex; justify-content: center; }

/* ===========================================================
   FOOTER
   =========================================================== */

.footer { text-align: center; margin-top: 20px; padding: 20px; color: var(--muted); font-size: 12px; }

/* ✅ Centrado REAL para tablas (DUO / ESCUADRA) */
.total-kills-center {
  display: table-cell !important;
  vertical-align: middle !important;
  text-align: center !important;
}

@keyframes slotGlow {
    0% { 
        opacity: 0.4;
        text-shadow: 0 0 5px rgba(255, 225, 0, 0.3);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 15px rgba(255, 225, 0, 1),
                     0 0 25px rgba(255, 225, 0, 0.8);
    }
    100% {
        opacity: 0.4;
        text-shadow: 0 0 5px rgba(255, 225, 0, 0.3);
    }
}
/* ===========================================================
   ✨ Animación de brillo para estados
   =========================================================== */

@keyframes stateGlowGreen {
    0%   { text-shadow: 0 0 4px rgba(0,255,0,.4); opacity: 0.7; }
    50%  { text-shadow: 0 0 12px rgba(0,255,0,1); opacity: 1; }
    100% { text-shadow: 0 0 4px rgba(0,255,0,.4); opacity: 0.7; }
}

@keyframes stateGlowBlue {
    0%   { text-shadow: 0 0 4px rgba(34,211,238,.4); opacity: 0.7; }
    50%  { text-shadow: 0 0 12px rgba(34,211,238,1); opacity: 1; }
    100% { text-shadow: 0 0 4px rgba(34,211,238,.4); opacity: 0.7; }
}

@keyframes stateGlowRed {
    0%   { text-shadow: 0 0 4px rgba(255,120,120,.4); opacity: 0.7; }
    50%  { text-shadow: 0 0 12px rgba(255,120,120,1); opacity: 1; }
    100% { text-shadow: 0 0 4px rgba(255,120,120,.4); opacity: 0.7; }
}

/* ✅ Aplicar brillo según estado */
.status-libre {
    animation: stateGlowGreen 1.4s infinite ease-in-out;
}

.status-ocupado {
    animation: stateGlowBlue 1.4s infinite ease-in-out;
}

.status-descalificado {
    animation: stateGlowRed 1.4s infinite ease-in-out;
}
/* 🔥 QUITAR ESPACIO ENTRE TITULOS (INSCRITOS / SOBRAN CUPOS) */
.card h1,
.card h2,
.card h3,
.card p {
  margin-top: 2px !important;
  margin-bottom: 2px !important;
}
/* 🟨 SLOT NUMBER ENTERPRISE (PRO / APP LEVEL) */
.slot-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 32px;
  height: 32px;

  background:
    linear-gradient(180deg, #2c2c34 0%, #16161b 100%);
  border: 1px solid rgba(255, 225, 0, 0.35);
  border-radius: 8px;

  color: #ffe100;
  font-weight: 800;
  font-size: 14px;

  letter-spacing: 0.5px;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -1px 0 rgba(0,0,0,.6),
    0 6px 14px rgba(0,0,0,.6),
    0 0 10px rgba(255,225,0,.15);

  text-shadow:
    0 0 6px rgba(255,225,0,.75);

  position: relative;
  overflow: hidden;
}

/* ✨ brillo premium suave (no exagerado) */
.slot-number::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255,255,255,.25) 50%,
    transparent 70%
  );
  opacity: 0.25;
}
/* 🔥 TITULO SUPER COMPACTO CON LUZ */
.top-title {
  text-align: center;
  margin: 2px 0 4px;
}

/* TITULO */
.top-title h1 {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.6px;
  margin: 0;
  line-height: 1.05;
  color: #f3ebff;

  text-shadow:
    0 0 6px rgba(200,150,255,.9),
    0 0 16px rgba(140,0,255,.8),
    0 0 30px rgba(90,0,255,.7);
}

/* SUBTITULO CON BARRA DE LUZ */
.top-title p {
  position: relative;
  display: inline-block;
  margin-top: 1px;
  padding: 2px 10px;
  font-size: 11.5px;
  line-height: 1.2;
  color: #d8c9ff;
  overflow: hidden;

  text-shadow:
    0 0 6px rgba(170,130,255,.9),
    0 0 14px rgba(120,0,255,.7);
}

/* 🌈 BARRA DE LUZ ANIMADA */
.top-title p::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(200,160,255,.85),
    rgba(140,0,255,.95),
    rgba(200,160,255,.85),
    transparent
  );
  filter: blur(4px);
  animation: lightPass 2.8s infinite ease-in-out;
}

/* ANIMACIÓN */
@keyframes lightPass {
  0% {
    left: -70%;
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  50% {
    left: 100%;
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

/* 📱 móvil */
@media (max-width: 480px) {
  .top-title h1 {
    font-size: 17px;
  }
  .top-title p {
    font-size: 11px;
  }
}
/* 🔥 Centrar texto de cupos por modo */
h2 {
  text-align: center;
  margin: 10px 0 14px;
}

#cupos-solo,
#cupos-duo,
#cupos-escuadra {
  display: inline-block;
  width: 100%;
  text-align: center;
}
/* ⚡ Rayo atravesando texto de cupos - Estilo Corporativo */
#cupos-solo,
#cupos-duo,
#cupos-escuadra {
  position: relative;
  overflow: hidden;
}

/* El rayo */
#cupos-solo::after,
#cupos-duo::after,
#cupos-escuadra::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -150%;
  width: 90%;
  height: 120%;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(0, 255, 255, 0.6) 45%,
    rgba(0, 255, 255, 0.3) 50%,
    transparent 60%
  );
  transform: skewX(-15deg);
  animation: rayoTexto 2s infinite;  /* Acelerado a 2s */
  pointer-events: none;
}

/* Animación del rayo */
@keyframes rayoTexto {
  0% {
    left: -150%;
  }
  40% {
    left: 120%;
  }
  100% {
    left: 120%;
  }
}
/* Estilo para los botones de los modos */
.boton-sala {
    background: linear-gradient(135deg, #ff0077, #ffcc00); /* Un gradiente eléctrico */
    color: white; /* Color blanco para el texto */
    font-family: 'Orbitron', sans-serif; /* Tipografía futurista */
    font-size: 18px; /* Tamaño de letra más grande */
    padding: 14px 28px; /* Espaciado interno */
    border: 2px solid #ff0077; /* Borde con el color del gradiente */
    border-radius: 12px; /* Bordes redondeados */
    text-transform: uppercase; /* Todo en mayúsculas */
    text-align: center;
    letter-spacing: 1px; /* Espaciado entre las letras */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); /* Sombra para efecto 3D */
    transition: all 0.3s ease-out; /* Transición suave */
    cursor: pointer;
}

/* Efecto hover para el botón (cuando el ratón pasa por encima) */
.boton-sala:hover {
    background: linear-gradient(135deg, #ffcc00, #ff0077); /* Cambia la dirección del gradiente */
    border-color: #ffcc00; /* Cambio en el borde */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6); /* Sombra más intensa */
    transform: scale(1.05); /* Efecto de aumento de tamaño */
}

/* Efecto de click (cuando el usuario presiona el botón) */
.boton-sala:active {
    transform: scale(0.98); /* Efecto de hundimiento */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Sombra más suave */
}

/* Estilo para texto cuando el botón es presionado */
.boton-sala:focus {
    outline: none; /* Elimina el borde de enfoque por defecto */
}

/* Efecto para pantallas más pequeñas */
@media (max-width: 768px) {
    .boton-sala {
        font-size: 16px; /* Ajusta el tamaño de letra en pantallas más pequeñas */
        padding: 12px 24px; /* Ajusta el padding */
    }
}

/* Efecto de animación */
@keyframes bounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.boton-sala:hover {
    animation: bounce 0.5s ease-in-out; /* Añade un rebote suave cuando el usuario pasa el ratón */
}

/* Efecto de texto titilante */
.boton-sala:hover {
    animation: glowText 1s ease-in-out infinite alternate; /* Efecto de texto brillante */
}

/* Animación de texto brillante */
@keyframes glowText {
    0% {
        text-shadow: 0 0 10px #ff0077, 0 0 20px #ff0077, 0 0 30px #ff0077, 0 0 40px #ffcc00;
    }
    100% {
        text-shadow: 0 0 20px #ffcc00, 0 0 30px #ffcc00, 0 0 40px #ff0077, 0 0 50px #ff0077;
    }
}
/* Estilos para los botones en la barra de tabs */
.tabs {
    display: flex;
    justify-content: space-between; /* Distribuye los botones de manera uniforme */
    gap: 10px; /* Espacio entre los botones */
    flex-wrap: nowrap; /* Los botones no se deben mover a la siguiente fila */
    margin-top: 20px;
    width: 100%; /* Hace que los botones usen el 100% del ancho disponible */
}

/* Estilo para los botones de los modos */
.boton-sala {
    background: linear-gradient(135deg, #ff0077, #ffcc00); /* Un gradiente eléctrico */
    color: white; /* Color blanco para el texto */
    font-family: 'Orbitron', sans-serif; /* Tipografía futurista */
    font-size: 14px; /* Tamaño de letra */
    padding: 10px 20px; /* Ajuste de padding */
    border: 2px solid #ff0077; /* Borde con el color del gradiente */
    border-radius: 8px; /* Bordes redondeados */
    text-transform: uppercase; /* Todo en mayúsculas */
    text-align: center;
    letter-spacing: 1px; /* Espaciado entre las letras */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Sombra ligera */
    transition: all 0.3s ease-out; /* Transición suave */
    cursor: pointer;
    white-space: nowrap; /* No permitir salto de línea */
    position: relative;
}

/* Efecto hover para el botón */
.boton-sala:hover {
    background: linear-gradient(135deg, #ffcc00, #ff0077); /* Cambia la dirección del gradiente */
    border-color: #ffcc00; /* Cambio en el borde */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); /* Sombra más intensa */
    transform: scale(1.05); /* Aumento de tamaño */
    animation: glow 1.5s ease-in-out infinite; /* Efecto de resplandor */
}

/* Animación de resplandor */
@keyframes glow {
    0% {
        text-shadow: 0 0 10px #ff0077, 0 0 20px #ff0077, 0 0 30px #ff0077, 0 0 40px #ffcc00;
    }
    100% {
        text-shadow: 0 0 20px #ffcc00, 0 0 30px #ffcc00, 0 0 40px #ff0077, 0 0 50px #ff0077;
    }
}

/* Efecto de click (cuando el usuario presiona el botón) */
.boton-sala:active {
    transform: scale(0.98); /* Efecto de hundimiento */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Sombra más suave */
}

/* Estilos para pantallas más pequeñas */
@media (max-width: 768px) {
    /* Ajusta la barra de tabs */
    .tabs {
        flex-direction: row; /* Mantiene los botones en fila */
        justify-content: space-between; /* Distribuye los botones de manera uniforme */
        gap: 8px; /* Espacio entre los botones */
    }

    .boton-sala {
        font-size: 12px; /* Ajusta el tamaño de fuente en pantallas pequeñas */
        padding: 8px 16px; /* Ajusta el padding */
        width: auto; /* Los botones ocupan el 100% del ancho */
    }
}
/* ===== BOTONES MODO (BASE) ===== */
.tabs .tab {
  position: relative;
  overflow: hidden; /* Evita que el rayo se desborde */
  background: #1a1d24;
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5); /* Resalta el texto */
}

/* ACTIVO */
.tabs .tab.active {
  background: linear-gradient(135deg, #ffcc00, #ff9f00);
  color: #000;
  box-shadow: 0 0 15px rgba(255, 200, 0, 0.6);
}

/* ===== RAYO SUAVE (SHINE) ===== */
.tabs .tab::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255,255,255,0.25),
    transparent 70%
  );
  animation: shine 4.5s ease-in-out infinite;
  z-index: 1; /* Hace que el rayo quede detrás del texto */
}

/* El rayo solo se nota bien en el activo */
.tabs .tab:not(.active)::after {
  opacity: 0.4;
}

/* ===== ANIMACIÓN DEL RAYO ===== */
@keyframes shine {
  0% {
    left: -120%;
  }
  40% {
    left: 120%;
  }
  100% {
    left: 120%;
  }
}

/* Resalta aún más el texto en el modo activo */
.tabs .tab.active {
  text-shadow: 0 0 10px #ffcc00, 0 0 15px #ffcc00; /* Brillo adicional */
}
