@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary-blue: #1a237e;
    --secondary-blue: #4fc3f7;
    --text-light: #ffffff;
    --background-light: #f5f5f5;
    --header-height: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', Arial, sans-serif;
}

body {
    background-color: var(--background-light);
    padding-top: var(--header-height);
    min-height: 100vh;
}

.tabla-container {
    padding: 1rem;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.link-patrocinador {
    margin-bottom: 0;
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #dedede;
    text-transform: uppercase;
    font-size: 12px;
}

.link-patrocinador .instagram-logo {
    height: 20px;
    margin-left: 5px;
    margin-bottom: 3px;
    filter: drop-shadow(2px 4px 6px black);
    filter: brightness(0) saturate(100%) invert(96%) sepia(96%) saturate(14%) hue-rotate(228deg) brightness(102%) contrast(100%);
}

.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
}

#fechaActualContainer {
    max-width: 800px;
}

#fechaActualContainer .fecha-header {
    padding: 5px;
    background-color: #06b6d4;
    color: #ffffff;
}

#fechaActualContainer .fecha-header {
    font-size: 1.2rem;
}

.date-header  {
    font-size: 1rem;
}

.banners-container {
    padding: 4rem 0 3rem;
}

.banner {
    transform: scale(1.1);
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.418);
}

.banner .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #0000007d;
    cursor: pointer;
    transition: all 250ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner:hover .overlay {
    background-color: #00000000;
} 

.banner .overlay h2 {
    padding-left: 14px;
    color: #e0e0e0;
    font-weight: 600;
    font-size: 43px;
    text-transform: uppercase;
    font-style: italic;
    line-height: 35px;
    margin-bottom: 0;
    text-shadow: 2px 2px 1px #000;
}

.banner .overlay.pl-xl h2 {
    padding-left: 28px;
}

.banner .overlay h2 span {
    font-size: 32px;
    padding-left: 10px;
}

/* Imagen Campeon */
.imagen-campeon {
    height: 75vh;
    max-height: 400px;
    padding-top: 20px;
}

.anuncio-torneo {
    border-top: 2px solid #d3d3d3;
    border-bottom: 2px solid #d3d3d3;
}

/* Jugadores Destacados */
.jugadores-destacados-container {
    margin-top: 30px;
    margin-bottom: 20px;
}

.jugadores-destacados-container h2 {
    text-align: center;
    text-decoration: underline;
    font-family: "Raleway", sans-serif;
    font-weight: 600;
    margin-bottom: 0;
}

#carouselCards {
    max-height: 75vh;
    max-width: 160vh;
}

#carouselCards .carousel-item, #carouselCards .carousel-inner {
    height: 100%;
    position: relative;
}

#carouselCards .carousel-item {
    padding-bottom: 15px;
}

#carouselCards .carousel-item .boton-descarga-container {
    position: absolute;
    bottom: 0;
}

#carouselCards .carousel-item img {
    height: 100%;
    object-fit: contain;
}

#carouselCards .carousel-control-next, #carouselCards .carousel-control-prev {
    opacity: 1;
    filter: invert(100%); 
}

/* Carrousel Fotos */
#carouselFotos {
    max-height: 80vh;
    max-width: 160vh;
    overflow: hidden;
    position: relative;
}

#carouselFotos .carousel-item img {
    margin-top: -100px;
}

#carouselFotos .carousel-control-next, #carouselFotos .carousel-control-prev {
    opacity: 1;
    filter: invert(100%); 
}

#carouselFotos .boton-navegacion {
    position: absolute;
    bottom: 5px;
    background-color: #ffffff;
    font-size: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#carouselFotos .boton-navegacion:hover {
    background-color: #1e2f40;
    color: #fff;
}

/* Pop Up */
.modal-header, .modal-footer {
    padding: 10px;
    background-color: #1e2f40 !important;
}

.modal-image-container img {
    width: 100%;
}

