* {
    box-sizing: border-box;
}
@font-face {
    font-family: Michroma;
    src: url(./Recursos/Fuente/Michroma/Michroma-Regular.ttf);
}
@font-face {
    font-family: Oswald;
    src: url(./Recursos/Fuente/Oswald/Oswald-VariableFont_wght.ttf);
}




body {
    background-color: #040c26 !important;
    /*background-color: rgba(22, 42, 30, 0.845);*/
    display: flex;
    flex-direction: column;
    margin: 0px;
    padding: 0px;
    min-height: 100vh;
    min-height: 100dvh;
    min-width: 100%;
}


/* ⚡ CLASE MÁGICA PARA OCULTAR PANTALLAS (SPA) ⚡ */
.seccion-oculta {
    display: none !important;
}

/* Lo de un ciclo que no se juega esta edición (main.js, aplicarCiclosQueSeJuegan) */
.ciclo-no-se-juega {
    display: none !important;
}



.top-bar, .inicio, .search, .search-box{
    display: flex;
    flex-direction: row;
    background-color: #0a1d54;
    height: 60px;
    align-items: center;
    justify-content: space-between;
}
.top-bar{
    position: sticky;
    top: 0;          /* 👈 CLAVE: Clava la barra en el borde superior de la pantalla */
    z-index: 9998;
}
.inicio{
    width: 10%;
    height: 50px;
    margin-left: 9px;
} 
.inicio h2{
    margin-left: -3px;
    font-size: 14px;
    color: #fff;
    font-family: Michroma;
    margin-top: 7px;
}
.showman {
    display: flex;
    flex-direction: row;
    flex: 1; 
    width: 100% !important; /* Asegura que se expanda al máximo en monitores */
}

.search{
/*display: flex;*/
background-color: rgb(15, 3, 69);
width: 200px;
padding-left: 10px;
padding-right: 10px;
height: 35px;
border-radius: 4px;
margin-left: -30px;
color: #fff;
font-family: Oswald;
font-weight: 100;
font-size: 14px;
}
.header-sectionRight{
    margin-right: 25px;
}

.home{
    margin-top: 20px !important;
}
.sidebar {
    display: flex;
    flex-direction: column;
    width: 70px;
    align-items: center;
    /*height: 100vh;
    position: fixed;*/
    padding-top: 20px;
    flex-shrink: 0;
    /* ⚡ NUEVOS SUPERPODERES STICKY PARA PC ⚡ */
    position: sticky;
    top: 60px;                    /* Se clava justo abajo de la top-bar (que mide 60px) */
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px);
}
.dashboard-container {
    flex-grow: 1;
    /* 👈 Aumentamos el padding superior a 40px para que el título baje y no se solape con la barra */
    padding: 0px 20px 60px 20px;
    background-color: #040c26;
    background-image: radial-gradient(rgba(46, 218, 227, 0.12) 1px, transparent 1px);
    background-size: 26px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    /* .dashboard-container es flex-item de .showman (fila con el sidebar de 70px).
       Con width:100% el navegador usa ese 100% como flex-basis, y por defecto
       min-width es "auto" (= el ancho mínimo de su contenido). Si algo de adentro
       pide ser muy ancho (el árbol de playoffs con varias rondas en fila), el
       flex-shrink no puede achicarlo por debajo de ese mínimo y termina empujando
       TODA la página a lo ancho, invadiendo el espacio del sidebar. min-width:0
       le permite encogerse al ancho real disponible y deja que el overflow-x
       interno del árbol (su propio scroll horizontal) haga su trabajo. */
    min-width: 0;
}

/* ⚡ NUEVO: Fuerza a todas las secciones gigantes a centrarse perfectamente en la pantalla */
.dashboard-container > section,
.dashboard-container > div {
    margin-left: auto !important;
    margin-right: auto !important;
}
.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* La tabla (2 partes) y los resultados (1 parte) */
    gap: 20px;
    color: #fff;
    font-family: Oswald;
}
.table-container, .recent-results {
    background-color: rgba(10, 29, 84, 0.4) !important;
    border: 1px solid rgba(26, 50, 116, 0.4) !important;
    border-style: solid !important;
    padding: 28px !important;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: left !important; /* Alinea todo el bloque a la izquierda */
    width: 100%;
    max-width: 600px;
}
/* Dentro del main-grid (tabla de posiciones + últimos partidos) la celda del grid
   ya define el ancho correcto — no tiene sentido frenar en 600px acá adentro.
   min-width:0 es el fix real: por defecto una celda de grid tiene min-width:auto,
   que la deja crecer más allá de su columna para no achicar su contenido más ancho
   (ej. el árbol de playoffs con varias rondas en fila) — eso rompía el overflow-x
   de toda la página en vez de quedar contenido en el scroll interno del árbol. */
.main-grid .table-container,
.main-grid .recent-results {
    max-width: 100%;
    min-width: 0;
}
.recent-results{
    font-size: 12px;
    font-weight: bold;
    font-family: 'Michroma', sans-serif;

}
.recent-results h2{
    margin-top: 10.45px;
}

.title-tabla{
    font-family: 'Michroma', sans-serif;
    font-size: 15px;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}
/* Esto hace que la fila de arriba destaque */
.table-container thead {
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid #2c68e7;
}

.table-container th {
    color: #4284f2; /* Azul neón para los títulos de columnas */
    font-size: 0.9em;
}
.table-style{
    background: transparent !important;
    width: 100%;
    border-collapse: collapse !important; /* Permite separar las filas */
    border-spacing: 0 4px !important;    /* Separación de 4px entre renglones */
    background-color: #03081b !important; /* El color azul ultra profundo de la imagen */
} 
.table-head-row {
    background-color: #0a1d54 !important;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    color: #869bd8;
}

.table-wrapper {
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent !important;
   

    overflow-x: auto !important; /* Permite deslizar las estadísticas de la tabla */
    -webkit-overflow-scrolling: touch;

}



.table-style th, .table-style td {
   padding: 12px 8px !important;
}
/* GF y GC de las tablas de grupo: solo en la vista Posiciones. Antes lo resolvía el JS al dibujar una tabla, y la
   del otro ciclo quedaba con los títulos visibles y sin esas celdas (columnas corridas). */
.table-style .col-gf-gc { display: none; }
.dashboard-container.vista-ancha .table-style .col-gf-gc { display: table-cell; }
.th-pos { text-align: center; }
.th-team { text-align: left; }
.th-pts { color: #2edae3 !important; }
/* Formato general de los renglones de equipos */
.table-style tbody tr {
    background-color: rgba(255, 255, 255, 0.02);
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    transition: background-color 0.2s ease;
}
.table-style tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.06) !important;
}
.table-style tbody td {
    padding: 12px 8px !important;
}
/* Estilos específicos para celdas internas */
.td-team-name {
    font-weight: 700;
    font-size: 14px;
    color: #f8fafc;
    letter-spacing: 0.2px;
    text-align: left;
}

/* Le gana en especificidad a ".table-style td { font-size: 11px !important }"
   del media query mobile, para que el nombre de equipo no se achique en celular */
.table-style td.td-team-name {
    font-size: 13px !important;
    text-align: left !important;
}

.td-diff-positive {
    color: #4ade80;
}

.td-pts-total {
    font-weight: bold;
    color: #2edae3;
}
.td-pos-normal {
    text-align: center;
    font-weight: bold;
    color: #2c68e7;
}

/* Zona de clasificación de cada copa (Clausura 2026): dorado = Copa Oro (o los playoffs de un ciclo con un solo
   cuadro), plateado = Copa Plata. Los que entran por comparación entre grupos llevan el mismo color y un title. */
.row-copa-oro {
    background: rgba(242, 192, 14, 0.08) !important;
}
.td-pos-oro {
    text-align: center;
    font-weight: bold;
    color: #f2c00e;
    box-shadow: inset 2px 0 0 0 #f2c00e !important;
}
.row-copa-plata {
    background: rgba(197, 206, 220, 0.07) !important;
}
.td-pos-plata {
    text-align: center;
    font-weight: bold;
    color: #c5cedc;
    box-shadow: inset 2px 0 0 0 #c5cedc !important;
}




/*.dashboard-container {
    padding: 20px;
    background-color: #040c26; /* Un azul un poco más oscuro que el sidebar para dar profundidad */
    /*flex-grow: 1; /* Esto hace que el main ocupe todo el espacio sobrante */
.side-nav{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
}
.sidebar img{
    width: 40px;
    margin-top: 0; /* ELIMINADO EL MARGIN */
    display: block;

}
.logoa {
    width: 60px !important;
    margin-top: -5px !important;

}
.hero-section {
    width: 80%;
    height: 400px;
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    background-size: cover;       /* La foto cubre todo el espacio*/
    background-position: center;  /* Centra la foto*/

    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: white;
    box-shadow: 0px 0px 50px rgba(48, 18, 100, 1);
    font-family: Oswald;
    margin-bottom: 30px;
    /*width: 100%;
    height: 300px; /* O el alto que quieras */
    
    /* El degradado oscuro ayuda a que el texto blanco se lea perfecto 
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7)), 
                      url('ruta-de-tu-foto.jpg');
    
    background-size: cover;       /* La foto cubre todo el espacio
    background-position: center;  /* Centra la foto
    border-radius: 6px;
    
    /* Para centrar el contenido (texto) dentro
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Texto abajo 
    padding: 20px;
    
    /* La sombra que querías 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    
    margin-bottom: 20px;*/
}
.hero-section h2 {
    margin-bottom: 0px;
}




.group-selector {
    margin-bottom: 20px;
}
.cycle-label{
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    color: #869bd8;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.basic-section-margin{
    margin-top: 35px;
}
.group-selector > p {
    color: #869bd8; /* Un azul claro para los títulos */
    font-size: 12px;
    margin-top: -8px;
    text-transform: uppercase;
}

.tabs {
    display: flex;
    margin-bottom: 15px;
}
.tabs-sup{
    display: flex;          /* Alinea los botones en una sola fila continua */
    overflow-x: auto;
    max-width: 100%;
    white-space: nowrap !important;
    background-color: #040c26; /* El fondo oscuro idéntico a tu dashboard */         /* Separación sutil interna para el efecto cápsula */
    border-radius: 2px;     /* Bordes redondeados de la barra completa */
    width: max-content;   /* Se ajusta exactamente al tamaño de los botones */
    border: 1px solid rgba(255, 255, 255, 0.05); /* Borde sutil general */
}
.tabs-sup::-webkit-scrollbar {
    display: none;
}
.tabs-bas{
    display: flex;          /* Alinea los botones en una sola fila continua */
    background-color: #040c26; /* El fondo oscuro idéntico a tu dashboard */         /* Separación sutil interna para el efecto cápsula */
    border-radius: 2px;     /* Bordes redondeados de la barra completa */
    width: max-content;   /* Se ajusta exactamente al tamaño de los botones */
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.tab-btn {
    background-color: transparent; /* Fondo transparente para que tome el de la barra */
    color: #869bd8;         /* Color gris/azul apagado de la imagen para los inactivos */
    border: none;           /* ELIMINAMOS los bordes individuales que te molestaban */
    padding: 8px 16px;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    border-radius: 2px;     /* Redondeado interno leve para cada botón */
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;              /* Eliminamos cualquier margen para que se peguen */
}

.tab-btn:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

/* El botón activo (el que está seleccionado) */
.tab-btn.active {
    background-color: rgba(26, 50, 116, 0.5); /* Fondo azul oscuro traslúcido */
    color: #fff;            /* Texto completamente blanco */
    border: 1px solid #1a3274; /* Único borde marcado para el botón activo */
    box-shadow: inset 0 0 8px rgba(44, 104, 231, 0.2); /* Destello interno sutil */
}



.search-container {
    display: flex;
    align-items: center;
    background-color: rgb(15, 3, 69);
    padding: 10px 15px;
    border-radius: 8px; /* Esto hace que sea ovalada */
    width: 250px; /* Ajustá este ancho a gusto */
    height: 35px;
    padding-left: 10px;
    padding-right: 10px;
}
/* El input interno */
.search-input {
    background: transparent; /* Transparente, toma el fondo del contenedor */
    border: none;            /* Quitamos el borde por defecto */
    outline: none;           /* ¡IMPORTANTE! Quita el borde azul molesto al hacer clic */
    color: white;            /* Color del texto */
    flex-grow: 1;            /* Hace que ocupe todo el espacio disponible */
    padding: 5px;
    font-family: inherit;
    font-family: Oswald;
}
.search-input::placeholder{
    color: #fff;
}
/* El icono */
.search-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.8;
}
.nav-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;         /* Tamaño del círculo */
    height: 50px;        /* Tamaño del círculo */
    border-radius: 50%;  /* ¡Esto crea el círculo perfecto! */
    transition: all 0.3s ease; /* Transición suave para el hover */
    text-decoration: none; /* Quitamos el subrayado del enlace */
}

.nav-item.active {
    background-color: rgba(46, 218, 227, 0.2); /* Color más marcado para el activo */
    /*border: 1px solid #2edae3;*/
}
.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.15); /* Fondo suave al pasar el mouse */
    transform: scale(1.1); /* Un pequeño zoom para que se sienta interactivo */
}
.nav-item img {
    width: 25px;         /* Ajustá el tamaño del icono a tu gusto */
    height: 25px;
    display: block;      /* Elimina espacios extra debajo de la imagen */
}
.match-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* Dos columnas iguales para los equipos = score realmente centrado */
    align-items: center;
    gap: 8px;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.03); /* Un toque de transparencia */
    margin-bottom: 10px;
    border-radius: 4px;
    border-left: 4px solid #2c68e7; /* Línea de acento azul */
    border-right: 4px solid #2c68e7; /* Línea de acento azul */
    transition: background-color 0.3s;
}

.match-card:hover {
    background-color: rgba(255, 255, 255, 0.08); /* Feedback al pasar el mouse */
}

.team-name {
    font-family: 'Michroma', sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: #f1f5f9;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    word-break: break-word;
}

@media (max-width: 480px) {
    .team-name {
        font-size: 10px;
    }
}

.score {
    font-family: 'Michroma', sans-serif; /* Usamos tu fuente técnica */
    font-size: 16px;
    color: #2edae3; /* Azul neón para resaltar el resultado */
    font-weight: bold;
    margin-top: -3.5px;
    text-align: center;

}


.group-title-container {
    margin: 25px 0 15px 0;
    padding-left: 10px;
    border-left: 3px solid #2c68e7;
    display: flex;
    align-items:flex-start;
    /* CAMBIAZO CLAVE: Forzamos a que los elementos se apilen uno abajo del otro */
    flex-direction: column;
}
.group-name-sup, .group-name-bas{
    margin: 5px 0px;
}
.group-name {
    font-family: 'Michroma', sans-serif;
    color: #fff;
    font-size: 20px;
    margin: 0;
    display: block;
}

.group-category {
    font-family: 'Oswald', sans-serif;
    color: #869bd8; /* El color clarito que venías usando */
    font-size: 12px;
    letter-spacing: 1px;
    margin-top: 4px;
    display: block;
    /* box-sizing: border-box; */
    text-transform: uppercase

}




/* Contenedor principal que limita el ancho y maneja el desborde */
.fechas-carousel-container {
    width: 100%;
    overflow-x: auto; /* Permite el scroll horizontal */
    scroll-behavior: smooth; /* Hace que el deslizamiento sea suave */
    padding: 5px 0 15px 0;
    margin-bottom: 10px;
}

/* Ocultar la barra de scroll en Chrome, Safari y Opera */
.fechas-carousel-container::-webkit-scrollbar {
    display: none;
}

/* Ocultar la barra de scroll en Firefox y IE */
.fechas-carousel-container {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Los botones alineados en una sola fila infinita */
.tabs-fechas {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: flex-start; /* Alinea al principio para que se note el scroll */
    width: max-content; /* Fuerza al contenedor a estirarse todo lo necesario */
    padding: 0 10px;    /* Un poquito de aire a los costados */
}

/* Ajuste opcional para que los botones de fecha tengan un tamaño fijo y no se deformen */
.tabs-fechas .tab-btn {
    min-width: 45px;
    height: 25px;
    margin: 0px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; /* Evita que el flexbox "apriete" los botones */
}

/* El display:flex de arriba pisaba el atributo hidden (rondas del bracket que el ciclo no tiene) */
.tabs-fechas .tab-btn[hidden] {
    display: none;
}

/* Marca de tarjeta en los desplegables de partido (fixture y modal del equipo) */
.tarjeta-ico {
    display: inline-block;
    width: 7px;
    height: 10px;
    margin-right: 5px;
    border-radius: 1px;
    vertical-align: -1px;
}
.tarjeta-amarilla { background-color: #f2c00e; }
.tarjeta-roja { background-color: #f43f5e; }








/* 3. Agregamos la línea finita y sutil debajo de cada fila */
.table-style tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    background-color: transparent;
}
/* --- ESTILOS INTERACTIVOS PARA LAS NUEVAS TABLAS --- */
/*
.cat-btn:hover {
    background: #1a3274 !important;
    color: #fff !important;
    border-color: #2c68e7 !important;
}

.category-switch .cat-btn.active {
    background: #1a3274 !important;
    color: #fff !important;
    border-color: #2c68e7 !important;
    box-shadow: 0 0 12px rgba(44, 104, 231, 0.3);
}

.group-selectors-row button:hover {
    background: rgba(26, 50, 116, 0.3) !important;
    color: #fff !important;
    border-color: rgba(46, 218, 227, 0.4) !important;
}

.group-selectors-row button.active {
    background: rgba(26, 50, 116, 0.6) !important;
    border-color: #2c68e7 !important;
    color: #fff !important;
}

#tabla-cuerpo-dinamico tr {
    transition: background 0.2s ease;
}

#tabla-cuerpo-dinamico tr:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}*/

/* ==========================================================================
   ⚡ SECCIÓN RESPONSIVE COMPLETA: MÓVILES (Versión Ajustada)
   ========================================================================== */
@media (max-width: 768px) {
    
    html, body {
        max-width: 100vw !important;
        overflow-x: hidden !important; /* 👈 Le quitamos los comentarios para activar el escudo */
        margin: 0;
        padding: 0;
    }.tabs-sup {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        max-width: 100% !important; /* Se clava en el ancho del celu */
        overflow-x: auto !important; /* El scroll horizontal nace y muere ACÁ */
        overflow-y: hidden !important; /* Evita que se mueva hacia arriba o abajo */
        white-space: nowrap !important; /* Obliga a los botones a quedarse en fila india */
        gap: 8px !important;
        padding:2px !important; /* Espacio abajo para que no se pegue al scroll */
        box-sizing: border-box !important;
        -webkit-overflow-scrolling: touch; /* Deslizado suave con el pulgar */
        scrollbar-width: none;
    }

    /* 1. SEPARACIÓN DEL HEADER: Volvemos a hacer fila para que entren el logo y los iconos arriba */
    .top-bar {
        height: auto !important;
        padding: 10px 15px !important;
        display: grid !important;
        grid-template-columns: 1fr auto; /* Título/Logo a la izquierda, Notificaciones a la derecha */
        gap: 12px;
    }

    .inicio {
        width: auto !important;
        justify-content: flex-start !important;
        margin-left: 0 !important;
    }

    .inicio h2 {
        font-size: 13px !important;
        text-align: left !important;
    }

    /* La campanita y notificaciones se clavan arriba a la derecha */
    .header-sectionRight {
        grid-column: 2;
        grid-row: 1;
        margin-right: 0 !important;
        display: flex;
        padding-right: 5px;
        align-items: center;
    }

    .notifications img {
        width: 24px; /* Tamaño cómodo para el dedo en el celu */
    }

    /* El buscador pasa a una segunda fila solito, abajo del título y la campana */
    .search-container {
        grid-column: 1 / span 2; /* Ocupa todo el ancho de lado a lado */
        width: 100% !important;
        max-width: 100% !important;
        margin: 5px 0 0 5px !important;
        box-sizing: border-box;
    }

    /* 2. REPARACIÓN DE LAS CAJAS (Evita que se corten el contenido) */
    
    .dashboard-container {
        /* padding: 10px !important; */
        margin-top: -10px;
        padding-top: 0px;
         padding-bottom: 90px !important;/* Espacio sagrado para que la barra inferior no tape nada */
        width: 100% !important;
        box-sizing: border-box;
    }
    

    .main-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
        max-width: 100% !important;
        margin-top: 20px;


        
   
    }
    /* Forzamos a que los contenedores de las tablas y partidos muestren TODO su contenido */
    .recent-results, #sec-goleadores section {
        width: 90%;
        margin: auto;
        max-width: 100% !important;
        height: auto ; /* 👈 CLAVE: Elimina cualquier alto fijo que las corte */
        min-height: min-content !important;
        overflow-x: visible !important; /* Permite que la caja se estire hacia abajo libremente */
        padding: 15px !important;
        box-sizing: border-box;
    }

    /* 3. HERO SECTION */
    .hero-section {
        width: auto ;
        height: auto !important;
        min-height: 220px !important;
        box-sizing: border-box;
        margin: 10px 0 !important;
        padding: 20px 15px !important;
        font-size: 10px;
    }

    /* 4. REPARACIÓN DIRECTA DE LA CAJA DE TABLAS */
    .table-container {
        width: 96% !important;
        max-width: 100% !important;
        padding: 15px !important;
        box-sizing: border-box;
        margin:auto;
        /* El truco mágico: si la tabla adentro es muy ancha, la caja permite scroll horizontal */
        overflow-x: hidden !important; 
        -webkit-overflow-scrolling: touch; /* Hace que el deslizado en iPhone/Android sea fluido */
    }
    /* Forzamos a la tabla interna a mantener una estructura legible */
    .table-container table { /* Le da el ancho necesario a las columnas para que respiren */
        width: 100% !important;
    }

    .table-style th, .table-style td {
        padding: 10px 6px !important;
        font-size: 11px !important;
        text-align: center;
    }

    /* 3. LA BARRA LATERAL PASA A SER LA BARRA INFERIOR BLINDADA */
    .sidebar {
        position: fixed !important;
        top: auto !important;
        bottom: 0px !important;
        left: 0 !important;
        right: 0 !important; /* 👈 Asegura que se estire de punta a punta */
        width: 100% !important;
        height: 70px !important; /* 👈 Le damos 10px más de aire para los textos nuevos */
        margin: 0 !important; /* 👈 Mata cualquier margen fantasma que la levante */
        flex-direction: row !important;
        justify-content: space-around !important;
        align-items: center !important;
        /* El "env(safe-area-inset-bottom)" evita que la rayita de los iPhone tape los botones */
        padding: 0 5px env(safe-area-inset-bottom) 5px !important; 
        z-index: 9999 !important;
        background-color: #0a1d54 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-bottom: none !important; /* 👈 Escudo extra */
        border-radius: 0 !important;
    }
    
.tab-btn {
    background-color: transparent; /* Fondo transparente para que tome el de la barra */
    color: #869bd8;         /* Color gris/azul apagado de la imagen para los inactivos */
    border: none;  
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    border-radius: 2px;     /* Redondeado interno leve para cada botón */
    
    transition: all 0.2s ease;
    margin: 0;              /* Eliminamos cualquier margen para que se peguen */
}

    .side-nav {
        flex-direction: row !important;
        width: 100% !important;
        justify-content: space-around !important;
        gap: 0 !important;
    }

    .sidebar img.logoa {
        display: none !important;
    }.header-sectionRight {
        grid-column: 2;
        grid-row: 1;
        margin-right: 0 !important;
        display: flex !important;
        gap: 12px !important; /* Espacio cómodo para tocar con el dedo en el celu */
        align-items: center;
    }.ig-icon {
        width: 24px;  /* Un cachito más grande en el celu para que sea fácil de tocar */
        height: 24px;
    }
    
    .main-footer {
        margin-top: 30px;
        padding-bottom: 20px; /* Evita que la barra fija inferior te tape tu nombre */
        font-size: 10px;
        padding-bottom: 90px !important;
    }
}

