/*
 * STYLOFITNESS - Correcciones del Carrusel
 * Mejoras para espaciado y funcionalidad del carrusel de productos
 */

/* =============================================
   CORRECCIONES DEL CARRUSEL DE PRODUCTOS
   ============================================= */

/* Contenedor principal del carrusel */
.hero-carousel-section {
    padding: 3rem 0 !important;
    margin: 0 0 !important;
    background: rgba(39, 1, 1, 1); /* Fondo más sutil para consistencia */
}

.hero-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
}

/* Título de productos destacados */
.hero-title-section {
    margin-bottom: 2rem !important;
}

.hero-title {
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
}

.hero-subtitle {
    font-size: 1.1rem !important;
    margin-bottom: 0 !important;
}

/* Carrusel principal */
.hero-carousel {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

.carousel-wrapper {
    overflow: hidden !important;
    border-radius: 20px !important;
}

.carousel-track {
    display: flex !important;
    width: 500% !important; /* Para 5 slides = 500% */
    height: auto !important;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Slides individuales */
.mega-slide {
    min-width: 20% !important; /* 100% / 5 slides = 20% */
    flex: 0 0 20% !important;
    height: auto !important;
    min-height: 350px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    padding: 1rem !important;
    margin: 0 !important;
    opacity: 0.95 !important;
    transform: scale(0.98) !important;
    transition: all 0.6s ease !important;
    filter: brightness(1.1) contrast(1.2) !important;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.8), rgba(229, 90, 0, 0.9)) !important;
    border-radius: 15px !important;
    backdrop-filter: blur(5px) !important;
}

.mega-slide.active {
    opacity: 1 !important;
    transform: scale(1) !important;
    filter: brightness(1.2) contrast(1.3) saturate(1.1) !important;
    z-index: 10 !important;
}

