:root {
    --fuenteHeding: 'Signika Negative', sans-serif;
    --fuenteParrafos: 'Josefin Sans', sans-serif;

    --primary: #0969DA;
    --secundary: #e7e7e7;
    --background: #3f3f97;
    --blanco: #ffffff;
    --negro: #262424;
    --success: #04AA6D;
    --danger: #f44336;

}


html {
    box-sizing: border-box;
    font-size: 62.5%;
    /*1 rem = 10px*/
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    font-family: var(--fuenteParrafos);
    font-size: 1.6rem;
    line-height: 2;
}

/* globales*/

.container {
    width: 95%;
    margin: 0 auto;
    padding-top: 7rem;
}

a {
    text-decoration: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--fuenteHeding);
    line-height: 1.2;
}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 4rem;
}

h3 {
    font-size: 3.2rem;
}

h4 {
    font-size: 2.8rem;
}

img {
    max-width: 100%;
}

/* utilidades*/

.no-margin {
    margin: 0;
}

.no-padding {
    padding: 0;
}

.centrar-texto {
    text-align: center;
}
.jquery-modal{
    padding: 0;
}

.modal{
   max-width: 70%;
   margin-top: 7rem;
}
@media (max-width: 768px) {
 .modal{
     padding: 7.5px;
 }
}

/** -------- **/
footer {
    padding-top: 2rem;
    display: none;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    justify-content: center;
}

.table--clientes {
    align-items: center;
    align-content: center;
    margin: 0 0;
    width: 100%;
    text-align: center;
}

.form--input {
    display: inline-block;
    width: auto;
    margin-right: 1rem;

}

.form--section {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #fff;
    border-radius: 5px;
    width: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /*overflow-x: auto;*/
}

.form--section:last-of-type {
    border: none;
}

.form--input {
    width: 23rem;
    margin-bottom: 1rem;
}

.form--input input,
.form--input select {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 16px;
    cursor: pointer;
    box-sizing: border-box;
}

.form--input input.inputFecha{
    padding:10px; 
}

.form--input label {
    font-size: 16px;
    margin-bottom: 5px;
    display: block;
    font-weight: bold;
}

.form--input label.labelObligatorios {
    color: red;
    font-size: 15px;
}

.form--fondo__titulo {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background-color: var(--negro);
    border-radius: 10px;
    padding: 0.5rem;
}

#btnArchivo {
    margin-bottom: 15px;
}

a {
     /* Alinea el texto al centro */
    color: black;
}

#btnBorrarSeleccionados {
    background-color: var(--danger);
}
#btnBorrarSeleccionados:hover {
    background-color: #da190b;
}
.btn--eliminar__certificados{
    margin-top: 1rem;
    text-align: right;
}
#btnBorrarSeleccionadosCert {
    background-color: var(--danger);
}
#btnBorrarSeleccionadosCert:hover {
    background-color: #da190b;
}
.img-btn{
    padding-top: 1rem;
    width: 50%;
}
.btnCrear {
    text-align: center;
    color: white;
    background-color: var(--success);
}
.btnCrear:hover {
    background-color: #46a049;
}
#btnExcel{
    display: block;

    text-align: center;
    background-color: var(--secundary);
}
#btnExcel:hover{
    background-color: #ddd;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: var(--negro);
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
}


button[type="submit"] {
    padding: 10px 20px;
    font-size: 16px;
    background-color: var(--negro);
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

@media screen and (max-width: 768px) {

    .modal{
        max-width: 100%;;
    }

    .form--input {
        width: 100%;
    }

    .modal-content {
        width: 90%;
    }

}
/* Estilo por defecto (escritorio) */
.form--busqueda {
    display: flex; /* Flexbox para alinear horizontalmente */
    align-items: center; /* Centra verticalmente los elementos */
    justify-content: space-between; /* Separa el título y botones del buscador */
}

.form--busqueda__title,
.form--busqueda__btns,
.form--busqueda__input {
    flex: 0 0 auto; /* Evita que los elementos crezcan o se reduzcan */
}

/* Media query para dispositivos móviles */
@media (max-width: 768px) { /* Esto dependerá de la medida que consideres adecuada para tu diseño */
    .form--busqueda {
        flex-direction: column; /* Cambia a una disposición vertical */
    }

    .form--busqueda__title,
    .form--busqueda__btns,
    .form--busqueda__input {
        margin-bottom: 10px; /* Agrega un espacio entre los elementos */
        width: 100%; /* Ocupa el ancho completo del contenedor */
    }
}

.form--busqueda__btns{
    text-align: center;
    display: flex;
    padding-bottom: 2rem;
    gap: 1rem;
}

#caja_busqueda {
    background: url(https://cdn0.iconfinder.com/data/icons/slim-square-icons-basics/100/basics-19-32.png) no-repeat 0px 5px;
    background-size: 24px;
    width: 100%;
    border: transparent;
    border-bottom: solid 1px #ccc;
    padding: 1rem 3rem;
    outline: none;

}

#imgPerfil{
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    overflow: hidden;
    margin: 20px;
    box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.5);
    /* cursor: pointer; */
    transition: 400ms;
    display: flex;
    position: relative;
    aspect-ratio: 1/1;
}

