html,
body {
  height: 100% !important;
}

body {
  display: -ms-flexbox;
  display: -webkit-box;
  display: flex;
  -ms-flex-align: center;
  -ms-flex-pack: center;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  padding: 10px;
  background-color: #000e1f !important;
}

/*Botones RCV*/

  /* Estilo base para el contenedor del video */
  #rcv-container {
      position: relative;
      width: 100%;
      max-width: 500px; /* Ancho máximo para pantallas grandes */
      margin: 10px auto;
      overflow: hidden; /* Asegura que el video no se desborde */
  }

  /* Estilo base para el video */
  #rcv-video {
    width: 100%; /* El video ocupa todo el ancho del contenedor */
    height: auto; /* Altura automática para mantener la proporción */
    object-fit: cover; /* Ajusta el video para cubrir el área sin deformarlo */
    aspect-ratio: 3 / 2; /* Relación de aspecto 1200x800 (3:2) */
  }

  /* Media query para dispositivos móviles */
  @media (max-width: 768px) {
      #rcv-container {
          max-width: 100%; /* El contenedor ocupa todo el ancho en móviles */
          max-height: 350px; /* Altura máxima para móviles */
      }

      #rcv-video {
          max-height: 350px; /* Altura máxima para el video en móviles */
      }
  }

  /* Media query para pantallas muy pequeñas (por ejemplo, móviles en modo vertical) */
  @media (max-width: 480px) {
      #rcv-container {
          max-height: 350px; /* Altura reducida para pantallas pequeñas */
      }

      #rcv-video {
          max-height: 350px; /* Altura reducida para el video en pantallas pequeñas */
      }
  }

    /* Estilos existentes */
    .notification {
      position: absolute;
      top: 10px;
      left: 50%;
      transform: translateX(-50%);
      padding: 10px 20px;
      border-radius: 5px;
      color: white;
      font-weight: bold;
      text-align: center;
      z-index: 1000;
      display: none;
      width: 80%;
    }
    .notification.success {
      background-color: #4CAF50;
      color: #fff;
    }
    .notification.error {
      background-color: #f44336;
      color: #fff;
    }
    #rcv-frame {
      position: absolute;
      top: 7%;
      left: 5%;
      width: 90%;
      height: 85%;
      border: 2px solid #002a8f;
      box-sizing: border-box;
      pointer-events: none;
      z-index: 999;
      background: transparent;
    }
    .top-left, .top-right {
      position: absolute;
      background-color: #002a8f;
      color: white;
      padding: 5px 10px;
      font-weight: bold;
      font-size: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 40px;
      top: -15px;
      z-index: 999;
    }
    .top-left {
      left: -15px;
    }
    .top-right {
      right: -15px;
    }

    @media (max-width: 768px) {
      .top-left, .top-right {
        font-size: 12px;
      }
    }


    #rcv-frame::before {
      content: "";
      position: absolute;
      top: -15px;
      left: -15px;
      right: -15px;
      bottom: -15px;
      border: 5px solid #ffd700; /* amarillo */
    }
    #rcv-frame::after {
      content: "";
      position: absolute;
      top: -10px;
      left: -10px;
      right: -10px;
      bottom: -10px;
      border: 5px solid #002a8f; /* azul */
    }
    .inner-border {
      content: "";
      position: absolute;
      top: -5px;
      left: -5px;
      right: -5px;
      bottom: -5px;
      border: 5px solid #ff0000; /* rojo */
    }
    .certificate-text {
      position: absolute;
      top: 15px;
      left: 50%;
      transform: translateX(-50%);
      color: #002a8f;
      font-weight: bold;
      font-size: 16px;
      white-space: nowrap;
      background-color: rgba(255, 255, 255, 0.25);
      padding: 5px 10px;
      border-radius: 5px;
    }
    @media (max-width: 768px) {
      .certificate-text {
        font-size: 13px;
      }
    }

    #capture {
      cursor: pointer;
    }
    #capture:hover {
      background-color: #45a049;
    }
    .photo-container {
      margin-top: 20px;
    }
    #photo {
      max-width: 640px;
      border: 2px solid #666;
    }

