/* --- 1. CONTENEDOR PRINCIPAL --- */
.contenedor {
    width: 100%;
    height: 720px;
    margin: 0 auto;
    overflow: hidden;
    position: relative; /* Necesario para posicionar flechas y puntos */
    background-color: #000;
}

/* Ajustes de altura responsivos */
@media (max-width: 1200px) { .contenedor { height: 600px; } }
@media (max-width: 768px)  { .contenedor { height: 400px; } }
@media (max-width: 576px)  { .contenedor { height: 250px; } }

/* --- 2. SLIDES (ITEMS) --- */
.slide {
    position: relative;
    width: 100%;
    height: 100%;
}

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

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

/* --- 3. ANIMACIONES (Usadas por el JS) --- */
.item.to-left    { transform: translateX(-100%); opacity: 0; }
.item.to-right   { transform: translateX(100%);  opacity: 0; }
.item.from-left  { transform: translateX(-100%); opacity: 0; }
.item.from-right { transform: translateX(100%);  opacity: 0; }

/* --- 4. CONTENIDO (Textos sobre el slide) --- */
.item .content {
    position: absolute;
    top: 50%;
    left: 8%;
    width: 40%;
    max-width: 400px;
    color: #fff;
    transform: translateY(-50%);
    z-index: 5;
    display: none;
}

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

.content .des {
    font-size: 1.1rem;
    line-height: 1.5;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); filter: blur(10px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* --- 5. VIDEO CONFIGURACIÓN --- */
.item-video { background: #000; }

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

/* Ocultar controles nativos */
.carousel-video::-webkit-media-controls { display: none !important; }

.item-video .video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Cuando el JS añade la clase .playing */
.item-video.playing .carousel-video { display: block !important; z-index: 2; }
.item-video.playing .video-poster { display: none; }

/* --- 6. INDICADORES (PUNTOS) --- */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #FF9B00; /* Naranja */
    transform: scale(1.2);
}

/* --- 7. FLECHAS DE NAVEGACIÓN --- */
.prev-arrow, .next-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 45px;
    font-weight: 100;
    cursor: pointer;
    z-index: 10;
    padding: 20px;
    opacity: 0.5;
    transition: all 0.3s ease;
    user-select: none;
}

.prev-arrow:hover, .next-arrow:hover {
    opacity: 1;
    color: #FF9B00;
}

.prev-arrow { left: 10px; }
.next-arrow { right: 10px; }

/* Ajustes Responsivos para móviles */
@media (max-width: 768px) {
    .item .content { left: 5%; width: 90%; text-align: center; }
    .content .des { font-size: 0.9rem; }
    .prev-arrow, .next-arrow { font-size: 30px; }
    .carousel-dots { bottom: 15px; }
}