@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");

* {
    margin: 0;
    padding: 0;
    outline: none;
    box-sizing: border-box;
}

html {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color:var(--fondo-oscuro);   
    font-family: var(--body-font);   
    line-height: var(--body-line-height);
    height: var(--body-height);

    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-size: var(--font-size-1);

    padding: 0px 100px;
}
input[type="text"],
input[type="number"],
input[type="search"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
input[type="time"],
select,textarea{
    font-family: var(--body-font);
    appearance: none; /* Quita estilos predeterminados */
    -webkit-appearance: none; /* Safari */
    -moz-appearance: none; /* Firefox */
    color: black;
    background-color: white;
    font-size: 15px;
}

@media (max-width: 1500px) {
    body {
        padding: 0px 30px;
    }
}

@media (max-width: 1000px) {
    body {
        padding: 0px 10px;
    }
}
@media (max-width: 700px) {
    body {
        padding: 0px 0px;
    }
}
a {
    color: var(--a-color);
}

img {
    max-width: 100%;
}

input:-webkit-autofill {
    background-color: #ffffff !important; /* Cambia el color de fondo */
    color: #000000 !important; /* Cambia el color del texto */
    transition: background-color 5000s ease-in-out 0s; /* Evita que el cambio sea instantáneo */
}

ul {    
    list-style-type: none;
    margin-block-start: 0em;
    margin-block-end: 0em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding-inline-start: 0px;    
}

/***********************************************/


.layout-flex {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.header {
    background-color: var(--fondo-color-2);
    color: var(--texto-color-1);
    padding: var(--header-padding);
    /*border-bottom: var(--borde-1);*/
    margin-bottom: var(--header-margin-bottom);    
    box-shadow: var(--box-shadow-1);
    border-bottom-left-radius: var(--borde-radio-1);
    border-bottom-right-radius: var(--borde-radio-1);

    flex-shrink: 0;
    text-align: center;
}


.footer {
    font-size: 11px;
    background-color: var(--fondo-color-2);
    color: var(--texto-color-1);
    padding: var(--footer-padding);
    /*border-top: var(--borde-1);*/
    margin-top: var(--footer-margin-top);    
    box-shadow: var(--box-shadow-1);
    border-top-left-radius: var(--borde-radio-1);
    border-top-right-radius: var(--borde-radio-1);

    text-align: center;
    flex-shrink: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;

    position: relative;
    align-items: center; /* Alinea los elementos verticalmente */
}
.info-usuario-user {
    text-align: left;
    font-size: 9px;
}
.info-usuario{
    
}
.logo-footer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);            
    margin-top: -19px;
}
.img-pie img {
    width: 170px;    
}

@media (max-width: 700px) {
    .img-pie img {
        width: 140px;
    }
    
}


.copyright{
    width: 96%;
    text-align: center;
    font-size: 8px;
    color: var(--texto-color-2);
    margin-top: -18px;
    margin-left: 24px;

}


/* LOGO */

.logo {
    color: var(--texto-color-1);

    display: flex;    
    align-items: center;
    gap: 0px;
}

.logo-header {
    width: 240px;
    height: auto;
    margin-bottom: 3px;
}

