:root{
    --lila: #e4e4ff;
    --Azul: #004a97;
    --negro: #000000;
    --Celeste: #2cc3ff;
    --blanco: #ffffff;
    --gris: #b9b9b9;
    --gris-claro: #ebebeb;
}

/* #ebebeb; */
html {
    Font-family: Arial;
}


.img_banner{
    margin: 0 auto;
    display: flex;
    width: 100%;
    height:120px;
    margin-bottom: 1rem;
}

.formulario {
    width: min(65rem, 100%); /* utiliza el tamaño mas pequeño */
    margin: auto; /* centra el formulario */
    padding: 0px 25px; /*distancia superior e inferior del formulario */
    border: 1px solid var(--gris); /* color del borde de arriba */
    margin-bottom: 1rem;
}

.logo {
    margin-top: 2rem; /* margen de arriba */
}

.titulo {
    font-size: 1.8rem; /* tamaño de la letra */
    margin-top: 15px; /* margen de arriba */
    text-align: center; /* centramos el texto */
    font-weight:530;
}

.ingresa_rut{
    margin-bottom: 0.5rem;
    text-align: center;
}

.input_iniciar{
    text-align: center;
    border: none;
    border-bottom: 1px solid var(--gris);
    width: 200px;
    margin-bottom: 1rem;
    padding: 3px;
}

.subtitulo {
    text-align: center; /* centramos el texto */
    font-size: 1.3rem; /* tamaño del texto */
    font-weight: 100;
    border-top: 1px solid var(--gris); /* color del borde de arriba */
    border-bottom: 1px solid var(--gris); /* color del borde de abajo */
    padding: 7px 0px;
    margin: 2.5rem 0rem;
}

.select {
    font-size: 0.9rem; /* tamaño del texto */
    border: none; /* sin bordes */
    border-bottom: 1px solid var(--gris); /* tamaño y color del borde de abajo */
    padding: 5px 0px;
}

.select-superpartida, .select-tipodecuenta {
    font-size: 0.9rem; /* tamaño del texto */
    border: none; /* sin bordes */
    border-bottom: 1px solid var(--gris); /* tamaño y color del borde de abajo */
    padding: 5px 0px;
    width: 350px;
}

.campos {
    font-size: 1rem;
    padding: 5px 25px 0px 20px;
}

.campos-derecha {
    font-size: 1rem;
    padding: 5px 25px 0px 50px;
}

.input {
    color: var(--negro); /* color del texto del input */
    font-size: 0.9rem;
    border: none;
    width: 230px;
    border-bottom: 1px solid var(--gris);
    text-align: center;
    padding: 5px 0px;
    background-color: var(--blanco);
}

.input-factura {
    font-size: 0.9rem; /* tamaño del texto */
    border: none; /* sin bordes */
    width: 204px; /* tamaño del input */
    border-bottom: 1px solid var(--gris); /* color y tamaño del borde de abajo */
    text-align: center; /* centramos el texto */ /* margen de arriba */
    margin: 2rem 8rem 0rem 1.7rem; /* a la derecha */
    padding: 5px 0px;
}


.input-detalles {
    font-size: 0.9rem; 
    border: none; /* sin borde */
    width: 800px; /* tamaño del input */
    border-bottom: 1px solid var(--gris); /* color y tamaño del borde de abajo */
    text-align: center; /* centramos el texto */ 
    margin: 2rem 0rem 0rem 6rem; /* margen de arriba */
    padding: 5px 0px;
}

.inputobservacion {
    font-size: 0.9rem; 
    border: none;
    width: 204px;
    border-bottom: 1px solid var(--gris);
    text-align: center;
    padding: 5px 10px;
}

.input-firma{
    text-align: center;
    border: none;
    border-bottom: 1px solid var(--gris);
    margin-top: 3rem;
    width: 250px;
}


.div-firma {
    text-align: center;
    display: block;
}
.p-firma {
    margin: 1rem 0rem 3rem 0rem;
}

button {
    background-color: var(--Azul);
    color: var(--blanco);
    border: none;
    cursor: pointer; /* manito */
    text-decoration: none;
}

button:hover {
    background-color: var(--Celeste); /* color cuando estemos en el botón */
    color: var(--blanco);
}

.boton-proveedor {
    padding: 2px 12px;
    border-radius: 1rem;
    margin-left: 0.2rem;
}

.div-boton-guardar {
    text-align: center;
}

