﻿/* ==================== CAROUSEL CORREGIDO ==================== */
.benefits-carousel {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.carousel-container {
    position: relative;
    min-height: 350px;
    width: 100%;
}

/* OCULTAR TODOS LOS SLIDES POR DEFECTO */
.carousel-slide {
    display: none;
    text-align: center;
    color: white;
    padding: 20px;
}

/* SOLO MOSTRAR EL SLIDE ACTIVO */
.carousel-slide.active {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.benefit-icon {
    margin: 0 auto 20px;
    width: 100px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.benefit-icon svg {
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.carousel-slide h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
    font-weight: 700;
}

.carousel-slide p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    max-width: 500px;
    margin: 0 auto;
}

/* Controles del carrusel */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    position: relative;
    z-index: 3;
}

.carousel-prev,
.carousel-next {
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.carousel-dot.active {
    background-color: white;
    width: 30px;
    border-radius: 5px;
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
    .benefits-carousel {
        padding: 25px 15px;
    }

    .carousel-container {
        min-height: 380px;
    }

    .carousel-slide {
        padding: 10px;
    }

    .benefit-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }

    .benefit-icon svg {
        width: 60px !important;
        height: 60px !important;
    }

    .carousel-slide h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .carousel-slide p {
        font-size: 0.95rem;
    }

    .carousel-prev,
    .carousel-next {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .carousel-controls {
        gap: 15px;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        min-height: 400px;
    }

    .carousel-slide h3 {
        font-size: 1.2rem;
    }

    .carousel-slide p {
        font-size: 0.9rem;
        padding: 0 10px;
    }
}
