/* =========================================================
   HOME - SLIDER + PROGRAMAS DE GOBIERNO
   ========================================================= */

#home-deportes {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #ffffff;
}


/* =========================================================
   ESTRUCTURA 70 / 30
   ========================================================= */

.home-layout {

    width: 100%;

    display: grid;

    grid-template-columns: 70% 30%;

    align-items: stretch;

    margin: 0;
    padding: 0;

    overflow: hidden;
}


/* =========================================================
   SLIDER - ALTURA PROPORCIONAL
   ========================================================= */

.home-slider-column {
    width: 100%;
    min-width: 0;
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

#customSlider {
    width: 100%;
    position: relative;
    overflow: hidden;
}

#customSlider .carousel-inner {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.custom-carousel-item {
    position: relative;
    width: 100%;
    background: #ffffff;
}

/* La imagen conserva SIEMPRE su proporción */
.custom-carousel-item img {
    display: block;

    width: 100% !important;
    height: auto !important;

    max-width: 100%;

    object-fit: contain;
    object-position: center;

    margin: 0;
}


/* =========================================================
   OVERLAY DE INFORMACIÓN
   ========================================================= */

.info-overlay {

    position: absolute;

    top: 0;
    right: 0;

    width: 32%;
    height: 100%;

    background: linear-gradient(
        90deg,
        rgba(0,0,0,0),
        rgba(0,0,0,.82)
    );

    color: #ffffff;

    padding: 35px 25px;

    opacity: 0;

    transition:
        opacity .35s ease;

    display: flex;

    flex-direction: column;

    justify-content: center;

    text-align: left;

    box-sizing: border-box;
}


.custom-carousel-item:hover .info-overlay {

    opacity: 1;

}


.info-overlay h2 {

    font-size: clamp(18px, 2vw, 30px);

    font-weight: 800;

    margin: 0 0 12px;

    line-height: 1.15;
}


.info-overlay h3 {

    font-size: clamp(13px, 1.3vw, 18px);

    margin: 0 0 12px;

    line-height: 1.3;
}


.info-overlay p {

    font-size: clamp(11px, 1vw, 15px);

    line-height: 1.5;

    margin-bottom: 20px;
}


/* =========================================================
   BOTÓN
   ========================================================= */

.info-overlay .btn {

    width: fit-content;

    border-radius: 30px;

    padding: 8px 20px;

    font-size: 13px;

    font-weight: 600;
}


/* =========================================================
   INDICADORES
   ========================================================= */

#thumbnails {

    position: absolute;

    bottom: 18px;

    left: 0;
    right: 0;

    z-index: 20;
}


/* =========================================================
   ESFERAS
   ========================================================= */

.thumbnail-sphere {

    width: 12px;
    height: 12px;

    border-radius: 50%;

    background-color: rgba(255,255,255,.55);

    border: 1px solid rgba(0,0,0,.15);

    padding: 0;

    margin: 0 5px;

    transition:
        all .3s ease;
}


.thumbnail-sphere:hover {

    transform: scale(1.2);

}


.thumbnail-sphere.active {

    background-color: #ffffff;

    transform: scale(1.25);

}


/* =========================================================
   PROGRAMAS DE GOBIERNO - 30%
   ========================================================= */

.programas-column {

    width: 100%;

    min-width: 0;

    display: flex;

    flex-direction: column;

    background: #ffffff;

    border-left: 1px solid #eeeeee;

}


/* =========================================================
   TÍTULO
   ========================================================= */

.programas-title {

    flex: 0 0 auto;

    min-height: 65px;

    padding: 12px 10px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    background: linear-gradient(
        135deg,
        #f8faff,
        #ffffff
    );

    border-bottom: 1px solid #e8edf5;

    box-sizing: border-box;
}


.programas-title h2 {

    margin: 0;

    padding: 0;

    color: #123f88;

    font-size: clamp(13px, 1.25vw, 20px);

    font-weight: 800;

    letter-spacing: .4px;

    text-align: center;

    white-space: nowrap;
}


/* Líneas */

.programas-line {

    display: block;

    width: 30px;

    height: 3px;

    background: #075bc1;

    border-radius: 10px;

    flex-shrink: 0;
}


/* =========================================================
   CONTENEDOR DE LOS DOS BANNERS
   ========================================================= */

.programas-banners {

    flex: 1;

    min-height: 0;

    display: flex;

    flex-direction: column;

    width: 100%;

}


/* =========================================================
   CADA BANNER
   ========================================================= */

.programa-banner {

    flex: 1;

    min-height: 0;

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    background: #ffffff;

    position: relative;
}


/* Separador entre banners */

.programa-banner + .programa-banner {

    border-top: 1px solid #e8edf5;

}


/* =========================================================
   LINK
   ========================================================= */

.programa-banner a {

    display: flex;

    width: 100%;
    height: 100%;

    align-items: center;
    justify-content: center;

    overflow: hidden;
}


/* =========================================================
   IMÁGENES VERTICALES
   ========================================================= */

.programa-banner img {

    display: block;

    max-width: 100%;

    max-height: 100%;

    width: auto;

    height: auto;

    object-fit: contain;

    object-position: center;

    transition:
        transform .4s ease,
        filter .4s ease;
}


/* Efecto elegante */

.programa-banner:hover img {

    transform: scale(1.025);

    filter: brightness(1.04);
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 999px) {

    .info-overlay p,
    .info-overlay h3 {
        display: none;
    }

}

@media (max-width: 992px) {

    .home-layout {

        grid-template-columns: 65% 35%;

    }


    .programas-title {

        min-height: 55px;

        padding: 8px 5px;

    }


    .programas-title h2 {

        font-size: 14px;

    }


    .programas-line {

        width: 18px;

    }

}


/* =========================================================
   RESPONSIVE - MÓVIL
   ========================================================= */

@media (max-width: 768px) {

    .home-layout {

        display: flex;

        flex-direction: column;

    }


    /* Slider completo */

    .home-slider-column {

        width: 100%;

    }

	.info-overlay {
        width: 50%;
    }

    /* Programas debajo */

    .programas-column {

        width: 100%;

        border-left: none;

        border-top: 1px solid #eeeeee;

    }


    .programas-title {

        min-height: 55px;

    }


    /* Los dos banners se colocan lado a lado */

    .programas-banners {

        display: grid;

        grid-template-columns: 1fr 1fr;

    }


    .programa-banner {

        height: auto;

        min-height: 180px;

    }


    .programa-banner + .programa-banner {

        border-top: none;

        border-left: 1px solid #e8edf5;

    }


    .programa-banner img {

        max-width: 100%;

        max-height: 100%;

    }

}


/* =========================================================
   MÓVILES PEQUEÑOS
   ========================================================= */

@media (max-width: 480px) {

    .programas-title h2 {

        font-size: 13px;

    }


    .programas-line {

        width: 15px;

        height: 2px;

    }


    .programa-banner {

        min-height: 140px;

    }

}