/*reset css*/
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body {
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    font-family: Lato, Arial, sans-serif;
    font-size: 62.5%;
    background: #eff3f5 !important;
    z-index: 0;
    min-width: 980px;
    min-height: 625px;
} */


.legend {
	color:#15428b;
	font-weight:bold;
	font-size: 14px;
	/*font-family: tahoma,arial,verdana,sans-serif;*/
}

.texto-1 {

	font-size: 14px !important;
	/*font-family: tahoma,arial,verdana,sans-serif;*/
}



.formatBody {
    display: grid;
    min-height: 100dvh;
    grid-template-rows: auto 1fr auto;
}

input,
button,
textarea,
select {
    font: inherit;
}

p {
    text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
}

img,
video,
svg {
    height: auto;
    max-width: 100%;
}

/* Estilos generales para estructurar header, main y footer */
html,
body {
    margin: 0;
    padding: 0;
    background: #eff3f5 !important;
    display: flex;
    flex-direction: column;
    min-height: 100%;


}

main {
    flex: 1;
    /* Hace que el main se expanda para ocupar el espacio restante */
    padding: 0 20px 0 20px;
}

/* Footer */
footer {
    background-color: #083b5b;
    color: #fff;
    text-align: center;
    padding: 10px;
}

.requestCategoryTitle {
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    margin-right: 30px;
    color: #888;
    font-size: 140%;
}

.requestCategoryTitles {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 0 10px;
}

.titleContainer {
    margin: 0 0 10px 0;
    border-radius: 4px;
    background: #fff;
    -webkit-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.requestTitle {
    padding: 10px;
}

.seccion-title {

    position: relative;
    font-size: 120%;
    font-weight: bold;
    color: #808080;
    border-radius: 4px 4px 0 0;
    line-height: 45px;
    height: 45px;
    margin: 1px 1px 0 1px;
    border-bottom: 1px solid #e5e5e5;

    padding: 0 0 0 20px !important;
    background: #f5f5f5;

}

.request_creation_form {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: space-evenly
}

/* Diseño de dos columnas en pantallas grandes */
.form-group {
    display: flex;
    flex-direction: column;
    flex: 1 1 22%;
    /* Dos columnas en pantallas grandes */
    min-width: 150px;
}



.form-section1 {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    
    background-color: #f9f9f9;
    display: flex;
    flex: 25%;
    flex-direction: column;
}

.form-section2 {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    
    background-color: #f9f9f9;
    display: flex;
    flex: 25%;
    flex-direction: column;
}

.form-section3 {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    
    background-color: #f9f9f9;
    display: flex;
    flex: 50%;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group button {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.recaptcha {
    padding: 15px;
    border: 1px solid #EBEDF3;
    border-radius: 0.42rem;
}

.recaptcha .recaptcha-img {
    margin-bottom: 10px;
}

.recaptcha .recaptcha_only_if_incorrect_sol {
    color: #F64E60;
}

.recaptcha .input-group .btn i {
    padding-right: 0;
}

.recaptcha .input-group .form-control {
    border-top-left-radius: 0.42rem !important;
    border-bottom-left-radius: 0.42rem !important;
}

/* Estilos para el modal de espera */
.modal-espera {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.modal-content__ {
    background: #333;
    padding: 20px;
    border-radius: 5px;
    font-size: 1.2em;
}

/* Estilos de campos completos e incompletos */
.input-invalido {
    border: 2px solid #ff0000;
    background-color: #ffe5e5;
}

.input-valido {
    border: 2px solid #28a745;
    background-color: #e5ffeb;
}

.error-message {
    color: red;
    display: none;
}

#rutError {
    font-size: 0.9em;
    margin-top: 5px;
}

#rutError.valid {
    color: green;
}

#rutError.invalid {
    color: red;
}


@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
        transition: none;
    }
}

#tabla-productos {
    min-width: 100%;
}

