

/* Contenedor principal */
.contenedor{
    width: 100%;
    height: 720px;
    margin: 0px auto;   /* separa del header */
    overflow: hidden;
    position: relative;
}

@media (max-width: 1200px) {
    .contenedor {
        height: 600px;
    }
}

@media (max-width: 768px) {
    .contenedor {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .contenedor {
        height: 250px;
    }
}


/* Slides */
.slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide .item {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Slide activo */
.item.active {
    opacity: 1;
    z-index: 2;
}

/* Animaciones de salida */
.item.to-left {
    transform: translateX(-100%);
    opacity: 0;
}
.item.to-right {
    transform: translateX(100%);
    opacity: 0;
}

/* Animaciones de entrada */
.item.from-left {
    transform: translateX(-100%);
    opacity: 0;
}
.item.from-right {
    transform: translateX(100%);
    opacity: 0;
}

/* Contenido dentro del slide */
.item .content {
    position: absolute;
    top: 50%;
    left: 100px;
    width: 300px;
    text-align: left;
    color: #fff;
    transform: translateY(-50%);
    display: none;
}

.item.active .content {
    display: block;
}

.content .name {
    font-size: 40px;
    text-transform: uppercase;
    font-weight: bold;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.content .des {
    margin-top: 10px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
    font-size: 14px;
}

.content button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
    font-size: 14px;
}

@media (max-width: 768px) {
    .item .content {
        left: 50px;
        width: 250px;
    }
    .content .name {
        font-size: 28px;
    }
    .content .des {
        font-size: 12px;
        margin-bottom: 15px;
    }
    .content button {
        padding: 8px 15px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .item .content {
        left: 30px;
        width: 200px;
    }
    .content .name {
        font-size: 20px;
    }
    .content .des {
        font-size: 11px;
        margin-bottom: 10px;
    }
    .content button {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* Animación de aparición */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(100px);
        filter: blur(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Video en carrusel */
.item-video {
    background: #000;
}

.item-video .carousel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.item-video .carousel-video::-webkit-media-controls {
    display: none !important;
}

.item-video .carousel-video::-moz-media-controls {
    display: none !important;
}

.item-video .video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.item-video.playing .carousel-video {
    display: block !important;
    z-index: 2;
    opacity: 1;
    transition: opacity 2s ease-in-out;
}

.item-video.playing .video-poster {
    opacity: 0;
}

/* Botones de navegación */
.button {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 20px;
    z-index: 3;
}

.button button {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    margin: 0 10px;
    background: transparent;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.button button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.button button:hover {
    opacity: 0.8;
}