/**
 * MASTROMEC - HERO SECTION
 * Estilos de la sección hero extraídos del HTML inline
 */

/* ===== HERO SECTION WITH BACKGROUND IMAGE ===== */

.hero {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 64, 175, 0.75) 100%),
        url('../../imagenes/fondo.avif') center/cover no-repeat;
    padding: calc(80px + var(--spacing-3xl)) 0 var(--spacing-3xl);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

@supports not (background: url('../../imagenes/fondo.avif')) {
    .hero {
        background: linear-gradient(135deg, var(--mastromec-blue-dark) 0%, var(--mastromec-blue) 100%);
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(15, 23, 42, 0.1) 0%, rgba(30, 64, 175, 0.2) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero h1 {
    color: var(--white) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.25rem);
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-description {
    font-size: clamp(1.125rem, 3vw, 1.375rem);
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: var(--spacing-2xl);
    max-width: 600px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ===== HERO STATS ===== */

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--mastromec-blue);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--professional-gray);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== HERO ACTIONS ===== */

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
    }
}

/* ===== SELECTORES ESPECÍFICOS PARA EL TEXTO DEL HERO ===== */

#inicio > div > div > h1 {
    color: #FFFFFF !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#inicio > div > div > p {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

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

@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding: calc(60px + var(--spacing-xl)) 0 var(--spacing-xl);
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: center;
    }

    .stat {
        min-width: 150px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 70vh;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
        gap: var(--spacing-md);
        text-align: center;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* ===== ANIMACIONES HERO ===== */

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.hero-content > * {
    animation-fill-mode: both;
}

.hero-content h1 {
    animation-delay: 0.1s;
}

.hero-subtitle {
    animation-delay: 0.2s;
}

.hero-description {
    animation-delay: 0.3s;
}

.hero-stats {
    animation-delay: 0.4s;
}

.hero-actions {
    animation-delay: 0.5s;
}

/* ===== PARALLAX EFFECT (OPCIONAL) ===== */

@media (prefers-reduced-motion: no-preference) {
    .hero {
        background-attachment: fixed;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero {
        background-attachment: scroll;
    }

    .fade-in-up,
    .hero-content > * {
        animation: none;
    }
}