@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

body {
  position: relative;
  width: 100%;
}

/* estilos de navegadores tabs */

.tabs {
  display: flex;
  border-bottom: 1px solid #dee2e6;
}

.tab {
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 0.25rem 0.25rem 0 0;
  background-color: #f8f9fa;
  margin-right: 2px;
  text-decoration: none;
  color: #495057;
  font-size: 16px;
  transition: background-color 0.2s, border-color 0.2s;
}

.tab:hover {
  background-color: #e9ecef;
  border-color: #dee2e6 #dee2e6 #fff;
}

.tab:target {
  background-color: #fff;
  border-color: #dee2e6 #dee2e6 #fff;
  color: #000;
  border-bottom: 1px solid #fff;
}

.tab-content {
  border: 1px solid #dee2e6;
  border-top: none;
  border-radius: 0 0 0.25rem 0.25rem;
  padding: 20px;
  display: none;
}

.tab {
  padding: 10px;
  cursor: pointer;
  display: inline-block;
}

.tab.active {
  font-weight: bold;
  border-top: 2px solid #ff000080;
}

.activo {
  font-weight: bold;
  border-top: 2px solid #ff000080;
}
/* fin */



/* estilos de la barra superior */
.header {
  height: 55px;
  width: 100%;
  display: flex;
  align-items: center;
  border-bottom: 2px solid #f1f1f1;
  padding: 0 20px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  width:auto;

}

.logo img {
  width: 170px;
  height: auto;
}



.search-container {
  display: flex;
  flex: 1;
  margin-left: 70px;
}

.search-container form{
width:100%;
max-width:330px;
}


/* Este se aplica SOLO a la barra de búsqueda en columna-2 de la fila-2 */
.fila-2 .columna-2 form {
width:100%;

}



.search {
  background-color: #fff;
  border-radius: 10px;
  border: solid 1px #d5d8dc;
  padding: 0px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.search input {
  background-color: transparent;
  outline: none;
  border: none;
  text-indent: 15px;
   width: 100%
}

.search button {
  outline: none;
  border: none;
  margin-right: 1px;
  border-left: solid 1px #d5d8dc;
  border-top-right-radius: 20%;
  border-bottom-right-radius: 20%;
  background-color: #fff;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search button i {
  font-size: 1.1rem;
  color: #ff000080;
}




.main {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 60px);
}

.badge {
  position: absolute;
  top: -5px;
  right: 7px;
  padding: 3px 6px;
  border-radius: 50%;
  background-color: red;
  color: white;
  font-size: 9px;
}



/* fin */

/*estoilo de mensaje de exito, error y aviso*/

.alert {
  padding: 8px;
  border-radius: 5px;
  text-align: center;
}

.alert-danger {
  width:100%;
  background-color: #f8d7da;
  color: #a0333e;
  border: 1px solid #f5c6cb;
}

.alert-exito{
  width:100%;
  background-color: #e6ffed;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.alert {
  transition: opacity 0.5s ease;
}

.alert.fade-out {
  opacity: 0;
}

.alert-multa {
  display: none;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.alert-multa strong {
    font-weight: bold;
}

.ver-multa {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
}

.ver-multa:hover {
    color: #0056b3;
}

/*fin*/

/* estilo de navegador lateral sidebar */
.sidebar {
  position: relative;
  left: 0;
  height: 90vh;
  width: 300px;
  background-color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 2px solid #f1f1f1;
  transition: all 0.4s ease-in-out;
  overflow: hidden;
  z-index: 1000;
}

/* Sidebar colapsado estilo escritorio */
.sidebar.active {
  width: 103px;
}

.sidebar.active .sidebar--item {
  display: none;
}

/* Scroll interno para el contenido del menú */
.sidebar--items {
  max-height: 90vh;
  overflow-y: auto;
  padding-right: 10px;
}

/* Ocultar scrollbar de forma personalizada */
.sidebar--items::-webkit-scrollbar {
  width: 0;
}

.sidebar--items {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
}

.sidebar--bottom-items {
  border-top: 1px solid #dee2e6;
}

.sidebar--items a,
.sidebar--bottom-items a {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #000;
  padding: 6px;
  border-radius: 5px;
}

.sidebar--items a:hover,
.sidebar--bottom-items a:hover {
  background-color: #ff000080;
  color: #fff;
}

.sidebar--bottom-items li:last-child a {
  margin-bottom: 0;
}

.icon-space {
  margin-right: 8px;
}

.icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  font-size: 1.3rem;
  color: #2c3e50;
}