@media (max-width: 700px) {
    .logo-header {
        width: 180px;
        height: auto;
        margin-bottom: 0px;
    }
    .menu-head-elementos{
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    .header-profile{
        margin: 0 !important;
    }
}



/* BOTÓN HAMBURGUESA */

.hamburguesa {
    display: none;
    /*display: flex;*/
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    min-width: 25px;
    height: 21px;
    cursor: pointer;
    margin-right: 5px;
}

@media (max-width: 1000px) {
    .hamburguesa {
        display: flex;
    }
}

.hamburguesa div {
    background-color: var(--texto-color-2);
    border: 1px solid var(--texto-color-2);
    border-radius: var(--borde-radio-1);

    height: 3px;
    transition: all 0.3s ease-in-out;
}

/* Efecto cuando se activa el menú */
.hamburguesa.activa div:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburguesa.activa div:nth-child(2) {
    opacity: 0;
}

.hamburguesa.activa div:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.activo {
    display: block !important;
}

.head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filtro {
    display: none;
}




.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.main {
    display: flex;
    gap: var(--main-gap);
    padding: var(--main-padding);
    flex: 1;
    overflow: auto;
    min-height: 0;
}

.center-column-1-col {
    background-color: var(--fondo-color-2);
    border: var(--borde-1);
    box-shadow: var(--box-shadow-1);
    padding: var(--col1-padding);
    border-radius: var(--borde-radio-1);

    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    width: 100%;

    justify-content: center;
    align-items: center;
}

@media (max-width: 700px) {

    .main {
        display: block;
        flex-direction: column;
        padding: var(--main-padding-movil);
    }

    .header{
        padding: var(--header-padding-movil);
        margin-bottom: var(--header-margin-bottom-movil);
    }
    .footer{
        padding: var(--footer-padding-movil);
        margin-top: var(--footer-margin-top-movil);
    }
    .center-column-1-col {        
        height: var(--col1-height-movil);
    }

}



/********************************** */
/* MENU */


.menu-head{
    display: flex;
    align-items: center;
}

.menu-head a{
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
    margin: 0px 10px;

}
@media (max-width: 500px) {
    .menu-head a{
        text-decoration: none;
        font-size: 12px;
        font-weight: 800;
        margin: 0px 5px;

    }
}

.header-profile {
    margin: 5px;
    display: flex;
    align-items: center;
    /*padding: 0 16px 0 40px;*/
    /*margin-left:auto;*/
    flex-shrink: 0;
}
.header-profile svg{
    margin-top: 5px;
}
.tamaño-icono {
    width: 34px;
    height: 34px;
}

.tamaño-icono svg {
    width: 23px;
    height: 30px;
}

@media screen and (max-width: 500px) {
    .tamaño-icono {
        width: 25px;
        height: 25px;
    }

    .tamaño-icono svg {
        width: 20px;
        height: 20px;
        margin-bottom: 6px
    }
}

/* BOTON PERFIL */
.ico-perfil {
    background-color: var(--color-fondo-icono-perfil);
    border-radius: 50%;

    display: inline-block;
    font-size: 34px;
    font-weight: bold;
    text-align: center;
    line-height: 34px;        
    cursor: pointer;
    user-select: none;
    margin-left: 5px;
}
.ico-perfil:hover {
    background-color: var(--color-fondo-icono-perfil-hoover);    
}
.ico-perfil svg path {
    fill: var(--color-icono-perfil);
}

.ico-perfil a{
    margin: 0;
}

/* FILTRO */



.ico-filter {
    display: inline-block;

    background-color: var(--color-fondo-icono-perfil);
    color: rgb(0, 0, 0);
    font-size: 34px;
    font-weight: bold;
    text-align: center;
    line-height: 34px;
    border-radius: 50%;
    /* Hace el fondo circular */
    /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
    cursor: pointer;
    user-select: none;
    margin-left: 5px;

    border: var(--borde-oscuro);

}
.ico-filter:hover {
    background-color: var(--color-fondo-icono-perfil-hoover);    
}

.ico-filter svg path {
    fill: var(--color-icono-perfil);
}

/* BOTON AÑADIR EMPRESA */

.icon-plus {

    background-color: var(--color-fondo-icono-1);    
    border-radius: 50%;

    display: inline-block;    
    font-size: 34px;
    font-weight: bold;
    text-align: center;
    line-height: 34px;    
    /* Hace el fondo circular */
    /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
    cursor: pointer;
    user-select: none;
    margin-left: 5px;
}

.icon-plus:hover {
    background-color: var(--color-fondo-icono-1-hoover);    
}

.icon-plus svg path {
    fill: white;
}



/**************/

.tooltip-text {
    display: none;
    font-size: 10px;
    text-align: right;    
    line-height: 20px;
    top: 15px;
    right: 0;
    z-index: var(--tooltip-text-zindex);
    opacity: 0;
    transition: opacity 0.3s;
    position: relative;
}

.tooltip-container:hover .tooltip-text {
    display: flex;
    justify-content: center;
    opacity: 1;
}

/*******************************************/

/* ICONO ACCIONES */

.icono-acciones svg {
    fill: var(--color-fill-iconos-dch);

    width: 30px;
    height: 30px;    
}
.icono-acciones svg .st0{
    fill: var(--color-fill-iconos-dch);
}

.icono-acciones svg .a{
    stroke: var(--color-fill-iconos-dch);
}
.icono-acciones-rotar svg {
    transform: rotate(-90deg);
}

.enviar-mail{
    /*position: absolute;
    margin-top: 99px;
    */
    font-weight: 800;
    border: var(--borde-oscuro);
    border-radius: var(--borde-radio-1);
    padding: 5px;

    background-color: var(--fondo-boton-1);
}

.enviar-mail:hover{
    background-color: var(--fondo-boton-1-hover);
}

/****************************************** */

/* BOTON LIGHT-DARK */

.dark-light{
    background-color: var(--fondo-icono-switch-mode);
    border: var(--borde-icono-switch-mode);
    border-radius: 50%;
    padding: 10px;
    box-shadow: var(--box-shadow-1);
    cursor: pointer;   
}
.dark-light svg{
    
    width: 25px;
    height: 25px;     
}
.dark-light .st0,.dark-light .b{
    stroke: var(--linea-icono-switch-mode) !important;
}

.ico-moon{
    display: var(--mostrar-logo-dark);
}

.ico-moon .b {
    fill:white;
}
.ico-sun .st0 {
    fill:rgb(179, 207, 19);
}

.ico-sun{
    display: var(--mostrar-logo-light);
}

.logo-dark{
    display: var(--mostrar-logo-dark);
}
.logo-light{
    display: var(--mostrar-logo-light);
}

@media (max-width: 700px) {
    .dark-light{        
        padding: 5px;        
    }
    .dark-light svg{        
        width: 20px;
        height: 20px;        
    }
}


/****************************** */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--color-modal);
    color:var(--texto-color-1);
    border-radius: var(--borde-radio-1);

    padding: 20px;    
    width: var(--modal-width);
    max-height: 80vh;
    overflow: auto;
    text-align: left;
    position: relative;
}
@media (max-width: 700px) {
    .modal-content {
        width: var(--modal-width-movil);
    }    
}

