.form-section {
  margin-top: 2rem;
}

body {
  font-family: "Barlow", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
a,
a:hover {
  color: #ffffff;
}

.card-title,
#condicionesModal {
  color: #1b619a;
}

h5.modal-title {
  color: #1b619a;
}

.modal-header {
  background-color: #1b619a;
}

.modal-header h5.modal-title {
  color: #ffffff;
}

h1 {
  font-size: 28px;
}

h4,
.modal-title {
  font-size: 21px;
}

h2 {
  font-size: 18px;
}

.form-control,
.form-select {
  font-size: 16px;
}

.form-control {
  -webkit-appearance: auto;
  -moz-appearance: initial;
  appearance: auto;
}

.container {
  max-width: 820px;
}

.datepicker table tr td.active.active {
  background-image: linear-gradient(to bottom, #1b619a, #1b619a);
}

.btn-primary {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #1b619a;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #124671;
}

.login .btn-primary,
.validar .btn-primary,
.acceso .btn-primary,
#cerrarModal .btn-primary {
  background-color: #1b619a;
  border-color: #1b619a;
  color: #ffffff;
}

.acceso .btn-primary:hover,
.acceso .btn-primary:focus,
.acceso .btn-primary:active,
.login .btn-primary:hover,
.login .btn-primary:focus,
.login .btn-primary:active,
.validar .btn-primary:hover,
.validar .btn-primary:focus,
.validar .btn-primary:active {
  background-color: #124671;
  border-color: #124671;
  color: #ffffff;
}

a#linkOlvide,
.modal-body,
.modal-body p,
h4.modal-title,
.validar h4,
.blue {
  color: #1b619a !important;
}

.modal-body label {
  color: #212529 !important;
}
label.required::after {
  content: " *";
  color: #ffffff;
  margin-left: 4px;
}

span.required {
  color: #ffffff;
  margin: 0 3px;
}

label.form-check-label {
  font-size: 14px;
}

.form-section {
  margin-top: 1.5rem;
}

.form-control.is-valid,
.was-validated .form-control:valid {
  border-color: #dee2e6 !important;
}

.form-control.is-valid:focus,
.was-validated .form-control:valid:focus {
  border-color: #dee2e6 !important;
  box-shadow: none !important;
}

.form-control.is-valid,
.was-validated .form-control:valid {
  background-image: none !important;
}

.form-check-input.is-invalid ~ .form-check-label,
.was-validated .form-check-input:invalid ~ .form-check-label {
  color: #212529;
}

.btn-close {
  filter: invert(100%);
}

#msg-nacimiento {
  display: none;
  color: #F9E27D;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
}

.datepicker table tr td span.active.active,
.datepicker table tr td span.active.disabled,
.datepicker table tr td span.active.disabled.active,
.datepicker table tr td span.active.disabled.disabled,
.datepicker table tr td span.active.disabled:active,
.datepicker table tr td span.active.disabled:hover,
.datepicker table tr td span.active.disabled:hover.active,
.datepicker table tr td span.active.disabled:hover.disabled,
.datepicker table tr td span.active.disabled:hover:active,
.datepicker table tr td span.active.disabled:hover:hover,
.datepicker table tr td span.active.disabled:hover[disabled],
.datepicker table tr td span.active.disabled[disabled],
.datepicker table tr td span.active:active,
.datepicker table tr td span.active:hover,
.datepicker table tr td span.active:hover.active,
.datepicker table tr td span.active:hover.disabled,
.datepicker table tr td span.active:hover:active,
.datepicker table tr td span.active:hover:hover,
.datepicker table tr td span.active:hover[disabled],
.datepicker table tr td span.active[disabled] {
  background: #1b619a !important;
}

.form-select::after,
.form-select::before,
.form-control.is-invalid,
.was-validated .form-control:invalid,
.form-select.is-invalid,
.form-select.is-invalid:focus {
  border-color: #dee2e6 !important;
  box-shadow: none !important;
  background: none !important;
}

ul li {
  list-style: none !important;
}

ul {
  list-style-type: none !important;
}

.btn.disabled,
.btn:disabled,
fieldset:disabled .btn {
  background-color: #fff !important;
  color: #1b619a !important;
  border-color: #fff !important;
  opacity: 0.75 !important;
}

.btn-secondary {
  background-color: #fff !important;
  color: #1b619a !important;
  border-color: #fff !important;
}

#modalRecuperarForm .modal-header {
  background-color: #1b619a !important;
}

.modal-footer .btn-secondary {
  background-color: #ffffff !important;
  color: #1b619a !important;
  border-color: #1b619a !important;
}

.modal-footer .btn-primary {
  background-color: #1b619a !important;
  color: #ffffff !important;
  border-color: #1b619a !important;
}

select.is-valid,
select:valid {
  border-color: #ced4da !important;
}

img {
  max-width: 100%;
}

.registro-wrapper .logo,
.verificar .logo,
.acceso .logo {
  width: 130px;
}