/*-------------------------------FIN DE ESTILOS DEL DASHBOARD -------------------------------------*/




/* ----------------------------------- estilos que quedaran ----------------------------------- */


/*estilo de boton volver*/

.detalle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dcdcdc;
  padding-bottom: 10px;
}

.detalle-header h3 {
  color: #555353;
}

.btn-volver {
  display: flex;
  padding: 5px 10px;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  color: #85929e;
  border: solid 1px #85929e;
  text-decoration: none;
  border-radius: 4px;
}

.btn-volver:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

/*fin*/



/* Estilos para los formularios */

.input-with-icon {
  position: relative;
  width: 100%;
}

.icon-container {
  position: absolute;
  left: 1px;
  top: 1px;
  height: calc(100% - 2px); /* Ajuste para el borde */
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5; /* Fondo gris claro */
  border-radius: 5px 0 0 5px;
  border-right: 1px solid #e0e0e0;
}

.icon-container i {
  color: #555; /* Color de icono más oscuro */
  font-size: 1.1rem;
}

.input-with-icon input,
.input-with-icon select {
  width: 100%;
  padding: 10px 12px 10px 46px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  font-size: 0.95rem;
  color: #333;
  background-color: #fff;
  outline: none;
  transition: all 0.3s ease;
}

.input-with-icon input:focus,
.input-with-icon select:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* Área de Foto */
.foto-preview {
  width: 140px;
  height: 180px;
  border: 2px dashed #ff4d4d;
  border-radius: 8px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
}

.foto-preview i {
  font-size: 2rem;
  color: #ff000080;
  margin-bottom: 10px;
}

.image-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.icono-y-texto {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.icono-y-texto i {
  font-size: 2rem;
  color: #ff000080;
  margin-bottom: 8px; /* espacio entre ícono y texto */
}


.btn-huella {
  background-color: #fff;
  color: #999;
  border: 1px solid #999;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-huella:hover {
  box-shadow: #494848;
}

.contenedor-btn-guardar {
  width: 100%;
  display: flex;
  justify-content: center;
}



.btn-guardar {
  width: 100%;
  max-width: 300px;
  height: 40px;
  border: solid 1px #ff000080;
  background-color: #ff000080;
  color: #fff;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top:30px;
}

.btn-guardar:hover {
  background-color: #ff0000;
}

.text-danger {
  color: red;
  font-size: 0.85rem;
}

input.form-control.campo-destacado {
  background-color: #ffeaea !important; /* rojo claro sutil */
}



/* estilo personalizado del boton para otros formularios */
.btn-guardar-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.btn-guardar-custom {
  width: 200px;
  height: 40px;
  border: solid 1px #ff000080;
  background-color: #fff;
  color: #2c3e50;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-guardar-custom:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.ancho-formularios {
  width: 85%;
  margin: 0 auto;
}


/* Botón huella dactilar */
.estilo-Button {
  width: 100%;
  height: 35px;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  border: solid 1px #9c9b9b80;
  background-color: #fff;
  color: #2c3e50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.2s ease;
}

.estilo-Button:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}


/*fin*/



/* estilo del boton agregar */

.btn-add {
  display: flex;
  justify-content: flex-end;
}


.add {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-left: auto;
  margin-right: 0;
  margin-bottom: 15px;
  width: 200px;
  outline: none;
  border: solid 1px #ff000080;
  background-color: #fff;
  color: #2c3e50;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
  font-weight: 500;
}

