/* ====================================
   HERO.CSS - Sección principal
   ==================================== */

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Fondo parallax */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    z-index: var(--z-background);
    will-change: auto;
    pointer-events: none;
}

/* Overlay oscuro */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
    z-index: var(--z-overlay);
    pointer-events: none;
}

/* Contenido del hero */
.hero-content {
    text-align: center;
    color: var(--color-white);
    z-index: var(--z-content);
    padding: var(--spacing-lg);
    animation: fadeInUp 1s ease-out;
    position: relative;
    pointer-events: auto;
}

/* Logo */
.logo-container {
    margin-bottom: var(--spacing-lg);
}

.logo {
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

/* Títulos del hero */
.hero-title {
    font-size: var(--font-size-hero);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-size-xxl);
    font-weight: var(--font-weight-normal);
    margin-bottom: var(--spacing-sm);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Botones CTA */
.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: var(--z-buttons);
    pointer-events: auto !important;
}

/* Parallax divider */
.parallax-divider {
    height: 300px;
    background-image: url('../assets/images/background.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    will-change: auto;
}

.parallax-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .btn {
        width: 220px;
        text-align: center;
    }
    
    .logo {
        max-width: 300px;
    }
    
    /* Keep background fixed on mobile devices */
    .parallax-bg,
    .parallax-divider {
        background-attachment: fixed !important;
        transform: none !important;
        position: fixed;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: var(--spacing-sm);
    }
}