.verificar .logo {
  margin-left: auto;
  margin-right: auto;
}

.super-ahorro {
  width: 160px;
  margin-right: 30px;
}

header h1 {
  color: #ffffff;
  font-weight: bolder;
  font-size: 36px;
  max-width: 450px;
  margin-left: 20px;
}

.registro-header {
  display: flex;
  justify-content: start;
  align-items: center;
  padding: 10px 0;
}

body {
  background-image: url("../imagenes/background.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
}

.decor {
  position: absolute;
  width: 110px;
  height: 110px;
  background-size: contain;
  background-repeat: no-repeat;
}

.registro-wrapper {
  width: 100%;
  min-height: 100vh;
  padding: 0 15px 15px 15px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  color: white;
  /*background: linear-gradient(135deg, #0a54a5 0%, #0d63bd 60%);*/
}

.decor-1 {
  top: 80px;
  left: 100px;
  background-image: url("../img/icono1.png");
}
.decor-2 {
  top: 250px;
  left: 30px;
  background-image: url("../img/icono2.png");
}
.decor-3 {
  top: -30px;
  right: 40px;
  background-image: url("../img/icono1.png");
}
.decor-4 {
  top: 120px;
  right: 130px;
  background-image: url("../img/icono4.png");
}
.decor-5 {
  top: 450px;
  left: 100px;
  background-image: url("../img/icono3.png");
}
.decor-6 {
  top: 650px;
  left: 30px;
  background-image: url("../img/icono4.png");
}
.decor-7 {
  top: 270px;
  right: 40px;
  background-image: url("../img/icono3.png");
}

/* ---------------- CHICA ------------------ */

.chica {
  position: absolute;
  bottom: 0;
  right: 50px;
  width: 300px;
}

.form-check {
  max-width: 700px;
}

.botones {
  max-width: 650px;
}

.invalid-feedback,
span.required,
label.required::after {
  color: #F9E27D !important;
}

.form-control.is-invalid {
  background-color: #ffffff !important;
}

/* ---------------- RESPONSIVE ------------------ */

@media (max-width: 912px) {
  .chica,
  .decor {
    display: none;
  }
  header h1 {
    font-size: 32px;
  }

  .registro-wrapper .logo,
  .verificar .logo,
  .acceso .logo {
    width: 120px;
  }

  .form-check {
    max-width: 100%;
  }

  .botones {
    max-width: 100%;
  }
}

@media (min-width: 912px) and (max-width: 1200px) {
  .chica {
    right: -25px;
  }
}

@media (max-width: 1200px) {
  .decor {
    width: 80px;
    height: 80px;
  }

  .decor-1 {
    top: 80px;
    left: 30px;
    background-image: url("../img/icono1.png");
  }
  .decor-2 {
    top: 250px;
    left: 5px;
    background-image: url("../img/icono2.png");
  }
  .decor-3 {
    top: -30px;
    right: 10px;
    background-image: url("../img/icono1.png");
  }
  .decor-4 {
    top: 120px;
    right: 65px;
    background-image: url("../img/icono4.png");
  }
  .decor-5 {
    top: 450px;
    left: 30px;
    background-image: url("../img/icono3.png");
  }
  .decor-6 {
    top: 650px;
    left: 5px;
    background-image: url("../img/icono4.png");
  }
  .decor-7 {
    top: 270px;
    right: 10px;
    background-image: url("../img/icono3.png");
  }

  .chica {
    right: -100px;
  }
}

@media (min-width: 1366px) {
  .chica {
    right: 100px;
  }
}

@media (min-width: 1600px) {
  .chica {
    right: 200px;
  }
}

@media (max-width: 600px) {
  h2 {
    font-size: 21px;
  }
  header h1 {
    font-size: 24px;
    margin-left: 10px;
  }
  .registro-wrapper .logo,
  .verificar .logo,
  .acceso .logo {
    width: 100px;
  }
}

/* Overlay de carga */
#overlay-carga {
    position: fixed;
    inset: 0;
    background: rgba(27, 97, 154, 0.9) !important; /* #1b619a con transparencia */
    z-index: 99999 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    font-size: 1.2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease-in-out;
}

/* Cuando se activa */
#overlay-carga.mostrar {
    opacity: 1;
    pointer-events: all;
}

/* Loader circular */
.loader {
    width: 55px;
    height: 55px;
    border: 6px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Texto animado con pulso suave */
.texto-carga {
    margin-top: 10px;
    font-size: 1.15rem;
    animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
    0%   { opacity: .75; }
    50%  { opacity: 1; }
    100% { opacity: .75; }
}


.bg-light.login .invalid-feedback {
  color: red !important;
}

.form-check-input.is-invalid ~ .form-check-label, .was-validated .form-check-input:invalid ~ .form-check-label {
  color: #ffffff !important;
}

.form-control:disabled,
.form-select:disabled {
  background-color: #cccccc !important;
}