/* ESPECIAL INVESTIGATIVO: LA GRAN ESTAFA
   Diseño: Centrado Moderno con Adaptación Móvil "Stack"
   Tipografía: Lato
*/

/* IMPORTACIÓN DE FUENTES */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

/* CONFIGURACIÓN GENERAL */
body, html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #0d0d0d;
    font-family: 'Lato', sans-serif;
    color: #f5f5f5;
}

.swiper {
    width: 100%;
    height: 100vh;
}

.swiper-slide {
    position: relative;
    width: 100%;
    background: #0d0d0d;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(10%) contrast(105%);
}

/* LEYENDAS (CAPTIONS) CENTRADAS PARA ESCRITORIO */
.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Espacio inferior para los bullets */
    padding: 160px 7% 100px; 
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
    /* Degradado profundo para legibilidad */
    background: linear-gradient(to top, 
        rgba(0,0,0,1) 0%, 
        rgba(0,0,0,0.85) 50%, 
        rgba(0,0,0,0) 100%);
    box-sizing: border-box;
    z-index: 10;
}

/* CAJA DE TÍTULO CENTRADA */
.slide-title {
    background-color: #82694F; /* Color café de marca */
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    padding: 12px 30px;
    margin: 0 0 20px 0;
    display: inline-block;
    line-height: 1.2;
    text-transform: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* DESCRIPCIÓN */
.slide-description {
    font-size: 17px;
    margin: 0 auto 20px;
    line-height: 1.7;
    max-width: 750px;
    color: #e0e0e0;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slide-credit {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
    font-weight: 700;
}

/* BOTONES DE NAVEGACIÓN (COLOR CAFÉ) */
.swiper-button-next, .swiper-button-prev {
    color: #ffffff !important;
    background: #82694F !important;
    width: 50px;
    height: 50px;
    border-radius: 4px;
    transform: scale(0.7);
    transition: all 0.3s ease;
    z-index: 20;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 18px;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background: #a66d3b !important;
    transform: scale(0.75);
}

/* PAGINACIÓN (BULLETS) VISIBLES */
.swiper-pagination {
    bottom: 35px !important;
    z-index: 30 !important;
}

.swiper-pagination-bullet {
    background: #ffffff !important;
    opacity: 0.4;
    width: 10px;
    height: 10px;
    margin: 0 6px !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
    background: #82694F !important;
    transform: scale(1.3);
}

/* RESPONSIVE: SOLUCIÓN PARA MÓVILES (FOTOS ARRIBA, TEXTO ABAJO) */
@media (max-width: 768px) {
    .swiper-slide {
        flex-direction: column; /* Apila imagen y texto */
        justify-content: flex-start;
    }

    .swiper-slide img {
        height: 50vh; /* La imagen ocupa la mitad superior */
        width: 100%;
        object-fit: cover;
    }

    .slide-caption {
        position: relative; /* Deja de flotar sobre la imagen */
        height: 50vh; /* El texto ocupa la mitad inferior */
        padding: 30px 20px 70px;
        background: #0d0d0d; /* Fondo sólido para legibilidad total */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border-top: 2px solid #82694F; /* Línea divisoria de marca */
    }

    .slide-title { 
        font-size: 19px;
        padding: 10px 20px;
        margin-bottom: 15px;
    }

    .slide-description { 
        font-size: 14px; 
        line-height: 1.5;
        max-width: 100%;
    }

    .swiper-button-next, .swiper-button-prev {
        display: none; /* Se ocultan para limpiar la interfaz en móvil */
    }

    .swiper-pagination {
        bottom: 20px !important;
    }
}