/* ==========================================================================
   CARRUSEL DE PREMIOS 3D CORREGIDO (AMPLIADO E INTERACTIVO)
   ========================================================================== */

.section-premios-carousel {
    width: 100%;
    background-color: #ffffff;
    padding: 80px 0 40px 0; 
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    border-top: 1px solid #f0f0f0;
    font-family: 'Montserrat', sans-serif;
}

.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: 'Montserrat', sans-serif;
    font-size: 2rem; 
    color: #8C1527;
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
}

/* Escenario 3D (Aumentado de 240px a 300px) */
.carousel-3d-viewport {
    width: 100%;
    height: 300px; 
    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 / Logo (Aumentado de 130px a 180px) */
.carousel-3d-item {
    position: absolute;
    width: 180px; 
    height: 180px;
    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: 15px;
    z-index: 5;
}

.carousel-info-title {
    font-family: 'Montserrat', 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;
}

/* ==========================================================================
   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%;             
    max-width: 800px;        
    height: auto;            
    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: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 0.92rem; 
    color: #555555;
    line-height: 1.5;
    margin: 0;
    padding-right: 35px;
    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 Y TABLET
   ========================================================================== */
@media screen and (max-width: 992px) {
    .section-premios-carousel {
        padding: 80px 0;
    }
    .carousel-3d-viewport {
        height: 250px;
    }
    .carousel-3d-item {
        width: 140px;
        height: 140px;
    }
}

@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: 220px;
    }
    .carousel-3d-item {
        width: 115px;
        height: 115px;
    }
    .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;
    }
}