/* Fix específico para el backdrop del modal - debe cargarse al final */
/* Este archivo asegura que el backdrop del modal tenga fondo oscuro semi-transparente */

/* Reglas con máxima especificidad para el backdrop */
.modal-backdrop,
.modal-backdrop.show,
.modal-backdrop.fade,
.modal-backdrop.fade.show,
body .modal-backdrop,
body .modal-backdrop.show,
body .modal-backdrop.fade,
body .modal-backdrop.fade.show,
html body .modal-backdrop,
html body .modal-backdrop.show,
html body .modal-backdrop.fade,
html body .modal-backdrop.fade.show,
body > .modal-backdrop,
body > .modal-backdrop.show,
body > .modal-backdrop.fade,
body > .modal-backdrop.fade.show,
html > body > .modal-backdrop,
html > body > .modal-backdrop.show,
html > body > .modal-backdrop.fade,
html > body > .modal-backdrop.fade.show {
  background-color: rgba(0, 0, 0, 0.5) !important;
  background: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
  opacity: 0.5 !important;
}

/* Asegurar que el backdrop tenga posición fija y cubra toda la pantalla */
.modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 1040 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
  background: rgba(0, 0, 0, 0.5) !important;
}

/* Cuando el backdrop tiene la clase show, debe ser visible */
.modal-backdrop.show {
  opacity: 0.5 !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
  background: rgba(0, 0, 0, 0.5) !important;
}

/* Asegurar que el backdrop no herede colores de fondo blanco */
.modal-backdrop * {
  background-color: transparent !important;
}

