/* === HERO: Imagen protagonista con overlay lateral === */
.niz-hero {
    position: relative;
    height: 70vh;
    min-height: 520px;
    max-height: 760px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--niz-dark);
    background-size: cover;
    background-position: 65% center;
    padding-top: var(--niz-header-height);
    padding-bottom: 60px;
    box-sizing: border-box;
}

/* Degradé lateral: izquierda muy oscura para el texto, derecha abre la foto */
.niz-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, 
            rgba(10,10,10,0.97) 0%,
            rgba(10,10,10,0.90) 20%,
            rgba(10,10,10,0.65) 38%,
            rgba(10,10,10,0.20) 55%,
            transparent 70%
        ),
        linear-gradient(180deg, transparent 60%, rgba(10,10,10,0.7) 100%);
    z-index: 1;
}

/* Contenido del hero — ancla al left del container */
.niz-hero-content {
    position: relative;
    z-index: 2;
    /* Ancho generoso para que NIZ ESTUDIO quepa en una sola línea */
    max-width: 620px;
    width: 50%;
    padding-right: 0;
    margin-right: auto;
    margin-left: 0;
}

/* Label superior */
.niz-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--niz-accent);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.niz-hero-label::before {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background: var(--niz-accent);
}

.niz-hero h1 {
    font-family: var(--font-primary);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1;
    /* Reducido el margen inferior para compactar verticalmente */
    margin-bottom: 0.75rem;
    font-weight: 400;
    color: var(--niz-white);
    letter-spacing: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

/* Línea de intro */
.niz-hero-intro {
    font-family: var(--font-primary);
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 300;
    color: var(--niz-white);
    letter-spacing: 0.04em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.8), 0 1px 4px rgba(0,0,0,0.9);
    display: block;
}

/* Bloque de marca: NIZ ESTUDIO — siempre en una sola línea */
.niz-hero-brand {
    display: flex;
    align-items: baseline;
    /* NO flex-wrap: para que nunca se parta en dos líneas */
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 0;
    line-height: 1;
}

/* NIZ — bold, condensado */
.niz-brand-niz {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7.5vw, 5.5rem);
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--niz-white);
    text-shadow: 0 2px 16px rgba(0,0,0,0.75), 0 1px 4px rgba(0,0,0,0.9);
}

/* ESTUDIO — misma fuente Oswald, peso más liviano */
.niz-brand-estudio {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7.5vw, 5.5rem);
    font-weight: 300;
    font-style: normal;
    /* Espacio explícito antes de ESTUDIO */
    margin-left: 0.18em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--niz-white);
    text-shadow: 0 2px 16px rgba(0,0,0,0.75), 0 1px 4px rgba(0,0,0,0.9);
}

/* Descripción: ancho más ancho para que entre en 2 renglones en desktop */
.niz-hero p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.55);
    /* Más ancho para que el texto se distribuya en ~2 líneas */
    max-width: 480px;
    font-weight: 300;
    line-height: 1.65;
}

/* Botones: siempre en fila, nunca apilados */
.niz-hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: nowrap;
    align-items: center;
}

/* Scroll indicator */
.niz-hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.25);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.niz-hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, transparent 100%);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.3); }
}

/* ===== TABLET ===== */
@media (max-width: 991px) {
    .niz-hero {
        background-position: center center;
    }
    .niz-hero-overlay {
        background: 
            linear-gradient(180deg, rgba(10,10,10,0.65) 0%, rgba(10,10,10,0.30) 35%, rgba(10,10,10,0.75) 75%, rgba(10,10,10,1) 100%);
    }
    .niz-hero-content {
        max-width: 100%;
        width: 100%;
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    .niz-hero-brand {
        justify-content: center;
    }
    .niz-hero p {
        margin-left: auto;
        margin-right: auto;
        max-width: 500px;
    }
    .niz-hero-buttons {
        justify-content: center;
    }
    .niz-hero-label {
        justify-content: center;
    }
    .niz-hero-scroll {
        display: none;
    }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .niz-hero {
        height: 100vh;
        height: 100dvh;
        min-height: unset;
        background-attachment: scroll;
        padding-top: var(--niz-header-height);
    }

    /* En mobile el brand sigue en una sola línea, ajustando con vw */
    .niz-brand-niz,
    .niz-brand-estudio {
        font-size: clamp(2.2rem, 11vw, 3.8rem);
        white-space: nowrap;
    }

    /* Descripción más compacta en mobile */
    .niz-hero p {
        font-size: 0.88rem;
        max-width: 320px;
    }

    /* Botones en mobile: uno al lado del otro, pero más chicos */
    .niz-hero-buttons {
        flex-wrap: nowrap;
        gap: 0.75rem;
    }

    .niz-hero .niz-btn {
        font-size: 0.8rem;
        padding: 0.65rem 1.1rem;
        white-space: nowrap;
    }
}

/* ===== MOBILE MUY CHICO (< 400px) ===== */
@media (max-width: 400px) {
    .niz-brand-niz,
    .niz-brand-estudio {
        font-size: clamp(1.9rem, 10vw, 2.6rem);
    }
}