@media (hover: hover) and (pointer: fine){
.ig-link:hover .ig-icon {
    opacity: 1 !important;
    fill: #e1306c!important; /* Opcional: se vuelve tu celeste neón insignia al hacer hover */
    transform: scale(1.1);
}
}
/* --- ESTILOS GENERALES (Agrega esto en la parte común de tu CSS) --- */
.header-sectionRight {
    display: flex;
    align-items: center;
    gap: 15px; /* Crea una separación prolija entre la campana y el logo de IG */
}
.ig-icon {
    width: 22px;       /* Le damos el tamaño justo */
    height: 22px;
    fill: #ffffff !important; /* 👈 ¡ESTA ES LA MAGIA! Esto lo pinta de blanco puro */
    opacity: 0.8;      /* Lo dejamos un toque traslúcido para que juegue con tu diseño */
    transition: all 0.2s ease;
}


/* ============================================================
   SIDEBAR + SCROLL — VERSIÓN BLINDADA
   ============================================================ */

/* ─────────────────────────────────────────────
   DESKTOP (≥ 601px)
   ───────────────────────────────────────────── */
@media (min-width: 800px) {

    /* 1. TOP BAR: visible al inicio */
    .top-bar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999; /* Máxima prioridad inicial */
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    }

    /* 2. AL SCROLLEAR: top-bar desaparece */
    body.scrolled .top-bar {
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
    }

    /* 3. SIDEBAR: Magia del espacio dinámico */
    .sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        height: 100dvh;
        width: 70px;
        flex-direction: column;
        justify-content: flex-start;
        flex-shrink: 0;
        padding-top: 60px; /* 👈 HUECO CLAVE: Espacio para que encaje la top-bar al principio */
        overflow: hidden;
        transition: padding-top 0.4s ease, width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    body.scrolled .sidebar {
        padding-top: 0; /* Al scrollear, elimina el hueco y sube todo */
    }

    .sidebar:hover {
        width: 210px;
    }

    /* --- BOTONES PRINCIPALES DEL NAV --- */
    .nav-item {
        justify-content: flex-start;
        padding-left: 12px;  /* Centra el icono dentro del círculo */
        gap: 15px;
        width: 50px;         /* 👈 Vuelve a ser un cuadrado base */
        height: 50px;
        margin: 8px 10px;    /* 👈 Le da "aire" arriba, abajo y a los costados */
        border-radius: 8px; /* 👈 MAGIA: Lo convierte en un círculo perfecto (la mitad de 50) */
        box-sizing: border-box;
        transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease;
        overflow: hidden;    /* Oculta el texto hasta que se expanda */
    }

    /* Al pasar el mouse por la barra, el botón se estira con forma de píldora */
    .sidebar:hover .nav-item {
        width: calc(100% - 20px);
    }

    .nav-item:hover { 
        background-color: rgba(255, 255, 255, 0.05); 
    }
}
/* ─────────────────────────────────────────────
   LOGO SECTION (Oculto 100% hasta scrollear)
   ───────────────────────────────────────────── */
.sidebar-logo-section {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;

    /* ESTADO INICIAL: Totalmente colapsado e invisible */
    max-height: 0;
    padding: 0 15px;
    opacity: 0;
    border-bottom: 1px solid transparent;
    pointer-events: none;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease, border-color 0.4s ease;
}

/* AL SCROLLEAR: Aparece el logo */
body.scrolled .sidebar-logo-section {
    max-height: 80px;
    padding: 15px 15px;
    opacity: 1;
    border-bottom-color: rgba(255, 255, 255, 0.07);
    pointer-events: all;
}

.sidebar-logo-section .logoa {
    width: 38px;
    flex-shrink: 0;
    margin-top: 0 !important;
    margin-left: -7px;
}

.sidebar-logo-text {
    font-size: 16px;
    color: #fff;
    font-family: Michroma;
    font-weight: bold;
}
.sidebar:hover .sidebar-logo-text { opacity: 1; transform: translateX(0); }

/* ─────────────────────────────────────────────
   TEXTOS DEL NAV (Labels en Hover)
   ───────────────────────────────────────────── */
.nav-label {
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    color: #869bd8;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}
.sidebar:hover .nav-label { opacity: 1; transform: translateX(0); }
.nav-item.active .nav-label { color: #2edae3; }

/* ─────────────────────────────────────────────
   SECCIÓN INFERIOR (IG, Búsqueda, Notificaciones)
   ───────────────────────────────────────────── */
.sidebar-bottom {
    margin-top: auto; /* 👈 MAGIA: Obliga a esta caja a irse al fondo de la pantalla */
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;

    /* ESTADO INICIAL: Totalmente colapsado */
    max-height: 0;
    padding: 0;
    opacity: 0;
    border-top: 1px solid transparent;
    pointer-events: none;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease, border-color 0.4s ease;
}

/* AL SCROLLEAR: Se expande en la parte baja */
body.scrolled .sidebar-bottom {
    max-height: 250px;
    opacity: 1;
    padding: 10px 0 15px 0;
    border-top-color: rgba(255, 255, 255, 0.07);
    pointer-events: all;
}

/* --- BOTONES DE ABAJO (Buscar, IG, Notificaciones) --- */
    .sidebar-bottom-item {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding-left: 13px;
        gap: 15px;
        width: 50px;         /* 👈 Mismo tratamiento redondo */
        height: 50px;
        margin: 6px 10px;    /* 👈 Espaciado prolijo */
        border-radius: 8px; /* 👈 Círculo perfecto */
        cursor: pointer;
        text-decoration: none;
        box-sizing: border-box;
        transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease;
        flex-shrink: 0;
        overflow: hidden;
    }

    .sidebar:hover .sidebar-bottom-item {
        width: calc(100% - 20px);
    }

    .sidebar-bottom-item:hover { 
        background-color: rgba(255, 255, 255, 0.05); 
    }
.sidebar-bottom-label {
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    color: #869bd8;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.sidebar:hover .sidebar-bottom-label { opacity: 1; transform: translateX(0); }

/* Buscador y Lupa */
.sidebar-search-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #1a3274;
    color: white;
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    outline: none;
    width: 0;
    opacity: 0;
    transition: width 0.3s ease, opacity 0.3s ease;
}
.sidebar-search-input::placeholder { color: #bbb; }
.sidebar:hover .sidebar-search-input { width: 115px; opacity: 1; }

/* Icono IG Hover */
.ig-icon-sidebar {
    width: 22px; height: 22px; fill: #869bd8; transition: fill 0.2s ease; flex-shrink: 0;
}
.sidebar-bottom-item:hover .ig-icon-sidebar { fill: #e1306c; }

/* ==========================================================================
   📱 SECCIÓN RESPONSIVE COMPLETA: MÓVILES Y TABLETS
   ========================================================================== */
@media (max-width: 768px) {
    
    /* 1. EL HEADER FIJO ARRIBA */
    .top-bar {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
        justify-content: space-between !important;
        padding: 0 10px !important; /* Le sacamos los márgenes gigantes a los costados */
    }

    /* 1. Achicamos un toque la zona del logo */
    .inicio {
        width: 10% !important;
        margin-left: 0 !important;
        margin-right: 60px;
        gap: 5px !important;
    }
    .inicio .logoa {
        width: 35px !important;
        margin-top: 0 !important;
    }
    .inicio h2 {
        font-size: 11px !important;
    }

    /* 2. El Buscador se vuelve un "elástico" */
    .search-container {
        width: 100% !important;
        max-width: 130px !important; /* 👈 MAGIA: Le ponemos un tope para que no empuje a los íconos */
        margin: 0 auto !important;
        padding: 0 8px !important;
        flex-grow: 1 !important; /* Hace que ocupe solo el espacio que sobra en el medio */
    }
    .search-input {
        width: 100% !important;
        font-size: 10px !important;
    }

    /* 3. Apretamos la sección derecha (Instagram y Notificaciones) */
    .header-sectionRight {
        margin-right: 0 !important;
        gap: 12px !important; /* Menos espacio entre la campana y el logo de IG */
    }
    .header-sectionRight .ig-icon, 
    .notifications img {
        width: 22px !important;
        height: 22px !important;
    }
    .showman {
        margin-top: 60px !important;
    }

    /* 2. LIMPIEZA EXTREMA: Ocultamos el logo y la sección de abajo, PERO SALVAMOS LOS TEXTOS */
    .sidebar-logo-section, 
    .sidebar-bottom {
        display: none !important;
    }

    /* 🌟 Hacemos aparecer las etiquetas de texto en el celular */
    .nav-label {
        display: block !important;
        font-size: 9px !important;
        opacity: 1 !important;
        transform: none !important;
        margin-top: 3px;
        color: #869bd8;
    }

    /* 5. EL BOTÓN DEL NAV: Ahora es cuadradito y apila ícono + texto */
    .nav-item {
        width: 65px !important; 
        height: 55px !important;
        padding: 0 !important;
        margin: 0 !important;
        flex-direction: column !important; /* Apila de arriba hacia abajo */
        justify-content: center !important;
        border-radius: 4px !important; /* Chau círculo perfecto */
        background-color: transparent !important;
        gap: 0 !important;
    }
    
    .nav-item img {
        width: 22px !important;
        height: 22px !important;
    }

    /* Cuando el botón está activo, el texto se ilumina */
    .nav-item.active .nav-label {
        color: #2edae3 !important;
        font-weight: bold;
    }

    /* 3. LA BARRA LATERAL PASA A SER LA BARRA INFERIOR */
    .sidebar {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 60px !important;
        flex-direction: row !important; /* Los pone en fila horizontal */
        justify-content: space-around !important;
        align-items: center !important;
        padding: 0 !important;
        z-index: 9999 !important;
        background-color: #0a1d54 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        overflow: visible !important;
    }

    /* 4. EL CONTENEDOR DE LOS ÍCONOS EN FILA */
    .side-nav {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        justify-content: space-around !important;
        gap: 0 !important;
    }

    /* 6. COLCHÓN DE AIRE PARA EL CONTENIDO */
    .dashboard-container {
        padding-bottom: 90px !important; /* Evita que la barra te tape el contenido final */
    }
}

/* ============================================================
   SPONSORS — CARRUSEL CALESITA (COVERFLOW)
   Reemplazá el bloque de sponsors en estilo.css con esto
   ============================================================ */

.sponsors-section {
    padding: 10px 0 30px 0;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sponsors-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.sponsors-header h3 {
    color: #869bd8;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 15px;
}

/* ─── WRAPPER: contiene todo y hace el clip de los costados ─── */
.sponsors-wrapper {
    position: relative;
    width: 100%;
    overflow-x: clip; /* 👈 LA MAGIA: Solo corta los costados, deja crecer hacia abajo */
    overflow-y: visible;
    padding: 20px 0;
    box-sizing: border-box;
}

/* ─── FLECHAS ─── */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(10, 29, 84, 0.9);
    border: 1px solid #2c68e7;
    color: #2edae3;
    font-size: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}
.carousel-btn:hover {
    background: #2c68e7;
    color: #fff;
    box-shadow: 0 0 14px rgba(46, 218, 227, 0.5);
}
.prev-btn { left: 6px; }
.next-btn { right: 6px; }

/* ─── PISTA: contenedor relativo de altura fija ─── */
.sponsors-track {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    /* Chau height fijo. Ahora la caja crece sola. */
}


/* ─── TARJETA BASE ─── */
/* Todas las tarjetas están en el DOM siempre, solo cambia su transform */
/* ─── TARJETA BASE ─── */
.sponsor-card-full {
    grid-area: 1 / 1; /* MAGIA 1: Apila todas las tarjetas en el mismo cuadrado invisible */
    position: relative !important; /* Chau position absolute */
    margin: 0 auto; /* Centra la tarjeta horizontalmente */
    width: 70%;
    height: 100%; /* MAGIA 2: Obliga a TODAS las tarjetas a medir lo mismo que la más alta */
    
    display: flex !important;
    flex-direction: row;
    /* Logo y texto juntos en el centro, con la misma separación en todas las tarjetas
       (con space-around el hueco cambiaba según el largo del texto). */
    justify-content: center;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    background: linear-gradient(135deg, rgba(26, 50, 116,0.3) 0%, rgba(10, 29, 84,0.8) 100%);
    border: 1px solid rgba(46, 218, 227, 0.2);
    border-radius: 5px;
    padding: 28px 40px;
    box-sizing: border-box;
    overflow: hidden;

    /* Estado inicial: fuera de escena a la derecha */
    transform: translateX(130%) scale(0.75);
    opacity: 0;
    pointer-events: none;
    z-index: 1;

    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity   0.5s ease,
                border-color 0.3s ease,
                box-shadow   0.3s ease;
    will-change: transform, opacity;
}

/* ─── POSICIONES DE LA CALESITA ─── */

/* Centro: el sponsor activo, grande y completamente visible */
.sponsor-card-full.pos-center {
    transform: translateX(0) scale(1);
    opacity: 1;
    pointer-events: all;
    z-index: 5;
    border-color: rgba(46, 218, 227, 0.45);
    box-shadow: 0 0 30px rgba(46, 218, 227, 0.12);
}

/* Izquierda: sponsor anterior, asoma por la izquierda */
/* translateX(-90%) mueve la card 90% de su propio ancho hacia la izq
   → muestra ~20% de la card asomando por el borde izquierdo */
.sponsor-card-full.pos-left {
    transform: translateX(-90%) scale(0.82);
    opacity: 0.55;
    z-index: 3;
    pointer-events: none;
    border-color: rgba(46, 218, 227, 0.1);
}

/* Derecha: sponsor siguiente, asoma por la derecha */
.sponsor-card-full.pos-right {
    transform: translateX(90%) scale(0.82);
    opacity: 0.55;
    z-index: 3;
    pointer-events: none;
    border-color: rgba(46, 218, 227, 0.1);
}

/* Más lejos: completamente ocultos */
.sponsor-card-full.pos-far-left {
    transform: translateX(-160%) scale(0.6);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}
.sponsor-card-full.pos-far-right {
    transform: translateX(160%) scale(0.6);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

/* ─── CONTENIDO DE LAS TARJETAS ─── */
.sponsor-logo {
    /* Nunca más del 38% de la tarjeta: entre 601 y ~1100 px de ancho la tarjeta es angosta y un
       logo fijo aplastaba el texto. Sin caja cuadrada: un logo apaisado no deja aire arriba y abajo. */
    width: min(280px, 38%);
    height: auto;
    max-height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.1));
    flex-shrink: 0;
}

.sponsor-info {
    flex: 0 1 auto;
    text-align: right;
    max-width: 55%;
}

.sponsor-info h4 {
    font-family: 'Michroma', sans-serif;
    font-size: 20px;
    color: #fff;
    margin: 0 0 6px 0;
}

.sponsor-support {
    display: block;
    color: #4284f2;
    font-size: 10px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.sponsor-info p {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    color: #cbd5e1;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.sponsor-perk {
    display: inline-block;
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 10px;
    font-family: 'Oswald', sans-serif;
    margin-bottom: 12px;
}

.sponsor-contacto-link {
    display: block;
    color: #2edae3;
    font-size: 13px;
    font-family: 'Oswald', sans-serif;
    text-decoration: none;
    margin-bottom: 10px;
    overflow-wrap: anywhere;
}

/* Ubicación del sponsor (dirección o link de mapa): mismo bloque que Instagram/teléfono, un poco más apagado para no competir con ese dato. */
.sponsor-ubicacion {
    color: #869bd8;
    margin-bottom: 10px;
}

.sponsor-link-btn {
    background: rgba(46, 218, 227, 0.1);
    border: 1px solid #2edae3;
    color: #2edae3;
    padding: 7px 16px;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease, color 0.3s ease;
}
.sponsor-info .sponsor-link-btn {
    font-size: 12px;
    padding: 8px 18px;
}
.sponsor-link-btn:hover {
    background: #2edae3;
    color: #040c26;
    box-shadow: 0 0 12px rgba(46, 218, 227, 0.5);
}

.sponsor-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #2edae3;
    color: #040c26;
    font-family: 'Oswald', sans-serif;
    font-size: 9px;
    padding: 4px 10px;
    border-bottom-right-radius: 8px;
    text-transform: uppercase;
    font-weight: bold;
}

/* ─── INDICADORES DE PUNTOS (dots) ─── */
.sponsor-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 15px;
}

.sponsor-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #1a3274;
    border: 1px solid #2c68e7;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.sponsor-dot.active {
    background-color: #2edae3;
    transform: scale(1.3);
}

/* ─── MODO GRILLA (Mostrar todos) ─── */
/* ─── MODO GRILLA (Mostrar todos) ─── */
/* ─── MODO GRILLA (Mostrar todos) ─── */
.sponsors-wrapper.grid-mode .sponsors-track {
    display: flex; /* Rompe la calesita y los pone en lista vertical */
    flex-direction: column;
    gap: 15px;
}

.sponsors-wrapper.grid-mode .sponsor-card-full {
    width: 100% !important; /* En PC ocupa todo el ancho */
    height: auto !important; /* Libera la altura */
    
    /* 👈 ACÁ ESTÁ LA MAGIA QUE FALTABA: Resetea todo el efecto 3D */
    transform: none !important; 
    opacity: 1 !important; 
    pointer-events: all !important; 
    z-index: 1 !important;
}
.sponsors-wrapper.grid-mode .carousel-btn {
    display: none;
}

/* ─── RESPONSIVE MÓVIL ─── */
@media (max-width: 600px) {
    .sponsors-track {
        /* Se elimina la altura gigante que teníamos antes */
        height: auto; 
    }

    .sponsor-card-full {
        margin: 0 auto; /* Centrado automático */
        width: 90%;
        flex-direction: column;
        text-align: center;
        padding: 20px 15px 15px; 
        gap: 10px;
    }

    .sponsor-card-full .sponsor-logo {
        width: 110px !important;
        height: 110px !important;
    }

    .sponsor-info {
        text-align: center;
        max-width: 100%;
    }

    .sponsor-info h4 { font-size: 16px; }
    .sponsor-info p,
    .sponsor-contacto-link { font-size: 12px; }
    .sponsor-info .sponsor-link-btn { font-size: 11px; }

    .sponsor-card-full.pos-left {
        transform: translateX(-96%) scale(0.85);
    }

    .sponsor-card-full.pos-right {
        transform: translateX(96%) scale(0.85);
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    /* Ancho en celulares cuando tocás Mostrar Todos */
    .sponsors-wrapper.grid-mode .sponsor-card-full {
        width: 90% !important; 
    }
}
/* --- CAJA DE BENEFICIO OCULTA --- */
.beneficio-secreto {
    display: none; /* Oculto por defecto */
    background: rgba(74, 222, 128, 0.05);
    border: 1px dashed rgba(74, 222, 128, 0.4);
    border-radius: 4px;
    padding: 12px;
    margin-top: 15px;
    animation: fadeInBeneficio 0.3s ease;
}

.beneficio-secreto.visible {
    display: block; /* Se muestra al hacer clic */
}

.beneficio-secreto p {
    color: #4ade80 !important;
    font-size: 10px !important;
    margin: 0 !important;
}

.link-video-futuro {
    display: inline-block;
    margin-top: 10px;
    color: #fff;
    text-decoration: underline;
    font-size: 9px;
}

.btn-beneficio {
    cursor: pointer;
}



@keyframes fadeInBeneficio {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   📸 SECCIÓN MULTIMEDIA (GALERÍA)
   ========================================================================== */
.galeria-grid {
    display: grid;
    /* Esto hace que las tarjetas se adapten solas al tamaño de la pantalla */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    width: 100%;
}

.foto-card {
    position: relative;
    height: 170px;
    border-radius: 5px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    align-items: flex-end; /* Tira el texto para abajo */
    border: 1px solid rgba(46, 218, 227, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.foto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(46, 218, 227, 0.25);
    border-color: #2edae3;
}

/* La foto de fondo */
.foto-bg {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    /* Empieza oscura y en blanco y negro */
    filter: brightness(0.4) grayscale(80%);
    transition: filter 0.4s ease, transform 0.5s ease;
    z-index: 1;
}

/* El efecto al pasar el mouse */
.foto-card:hover .foto-bg {
    filter: brightness(0.8) grayscale(0%);
    transform: scale(1.05); /* Efecto Zoom */
}

/* El texto de la tarjeta */
.foto-content {
    position: relative;
    z-index: 2;
    padding: 15px;
    width: 100%;
    /* Un degradado oscuro para que la letra blanca se lea siempre perfecta */
    background: linear-gradient(to top, rgba(4, 12, 38, 1) 0%, transparent 100%);
}

.foto-content h4 {
    color: #fff;
    font-family: 'Michroma', sans-serif;
    margin: 0 0 5px 0;
    font-size: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.foto-content p {
    color: #2edae3;
    font-family: 'Oswald', sans-serif;
    margin: 0;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: bold;
}

/* ==========================================================================
   ⚖️ TRIBUNAL DE DISCIPLINA (FORMATO ACTA OFICIAL)
   ========================================================================== */
.acta-card {
    background: linear-gradient(135deg, rgba(26, 50, 116, 0.1) 0%, rgba(10, 29, 84, 0.6) 100%);
    border: 1px solid rgba(239, 68, 68, 0.4); /* Borde rojo sangre */
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 25px;
    font-family: 'Oswald', sans-serif;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.acta-header {
    background-color: rgba(136, 19, 55, 0.7); /* Rojo oscuro casi bordó */
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(239, 68, 68, 0.5);
}

.acta-header h4 {
    color: #fff;
    font-family: 'Michroma', sans-serif;
    margin: 0 0 5px 0;
    font-size: 18px;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.acta-header span {
    color: #fca5a5;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.acta-body {
    padding: 20px;
}

.acta-seccion {
    margin-bottom: 25px;
}
.acta-seccion:last-child {
    margin-bottom: 0;
}

/* Títulos de las subsecciones */
.acta-titulo-rojo, .acta-titulo-amarillo {
    font-size: 13px;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
    font-family: 'Michroma', sans-serif;
}

.acta-titulo-rojo {
    color: #ef4444;
    border-bottom: 1px dashed rgba(239, 68, 68, 0.3);
}

.acta-titulo-amarillo {
    color: #f2c00e;
    border-bottom: 1px dashed rgba(242, 192, 14, 0.3);
}

/* Las cajitas de texto de cada sanción */
.acta-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.acta-lista li {
    color: #e2e8f0;
    font-size: 11px;
    line-height: 1.6;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.25);
    padding: 12px 15px;
    border-left: 3px solid #ef4444; /* Línea roja a la izquierda */
    border-radius: 2px;
    transition: background 0.2s ease;
}
.acta-lista li:hover {
    background: rgba(0, 0, 0, 0.4);
}

.acta-lista li strong {
    color: #fff;
    font-size: 12px;
}

/* Variante de color para las novedades */
.lista-novedades li {
    border-left-color: #f2c00e; /* Línea amarilla a la izquierda */
}

.acta-motivo {
    color: #cbd5e1;
    display: inline-block;
    margin-top: 6px;
}

/* ==========================================================================
   🛠️ FIX 1: SOLAPAMIENTO DE LA BARRA LATERAL
   ========================================================================== */
@media (min-width: 601px) {
    body .showman {
        margin-left: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ==========================================================================
   🛠️ FIX 2: SPONSORS CORTADOS AL VER BENEFICIO
   ========================================================================== */
#sponsors-track {
    min-height: 280px !important; /* Altura mínima decente */
    height: auto !important;      /* Permite estirarse como chicle */
    overflow: visible !important; /* 👈 MAGIA: Deja de cortar lo que sobresale */
}
.sponsor-card-full {
    height: auto !important;      
    min-height: 250px !important;
    padding-bottom: 25px !important; /* Aire extra abajo para que respire la caja del beneficio */
}

/* ==========================================================================
   📰 HERO SECTION: MODO COVERFLOW 3D (Estilo Sponsors)
   ========================================================================== */
.hero-card-3d {
    position: absolute !important;
    top: 0 !important; 
    left: 10% !important;
    width: 80% !important; 
    height: 100% !important;
    border-radius: 6px; 
    overflow: hidden;
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end;
    
    /* Estado Oculto */
    transform: translateX(130%) scale(0.75) !important;
    opacity: 0 !important; 
    pointer-events: none !important; 
    z-index: 1 !important;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease, box-shadow 0.3s ease !important;
}

.hero-card-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; z-index: 1;
}

.hero-card-content {
    position: relative; z-index: 2; padding: 20px 30px 45px 30px; color: white;
    font-family: 'Oswald', sans-serif;
}
.hero-card-content h2 { margin: 0 0 5px 0; font-size: 26px; text-transform: uppercase; text-shadow: 2px 2px 5px rgba(0,0,0,0.8); }
.hero-card-content p { margin: 0; font-family: 'Oswald', sans-serif; font-size: 13px; color: #cbd5e1; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); }

/* ── POSICIONES 3D DEL HERO ── */
.hero-card-3d.hero-center { 
    cursor: pointer;
    transform: translateX(0) scale(1) !important; 
    opacity: 1 !important; 
    pointer-events: all !important; 
    z-index: 5 !important; 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(46, 218, 227, 0.35) !important;
    border: 1px solid rgba(46, 218, 227, 0.5) !important;
}
.hero-card-3d.hero-left {transform: translateX(-93%) scale(0.82) !important; /* 👈 4. DESPLAZAMIENTO Y ESCALA */
    opacity: 0.25 !important;                           /* 👈 Opacas para destacar el centro */
     z-index: 3 !important; }
.hero-card-3d.hero-right { transform: translateX(88%) scale(0.85) !important; opacity: 0.55 !important; z-index: 3 !important; }
.hero-card-3d.hero-far-left { transform: translateX(-160%) scale(0.6) !important; opacity: 0 !important; }
.hero-card-3d.hero-far-right { transform: translateX(160%) scale(0.6) !important; opacity: 0 !important; }

/* Puntitos del Hero */
.hero-dot-3d { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); cursor: pointer; transition: 0.3s ease; }
.hero-dot-3d.active { background: rgba(255, 255, 255, 0.8); transform: scale(1.3); }

@media (max-width: 600px) {
    .hero-card-3d { left: 0 !important;
        width: 100% !important; }
    .hero-card-3d.hero-left { transform: translateX(-96%) scale(0.85) !important; }
    .hero-card-3d.hero-right { transform: translateX(96%) scale(0.85) !important; }
    #hero-track-3d { min-height: 250px !important; }
}
/* ==========================================================================
   🏆 ÁRBOL DE PLAYOFFS — título de ronda (única definición; el resto del
   bracket vive consolidado al final del archivo, sección SOFASCORE STYLE)
   ========================================================================== */
.round-title {
    color: #869bd8;
    font-family: 'Michroma', sans-serif;
    font-size: 11px;
    text-align: center;
    margin: 0 0 15px 0;
    letter-spacing: 2px;
}

/* ============================================================
   😴 CORRECCIÓN FINAL DEFINITIVA: BARRA, HERO 3D Y SPONSORS
   ============================================================ */

/* 1. BARRA SUPERIOR (Cubre de punta a punta) */
body .top-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    right: 0 !important;
    z-index: 9999 !important;
    transition: transform 0.4s ease, opacity 0.35s ease !important;
}

/* 2. BARRA LATERAL (Ubicación y centrado de pantalla)
   Desde 769 px: hasta 768 la barra va abajo, como en el celular. Antes arrancaba en 601 y entre 601 y 768
   (iPad parado, celular acostado) se mezclaba con la barra de abajo: columna de 70 px con los íconos en fila. */
@media (min-width: 769px) {
    body aside.sidebar {
        position: fixed !important;
        top: 0px !important;
        left: 0 !important;
        height: 100% !important;
        width: 70px !important;
        z-index: 9990 !important;
        transition: top 0.35s ease, height 0.35s ease, width 0.35s ease !important;
    }

    body.scrolled aside.sidebar {
        top: 0 !important;
        height: 100vh !important;
        height: 100dvh !important;
    }

    body .showman {
        margin-left: 70px !important;
        width: calc(100% - 70px) !important;
        margin-top: 60px !important;
        box-sizing: border-box !important;
        transition: margin-top 0.4s ease !important;
    }

    body.scrolled .showman {
        margin-top: 0 !important;
    }
}

/* 3. HERO SECTION GIGANTE (Con colchón abajo para no pisar texto) */
#hero-wrapper {
    position: relative !important;
    width: 100% !important;
    max-width: 1200px !important;
    height: 520px !important; /* 👈 Altura física asegurada */
    margin: 10px auto 40px auto !important;
    overflow: hidden !important; /* Recorta el 20% lateral que asoma */
    border-radius: 6px !important;
}

#hero-track-3d {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
}

/* Flechas y Puntos del Hero */
.hero-btn-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 30 !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: transparent !important;           /* Chau azul neón */
    border: none !important;                      /* Chau borde marcado */
    color: rgba(255, 255, 255, 0.35) !important;
    font-size: 18px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.hero-btn-nav:hover {
    background: rgba(255, 255, 255, 0.12) !important; /* Circulo gris suave al pasar el mouse */
    color: rgba(255, 255, 255, 0.9) !important;
}
.hero-btn-nav.prev { left: 48px !important; }
.hero-btn-nav.next { right: 10px !important; }

.hero-dots-container {
    position: absolute !important;
    bottom: 12px !important;
    left: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    z-index: 30 !important;
}
.hero-btn-nav[hidden],
.hero-dots-container[hidden] { display: none !important; }

/* 4. SPONSORS SEPARADOS (Sin encimarse con el Hero) */
.sponsors-section {
    position: relative !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin-top: 10px !important;
}
.dashboard-container #home div{
    padding-top: 40px !important;
    transition: padding-top 0.3s ease; /* Hace que el cambio de padding sea suave */
}

body.scrolled .dashboard-container #home div {
    padding: 80px 0 40px !important;
}

/* ============================================================
   🌅 FIX HOVER + FIJADO DE SIDEBAR (Textos e Íconos Siempre Visibles)
   ============================================================ */
@media (min-width: 769px) {

    /* 1. Mantiene el ancho expandido tanto en HOVER como en FIJADA */
    body aside.sidebar:hover,
    body aside.sidebar.sidebar-fijada {
        width: 210px !important;
        overflow: visible !important;
    }

    /* 2. Mantiene los textos (labels) visibles tanto en HOVER como en FIJADA */
    body aside.sidebar:hover .nav-label,
    body aside.sidebar:hover .sidebar-logo-text,
    body aside.sidebar:hover .sidebar-bottom-label,
    body aside.sidebar.sidebar-fijada .nav-label,
    body aside.sidebar.sidebar-fijada .sidebar-logo-text,
    body aside.sidebar.sidebar-fijada .sidebar-bottom-label {
        opacity: 1 !important;
        transform: translateX(0) !important;
    }

    /* 3. Estira las cápsulas de los botones (.nav-item) tanto en HOVER como en FIJADA */
    body aside.sidebar:hover .nav-item,
    body aside.sidebar:hover .sidebar-bottom-item,
    body aside.sidebar.sidebar-fijada .nav-item,
    body aside.sidebar.sidebar-fijada .sidebar-bottom-item {
        width: calc(100% - 20px) !important;
    }

    /* 4. Mantiene desplegados logo y sección inferior si no hay scroll */
    body aside.sidebar.sidebar-fijada .sidebar-logo-section,
    body aside.sidebar.sidebar-fijada .sidebar-bottom {
        max-height: 250px !important;
        opacity: 1 !important;
        pointer-events: all !important;
        overflow: visible !important;
    }

    /* Ajuste de altura de ítems */
    .sidebar {
        padding-top: 60px;
    }
    
    .nav-item {
        height: 44px !important;
        margin: 4px 10px !important;
    }

    .sidebar-bottom-item {
        height: 44px !important;
        margin: 3px 10px !important;
    }
}
   /* ============================================================
   📱 FIX CENTRADO PERFECTO EN CELULARES
   ============================================================ */
@media (max-width: 600px) {
    #hero-wrapper {
        height: 420px !important;
        margin-bottom: 10px !important;
    }
    
    #hero-track-3d {
        height: 380px !important;
    }

    /* Ancho 84% + Left 8% = Centrado simétrico de lado a lado */
    .hero-card-3d {
        width: 84% !important;
        left: 8% !important; 
        cursor: pointer; /* Indico visualmente que es clickeable */
    }

    .hero-card-3d.hero-left {
        transform: translateX(-92%) scale(0.85) !important;
    }

    .hero-card-3d.hero-right {
        transform: translateX(92%) scale(0.85) !important;
    }

    /* Flechas pegadas prolijamente a las orillas */
    .hero-btn-nav.prev { left: 4px !important; }
    .hero-btn-nav.next { right: 4px !important; }
}


