.main-category-selector {
    background: #0a0a0a;
    padding: 15px;
    border-bottom: 2px solid #cc0000;
    position: sticky;
    top: 0;
    z-index: 9999;
    text-align: center;
}

.selector-content label {
    color: white;
    font-weight: bold;
    margin-right: 10px;
}

#team-switcher {
    padding: 8px 15px;
    background: #1a1a1a;
    color: white;
    border: 1px solid #0055ff;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.team-contai
r.hidden {
    display: none;
}

.view-section.hidden {
    display: none;
}

:root {
    --primary-blue: #0055ff;
    --primary-red: #cc0000;
    --bg-black: #050505;
    --bg-card: #111111;
    --text-white: #ffffff;
    --text-grey: #a0a0a0;
    --border: #222222;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

.navbar-dark {
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-red);
    padding: 1.2rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.brand {
    font-size: 1.8rem;
    font-weight: 800;
}

.logo-accent {
    color: var(--primary-blue);
}

.nav-btn-main {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-white);
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-btn-main:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.hero-dark {
    height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.9)), ;
    background-size: cover;
    background-position: center;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--border);
}

.hero-inner {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-inner h1 {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 900;
    letter-spacing: -2px;
    margin: 15px 0;
}

.badge {
    background: var(--primary-red);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.line-decorator {
    width: 80px;
    height: 4px;
    background: var(--primary-blue);
    margin: 25px auto;
    border-radius: 2px;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px 100px;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.glass-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary-blue);
    transition: transform 0.3s ease;
}

.glass-card:hover { transform: translateY(-5px); }

.shortcut-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.action-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 60px 20px;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.action-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary-red);
    box-shadow: 0 15px 40px rgba(204, 0, 0, 0.2);
}

.action-card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.card-label {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
}

.players-dark-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.coach-box { border-top: 4px solid var(--primary-red); }

.num {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary-red);
    margin-right: 25px;
    min-width: 50px;
}

.table-wrapper {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    overflow-x: auto;
    border: 1px solid var(--border);
}

.dark-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.dark-table th {
    text-align: left;
    padding: 20px;
    color: var(--primary-blue);
    border-bottom: 2px solid var(--border);
}

.dark-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

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

.back-link {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.ascenso-centered-content {
    display: flex;
    text-align: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.bracket-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

.bracket-round {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #222;
    width: 100%;
}

.round-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    border-left: 4px solid var(--primary-red);
    padding-left: 15px;
    text-align: left;
}

.match-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.score {
    background: #222;
    padding: 5px 15px;
    border-radius: 5px;
    color: gold;
}

.match-details {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #777;
    text-align: center;
}

.view-section { animation: fadeIn 0.6s ease-out forwards; }
.hidden { display: none; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-footer {
    text-align: center;
    padding: 80px 20px;
    border-top: 1px solid var(--border);
}

.final, .cantera, .resultado, .tabla { color: grey; }

.classification-container {
    margin-top: 60px;
    width: 100%;
    animation: fadeIn 0.8s ease-out;
}

.section-title-alt {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-align: center;
    color: var(--text-white);
    letter-spacing: 1px;
}

.dark-table.classification { border-collapse: collapse; font-size: 1rem; }
.dark-table.classification th {
    background: #1a1a1a;
    color: var(--primary-blue);
    text-transform: uppercase;
}

.team-name { text-align: left !important; font-weight: 500; }

.highlight-idoya {
    background: rgba(204, 0, 0, 0.2) !important;
    border-left: 4px solid var(--primary-red);
}

.highlight-idoya td { color: #fff; font-weight: 700; }
.dark-table.classification tr:hover { background: rgba(255, 255, 255, 0.05); }
.hero-section {
    width: 100%;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    transition: background-image 0.5s ease-in-out;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://i.postimg.cc/P5MsyMCN/Screenshot-2026-04-16-21-42-48.png');
}
body {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.9)), url('https://i.postimg.cc/P5MsyMCN/Screenshot-2026-04-16-21-42-48.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease-in-out;
}
.hero-dark {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hidden {
    display: none !important;
}
.hero-dark {
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    
    transition: background-image 0.5s ease-in-out;
}

.hidden {
    display: none !important;
}
.team-container, .view-section {
    background: transparent !important;
}
function cambiarCategoria(categoria) {
    const fotosCabecera = {
        'primer': 'https://i.postimg.cc/P5MsyMCN/Screenshot-2026-04-16-21-42-48.png',
        'segundo': 'https://i.postimg.cc/8CnYXXNB/Screenshot-2026-04-16-21-42-29.png',
        'juvenil': 'https://i.postimg.cc/8cLn51WL/Screenshot-2026-04-16-21-43-31.png',
        'cadete': 'https://i.postimg.cc/284PjxFJ/Screenshot-2026-04-16-21-42-40.png'
    };

    const equipoActivo = document.getElementById('cat-' + categoria);
    if (equipoActivo) {

        if (fotosCabecera[categoria]) {
            document.body.style.backgroundImage = `linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('${fotosCabecera[categoria]}')`;
        }
        mostrarSeccion('inicio');
    }
}

.summary-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start; 
    padding: 20px;
}

.glass-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    height: auto; 
}

.modal-jugador {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    pointer-events: auto; 
}

.ficha-detalle {
    background: #000000;
    border: 2px solid #0055ff;
    border-radius: 15px;
    width: 320px;
    padding: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.9); 
    animation: aparecer 0.3s ease-out;
}

