/*
 * bloques/hero/estilos.css
 *
 * .bl-hero ES el flex container. .bl-caja es la única hija de flow.
 * Las alineaciones y dimensiones se inyectan inline (dependen de la
 * instancia).
 */

.bl-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    padding: 40px !important;          /* respiración para la caja; anula .bl-contenedor */
    box-sizing: border-box;
    background: #2a2a2a;                /* fallback si no hay imagen — evita texto blanco sobre blanco */
}

.bl-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
}

.bl-hero-cap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* La caja es el único hijo en flow; el flex container la sitúa. */
.bl-hero .bl-caja {
    position: relative;
    z-index: 1;
    padding: 30px;
    border-radius: 6px;
    box-sizing: border-box;
}

/* Reset-busting: el .bl-cuerpo del proyecto trae `font: inherit` en el reset global. Forzamos font-size con !important. */
.bl-hero .bl-hero-titulo {
    font-size: clamp(1.5rem, 4vw, 3rem) !important;
    line-height: 1.15 !important;
    /*font-weight: 700 !important;*/
    margin: 0 0 .5em !important;
    text-shadow: 0 2px 12px rgba(0,0,0,.25);
    color: inherit !important;
}

.bl-hero .bl-hero-texto {
    font-size: clamp(1rem, 1.6vw, 1.25rem) !important;
    line-height: 1.5 !important;
    text-shadow: 0 1px 6px rgba(0,0,0,.2);
    color: inherit !important;
}

.bl-hero .bl-hero-texto p {
    margin: 0 0 .8em !important;
    color: inherit !important;
}

.bl-hero .boton {
    display: inline-block;
    margin-top: 8px;
}

@media (max-width: 600px) {
    .bl-hero {
        padding: 20px !important;
        justify-content: center !important;
        align-items: center !important;
    }
    .bl-hero .bl-caja {
        width: 100% !important;
        text-align: center !important;
        padding: 20px;
    }
}
