/* Ventana modal superpuesta Ver cuentas de Pago */
/* div modal en lista-s126/index.php */
/* Backdrop */
/* Modal2 backdrop */
#modal2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1066; /* Más alto que modal Bootstrap */
}

/* Contenido de modal2 */
#modal2 .modal-content-custom {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 600px;
  max-width: 90%;
  height: 90vh; /* Ocupa 3/4 de la pantalla */
  position: relative;
  overflow-y: auto; /* Permite scroll si el contenido es mayor */
  z-index: 1067;
  pointer-events: auto;
}

#modal2::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background u otros estilos */
  pointer-events: none; /* muy importante para mobile */
}


/* Botón cerrar */
.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 29px;
  font-weight: bold;
  border: none;
  background-color: #ddd ;
  color:#000000;
  padding: 0px 20px;
  border-radius: 10px;
  
  background-color: red;
  opacity: 0.9 !important;
  color: #fff;
}

#modal3 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1060; /* Más alto que modal Bootstrap */
}

/* Contenido de modal3 */
#modal3 .modal-content-custom {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 600px;
  max-width: 95%;
  height: 95vh; /* Ocupa 3/4 de la pantalla */
  position: relative;
  overflow-y: auto; /* Permite scroll si el contenido es mayor */
  z-index: 1065;
  pointer-events: auto;
}

#modal3::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background u otros estilos */
  pointer-events: none; /* muy importante para mobile */
}

/* ================================
   FORMULARIO DE COMPROBANTE DE PAGO
   ================================ */

/* Caja principal del formulario */
.comprobante-form {
  width: 300px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  font-family: 'Segoe UI', sans-serif;
  position: relative; /* necesario para overlay */
  margin: 0 auto;
}

/* Título */
.comprobante-form h4 {
  font-size: 16px;
  line-height:16px;
  margin-bottom: 12px;
}

.encabezadoMsjModalPago{
  background-color: rgb(99,202,199); 
  border-radius: 10px; padding: 10px 0px; margin-top:20px;
  margin-bottom: 20px;
}
.info-pago-completo{
  margin-top:20px;
  padding: 20px;
  color:#000000;
  background-color: #ddd;
  border-radius: 10px;
  font-weight: bold;
}
/* contenido MsjModalPago */
.contenidoMsjModalPago, .encabezadoMsjModalPago{
  font-size: 20px;
}
/* Botón Amarillo: ver cuentas pago */
.btn-verPago {
  text-align: center;
  background: #018590;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size:16px;
  margin-top:10px;
  margin-bottom: 10px;
  font-family: "Poppins", Arial, sans-serif;
}

/* Botón verde: seleccionar archivo */
.comprobante-form .btn-seleccionar {
  display: block;
  text-align: center;
  background: #018590;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}
.comprobante-form .btn-seleccionar:hover {
  background: #256528;
}

/* Estado deshabilitado (cuando se está subiendo) */
.comprobante-form .btn-seleccionar.disabled {
  background: #c8e6c9 !important;
  color: #a1a1a1 !important;
  cursor: not-allowed;
}

/* Ocultar el input de tipo file */
.comprobante-form .comprobante-input {
  display: none !important;
}

/* Cuadro gris con texto de estado */
#infoContainer{
  background: #f8f8f8;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 10px;
  padding: 0px;
  text-align: center; 
}
.comprobante-form .info-box {       
  color: #555;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.3s ease;
}

/* Estado: archivo listo */
.comprobante-form .info-box.ready {
  color: #2e7d32;
  font-weight: 600;
}

/* Estado: subiendo (animación parpadeo) */
.comprobante-form .info-box.uploading {
  color: #1976d2;
  font-weight: 600;
  animation: blink 1.2s infinite;
}

/* Parpadeo suave durante subida */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Botón azul: subir comprobante */
.comprobante-form .btn-enviar {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border: 2px solid #ffffff !important;
  background: #fa0202 !important;
  color: #fff;
  font-weight: 600;
  font-family: "Poppins", Arial, sans-serif;
  cursor: pointer;
  transition: background 0.3s ease;
}
.comprobante-form .btn-enviar:hover {
  background: #0d47a1;
}

.comprobante-form .info-box.success {
  color: #2e7d32;
  font-weight: 600;
}
.comprobante-form .info-box.error {
  color: #d32f2f;
  font-weight: 600;
}

/* ================================
   BLOQUEO VISUAL (overlay)
   ================================ */

/* Por defecto: fondo blanco opaco (funciona en todos los navegadores) */
.comprobante-form .form-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.8);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #1976d2;
  z-index: 5;
  animation: fadein 0.3s ease forwards;
}

/* Si el navegador soporta backdrop-filter, aplicamos el desenfoque */
@supports (backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px)) {
  .comprobante-form .form-overlay {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px); /* compatibilidad Safari */
  }
}

/* Suave aparición del overlay */
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ================================
   RESULTADO DEL SERVIDOR
   ================================ */

#resultado {
  margin-top: 10px;
  font-size: 13px;
}

/* ================================
   AJUSTES PARA MÓVILES ANTIGUOS
   ================================ */

/* En pantallas pequeñas, ampliar botones y centrar el formulario */
@media (max-width: 480px) {
  .comprobante-form {
    width: 100%;
    margin: 0 auto;
  }

  .comprobante-form .btn-seleccionar{
    font-size: 15px;
	line-height:18px;
    padding: 12px;
  }
  .comprobante-form .btn-enviar {
    font-size: 18px;
	line-height:20px;
    padding: 12px;
  }

  .info-box {
    font-size: 16px;
  }
}
