/* =====================================================
   SLIDER + VIDEO
   ===================================================== */

.multimedia {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;
    margin: 30px auto;
}

.multimedia .slider-contenedor,
.multimedia .video-contenedor {
    width: 45%;
    flex-shrink: 0;
}

.multimedia .slider-contenedor {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.multimedia .slider {
    width: 100%;
    max-width: none;
}

.multimedia .video-contenedor {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.multimedia .video-contenedor iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =====================================================
   SLIDER
   ===================================================== */

.slider {
    position: relative;
    width: 50%;
    max-width: 700px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    background-color: #222;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.activo {
    opacity: 1;
    z-index: 2;
}

.slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 5s ease;
}

.slide.activo img {
    transform: scale(1.10);
}

.slider:hover .slide.activo img {
    transform: scale(1.15);
    filter: brightness(0.75);
}

.slider-boton {
    position: absolute;
    top: 50%;
    z-index: 10;

    width: 45px;
    height: 45px;
    border: 0;
    border-radius: 50%;

    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 25px;
    cursor: pointer;

    transform: translateY(-50%);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.slider-boton:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.anterior {
    left: 15px;
}

.siguiente {
    right: 15px;
}

/* =====================================================
   MISIÓN / VISIÓN / OBJETIVO
   ===================================================== */

.caja-imagenes {
    width: 90%;
    margin: 40px auto;
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc, #fff);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.20);
    text-align: center;
}

.caja-imagenes h2 {
    margin: 0 0 25px;
}

.imagenes-rombo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.imagen-hover {
    position: relative;
    width: 30%;
    max-width: 350px;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.imagen-hover img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.8s ease;
}

.imagen-hover:hover img {
    transform: scale(1.04);
}

.rombo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;

    background: rgba(255, 255, 255, 0.55);
    pointer-events: none;
    opacity: 0;

    transform: translate(-50%, -50%) rotate(45deg) scale(0);
    transform-origin: center;
}

.imagen-hover:hover .rombo {
    animation: efectoRombo 1.2s ease-out forwards;
}

@keyframes efectoRombo {
    0% {
        transform: translate(-50%, -50%) rotate(45deg) scale(0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    70% {
        transform: translate(-50%, -50%) rotate(45deg) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) rotate(45deg) scale(1.5);
        opacity: 0;
    }
}

/* =====================================================
   TRABAJOS Y PROYECTOS
   ===================================================== */



.imagen-inferior {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
}

.imagen-inferior img {
    display: block;
    width: auto;
    max-width: calc((100% - 20px) / 2);
    max-height: 250px;
    height: auto;
    object-fit: contain;
    flex: 0 1 auto;
}


/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {
    .multimedia {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .multimedia .slider-contenedor,
    .multimedia .video-contenedor {
        width: 90%;
    }

    .slider {
        width: 100%;
        max-width: none;
    }

    .slider-boton {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .imagenes-rombo {
        flex-direction: column;
        gap: 20px;
    }

    .imagen-hover {
        width: 90%;
    }


    .imagen-inferior {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .imagen-inferior img {
        width: auto;
        max-width: calc((100% - 10px) / 2);
        max-height: 180px;
    }

}
