/* === Estilos para Carrusel 3D (v7, Arquitectura del Usuario) === */

/* ... (Estilos de sección y wrapper sin cambios) ... */
.video-carousel-section { position: relative; width: 100%; height: 800px; max-height: 150vh; background: linear-gradient(to bottom, #18181b, #27272a, #18181b); overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 0; color: #fff; }
.video-carousel-section h2 { margin-bottom: 40px; text-align: center; }
.video-carousel-wrapper { position: relative; width: 100%; height: 100%; object-fit: contain; display: flex; align-items: center; justify-content: center; perspective: 1400px; cursor: grab; }
.video-carousel-wrapper:active { cursor: grabbing; }
.carousel-3d-container { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }

/* --- LÓGICA DE ESTADO (ACTIVO / INACTIVO) --- */

/* Estado base (INACTIVO) */
.carousel-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 450px; /* Tamaño para slides inactivos */
    max-height: 100%;
    aspect-ratio: 9 / 16;
    opacity: 0.1;
    filter: blur(3px);
    /* La transformación la aplica el JS */
    transition: width 0.7s ease, height 0.7s ease, transform 0.7s ease, opacity 0.7s ease, filter 0.7s ease;
    transform-style: preserve-3d;
}

/* Estado ACTIVO (cuando el JS añade la clase) */
.carousel-slide.active-slide {
    width: 500px; /* Ancho ajustado a petición del usuario */
    opacity: 1;
    aspect-ratio: 9 / 16;
    filter: blur(0);
    max-height: 100%;
}

/* Tarjeta única que contiene todo */
.carousel-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background-color: #000;
}

.carousel-card-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Superposición de contenido */
.carousel-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.4), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    color: #fff;
    transition: opacity 0.5s ease;
    text-align: left;
    opacity: 0; /* Oculto por defecto */
}

/* El contenido del slide activo SÍ se muestra */
.active-slide .carousel-card-overlay {
    opacity: 1;
}

/* --- TIPOGRAFÍA Y BOTÓN (HEREDADOS Y CONSISTENTES) --- */

.carousel-card-title {
    font-size: 1.5rem; /* Tamaño de h3 global */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
}

.carousel-card-description {
    /* Hereda el tamaño de <p> global */
    color: #d1d5db;
    margin-bottom: 25px;
    line-height: 1.6;
    max-width: 50%;
    margin-left: 0;
    margin-right: 0;
}

/* El botón .btn-outline-red hereda 100% de base.css */


/* ... (Estilos de Navegación y Paginación sin cambios) ... */
.carousel-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 20; width: 4rem; height: 4rem; background-color: rgba(255, 255, 255, 0.1); backdrop-filter: blur(8px); border-radius: 50px; border: 1px solid #3f3f46; display: flex; align-items: center; justify-content: center; color: red; cursor: pointer; transition: all 0.3s ease; }
.carousel-nav-btn:hover { background-color: rgba(255, 255, 255, 0.2); }
.carousel-nav-btn.prev { left: 2rem; }
.carousel-nav-btn.next { right: 2rem; }
.carousel-nav-btn svg { width: 2rem; height: 2rem; transition: transform 0.3s ease; }
.carousel-nav-btn:hover svg { transform: scale(1.1); }
.carousel-pagination { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; gap: 0.75rem; }
.pagination-dot { width: 0.75rem; height: 0.75rem; background-color: #71717a; border-radius: 9999px; border: none; cursor: pointer; transition: all 0.3s ease; }
.pagination-dot:hover { background-color: #a1a1aa; }
.pagination-dot.active { background-color: #dc2626; width: 2.5rem; }

/* Media Queries */
@media (max-width: 768px) {
    .video-carousel-section {
        height: 110vh;
    }

    .carousel-slide {
        max-width: 80%;
        aspect-ratio: 9 / 16;
          
    }
    .carousel-slide.active-slide {
        width: 90%;
    }
    .carousel-card-title {
        font-size: 1.2rem;
    }
    .carousel-nav-btn { width: 3rem; height: 3rem; }
    .carousel-nav-btn.prev { left: 0.5rem; }
    .carousel-nav-btn.next { right: 0.5rem; }
    .carousel-nav-btn svg { width: 1.5rem; height: 1.5rem; }
    .carousel-pagination { bottom: 1.5rem; }
}