/**/

/* Estilo base para el contenedor del video */
#video-container {
    position: relative;
    width: 100%;
    max-width: 500px; /* Ancho máximo para pantallas grandes */
    margin: 10px auto;
    overflow: hidden; /* Asegura que el video no se desborde */
}

/* Estilo base para el video */
#video {
    width: 100%; /* El video ocupa todo el ancho del contenedor */
    border: 2px solid #ccc;
    background-color: #000;
    object-fit: cover; /* Ajusta el video para cubrir el área sin deformarlo */
    aspect-ratio: 4 / 3; /* Relación de aspecto cuadrada (4:3) */
}

/* Media query para dispositivos móviles */
@media (max-width: 768px) {
    #video-container {
        max-width: 100%; /* El contenedor ocupa todo el ancho en móviles */
        max-height: 400px; /* Altura máxima para móviles */
    }

    #video {
        max-height: 400px; /* Altura máxima para el video en móviles */
    }
}

/* Media query para pantallas muy pequeñas (por ejemplo, móviles en modo vertical) */
@media (max-width: 480px) {
    #video-container {
        max-height: 350px; /* Altura reducida para pantallas pequeñas */
    }

    #video {
        max-height: 350px; /* Altura reducida para el video en pantallas pequeñas */
    }
}

/* Marco interno discontinuo */

#qr-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%; /* Ajusta el tamaño del marco */
    height: 80%; /* Ajusta el tamaño del marco */
    transform: translate(-50%, -50%);
    border: 4px dashed red; /* Borde discontinuo */
    box-sizing: border-box;
    pointer-events: none; /* Para que no interfiera con clics */
}


#message {
    margin: 5px;
    font-size: 18px;
    font-weight: bold;
    color: red;
    align-items: center;
}

.error {
  color: red;
}
.success {
  color: green;
}

/* Estilo para el mensaje de certificado detectado */
.certificado-detectado {
    margin: 5px;
    font-size: 18px;
    align-items: center;
    color: green;
    font-weight: bold;
}

.textarea {
  background-color: #f2f2f2 !important;
  border: 1px solid var(--bs-form-valid-border-color) !important;
  border: 10px !important;
}

.progress, .progress-stacked {
  --bs-progress-height: 1.5rem !important;
  --bs-progress-bar-color: #88b7e3 !important;
  --bs-progress-bar-bg: #192643 !important;
}

.firma {
  align-items: center;
  text-align: center;
  border: 1px solid #000;
  cursor:crosshair;
}  

.btn-compra {
  width: 100% !important;
}

.form-signin {
  width: 100%;
  max-width: 500px !important;
  padding: 10px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 20px;
}
.form-signin .checkbox {
  font-weight: 400;
}
.form-signin .form-control {
  position: relative;
  box-sizing: border-box;
  height: auto;
  padding: 10px;
  font-size: 16px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.form-control:disabled, .form-control[readonly] {
  background-color: #fff !important;
  border: 0px !important;
}

.tmonto {
  font-size: 18px;
  font-weight: 700;
  justify-content: right;
  text-align: right;
}

.cmonto {
  border: 0px !important;
  font-size: 18px;
  font-weight: 500;
  text-align: left;
}

.form-signin .form-control:focus {
  z-index: 2;
}
.form-signin input[type="email"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}
.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* Estilos CSS para el contenedor */
.deposito {
    border: 1px solid #39b057;
    border-radius: 10px;
    padding: 5px;
    max-width: 400px;
    margin: 10px auto;
    background-color: #f9f9f9;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.deposito p {
    margin: 2px 0;
    font-size: 14px;
    color: #333;
}

.deposito strong {
    color: #333;
    font-weight: bold;
}