/* ==========================================
   SECCIÓN HISTORIA
   ========================================== */

.historia-section {
    background-color: #6d6e6c;
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding-top: 15vh !important;
}

/* ==========================================
   TÍTULO
 ========================================= */

.historia-title {
    position: absolute;
    top: 18vh;
    z-index: 2;
    font-size: 5vh;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.2vh;
}

/* ==========================================
   CONTENEDOR DE IMAGEN CON SCROLL HORIZONTAL
 ========================================= */

.historia-image-container {
    margin-top: 10vh;
    height: 80vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Contenedor interno para el scroll horizontal */
.historia-image-wrapper {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* La imagen principal */
.historia-image {
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: cover;
    object-position: left center;
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    will-change: transform;
    /* Asegurar que la imagen siempre sea visible */
    display: block;
    position: relative;
    z-index: 1;
}

/* Estado de carga de la imagen */
.historia-image.loading {
    opacity: 0.5;
}

/* Estado de error de la imagen */
.historia-image.error {
    opacity: 0.3;
}

/* ==========================================
   RESPONSIVE DESIGN
 ========================================= */

/* Tablets */
@media (max-width: 768px) {
    .historia-title {
        font-size: 4vh;
    }
}

/* Móviles */
@media (max-width: 480px) {
    .historia-image-container {
        margin-top: 20vh;
    }

    .historia-section {
        padding-top: 0 !important;
    }

    .historia-title {
        font-size: 3vh;
    }

    .historia-image {
        height: 80%;
    }
}