#imgPerfilUserDashboard{
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    overflow: hidden;
    margin: 20px;
    box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.5);
    /* cursor: pointer; */
    transition: 400ms;
    display: flex;
    position: relative;
    aspect-ratio: 1/1;
}

#imgLogo{
    width: 10rem;
    height: 10rem;
    border-radius: 10%;
    overflow: hidden;
    margin: 20px;
    box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.5);
    /* cursor: pointer; */
    transition: 400ms;
    display: flex;
    position: relative;
    aspect-ratio: 1/1;
}

/* Sección de archivos/documentos con space-between - Optimizada para modal */
.form--section.file-upload-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    max-width: 100%;
    box-sizing: border-box;
    max-height: 40vh;
    overflow-y: auto;
}

.file-upload-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.file-upload-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    min-width: 0; /* Para evitar flex overflow */
    box-sizing: border-box;
}

.file-upload-group:hover {
    border-color: var(--primary);
    background-color: #f0f8ff;
}

.file-upload-group h5 {
    margin: 0 0 0.8rem 0;
    color: var(--negro);
    font-size: 1.4rem;
    font-weight: bold;
    text-align: center;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.4rem;
}

.file-input-row {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.file-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0; /* Para evitar flex overflow */
}

.file-input-group label {
    font-weight: bold;
    color: var(--negro);
    font-size: 1.2rem;
}

.file-input-group input[type="file"] {
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.file-input-group input[type="file"]:hover {
    border-color: var(--primary);
}

.file-upload-group button {
    align-self: center;
    padding: 0.8rem 1.5rem;
    background-color: var(--negro);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.8rem;
}

.file-upload-group button:hover {
    background-color: #0056b3;
    box-shadow: 0 0.3rem 0.8rem rgba(0, 0, 0, 0.1);
}

#status {
    margin-top: 0.8rem;
    padding: 0.8rem;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

#status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Media queries para responsividad móvil - Optimizadas para modal */
@media (max-width: 1024px) {
    .file-upload-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .file-upload-group {
        padding: 0.8rem;
    }
    
    .file-input-row {
        flex-direction: column;
        gap: 0.6rem;
    }
}

@media (max-width: 768px) {
    .form--section.file-upload-section {
        padding: 0.8rem;
        gap: 0.8rem;
        max-height: 35vh;
    }
    
    .file-upload-container {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .file-upload-group {
        padding: 0.8rem;
    }
    
    .file-upload-group h5 {
        font-size: 1.2rem;
    }
    
    .file-input-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .file-input-group label {
        font-size: 1.1rem;
    }
    
    .file-input-group input[type="file"] {
        font-size: 1rem;
        padding: 0.5rem;
    }
    
    .file-upload-group button {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .form--section.file-upload-section {
        padding: 0.6rem;
        gap: 0.6rem;
        max-height: 30vh;
    }
    
    .file-upload-group {
        padding: 0.6rem;
    }
    
    .file-upload-group h5 {
        font-size: 1.1rem;
    }
    
    .file-input-group label {
        font-size: 1rem;
    }
    
    .file-input-group input[type="file"] {
        font-size: 0.9rem;
        padding: 0.4rem;
    }
    
    .file-upload-group button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}


/* Disposición en cascada para móviles pequeños */
@media (max-width: 550px) {
    .headerTimbrado {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }

    .headerTimbrado .form--input {
        display: block;
        width: 100% !important;
        margin-right: 0;
    }

    .headerTimbrado .form--input input,
    .headerTimbrado .form--input select {
        width: 100%;
    }
}



