/* ========================================
   DESCRIPCIÓN.CSS - DPI del Perú
   Estilos para la sección Nosotros
======================================== */

/* ========================================
   SECCIÓN DESCRIPCIÓN
======================================== */
.descripcion-section {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
}

.descripcion-container {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 16vh 8vh;
    z-index: 2;
}

.descripcion-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    align-items: center;
    margin-top: 6.5vh;
    width: 100%;
}

.descripcion-left {
    margin-top: -5vh;
    width: 70%;
    display: flex;
    flex-direction: column;
    /* Posición inicial para la animación */
    transform: translateX(0);
    will-change: transform;
}

.descripcion-title {
    display: flex;
    margin-bottom: 3.5vh;
    justify-content: center;    
}

.title-image {
    width: 100%;
    max-width: 15vh;
    height: auto;
}

.descripcion-text {
    color: white;
    font-size: 2vh;
    line-height: 1.8;
    font-weight: 400;
    text-align: center;
}

.descripcion-text p {
    line-height: 1.3;
    text-align: justify;
}

.descripcion-text p:last-child {
    margin-bottom: 0;
}

.descripcion-right {
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 3.5vh 6.5vh rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.image-container {
    position: relative;
    width: 100%;
    width: 70vh;
    overflow: hidden;
    /* Posición inicial para la animación */
    transform: translateY(-17.5vh);
    will-change: transform;
}

.image {
    width: 100%;
    height: auto;
    display: block;
}

/* Animaciones */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-8vh);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(8vh);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   RESPONSIVE - DESCRIPCIÓN SECTION
======================================== */
@media (max-width: 1200px) {
    .descripcion-container {
        padding: 13vh 5vh;
    }
    
    .image-container {
        max-width: 72vh;
    }
}

@media (max-width: 992px) {
    .descripcion-bg {
        background-attachment: scroll;
    }
    
    .descripcion-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .descripcion-container {
        padding: 9.5vh 3.5vh;
        min-height: auto;
    }
    
    .image-container {
        max-width: 64vh;
        margin: 3.5vh auto 0 auto;
        transform: none;
    }
}

@media (max-width: 768px) {
    .descripcion-container {
        padding: 8vh 3.5vh;
    }
    
    .title-image {
        max-width: 12vh;
    }
    
    .image-container {
        margin: 6.5vh 0;
    }
}

@media (max-width: 576px) {
    .descripcion-bg {
        background-image: none !important;
        background-color: #000000;
    }

    .descripcion-container {
        padding: 6.5vh 2.5vh;
    }
    
    .descripcion-content {
        margin-top: -5vh;
        display: flex;
        flex-direction: column-reverse;
    }
    
    .image-container {
        display: flex;
        justify-content: center;
        max-width: max-content;
    }

    .descripcion-left {
        margin-top: initial;
        width: 80%;
        transform: none !important;
        z-index: 1;
    }
}