.add:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.add i {
  font-size: 20px;
  color: #ff000080;
}


/* fin */



/* Estilos del login  */

.custom-login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  background-color: #f5f5f5;
}

/*.huella-gif {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
  margin: 10px auto;
}*/


/* Caja del login (sin bordes internos ni conflictos) */
.custom-login-box {
  background-color: #fff;
  border-radius: 10px;
  border-top: 3px solid #ff0000;
  width: 100%;
  max-width: 400px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

/* Título */
.custom-login-title {
  text-align: center;
  font-size: 22px;
  color: #353838;
  margin-bottom: 10px;
  margin-top: 20px;
}

/* Mensajes de error y éxito */
.custom-login-error-message,
.custom-login-success-message {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 5px;
  width: auto;
  max-width: 80%;
  z-index: 1000;
}

.custom-login-error-message {
  color: red;
  background: #f8d7da;
}

.custom-login-success-message {
  color: green;
  background: #d4edda;
}

/* Campos de entrada */
.custom-login-form-group {
  margin-bottom: 15px;
}

.custom-login-form-group label {
  display: block;
  color: #555;
  font-weight: bold;
  margin-bottom: 5px;
}

.custom-login-form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  background-color: #fafafa;
}

.custom-login-form-group input:focus {
  border-color: #ff0000;
  outline: none;
  box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

/* Botón */
.custom-login-form-group-button {
  display: flex;
  justify-content: center;
}

.custom-login-form-group-button button {
  width: 100%;
  padding: 12px;
  background-color: #ff0000;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.custom-login-form-group-button button:hover {
  background-color: #cc0000;
}


/* rectangulo
.custom-rectangle {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  width: 190px;
  height: 270px;
  margin: 10px auto 20px auto;
  margin-top: -30px;
  border: 2px dashed #ccc;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #555;
  font-size: 16px;
  padding: 5px;

}
*/
.custom-rectangle p {
  margin-top: 3px;
}

.custom-password-container .toggle-password {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #555;
  font-size: 18px;
}

#btnIniciarSesion:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Pestañas tabs  */
.custom-tabs {
  display: flex;
  justify-content: space-around;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  border-top: 1px solid #ddd;
  background-color: #f8f9fa;
  padding: 0;
  height: 50px;
  align-items: center;
}

.custom-tab {
  padding: 10px;
  border: 1px solid #ddd;
  border-bottom: none;
  background-color: #e9ecef;
  cursor: pointer;
  text-align: center;
  flex-grow: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background-color 0.3s;
}

.custom-tab:hover {
  background-color: #d6d8db;
}

.custom-tab.active {
  background-color: #fff;
  font-weight: bold;
}

.custom-tab i {
  font-size: 17px;
  margin-left: 10px;
}

/* fin */



/*estilos de facultad, acrrera*/

.seccion-formulario {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.encabezado-formulario h4 {
  margin: 0;
}

.mensaje-alerta {
  background-color: #ffe0e0;
  color: #a94442;
  padding: 0.75rem;
  border-radius: 4px;
  font-size: 0.95rem;
}

.formulario-lineal {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  width: 100%;
}

.campo-lineal {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 200px;
}

.etiqueta-campo {
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.entrada-campo {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
}

.zona-boton {
  display: flex;
  align-items: flex-end;
}

.texto-error {
  color: #d9534f;
  font-size: 0.9rem;
}



.contenedor-btn button {
  width: 100%;
  padding: 5px 10px;
  height: 34px;
}


.btn-cf:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.grupo-formulario textarea.form-control {
  width: 100%;
  flex: 1;                    /* Que crezca verticalmente */
  resize: none;               /* Opcional: evita que el usuario lo redimensione */
  padding: 10px;
  font-size: 14px;
  outline: none;
  border-color: #66afe9;
  box-shadow: none;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  min-height: 173px;          /* Opcional: tamaño mínimo inicial */
}


/* fin */


/*estilo de texto informativo*/

.contenedor-texto {
  background-color: #f1f5f9; /* Gris azulado claro tipo dashboard */
  border: 1px solid #cbd5e1; /* Borde gris suave */
  color: #334155;            /* Texto gris oscuro azuloso */
  border-radius: 8px;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  padding: 0.3rem;
}


.contenedor-texto p{
width: 100%;
margin-left: 2rem;
 font-size: 16px;
 color: #1e4632;
}

.contenedor-texto .btn-guardar-container{
width: auto;

}
/* fin */



/*estilos de home*/
.contenedor-principal {
  width: 100%;
  height: 90vh;
}

/*estilos del boton devolver prestamos*/

.btn-confirmacion {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  white-space: nowrap;
}


.btn-confirmacion:not(:has(i:only-child)) {
  min-width: 100px;
}

.btn-con-texto {
  min-width: 100px;
}

/*fin*/


/*estilo del modal de foto*/

.modal-camara {
  position: fixed;
  inset: 0; /* igual a top:0; left:0; right:0; bottom:0 */
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-camara-content {
  background-color: #fff;
  border-radius: 10px;
  padding: 15px;
  width: 360px;
  max-width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.modal-camara-content video {
  width: 100%;
  height: auto;
  border-radius: 8px;
  background-color: #000;
  max-height: 240px;
  object-fit: cover;
}

.camara-botones {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.camara-botones button {
  flex: 1;
  padding: 8px 14px;
  border-radius: 5px;
  border: solid 1px #ff000080;
  background-color: #ff000080;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.camara-botones button:hover {
    background-color: #ff0000;
}


.video-wrapper {
  position: relative;
  width: 100%;
  height: auto;
}

#videoCamara {
  width: 100%;
  border-radius: 8px;
  background-color: #000;
  display: block;
  transform: scaleX(-1);
}

.video-rectangulo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160px;
  height: 90%; /* proporcional al alto visible del video */
  max-height: 240px; /* evita que crezca demasiado */
  transform: translate(-50%, -50%);
  border: 2px dashed #00bcd4; /* celeste, línea discontinua */
  border-radius: 8px;
  box-sizing: border-box;
  pointer-events: none;
}


/*estilos campo checkbox*/
.input-checkbox {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f1f1f1;  /* aspecto de input ineditable */
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;

}

.input-checkbox span {
  color: #333;
  font-size: 0.9rem;
}

.input-checkbox input[type="checkbox"] {
  transform: scale(1.2);
  cursor: pointer;
}


/*fin*/


/*estilos del modal mensaje de confirmacion*/
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-contenido {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}



.modal-acciones {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-around;
}

.btn-confirmar,
.btn-cancelar {
  padding: 0.5rem 1.5rem;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 5px;
}

.btn-confirmar {
  background-color: #198754;
  color: white;
}

.btn-cancelar {
  background-color: #dc3545;
  color: white;
}


/*fin*/





/* Estilo general para cualquier tabla  */
.contenedor-tabla {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: auto;
 height: 100%;
  min-height: 0;
   max-height: 500px;

}


.contenedor-tabla table {
  width: 100%;
  border-collapse: collapse;

}

/* ENCABEZADOS */
.contenedor-tabla thead {
  background-color: #e9ecef;

}


.contenedor-tabla th,
.contenedor-tabla td {
  padding: 0.45rem;
  border: 1px solid #dee2e6;
  text-align: left;
  border-bottom: 1px solid #f1f1f1;
}

.contenedor-tabla th {
  color: #333;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 15px;
  border-bottom: 1px solid #cacaca;
}

.contenedor-tabla td {
  color: #363636;
  font-size: 16px;
}

.contenedor-tabla tr:hover {
  background-color: #f9f9f9;
  cursor: pointer;
}

/* Botones personalizados */
.custom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  margin: 0 2px;
  color: white;
  width: 24px;
  height: 24px;
}

.custom-btn-info {
  background-color: #17a2b8;
}

.custom-btn-primary {
  background-color: #007bff;
}

.custom-btn-danger {
  background-color: #dc3545;
}

/* fin */




/* -----------------------------------fin de estilos que quedaran ---------------------------*/








/*-------------------------------------- estilos nuevos -------------------------------------*/


/* estilos de main-content contenedor de dashboard */

.main--content {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: calc(100% - 300px);
  transition: all 0.4s ease-in-out;
}

.main--content.active {
  width: calc(100% - 103px);
}

/*fin*/


/* Contenedor y estructura de todas las vistas */
.contenedor-vistas {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  height: calc(100vh - 55px);
  min-height: 0;
  padding: 0.6rem;
  background-color: #fff;
}

.contenedor-formulario {
 /* margin: 20px auto 0 auto;
  max-width: 800px;*/
  width: 100%;
  padding: 2rem;

}


.contenedor-formulario-2 {
 /* margin: 20px auto 0 auto;
  max-width: 800px;*/
  width: 100%;
  padding: 10px 35px 0 35px;

}


.fila {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

.columna {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1 1 0;
  transition: all 0.3s ease-in-out;
}



.fila-2 .columna-2 {
  flex: 0 0 30%;
  width: 30%;
  padding: 0;
  align-items: flex-start;
}


.columna-3{
  border: 1px solid #ccc;
  padding: 0.5rem;
  border-radius: 8px;
  background-color: #fdfdfd;
  max-height: 99%;
}


/* Hacer que la columna-4 (biometría) se adapte al contenido interno */
.columna-4 {
  flex: 0 0 auto;
  width: auto;
  align-items: center;
  /*padding: 0.3rem;*/
}


/* FILA 3: ocupa espacio restante */
.fila-3 {
  flex: 1 1 auto;
  display: flex;
  min-height: 250px;
  overflow: hidden;
}

/* COLUMNA DE FILA 3: se adapta y controla el crecimiento */
.fila-3 .columna-1  {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}





fin */




/* estilos para vistas de detalles */

.detalle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detalle-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
}

.bloque {
  margin-bottom: 1rem;
}

.bloque h4 {
  margin-bottom: 0.5rem;
  color: #0056b3;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.2rem;
}

.bloque p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
}

hr {
  margin: 1rem 0;
  border: none;
  border-top: 1px solid #eee;
}


.icono-y-texto {
  text-align: center;
  color: #888;
}



.tarjeta-detalle {
  background-color: #fefefe;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.seccion-detalle {
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.seccion-detalle:last-child {
  border-bottom: none;
}

.titulo-seccion {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #808b96;
  border-left: 4px solid #808b96;;
  padding-left: 0.6rem;
}

.seccion-detalle p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
  color: #333;
}

@media (max-width: 768px) {
  .tarjeta-detalle {
    padding: 1rem;
  }

  .titulo-seccion {
    font-size: 1.05rem;
  }

  .seccion-detalle p {
    font-size: 0.9rem;
  }
}


/* fin */


/* Aplica solo en la vista de multa */
.vista-detalle-multa .tarjeta-detalle {
  padding: 1rem 1.2rem;
  gap: 1rem;
}

.vista-detalle-multa .seccion-detalle {
  padding-bottom: 0.4rem;
  margin-bottom: 0.6rem;
}

.vista-detalle-multa .seccion-detalle p {
  margin: 0.2rem 0;
  font-size: 1rem;
  line-height: 1.3;
}

.vista-detalle-multa .titulo-seccion {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

.vista-detalle-multa .columna {
  gap: 0.3rem;
}

/* estilos de pagina de recuperar password*/

/* Centrar y dar forma al formulario */
.formulario-recuperar {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Título centrado */
.titulo-recuperar {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #2c3e50;
}

/* Botón rojo de ancho completo */
.btn-full {
  width: 100%;
}


/* fin*/

/* estilo de modal de huella
.modal-huella {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  width: auto;
  height: auto;
  pointer-events: none;
}

.modal-contenido {
  background-color: #fff;
  border-radius: 8px;
  padding: 10px;
  width: auto;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  pointer-events: auto;
  position: relative;
  box-sizing: border-box;
}

#prestamoButtonInner {
 margin-top: 1px;

}


.modal-huella .custom-rectangle{
margin-top:30px;
}


.modal-contenido .campo-codigo {
  padding: 4px;
  margin-top: 25px;
}

.modal-contenido .campo-codigo input {
  width: 100%;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
  background-color: #f9f9f9;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.modal-contenido .campo-codigo input:focus {
  border-color: #ff4d4d;
  outline: none;
  box-shadow: 0 0 2px rgba(255, 0, 0, 0.2);
}



.cerrar-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #e53935;
  color: white;
  font-size: 14px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.2s ease;
}

.cerrar-modal:hover {
  background-color: #c62828;
}


*/


/*fin*/


/* estilo de vista de configuracion del sistema*/

.tarjeta-configuracion {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1.5rem;
  max-width: 500px;
  margin: 1rem 0;
}

.titulo-tarjeta {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #333;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.5rem;
}

.formulario-configuracion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.formulario-configuracion label {
  flex-grow: 1;
  font-weight: 500;
  color: #444;
}


/* Alineación mejorada: texto a la izquierda, switch a la derecha */
.etiqueta-switch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fdfdfd;
  font-weight: 500;
  color: #333;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}



/* Switch estilo moderno (ajustado y limpio) */
/* Switch estilo moderno - ajustado */
.switch {
  position: relative;
  display: inline-block;
  width: 38px; /* antes 50px */
  height: 20px; /* antes 26px */
  flex-shrink: 0; /* evita que crezca en flex */
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 20px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px; /* antes 20px */
  width: 16px;  /* antes 20px */
  left: 2px;    /* antes 3px */
  bottom: 2px;  /* antes 3px */
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .slider {
  background-color: #566573;
}

input:checked + .slider:before {
  transform: translateX(18px); /* ajustado a nuevo ancho */
}




/*fin*/


/* estilo de contado de prestamos */
    .contador-box {
        background-color: #f0f4f8;
        padding: 5px 10px;
        border: solid 1 px #99A1AF;
        border-radius: 5px;
        display: inline-block;
        font-family: 'Segoe UI', sans-serif;
    }

.usuario {
    margin-left: auto;
}


/* fin */



/* estilo de vista estadisticas */



.contenedor-estadisticas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  height: 100%;
  box-sizing: border-box;
}

/* Responsive: cuando no quepan dos columnas, pasa a una sola */
@media (max-width: 1000px) {
  .contenedor-estadisticas {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
  }
}

.grafica-container {
  background-color: #fff;
  padding: 10px;
  border: solid 1px #d5d8dc;
  border-radius: 10px;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grafico-pequeno {
  width: 50%;
  height: auto;
}




/* fin */



/* ------------------------------------ Media query -------------------------------- */



/* NUEVO: Forzar 1 columna por fila si la vista es más pequeña que 1000px */
@media (max-width: 1000px) {
  .fila .columna {
    flex: 1 1 100% !important;
  }

  .contenedor-formulario {
    max-width: 100%;
    width: 100%;
    padding: 0;
    background:#fff;
    border: none;
    border-radius: 0;
  }
}


/* También lo mantenemos para dispositivos aún más pequeños */
@media (max-width: 768px) {
  .fila .columna {
    flex: 1 1 100%;
  }
  .btn-guardar{
  max-width:100%;
  }
}


/* MODO MOBILE (pantallas pequeñas) */
@media (max-width: 1200px) {
  .sidebar {
    transform: translateX(-100%);
    width: 300px !important;
    display: flex !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .sidebar.mobile-visible {
    transform: translateX(0%);
  }

  .main--content,
  .main--content.active {
    margin-left: 0 !important;
    width: 100% !important;
  }

  /* Ocultar nombre de usuario y logo */
  .ocultar-mobile,
  .logo img {
    display: none !important;
  }

}








