/* Este es el contenedor principal que envuelve todo el contenido */
.container {
    width: 100%; /* 90% del ancho de la pantalla */
    max-width: 1200px; /* Máximo 1200px de ancho */
    margin: 0 auto; /* Centrado horizontal */
    padding: 40px 40px 0 40px;
    box-sizing: border-box; /* Incluir padding dentro del cálculo del ancho */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

* { 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  
}
/*Css para el ojito del password*/
.password-container {
    position: relative;
    display: inline-block;
    width: 100%; 
}

#passwordInput {
    padding-right: 30px; /* Espacio para el icono */
    width: 100%;
}

.eye-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
}
.link-credencial{
    margin-bottom: 20px;
    text-align: center;
}
/*Fin css ojito password*/
/* formulario fechas ini fin*/
.form-fechas {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Reducido el gap */
     /*box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1); Reducido el box-shadow */
    max-width: 400px; /* Reducido el max-width */
    font-size: 14px; /* Reducido el tamaño de fuente general */
    width: 100%;
    margin-top: 20px;

}
.fechas-container{
    display: flex;
    flex-direction: column;
    justify-content: center; /* mobile: centrado */
    align-items: center;
}
.link-credencial a{
    display: inline-block;
    background-color: #474747; 
    color: white;              
    text-decoration: none;        
    transition: background-color 0.3s;
    padding: 8px 12px; /* Reducido el padding del botón */
    font-size: 14px; /* Reducido el tamaño de fuente del botón */
    border: none;
    border-radius: 4px; /* Reducido el border-radius del botón */
    cursor: pointer;
    text-transform: uppercase;
}
.link-credencial a:hover {
    background-color: #c93030;
    color: white;   
    text-decoration: none;
}
.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 3px; /* Reducido el margen inferior */
    font-size: 12px; /* Reducido el tamaño de fuente del label */

}

.input-group input {
    padding: 6px; /* Reducido el padding */
    font-size: 14px; /* Reducido el tamaño de fuente del input */
    border: 1px solid #ccc;
    border-radius: 4px; /* Reducido el border-radius */

}

.btn-submit {
    background: #ad0103;
    color: white;
    padding: 8px 12px; /* Reducido el padding del botón */
    font-size: 14px; /* Reducido el tamaño de fuente del botón */
    border: none;
    border-radius: 4px; /* Reducido el border-radius del botón */
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
}
.vintech {
    text-align: center;
    font-size: 	0.9rem;
    color: #666;
    padding-top: 4rem;
}

.vintech .web-link {
    color: #474747;
    text-decoration: none;
}

