/* ===== HERO SECTION CSS COMPLETO ===== */

/* ===== HERO SECTION OPTIMIZADO ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%234a5568" width="1200" height="800"/><rect fill="%232d3748" x="0" y="400" width="1200" height="200"/><circle fill="%23ff6b35" cx="200" cy="300" r="50"/><circle fill="%23ff6b35" cx="400" cy="500" r="30"/><rect fill="%23e2e8f0" x="100" y="600" width="200" height="100"/><rect fill="%23e2e8f0" x="350" y="650" width="150" height="80"/></svg>');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    padding: 2rem 0;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.arrow {
    color: #ff6b35;
    font-size: 2rem;
    animation: pulse 2s infinite;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn {
    padding: 1rem 2rem;
    border: 2px solid #ff6b35;
    background: transparent;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s;
    border-radius: 8px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #ff6b35;
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.btn-filled {
    background: #ff6b35;
}

/* Video Background OPTIMIZADO */
.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.8;
    overflow: hidden;
}

.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Preloader para el video */
.video-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('https://images.unsplash.com/photo-1544620347-c4fd4a3d5957?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* Animaciones necesarias para Hero */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ===== RESPONSIVE DESIGN PARA HERO ===== */

/* Tablet */
@media (max-width: 1024px) {
    .hero {
        min-height: 550px;
        margin-top: 80px;
    }
    
    .hero h1 {
        font-size: 3.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Hero Mobile */
    .hero {
        height: 100vh;
        min-height: 100svh;
        max-height: 100vh;
        margin-top: 0;
        padding-top: 80px;
    }
    
    .hero-content {
        padding: 0 1rem;
        min-height: calc(100vh - 80px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .hero h1 {
        font-size: 2.4rem;
        margin-bottom: 1rem;
        line-height: 1.1;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 2rem;
        line-height: 1.3;
    }
    
    .arrow {
        font-size: 1.5rem;
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
        margin-top: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        text-align: center;
        border-radius: 25px;
    }
    
    /* Video optimizado para móvil */
    .video-bg {
        background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                    url('https://images.unsplash.com/photo-1544620347-c4fd4a3d5957?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=60');
        background-size: cover;
        background-position: center;
    }
    
    .video-bg video {
        display: none; /* Ocultar video en móvil para mejor rendimiento */
    }
}

/* Mobile Pequeño */
@media (max-width: 480px) {
    .hero {
        height: calc(100vh - 70px);
        min-height: 350px;
        max-height: 500px;
        margin-top: 70px;
        padding: 0.8rem 0;
    }
    
    .hero-content {
        padding: 0 0.8rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
        letter-spacing: 0.5px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle span {
        margin: 0.3rem 0;
    }
    
    .btn {
        padding: 0.9rem 1.3rem;
        font-size: 0.95rem;
        max-width: 250px;
    }
    
    .arrow {
        font-size: 1.3rem;
    }
}

/* Móviles muy pequeños */
@media (max-width: 360px) {
    .hero {
        min-height: 300px;
        max-height: 450px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.8rem 1.2rem;
        max-width: 220px;
    }
}

/* Landscape en móvil */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        margin-top: 0;
        padding-top: 80px;
    }
    
    .hero-content {
        justify-content: flex-start;
        padding-top: 2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .btn {
        max-width: 200px;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Touch improvements para Hero */
@media (hover: none) and (pointer: coarse) {
    .btn:active {
        transform: scale(0.98);
    }
}