.encabezado-blog{
    margin-top: 0px !important;
    /* margin-bottom: 25px; */
}

.content_pp{
    width: 100%; 
    /*height: 669px;*/
    /*height: 768px;*/
    height: 78vh;
    position:relative;
    /*z-index: 1;*/
    background-color: #fff; 
}
 

.bg_e{
    background-size: cover; 
    background-repeat: no-repeat;
    background-position: 50%; 
    display: flex;
    width: 100%;
    /*height: 669px;*/
    /*height: 768px;*/
    height: 78vh;
    position: fixed;
    padding-bottom: 130px;
    overflow: hidden;
}

.contenedor_p {
    width: 100%;
    /*height: 669px;*/
    /*height: 768px;*/
    height: 78vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;

}

/* content_align = "left" (ACF field on encabezado-blog): anchors the title
   column to the left edge of the banner instead of centering it, to match
   designs (e.g. Figma) that call for a left-aligned hero. Opt-in per block
   instance — default stays "center" so existing content is unaffected. */
.contenedor_p.align-left {
    align-items: flex-start;
}

.contenedor_p.align-left .contenido_e {
    padding-left: 8.4%;
}

@media (max-width: 700px) {
    .contenedor_p.align-left .contenido_e {
        padding-left: 24px;
    }
}

/* Figma's hero title sits in a 656px-wide box (of a 1366px hero) at 56px/60px
   type — the two words don't fit side by side there, so it wraps to 2 lines
   naturally. Reproducing the same width proportion AND font size (the base
   #titulo_p rule below is 68px, Figma's is 56px) is what makes it wrap the
   same way for any title text, instead of hardcoding a <br> in the field. */
.contenedor_p.align-left #titulo_p {
    /* 656px in Figma's 1366px hero, but this element's containing block is
       .contenido_e (max-width:1170px, not the full hero), so the % has to
       be recalculated against 1170: 656/1170 ≈ 56%. */
    max-width: 56%;
    font-size: 56px;
    line-height: 60px;
    /* The base rule's margin-top:160px was written for a top-anchored
       layout; it fights .contenedor_p's justify-content:center (which is
       what should vertically center title+subtitle in the hero). */
    margin-top: 0;
}

.contenedor_p.align-left #subtitulo_p {
    font-size: 20px;
    line-height: 26px;
    /* 464px in Figma's 1366px hero → 464/1170 ≈ 39.7% against the real
       containing block (.contenido_e, max-width:1170px). */
    max-width: 39.7%;
}

@media (max-width: 700px) {
    .contenedor_p.align-left #subtitulo_p {
        max-width: 90%;
    }
}

@media (max-width: 700px) {
    /* The 56px/60px from the desktop rule above was never stepped down for
       mobile here (only max-width was) — at 56px a single long word like
       "POSIBILIDADES" or "INNOVACIÓN" no longer fits this box on a phone
       screen, and overflow-wrap:break-word (from the base #titulo_p rule)
       was splitting it mid-word ("Inspira" / "ndo") instead of wrapping
       whole words to the next line. */
    .contenedor_p.align-left #titulo_p {
        max-width: 90%;
        font-size: 34px;
        line-height: 40px;
    }
}

@media (max-width: 400px) {
    .contenedor_p.align-left #titulo_p {
        font-size: 28px;
        line-height: 34px;
    }
}

.contenedor_p .overlay{
    width: 100% !important; 
    height: 1100px !important; 
}

.video_background .overlay{
    width: 100% !important; 
    height: 800px !important; 
}

.contenido_e{
    z-index: 2 !important;
    opacity: 1 !important;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1170px;
}

#titulo_p{
    font-size: 68px;
    color: white;
    text-transform: uppercase;
    text-align: left;
    /*font-family: 'Alright Sans Black';*/
    /*font-family: 'HDUAlrightSans-Black';*/
    font-weight: bold;
    margin-top: 160px;
    margin-bottom: 18px;
    overflow-wrap: break-word;
}

.xs-only #titulo_p{
    margin-top: 0px;
}

#subtitulo_p{
    width: 100%;
    max-width: 560px;
    font-size: 22px;
    color: #fff;
    text-align: left;
    /* font-weight: bold; */
    /*font-family: 'Alright Sans Regular' !important;*/
    /*font-family: 'HDUAlrightSans-Regular';*/
    margin-bottom: 0px;
}

