/* Hero · Bloque 1 de inicio · replica pixel-perfect Greenshift */

/* ===== Contenedor principal ===== */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100vh;
    background-color: var(--zander-black);
    background-image:
        linear-gradient(rgba(252, 198, 28, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(252, 198, 28, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    isolation: isolate;
    overflow: hidden;
}

/* ===== Overlay radial (reemplica .gspb_backgroundOverlay) ===== */
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.6;
    background-color: var(--zander-black);
    background-image: radial-gradient(rgba(252, 200, 28, 0) 0%, rgb(29, 29, 27) 44%, rgb(29, 29, 27) 83%);
    pointer-events: none;
}

/* ===== Contenido (max-width + padding) ===== */
.hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===== H1 ===== */
.hero__title {
    font-size: clamp(3.2rem, 9vw, 8.35rem);
    line-height: clamp(3.5rem, 9.5vw, 9rem);
    font-weight: 100;
    text-align: left;
    color: var(--zander-white-soft);
    margin: 0;
}

/* ===== H2 typewriter ===== */
.hero__subtitle {
    font-size: clamp(2rem, 4.5vw, 4rem);
    line-height: 1.2;
    font-weight: 100;
    text-align: left;
    color: var(--zander-white-soft);
    margin: 0;
}

/* H2 anima 200ms después que H1 */
.hero__subtitle.zw-anim {
    transition-delay: 200ms;
}

/* Span del typewriter: negrita + amarillo + cursor parpadeante */
.hero__typewriter {
    font-weight: 700;
    color: var(--zander-yellow);
    border-right: 0.08em solid currentColor;
    animation: hero-caret 1s step-end infinite;
}

@keyframes hero-caret {
    from, to { border-color: transparent; }
    50%       { border-color: currentColor; }
}

/* ===== Grupos de botones ===== */
.hero__btns {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* Desktop (≥690px): botones de desktop visibles */
.hero__btns--desktop { display: flex; }
.hero__btns--mobile  { display: none; }

/* ===== Embers: posición absoluta, z-index bajo overlay ===== */
.hero .wp-embers-container {
    z-index: 2;
}

/* ===== Responsive ===== */
@media (max-width: 999.98px) {
    .hero {
        align-content: center;
        align-items: center;
    }
    .hero__content {
        text-align: center;
    }
    .hero__title,
    .hero__subtitle {
        text-align: center;
    }
    .hero__btns {
        justify-content: center;
    }
}

@media (max-width: 689.98px) {
    .hero {
        height: 80vh;
    }
    .hero__btns--desktop { display: none; }
    .hero__btns--mobile  { display: flex; }

    .hero__typewriter {
        font-size: clamp(1.75rem, 5.5vw, 2.5rem);
    }
}

/* ===== Variante Home: pantalla completa ===== */
.zw-hero-home {
    height: 100dvh;
    justify-content: center;
}

/* Typewriter y botones centrados dentro del inner de proyectos */
.zw-hero-home .hero__subtitle {
    text-align: center;
    margin-top: 8px;
}

.zw-hero-home .hero__btns {
    justify-content: center;
    margin-top: 40px;
}

@media (max-width: 689.98px) {
    .zw-hero-home { height: 90dvh; }
    .zw-hero-home .hero__btns--desktop { display: none; }
    .zw-hero-home .hero__btns--mobile  { display: flex; justify-content: center; }
}

.page-home .zw-hero-tag { font-size: 20px; }