.modal-form{
    margin-top: 20px;
}

.modal-form-content{
    overflow: auto;
    max-height: 50vh;
    margin-bottom: 20px;
}

.modal-botones{
    width: 100%;
    text-align: center;
}

.close {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 32px;
    cursor: pointer;
}

.table-modal {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;      
}



.table-modal tbody{
    margin: 2px 0px;
}
.table-modal tr{
    margin: 5px 0;
    display: flex;
    align-items: stretch;
}

.table-modal td {
    /*padding: 1px 22px;*/
    vertical-align: middle;
}
.table-modal td:nth-child(1){
    width: 25%;
    padding: 4px 10px 8px 20px;
}
.table-modal td:nth-child(2){
    width: 75%;
    padding: 0px 20px 0px 0px;
}

.table-modal label {
    font-weight: 600;
    display: block;
}

.table-modal input[type="checkbox"] {    
    display: inline-block;
    width: auto;
    margin-left: 0;
    margin-right: auto;    
}

.table-modal input {
    background-color: white;
    width: 100%;
    padding: 4px 2px;
    border: var(--borde-oscuro);
    border-radius: 4px;
}
.table-modal select {
    background-color: white;
    width: 100%;
    padding: 2px 2px;
    border: var(--borde-oscuro);
    border-radius: 4px;
}

.table-modal textarea {
    background-color: white;
    width: 100%;
    padding: 2px 2px;
    border: var(--borde-oscuro);
    border-radius: 4px;
    height: 150px;
}
.modal-texto-obligatorio{
    position: absolute;
    bottom: 20px;
    left: 24px;
    font-size: 14px;
}

@media (max-width: 700px) {
    .modal-texto-obligatorio{
        position: absolute;
        bottom: 20px;
        left: 20px;
        font-size: 12px;
    }  
    .table-modal {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;      
    }
    .table-modal td:nth-child(1){
        width: 35%;
        padding: 0px 0px 0px 0px;
    }
    .table-modal td:nth-child(2){
        width: 65%;
        padding: 0px 0px 0px 0px;
    }
}

/******************************************/
.ocultar-div{
    display: none !important;
}

.div-oculto {
    display: none !important;
}

.div-oculto-important {
    display: none !important;
}

/* Deshabilitar el scroll */
.no-scroll {
    overflow: hidden;
}

::-webkit-scrollbar {
    width: 8px;
    border-radius: 0px;
}

::-webkit-scrollbar-thumb {    
    background: hsl(320, 39%, 78%);    
    border-radius: 0px;
}

/********************************************/

/* BOTONES */

.boton-1{
    background-color: var(--fondo-boton-1) !important;
    text-decoration: none !important; 
    font-weight: 600 !important;   
    color: var(--texto-color-1) !important;
    cursor: pointer;
}
.boton-1:hover{
    background-color: var(--fondo-boton-1-hover) !important;
    font-weight: 700 !important;   
    color: var(--texto-color-1-osc) !important;
}

.menu-destacado {
    background-color: var(--fondo-boton-1-dest) !important;
    font-weight: 800 !important;   
    color: var(--texto-color-1-osc) !important;
}

.boton-modal{    
    background-color: var(--fondo-boton-1) !important;
    text-decoration: none !important; 
    font-weight: 600 !important;   
    color: var(--texto-color-1) !important;

    margin: 5px 2px;
    border: var(--borde-oscuro);
    padding: 0px 10px;
    border-radius: var(--borde-radio-2);
    padding: 4px 10px;
    cursor: pointer;
    font-size: 15px;
}
.boton-modal:hover{
    background-color: var(--fondo-boton-1-hover) !important;
    font-weight: 700 !important;   
}


.texto-accion-null{
    margin-left: 10px;
    margin-top: 10px;
}


.paginacion-item{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.paginacion-total{
    display: flex;
    overflow-y: auto;
    margin: 5px;
    /*flex-wrap: wrap;*/
    /*justify-content: center;*/
}
@media (max-width: 700px) {
    .paginacion-total{
        margin: 0px;
    }
}

#id-paginacion-total::-webkit-scrollbar{
    width: 2px !important;
    height: 5px !important;
}