/* 
    SofTruck

    INTEGRANTES:
    Gómez Trujillo Emmanuel
    González Hernández Cristian

*/

@font-face {
    font-family: Titles;
    src: url(../fonts/Poppins-Regular.ttf);
    font-weight: bold;
}

@font-face{
    font-family: Texts;
    src: url(../fonts/Poppins-Regular.ttf);
}

@font-face{
    font-family: Buttons;
    src: url(../fonts/Poppins-Regular.ttf);
}

/* COLORES */
:root{
    --primary: #394867;
    --secondary: #B4BEC9;
    --terciary: #9ba4b5;
    --complement: #212a3e;
    --base: #FFFFFF;
    --fsize: 20px; /* Tamaño de texto base */
}

/* ESTRUCTURA GENERAL */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 15vh repeat(2, auto) 10vh;
    grid-template-areas: "header header header"
        "main main main";
    gap: 10px;
    transition: background-color 1s;
    position: relative;
    padding-bottom: 200px;
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
}
main{
    grid-area: main;
    padding-left: 5vw;
    padding-right: 5vw;
}
.divisor{
    display: flex;
    justify-content: space-between;
}
#asignarEmpleado,#asignarVehiculo{
    height: 25px;
    width: 35px;
    line-height: 11%;
    font-size: 30px;
    padding: 10px;
    padding-left: 0px;
    border-radius: 10px;
}

/* HEADER */
header{
    width: 100vw;
    height: 80px;
    padding: 2.5vh;
    position: absolute;
    top: 0;
    text-align: right;
    background-color: var(--complement);
    transition: background-color 1s;
    color: var(--base);
    grid-area: header;
    z-index: 1;
}
header h1{
    margin-bottom: 15px;
}
header nav ul li{
    display: inline-block;
    font-family: Texts;
    margin-top: 20px;
}
header nav ul div{
    display: inline-block;
    margin-top: 20px;
    margin-left: 10px;
}
header nav ul li a{
    padding: 1vh;
    text-decoration: none;
    color: var(--base);
    font-size: 1.30em;
    border-bottom: 3px solid transparent;
    transition: 0.6s border-bottom;
}
header nav ul li a:hover{
    cursor: pointer;
    border-bottom: 3px solid var(--primary);
    color: var(--secondary);
}
.actual{
    font-weight: bold;
}
header .logo{
    border-radius: 25px;
    display: block;
    float: left;
    height: 50px;
    width: 50px;
    max-width: 100%;
    position: absolute;
    top: 18px;
    left: 30px;
}
.logo_nombre{
    width: 150px;
    max-width: 100%;
    position: absolute;
    height: 80%;
    top: 10px;
    left: 90px;
    transition: 0.30s;
}

/* FOOTER */
footer{
    width: 100vw;
    padding: 0px;
    text-align: center;
    background-color: var(--secondary);
    transition: background-color 1s;
    color: var(--base);
    box-sizing: border-box;
    display: inline-block;
    position: absolute;
    bottom: 0;
}
footer p{
    font-size: var(--fsize);
    font-style: Texts;
    padding-top: 0.5%;
}
.iconos_footer img{
    display: inline-block;
    width: 5%;
    padding-left: 10px;
    padding-right: 10px;
}
.resaltarIconoFooter {
    transition: 0.5s;
}
.resaltarIconoFooter:hover {
    transform: scale(1.2);
}

.img_footer img{
    width: 180px;
}  

/* TITULOS */
.tituloPrincipal{
    text-align: center;
    font-size: 4em;
}
.titulos{
    padding-bottom: 20px;
    padding-top: 20px;
    text-align: left;
    border-bottom: 5px solid var(--secondary);
}


/* ENCABEZADOS */
h1{
    font-size: 2.5em;
}
h2{
    font-size: 2em;
}
h3{
    font-size: 1.75em;
}
h4{
    font-size: 1.5em;
}
h5{
    font-size: 1.25em;
}
h6{
    font-size: 1em;
}
h1 h2 h3 h4 h5 h6{
    font-family: Titles;
}