/* Mejorar contraste del texto en todos los slides */
.mega-slide .product-title-mega,
.mega-slide .product-description-mega,
.mega-slide .product-price,
.mega-slide .product-original-price {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Mejorar visibilidad de las imágenes */
.mega-slide .mega-product-image {
    filter: brightness(1.1) contrast(1.2) saturate(1.1) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

/* Contenido del slide */
.slide-content {
    position: relative !important;
    z-index: 5 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    grid-template-rows: 1fr !important;
    gap: 1rem !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    padding: 1rem !important;
    /*background: rgba(255, 107, 0, 0.7) !important;*/
    /*background: linear-gradient(135deg, #2c1810 20%, #8b4513 10%, #d2691e 50%, #2c1810 100%);*/
    background: linear-gradient(135deg, #2c1810 20%, #8b4513 30%, #2b1607 40%, #836206 80%);   
    border-radius: 12px !important;
    backdrop-filter: blur(8px) !important;
    text-align: center !important;
}

/* Información del producto */
.product-info-mega {
    padding: 1rem !important;
    background: rgba(255, 107, 0, 0.8) !important;
    border-radius: 8px !important;
    backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(255, 107, 0, 0.3) !important;
    width: 100% !important;
    height: 100% !important;
    grid-column: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.product-title-mega {
    font-size: 1.2rem !important;
    margin: 0.5rem 0 !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

.product-description-mega {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.5rem !important;
    opacity: 0.9 !important;
}

/* Imagen del producto */
.product-visual-mega {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    grid-column: 2 !important;
    width: 100% !important;
    height: 100% !important;
}

.mega-image-container {
    position: relative !important;
    width: 200px !important;
    height: 200px !important;
    margin: 0 auto !important;
}

.mega-product-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 15px !important;
    transition: transform 0.3s ease !important;
}

.mega-slide.active .mega-product-image {
    transform: scale(1.05) !important;
}

/* Características del producto */
.product-features {
    display: flex !important;
    justify-content: center !important;
    gap: 0.3rem !important;
    margin-top: 0.5rem !important;
}

.feature-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.1rem !important;
    padding: 0.2rem !important;
    background: rgba(255, 107, 0, 0.1) !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 107, 0, 0.3) !important;
    font-size: 0.6rem !important;
    color: #fff !important;
    min-width: 45px !important;
}

.feature-item i {
    font-size: 0.7rem !important;
    color: #ff6b00 !important;
}

/* Detalles del producto */
.product-details-mega {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 1rem !important;
    background: rgba(14, 11, 10, 0.8) !important;
    border-radius: 8px !important;
    backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(255, 107, 0, 0.3) !important;
    width: 100% !important;
    height: 100% !important;
    grid-column: 3 !important;
}

/* Estilos de precios */
.sale-price-mega,
.current-price-mega {
    font-size: 1.4rem !important;
    font-weight: 900 !important;
    margin: 0.3rem 0 !important;
}

.original-price-mega {
    font-size: 1rem !important;
    text-decoration: line-through !important;
    opacity: 0.7 !important;
}

.savings-mega {
    font-size: 0.8rem !important;
    margin: 0.3rem 0 !important;
}

/* Botones */
.btn-mega-primary,
.btn-mega-secondary {
    padding: 0.6rem 1rem !important;
    font-size: 0.8rem !important;
    border-radius: 15px !important;
    min-width: 120px !important;
    margin: 0.3rem 0 !important;
    font-weight: 600 !important;
}

/* Timer */
.countdown-timer {
    padding: 0.5rem !important;
    margin: 0.5rem 0 !important;
    border-radius: 8px !important;
    font-size: 0.8rem !important;
}

.timer-value {
    font-size: 1rem !important;
    min-width: 25px !important;
    font-weight: 700 !important;
}

.timer-label {
    font-size: 0.7rem !important;
    opacity: 0.8 !important;
}

/* Controles del carrusel */
.mega-carousel-controls {
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    right: 0 !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    justify-content: space-between !important;
    padding: 0 1rem !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

.mega-nav {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid #FF6B00 !important;
    color: #FF6B00 !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    pointer-events: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.mega-nav:hover {
    background: #FF6B00 !important;
    color: white !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.3) !important;
}

/* Indicadores */
.mega-indicators {
    display: flex !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    margin-top: 1.5rem !important;
    padding: 0 1rem !important;
}

.mega-dot {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.4) !important;
    border: 2px solid #FF6B00 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.mega-dot.active {
    background: #FF6B00 !important;
    transform: scale(1.2) !important;
}

.dot-progress {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #FF6B00 !important;
    border-radius: 50% !important;
    transform: scale(0) !important;
    transition: transform 0.3s ease !important;
}

.mega-dot.active .dot-progress {
    transform: scale(1) !important;
}

/* Barra de progreso */
.carousel-progress {
    width: 100% !important;
    height: 4px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    margin-top: 1rem !important;
    border-radius: 2px !important;
    overflow: hidden !important;
}

.progress-bar-mega {
    height: 100% !important;
    background: linear-gradient(90deg, #FF6B00, #FFB366) !important;
    width: 0% !important;
    transition: width 0.1s linear !important;
    border-radius: 2px !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .slide-content {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto !important;
        gap: 1.5rem !important;
        text-align: center !important;
    }
    
    .product-info-mega,
    .product-visual-mega,
    .product-details-mega {
        grid-column: 1 !important;
        width: 100% !important;
    }
    
    .product-info-mega {
        grid-row: 1 !important;
    }
    
    .product-visual-mega {
        grid-row: 2 !important;
    }
    
    .product-details-mega {
        grid-row: 3 !important;
    }
    
    .mega-slide {
        min-height: 600px !important;
        padding: 1.5rem 0 !important;
    }
    
    .mega-image-container {
        width: 240px !important;
        height: 240px !important;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem !important;
    }
    
    .mega-slide {
        min-height: 500px !important;
        padding: 1rem 0 !important;
    }
    
    .slide-content {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto !important;
        gap: 1rem !important;
        text-align: center !important;
        padding: 0.5rem !important;
    }
    
    .product-info-mega,
    .product-visual-mega,
    .product-details-mega {
        grid-column: 1 !important;
        width: 100% !important;
    }
    
    .product-info-mega {
        grid-row: 1 !important;
        padding: 0.5rem !important;
    }
    
    .product-visual-mega {
        grid-row: 2 !important;
    }
    
    .product-details-mega {
        grid-row: 3 !important;
        padding: 0.5rem !important;
    }
    
    .product-title-mega {
        font-size: 0.9rem !important;
        margin: 0.25rem 0 !important;
        line-height: 1.1 !important;
    }
    
    .product-description-mega {
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.75rem !important;
    }
    
    .mega-image-container {
        width: 150px !important;
        height: 150px !important;
    }
    
    .mega-nav {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem !important;
    }
    
    .mega-slide {
        min-height: 450px !important;
        padding: 0.5rem 0 !important;
    }
    
    .slide-content {
        padding: 0 0.25rem !important;
        gap: 0.75rem !important;
    }
    
    .product-title-mega {
        font-size: 1.2rem !important;
        margin: 0.25rem 0 !important;
        line-height: 1.1 !important;
    }
    
    .product-description-mega {
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.75rem !important;
    }
    
    .product-info-mega,
    .product-details-mega {
        padding: 0.5rem !important;
    }
    
    .mega-image-container {
        width: 150px !important;
        height: 150px !important;
    }
    
    .mega-nav {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.9rem !important;
    }
}

/* Animaciones */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mega-slide.active .product-info-mega,
.mega-slide.active .product-visual-mega,
.mega-slide.active .product-details-mega {
    animation: slideIn 0.6s ease forwards !important;
}

/* Corrección para testimonios - remover barra de carrusel */
.testimonials-ultra-section .carousel-progress,
.testimonials-ultra-section .mega-indicators,
.testimonials-ultra-section .mega-carousel-controls {
    display: none !important;
}

.testimonials-grid-ultra {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
    margin-top: 2rem !important;
}

/* Responsive para tablet */
@media (max-width: 768px) {
    .testimonials-grid-ultra {
        grid-template-columns: 1fr !important;
    }
}

/* Responsive para móvil */
@media (max-width: 480px) {
    .testimonials-grid-ultra {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

.testimonial-card-ultra {
    background: rgba(255, 107, 0, 0.4) !important;
    border-radius: 20px !important;
    padding: 2rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease !important;
}

.testimonial-card-ultra:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}