/* ============================================================
   🔍 MODAL CINE: FONDO TRASLÚCIDO + TEXTO SUPERPUESTO
   ============================================================ */

/* El fondo negro traslúcido flotante sobre TODA la pantalla */
.modal-noticia-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: rgba(0, 0, 0, 0.8) !important; /* Fondo negro con baja opacidad */
    backdrop-filter: blur(5px) !important;    /* Leve desenfoque de fondo */
    z-index: 99999 !important;               /* Por encima de cualquier barra */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    opacity: 1 !important;
    visibility: visible !important;

}

/* Regla estricta para ocultar */
.modal-noticia-overlay.seccion-oculta {
    display: flex !important; /* Para mantener el flex al hacer transition */
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* La tarjeta que sostiene la foto y el texto */
.modal-noticia-card {
    position: relative !important;
    max-width: 900px !important;
    width: 100% !important;
    max-height: 85vh !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9) !important;
    background: #000 !important; /* Chau fondo azul */
    animation: modalPopUp 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
@keyframes modalPopUp {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* La foto ajustada para verse COMPLETA (Contain) */
#modal-noticia-img {
    width: 100% !important;
    max-height: 85vh !important;
    object-fit: contain !important; /* Muestra la foto entera sin cortar */
    display: block !important;
}

/* Texto superpuesto sobre la parte inferior de la imagen */
.modal-noticia-content {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 30px 25px 25px 25px !important;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 70%, transparent 100%) !important;
    pointer-events: none !important;
}

.modal-noticia-content h3 {
    color: #fff !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 26px !important;
    margin: 0 0 6px 0 !important;
    text-transform: uppercase !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important;
}

.modal-noticia-content p {
    color: #cbd5e1 !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 13px !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8) !important;
}

/* Botón de cerrar (X) */
.close-modal-noticia {
    position: absolute !important;
    top: 12px !important;
    right: 18px !important;
    color: #fff !important;
    font-size: 32px !important;
    cursor: pointer !important;
    z-index: 10 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9) !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
}

.close-modal-noticia:hover {
    color: #ef4444 !important;
    transform: scale(1.15) !important;
}
/* ============================================================
   📱 MODAL NOTICIA EN MÓVILES: UNIFICADO TIPO TARJETA CINE
   ============================================================ */
@media (max-width: 600px) {

    .modal-noticia-card {
        max-height: 98vh !important;
        /* Tarjeta unificada: Fondo azul noche traslúcido con borde neón */
        background: linear-gradient(180deg, #061234 0%, #03081b 100%) !important;
        border: 1px solid rgba(46, 218, 227, 0.2) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 20px rgba(46, 218, 227, 0.15) !important;
        border-radius: 6px !important;
        padding: 1px !important; /* El relleno crea el "marco" que abraza todo */
        justify-content: flex-start !important;
        overflow-y: auto !important;
    }

    /* La imagen completa integrada arriba */
    #modal-noticia-img {
        max-height: 60vh !important;
        border-radius: 4px !important;
        margin-bottom: 12px !important;
        background: #020412 !important;
    }

    /* Texto integrado dentro del mismo bloque */
    .modal-noticia-content {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        background: transparent !important;
        padding: 5px 8px 10px 8px !important;
        text-align: center !important;
    }

    .modal-noticia-content h3 {
        font-size: 19px !important;
        margin: 0 0 8px 0 !important;
        line-height: 1.2 !important;
        text-shadow: 0 0 10px rgba(46, 218, 227, 0.3) !important;
    }

    .modal-noticia-content p {
        font-size: 12px !important;
        color: #cbd5e1 !important;
        font-style: Michroma !important;
        line-height: 1.5 !important;
        margin: 0 !important;
    }

    /* Botón flotante para cerrar sobre la esquina de la tarjeta */
    .close-modal-noticia {
        top: 8px !important;
        right: 12px !important;
        background: rgba(4, 12, 38, 0.8) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 22px !important;
    }
}

/* ============================================================
   🔗 BOTÓN DE ACCIÓN DINÁMICO EN NOTICIAS
   ============================================================ */
    .hero-inline-link {
    color: #2edae3 !important;       /* Celeste neón para diferenciarlo del texto común */
    background: transparent !important;/* Cero fondo */
    text-decoration: none !important;
    font-weight: bold !important;
    margin-left: 6px !important;
    display: inline !important;       /* Fluye natural al final del renglón */
    transition: all 0.2s ease !important;
    pointer-events: auto !important;  /* Habilita el clic directo */
}

/* Hover exclusivamente para computadoras */
@media (hover: hover) and (pointer: fine) {
    .hero-inline-link:hover {
        color: #ffffff !important;
        text-shadow: 0 0 10px #2edae3 !important; /* Destello brillante celeste */
        text-decoration: underline !important;
    }
}

.btn-noticia-action {
    display: inline-block !important;
    margin-top: 10px !important;
    padding: 8px 16px !important;
    background: rgba(46, 218, 227, 0.15) !important;
    border: 1px solid #2edae3 !important;
    color: #2edae3 !important;
    border-radius: 8px !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 11px !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 0 10px rgba(46, 218, 227, 0.2) !important;
    pointer-events: auto !important; /* Habilita el clic dentro del modal */
}

.btn-noticia-action:hover {
    background: #2edae3 !important;
    color: #040c26 !important;
    box-shadow: 0 0 18px rgba(46, 218, 227, 0.6) !important;
    transform: translateY(-2px) !important;
}


/* ============================================================
   📜 ESTILOS ACORDEÓN DE REGLAMENTO
   ============================================================ */
.reglamento-acordeon-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.acordeon-item {
    background: rgba(10, 29, 84, 0.5);
    border: 1px solid rgba(44, 104, 231, 0.3);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.acordeon-item.active {
    border-color: #2edae3;
    box-shadow: 0 0 15px rgba(46, 218, 227, 0.15);
}

.acordeon-header {
    width: 100%;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Michroma', sans-serif;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
}

.acordeon-header:hover {
    background: rgba(255, 255, 255, 0.04);
}

.acordeon-icon {
    font-size: 18px;
    color: #2edae3;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.acordeon-item.active .acordeon-icon {
    transform: rotate(45deg); /* El + se convierte en una X */
    color: #ef4444;
}

.acordeon-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
    background: rgba(3, 8, 27, 0.6);
    padding: 0 20px;
}

.acordeon-item.active .acordeon-content {
    max-height: 1000px; /* Expande la caja */
    transition: max-height 0.4s ease-in-out;
    padding: 15px 20px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.acordeon-content ul {
    margin: 0;
    padding-left: 15px;
    color: #cbd5e1;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    line-height: 1.8;
}

.acordeon-content li strong {
    color: #2edae3;
}


/* ============================================================
   📐 FIX PADDING SUPERIOR EN SECCIONES DE PESTAÑAS
   ============================================================ */
.dashboard-container section {
    padding-top: 20px !important;
}

/* Cuando se scrolleé y se guarde la barra, mantiene distancia prolija */
body.scrolled .dashboard-container section {
    padding-top: 30px !important;
}

/* Ajuste específico para que las tablas y el grid no se metan abajo de la barra */
.main-grid, #pantalla-tablas, #pantalla-fixture {
    margin-top: 20px !important;
}


/* Estado Expandido (Posiciones): 1200px */
.dashboard-container.vista-ancha, .main-grid.vista-ancha {
    max-width: 1100px !important;
    width: 100%;
}

/* Agregá esto al final de estilo.css */
.posiciones-grid-layout {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important;
    width: 100% !important;
    align-items: flex-start !important;
}

/* Fuerza que la columna izquierda ocupe todo el espacio que sobra */
.posiciones-grid-layout > div:first-child {
    flex: 1 1 65% !important;
    min-width: 0 !important;
}

/* Goleadores: 280 px al lado de las tablas; si no entra, baja y ocupa todo el ancho (ver más abajo) */
.columna-goleadores {
    flex: 1 1 280px !important;
    min-width: 0 !important;
    
    
}


/* 🛠️ FIX DEFINITIVO DE LA VISTA DE POSICIONES */

/* 1. Hace que la grilla ocupe el 100% del ancho de la pantalla y no deje la columna vacía a la derecha */
.main-grid.vista-ancha {
    display: block !important;
    width: 100% !important;
}

/* 2. Hace que la tarjeta contenedora de las tablas use todo el espacio libre */
.main-grid.vista-ancha #pantalla-tablas {
    max-width: 100% !important;
    width: 100% !important;
}

/* 3. Mantiene la tabla de posiciones a la izquierda y goleadores a la derecha */
.posiciones-grid-layout {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important;
    width: 100% !important;
    align-items: flex-start !important;
}

/* Las tablas se quedan con todo el espacio que sobra (crecen 999 veces más que Goleadores, que al lado queda en
   280 px). Cuando Goleadores no entra al lado (celular, tablet, notebook chica) baja y, sola en su renglón,
   crece al ancho completo como las otras tablas, en vez de quedar en 280 px pegada a la izquierda. */
.posiciones-grid-layout > div:first-child {
    flex: 999 1 68% !important;
    min-width: 0 !important;
}

.columna-goleadores {
    flex: 1 1 280px !important;
    min-width: 0 !important;
}

/* 🔓 LIBERAR ANCHO TOTAL EN VISTA ANCHA */
.dashboard-container.vista-ancha,
.main-grid.vista-ancha {
    max-width: 100% !important; /* O si preferís un tope amplio en monitores: 1300px !important */
    width: 100% !important;
}

/* Desbloquea la tarjeta contenedora para que no se quede en 850px */
.main-grid.vista-ancha #pantalla-tablas {
    max-width: 100% !important;
    width: 100% !important;
}
/* 1. ESTADO NORMAL (Home y demás pestañas): Freno en 1200px */
.main-grid {
    max-width: 1200px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transition: max-width 0.3s ease !important;
    /* .main-grid siempre es flex-item de .dashboard-container (display:flex).
       Por defecto un flex-item tiene min-width:auto, que lo deja crecer más
       allá de su propio max-width para no achicar el contenido más ancho que
       tenga adentro (ej. el árbol de playoffs con varias rondas en fila) —
       eso era lo que rompía el overflow-x de toda la página. */
    min-width: 0 !important;
}