.subtitulo{
    font-family: Titles;
    font-size: 32px;
}
.subtitulo2{
    font-size: 34px;
    border-bottom: 2px solid var(--primary);
    overflow: hidden;
}
.contenedor{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
}
/* TIPOGRAFÍAS CON IDs*/
#titles{
    font-family: Titles;
}
#texts{
    font-family: Texts;
}
#buttons{
    font-family: Buttons;
}

/* ARTICULOS */
article{
    padding-top: 20px;
}

/* TIPOGRAFÍAS SIN IDs*/
p{
    font-family: Texts;
    font-size: var(--fsize);
}
label{
    font-family: Texts;
    font-size: var(--fsize);
}
ul li{
    font-family: Texts;
}

.botones-accion {
    display: flex; /* Permite la alineación horizontal de elementos */
    gap: 20px;     /* Espacio entre los botones */
    justify-content: center; /* Centra los botones horizontalmente */
    align-items: center; /* Alineación vertical al centro */
}

.btnagregar {
    background-color: var(--primary);
    /* Color de fondo */
    width: 110px;
    border: 2px solid var(--terciary);
    border-radius: 10px;
    color: white;
    /* Color del texto */
    padding: 6px 6px;
    /* Espacio interno */
    text-align: center;
    /* Centra el texto */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centra verticalmente el contenido */
    font-size: 14px;
    /* Tamaño de letra */
    margin: 20px auto;
    /* Margen externo (automático en los laterales para centrar horizontalmente) */
    margin-bottom: 10px;
    cursor: pointer;
    /* Cambia el cursor */
    box-shadow: -5px 3px 4px var(--complement);
    /* Sombra */
}

.btnagregar:active {
    background-color: #3e8e41;
    box-shadow: 0 5px #666;
    transform: translateY(4px);
}

.btnagregar:hover {
    background-color: var(--base);
    /* Color de fondo al pasar el mouse */
    color: #002333;
}

/* SCROLL*/
/* Establecer el ancho y alto del scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
/* Establecer el color de fondo del scrollbar */
::-webkit-scrollbar-track {
    background-color: transparent;
}

/* Establecer el color del thumb del scrollbar */
::-webkit-scrollbar-thumb {
    background-color: var(--secondary);
    border-radius: 20px;
}
/* Establecer el color del thumb del scrollbar cuando se está desplazando */
::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary);
}

/* MENU */
.menu--cerrado{
    height: 0px;
    overflow: hidden;
    transition: height 1s;
}

.menu_btn--contenedor{
    display: none;
}

/* MODO OSCURO */
body.dark-mode{
    background-color: var(--complement); /* color de fondo en modo oscuro */
    transition: background-color 1s;
    color: var(--base); /* color de texto en modo oscuro */
}
aside.dark-mode{
    background-color: var(--primary);
    transition: background-color 1s;
}
header.dark-mode{
    background-color: var(--primary);
    transition: background-color 1s;
}

.logo.dark-mode{
    background-color: var(--complement);
    transition: background-color 1s;
}

.dark-mode .resaltarIcono{
    transition: 0.5s;
}

.dark-mode nav ul li a:hover{
    border-bottom: 3px solid var(--complement);
}

/* MEDIA QUERIES */
/* Desktop -> No necessary*/

/* Tablet */
@media screen and (min-width: 720px) and (max-width: 1365px){
    .logo_nombre{
        display: none;
    }
    .iconos_footer img{
        display: inline-block;
        width: 7%;
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Smartphone */
@media screen and (max-width: 719px){
    header{
        height: auto;
    }
    header nav ul li{
        display: inline-block;
        font-family: Texts;
        margin-top: 1vh;
    }
    header nav ul div{
        display: inline-block;
        margin-top: 1.5vh;
        margin-bottom: 1vh;
    }
    .logo_nombre{
        display: none;
    }
    footer p{
        font-size: small;
    }
    .iconos_footer img{
        display: inline-block;
        width: 10%;
        padding-left: 10px;
        padding-right: 10px;
    }
    .menu_btn--contenedor{
        display: block;
        display: flex;
        justify-content: center;
    }
    .menu{
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        overflow: hidden;
        transition: height 1s;
    }
    #menu_btn
    {
        padding: 0vw;
        font-size: 17px;
        width: 25%;
        height: 4vh;
    }
    #menu_btn2
    {
        padding: 0vw;
        font-size: 17px;
        width: 25%;
        height: 6vh;
    }
}
