/* =========================================
   EC-SCORE MODERN UI
========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* VARIABLES */
:root{

    --azul: #002D72;
    --azul-oscuro: #001847;
    --rojo: #D50032;
    --gris-claro: #f4f6f9;
    --gris-texto: #4b5563;
    --blanco: #ffffff;
    --sombra: 0 4px 18px rgba(0,0,0,0.08);

}

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

/* BODY */
body{

    font-family: 'Inter', sans-serif;

    background: #0f172a;

    color: #e5e7eb;

    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6{

    color:#f8fafc;

    font-family:'Poppins', sans-serif;

    font-weight:700;
}



/* =========================================
   HERO MODERNO
========================================= */

.hero{

    position: relative;

    width: 100%;

    min-height: 88vh;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;
}

/* IMAGEN FONDO */

.hero::before{

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            rgba(0,0,0,0.55),
            rgba(0,0,0,0.55)
        ),
        url('../Imagenes/Fondo02.jpg');

    background-size: cover;

    background-position: center center;

    background-repeat: no-repeat;

    z-index: 1;
}

/* CONTENIDO */

.hero-overlay{

    position: relative;

    z-index: 2;

    width: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 40px 20px;

    text-align: center;
}

.hero-content{

    max-width: 950px;

    color: white;
}

.hero-content h1{

    font-size: 64px;

    font-weight: 800;

    line-height: 1.05;

    margin-bottom: 25px;

    font-family: 'Poppins', sans-serif;

    text-shadow:
        0 4px 20px rgba(0,0,0,0.35);
}

.hero-content p{

    font-size: 24px;

    line-height: 1.5;

    color: rgba(255,255,255,0.90);

    margin-bottom: 35px;
}

/* BOTONES */

.btn-hero{

    display: inline-block;

    padding: 15px 28px;

    border-radius: 14px;

    font-size: 16px;

    font-weight: 700;

    margin: 8px;

    transition: all .25s ease;
}

.btn-primary-custom{

    background: #D50032;

    color: white;
}

.btn-primary-custom:hover{

    transform: translateY(-3px);

    background: #b10029;
}

.btn-secondary-custom{

    background: rgba(255,255,255,0.10);

    border: 1px solid rgba(255,255,255,0.25);

    color: white;
}

.btn-secondary-custom:hover{

    background: rgba(255,255,255,0.18);

    transform: translateY(-3px);
}

/* =========================================
   HERO MOBILE
========================================= */

@media(max-width: 900px){

    .hero{

        min-height: 72vh;
    }

    .hero-content h1{

        font-size: 38px;

        line-height: 1.15;
    }

    .hero-content p{

        font-size: 18px;
    }

    .btn-hero{

        width: 100%;

        max-width: 320px;
    }

}

/* BOTONES */
.btn-hero{

    display:inline-block;
    padding:14px 28px;
    border-radius:10px;
    font-weight:600;
    margin:8px;
    transition:0.25s;
    text-decoration:none;
}

.btn-primary-custom{

    background:var(--rojo);
    color:white;
}

.btn-primary-custom:hover{

    background:#b10029;
    transform:translateY(-2px);
}

.btn-secondary-custom{

    background:rgba(255,255,255,0.12);
    border:1px solid rgba(255,255,255,0.25);
    color:white;
}

.btn-secondary-custom:hover{

    background:rgba(255,255,255,0.22);
}

/* SECCIONES */
section{

    padding:70px 8%;
}

/* TITULOS */
section h1{

    font-size:40px;

    font-weight:700;

    color:#ffffff;

    margin-bottom:30px;
}

/* PARRAFOS */
section p{

    font-size:18px;

    color:#d1d5db;

    margin-bottom:22px;
}

/* CARDS */
.card-modern{

    background:#1e293b;
    border-radius:18px;
    padding:30px;
    box-shadow:var(--sombra);
    transition:0.25s;
}

.card-modern:hover{

    transform:translateY(-4px);
}

/* FOOTER */
footer{

    background:linear-gradient(to right, var(--azul), var(--azul-oscuro));
    color:white;
    text-align:center;
    padding:35px 20px;
    margin-top:60px;
    border-radius:0;
    height:auto;
}

/* REDES */
footer img{

    transition:0.25s;
}

footer img:hover{

    transform:scale(1.12);
}

/* TABLAS MODERNAS */
/* =========================================
   TABLAS DARK MODE
========================================= */

table{

    width:100%;

    border-collapse: collapse;

    background:#1e293b;

    border-radius:16px;

    overflow:hidden;

    box-shadow:
        0 4px 18px rgba(0,0,0,0.20);
}

/* HEADER */

thead,
th{

    background:#002D72;

    color:#ffffff;

    font-weight:700;
}

