/* ============================================================
 * VilaTec 2.0 — Hero Section Styles
 * Sección hero con imagen de fondo, texto animado y overlay
 * ============================================================ */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 5rem; /* navbar height */
}

/* ─── Background layers ──────────────────────────────────────── */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__img,
.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.6) contrast(1.1);
    display: block;
}



.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(14,14,14,0.2) 0%,
        rgba(14,14,14,0.5) 60%,
        var(--color-bg) 100%
    );
}

/* Dot grid overlay */
.hero__dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0,102,255,0.1) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.5;
}

/* ─── Content ────────────────────────────────────────────────── */
.hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding-inline: 1.5rem;
    max-width: 1200px;
    margin-inline: auto;
}



.hero__headline {
    font-family: var(--font-headline);
    font-size: clamp(2.5rem, 6vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}



.hero__headline .highlight {
    color: var(--color-secondary);
}

.hero__subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 2vw, 1.125rem);
    font-weight: 400;
    color: rgba(245, 245, 245, 0.80); /* Blanco Humo 80% opacidad */
    max-width: 560px;
    margin-inline: auto;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.7;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}



.hero__cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Scroll indicator ───────────────────────────────────────── */
.hero__scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 0.35;
    animation: bounce 2s infinite;
    color: var(--color-on-surface);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ─── Placeholder when no image loaded ──────────────────────── */
.hero__bg--fallback {
    background: radial-gradient(ellipse at 30% 50%, rgba(0,102,255,0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(255,140,0,0.06) 0%, transparent 50%),
                var(--color-bg);
}
