/* ===== HEADER - SECCIÓN 1 ===== */
.header-background {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.header-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(95deg, #05070d 0%, rgba(5, 7, 13, 0.93) 36%, rgba(5, 7, 13, 0.68) 58%, rgba(5, 7, 13, 0.34) 76%, rgba(5, 7, 13, 0.1) 100%);
    z-index: 2;
    pointer-events: none;
}

.header-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 78% 30%, var(--overlay-secondary) 0%, transparent 42%),
        linear-gradient(180deg, transparent 64%, rgba(5, 7, 13, 0.75) 100%);
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 75% center;
    opacity: 0.52;
    filter: grayscale(16%) contrast(112%) saturate(102%);
}

.header-content {
    position: relative;
    z-index: 3;
    max-width: 760px;
    width: 100%;
}

.header-content > * {
    max-width: 680px;
}

h1 {
    font-size: clamp(3.4rem, 6.2vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeUp 0.8s ease 0.2s both;
}

.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.hero-typing {
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    font-weight: 800;
    letter-spacing: 0.3px;
    margin: 0 0 18px;
    min-height: 2.6rem;
}

.typing-text {
    background: var(--gradient-hover);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 7s ease infinite;
    text-shadow: 0 0 18px var(--shadow-secondary);
}

.typing-caret {
    display: inline-block;
    margin-left: 2px;
    color: var(--text-primary);
    animation: blinkCaret 0.85s steps(1, end) infinite;
}

@keyframes blinkCaret {
    0%, 45% { opacity: 1; }
    46%, 100% { opacity: 0; }
}

.subheadline {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    animation: fadeUp 0.8s ease 0.4s both;
}

.header-buttons {
    display: flex;
    gap: 20px;
    animation: fadeUp 0.8s ease 0.6s both;
    flex-wrap: wrap;
}

.header-buttons .btn {
    min-width: 280px;
    justify-content: center;
    white-space: nowrap;
}