/* =========================================
   1. VARIABLES Y BASE
   ========================================= */
:root {
    --bg-dark: #0a0a0a;
    --bg-panel: rgba(20, 20, 20, 0.95);
    --accent: #ff0055; /* Rosa Neón */
    --secondary: #00ffcc; /* Verde Neón */
    --text-main: #ffffff;
    --border-color: #2a2a2a;
}

/* Fondo con patrón repetible */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('imagenes/patron.jpg');
    background-repeat: repeat;
    background-size: auto;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial Black', Gadget, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

/* --- QUITAR FLECHAS DE INPUTS NUMÉRICOS --- */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}

/* =========================================
   2. BARRA DE NAVEGACIÓN
   ========================================= */
.navbar {
    background-color: #000;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--accent);
}

.nav-content {
    display: flex;
    width: 100%;
    padding: 0 20px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo { height: 35px; }

/* =========================================
   3. BANNER
   ========================================= */
.banner {
    margin-top: 60px;
    width: 100%;
    height: 450px;
    position: relative;
    background-color: #000;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.banner-logo-floating {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 380px;
    filter: drop-shadow(0 0 20px rgba(255, 0, 85, 0.4));
}

/* =========================================
   4. SECCIÓN EQUIPOS (3-2-3)
   ========================================= */
.teams-section {
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    border-top: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    margin: 40px 0;
    background: rgba(255, 255, 255, 0.02);
}

.team-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    width: 100%;
}

.team-card {
    text-align: center;
    width: 220px;
}

.team-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border: 3px solid #ffffff; 
    border-radius: 8px;
    transition: 0.3s;
}

.team-card:hover img {
    border-color: var(--accent);
    transform: scale(1.05);
}

.team-card p {
    margin-top: 10px;
    font-size: 0.9em;
    text-transform: uppercase;
    color: #ffffff;
}

/* =========================================
   5. TABLAS Y CONTENEDORES
   ========================================= */
.container {
    padding: 50px 5%;
    max-width: 1100px;
    margin: 0 auto;
}

.table-section {
    background: var(--bg-panel);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.table-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

h2 {
    color: var(--accent);
    text-transform: uppercase;
    margin: 0;
    font-size: 1.5em;
    border-left: 5px solid var(--accent);
    padding-left: 15px;
}

/* BOTONES */
.btn-add {
    border: none;
    padding: 12px 20px;
    background: var(--accent);
    color: white;
    font-family: 'Arial Black', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.2s;
}

.btn-add:hover { transform: translateY(-2px); filter: brightness(1.2); }

.btn-clear { background: #333; margin-left: 10px; }

/* ESTILOS TABLA */
.editable-table {
    width: 100%;
    border-collapse: collapse;
}

.editable-table th {
    background: #1a1a1a;
    padding: 15px;
    text-align: center;
    border-bottom: 2px solid var(--accent);
    font-size: 12px;
    color: var(--secondary);
}

.editable-table td {
    padding: 15px;
    border-bottom: 1px solid #222;
    text-align: center;
}

.team-cell {
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    position: relative;
    min-width: 250px;
}

.cell-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.table-img {
    width: 50px; 
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #fff;
}

/* INPUT DE PUNTAJE (SOLO ESTE QUEDA) */
.score-input {
    background: #000;
    border: 1px solid var(--accent);
    color: var(--secondary);
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    outline: none;
    width: 90px;
    font-size: 16px;
}

/* =========================================
   6. DROPDOWN (EL LISTADO) CORREGIDO
   ========================================= */
.team-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #111;
    border: 2px solid var(--accent);
    z-index: 2000;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.9);
}

.team-menu.active { display: block; }

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 20px;
    cursor: pointer;
    border-bottom: 1px solid #222;
    transition: 0.2s;
}

.menu-item:hover { background: var(--accent); color: #fff; }

.menu-item img {
    width: 60px; /* Imagen grande en el listado */
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
}

.menu-item span {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
}

/* BOTÓN ELIMINAR */
.btn-delete-row {
    background: #ff4444;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}