.bncr-banner {
  width: 100%;
  height: 500px;
  background-color: transparent;
  padding: 0;
  position:relative;
  display: flex;
  align-items: center;
}

.bncr-banner-contenedor {
  width:100%;
}

.bncr-banner-contenido {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  padding: 20px;
  margin: auto;
  color: white;
}

.bncr-banner-titulo {
  max-width:500px;
  font-size: 50px;
  letter-spacing: -2px;
  font-family: Avenirnextltpro, Arial, sans-serif;
  line-height: 52px;
  font-weight: 700;
}

.bncr-banner-titulo-p{
  margin-bottom: 35px;
  max-width: 530px;
}

.bncr-banner-titulo-no-p{
  margin-bottom: 70px;
  max-width: 530px;
}
.bncr-banner-parrafo{
  max-width: 530px;
  font-size: 24px;
  line-height: 32px;
}
.bncr-banner-parrafo p {
  font-size: 24px;
  line-height: 32px;
}
.bncr-banner-parrafo{
  font-size: 24px;
  line-height: 32px;
  margin-bottom: 35px;
  font-family: Avenirnext,Arial,sans-serif;
  font-weight: 400;
}
.bncr-banner .bncr-btn-principal{
  padding: 13px 83px;
}

.bncr-banner-imagen {
  width: 100%;
      height: 100%;
  position:absolute;
  z-index: 0;
  top:0;
  
}

.bncr-banner-imagen img {
   width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%; /* o center bottom, 30% 70%, etc. */
  display: block;
}
.bncr-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0, transparent 80%);
  pointer-events: none; /* para que no bloquee clics */
  z-index: 1;
}

@media (max-width: 700px) {
  .bncr-banner{
    align-items: end;
    height: auto;
  }
  .bncr-banner-contenedor{
    display: flex;
    flex-direction: column-reverse;
  }
  .bncr-banner-imagen{
    position: relative;
  }
  .bncr-banner-contenido{
    background-color: rgba(19, 61, 141, 1);
    text-align: center;
  }
  .bncr-banner-titulo{
    font-size: 24px;
    line-height: 32px;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 20px;
   }
  .bncr-banner-parrafo{
    margin: auto;
    margin-bottom: 0;
  }
  
  
  .bncr-banner-contenido h1{
    font-size: 25px;
    margin: auto;
    margin-bottom: 15px;
    line-height:32px;
    margin-top: 0;
  }
  .bncr-banner-parrafo p{
    margin-bottom: 15px;
    font-size:16px;
    max-width: 100%;
    line-height:25px;
    text-align: center;
  }
  .bncr-banner-overlay{
    background: unset;
  }
  .bncr-banner .bncr-btn-principal{
    background-color: #b0bc22;
    color: #464b0e;
  }
  .bncr-banner .bncr-btn-principal:hover,
  .bncr-banner .bncr-btn-principal:focus{
    background-color: #d0d77a;
    color: #464b0e;
  }
}
}

/* Tabletas (entre 601px y 1024px) */
@media (min-width: 701px) and (max-width: 900px) {
  .bncr-banner{
    height: 330px;
  }
  .bncr-banner-titulo {
    font-size: 40px;
    max-width:100%;
    margin-bottom: 32px;
    line-height: 45px;
    font-weight: 500;
  }
  .bncr-banner-contenido{
  text-align: center;}
  .bncr-banner-overlay{
    background: #000;
    opacity: .5;
  }
  .bncr-banner-parrafo{
    margin-bottom: 0;
  }
  
  .bncr-banner-titulo-no-p{
    margin-bottom: 35px;
  }
  
  .bncr-banner-parrafo p{
    margin-bottom: 35px;
    max-width: 100%;
  }
}


/* =========================================
   PARCHE BANNER PROPORCIÓN Y MOBILE
   ========================================= */

/* Escritorio y general */
.bncr-banner {
  height: auto !important;
  aspect-ratio: 16 / 5 !important;
  max-height: 500px !important; 
}

/* Asegurar que la etiqueta picture llene el espacio */
.bncr-banner-imagen picture {
  width: 100%;
  height: 100%;
  display: block;
}

/* Tabletas (701px - 900px) */
@media (min-width: 701px) and (max-width: 900px) {
  .bncr-banner {
    min-height: fit-content !important; 
  }
}

/* Teléfonos (Max 700px) */
@media (max-width: 700px) {
  .bncr-banner {
    aspect-ratio: auto !important; 
    height: auto !important;
  }
  
  .bncr-banner-imagen {
    position: relative !important;
    aspect-ratio: auto !important; 
    min-height: 150px !important; 
    height: auto !important;
  }
}