/* 2. ESTADO EXPANDIDO (Únicamente al entrar a Posiciones): Estira al 100% */
.dashboard-container.vista-ancha,
.main-grid.vista-ancha {
    max-width: 100% !important; /* O 1300px si querés dejar un margen en monitores gigantes */
    min-width: 0 !important;
}
.main-grid.vista-ancha .borde-con-vistaAncha {

    border-right: 1px solid rgba(46, 218, 227, 0.25) !important;
    padding-right: 20px !important;

    
}
.main-grid.vista-ancha #pantalla-tablas {
    max-width: 100% !important;
    width: 100% !important;
}
.seccion-tabla-anual{
    margin-top: 20px;
}

.close-panel {
    color: #f43f5e;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

/* 🔀 ESTILOS ENCABEZADO TÍTULOS TOGGLE (CARRUSEL) */
.encabezado-carrusel-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 5px !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
}

.titulos-toggle-container {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    position: relative !important;
}

.titulo-toggle {
    font-family: 'Michroma', sans-serif !important;
    font-size: 18px !important;
    margin: 0 !important;
    cursor: pointer !important;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.5s ease, 
                color 0.5s ease, 
                text-shadow 0.5s ease !important;
    user-select: none !important;
    display: inline-block !important;
    will-change: transform, opacity !important;
    white-space: nowrap !important; /* 👈 PROHIBIDO romper el texto en dos renglones ("PLAY- OFFS") */
}
/*  */

/* Estado Activo: Blanco brillante */
.titulo-toggle.active {
    color: #ffffff !important;
    opacity: 1 !important;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.3) !important;
}

/*   */

/* Estado Inactivo: Opaco (grisáceo / azulado) */
.titulo-toggle.opaco {
    color: #869bd8 !important;
    opacity: 0.28 !important;
}

.titulo-toggle.opaco:hover {
    opacity: 0.75 !important;
}

/* 📐 Desplazamiento proporcional de los títulos TABLA/PLAY-OFFS, resuelto
   100% en CSS (antes se calculaba en px vía JS y no reaccionaba a resize). */
#toggle-titulo-tablas.active {
    transform: translateX(0px) scale(1) !important;
}
#toggle-titulo-tablas.opaco {
    transform: translateX(150px) scale(0.9) !important;
}
#toggle-titulo-playoffs.active {
    transform: translateX(-290px) scale(1.05) !important;
}
#toggle-titulo-playoffs.opaco {
    transform: translateX(0px) scale(0.9) !important;
}

/* 🎨 BOTÓN TRIBUNAL REPOTENCIADO */
.tab-btn-tribunal {
    background: rgba(244,63,94,0.15) !important;
    border: 1px solid #f43f5e !important;
    color: rgba(255, 76, 76, 0.95) !important;
    font-size: 11px !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    font-family: 'Michroma', sans-serif !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 0 10px rgba(244,63,94,0.2) !important;
}

.tab-btn-tribunal:hover {
    background: rgba(244,63,94,0.3) !important;
    box-shadow: 0 0 15px rgba(244,63,94,0.5) !important;
}

/* 🎠 ANIMACIÓN TIPO CARRUSEL ENTRE VISTAS */
.vista-carrusel-slide {
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.vista-carrusel-slide.seccion-oculta {
    display: none !important;
    opacity: 0 !important;
    transform: translateX(20px) !important;
}
@media (max-width:768px) {
        .titulo-toggle {
    font-family: 'Michroma', sans-serif !important;
    font-size: 12px !important;
    margin: 0 !important;
    cursor: pointer !important;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.5s ease, 
                color 0.5s ease, 
                text-shadow 0.5s ease !important;
    user-select: none !important;
    display: inline-block !important;
    will-change: transform, opacity !important;
}
#toggle-titulo-tablas.opaco {
    transform: translateX(110px) scale(0.9) !important;
}
#toggle-titulo-playoffs.active {
    transform: translateX(-190px) scale(1.05) !important;
}
.titulos-toggle-container {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: 100% !important;
        max-width: 90% !important;
        overflow-x: auto !important;
    }
.group-selector > p{
    margin-left: 2px;
}
.group-category {
    font-family: 'Oswald', sans-serif;
    color: #869bd8;
    font-size: 12px;
    letter-spacing: 1px;
    margin-top: 0px;
    display: block;
    /* box-sizing: border-box; */
    text-transform: uppercase;
}