.vintech .web-link:hover {
    text-decoration: none;
    color:#474747;
}
.btn-submit:hover {
    background: #c93030;
}
/**fin formulario fechas ini fin*/
body{
    font-family: "Open Sans", sans-serif;
    min-height: 100vh;

}
.encabezado-container{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.encabezado-container h2 {
    font-size: 19px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}
.saldo-container h4, .parrafo{
    text-align: center;
    color:#ad0103;
    font-size: 19px;
}
.link{
    color: #f8f8f8;
}
.error{
    background-color: #f8d7da;
    color:#ad0103;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;

}
.error ul {
    list-style-type: none;
    padding-left: 0;
}
h1, h2 {
    color:#474747;                                       
    margin-bottom: 20px;             
    text-align: center;   
    font-size: 19px;        
}

/*Estilos generales para los links*/

a{
    text-decoration: none;         
    color: #ad0103;               
    font-weight:normal;        
    transition: color 0.3s ease, text-decoration 0.3s ease;  
}

a:hover{
    color: #b41313;                 
    text-decoration: underline;    
}
.logout{
    width: 50%;
}
/* Estilos generales para el formulario */
.form {
    background-color: #fff;               
    padding: 20px;               
    border-radius: 8px;              
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 500px;                     
    margin: 0 auto;   
    margin-bottom: 70px;                  
}

.form label {
    display: block;       
    color: #ad0103;                     
    margin-bottom: 5px;                    
    font-size: 1rem;                       
    font-weight: bold;
}

.form input[type="text"], 
.form input[type="password"], 
.form input[type="email"], 
.form select, .search input[type="text"] {
    width: 100%;                           
    padding: 10px;               
    background-color: #f8f8f8;  
    border: 1px solid #ddd;     
    border-radius: 5px;           
    margin-bottom: 15px;                   
    font-size: 1rem;               
}

.form button {
    background-color: #ad0103;
    color: #f8f8f8;             
    border: none;            
    padding: 10px 20px;          
    font-size: 1rem;                   
    border-radius: 5px;               
    cursor: pointer;                       
    width: 100%;                           
    margin-top: 10px;              
}
form button{
    background-color: #ad0103;
    color: #f8f8f8;             
    border: none;            
    padding: 10px 20px;          
    font-size: 1rem;                    
    border-radius: 5px;               
    cursor: pointer;                       
    width: 100%;                           
    margin-top: 10px; 
    display: inline-block; /* Esto hace que el botón esté en una sola línea */
    white-space: nowrap; /* Previene el salto de línea en el texto */
}
form button:hover{
    background-color: #c93030;  
}
.form button:hover {
    background-color: #c93030;            
}




/*Estilos generales para las tablas*/
.tablaInfo th{
    background-color: #fff;
    border: 1px solid #f5c6cb;
    border-radius:5px;
    color:#ad0103;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
 
}
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Para un desplazamiento suave en iOS */
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

table tr:nth-child(even) {
    background-color: #f8f8f8;
}

th, td {
    padding: 10px 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
   /* white-space: nowrap; /* Evita que el contenido se envuelva */
}
td{
    font-size: 14px;
}

th {
    padding: 10px;
    background-color: #ad0103;
    color: #f8f8f8;
    font-weight: bold;
}
.tablaInfo th{
    background-color: #fff;
    border: 1px solid #f5c6cb;
    border-radius:5px;
    color:#ad0103;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
 
}
/*loli*/
.accion{
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
}
.accion form{
    padding: 10px;
}

.search{
    display: flex;
    align-items: flex-end;
    margin: 10px;
    gap: 10px;
    justify-content: center;
}
.search input[type="text"], .search button{
    margin: 0;
}
.search button{
    width: 100px;
}
.search input[type="text"]{
    width: 200px;
}
.img-cam img{
    display: none;
}
.ini-login .client-login-container{
    flex: 1;
    width: 100%;
    max-width: 500px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}
.login-cliente img{
    width: 250px;
    margin-bottom: 50px;
}
.login-cliente{
    height: 100vh;
    width: 100%;
    padding: 20px;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.container-login{
    margin: 0;
    display: flex;  /* Usamos flexbox para centrar */
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}
.login-body{
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.form-login{
    width: 100%;
    max-width: 300px;
    min-width: 250px;
    background-color: white;
}
.form-login input[type="text"], .form-login input[type="password"] {
    border: none;
    border-bottom: solid 1px grey;
    margin: 5px 0px;
    background-color: white;
    width: 100%;
    padding: 5px;
    text-decoration: none;
}
.form-login button{
    margin-top: 20px;
}

.log-admin{
    display: flex;
    text-align: center;
}
.login-cliente h2{
    font-size: 13px;
    display: inline-block;
    margin: 20px 0;
    width: 100%;
}
.alert-danger {
    color: #ad0103;
}

.visitas{
    color:#474747; 
    font-weight: bold;
}
.nro-visitas {
    color: #ad0103;
}
@media (min-width: 768px) {   
    .ini-login .client-login-container{
        max-width: 39%;
    }
    .encabezado-container{
        margin-bottom: 0;
        align-items: flex-start;
    }
    .encabezado-container h2{
        font-size: 18px;
        margin-bottom: 0;
    }
    .link-credencial{
        text-align: left;
    }
    

    h2{
        font-size: 19px;
        text-align: left;
    }
    .form {
        padding: 30px;                    
    }

    .form h1, form h2 {
        font-size: 2rem;               
    }

    .form input[type="text"], 
    .form input[type="password"], 
    .form input[type="email"], 
    .form select {
        font-size: 1.2rem;                
    }
    .form-login{
        width: 100%;
        width: 300px;
    }
        
    .form button{
        font-size: 1.2rem;            
    }
    .logout{
        width: 20%;
    }
    form button{  
        width: 100%; 
        margin-top: 0;
    }
    
    table {
       /*display: block;*/
        overflow-x: auto;
        white-space: nowrap;
    }
    td{
        font-size: 16px;
    }
    .form-fechas {
        flex-direction: row;
        align-items: flex-end;
        max-width: 500px; /* Reducido el max-width para desktop */
    }
    .fechas-container{
        justify-content: space-between;
        flex-direction: row;
        align-items: flex-end;

    }
    .input-group {
        flex: 2; /* Asigna más espacio a los inputs */
    }

    .btn-submit {
        flex: 1; /* Asigna menos espacio al botón */
      
    }
    /*.img-cam img{
        width: 100%;
        height: auto;
        display: flex;
        top: 0px; /* Distancia desde la parte superior de la pantalla 
        left: 0;  /*Distancia desde el lado derecho 
        z-index: 9999; /* Asegura que la imagen esté por encima de otros elementos 
        object-fit: cover;
        box-shadow: inset -20px 0 15px rgba(0, 0, 0, 0.5); /* Sombra interna en el lado derecho 
    }
    
    .img-cam{
        width: 65%; 
        object-fit: cover;
        
    }*/
    
    .container-login{
        margin: 0;
        width: 100%;
        display: flex;
        flex-direction: row;
    }
    
    .login-cliente{
        padding: 20px;
        max-width: 450px;
        min-width: 350px;
    }
  
    .login-cliente img{
        width: 300px;
        cursor: default; 
    }
    /*.ini-login .client-login-container{
        width: 35%;
        display: flex;
        justify-content: center;
        align-items: center;
    
    }*/
    .ini-login{
        width: 100%;
        height: 100vh; 
        background-image: url('../images/edificio.jpg');
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center left;
        background-attachment: fixed;    
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
   
    .login-cliente h2{
        font-size: 16px;
        width: 300px;
    }
    .saldo-container h4, .parrafo{
        text-align: left;
        
    }
}
