/* ==========================================================================
   CARRUSEL DE PREMIOS 3D CORREGIDO (ULTRA COMPACTO E INTERACTIVO)
   ========================================================================== */

.section-premios-carousel {
    width: 100%;
    background-color: #ffffff;
    
    /* MODIFICACIÓN 1: Más espacio arriba y abajo para que respire la sección */
    padding: 100px 0; 
    
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    border-top: 1px solid #f0f0f0;
}

.premios-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.premios-section-title {
    font-family: 'Exo', sans-serif;
    font-weight: 300;
    font-size: 2.1rem; 
    color: #8C1527;
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
}

/* Escenario 3D */
.carousel-3d-viewport {
    width: 100%;
    height: 240px; 
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    cursor: grab;
    user-select: none;
}

.carousel-3d-viewport:active {
    cursor: grabbing;
}

.carousel-3d-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Tarjeta de Premio */
.carousel-3d-item {
    position: absolute;
    width: 130px; 
    height: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform, opacity, filter;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.5s ease-in-out, 
                filter 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    background-color: transparent;
}

.carousel-3d-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

/* Título de premio siempre visible */
.carousel-3d-always-visible {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    z-index: 5;
}

.carousel-info-title {
    font-family: 'Exo', sans-serif;
    font-weight: 700;
    font-size: 1.15rem; 
    color: #2C2825;
    margin: 0;
    transition: opacity 0.2s ease-in-out;
}

/* Contenedor Colapsable */
.carousel-expandable-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.5s ease-in-out;
}

.carousel-expandable-wrapper.expanded {
    max-height: 300px;
    opacity: 1;
}

/* ==========================================================================
   MODIFICACIÓN 2: LÍNEA REAL USANDO RECTANGLE.WEBP
   ========================================================================== */
.carousel-text-divider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    max-width: 850px;
    margin: 25px auto 35px auto; 
    position: relative;
}

.carousel-arrow-img {
    width: 100%;             /* Se adapta al ancho del contenedor */
    max-width: 800px;        /* Controla el límite de estiramiento horizontal */
    height: auto;            /* Mantiene proporciones de la línea física */
    pointer-events: none;
    display: block;
}

/* Área de Textos y la X de Cierre */
.carousel-3d-info {
    width: 90%;
    max-width: 800px;
    text-align: center;
    position: relative; 
    padding-top: 10px;
    margin-bottom: 10px;
}

.carousel-info-desc {
    font-family: 'Exo', sans-serif;
    font-weight: 300;
    font-size: 0.92rem; 
    color: #555555;
    line-height: 1.5;
    margin: 0;
    padding-right: 35px; /* Margen para evitar colisión con la X de la derecha */
    transition: opacity 0.2s ease-in-out;
}

/* BOTÓN DE CIERRE (X) */
.carousel-close-btn {
    position: absolute;
    top: 10px;
    right: 0; 
    left: auto;
    background: none;
    border: none;
    width: 20px;
    height: 20px;
    padding: 0;
    cursor: pointer;
    color: #cccccc; 
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-close-btn:hover {
    color: #8C1527; 
}

.carousel-close-btn svg {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   RESPONSIVE MÓVIL
   ========================================================================== */
@media screen and (max-width: 992px) {
    .section-premios-carousel {
        padding: 80px 0;
    }
    .carousel-3d-viewport {
        height: 200px;
    }
    .carousel-3d-item {
        width: 100px;
        height: 100px;
    }
}

@media screen and (max-width: 768px) {
    .section-premios-carousel {
        padding: 60px 0;
    }
    .premios-section-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    .carousel-3d-viewport {
        height: 180px;
    }
    .carousel-3d-item {
        width: 85px;
        height: 85px;
    }
    .carousel-text-divider-container {
        width: 90%;
        margin: 15px auto 20px auto;
    }
    .carousel-info-desc {
        font-size: 0.85rem;
        padding-right: 0; 
    }
    .carousel-close-btn {
        top: -15px; 
        right: 0;
    }
}