/* 1. El menú desplegable ocupa el ancho completo de la pantalla bien centrado */
    .search-dropdown {
        position: fixed !important;
        top: 65px !important;            /* Pegado justo abajo de la top-bar */
        left: 50% !important;             /* Mueve el borde izquierdo al centro del celu */
        transform: translateX(-50%) !important; /* Desplaza exactamente la mitad de su propio ancho hacia la izquierda (CENTRADO PERFECTO) */
        width: 90vw !important;           /* Ocupa el 90% del ancho de la pantalla del celular */
        max-width: 380px !important;      /* Tope máximo para que no se vuelva gigante en tablets */
        min-width: unset !important;
        max-height: 60vh !important;       /* Máximo 60% del alto de la pantalla */
        overflow-y: auto !important;
        box-sizing: border-box !important;
        z-index: 99999 !important;
    }

    .main-grid.vista-ancha .borde-con-vistaAncha {
            border-right: none !important;
            padding-right: 0px !important;
    }
    .vista-ancha .titulos-toggle-container {
    max-width: 100% !important;
}

    /* 2. Ajuste del ítem del resultado */
    .search-result-item {
        padding: 10px 12px !important;
    }

    .search-item-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .search-item-name {
        font-size: 11px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .search-item-badge {
        font-size: 8px !important;
        padding: 2px 5px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    /* 3. Botones parejos de lado a lado */
    .search-item-actions {
        display: flex !important;
        gap: 8px !important;
        margin-top: 8px !important;
    }

    .search-action-btn {
        flex: 1 !important;
        text-align: center !important;
        font-size: 9px !important;
        padding: 6px 4px !important;
    }

}
/* Detalles de series (Ida / Vuelta / Penales) */
.match-series-info {
    background: rgba(3, 8, 27, 0.8) !important;
    color: #869bd8 !important;
    font-size: 9px !important;
    font-family: 'Oswald', sans-serif !important;
    text-align: center !important;
    padding: 3px 6px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.match-badge-penales {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    background: #f43f5e !important;
    color: white !important;
    font-size: 8px !important;
    font-family: 'Oswald', sans-serif !important;
    padding: 2px 6px !important;
    border-bottom-left-radius: 6px !important;
    font-weight: bold !important;
}

/* Espaciados entre rondas para alineación visual */
.match-spaced { margin-top: 25px !important; margin-bottom: 25px !important; }
.match-spaced-semis { margin-top: 60px !important; }
.match-final { border-color: #f2c00e !important; box-shadow: 0 0 20px rgba(242, 192, 14, 0.25) !important; }

/* 🎛️ CONTROLES Y SWITCH DE VISTA COMPACTA */
.playoffs-controls-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 10px 0 15px 0 !important;
}

/* Pestañas Copa Oro / Copa Plata del cuadro (Hecho #33): el activo toma el color de su copa, como en la tabla */
.btn-playoff-copa[data-copa-playoff="oro"].active { color: #f2c00e; border-color: rgba(242, 192, 14, 0.6); }
.btn-playoff-copa[data-copa-playoff="plata"].active { color: #c5cedc; border-color: rgba(197, 206, 220, 0.6); }

/* Título de la copa arriba de las llaves (solo con Oro y Plata) */
.titulo-copa-playoff {
    font-family: 'Michroma', sans-serif;
    font-size: 18px;
    letter-spacing: 3px;
    text-align: center;
    margin: 6px 0 14px;
    color: #f2c00e;
    text-shadow: 0 0 12px rgba(242, 192, 14, 0.35);
}
.titulo-copa-playoff[data-copa="plata"] { color: #c5cedc; text-shadow: 0 0 12px rgba(197, 206, 220, 0.3); }
.titulo-copa-playoff[hidden] { display: none; }
@media (max-width: 600px) {
    .titulo-copa-playoff { font-size: 15px; letter-spacing: 2px; margin-bottom: 10px; }
}

/* Goleadores por copa: segunda fila de pestañas debajo de Superior / Básico */
.tabs-gol-copa { display: flex; gap: 5px; justify-content: center; margin-bottom: 12px; }
.tabs-gol-copa[hidden] { display: none; }
.tabs-gol-copa .tab-btn { font-size: 10px; padding: 4px 8px; }
.btn-gol-copa[data-copa-gol="oro"].active { color: #f2c00e; border-color: rgba(242, 192, 14, 0.6); }
.btn-gol-copa[data-copa-gol="plata"].active { color: #c5cedc; border-color: rgba(197, 206, 220, 0.6); }




/* ⚽ FILA DE MARCADORES: IDA | VUELTA | GLOBAL (estructura base de .team-row consolidada al final del archivo) */
.scores-group {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.score-num {
    font-family: 'Michroma', sans-serif !important;
    font-size: 11px !important;
}

/* Partidos de Ida / Vuelta: Color secundario discreto */
.score-leg {
    color: #64748b !important;
}

/* Marcador Global: Resalta en neón o verde para el ganador */
.score-global {
    color: #94a3b8 !important;
    font-weight: bold !important;
}

.team-row.winner .score-global {
    color: #4ade80 !important; /* Verde victoria para el global */
}

.score-penal {
    color: #f43f5e !important;
    font-size: 9px !important;
}


.btn-ronda-nav.active{
    padding: 3px 5px !important;
}

/* ⚽ TARJETA DE PARTIDO DESPLEGABLE RESTRUCTURADA */
.match-card-desplegable {
    background: rgba(10, 29, 84, 0.6) !important;
    border: 1px solid rgba(26, 50, 116, 0.8) !important;
    border-radius: 5px !important;
    margin-bottom: 12px !important;
    padding: 12px 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.match-card-desplegable:hover {
    border-color: rgba(46, 218, 227, 0.5) !important;
    background: rgba(10, 29, 84, 0.85) !important;
}

.match-card-desplegable.desplegado {
    border-color: rgba(46, 218, 227, .75) !important;
    background: rgba(4, 12, 38, 0.95) !important;
}

/* Grilla de 3 Columnas */
.match-header-grid {
    display: grid !important;
    /* El centro (VS, día, cancha y horario) nunca pasa del 45%: si no, con textos largos como
       "Cancha a confirmar | Horario a confirmar" les comía el ancho a los equipos. */
    grid-template-columns: 1fr fit-content(45%) 1fr !important;
    align-items: center !important;
    gap: 10px !important;
}

.col-team {
    display: flex !important;
    align-items: center !important;
}

.col-local {
    justify-content: flex-start !important;
}

.col-visita {
    justify-content: flex-end !important;
    gap: 8px !important; /* Mantiene la flechita pegada al nombre */
}

.col-center {
    text-align: center !important;
    padding: 0 10px !important;
}

.score-main {
    font-family: 'Michroma', sans-serif !important;
    font-size: 16px !important;
    color: #2edae3 !important;
    font-weight: bold !important;
    display: block !important;
}

.vs-badge {
    font-family: 'Michroma', sans-serif !important;
    font-size: 13px !important;
    color: #f43f5e !important;
    font-weight: bold !important;
}

.match-meta-info {
    font-family: 'Oswald', sans-serif !important;
    font-size: 9px !important;
    color: #869bd8 !important;
    margin-top: 3px !important;
    line-height: 1.4 !important;
}

/* El nombre del equipo se corta entre palabras, nunca letra por letra. */
.col-team .team-name {
    word-break: normal;
    overflow-wrap: break-word;
    min-width: 0;
}

.arrow-indicator {
    color: #2edae3 !important;
    font-size: 9px !important;
    transition: transform 0.2s ease !important;
}

/* 📐 LÍNEA DIVISORIA VERTICAL Y DETALLES */
.drawer-divider-top {
    border-top: 1px dashed rgba(46, 218, 227, 0.2) !important;
    margin: 12px 0 !important;
}

.split-details-container {
    display: flex !important;
    align-items: stretch !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 11px !important;
    color: #e2e8f0 !important;
}

.split-col {
    flex: 1 !important;
    padding: 0 10px !important;
}

.col-left {
    text-align: right !important; /* Alineado hacia el centro */
}

.col-right {
    text-align: left !important; /* Alineado hacia el centro */
}

/* Línea divisoria al medio */
.split-vertical-line {
    width: 1px !important;
    background: rgba(46, 218, 227, 0.3) !important;
    margin: 0 5px !important;
}

/* Dorsal al lado del nombre en los goleadores, las tarjetas y el MVP: se ve, pero sin robarle lugar al nombre */
.dorsal-tenue {
    opacity: 0.5;
}

.mvp-banner .dorsal-tenue {
    opacity: 0.7;
}

/* 3-0 automático del Art. 17 Bis: etiqueta debajo del resultado y explicación en el desplegable (18/10/2026) */
.match-meta-auto {
    display: block;
    margin-top: 2px;
    font-family: 'Oswald', sans-serif;
    font-size: 9px;
    font-weight: normal;
    color: rgba(134, 155, 216, 0.75);
}

.resultado-auto-banner {
    margin-top: 4px;
    padding: 6px 10px;
    border: 1px solid rgba(242, 192, 14, 0.3);
    border-radius: 3px;
    background: rgba(242, 192, 14, 0.08);
    color: #f2c00e;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    text-align: center;
}

/* Un equipo reemplazado por otro (Art. 9 Bis): nota chica bajo el partido que jugó el reemplazado */
.reemplazo-banner {
    margin: 4px 0 0;
    color: #869bd8;
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    text-align: center;
}

/* Banner de MVP abajo del partido */
.mvp-banner {
    margin-top: 12px !important;
    text-align: center !important;
    font-size: 10px !important;
    color: #869bd8 !important;
    font-family: 'Oswald', sans-serif !important;
    padding: 5px 10px !important;
}

/* 🔎 BUSCADOR GLOBAL DESPLEGABLE */
.search-container {
    position: relative !important;
}

.search-dropdown {
    position: absolute ;
    top: calc(100% + 8px) ;
    left: 0 ;
    width: 100% ;
    min-width: 260px ;
    background: rgba(4, 12, 38, 0.95) ;
    border: 1px solid #2edae3 ;
    border-radius: 4px ;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(46, 218, 227, 0.2) ;
    backdrop-filter: blur(10px) ;
    z-index: 1000 !important;
    max-height: 320px ;
    overflow-y: auto !important;
    padding: 8px 0 !important;
}

.search-result-item {
    padding: 10px 14px !important;
    border-bottom: 1px solid rgba(26, 50, 116, 0.4) !important;
    transition: background 0.2s ease !important;
}

.search-result-item:last-child {
    border-bottom: none !important;
}

.search-result-item:hover {
    background: rgba(26, 50, 116, 0.5) !important;
}

.search-item-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 6px !important;
}

.search-item-name {
    font-family: 'Oswald', sans-serif !important;
    font-size: 12px !important;
    color: #ffffff !important;
}

.search-item-badge {
    font-size: 9px !important;
    font-family: 'Oswald', sans-serif !important;
    color: #2edae3 !important;
    background: rgba(46, 218, 227, 0.1) !important;
    padding: 2px 6px !important;
    border-radius: 2px !important;
}

.search-item-actions {
    display: flex !important;
    gap: 6px !important;
    margin-top: 6px !important;
}

.search-action-btn {
    font-family: 'Oswald', sans-serif !important;
    font-size: 9px !important;
    padding: 4px 8px !important;
    border-radius: 2px !important;
    border: 1px solid rgba(46, 218, 227, 0.3) !important;
    background: rgba(10, 29, 84, 0.6) !important;
    color: #869bd8 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.search-action-btn:hover {
    border-color: #2edae3 !important;
    color: #ffffff !important;
    background: #1a3274 !important;
}

.btn-fecha-select {
    padding: 5px !important;
}



/* 💡 EFECTO DE DESTALLO EN NEÓN AL BUSCAR EQUIPO */
/* 💡 EFECTO DE DESTILLO Y TITILEO NEÓN EN LA FILA BUSCADA */
/* 💡 EFECTO TITILEO Y DESTELLO NEÓN REPARADO */
/* 💡 EFECTO TITILEO Y DESTELLO NEÓN REPARADO */

@keyframes titileoNeon {
    0%, 50%, 100% {
        background-color: rgba(46, 218, 227, 0.85);
        color: #ffffff;
        
    }
    25%, 75% {
        background-color: transparent;
        color: #ffffff;
        box-shadow: none;
    }
}

/* Se aplica sobre el <tr> desde el JS; el selector apunta a sus celdas
   con especificidad alta para superar las reglas de tabla existentes */
tr.fila-resaltada td {
    animation: titileoNeon 0.4s ease-in-out 1;  /* 3 parpadeos */
    animation-fill-mode: forwards;
}

/* ============================================================
   ANIMACIONES DE BÚSQUEDA — TITILEO NEÓN CORREGIDO
   (Reemplaza el bloque roto de titileoNeon que tenía !important
   dentro de @keyframes, lo cual es CSS inválido)
   ============================================================ */
 
/* 1. TITILEO EN FILA DE TABLA (tr.fila-resaltada) */

/* 2. TITILEO EN MATCH-CARD (partido en el fixture) */
@keyframes titileoNeonCard {
    0%, 50%, 100% {
        background-color: rgba(46, 218, 227, 0.85);
        color: #ffffff;
    }
    25%, 75% {
        background-color: rgba(255, 255, 255, 0.03);
        border-left-color:  #2c68e7;
        border-right-color: #2c68e7;
        box-shadow: none;
    }
}
 
.match-card.match-card-resaltada {
    animation: titileoNeonCard 0.4s ease-in-out 1;
}

/* 💡 DESTELLO NEÓN PARA LA TARJETA DEL PARTIDO ENCONTRADO */
@keyframes destelloTarjeta {
    0%, 100% {
        border-color: rgba(26, 50, 116, 0.8) !important;
        box-shadow: none !important;
    }
    25%, 75% {
        border-color: #2edae3 !important;
        box-shadow: 0 0 25px #2edae3, inset 0 0 10px rgba(46, 218, 227, 0.3) !important;
        background: rgba(10, 29, 84, 0.95) !important;
    }
}

.match-card-desplegable.match-card-resaltada {
    animation: destelloTarjeta 1.8s ease-in-out !important;
}

/* ============================================================
   🔴 PUNTITO ROJO Y DESPLEGABLE DE NOTIFICACIONES (scroll + leídas)
   ============================================================ */
.notif-badge-dot {
    position: absolute !important;
    top: -2px !important;
    right: -2px !important;
    width: 10px !important;
    height: 10px !important;
    background-color: #f43f5e !important;
    border: 2px solid #0a1d54 !important;
    border-radius: 50% !important;
    box-shadow: 0 0 8px #f43f5e !important;
    display: none;
}

.notif-badge-dot.activo {
    display: block !important;
    animation: pulsoNotif 1.5s infinite !important;
}

@keyframes pulsoNotif {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.7); }
    70% { transform: scale(1.2); box-shadow: 0 0 0 6px rgba(244, 63, 94, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

/* 📢 MENÚ DESPLEGABLE */
.notif-dropdown {
    position: absolute !important;
    top: calc(100% + 12px) !important;
    right: 0 !important;
    width: 300px !important;
    background: rgba(4, 12, 38, 0.98) !important;
    
    border-radius: 5px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 15px rgba(46, 218, 227, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    z-index: 99999 !important;
    overflow: hidden !important;
}

.notif-header {
    background: rgba(10, 29, 84, 0.9) !important;
    padding: 10px 12px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid rgba(46, 218, 227, 0.2) !important;
    font-family: 'Michroma', sans-serif !important;
    font-size: 12px !important;
    color: #ffffff !important;
}

/* 📜 CONTENEDOR CON DESLIZAMIENTO AUTO */
.notif-body {
    max-height: 240px !important; /* Altura ideal para mostrar 3 avisos cómodamente */
    overflow-y: auto !important;   /* Habilita deslizar si hay más de 3 */
    padding: 8px !important;
    -webkit-overflow-scrolling: touch;
}

.notif-body::-webkit-scrollbar {
    width: 4px;
}
.notif-body::-webkit-scrollbar-thumb {
    background: #2edae3;
    border-radius: 2px;
}

/*  tarjeta NO LEÍDA (Destaca en cian) */
.notif-item {
    background: rgba(10, 29, 84, 0.6) !important;
    border-left: 3px solid #2edae3 !important;
    padding: 8px 10px !important;
    margin-bottom: 6px !important;
    border-radius: 2px !important;
    font-family: 'Oswald', sans-serif !important;
    transition: all 0.3s ease !important;
}

/* tarjeta LEÍDA (Pasa a un estado apagado y sutil) */
.notif-item.leida {
    opacity: 0.55 !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-left-color: #869bd8 !important;
}

.notif-item.urgente {
    border-left-color: #f43f5e !important;
    background: rgba(244, 63, 94, 0.12) !important;
}

.notif-item-title {
    font-size: 11px !important;
    color: #fff !important;
    margin-bottom: 2px !important;
}

.notif-item-desc {
    font-size: 9px !important;
    color: #cbd5e1 !important;
    line-height: 1.4 !important;
}

.notif-item-time {
    font-size: 8px !important;
    color: #869bd8 !important;
    margin-top: 4px !important;
    text-align: right !important;
}
#btn-marcar-leido:hover,#btn-limpiar-notifs:hover,#btn-marcar-leido-sidebar:hover,#btn-limpiar-notifs-sidebar:hover{
font-size: 10px !important;
}
@media (max-width: 768px) {
    .notif-dropdown {
        position: fixed !important;
        top: 65px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90vw !important;
        max-width: 350px !important;
    }
}

/* ============================================================
   📢 FIX DEFINITIVO NOTIFICACIONES SIDEBAR + OVERFLOW
   ============================================================ */

/* 1. Cuando la sidebar está fijada (panel de alertas abierto):
      Forzamos a que el logo, los textos y la sección inferior estén 100% VISIBLES
      sin importar si scrolleaste o si moviste el mouse afuera. */
body aside.sidebar.sidebar-fijada {
    width: 210px !important;
    overflow: visible !important; /* 👈 Clave 1: permite que el desplegable asome a la derecha */
}

body aside.sidebar.sidebar-fijada .sidebar-logo-section {
    max-height: 80px !important;
    padding: 15px 15px !important;
    opacity: 1 !important;
    pointer-events: all !important;
}

body aside.sidebar.sidebar-fijada .sidebar-bottom {
    max-height: 250px !important;
    opacity: 1 !important;
    padding: 10px 0 15px 0 !important;
    pointer-events: all !important;
    overflow: visible !important; /* 👈 Clave 2: evita el recote inferior */
}

body aside.sidebar.sidebar-fijada .sidebar-bottom-item {
    width: calc(100% - 20px) !important;
    overflow: visible !important; /* 👈 Clave 3: evita que el botón recorte su propio popup */
}

body aside.sidebar.sidebar-fijada .nav-label,
body aside.sidebar.sidebar-fijada .sidebar-logo-text,
body aside.sidebar.sidebar-fijada .sidebar-bottom-label {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* 2. Posicionamiento del desplegable flotante pegado a la derecha de la Sidebar en PC */
.notif-dropdown-sidebar {
    position: absolute !important;
    bottom: 0 !important;
    left: calc(100% + 15px) !important; /* Se ubica 15px a la derecha de la barra expandida */
    width: 300px !important;
    background: rgba(4, 12, 38, 0.98) !important;
    border-radius: 5px !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.95), 0 0 20px rgba(46, 218, 227, 0.3) !important;
    backdrop-filter: blur(12px) !important;
    z-index: 999999 !important;
    overflow: hidden !important;
}

/* En celulares se ubica flotante en el centro de la pantalla */
@media (max-width: 768px) {
    .notif-dropdown-sidebar {
        position: fixed !important;
        bottom: 75px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90vw !important;
        max-width: 350px !important;
    }
}
/* ============================================================
   🛡️ ESTILOS MODAL EQUIPO (PALETA OFICIAL MITRE LEAGUE)
   ============================================================ */

/* ============================================================
   🛡️ FIX SCROLLBAR MODAL EQUIPO (SIN DESBORDE Y CON PALETA SITIO)
   ============================================================ */

/* 1. Ancho de la barra */
.modal-equipo-card::-webkit-scrollbar{
    width: 6px !important; /* Ancho fino e higiénico */
}
body::-webkit-scrollbar{
    width: 8px;
}

/* 2. Pista del scroll (Track): Despegada de las esquinas curvas */
.modal-equipo-card::-webkit-scrollbar-track {
    background: rgba(4, 12, 38, 0.5) !important; /* Fondo azul noche sutil */
    border-radius: 4px !important;
    margin: 12px 0 !important; /* 👈 CLAVE: Evita que pise el border-radius del modal */
}
body::-webkit-scrollbar-track {
background: rgba(4, 12, 38, 0.5) !important; /* Fondo azul noche sutil */
    border-radius: 4px !important;
    margin: 0 !important; /* 👈 CLAVE: Evita que pise el border-radius del modal */
}
/* 3. Botón de agarre (Thumb): Neón translúcido */
.modal-equipo-card::-webkit-scrollbar-thumb{
    background: rgba(46, 218, 227, 0.5) !important; /* Celeste neón de la liga */
    border-radius: 4px !important;
    /* border: 1px solid rgba(46, 218, 227, 0.5) !important; */
    transition: background 0.2s ease !important;
}
body::-webkit-scrollbar-thumb {
    background: rgb(10, 29, 84) !important; /* Celeste neón de la liga */
    border-radius: 4px !important;
    /* border: 1px solid rgba(46, 218, 227, 0.5) !important; */
    transition: background 0.2s ease !important;
}
/* Hover al pasar el cursor */
.modal-equipo-card::-webkit-scrollbar-thumb:hover, body::-webkit-scrollbar-thumb:hover{
    background: #2edae3 !important; /* Iluminación neón intensa */
    box-shadow: 0 0 8px rgba(46, 218, 227, 0.8) !important;
}
.modal-equipo-card {
    position: relative !important;
    max-width: 780px !important;
    width: 100% !important;
    max-height: 88vh !important;
    background: rgba(4, 12, 38, 0.98) !important; /* Fondo azul noche oficial */
    border: 1px solid rgba(46, 218, 227, 0.3) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(46, 218, 227, 0.15) !important;
    border-radius: 6px !important;
    padding: 22px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    backdrop-filter: blur(12px) !important;
    animation: modalPopUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.close-modal-equipo {
    position: absolute !important;
    top: 14px !important;
    right: 18px !important;
    color: #fff !important;
    font-size: 26px !important;
    cursor: pointer !important;
    z-index: 10 !important;
    transition: color 0.2s ease !important;
}

.close-modal-equipo:hover {
    color: #f43f5e !important;
}

.equipo-modal-header {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 18px !important;
    border-bottom: 1px dashed rgba(46, 218, 227, 0.2) !important;
    padding-bottom: 15px !important;
}

.equipo-modal-header h2 {
    font-family: 'Michroma', sans-serif !important;
    color: #fff !important;
    font-size: 20px !important;
    margin: 0 0 4px 0 !important;
}

.badge-categoria {
    font-family: 'Oswald', sans-serif !important;
    font-size: 10px !important;
    color: #869bd8 !important;
    background: rgba(26, 50, 116, 0.3) !important;
    padding: 3px 8px !important;
    border-radius: 2px !important;
    border: 1px solid rgba(26, 50, 116, 0.5) !important;
}

/* Grilla de Métricas en el Modal */
.equipo-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
}

.stat-box {
    background: rgba(10, 29, 84, 0.4) !important;
    border: 1px solid rgba(26, 50, 116, 0.4) !important;
    border-radius: 4px !important;
    padding: 10px 6px !important;
    text-align: center !important;
}

.stat-label {
    display: block !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 9px !important;
    color: #869bd8 !important;
    text-transform: uppercase !important;
}

.stat-val {
    font-family: 'Michroma', sans-serif !important;
    font-size: 15px !important;
    color: #fff !important;
    font-weight: bold !important;
    margin-top: 4px !important;
    display: block !important;
}

.stat-val.highlight { color: #2edae3 !important; }
.stat-val.gold { color: #f2c00e !important; }
.stat-val.green { color: #4ade80 !important; }

/* Navegación de pestañas internas */
.equipo-tabs-nav {
    display: flex !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    margin-bottom: 15px !important;
}

.btn-tab-modal {
    font-size: 11px !important;
    padding: 6px 16px !important;
}

/* Columnas de foto y dorsal angostas: sin esto, el ancho de "auto layout" de la tabla
   las infla para acompañar el resto de las columnas y queda un hueco vacío. */
#tab-modal-jugadores td:first-child,
#tab-modal-jugadores th:first-child {
    width: 58px !important;
    padding-left: 6px !important;
    padding-right: 2px !important;
}
#tab-modal-jugadores td:nth-child(2),
#tab-modal-jugadores th:nth-child(2) {
    width: 26px !important;
    padding-left: 2px !important;
    padding-right: 4px !important;
}

/* Avatar del jugador en la tabla: lo bastante grande para que se reconozca al jugador.
   Sin aro de color (el celeste se veía mal); un borde neutro solo lo separa del fondo. */
.player-avatar-img {
    width: 52px !important;
    height: 52px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Jugador sin foto: silueta neutra en vez de la lupa */
.player-avatar-img.player-avatar-vacio {
    display: inline-flex !important;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    background: rgba(26, 50, 116, 0.35);
    color: #869bd8;
}
.player-avatar-vacio svg {
    width: 80%;
    height: 80%;
    fill: currentColor;
    opacity: 0.55;
}

/* Link Instagram */
.ig-player-link {
    color: #2edae3 !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 10px !important;
    font-family: 'Oswald', sans-serif !important;
}

.ig-player-link:hover {
    text-decoration: underline !important;
    color: #ffffff !important;
}

/* Banner de quita de puntos / sanción de partido */
.sancion-partido-banner {
    background: rgba(244, 63, 94, 0.1) !important;
    border: 1px solid rgba(244, 63, 94, 0.3) !important;
    color: #f43f5e !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 9px !important;
    padding: 5px 10px !important;
    border-radius: 3px !important;
    margin-top: 8px !important;
    text-align: center !important;
}

/* Quita de puntos ya levantada (el equipo pagó el 50 %) */
.sancion-partido-banner.sancion-levantada {
    background: rgba(74, 222, 128, 0.1) !important;
    border-color: rgba(74, 222, 128, 0.3) !important;
    color: #4ade80 !important;
}

@media (max-width: 768px) {
    .equipo-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .modal-equipo-card {
        padding: 16px !important;
    }
}

/* ============================================================
   PERFIL DEL JUGADOR (otra vista dentro del modal del equipo)
   ============================================================ */
#modal-equipo-tbody-jugadores tr[data-jugador],
#tbody-goleadores tr[data-jugador] {
    cursor: pointer;
}
#modal-equipo-tbody-jugadores tr[data-jugador]:focus-visible,
#tbody-goleadores tr[data-jugador]:focus-visible {
    outline: 1px solid #869bd8;
    outline-offset: -1px;
}

.perfil-jugador-hint {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    color: #869bd8;
    margin: 0 0 8px 0;
}

/* No llega hasta la X de cerrar, que está arriba a la derecha */
.perfil-jugador-volver {
    display: inline-block;
    max-width: calc(100% - 44px);
    margin: 0 0 16px 0;
    padding: 7px 12px;
    background: transparent;
    border: 1px solid rgba(26, 50, 116, 0.8);
    border-radius: 3px;
    color: #a9bce8;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}
.perfil-jugador-volver:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.perfil-jugador-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed rgba(134, 155, 216, 0.25);
}

/* La foto se sube a 250 px: a 120 se ve nítida. Sin aro de color, como en la tabla. */
.perfil-jugador-foto {
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(26, 50, 116, 0.35);
    color: #869bd8;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.perfil-jugador-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.perfil-jugador-foto svg {
    width: 80%;
    height: 80%;
    fill: currentColor;
    opacity: 0.55;
}

.perfil-jugador-datos {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}
.perfil-jugador-dorsal {
    font-family: 'Michroma', sans-serif;
    font-size: 13px;
    color: #869bd8;
}
#modal-vista-jugador .perfil-jugador-nombre {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.15;
    color: #fff;
    margin: 0;
    overflow-wrap: anywhere;
}

.perfil-jugador-ranking {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 12px;
    border-radius: 3px;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    letter-spacing: 0.3px;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.3);
}
.perfil-jugador-ranking[hidden] { display: none; }
.perfil-jugador-ranking.copa-oro {
    color: #f2c00e;
    background: rgba(242, 192, 14, 0.08);
    border-color: rgba(242, 192, 14, 0.35);
}
.perfil-jugador-ranking.copa-plata {
    color: #c5cedc;
    background: rgba(197, 206, 220, 0.08);
    border-color: rgba(197, 206, 220, 0.35);
}
.perfil-jugador-ranking.sin-goles {
    color: #869bd8;
    background: rgba(26, 50, 116, 0.3);
    border-color: rgba(26, 50, 116, 0.6);
}

.equipo-stats-grid.perfil-jugador-stats {
    grid-template-columns: repeat(5, 1fr) !important;
}
.perfil-jugador-stats .stat-label .tarjeta-ico {
    margin-right: 4px;
}

.perfil-jugador-subtitulo {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 1px;
    color: #869bd8;
    margin: 4px 0 10px 0;
}
.perfil-jugador-partidos {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.perfil-partido {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(26, 50, 116, 0.4);
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
}
.perfil-partido-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.perfil-partido-fecha {
    font-size: 10px;
    letter-spacing: 0.5px;
    color: #869bd8;
}
.perfil-partido-rival {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    overflow-wrap: anywhere;
}
.perfil-partido-detalle {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}
.perfil-partido-res {
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
}
.perfil-partido-res.res-G { color: #4ade80; background: rgba(74, 222, 128, 0.1); }
.perfil-partido-res.res-E { color: #cbd5e1; background: rgba(203, 213, 225, 0.08); }
.perfil-partido-res.res-P { color: #f43f5e; background: rgba(244, 63, 94, 0.1); }
.perfil-partido-goles {
    font-size: 12px;
    color: #4ade80;
}
.perfil-partido .tarjeta-ico {
    margin-right: 2px;
}
.perfil-partido-mvp {
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    letter-spacing: 0.5px;
    color: #869bd8;
}
.perfil-jugador-vacio {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    color: #869bd8;
    text-align: center;
    padding: 12px;
    margin: 0;
}

/* Celular: 3 cajas arriba (PJ, goles, MVP) y 2 abajo (tarjetas), sin huecos; foto un poco más chica */
@media (max-width: 768px) {
    .equipo-stats-grid.perfil-jugador-stats {
        grid-template-columns: repeat(6, 1fr) !important;
    }
    .perfil-jugador-stats .stat-box:nth-child(-n+3) {
        grid-column: span 2;
    }
    .perfil-jugador-stats .stat-box:nth-child(n+4) {
        grid-column: span 3;
    }
    .perfil-jugador-foto {
        flex-basis: 96px;
        width: 96px;
        height: 96px;
    }
    .perfil-jugador-header {
        gap: 14px;
    }
    #modal-vista-jugador .perfil-jugador-nombre {
        font-size: 20px;
    }
}

/* ============================================================
   🔒 ESCUDO DE SEGURIDAD: OCULTA TESORERÍA SENSIBLE AL STAFF
   ============================================================ */
body.rol-staff .solo-admin {
    display: none !important;
}

/* ============================================================
   🛠️ FIX TESORERÍA: LAYOUT FLEX + TARJETAS RESPONSIVE Y CAMPOS OSCUROS
   ============================================================ */


/* 1. Forzamos a Tesorería a apilarse verticalmente SOLO si no está oculta */
#sec-tesoreria:not(.seccion-oculta-staff) {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    width: 100% !important;
}

/* 2. Sub-pestañas de conmutación prolijas */
.sub-tabs-tesoreria {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: center !important;
    width: 100% !important;
    margin-bottom: 5px !important;
}

/* 3. Inputs oscuros con borde neón (chau fondo blanco feo) */
.input-monto-teso {
    background-color: #040c26 !important;
    border: 1px solid #1a3274 !important;
    color: #2edae3 !important;
    border-radius: 3px !important;
    padding: 8px 10px !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-variant-numeric: tabular-nums !important;
    letter-spacing: 0.3px !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 140px !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.input-monto-teso:focus {
    border-color: #2edae3 !important;
    box-shadow: 0 0 8px rgba(46, 218, 227, 0.4) !important;
}

/* 4. Tarjetas visuales de partido para Tesorería */
.teso-match-card {
    background: rgba(10, 29, 84, 0.6) !important;
    border: 1px solid rgba(44, 104, 231, 0.4) !important;
    border-radius: 5px !important;
    padding: 16px !important;
    margin-bottom: 15px !important;
    text-align: left !important;
}

/* Título de cada turno en Aranceles por Partido (los partidos van agrupados por fecha y turno) */
.teso-turno-titulo {
    margin: 18px 0 8px;
    padding: 6px 10px;
    border-left: 3px solid #2edae3;
    border-radius: 3px;
    background: rgba(46, 218, 227, 0.08);
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-align: left;
}

.teso-turno-titulo:first-child { margin-top: 0; }
.teso-turno-cantidad { color: #869bd8; font-size: 12px; }

.teso-match-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px dashed rgba(46, 218, 227, 0.2) !important;
    padding-bottom: 8px !important;
    margin-bottom: 12px !important;
    font-size: 12px !important;
    color: #a9bce8 !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.teso-match-teams-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
}

@media (max-width: 650px) {
    .teso-match-teams-grid {
        grid-template-columns: 1fr !important; /* En celular se apila equipo local sobre visitante */
    }
}

.teso-team-box {
    background: rgba(4, 12, 38, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 4px !important;
    padding: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.teso-team-name {
    font-family: 'Michroma', sans-serif !important;
    font-size: 14px !important;
    color: #ffffff !important;
    line-height: 1.4 !important;
    text-transform: uppercase;
    word-break: break-word;
}

.teso-inputs-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
}

.teso-inputs-row label {
    font-size: 12px !important;
    color: #a9bce8 !important;
}

/* Art. 17 Bis: asistencia, avisos y chips de sanción en Tesorería */
.select-asist-teso {
    background-color: #040c26 !important;
    border: 1px solid #1a3274 !important;
    color: #2edae3 !important;
    border-radius: 3px !important;
    padding: 8px 10px !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 13px !important;
    width: 100% !important;
    max-width: 160px !important;
    outline: none !important;
}

.select-asist-teso:focus {
    border-color: #2edae3 !important;
}

.teso-nota {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    color: #a9bce8;
    line-height: 1.4;
}

.teso-chip {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    padding: 6px 8px;
    border-radius: 3px;
    text-align: center;
    line-height: 1.4;
}

.teso-chip-rojo { background: rgba(244, 63, 94, 0.12); border: 1px solid rgba(244, 63, 94, 0.35); color: #f43f5e; }
.teso-chip-verde { background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.3); color: #4ade80; }
.teso-chip-gris { background: rgba(134, 155, 216, 0.1); border: 1px solid rgba(134, 155, 216, 0.3); color: #869bd8; }
/* Deuda de inscripción del equipo en Aranceles por Partido (ámbar: no es una sanción) */
.teso-chip-inscripcion { margin-top: 8px; background: rgba(242, 192, 14, 0.1); border: 1px solid rgba(242, 192, 14, 0.35); color: #f2c00e; }

/* Inscripciones por Jugador: tarjetas por equipo (reemplaza la tabla de 6 columnas, ilegible en celular) */
.teso-insc-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 15px !important;
    margin-top: 15px !important;
}

.teso-insc-resumen {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    border-top: 1px dashed rgba(255, 255, 255, 0.08) !important;
    padding-top: 10px !important;
    margin-top: 2px !important;
}

.teso-insc-total {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    color: #a9bce8;
    font-weight: bold;
}

/* Beneficio de inscripción (exento o % de descuento) */
.teso-chip-dorado { background: rgba(242, 192, 14, 0.1); border: 1px solid rgba(242, 192, 14, 0.35); color: #f2c00e; }
.teso-insc-benef-estado:empty { display: none; }
.teso-insc-benef-estado .teso-chip { display: block; text-align: left; word-break: break-word; }

.teso-insc-bonif,
.teso-balance-bonif {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: normal;
    color: #f2c00e;
}

.teso-balance-bonif { font-size: 10px; margin-top: 4px; }

.teso-insc-benef { border-top: 1px dashed rgba(255, 255, 255, 0.08); padding-top: 6px; }
.teso-insc-benef summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; font-family: 'Oswald', sans-serif; font-size: 12px; color: #869bd8; }
.teso-insc-benef summary::-webkit-details-marker { display: none; }
.teso-insc-benef summary::before { content: '\25B8'; margin-right: 6px; }
.teso-insc-benef[open] summary::before { content: '\25BE'; }
.teso-insc-benef[open] summary { margin-bottom: 8px; }
.teso-insc-benef .teso-inputs-row { margin-bottom: 8px; }
.teso-insc-benef [hidden] { display: none !important; }
.teso-insc-fila-motivo label { display: block; font-size: 12px; color: #a9bce8; margin-bottom: 4px; }
.teso-insc-benef .in-insc-benef-motivo { max-width: 100% !important; text-align: left !important; font-size: 13px !important; font-weight: normal !important; }

/* Recaudación por Fecha (solo Coordinador) */
.teso-recaud-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.teso-recaud-titulo {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
}

.teso-recaud-fila {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    color: #a9bce8;
}

.teso-recaud-fila strong { font-size: 14px; color: #ffffff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.teso-recaud-fila strong.teso-recaud-ingreso { color: #4ade80; }
.teso-recaud-fila strong.teso-recaud-egreso { color: #f43f5e; }
.teso-recaud-neto { border-top: 1px dashed rgba(255, 255, 255, 0.12); padding-top: 8px; }
.teso-recaud-neto span { color: #ffffff; font-weight: bold; }
.teso-recaud-bonif { color: #f2c00e; font-size: 11px; }
.teso-recaud-bonif span:last-child { white-space: nowrap; }
.teso-recaud-sueltos { margin: 2px 0 6px; padding: 6px 8px; border: 1px dashed rgba(242, 192, 14, 0.4); border-radius: 3px; }
.teso-recaud-sueltos .teso-nota { margin: 0 0 4px; }
.teso-recaud-suelto { font-size: 11px; }
.teso-recaud-suelto span { overflow-wrap: anywhere; }
.teso-recaud-suelto strong { font-size: 12px; color: #f2c00e; }

.teso-recaud-total { border-color: #f2c00e !important; }
.teso-recaud-total-titulo { font-family: 'Michroma', sans-serif; font-size: 13px; color: #f2c00e; text-transform: uppercase; }
.teso-recaud-total .teso-recaud-neto strong { font-family: 'Michroma', sans-serif; font-size: 15px; }

/* Efectivo y Mercado Pago por separado (18/10/2026) */
.teso-recaud-medio { font-size: 11px; padding-left: 12px; }
.teso-recaud-medio span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.teso-recaud-queda { margin-top: 8px; padding: 8px 10px; border: 1px solid rgba(46, 218, 227, 0.35); border-radius: 3px; background: rgba(46, 218, 227, 0.06); }
.teso-recaud-queda-titulo { display: block; margin-bottom: 4px; font-family: 'Oswald', sans-serif; font-size: 11px; letter-spacing: 0.5px; color: #2edae3; text-transform: uppercase; }
.teso-recaud-queda-montos { display: flex; flex-wrap: wrap; gap: 4px 16px; font-family: 'Oswald', sans-serif; font-size: 12px; color: #a9bce8; }
.teso-recaud-queda-montos strong { margin-left: 4px; font-size: 14px; color: #ffffff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.teso-recaud-queda-montos strong.teso-recaud-egreso { color: #f43f5e; }
.teso-balance-medios { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 12px; text-align: center; }
.teso-balance-medio { padding: 10px; border: 1px solid #2edae3; border-radius: 4px; background: rgba(4, 12, 38, 0.8); }
.teso-balance-medio-titulo { display: block; font-size: 9px; font-weight: bold; color: #2edae3; }
.teso-balance-medio-monto { display: block; margin-top: 4px; font-family: 'Michroma', sans-serif; font-size: 15px; font-weight: bold; color: #ffffff; }
.teso-caja-medios { margin: -2px 0 8px; font-family: 'Oswald', sans-serif; font-size: 11px; color: #a9bce8; }

/* Aranceles por Partido: barra fija al bajar con el buscador de equipos y qué se está mostrando (18/10/2026) */
.teso-barra-fija {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-bottom: 12px;
    padding: 8px;
    border: 1px solid #1a3274;
    border-radius: 3px;
    background: #071334;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
.teso-buscador-equipo { flex: 1 1 200px; min-width: 0; }
.teso-buscador-equipo input {
    width: 100%;
    box-sizing: border-box;
    min-height: 38px;
    padding: 6px 10px;
    border: 1px solid #1a3274;
    border-radius: 3px;
    background: #040c26;
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 16px; /* 16 px: con menos, el iPhone agranda la página al tocar el campo */
}
.teso-buscador-equipo input:focus { outline: none; border-color: #2edae3; }
.teso-mostrando { flex: 1 1 220px; margin: 0; font-family: 'Oswald', sans-serif; font-size: 12px; color: #2edae3; overflow-wrap: anywhere; }

/* Equipos deudores (Tesorería > Deudores, 03/11/2026) */
.deudores-filtros { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.deudores-filtros .form-group { margin: 0; min-width: 150px; }
.deudores-filtros .deudores-buscador { flex: 1 1 220px; }
.deudores-filtros input[type="search"] {
    width: 100%;
    box-sizing: border-box;
    min-height: 38px;
    padding: 6px 10px;
    border: 1px solid #1a3274;
    border-radius: 3px;
    background: #040c26;
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 16px; /* 16 px: con menos, el iPhone agranda la página al tocar el campo */
}
.deudores-filtros input[type="search"]:focus { outline: none; border-color: #2edae3; }
.deudores-resumen { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 12px; font-family: 'Oswald', sans-serif; color: #869bd8; font-size: 12px; }
.deudores-resumen strong { color: #f43f5e; font-size: 15px; }
.deudores-resumen-ok { color: #4ade80; font-size: 13px; }
.deudor-item { padding: 0; margin-bottom: 8px; }
.deudor-resumen-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 12px; cursor: pointer; list-style: none; }
.deudor-resumen-fila::-webkit-details-marker { display: none; }
.deudor-nombre { flex: 1 1 150px; min-width: 0; font-family: 'Michroma', sans-serif; font-size: 12px; color: #ffffff; overflow-wrap: anywhere; }
.deudor-meta { flex: 1 1 130px; font-family: 'Oswald', sans-serif; font-size: 11px; color: #869bd8; }
.deudor-detalle { border-top: 1px dashed rgba(255, 255, 255, 0.12); padding: 4px 12px 10px; }
.deudor-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.deudor-fila:last-child { border-bottom: none; }
.deudor-fila-info { flex: 1 1 200px; min-width: 0; font-family: 'Oswald', sans-serif; font-size: 12px; color: #ffffff; overflow-wrap: anywhere; }
.deudor-fila-info small { display: block; margin-top: 2px; font-size: 10px; color: #869bd8; }
.deudor-fila-monto { font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: bold; color: #f43f5e; white-space: nowrap; }
.deudor-btn-pago {
    min-height: 34px;
    padding: 4px 10px;
    border: 1px solid #2edae3;
    border-radius: 3px;
    background: #1a3274;
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    cursor: pointer;
}
.deudor-btn-pago:hover { background: #2c68e7; }

/* En el panel, en celular, "clip" en vez del "hidden" de html/body: recorta igual, pero "hidden" convertía al body en
   contenedor de scroll y ningún position: sticky quedaba fijo (esta barra y el aviso de cambios ajenos). Solo el panel:
   en la web pública haría fija la barra de arriba en celular, que hoy se va con el scroll. Un navegador sin "clip" sigue
   con "hidden", como antes. */
@media (max-width: 768px) {
    html:has(> body.staff-page),
    body.staff-page {
        overflow-x: clip !important;
    }
}

/* Pagos por partes en Aranceles por Partido (Hecho #48): un renglón por pago y el alta de uno nuevo. Botones de 40 px
   o más de alto para tocarlos con el dedo en la cancha. */
.teso-pagos { margin: 10px 0 6px; padding: 8px; border: 1px solid #1a3274; border-radius: 3px; background: rgba(4, 12, 38, 0.5); }
.teso-pagos-titulo { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 6px; font-family: 'Oswald', sans-serif; font-size: 12px; color: #a9bce8; text-transform: uppercase; }
.teso-pagos-titulo strong { font-size: 13px; color: #ffffff; text-transform: none; font-variant-numeric: tabular-nums; }
.teso-pagos-vacio { margin: 0 0 6px; font-family: 'Oswald', sans-serif; font-size: 11px; color: #869bd8; }
.teso-pago-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 6px 0; border-top: 1px dashed rgba(255, 255, 255, 0.08); font-family: 'Oswald', sans-serif; font-size: 12px; color: #a9bce8; }
.teso-pago-monto { min-width: 70px; font-size: 14px; font-weight: 600; color: #ffffff; font-variant-numeric: tabular-nums; }
.teso-pago-medio-txt { padding: 1px 6px; border-radius: 3px; font-size: 11px; }
.teso-pago-medio-ef { background: rgba(74, 222, 128, 0.12); color: #4ade80; }
.teso-pago-medio-mp { background: rgba(46, 218, 227, 0.12); color: #2edae3; }
.teso-pago-quien { flex: 1 1 120px; min-width: 0; font-size: 11px; color: #869bd8; overflow-wrap: anywhere; }
.teso-pago-botones { display: flex; gap: 6px; margin-left: auto; }
.teso-pago-btn { min-height: 32px; padding: 0 10px; border: 1px solid #1a3274; border-radius: 3px; background: #0a1d54; color: #ffffff; font-family: 'Oswald', sans-serif; font-size: 12px; cursor: pointer; touch-action: manipulation; }
.teso-pago-borrar { border-color: rgba(244, 63, 94, 0.5); color: #fca5a5; }
.teso-pago-guardar { border-color: #2edae3; background: #0a3a5c; }
.teso-pago-editando .input-monto-teso { flex: 1 1 90px; max-width: 120px !important; }
.teso-pago-editando .select-asist-teso { flex: 1 1 120px; width: auto; }
.teso-pago-alta { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(46, 218, 227, 0.2); }
.teso-pago-alta .in-pago-monto { flex: 1 1 110px; max-width: none !important; min-height: 40px; font-size: 16px !important; }
.teso-pago-medios { display: flex; flex: 1 1 200px; border: 1px solid #1a3274; border-radius: 3px; overflow: hidden; }
.teso-pago-medio { flex: 1 1 0; min-height: 40px; padding: 0 8px; border: none; background: #040c26; color: #869bd8; font-family: 'Oswald', sans-serif; font-size: 13px; cursor: pointer; touch-action: manipulation; }
.teso-pago-medio + .teso-pago-medio { border-left: 1px solid #1a3274; }
.teso-pago-medio.activo { background: #0a3a5c; color: #ffffff; box-shadow: inset 0 -3px 0 #2edae3; }
.teso-btn-pago { flex: 1 1 100%; min-height: 44px; border: 2px solid #4ade80; border-radius: 4px; background: rgba(74, 222, 128, 0.15); color: #ffffff; font-family: 'Oswald', sans-serif; font-size: 14px; letter-spacing: 0.5px; text-transform: uppercase; cursor: pointer; touch-action: manipulation; }
.teso-btn-pago-falta { flex: 1 1 100%; min-height: 36px; border: 1px dashed #f2c00e; border-radius: 4px; background: transparent; color: #f2c00e; font-family: 'Oswald', sans-serif; font-size: 12px; cursor: pointer; touch-action: manipulation; }
.teso-pago-btn:focus-visible, .teso-pago-medio:focus-visible, .teso-btn-pago:focus-visible, .teso-btn-pago-falta:focus-visible { outline: 2px solid #f2c00e; outline-offset: 2px; }

/* Beneficio del derecho de partido: mismo formato que el de Inscripciones */
.teso-insc-benef .in-p-benef-motivo { max-width: 100% !important; text-align: left !important; font-size: 13px !important; font-weight: normal !important; }
.teso-p-benef { margin-top: 8px; }

/* Carga de Partidos: aviso de qué partido se está editando y botón para cancelar (18/10/2026) */
.partido-aviso-edicion { margin: 0 0 12px; padding: 8px 10px; border-left: 3px solid #d97706; border-radius: 3px; background: rgba(217, 119, 6, 0.12); color: #fbbf24; font-family: 'Oswald', sans-serif; font-size: 12px; }
.btn-cancelar-edicion-partido { display: block; width: 100%; margin-top: 8px; padding: 10px; border: none; border-radius: 3px; background: #475569; color: #ffffff; font-family: 'Oswald', sans-serif; font-size: 13px; text-transform: uppercase; cursor: pointer; }
.partido-aviso-edicion[hidden], .btn-cancelar-edicion-partido[hidden] { display: none; }
.cronograma-ausencia { display: block; margin-top: 2px; font-family: 'Oswald', sans-serif; font-size: 10px; color: #f2c00e; }

.teso-avisos-partido {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

.teso-aviso {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 3px;
    line-height: 1.4;
    border-left: 3px solid;
}

.teso-aviso-ok { background: rgba(74, 222, 128, 0.08); border-color: #4ade80; color: #4ade80; }
.teso-aviso-info { background: rgba(46, 218, 227, 0.08); border-color: #2edae3; color: #2edae3; }
.teso-aviso-alerta { background: rgba(244, 63, 94, 0.08); border-color: #f43f5e; color: #fca5a5; }

/* Lista de buena fe en cancha (Tesorería): un toque por jugador, pensada para celular */
.bf-detalle { border-top: 1px dashed rgba(46, 218, 227, 0.25); padding-top: 4px; container-type: inline-size; }
.bf-resumen { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 10px; min-height: 44px; cursor: pointer; list-style: none; font-family: 'Oswald', sans-serif; }
.bf-resumen::-webkit-details-marker { display: none; }
.bf-titulo { font-size: 14px; color: #2edae3; text-transform: uppercase; letter-spacing: 0.5px; }
.bf-titulo::before { content: '\25B8'; margin-right: 6px; }
.bf-detalle[open] .bf-titulo::before { content: '\25BE'; }
.bf-contadores { font-size: 12px; color: #a9bce8; }
.bf-encabezado, .bf-fila { display: grid; grid-template-columns: 1fr 64px 72px; gap: 8px; align-items: center; }
.bf-encabezado { font-family: 'Oswald', sans-serif; font-size: 11px; color: #869bd8; text-transform: uppercase; padding: 4px 0 6px 9px; text-align: center; }
.bf-encabezado span:first-child { text-align: left; }
.bf-fila { padding: 6px 0 6px 6px; border-top: 1px solid rgba(255, 255, 255, 0.06); border-left: 3px solid transparent; }
.bf-fila-alerta { border-left-color: #f43f5e; background: rgba(244, 63, 94, 0.1); }
.bf-celda-jugador { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bf-jugador { display: flex; flex-direction: column; min-width: 0; }
/* Foto del jugador: el toque abre la cámara. Borde punteado = sin foto, amarillo = sacada y esperando subir, rojo = problema */
.bf-foto { position: relative; flex: 0 0 44px; width: 44px; height: 44px; box-sizing: border-box; border: 2px solid #1a3274; border-radius: 6px; background: #040c26; color: #869bd8; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; touch-action: manipulation; }
.bf-foto input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.bf-foto-vista { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; pointer-events: none; }
.bf-foto-vista img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bf-foto[data-estado="sin"] { border-style: dashed; }
.bf-foto[data-estado="pendiente"] { border-color: #f2c00e; }
.bf-foto[data-estado="problema"] { border-color: #f43f5e; }
.bf-foto[data-estado="pendiente"]::after, .bf-foto[data-estado="problema"]::after { position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; line-height: 16px; text-align: center; font-family: 'Oswald', sans-serif; font-size: 12px; font-weight: 700; color: #040c26; pointer-events: none; }
.bf-foto[data-estado="pendiente"]::after { content: '\2191'; background: #f2c00e; }
.bf-foto[data-estado="problema"]::after { content: '!'; background: #f43f5e; color: #ffffff; }
.bf-foto:focus-within { outline: 2px solid #2edae3; outline-offset: 2px; }
.bf-tag-susp { align-self: flex-start; margin-top: 3px; padding: 1px 6px; border-radius: 3px; background: #991b1b; color: #ffffff; font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.4px; line-height: 1.4; }
.bf-aviso-min { flex-basis: 100%; font-family: 'Oswald', sans-serif; font-size: 12px; font-weight: 700; color: #f43f5e; }
.bf-aviso-min:empty { display: none; }
.bf-nombre { font-family: 'Oswald', sans-serif; font-size: 14px; color: #ffffff; line-height: 1.25; word-break: break-word; }
.bf-dni { font-family: 'Oswald', sans-serif; font-size: 11px; color: #869bd8; }
.bf-btn { min-height: 44px; padding: 0 4px; border-radius: 4px; border: 2px solid #1a3274; background: #040c26; color: #869bd8; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 0.5px; cursor: pointer; touch-action: manipulation; }
.bf-btn:active { transform: scale(0.96); }
.bf-btn:focus-visible { outline: 2px solid #2edae3; outline-offset: 2px; }
.bf-btn.bf-si { background: #166534; border-color: #4ade80; color: #ffffff; }
.bf-btn-ficha.bf-no { border-color: #f43f5e; color: #f43f5e; }
.bf-check { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; cursor: pointer; touch-action: manipulation; }
.bf-check input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.bf-check-caja { width: 34px; height: 34px; box-sizing: border-box; border: 2px solid #869bd8; border-radius: 6px; background: #040c26; display: flex; align-items: center; justify-content: center; }
.bf-check input:checked + .bf-check-caja { background: #166534; border-color: #4ade80; }
.bf-check input:checked + .bf-check-caja::after { content: '\2713'; color: #ffffff; font-size: 22px; font-weight: 700; line-height: 1; }
.bf-check input:focus-visible + .bf-check-caja { outline: 2px solid #2edae3; outline-offset: 2px; }
/* Lista angosta (la tarjeta del partido en celular mide unos 240 px): con la foto al lado, el nombre quedaba en 25 px y
   se partía letra por letra. La foto pasa arriba del nombre y los botones se achican un poco. */
@container (max-width: 360px) {
    .bf-encabezado, .bf-fila { grid-template-columns: minmax(0, 1fr) 48px 64px; gap: 6px; }
    .bf-celda-jugador { flex-direction: column; align-items: flex-start; gap: 4px; }
    .bf-jugador { max-width: 100%; }
    .bf-nombre { word-break: normal; overflow-wrap: break-word; }
}
.bf-alta { margin-top: 8px; border-top: 1px dashed rgba(255, 255, 255, 0.12); }
.bf-alta-titulo { display: flex; align-items: center; min-height: 44px; list-style: none; cursor: pointer; font-family: 'Oswald', sans-serif; font-size: 13px; color: #2edae3; text-transform: uppercase; letter-spacing: 0.5px; }
.bf-alta-titulo::-webkit-details-marker { display: none; }
.bf-alta-campos { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }
.bf-alta-fila { display: grid; grid-template-columns: 1fr 90px; gap: 8px; }
.bf-input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 0 10px; border: 2px solid #1a3274; border-radius: 4px; background: #040c26; color: #ffffff; font-family: 'Oswald', sans-serif; font-size: 16px; }
.bf-input:focus { outline: none; border-color: #2edae3; }
.bf-alta-guardar { padding: 0 10px; background: #0a3a5c; border-color: #2edae3; color: #ffffff; }
.bf-alta-ayuda { font-family: 'Oswald', sans-serif; font-size: 11px; color: #869bd8; line-height: 1.4; }

/* Vista imprimible de la planilla de buena fe: en pantalla no se ve; al imprimir es lo único que sale */
.teso-btn-imprimir { min-height: 40px; padding: 0 14px; border: 2px solid #2edae3; border-radius: 4px; background: #0a3a5c; color: #ffffff; font-family: 'Oswald', sans-serif; font-size: 13px; letter-spacing: 0.5px; cursor: pointer; touch-action: manipulation; }
.teso-btn-imprimir:focus-visible { outline: 2px solid #f2c00e; outline-offset: 2px; }

/* Calculadora de Arancel Recomendado (Tesorería, solo Admin) */
.calc-arancel-card {
    background: rgba(4, 12, 38, 0.8);
    border: 1px solid #6b21a8;
    border-radius: 5px;
    padding: 14px 16px;
}
.calc-arancel-linea {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    color: #a9bce8;
}
.calc-arancel-linea:last-child { border-bottom: none; }
.calc-arancel-linea.calc-total {
    font-family: 'Michroma', sans-serif;
    font-size: 12px;
    color: #ffffff;
    border-top: 1px solid rgba(168, 85, 247, 0.4);
    margin-top: 4px;
    padding-top: 12px;
}
.calc-arancel-resultado {
    margin-top: 16px;
    text-align: center;
    padding: 18px;
    border-radius: 5px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.18) 0%, rgba(10, 29, 84, 0.9) 100%);
    border: 2px dashed #a855f7;
}
.calc-arancel-resultado .calc-monto {
    display: block;
    font-family: 'Michroma', sans-serif;
    font-size: 24px;
    color: #a855f7;
    margin-top: 6px;
}
.calc-arancel-nota {
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    color: #869bd8;
    line-height: 1.5;
    margin-top: 12px;
}
#vista-imprimible { display: none; }

@media print {
    @page { size: A4 landscape; margin: 10mm; }
    html, body { background: #ffffff !important; margin: 0 !important; padding: 0 !important; }
    body > *:not(#vista-imprimible) { display: none !important; }
    #vista-imprimible { display: block; width: 100%; box-sizing: border-box; color: #000000; font-family: Arial, Helvetica, sans-serif; }
    .plan-hoja { width: 100%; }
    .plan-hoja { break-after: page; page-break-after: always; }
    .plan-hoja:last-child { break-after: auto; page-break-after: auto; }
    .plan-titulo { margin: 0 0 4px; font-size: 16px; text-align: center; }
    .plan-partido { margin: 0 0 8px; font-size: 13px; font-weight: bold; text-align: center; }
    .plan-equipos { display: flex; gap: 10mm; align-items: flex-start; }
    .plan-tabla { flex: 1; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
    .plan-tabla th, .plan-tabla td { border: 1px solid #000000; padding: 0 4px; height: 9.5mm; overflow: hidden; }
    .plan-tabla th { background: #eeeeee; font-size: 11px; height: 7mm; }
    .plan-tabla th.plan-equipo { font-size: 14px; text-align: left; height: 9mm; }
    .plan-tabla th:nth-child(2), .plan-tabla td:nth-child(2) { width: 22%; }
    .plan-tabla th:nth-child(3), .plan-tabla td:nth-child(3) { width: 9%; text-align: center; }
    .plan-tabla th:nth-child(4), .plan-tabla td:nth-child(4) { width: 29%; }
    .plan-jugador { font-weight: bold; text-transform: uppercase; }
    .plan-tabla td.plan-susp { font-size: 9px; font-weight: bold; text-align: center; background: #dddddd; }

    /* Hoja de horarios de una fecha (Carga de Partidos → Cronograma): vertical, como la planilla de Excel */
    @page horarios { size: A4 portrait; margin: 10mm; }
    .hor-hoja { page: horarios; width: 100%; }
    .hor-tabla { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .hor-tabla th, .hor-tabla td { border: 1px solid #000000; padding: 2px 4px; overflow-wrap: anywhere; }
    .hor-tabla thead th { background: #7030a0; color: #ffffff; font-size: 11px; }
    .hor-tabla th.hor-titulo { font-size: 15px; padding: 6px 4px; }
    .hor-tabla th:nth-child(1), .hor-tabla th:nth-child(3) { width: 23%; }
    .hor-tabla th:nth-child(2) { width: 13%; }
    .hor-tabla th:nth-child(4), .hor-tabla th:nth-child(5) { width: 11%; }
    .hor-tabla th:nth-child(6) { width: 19%; }
    .hor-partido { break-inside: avoid; page-break-inside: avoid; }
    .hor-turno-par td { background: #f2f2f2; }
    .hor-equipo { font-weight: bold; text-transform: uppercase; text-align: center; height: 12mm; }
    .hor-centro { text-align: center; }
    .hor-hora { font-weight: bold; }
    .hor-tabla td.hor-grupo { font-weight: bold; }
    .hor-tabla td.hor-grupo-sup { background: #ff9900; }
    .hor-tabla td.hor-grupo-bas { background: #00ff00; }
}

.btn-imprimir-horarios {
    padding: 4px 10px;
    border: 1px solid #2edae3;
    border-radius: 3px;
    background: #040c26;
    color: #2edae3;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    cursor: pointer;
}

.btn-imprimir-horarios:hover { background: #2edae3; color: #040c26; }

/* 🎨 BORDES LATERALES PARA TABLA ÚNICA (BOMBOS DE PLAYOFFS) */
.td-pos-bombo1 { text-align: center; font-weight: bold; color: #23b1f0; box-shadow: inset 3px 0 0 0 #23b1f0 !important; } /* Bombo 1: Celeste */
.td-pos-bombo2 { text-align: center; font-weight: bold; color: #4ade80; box-shadow: inset 3px 0 0 0 #4ade80 !important; } /* Bombo 2: Verde */
.td-pos-bombo3 { text-align: center; font-weight: bold; color: #f2c00e; box-shadow: inset 3px 0 0 0 #f2c00e !important; } /* Bombo 3: Amarillo */

/* ============================================================
   👥 SUB-PESTAÑAS Y TABLA RESPONSIVE DE PLANTELES
   ============================================================ */
.sub-tabs-planteles {
    display: flex !important;
    gap: 10px !important;
    justify-content: center !important;
    width: 100% !important;
    margin-bottom: 15px !important;
    grid-column: 1 / -1 !important;
}

.btn-sub-plantel {
    background: rgba(10, 29, 84, 0.8) !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
    color: #cbd5e1 !important;
    padding: 8px 16px !important;
    border-radius: 3px !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 11px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.btn-sub-plantel.active {
    background: #a855f7 !important;
    color: #ffffff !important;
    font-weight: bold !important;
    border-color: #a855f7 !important;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4) !important;
}

/* Evita desbordes horizontales en la tabla de buena fe */
.tabla-planteles th, .tabla-planteles td {
    padding: 8px 6px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
}
/* ============================================================
   🛠️ FIX ANTI-APLASTAMIENTO DE PANELES EN EL ADMIN
   ============================================================ */
.staff-modulo > section,
#sub-vista-jornada-partidos > section,
#sub-vista-plantel-jugadores > section {
    min-width: 0 !important; /* 👈 Evita que los inputs empujen y aplasten la columna derecha */
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ============================================================
   🏆 ÁRBOL DE PLAYOFFS ALINEADO EXACTO (SOFASCORE STYLE)
   ============================================================ */
.bracket-scroll-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 30px !important;
    padding: 20px 10px 40px 10px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    align-items: stretch !important; /* 👈 iguala la altura de todas las columnas al contenido más alto, sin fijar un alto en px (rompía en mobile con menos partidos) */
}

/* Misma barra que la del body. Sin scrollbar-color: en Chrome anularía estas reglas. */
.bracket-scroll-container::-webkit-scrollbar {
    height: 8px;
}
.bracket-scroll-container::-webkit-scrollbar-track {
    background: rgba(4, 12, 38, 0.5);
    border-radius: 4px;
}
.bracket-scroll-container::-webkit-scrollbar-thumb {
    background: rgb(10, 29, 84);
    border-radius: 4px;
    transition: background 0.2s ease;
}
.bracket-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #2edae3;
    box-shadow: 0 0 8px rgba(46, 218, 227, 0.8);
}

.bracket-round {
    display: flex !important;
    flex-direction: column !important;
    min-width: 210px !important;
}

/* Envoltorio SOLO de los partidos (sin el <h4> del título): el título no puede
   estar adentro del contenedor que reparte con space-around, porque como es un
   flex-item más, se come espacio arriba y corre todo el cálculo de porcentajes
   que hace el JS para las líneas verticales — quedaban desalineadas respecto a
   dónde está cada partido realmente. Separando el título afuera, este wrapper
   arranca en 0% justo donde arranca el primer partido, que es lo que el JS asume. */
.bracket-matches {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-around !important; /* 👈 Centra Cuartos entre Octavos y Semis entre Cuartos */
    flex: 1 !important;
    position: relative !important; /* ancla los conectores de las líneas */
}

.bracket-match {
    background: rgba(10, 29, 84, 0.8) !important;
    border: 1px solid rgba(44, 104, 231, 0.4) !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    position: relative !important; /* ancla los tramos de conector de este partido */
    z-index: 1;
    /* Altura FIJA (no mínima) para TODAS las tarjetas (jugadas y "A definir"): el
       cálculo por JS de las líneas verticales que unen parejas de llaves asume que
       todos los partidos de una ronda miden lo mismo (fórmula de centros de
       space-around). Con min-height, un partido con resultado (dos filas de
       equipo, ~69px de contenido real) seguía siendo más alto que un "A definir"
       (una sola línea, floreado a los 62px del mínimo) y las líneas quedaban
       descuadradas — por eso acá tiene que ser height fijo, no un piso.
       overflow:hidden (arriba) cubre el caso límite de que algo no entre. */
    height: 70px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* ── Conectores tipo Sofascore (CSS puro) ──
   Cada partido dibuja un tramo horizontal hacia la ronda siguiente/anterior.
   Se excluye la última columna (Final, sin ronda siguiente) y la primera
   (Octavos/Cuartos, sin ronda anterior). El tramo vertical que une cada
   PAREJA de partidos con su casillero de la ronda siguiente queda para el
   Paso 3 (Módulo Playoffs): recién ahí cada partido tiene una posición de
   slot fija y predecible, dato imprescindible para calcular con precisión
   dónde debe caer esa línea vertical — intentarlo ahora, con el orden de
   carga actual (no por slot), daría líneas desalineadas. */
.bracket-round:not(:last-child) .bracket-match::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -16px;
    width: 16px;
    height: 2px;
    background: rgba(46, 218, 227, 0.35);
}

.bracket-round:not(:first-child) .bracket-match::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -16px;
    width: 16px;
    height: 2px;
    background: rgba(46, 218, 227, 0.35);
}

/* Tramo vertical que une cada PAREJA de partidos con su casillero en la
   ronda siguiente. Se posiciona por JS (top/height en %) porque depende de
   cuántas llaves tiene esa ronda — acá sólo se define el trazo visual. */
.bracket-pair-connector {
    position: absolute;
    right: -16px;
    width: 2px;
    background: rgba(46, 218, 227, 0.35);
    pointer-events: none;
}

.team-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 10px !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 11px !important;
    color: #cbd5e1 !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}
.team-row:last-child { border-bottom: none !important; }

.team-row.winner {
    background: rgba(74, 222, 128, 0.15) !important;
    color: #ffffff !important;
    font-weight: bold !important;
}

.team-row.winner .score-num {
    color: #4ade80 !important;
}

.champion-box {
    text-align: center !important;
    margin: auto 0 !important;
    padding: 20px 15px !important;
    background: linear-gradient(135deg, rgba(242, 192, 14, 0.15) 0%, rgba(10, 29, 84, 0.9) 100%) !important;
    border: 2px dashed #f2c00e !important;
    color: #f2c00e !important;
    border-radius: 5px !important;
    font-family: 'Michroma', sans-serif !important;
    box-shadow: 0 0 25px rgba(242, 192, 14, 0.25) !important;
    min-width: 180px !important;
}





/* ─────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────── */
.main-footer {
    margin-top: 50px;
    padding: 25px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    color: #475569;
    width: 100%;
}
.main-footer p { margin: 4px 0; }
/* Acceso al login del staff: discreto a propósito (ya no está en la barra de navegación). */
.footer-acceso-staff {
    color: #475569;
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 0.5px;
}
.footer-acceso-staff:hover,
.footer-acceso-staff:focus-visible { color: #869bd8; text-decoration: underline; }
.autor-firma {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    color: #2edae3;
    font-size: 12px;
    text-shadow: 0 0 4px rgba(46, 218, 227, 0.35);
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

/* Tarjeta de contacto: oculta por defecto, aparece al pasar el mouse
   por la firma (desktop) o al tocarla (móvil, vía .popover-visible en JS) */
.footer-firma-wrapper {
    position: relative;
    display: inline-block;
}

.footer-contacto-popover {
    position: absolute;
    bottom: calc(100% + 12px);
    --popover-shift: 0px;
    left: calc(50% + var(--popover-shift));
    transform: translateX(-50%) translateY(6px);
    width: 260px;
    max-width: 80vw;
    background-color: #0a1d54;
    border: 1px solid #2edae3;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 20;
}

.footer-contacto-popover::before,
.footer-contacto-popover::after {
    content: "";
    position: absolute;
    top: 100%;
    /* La flechita tiene que seguir apuntando al botón aunque el cartel
       se corra para no salirse de pantalla (--popover-shift), por eso
       se mueve al revés que el cartel */
    left: calc(50% - var(--popover-shift));
    transform: translateX(-50%);
    border-style: solid;
}

.footer-contacto-popover::before {
    border-width: 7px;
    border-color: #2edae3 transparent transparent transparent;
}

.footer-contacto-popover::after {
    border-width: 6px;
    margin-top: -1px;
    border-color: #0a1d54 transparent transparent transparent;
}

.footer-contacto-texto {
    font-family: 'Michroma', sans-serif;
    font-size: 11px;
    color: #869bd8;
    line-height: 1.5;
    text-align: center;
}

.footer-contacto-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (hover: hover) and (pointer: fine) {
    .footer-firma-wrapper:hover .footer-contacto-popover {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }
}

.footer-firma-wrapper.popover-visible .footer-contacto-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* ─────────────────────────────────────────────
   LOGIN STAFF (maqueta pública — index.html #pantalla-admin)
   ───────────────────────────────────────────── */
.login-staff-section {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 40px 16px;
}

.login-staff-card {
    width: 100%;
    max-width: 400px;
    padding: 36px 32px 28px;
    text-align: center;
    color: #fff;
    background: linear-gradient(180deg, rgba(10, 29, 84, 0.75) 0%, rgba(10, 29, 84, 0.4) 100%);
    border: 1px solid rgba(46, 218, 227, 0.25);
    border-top: 3px solid #2edae3;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.login-staff-icono {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2edae3;
    background: rgba(46, 218, 227, 0.08);
    border: 1px solid rgba(46, 218, 227, 0.4);
    border-radius: 50%;
    box-shadow: 0 0 24px rgba(46, 218, 227, 0.2);
}

.login-staff-icono svg {
    width: 30px;
    height: 30px;
}

.login-staff-titulo {
    margin: 0 0 10px;
    color: #fff;
    font-family: 'Michroma', sans-serif;
    font-size: 17px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.login-staff-intro {
    color: #869bd8;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 26px;
}

.login-staff-form .form-group label {
    color: #a9b8e6;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
}

.login-staff-form .form-group input {
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 5px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-staff-form .form-group input::placeholder {
    color: #5b6f9f;
}

.login-staff-form .form-group input:focus {
    border-color: #2edae3;
    box-shadow: 0 0 0 3px rgba(46, 218, 227, 0.15);
}

.login-staff-password-wrap {
    position: relative;
}

.login-staff-password-wrap input {
    width: 100%;
    padding-right: 42px;
}

.login-staff-ver-password {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    background: none;
    border: none;
    color: #5b6f9f;
    cursor: pointer;
}

.login-staff-ver-password svg {
    width: 19px;
    height: 19px;
}

.login-staff-ver-password:hover,
.login-staff-ver-password:focus-visible {
    color: #2edae3;
}

.login-staff-ver-password.mostrando {
    color: #2edae3;
}

.login-staff-form .btn-submit-admin {
    margin-top: 6px;
    padding: 13px;
    border-radius: 5px;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.login-staff-form .btn-submit-admin:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-staff-error {
    display: none;
    color: #f87171;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    margin: 0 0 14px;
}

.login-staff-error.visible {
    display: block;
}

@media (max-width: 480px) {
    .login-staff-section {
        padding: 24px 12px;
    }

    .login-staff-card {
        padding: 28px 20px 22px;
    }
}

/* ============================================================
   🧑‍💼 PANEL STAFF (admin.html) — migrado desde <style> inline
   ============================================================ */
body.staff-page {
    background-color: #040c26;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 20px;
    font-family: 'Oswald', sans-serif;
    color: white;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.staff-header {
    text-align: center;
    margin-bottom: 25px;
    width: 100%;
    max-width: 1000px;
    min-width: 0; /* flex-item de body.staff-page: sin esto, un hijo sin ancho propio empuja todo el panel a lo ancho en celus angostos */
}

.staff-sesion {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.staff-sesion-usuario {
    font-size: 12px;
    color: #869bd8;
    letter-spacing: 1px;
    overflow-wrap: anywhere;
}

.staff-sesion-salir,
.auth-gate-btn {
    background: #0a1d54;
    color: #2edae3;
    border: 1px solid #2edae3;
    padding: 6px 14px;
    border-radius: 3px;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
}

.staff-sesion-salir:hover,
.auth-gate-btn:hover {
    background: rgba(46, 218, 227, 0.15);
}

/* admin.html arranca tapado hasta que auth-admin.js confirma sesión y rol */
.auth-gate {
    display: none;
}

body.auth-pendiente > :not(.auth-gate) {
    display: none !important;
}

body.auth-pendiente .auth-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 80vh;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.auth-gate-mensaje {
    color: #869bd8;
    font-size: 14px;
    letter-spacing: 1px;
    margin: 0;
    overflow-wrap: anywhere;
}

.auth-gate-acciones {
    display: flex;
    gap: 10px;
}

/* Otra persona cargó cambios: el panel no se redibuja solo, avisa arriba y queda fijo al hacer scroll */
.aviso-cambios-ajenos {
    position: sticky;
    top: 0;
    z-index: 900;
    width: 100%;
    max-width: 1000px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 15px;
    padding: 10px 14px;
    background: #0a1d54;
    border: 1px solid #2edae3;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    color: #cbd5e1;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-align: center;
}

.aviso-cambios-ajenos[hidden] {
    display: none;
}

/* Fotos sacadas en cancha que todavía no subieron (lista de buena fe): mismo cartel fijo, en amarillo */
.aviso-fotos-pendientes {
    border-color: #f2c00e;
}

.staff-title {
    font-family: 'Michroma', sans-serif;
    font-size: 24px;
    color: #2edae3;
    margin: 0;
    text-shadow: 0 0 12px rgba(46, 218, 227, 0.4);
}

.staff-subtitle {
    color: #869bd8;
    font-size: 12px;
    margin-top: 6px;
    letter-spacing: 2px;
}

.staff-bienvenida {
    font-family: 'Michroma', sans-serif;
    font-size: 20px;
    color: #ffffff;
    letter-spacing: 1px;
    margin: 18px 0 0;
    overflow-wrap: anywhere;
}

.staff-bienvenida-nombre {
    color: #2edae3;
    text-shadow: 0 0 10px rgba(46, 218, 227, 0.35);
}

@media (max-width: 480px) {
    .staff-bienvenida {
        font-size: 16px;
        margin-top: 14px;
    }
}

.staff-nav {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    width: 100%;
    max-width: 1000px;
    min-width: 0;
}

.staff-tab-btn {
    background: rgba(10, 29, 84, 0.6);
    border: 1px solid rgba(46, 218, 227, 0.3);
    color: #869bd8;
    padding: 10px 18px;
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.staff-tab-btn:hover,
.staff-tab-btn.active {
    background: #2edae3;
    color: #040c26;
    border-color: #2edae3;
    box-shadow: 0 0 12px rgba(46, 218, 227, 0.4);
    font-weight: bold;
}

.staff-section-container {
    width: 100%;
    max-width: 1000px;
}

.staff-modulo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.staff-dos-columnas {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 800px) {
    .staff-modulo,
    .staff-dos-columnas {
        grid-template-columns: 1fr;
    }
}

/* Equipos Cargados (Planteles → Crear / Mover Equipos): Superior y Básico uno al lado del otro */
.equipos-cargados-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .equipos-cargados-grid {
        grid-template-columns: 1fr;
    }
}

.equipos-cargados-cabecera {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.equipos-cargados-total {
    font-family: 'Michroma', sans-serif;
    font-size: 13px;
    color: #2edae3;
}

.equipos-cargados-cant {
    color: #2edae3;
}

.equipos-cargados-titulo-ciclo {
    color: #869bd8;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 8px;
}

.equipos-cargados-lista {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.equipo-cargado-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 10px;
    border-radius: 3px;
    border-left: 3px solid #991b1b;
    min-width: 0;
}

.equipo-cargado-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.equipo-cargado-nombre {
    font-size: 12px;
    color: #fff;
    font-weight: bold;
    overflow-wrap: anywhere;
}

.equipo-cargado-meta {
    font-size: 10px;
    color: #869bd8;
}

.btn-eliminar-equipo-item {
    flex-shrink: 0;
    background: #991b1b;
    color: #fff;
    border: none;
    border-radius: 2px;
    padding: 4px 9px;
    cursor: pointer;
    font-size: 10px;
    font-family: 'Oswald', sans-serif;
}

.admin-card-panel {
    background-color: #0a1d54;
    padding: 22px;
    border-radius: 5px;
    box-shadow: 0px 0px 20px rgba(4, 12, 38, 0.8);
    border: 1px solid rgba(44, 104, 231, 0.3);
}

/* ============================================================
   BUSCADOR GLOBAL DE JUGADOR (Header del Staff)
   ============================================================ */
.buscador-global-staff {
    position: relative;
    margin-top: 12px;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.buscador-global-staff input {
    width: 100%;
    background-color: #040c26;
    border: 1px solid #2edae3;
    border-radius: 8px;
    padding: 9px 16px;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    outline: none;
    box-sizing: border-box;
}

.buscador-global-staff input::placeholder {
    color: #869bd8;
}

.resultados-buscador-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background-color: #0a1d54;
    border: 1px solid #2edae3;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    max-height: 260px;
    overflow-y: auto;
    z-index: 9999;
    text-align: left;
}

.resultado-buscador-item {
    padding: 9px 14px;
    border-bottom: 1px solid rgba(46, 218, 227, 0.15);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: background-color 0.15s ease;
}

.resultado-buscador-item:last-child {
    border-bottom: none;
}

.resultado-buscador-item:hover {
    background-color: rgba(46, 218, 227, 0.12);
}

.resultado-buscador-nombre {
    font-size: 12px;
    color: #fff;
    font-weight: bold;
}

.resultado-buscador-meta {
    font-size: 10px;
    color: #869bd8;
}

.resultado-buscador-vacio {
    padding: 14px;
    text-align: center;
    font-size: 11px;
    color: #869bd8;
}

/* ============================================================
   RESUMEN GENERAL (DASHBOARD DEL STAFF)
   ============================================================ */
.grid-resumen-staff {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.metrica-resumen-card {
    background: rgba(4, 12, 38, 0.8);
    border: 1px solid #1a3274;
    border-radius: 4px;
    padding: 12px 10px;
    text-align: center;
}

.metrica-resumen-card .metrica-valor {
    display: block;
    font-family: 'Michroma', sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: #2edae3;
    margin-top: 4px;
}

.metrica-resumen-card .metrica-label {
    display: block;
    font-size: 9px;
    color: #869bd8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.accesos-rapidos-staff {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-acceso-rapido {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid #a855f7;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-acceso-rapido:hover {
    background: #a855f7;
    color: #040c26;
    font-weight: bold;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    text-align: left;
}

.form-group label {
    color: #869bd8;
    font-size: 11px;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: #040c26;
    border: 1px solid #1a3274;
    border-radius: 3px;
    padding: 10px;
    color: white;
    font-family: 'Oswald', sans-serif;
    outline: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.btn-submit-admin {
    width: 100%;
    padding: 12px;
    border-radius: 3px;
    background: #1a3274;
    color: #2edae3;
    border: 1px solid #2edae3;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-submit-admin:hover {
    background: #2edae3;
    color: #040c26;
}

.seccion-oculta-staff {
    display: none !important;
}

.staff-section-container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 12px;
}
.staff-section-container th {
    background-color: #1a3274;
    color: #2edae3;
    padding: 8px;
    text-align: left;
}
.staff-section-container td {
    padding: 8px;
    border-bottom: 1px solid #122252;
}

/* ==========================================
   CARGA DE FOTOS EN ADMIN (subida + vista previa)
   ========================================== */
.check-inline-admin {
    display: flex !important;
    align-items: center;
    gap: 6px;
    font-size: 10px !important;
    text-transform: none !important;
    color: #869bd8;
    cursor: pointer;
}

.check-inline-admin input[type="checkbox"] {
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    accent-color: #2edae3;
}

.foto-upload-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 6px;
    background: #040c26;
    border: 1px solid #1a3274;
    border-radius: 3px;
}

.foto-upload-preview img {
    max-height: 56px;
    max-width: 90px;
    border-radius: 3px;
    object-fit: cover;
}

.foto-upload-preview span {
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    color: #4ade80;
    flex: 1;
}

.foto-upload-preview button {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid #f43f5e;
    color: #f43f5e;
    font-family: 'Oswald', sans-serif;
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 2px;
    cursor: pointer;
}

/* Día de calendario del partido en el fixture público */
.match-meta-dia {
    font-family: 'Oswald', sans-serif !important;
    font-size: 9px !important;
    color: #2edae3 !important;
    display: block !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
}

/* Historial de Cambios (solo Coordinador): una entrada por cada cambio que cargó alguien del staff */
.historial-cabecera {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.historial-titulo {
    color: #2edae3;
    margin: 0;
}

.historial-btn-vaciar {
    background: #475569;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    cursor: pointer;
}

.historial-ayuda {
    color: #869bd8;
    font-size: 10px;
    margin: 4px 0 12px;
}

.historial-vacio {
    color: #869bd8;
    text-align: center;
    font-size: 11px;
}

.historial-item {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 9px 10px;
    margin-bottom: 8px;
    border-radius: 4px;
    border-left: 4px solid #2edae3;
    text-align: left;
    min-width: 0;
}

.historial-tipo-pago { border-left-color: #4ade80; }
.historial-tipo-beneficio,
.historial-tipo-inscripcion { border-left-color: #f2c00e; }
.historial-tipo-sancion { border-left-color: #f43f5e; }
.historial-tipo-jugador { border-left-color: #4284f2; }

.historial-texto {
    margin: 0;
    font-size: 11px;
    color: #cbd5e1;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.historial-autor {
    color: #ffffff;
}

.historial-meta {
    display: block;
    margin-top: 3px;
    font-size: 9px;
    color: #869bd8;
    overflow-wrap: anywhere;
}

/* ============================================================
   IMPORTAR PLANILLA DE INSCRIPCIÓN (Planteles)
   Hasta 800 px cada fila de la vista previa es una tarjeta con
   sus etiquetas a la vista; más ancho, una línea por jugador.
   ============================================================ */
.importar-bloque {
    margin: 4px 0 16px;
    padding: 12px;
    border: 1px dashed rgba(46, 218, 227, 0.45);
    border-radius: 4px;
    background: rgba(4, 12, 38, 0.45);
}

.importar-btn-abrir {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #f2c00e;
    border-radius: 3px;
    background: rgba(242, 192, 14, 0.12);
    color: #f2c00e;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
}

.importar-btn-abrir:hover { background: #f2c00e; color: #040c26; }
.importar-btn-abrir:disabled { opacity: 0.6; cursor: wait; }
.importar-btn-abrir:focus-visible { outline: 2px solid #2edae3; outline-offset: 2px; }

.importar-ayuda {
    margin: 8px 0 0;
    font-size: 11px;
    color: #869bd8;
    line-height: 1.45;
    text-align: left;
}

.importar-lectura {
    margin: 6px 0 0;
    font-size: 12px;
    color: #4ade80;
    line-height: 1.4;
    text-align: left;
}

.importar-lectura:empty { display: none; }
.importar-lectura-error { color: #f43f5e; }

.importar-panel {
    grid-column: 1 / -1;
    min-width: 0;
    border-color: #f2c00e;
    text-align: left;
}

.importar-titulo {
    margin: 0 0 8px;
    color: #f2c00e;
    font-family: 'Michroma', sans-serif;
    font-size: 14px;
}

.importar-origen,
.importar-destino,
.importar-nota {
    margin: 0 0 6px;
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.importar-origen strong,
.importar-destino strong { color: #ffffff; }
.importar-nota { font-size: 11px; color: #869bd8; }
.importar-nota-pdf,
.importar-aviso-tope { color: #f2c00e; }

.importar-encabezado,
.importar-fila {
    display: grid;
    grid-template-columns: 26px minmax(0, 2fr) minmax(0, 1.1fr) 56px 136px minmax(0, 1fr) minmax(0, 1fr) 70px;
    gap: 6px;
    align-items: center;
}

.importar-encabezado {
    margin-top: 12px;
    padding: 0 8px 4px 11px;
    font-size: 10px;
    color: #869bd8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.importar-fila {
    margin-bottom: 6px;
    padding: 8px;
    border-left: 3px solid #4ade80;
    border-radius: 3px;
    background: rgba(4, 12, 38, 0.55);
}

.importar-fila-error { border-left-color: #f43f5e; background: rgba(244, 63, 94, 0.08); }
.importar-fila-pase,
.importar-fila-pase-pendiente { border-left-color: #f2c00e; }
.importar-fila-existe { border-left-color: #475569; opacity: 0.75; }

.importar-num { font-size: 12px; color: #869bd8; text-align: center; }
.importar-campo { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

/* En escritorio los títulos van en .importar-encabezado; la etiqueta queda solo para lectores de pantalla. */
.importar-etiqueta {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.importar-input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 6px 8px;
    border: 1px solid #1a3274;
    border-radius: 3px;
    background: #040c26;
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
}

.importar-input:focus { outline: none; border-color: #2edae3; box-shadow: 0 0 6px rgba(46, 218, 227, 0.35); }
.importar-input[type="date"] { color-scheme: dark; }

.importar-quitar {
    min-height: 36px;
    padding: 0 8px;
    border: 1px solid #475569;
    border-radius: 3px;
    background: transparent;
    color: #cbd5e1;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    cursor: pointer;
}

.importar-quitar:hover { border-color: #f43f5e; color: #f43f5e; }

.importar-estado {
    grid-column: 2 / -1;
    min-width: 0;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.importar-estado ul { margin: 0; padding-left: 16px; }
.importar-msj-errores { color: #fda4af; }
.importar-msj-avisos { color: #f2c00e; }
.importar-msj-pase { margin: 0 0 4px; color: #f2c00e; }
.importar-msj-existe { margin: 0; color: #869bd8; }
.importar-chip-ok { color: #4ade80; }

.importar-pase { display: flex; align-items: flex-start; gap: 8px; color: #ffffff; cursor: pointer; }
.importar-pase input { flex-shrink: 0; width: 20px; height: 20px; margin: 0; accent-color: #f2c00e; cursor: pointer; }

.importar-resumen { margin: 10px 0 4px; font-size: 12px; color: #cbd5e1; }
.importar-bloqueo { margin: 0 0 10px; font-size: 12px; color: #f43f5e; }
.importar-bloqueo:empty { display: none; }

.importar-botones { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.importar-botones .btn-submit-admin { width: auto; min-height: 44px; }

.importar-btn-cancelar {
    min-height: 44px;
    padding: 0 16px;
    border: none;
    border-radius: 3px;
    background: #475569;
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    cursor: pointer;
}

.importar-btn-confirmar:disabled { opacity: 0.45; cursor: not-allowed; }
.importar-btn-confirmar:disabled:hover { background: #1a3274; color: #2edae3; }

@media (max-width: 800px) {
    .importar-encabezado { display: none; }
    .importar-fila { grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
    .importar-etiqueta {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        white-space: normal;
        font-size: 10px;
        color: #869bd8;
        text-transform: uppercase;
    }
    .importar-num { grid-row: 1; grid-column: 1; text-align: left; }
    .importar-quitar { grid-row: 1; grid-column: 2; justify-self: end; }
    .importar-c-nombre { grid-row: 2; grid-column: 1 / -1; }
    .importar-c-dni { grid-row: 3; grid-column: 1; }
    .importar-c-dorsal { grid-row: 3; grid-column: 2; }
    .importar-c-nacimiento { grid-row: 4; grid-column: 1; }
    .importar-c-celular { grid-row: 4; grid-column: 2; }
    .importar-c-instagram { grid-row: 5; grid-column: 1 / -1; }
    .importar-estado { grid-row: 6; grid-column: 1 / -1; }
    .importar-input { min-height: 44px; font-size: 16px; }
    .importar-botones { flex-direction: column-reverse; }
    .importar-botones .btn-submit-admin,
    .importar-btn-cancelar { width: 100%; }
}

/* ============================================================
   CALENDARIO DE FECHAS Y FIXTURE AUTOMÁTICO (Carga de Partidos)
   ============================================================ */
.calendario-fechas {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed rgba(242, 192, 14, 0.35);
    text-align: left;
}

.calendario-titulo {
    margin: 0 0 6px;
    color: #f2c00e;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
}

.calendario-ayuda {
    margin: 0 0 12px;
    font-size: 11px;
    color: #869bd8;
    line-height: 1.45;
    text-align: left;
}

.calendario-ciclos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.calendario-ciclo { min-width: 0; }

.calendario-ciclo-nombre {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: #ffffff;
    text-transform: uppercase;
}

.calendario-grilla {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
}

.calendario-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    font-size: 10px;
    color: #869bd8;
    text-transform: uppercase;
}

.calendario-input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 6px 8px;
    border: 1px solid #1a3274;
    border-radius: 3px;
    background: #040c26;
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    color-scheme: dark;
}

.calendario-input:focus { outline: none; border-color: #2edae3; box-shadow: 0 0 6px rgba(46, 218, 227, 0.35); }

.calendario-btn-guardar { margin-top: 14px; background: #854d0e; border-color: #f2c00e; }

.fixture-auto-bloque {
    grid-column: 1 / -1;
    min-width: 0;
    border-color: #2edae3;
}

.fixture-auto-encabezado { margin-top: 0; color: #2edae3; }
.fixture-auto-label-arancel { color: #f2c00e !important; }

/* ── Turnos de la jornada y lista de árbitros (Carga de Partidos) ── */
.turnos-bloque,
.arbitros-bloque { min-width: 0; border-color: #2edae3; text-align: left; }

.turnos-encabezado,
.arbitros-encabezado { margin-top: 0; color: #2edae3; }

.turnos-vista-previa {
    margin: 4px 0 12px;
    font-size: 11px;
    line-height: 1.5;
    color: #ffffff;
    overflow-wrap: anywhere;
}

.turnos-btn-guardar { background: #0e4f5c; border-color: #2edae3; }

.turnos-input-hora { color-scheme: dark; }

.arbitros-alta {
    display: flex;
    gap: 8px;
    align-items: stretch;
    margin-bottom: 12px;
}

.arbitros-alta input {
    flex: 1 1 auto;
    min-width: 0;
    background-color: #040c26;
    border: 1px solid #1a3274;
    border-radius: 3px;
    padding: 10px;
    color: white;
    font-family: 'Oswald', sans-serif;
    outline: none;
}

.arbitros-alta input:focus { border-color: #2edae3; }

.arbitros-btn-agregar {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 0 16px;
    background: #0e4f5c;
    border-color: #2edae3;
}

.arbitros-lista {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.arbitros-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid #1a3274;
    border-radius: 3px;
    background: #040c26;
    color: #ffffff;
    font-size: 13px;
}

.arbitros-item span { min-width: 0; overflow-wrap: anywhere; }

.arbitros-btn-quitar {
    flex: 0 0 auto;
    padding: 4px 10px;
    border: 1px solid rgba(244, 63, 94, 0.5);
    border-radius: 3px;
    background: transparent;
    color: #f43f5e;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    cursor: pointer;
}

.arbitros-vacio { font-size: 11px; color: #869bd8; }

.fixture-auto-panel {
    grid-column: 1 / -1;
    min-width: 0;
    border-color: #2edae3;
    text-align: left;
}

.fixture-auto-titulo {
    margin: 0 0 8px;
    color: #2edae3;
    font-family: 'Michroma', sans-serif;
    font-size: 14px;
}

.fixture-auto-texto {
    margin: 0 0 6px;
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.fixture-auto-texto strong { color: #ffffff; }
.fixture-auto-nota { margin: 0 0 6px; font-size: 11px; color: #869bd8; }
.fixture-auto-aviso { color: #f2c00e; }

.fixture-auto-grupos {
    margin: 4px 0 10px;
    padding-left: 18px;
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.fixture-auto-fechas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin: 12px 0;
}

.fixture-auto-fecha {
    min-width: 0;
    padding: 10px 12px;
    border-left: 3px solid #2edae3;
    border-radius: 3px;
    background: rgba(4, 12, 38, 0.55);
}

.fixture-auto-fecha-titulo {
    margin: 0 0 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    color: #ffffff;
    text-transform: uppercase;
}

.fixture-auto-sin-dia { color: #f2c00e; text-transform: none; }

.fixture-auto-cruces { margin: 0; padding: 0; list-style: none; }

.fixture-auto-cruce {
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    color: #ffffff;
    overflow-wrap: anywhere;
}

.fixture-auto-cruce:last-child { border-bottom: none; }
.fixture-auto-grupo { color: #869bd8; }
.fixture-auto-vs { color: #2edae3; font-weight: bold; }
.fixture-auto-libre { color: #869bd8; font-style: italic; }

/* Cruces corregibles en la vista previa: equipos y fecha con desplegables, avisos en rojo */
.fixture-auto-editable { display: flex; flex-direction: column; gap: 4px; padding: 6px 0; }
.fixture-auto-equipos { display: flex; align-items: center; gap: 6px; min-width: 0; }
.fixture-auto-equipos .fixture-auto-sel { flex: 1 1 0; }

.fixture-auto-sel {
    min-width: 0;
    max-width: 100%;
    padding: 4px 6px;
    border: 1px solid #1a3274;
    border-radius: 3px;
    background: #040c26;
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
}

.fixture-auto-sel:focus { outline: none; border-color: #2edae3; }
.fixture-auto-mover { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #869bd8; }
.fixture-auto-sel-fecha { flex: 0 0 auto; }
.fixture-auto-corregido { color: #f2c00e; }
.fixture-auto-con-problema { border-left: 3px solid #f43f5e; padding-left: 8px; }
.fixture-auto-problema { font-size: 11px; color: #f43f5e; line-height: 1.35; }

.fixture-auto-problemas {
    margin: 8px 0;
    padding: 8px 10px;
    border: 1px solid rgba(244, 63, 94, 0.5);
    border-radius: 3px;
    background: rgba(244, 63, 94, 0.08);
    font-size: 12px;
    color: #fda4af;
    overflow-wrap: anywhere;
}

.fixture-auto-problemas strong { color: #f43f5e; }
.fixture-auto-pedido { color: #2edae3; font-weight: bold; }
.fixture-auto-resumen-pedidos { color: #2edae3; }

/* Pedidos de los equipos (tarjeta del fixture automático) */
.pedidos-fixture {
    margin: 4px 0 14px;
    padding-top: 12px;
    border-top: 1px dashed rgba(46, 218, 227, 0.35);
    text-align: left;
}

.pedidos-fixture-alta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.pedidos-fixture-alta select {
    flex: 1 1 140px;
    min-width: 0;
    padding: 8px;
    border: 1px solid #1a3274;
    border-radius: 3px;
    background: #040c26;
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
}

.pedidos-fixture-alta select:focus { outline: none; border-color: #2edae3; }
.pedidos-fixture-alta #pedido-fixture-fecha { flex: 0 1 110px; }
.pedidos-fixture-alta .arbitros-btn-agregar { align-self: stretch; }
.fixture-auto-problemas ul { margin: 6px 0 0; padding-left: 18px; }

.fixture-auto-botones { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.fixture-auto-botones .btn-submit-admin { width: auto; min-height: 44px; }

/* Armador de horarios: árbitro de cada cancha, pedidos de horario y vista previa por turno */
.arbitros-cancha-lista {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.arbitros-cancha-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    font-size: 12px;
    color: #869bd8;
}

.arbitros-cancha-sel {
    min-width: 0;
    padding: 8px;
    border: 1px solid #1a3274;
    border-radius: 3px;
    background: #040c26;
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
}

.arbitros-cancha-sel:focus { outline: none; border-color: #2edae3; }
.pedidos-horario-alta #pedido-horario-equipo { flex: 2 1 200px; }
.pedidos-horario-alta #pedido-horario-turno { flex: 0 1 90px; }

.horarios-auto-fila { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; }
.horarios-auto-cancha { font-size: 11px; color: #2edae3; text-transform: uppercase; }
.horarios-auto-arbitro { font-size: 11px; color: #f2c00e; }
.horarios-auto-marcas { font-size: 11px; }
.horarios-auto-nuevo { color: #2edae3; font-weight: bold; }
.fixture-auto-botones .btn-submit-admin:disabled { opacity: 0.5; cursor: not-allowed; }

/* Capitanes de los equipos (Planteles → Crear / Mover Equipos y Grupos, solo Coordinador) */
.capitanes-bloque { grid-column: 1 / -1; min-width: 0; border-color: #2edae3; text-align: left; }
.capitanes-encabezado { margin-top: 0; color: #2edae3; }
.capitanes-resumen { margin-bottom: 12px; font-size: 12px; color: #cbd5e1; overflow-wrap: anywhere; }
.capitanes-ok { margin: 0 0 6px; color: #ffffff; }
.capitanes-faltan { margin: 0; padding-left: 18px; line-height: 1.5; color: #fda4af; }
.capitanes-faltan strong { color: #f43f5e; }
#btn-exportar-capitanes:disabled { opacity: 0.6; cursor: wait; }

/* Reemplazar un equipo y cambiar su nombre (Planteles → Gestión de Equipos; solo Coordinador) */
.reemplazo-bloque { min-width: 0; align-self: start; text-align: left; }
.reemplazo-jugador select,
.mover-jugador-caja select {
    padding: 6px 8px;
    border: 1px solid #1a3274;
    border-radius: 3px;
    background-color: #040c26;
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
}
.reemplazo-encabezado { margin-top: 0; color: #f2c00e; }
.reemplazo-vista-previa { margin-top: 14px; min-width: 0; font-size: 12px; color: #cbd5e1; overflow-wrap: anywhere; }
.reemplazo-vista-previa h4 { margin: 14px 0 6px; font-size: 12px; color: #2edae3; }
.reemplazo-vista-previa ul { margin: 0 0 6px; padding-left: 18px; line-height: 1.5; }
.reemplazo-bloqueo { margin: 0 0 8px; color: #f43f5e; }
.reemplazo-aviso { margin: 0 0 8px; color: #f2c00e; }
.reemplazo-problemas:empty { display: none; }
.reemplazo-jugador {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    padding: 6px 8px;
    border-left: 3px solid #2edae3;
    border-radius: 3px;
    background: rgba(4, 12, 38, 0.55);
}
.reemplazo-jugador > span { flex: 1 1 140px; min-width: 0; }
.reemplazo-jugador select { flex: 1 1 160px; min-width: 0; min-height: 36px; }
.reemplazo-botones { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.reemplazo-botones .btn-submit-admin { width: auto; min-height: 44px; }
.fila-mover-jugador td { padding: 8px; background: rgba(4, 12, 38, 0.55); }
.mover-jugador-caja { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: center; }
.mover-jugador-caja select { flex: 1 1 180px; min-width: 0; min-height: 40px; }

@media (max-width: 800px) {
    .calendario-input { min-height: 44px; font-size: 16px; }
    .fixture-auto-sel { min-height: 40px; font-size: 16px; }
    .pedidos-fixture-alta { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
    .pedidos-fixture-alta select { min-height: 44px; font-size: 16px; }
    .pedidos-fixture-alta #pedido-fixture-fecha,
    .pedidos-fixture-alta .arbitros-btn-agregar { grid-column: 1 / -1; min-height: 44px; }
    .pedidos-horario-alta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .pedidos-horario-alta #pedido-horario-equipo,
    .pedidos-horario-alta #pedido-horario-fecha { grid-column: 1 / -1; }
    .arbitros-cancha-sel { min-height: 44px; font-size: 16px; }
    .fixture-auto-botones { flex-direction: column-reverse; }
    .fixture-auto-botones .btn-submit-admin,
    .fixture-auto-botones .importar-btn-cancelar { width: 100%; }
}

/* ============================================================
   🎱 ASISTENTE DE SORTEO (Carga de Partidos → Playoffs). Se usa en el vivo de Instagram, muchas veces desde el
   celular: botones de 44 px y nada que desborde a 390 px.
   ============================================================ */
.sorteo-panel {
    grid-column: 1 / -1;
    min-width: 0;
    border-color: #f2c00e;
    text-align: left;
}
.sorteo-titulo { margin-top: 0; color: #f2c00e; }
.sorteo-texto { margin: -6px 0 10px; font-size: 11px; color: #869bd8; line-height: 1.45; }
.sorteo-btn-preparar { background: #854d0e; border-color: #f2c00e; color: #ffffff; }
.sorteo-encabezado { margin: 14px 0 8px; font-family: 'Michroma', sans-serif; font-size: 13px; color: #ffffff; }
.sorteo-aviso {
    margin: 0 0 10px;
    padding: 8px 10px;
    border-left: 3px solid #f2c00e;
    border-radius: 3px;
    background: rgba(242, 192, 14, 0.08);
    font-size: 12px;
    color: #f8e7a8;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.sorteo-aviso-error { border-left-color: #f43f5e; background: rgba(244, 63, 94, 0.08); color: #fecdd3; }

.sorteo-bombos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 10px 0;
}
.sorteo-bombo {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 3px;
    background: rgba(4, 12, 38, 0.55);
    border-left: 3px solid #f2c00e;
}
.sorteo-bombo-titulo { margin: 0 0 6px; font-family: 'Oswald', sans-serif; font-size: 13px; color: #f2c00e; text-transform: uppercase; }
.sorteo-lista { margin: 0; padding: 0; list-style: none; }
.sorteo-lista li {
    display: flex;
    gap: 8px;
    align-items: baseline;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    color: #ffffff;
    overflow-wrap: anywhere;
}
.sorteo-lista li:last-child { border-bottom: none; }
.sorteo-rank { min-width: 22px; color: #869bd8; }
.sorteo-grupo { margin-left: auto; color: #869bd8; white-space: nowrap; }
.sorteo-lista li.sorteo-salio { opacity: 0.4; text-decoration: line-through; }

.sorteo-paso {
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px dashed rgba(242, 192, 14, 0.45);
    border-radius: 3px;
}
.sorteo-paso-titulo { margin: 0 0 8px; font-size: 13px; color: #ffffff; }
.sorteo-opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.sorteo-opcion {
    min-height: 44px;
    padding: 6px 12px;
    border: 1px solid #2c68e7;
    border-radius: 3px;
    background: #0a1d54;
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    overflow-wrap: anywhere;
}
.sorteo-opcion small { display: block; font-size: 10px; color: #869bd8; }
.sorteo-opcion:disabled { cursor: not-allowed; opacity: 0.75; }
.sorteo-opcion-prohibido { border-color: #f43f5e; background: rgba(244, 63, 94, 0.12); }
.sorteo-opcion-prohibido small { color: #fda4af; }
.sorteo-opcion-sinsalida { border-color: #f59e0b; background: rgba(245, 158, 11, 0.12); }
.sorteo-opcion-sinsalida small { color: #fcd34d; }
.sorteo-opcion-sugerida { border-color: #f2c00e; box-shadow: 0 0 0 1px #f2c00e; }
.sorteo-opcion-sugerida small { color: #f2c00e; }

.sorteo-llaves {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
    margin: 10px 0;
}
.sorteo-llave {
    min-width: 0;
    padding: 8px 10px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid #475569;
    font-size: 12px;
    color: #cbd5e1;
    overflow-wrap: anywhere;
}
.sorteo-llave strong { display: block; color: #f2c00e; font-size: 11px; text-transform: uppercase; }
.sorteo-llave-ocupada { border-left-color: #f2c00e; color: #ffffff; }

.sorteo-acciones { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.sorteo-acciones .btn-submit-admin { width: auto; min-height: 44px; }

@media (max-width: 800px) {
    .sorteo-bombos { grid-template-columns: 1fr; }
    .sorteo-opcion { width: 100%; }
    .sorteo-acciones { flex-direction: column-reverse; }
    .sorteo-acciones .btn-submit-admin,
    .sorteo-acciones .importar-btn-cancelar { width: 100%; }
}

/* ============================================================
   📱 ZONAS SEGURAS (index.html usa viewport-fit=cover)
   env(safe-area-inset-*) vale 0 donde no hay esquinas redondeadas,
   muesca ni barra de gestos, así que en esos casos no cambia nada.
   Va al final para ganarle a los !important anteriores de la barra.
   ============================================================ */
@media (max-width: 768px) {
    .sidebar {
        height: calc(60px + env(safe-area-inset-bottom)) !important;
        padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left) !important;
    }

    .side-nav,
    .nav-item {
        min-width: 0 !important;
    }

    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Solo iOS (Safari y Chrome usan WebKit en el iPhone) */
@supports (-webkit-touch-callout: none) {
    @supports not (height: 100dvh) {
        html { height: -webkit-fill-available; }
        body,
        body.staff-page { min-height: -webkit-fill-available; }
        .modal-noticia-overlay { height: -webkit-fill-available !important; }
    }

    /* Vertical: "Inicio" y "Admin" se alejan de las esquinas redondeadas */
    @media (max-width: 768px) {
        .sidebar {
            padding-left: max(10px, env(safe-area-inset-left)) !important;
            padding-right: max(10px, env(safe-area-inset-right)) !important;
        }
    }

    /* Horizontal: la barra lateral, el encabezado y el contenido no quedan debajo de la isla de la cámara.
       Desde 769 px, igual que la barra lateral: los iPhone con isla o muesca miden 812 px o más acostados. */
    @media (min-width: 769px) {
        body aside.sidebar {
            padding-left: env(safe-area-inset-left) !important;
            width: calc(70px + env(safe-area-inset-left)) !important;
        }

        body aside.sidebar:hover,
        body aside.sidebar.sidebar-fijada {
            width: calc(210px + env(safe-area-inset-left)) !important;
        }

        body .showman {
            margin-left: calc(70px + env(safe-area-inset-left)) !important;
            width: calc(100% - 70px - env(safe-area-inset-left) - env(safe-area-inset-right)) !important;
        }

        body .top-bar {
            padding-left: env(safe-area-inset-left);
            padding-right: env(safe-area-inset-right);
        }
    }
}