.boton-guardar {
    padding: 3px 12px;
    text-decoration: none;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

footer {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* el padding es el espacio entre el contenido y el borde del elemento (dentro del propio elemento), mientras que el margin es el espacio alrededor del borde de un elemento */
 /* ------------------------------------------------------------------------ADJUNTAR--------------------------------------------------------------------------------- */
.message {
    text-align: center;
    margin-bottom: 0.6rem;
    color: var(--gris);
    font-size: 0.9rem;
}

.message2 {
    text-align: center;
    margin-top: 0.2rem;
}

.subirpdf {
    margin-top: 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

.div-inputemail {
    text-align: center;
    margin-bottom: 1rem;
}

.input-email {
    font-size: 0.9rem;
    border: none;
    width: 348px;
    border-bottom: 1px solid var(--gris);
    text-align: center;
    padding: 5px 10px;
    margin-top: 1rem;
}

.boton-cargar {
    padding: 2px 10px;
    border-radius: 1rem;
    border: none;
}

.boton-adjuntar-volver{
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 1rem;
    border: none;
}
.boton-adjuntar-enviar{
    align-self: flex-end;
    padding: 3px 10px;
    border-radius: 1rem;
    border: none;
}

.div-adjuntar-button{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px; /* adjust gap as needed */
    border-radius: 1rem;
    margin-top: 2rem;
}

.boton-eliminar-carga {
    background-color: var(--gris-claro);
    color: var(--negro);
    text-align: center;
    border-radius: 1rem;
    border: none;
    cursor: pointer; /* manito */
    text-decoration: none;
    padding: 1px 8px;
    margin-left: 1rem;
}

.boton-eliminar-carga:hover {
    background-color: var(--Celeste); /* color cuando estemos en el botón */
    color: var(--blanco);
}

.listado-pdf {
    margin-top: 2rem;
}

.div-listado {
    margin: 1.5rem;
    text-align: center;
}
  
.file-select::before {
    background-color: var(--gris-claro);
    color: var(--negro);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 3px;
    content: 'Seleccionar documentos'; /* texto por defecto */
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.file-select input[type="file"] {
    opacity: 0;
    width: 200px;
    height: 32px;
    display: inline-block;
}

.subirpdf {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px 0px;
}

.file-select {
    position: relative;
    display: inline-block;
    margin-right: 10px;
}

 /* -------------------------------------------------------------------LOGIN-------------------------------------------------------------------------------- */

.titulo-Loggin{
    font-size: 2rem; /* tamaño de la letra */
    margin-top: 4rem; /* margen de arriba */
    text-align: center; /* centramos el texto */
    font-weight: 200;
}

.div-Loggin{
    text-align: center;
    margin-top: 2rem;
}

 .Boton-Loggin {
    background-color: var(--Azul);
    color: var(--blanco);
    padding: 5px 10px;
    text-decoration: none;
    text-align: center;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
 }

.Boton-Loggin:hover {
    background-color: var(--Celeste); /* color cuando estemos en el botón */
    color: var(--blanco);
}

.contenedor-botones {
    display: flex;
    justify-content: center; /* Centra los elementos horizontalmente */
}

.div-boton {
    margin: 0 15px;
}

.div-boton-cerrar {
    text-align: center;
}

.link {
    cursor: pointer;
    text-decoration: none;
    color: var(--negro);
}
.link:hover { /* color cuando estemos en el botón */
    color: var(--gris);
}

.div-boton-logout {
    text-align: right;
    margin: 1.5rem 2rem 0rem 0rem;
}

 /* -------------------------------------------------------------------VENTANA EMERGENTE-------------------------------------------------------------------------------- */

  .modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0); /* Corrected centering */
    transition: 200ms ease-in-out;
    border: 1px solid black;
    border-radius: 10px;
    z-index: 10;
    background-color: white;
    max-width: 80%;
    }

    .modal.active {
        transform: translate(-50%, -50%) scale(1); /* Corrected centering */
    }


  .modal-header {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid black ;
  }

  .modal-header .title {

    /* Texto del Titulo*/
    font-size: 1.25rem;
    font-weight: bold;
  }

  .modal-header .close-button {

    /* Dejar solo la X como boton */
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-size: 1.25rem;
    font-weight: bold;
  }

  .modal-body {
    padding: 10px 15px;
  }

  #overlay {
    position: fixed;
    opacity: 0;
    transition: 200ms ease-in-out;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .5);
    pointer-events: none;
  }

  #overlay.active {
    opacity: 1;
    pointer-events: all;

  }
