  #bbva-modal-wrapper {
  font-family: Arial, sans-serif;
}

/* Colores de títulos */
.bbva-modal-contenido h2,
.bbva-modal-contenido h3,
.bbva-modal-contenido h4 {
  color: #004481;
}

/* Colores de etiquetas de formulario */
.bbva-formulario label,
.bbva-formulario-final label {
  color: #004481;
  font-weight: bold;
}

.bbva-titulo-con-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.bbva-logo {
  height: 40px;
  width: auto;
}

.bbva-btn {
  margin: 20px 0;
  padding: 10px 20px;
  background: #004481;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
  
}

.bbva-modal {
  display: none;
  position: fixed;
  z-index: 9999; /* Asegura que esté por encima de cualquier otro contenido */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  
   overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* mejora en iOS */
}

.bbva-modal-contenido {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 900px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;  /* ?? esto centra el contenido horizontalmente */
}

.bbva-expandido {
  max-height: 1000px;
}

.bbva-cerrar {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}

.bbva-formulario-contenedor {
  width: 100%;
  max-width: 600px;  /* o lo que se vea bien */
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 0 auto;
}

.bbva-formulario {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bbva-formulario input,
.bbva-formulario select {
  padding: 5px;
  width: 100%;
}

.bbva-formulario-final {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bbva-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.bbva-ofertas {
  flex: 1 1 40%;
  transition: opacity 0.5s ease;
}

.bbva-tarjeta {
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 15px;
}

.bbva-oculto {
  display: none !important;
  opacity: 0;
}

.bbva-visible {
  display: block !important;
  opacity: 1;
}

.bbva-btn-volver {
  background: #666666 !important;
  color: white !important;
  margin-left: 10px;
  font-weight: bold;
  text-align: center;
}

.bbva-btn.bbva-btn-volver {
  background: #666666 !important;
}
/* @media screen and (max-width: 768px) { */
/*   .bbva-modal-contenido { */
/*     margin: 10% 5%; */
/*     padding: 15px; */
/*   } */

/*   .bbva-formulario-contenedor { */
/*     flex-direction: column; */
/*   } */

/*   .bbva-ofertas { */
/*     margin-top: 20px; */
/*   } */
  
/*   .bbva-ofertas.bbva-visible { */
/*     position: absolute; */
/*     top: 0; */
/*     left: 0; */
/*     width: 100%; */
/*     min-height: 100%; */
/*     background: #ffffff; */
/*     z-index: 10; */
/*     padding: 20px; */
/*     box-shadow: 0 0 15px rgba(0,0,0,0.2); */
/*     border-radius: 8px; */
/*   } */
  
/*   .bbva-formulario-contenedor > div:first-child { */
/*     opacity: 0.2; */
/*     pointer-events: none;  */
/*   } */
/* } */

.bbva-formulario label {
  text-align: left;
  width: 100%;
}

.bbva-btn {
  align-self: center;  /* centra el botón dentro del formulario */
}

.bbva-ofertas .bbva-btn:last-child {
  margin-bottom: 20px;
}


/* === RESPONSIVE === */
@media screen and (max-width: 768px) {
  .bbva-formulario-contenedor {
    flex-direction: column;
  }

  .bbva-ofertas.bbva-visible {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    background: #ffffff;
    z-index: 10;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 8px;
  }

  
}