#btn_p{
    display: flex;
    width: 176px;
    height: 42px; 
    justify-content: center;
    align-items: center;
    background: #D31145;
    color: white;
    font-size: 14px;
    box-shadow: 0px 6px 16px #54545480;
    font-weight: bold;
    font-family: 'Alright Sans-Regular';
    /*font-family: 'HDUAlrightSans-Regular';*/
}

@media screen and (max-width: 1234px){
    .contenido_e{
        width: 90% !important;
    }
}

@media (max-width: 1035px){
    .content_title_margin h1{
        margin-top: 70px !important;
    }
}

@media screen and (max-width: 850px){
    #titulo_p{
        font-size: 50px;
    }
}

@media screen and (max-width: 782px){
    .contenedor_p .overlay{
        height: 1043px !important; 
    }
}


/*@media screen and (min-width: 768px){
    .bg_e{
        display: block;
    }
}*/

@media screen and (max-width: 768px){
    .content_pp{
        height: 700px;
    }
    .contenedor_p .overlay{
        top: 0px !important;
        height: 1000px !important; 
        /* height: 780px !important;  */
    }
    .bg_e{
        display: none;
    }
    .bg_e, .contenedor_p{
        height: 1000px !important;
        /* height: 450px !important; */
    }
    .xs-only .bg_e, .contenedor_p{
        /* height: inherit !important; */
        justify-content: start !important;
        margin-top: 160px;
    }
    .content_pp{
        height: 1000px !important;
        /* height: 450px !important; */
        /*margin-top: 36px;*/
    }
    .contenido_e{
        /* margin-left: 40px; */
        align-items: center;
        padding: 0px 16px 0 16px;
    }
    #titulo_p{
        /* width: 370px; */
        width: 100%;
        max-width: 600px;
        text-align: center;
        margin-bottom: 40px;
    }
    #subtitulo_p{
        width: 100%;
        max-width: 600px;
        text-align: center;
    }
    .content_title_margin h1{
        margin-top: 25px !important;
    }
    .bg_e{
        height: 564px !important;
    }
    #titulo_p {
        font-size: 28px;
        margin-bottom: 20px;
    }
    #subtitulo_p{
        font-size: 16px;
    }
}

@media screen and (max-width: 530px){
    .content_pp, .contenedor_p, .bg_e,  .contenedor_p .overlay {
        height: 158vw !important;
    }
}

@media screen and (max-width: 430px){
    .content_pp,.contenedor_p{
        height: 564px !important;
    }

    
    .contenido_e {
        width: 100% !important;
    }

}

@media screen and (max-width: 360px){

}

/* @media screen and (max-width: 615px){

    .contenedor_p{
        height: 736px;
    }
    .contenedor_p .overlay{
        height: 780px !important;
    }
}

@media screen and (max-width: 510px){
    .contenedor_p{
        height: 500px !important;
    }
    .contenedor_p .overlay{
        height: 800px !important;
    } */
       /* #titulo_p{
        width: 75%;
        font-size: 30px;
        overflow-wrap: break-word;
    } */
/* } */

/* estilos - fondo -video */
/* .video_background{
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}
*/

.video_background{
    display: flex;
    justify-content: center;
    overflow: hidden !important;
}

.video_background .bynder_video,
.video_background video{
    width: 100%;
    height: 100%;
} 

.xs-only{
    display:none;
}

@media (max-width: 768px) {
    .md-only {
        display: none !important;
    }
    .xs-only{
        display: flex;
    }
}

.overlay.gradient {
    background: linear-gradient(45deg, black 0%, rgba(128, 33, 47, 0) 100%);
}

.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000;
    opacity: .47;
    z-index: 1;
    -webkit-transition: all .3s;
    transition: all .3s;
}

img, video {
    max-width: 100%;
    height: auto;
}

img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
}

/* .video_background .bynder_video video::-webkit-media-controls,
.video_background .bynder_video video::-webkit-media-controls-play-button,
.video_background .bynder_video video::-webkit-media-controls-start-playback-button {
    display: none !important;
} */


.video_background .texts_video{ 
    position: absolute;
    width: 100%;
    max-width: 1170px;
    display: flex;
    flex-direction: column;
    background: transparent;
    z-index: 2;
}

@media (max-width: 1234px){
    .video_background .texts_video{
        width: 90% !important;
    }
}
