/* Hero Slider Section Styles - Optimizado para carga rápida */

/* Contenedor hero optimizado */

/* Optimización de imágenes hero */
#hero-slider img {
    will-change: opacity;
    backface-visibility: hidden;
    transform: translateZ(0); /* Forzar aceleración GPU */
}

/* Placeholder animado */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Swiper Pagination Styles */
.swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background: rgba(255, 255, 255, 0.7);
    opacity: 1;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #ffffff !important;
    transform: scale(1.2);
}

/* Custom Hero Navigation Buttons */
.hero-prev-btn,
.hero-next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #333;
    pointer-events: auto;
    user-select: none;
}

.hero-prev-btn:hover,
.hero-next-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.hero-prev-btn:active,
.hero-next-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.hero-prev-btn {
    left: 20px;
}

.hero-next-btn {
    right: 20px;
}

/* Desktop hover effects */
@media (min-width: 769px) {
    .hero-prev-btn,
    .hero-next-btn {
        opacity: 0;
    }
    
    .hero-prev-btn {
        transform: translateY(-50%) translateX(-10px);
    }
    
    .hero-next-btn {
        transform: translateY(-50%) translateX(10px);
    }
    
    .swiper:hover .hero-prev-btn,
    .swiper:hover .hero-next-btn {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* Mobile specific styles - Hide navigation buttons */
@media (max-width: 768px) {
    .hero-prev-btn,
    .hero-next-btn {
        display: none;
    }
}

/* Animations */
@keyframes titleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes buttonSlideIn {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hero Elements */
#hero-title {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#hero-title.animate-in {
    animation: titleFadeIn 1s ease-out;
}

#hero-top-button {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.swiper-slide a {
    transition: all 0.4s ease;
}

.swiper-slide a.animate-button {
    animation: buttonSlideIn 0.6s ease-out;
}

/* Mobile Responsive Spacing */
@media (max-width: 768px) {
    .absolute.top-20 {
        top: 16px !important;
    }
    
    .absolute.top-1\/2 {
        top: 45% !important;
    }
    
    .left-8 {
        left: 16px !important;
    }
}