/* CELDAS */

th,
td{

    padding:14px 16px;

    border-bottom:
        1px solid rgba(255,255,255,0.06);

    color:#e5e7eb;
}

/* FILAS */

tbody tr{

    background:#1e293b;

    transition:all .2s ease;
}

/* FILAS ALTERNAS */

tbody tr:nth-child(even){

    background:#172131;
}

/* HOVER */

tbody tr:hover{

    background:#243247;
}

/* LINKS DENTRO TABLAS */

table a{

    color:#93c5fd;
}

table a:hover{

    color:#ffffff;
}



/* =========================================
   NAVBAR MODERNO EC-SCORE
========================================= */

.navbar-ecscore{

    position: sticky;
    top: 0;
    z-index: 999;

    width: 95%;
    margin: 15px auto;

    background: linear-gradient(
        135deg,
        #001847,
        #002D72
    );

    border-radius: 18px;

    box-shadow:
        0 6px 25px rgba(0,0,0,0.18);

    min-height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 25px;
}

/* LOGO + TITULO */


.logo{

    height: 52px;
    width: auto;

    transition: transform .3s ease;
}

.logo:hover{

    transform: scale(1.05);
}

.titulo-sistema{

    color: white;

    font-size: 28px;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;
}



/* MENU */

.navbar-ecscore ul{

    display: flex;
    align-items: center;
    gap: 10px;

    margin: 0;
    padding: 0;
}

/* ITEMS */

.navbar-ecscore ul li{

    list-style: none;
}

/* LINKS */

.navbar-ecscore ul li a{

    color: rgba(255,255,255,0.92);

    font-size: 15px;

    font-weight: 600;

    padding: 10px 16px;

    border-radius: 12px;

    transition: all .25s ease;

    text-decoration: none;
}

/* HOVER */

.navbar-ecscore ul li a:hover{

    background: rgba(255,255,255,0.12);

    color: white;

    transform: translateY(-2px);
}

/* ITEM ACTIVO */

.navbar-ecscore ul li a.active{

    background: #D50032;

    color: white;

    box-shadow:
        0 4px 12px rgba(213,0,50,0.35);
}

/* MOBILE */

.checkbtn{

    color: white;
}

/* RESPONSIVE */

@media(max-width: 900px){

    .navbar-ecscore{

        flex-wrap: wrap;
        padding: 15px;
    }

    .titulo-sistema{

        font-size: 22px;
    }

    .navbar-ecscore ul{

        width: 100%;
        flex-direction: column;

        background: #001847;

        margin-top: 15px;

        border-radius: 15px;

        padding: 15px;

        display: none;
    }


}


/* =========================================
   MOBILE FINAL LIMPIO
========================================= */

@media(max-width: 900px){

    .navbar-ecscore{

        padding: 15px 20px;

        min-height: auto;
    }

    .checkbtn{

        display:block;

        font-size:28px;

        color:white;

        cursor:pointer;
    }

    .navbar-ecscore ul{

        position:absolute;

        top:85px;

        right:15px;

        width:250px;

        background:#001847;

        border-radius:18px;

        padding:12px;

        display:none;

        flex-direction:column;

        gap:8px;

        box-shadow:
            0 12px 30px rgba(0,0,0,0.30);

        z-index:999;
    }

    #check:checked ~ ul{

        display:flex;
    }

    .navbar-ecscore ul li{

        width:100%;
    }

    .navbar-ecscore ul li a{

        display:block;

        width:100%;

        padding:12px 15px;

        border-radius:12px;

        font-size:15px;
    }

    .titulo-sistema{

        font-size:20px;
    }

}


/* =========================================
   HEADER MODERNO EC-SCORE
========================================= */

.topbar{

    position: sticky;
    top: 0;
    z-index: 9999;

    width: 100%;

    padding: 14px 25px;

    background:
        rgba(15, 23, 42, 0.92);

    backdrop-filter: blur(10px);

    box-shadow:
        0 2px 20px rgba(0,0,0,0.18);
}

/* CONTENEDOR */

.topbar-container{

    max-width: 1400px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}

/* BRAND */

.brand{

    display: flex;

    align-items: center;

    gap: 14px;

    text-decoration: none;
}

.brand img{

    height: 52px;

    width: auto;
}

.brand span{

    color: white;

    font-size: 28px;

    font-weight: 800;

    letter-spacing: 1px;

    font-family: 'Poppins', sans-serif;
}

/* MENU */

.main-menu{

    display: flex;

    align-items: center;

    gap: 8px;
}

/* LINKS */

.main-menu a{

    color: rgba(255,255,255,0.92);

    text-decoration: none;

    font-size: 15px;

    font-weight: 600;

    padding: 10px 14px;

    border-radius: 12px;

    transition: all .25s ease;

    background: rgba(255,255,255,0.04);
}