.player-box {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #000000; 
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #222; 
}

.player-box:hover {
    background: #000000; 
    transform: translateX(5px); 
    border-color: #0055ff;
    box-shadow: 0 0 15px rgba(0, 85, 255, 0.3); 
}

.stats-grid-detalle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 15px;
}

.stat-item {
    background: #151515;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #222;
}

.stat-item span { font-size: 1.2rem; display: block; font-weight: bold; }
.stat-item label { font-size: 0.65rem; color: #888; text-transform: uppercase; }

@keyframes aparecer {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.countdown-box {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #0055ff;
    border-radius: 15px;
    padding: 20px;
    margin: 20px auto;
    max-width: 500px;
    text-align: center;
    backdrop-filter: blur(5px);
}

.reloj-titulo {
    color: #0055ff;
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.reloj-display {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.reloj-bloque {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 65px;
}

.reloj-numero {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 10px #0055ff;
    font-family: monospace;
}

.reloj-etiqueta {
    font-size: 0.7rem;
    color: #aaa;
    text-transform: uppercase;
}

.reloj-info {
    margin-top: 15px;
    color: #00ff88;
    font-weight: bold;
    font-size: 1rem;
}

.fila-partidos {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;           
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 15px;
}

.card-informativa {
    flex: 1;             
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #0055ff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-informativa h3 {
    color: #0055ff;
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.marcador-texto {
    font-size: 1.4rem;  
    font-weight: bold;
    color: white;
}

.resumen-texto {
    font-size: 0.9rem;   
    color: #aaa;
    margin: 15px 0;
    line-height: 1.4;
}

.mvp-texto {
    color: #ffd700;      
    font-size: 1.4rem;  
    font-weight: bold;
}

.reloj-display span {
    font-size: 3rem;           
    font-weight: 800;         
    color: #ffffff;           
    display: block;           
    line-height: 1;           
    text-shadow: 0 0 15px rgba(0, 85, 255, 0.5); 
}


.reloj-display small {
    font-size: 0.75rem;       
    color: #0055ff;         
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 5px;          
}

.reloj-display div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 85, 255, 0.1); 
    padding: 15px;
    border-radius: 10px;
    min-width: 80px;          
}

.reloj-display {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 15px 0;
}

@media (max-width: 768px) {
    .fila-partidos {
        flex-direction: column;
    }
    .card-informativa {
        width: 100%;
    }
}
.campo-tactico {
    background: #050505;
    border: 1px solid #333;
    border-radius: 8px;
    height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 10px 0;
    position: relative;
    background-image: linear-gradient(#222 1px, transparent 1px);
    background-size: 100% 50%;
}

.linea-campo {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.jugador-t {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
}

.jugador-t span {
    background: #0055ff;
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid white;
}

.jugador-t p {
    font-size: 0.65rem;
    color: white;
    margin-top: 2px;
    text-transform: uppercase;
    outline: none;
    cursor: text;
}
.fila-partidos {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 25px;           
    width: 100%;
    max-width: 1300px;
    margin: 30px auto;    
    padding: 0 20px;
}

.card-informativa {
    flex: 1;             
    min-width: 0;
}

.reloj-display span {
    font-size: 2.5rem; 
}
