/* ============================================
   HERO VIDEO - ILIADA EVENTS
   VERSION FINAL - Noviembre 2025
   Archivo: /css/hero-video.css
   ============================================ */

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */

.iliada-hero-video {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   VIDEO DE FONDO
   ============================================ */

.hero-video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

/* Mostrar solo video desktop por defecto */
.hero-video-mobile {
    display: none;
}

/* ============================================
   OVERLAY OSCURO
   ============================================ */

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: background 0.3s ease;
}

/* ============================================
   CONTENIDO DEL HERO
   ============================================ */

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #ffffff;
    max-width: 1200px;
    padding: 0 20px;
    width: 100%;
}

/* ============================================
   TEXTOS DINAMICOS
   ============================================ */

.hero-text-container {
    margin-bottom: 40px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Titulo principal */
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-title.active {
    opacity: 1;
    transform: translateY(0);
}

/* Subtitulo */
.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.6;
    max-width: 800px;
    color: #ffffff;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.2s;
}

.hero-subtitle.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   BOTON CTA
   ============================================ */

.hero-cta {
    margin-top: 40px;
}

/* Estilos adicionales para el boton (complementan los de Elementor) */
.hero-button-dynamic {
    /* El boton usa las clases de Elementor:
       - elementor-button
       - elementor-button-link
       - elementor-size-sm
       - elementor-animation-grow
    */
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Asegurar que el texto del boton sea blanco */
.hero-button-dynamic .elementor-button-text {
    color: #ffffff !important;
}

/* Efecto hover adicional */
.hero-button-dynamic:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================
   MENSAJE DE ERROR
   ============================================ */

.iliada-hero-error {
    padding: 20px 30px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    text-align: center;
    margin: 40px 20px;
    font-size: 1rem;
    font-weight: 500;
}

.iliada-hero-error a {
    color: #856404;
    text-decoration: underline;
    font-weight: 600;
}

.iliada-hero-error a:hover {
    color: #533f03;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet grande y desktop pequeno */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-text-container {
        min-height: 180px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .iliada-hero-video {
        min-height: 500px;
    }
    
    /* Mostrar video mobile si existe */
    .hero-video-desktop {
        display: none;
    }
    
    .hero-video-mobile {
        display: block;
    }
    
    /* Si no hay video mobile, mostrar el desktop */
    .iliada-hero-video:not(:has(.hero-video-mobile)) .hero-video-desktop {
        display: block;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-text-container {
        min-height: 150px;
        margin-bottom: 30px;
    }
    
    .hero-cta {
        margin-top: 30px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .iliada-hero-video {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-text-container {
        min-height: 120px;
        margin-bottom: 25px;
    }
}

/* Soporte para navegadores que no tienen :has() */
@supports not (selector(:has(*))) {
    @media (max-width: 768px) {
        .hero-video-desktop {
            display: block;
        }
    }
}

/* ============================================
   ANIMACIONES ADICIONALES (OPCIONALES)
   ============================================ */

/* Animacion de entrada mas dramatica */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Aplicar si quieres animacion mas impactante */
.hero-title.dramatic {
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   VARIACIONES OPCIONALES
   ============================================ */

/* Efecto de blur suave en el video */
.iliada-hero-video.blur-effect .hero-video-background {
    filter: blur(1px);
}

/* Gradiente en lugar de overlay solido */
.iliada-hero-video.gradient-overlay .hero-video-overlay {
    background: linear-gradient(
        135deg,
        rgba(0, 205, 249, 0.3) 0%,
        rgba(0, 0, 0, 0.6) 100%
    ) !important;
}

/* ============================================
   NOTAS DE IMPLEMENTACION
   ============================================
   
   COLORES CORPORATIVOS ILIADA:
   - Azul oscuro: Titulares
   - Accent: #00CDF9 (boton por defecto)
   - Blanco: #ffffff (textos)
   
   TIPOGRAFIA:
   - H1 Hero Headline: Titulos principales
   - H2 Box Title: Subtitulos
   
   BOTON:
   - Usa estilos globales de Elementor
   - Clases: elementor-button elementor-button-link elementor-size-sm elementor-animation-grow
   - Color por defecto: #00CDF9 (Accent)
   - Texto: Blanco
   
   ============================================ */