#page-content {
    padding: 8px 20px;
}

#layout-footer-contenido {
    max-height: 50px;
}





/* Style for input search field */
#buscar {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.custom-label {
    display: flex;
    flex-direction: column;
    /* Asegura que los elementos hijos se apilen verticalmente */
    align-items: flex-start;
    /* Alinea los elementos al inicio */
    margin-bottom: 10px;
    /* Espaciado entre el label y otros elementos */
}

.custom-label input[type="checkbox"] {
    margin-top: 5px;
    /* Espaciado entre el texto y el checkbox */
}

.modal___ {
    display: none;

    position: fixed;
    /* Posiciona el modal de forma fija en la pantalla */
    z-index: 1000;
    /* Asegura que el modal esté sobre otros elementos */
    left: 0;
    top: 0;
    width: 100%;
    /* Ancho completo */
    height: 100%;
    /* Alto completo */
    background-color: rgba(0, 0, 0, 0.8);
    /* Fondo semi-transparente */
}

.modal-content_2 {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    margin-top: 80px;
} 

.modal-body_2 {
    max-height: 400px;

    overflow-y: auto;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.form-group input:focus,
.form-group button:focus,
.form-group select:focus {
    outline: none !important;
    border-color: #007bff !important;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5) !important;
}

.form-group button:hover {
    background-color: #0056b3;
    color: white;
    transition: background-color 0.3s ease;
}

.form-button {
    display: flex;
}


/* Responsive Design */

/* Medium screens (tablets and small desktops) */
@media (min-width: 769px) {

    .form-group {
        flex: 1 1 16%;
        /* Two columns for screens larger than 769px */
    }

    .form-section1 {        
        flex: 18%;        
    }

    
}

@media (max-width: 768px) {
    .form-container {
        width: 100%;
        /* Hace que el formulario ocupe el 100% del ancho de la pantalla */
        padding: 10px;
        /* Espaciado interno opcional */
        box-sizing: border-box;
        /* Asegura que el padding no aumente el ancho total */
    }

    .form-field {
        width: 100%;
        /* Cada campo del formulario ocupará el 100% del ancho disponible */
        margin-bottom: 15px;
        /* Espacio entre los campos */
    }

    .form-button {
        width: 100%;
        /* El botón también ocupará el 100% del ancho disponible */
    }

    .form-group {
        flex: 1 1 100%;
    }

    .form-section1 {
        flex: 100%;
        margin-bottom: 0px;
    }

    .form-section2 {
        flex: 100%;
        margin-bottom: 0px;
    }

    .form-section3 {
        flex: 100%;
        margin-bottom: 0px;
    }
}

/* Mobile screens (max-width: 576px) */
@media (max-width: 576px) {
    .form-group {
        flex: 1 1 100%;
    }

    .form-section1, .form-section2, .form-section3 {
        flex: 100%;
        margin-bottom: 0;
    }



    .form-group input,
    .form-group button {
        font-size: 0.85rem;
        padding: 0.4rem;
    }

    .request_create_container {
        padding: 0.5rem;       
    }

    .request_creation_form {        
        gap: 1rem;
        
    }

    .seccion-title {
        font-size: 1.2rem;
    }

    main {
        padding: 0px;
    }

    .layout-navbar__logo--default img {
        width: 160px;
        height: 45px;
    }
}

/* Screens between 576px and 767px */
@media (min-width: 576px) and (max-width: 767px) {
    .form-group {
        flex: 1 1 100%;
    }

    .form-section1 {
        flex: 100%;
        margin-bottom: 0px;
    }

    .form-section2 {
        flex: 100%;
        margin-bottom: 0px;
    }

    .form-section3 {
        flex: 100%;
        margin-bottom: 0px;
    }

    .form-group input,
    .form-group button {
        font-size: 0.9rem;
        padding: 0.45rem;
    }

    .request_create_container {
        padding: 1rem;
    }
}






