/* ============================================
   HERO MEJORADO CON CARRUSEL DE IMÁGENES
   ✅ Cambio instantáneo cada 4 segundos
   ✅ Imágenes de modelos deportivos
   ============================================ */

.hero {
    position: relative;
    min-height: 500px;
    height: 70vh;
    max-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenedor de imágenes de fondo */
.hero-bg-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Imágenes de fondo del carrusel */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: none; /* ✅ SIN transición = cambio instantáneo */
}

.hero-bg-image.active {
    opacity: 1;
}

/* Overlay oscuro sobre las imágenes */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 78, 137, 0.85) 0%,
        rgba(255, 107, 53, 0.75) 100%
    );
    z-index: 2;
}

/* Contenido del hero por encima del carrusel */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: var(--spacing-xl) var(--spacing-md);
}

.hero-title {
    font-size: clamp(2rem, 7vw, 3.5rem);
    margin-bottom: var(--spacing-md);
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.btn-hero {
    display: inline-block;
    padding: 1.125rem 2.5rem;
    background: var(--white);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.btn-hero:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 107, 53, 0.4);
}

.btn-hero:active {
    transform: translateY(-2px) scale(1.02);
}

/* Indicadores del carrusel del hero */
.hero-indicators {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.625rem;
    z-index: 4;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-indicator.active {
    background: var(--white);
    width: 40px;
    border-radius: 6px;
}

.hero-indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Responsive - Tablets
   ============================================ */
@media (min-width: 600px) {
    .hero {
        min-height: 550px;
    }
    
    .hero-content {
        padding: var(--spacing-xl);
    }
}

/* ============================================
   Responsive - Desktop
   ============================================ */
@media (min-width: 1024px) {
    .hero {
        min-height: 600px;
    }
}

/* ============================================
   Responsive - Mobile
   ============================================ */
@media (max-width: 599px) {
    .hero {
        min-height: 400px;
        height: 60vh;
    }
    
    .hero-content {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .hero-title {
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-subtitle {
        margin-bottom: var(--spacing-lg);
    }
    
    .btn-hero {
        padding: 1rem 2rem;
        width: 100%;
        max-width: 300px;
    }
    
    .hero-indicators {
        bottom: var(--spacing-md);
    }
    
    .hero-indicator {
        width: 8px;
        height: 8px;
    }
    
    .hero-indicator.active {
        width: 24px;
    }
}

/* ============================================
   Landscape móvil
   ============================================ */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: 350px;
        height: 90vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* ============================================
   Prevenir layout shift
   ============================================ */
.hero-bg-image:not(.active) {
    pointer-events: none;
}