.modal-footer .boton-navegacion {
    bottom: 5px;
    background-color: #ffffff;
    color: #1e2f40;
    font-size: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.modal-footer .boton-navegacion:hover {
    background-color: #376ca1;
    color: #fff;
    border: 1px solid #fff;
}


@media (max-width: 1400px) {

    .banners-container {
        padding: 2rem 0;
    }

    .banner {
        transform: scale(1);
    }
}

@media (max-width: 1200px) {
    #carouselFotos .carousel-item img {
        margin-top: 0;
    }

    .banner-mobile {
        width: 100%;
        color: white;
        padding: 15px 20px;
        border-radius: 5px 5px 0 0;
        font-weight: bold;
        border: 1px solid #e0e0e0;
        border-radius: 5px;
        overflow: hidden;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        text-decoration: none;
    }

    .banner-mobile p {
        font-family: "Raleway", sans-serif;
        font-optical-sizing: auto;
        font-style: normal;
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 0;
        letter-spacing: 0.1rem;
    }

    .banner-mobile.banner--primera {
        background: linear-gradient(to right, #26394d 50%, var(--secondary-blue) 100%);
    }

    .banner-mobile.banner--femenino {
        background: linear-gradient(to right,#26394d 50%, #951c7b 100%);
    }

    .banner-mobile.banner--ascenso {
        background: linear-gradient(to right, #26394d 50%, #4CAF50 100%);
    }

    .banner-mobile.banner--quinta {
        background: linear-gradient(to right, #26394d 50%, #cf000c 100%);
    }

    .banner-mobile.banner--copa {
        background: linear-gradient(to right, #26394d 50%, #0e1217 100%);
    }
} 

/* ══════════════ Goleadores Home Widget ══════════════ */

.gh-titulo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.gh-titulo-badge {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: #1e2f40;
    white-space: nowrap;
}

.gh-titulo-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, #1e2f40 0%, transparent 100%);
    border-radius: 2px;
}

.gh-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gh-card-header {
    color: #fff;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    padding: 10px 14px;
}

.gh-card-body {
    padding: 8px 10px;
    flex: 1;
}

.gh-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 4px;
    border-bottom: 1px solid #f0f0f0;
}

.gh-row:last-child {
    border-bottom: none;
}

.gh-rank {
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    flex-shrink: 0;
    font-family: 'Raleway', sans-serif;
}

.gh-foto {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e0e0e0;
    background: #f5f5f5;
}

.gh-rank--gold   { color: #f9a825; }
.gh-rank--silver { color: #9e9e9e; }
.gh-rank--bronze { color: #8d6e63; }

.gh-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.gh-nombre {
    font-weight: 600;
    font-size: 0.85rem;
    color: #2c334f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gh-club {
    font-size: 0.72rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gh-goles {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c334f;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.gh-gol-label {
    font-size: 0.6rem;
    font-weight: 400;
    color: #999;
}

.gh-ver-mas {
    display: block;
    text-align: center;
    padding: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #2c334f;
    text-decoration: none;
    background: #f5f5f5;
    transition: background 150ms ease, color 150ms ease;
}

.gh-ver-mas:hover {
    background: #e3e7ef;
    color: #1a237e;
}

.gh-empty {
    font-size: 0.8rem;
    color: #aaa;
    text-align: center;
    padding: 20px 0;
    margin: 0;
}

/* Skeleton */
.gh-skeleton-header {
    height: 38px;
    opacity: 0.7;
}

.gh-skeleton-row {
    height: 58px;
    background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%);
    background-size: 200% 100%;
    animation: gh-shimmer 1.4s infinite;
    border-radius: 4px;
    margin-bottom: 6px;
}

@keyframes gh-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    #carouselFotos .boton-navegacion {
        font-size: 13px;
    }

    .jugadores-destacados-container {
        margin-top: 50px;
    }

    .jugadores-destacados-container h2 {
        font-size: 18px;
    }
    
    .tabla-container {
        padding: 0.5rem;
        margin-top: 1rem;
    }

    .imagen-campeon {
        height: auto;
        width: 100%;
        padding-top: 0;
    }

    #carouselCards .carousel-item {
        padding-bottom: 0px;
    }   
}