/* =============================================================================
   Nexa — Hero Section
   ============================================================================= */

/* ── Contenedor principal ── */
.nexa-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: flex-end;         /* vertical: bottom por defecto */

    /* Imagen de fondo (cuando no hay video) */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* ── Alineación vertical ── */
.nexa-hero--valign-top    { align-items: flex-start; }
.nexa-hero--valign-middle { align-items: center; }
.nexa-hero--valign-bottom { align-items: flex-end; }

/* ── Video de fondo ── */
.nexa-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* ── Overlay de color ── */
.nexa-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ── Contenido de texto ── */
.nexa-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
    padding: 3rem var(--page-pad, 1.5rem);
    color: #fff;
}

/* ── Alineación horizontal del texto ── */
.nexa-hero--align-left   .nexa-hero__content { text-align: left; }
.nexa-hero--align-center .nexa-hero__content { text-align: center; }
.nexa-hero--align-right  .nexa-hero__content { text-align: right; }

/* ── Título ── */
.nexa-hero__title {
    margin: 0;
    font-size: 6rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    color: #fff;
}

/* ── Subtítulo ── */
.nexa-hero__subtitle {
    margin: 0;
    font-size: 4rem;
    font-weight: 600;
    line-height: 1;
    opacity: 0.9;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
    color: #fff;
}

/* ── Cuerpo adicional (shortcode anidado) ── */
.nexa-hero__body {
    margin-top: 1.25rem;
}

/* ── Responsive ── */
@media ( max-width: 900px ) {
    .nexa-hero__title    { font-size: 4rem; }
    .nexa-hero__subtitle { font-size: 2.5rem; }
}

@media ( max-width: 600px ) {
    .nexa-hero__title    { font-size: 2.4rem; font-weight: 700; }
    .nexa-hero__subtitle { font-size: 1.5rem; }
    .nexa-hero__content  { padding: 2rem 1rem; }
}

/* ── Accesibilidad: reduce movimiento ── */
@media (prefers-reduced-motion: reduce) {
    .nexa-hero__video {
        display: none;
    }
    /* Si había video y la imagen es el poster, la mostramos como fondo */
    .nexa-hero--has-video {
        background-size: cover;
        background-position: center;
    }
}