/* HOVER */

.main-menu a:hover{

    background:
        rgba(255,255,255,0.12);

    transform: translateY(-2px);

    color: white;
}

/* ACTIVE */

.main-menu a.active{

    background: #D50032;

    color: white;

    box-shadow:
        0 4px 12px rgba(213,0,50,0.35);
}

/* ADMIN BUTTON */

.btn-admin{

    background: #2563eb;

    color: white !important;

    margin-left: 8px;
}

.btn-admin:hover{

    background: #1d4ed8 !important;
}

/* MENU TOGGLE */

.menu-toggle{

    display: none;

    background: none;

    border: none;

    color: white;

    font-size: 28px;

    cursor: pointer;
}

/* =========================================
   MOBILE
========================================= */

@media(max-width: 980px){

    .menu-toggle{

        display: block;
    }

    .main-menu{

        position: absolute;

        top: 82px;

        right: 20px;

        width: 280px;

        background:
            rgba(15,23,42,0.98);

        border-radius: 18px;

        padding: 18px;

        flex-direction: column;

        align-items: stretch;

        display: none;

        box-shadow:
            0 15px 40px rgba(0,0,0,0.28);
    }

    .main-menu.show{

        display: flex;
    }

    .main-menu a{

        width: 100%;

        padding: 14px 16px;

        border-radius: 12px;
    }

    .brand span{

        font-size: 22px;
    }

}

/* =========================================
   GRID MODERNO DE LIGAS
========================================= */

.ligas-grid{

    display:grid;

grid-template-columns:
    repeat(5, 1fr);

    gap:20px;

    width:100%;

    padding:20px;
}

/* CARD */

.liga-card{

    background:#1e293b;

    border-radius:18px;

    padding:18px;

    text-align:center;

    transition:all .25s ease;

    box-shadow:
        0 6px 18px rgba(0,0,0,0.20);
}

/* HOVER */

.liga-card:hover{

    transform:translateY(-4px);

    background:#273449;
}

/* LOGOS */

.liga-card img{

    width:70px;

    height:70px;

    object-fit:cover;

    border-radius:50%;

    border:3px solid rgba(255,255,255,0.08);

    transition:all .25s ease;
}

.liga-card:hover img{

    transform:scale(1.05);
}

/* MOBILE */

@media(max-width: 600px){

    .ligas-grid{

grid-template-columns:
    repeat(2, 1fr);

        gap:15px;

        padding:15px;
    }

    .liga-card{

        padding:14px;
    }

    .liga-card img{

        width:60px;
        height:60px;
    }
}

/* =========================================
   TABLAS MODERNAS RESPONSIVE
========================================= */

.tabla-ligas-modern{

    width:100%;

    border-collapse:separate;

    border-spacing:4px;

    table-layout:fixed;
}

/* CELDAS */

.tabla-ligas-modern td{

    text-align:center;

    vertical-align:top;

    padding:2px;
}

/* CARD VISUAL COMPACTA */

.tabla-ligas-modern td table{

    background:#1e293b;

    border-radius:10px;

    padding:4px;

    transition:all .20s ease;

    box-shadow:
        0 2px 8px rgba(0,0,0,0.18);
}

/* HOVER */

.tabla-ligas-modern td table:hover{

    transform:translateY(-2px);

    background:#273449;
}

/* LOGOS */

.tabla-ligas-modern img{

    width:52px;

    height:52px;

    object-fit:cover;

    border-radius:50%;
}

/* MOBILE */

@media(max-width:768px){

    .tabla-ligas-modern{

        width:100%;

        border-spacing:2px;
    }

    .tabla-ligas-modern td{

        min-width:65px;

        padding:1px;
    }

    .tabla-ligas-modern img{

        width:45px;

        height:45px;
    }

    .tabla-ligas-modern td table{

        padding:3px;

        border-radius:8px;
    }
}

/* INICIO ESTILO COLUMNAS BOXSCORE */

/* TABLA RESULTADOS MODERNA */

.tabla-resultados{

    width:100%;

    background:transparent !important;

    border-collapse:separate;

    border-spacing:8px;
}

/* CELDAS */

.tabla-resultados td{

    word-break:break-word;
}

/* =========================================
   COLUMNAS LIGAS RESPONSIVE
========================================= */

.columnaBoxScore{

    width:50%;

    padding:10px;

    float:left;
}

/* MOBILE */

@media(max-width:768px){

    .columnaBoxScore{

        width:100% !important;

        float:none !important;

        padding:8px 0;

        overflow-x:auto;
    }

    .columnaBoxScore table{

        min-width:100%;

        border-spacing:6px !important;
    }
}

