@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/*============================================OTHERS============================================*/

:root {
    --color-white: #ffffff;
    --color-muted: #aab6f5;
    --color-red: #fb5441;
    --color-green: #5fd898;
    --color-yellow: #eea22f;
    --color-placeholder: #5d6587;
    --color-button: #3b5bec;

    --border-radius: 5px;
    --background-2: linear-gradient(180deg, #020f2df2 0%, #010a20fa 100%);
    --drop-shadow: drop-shadow(0 0 10px #000000);
}

/*============================================RESET============================================*/

html {
    font-size: 75%;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Inter", sans-serif;
    line-height: 1.5;
    caret-color: var(--color-white);
    color: var(--color-muted);
    background: linear-gradient(90deg,#093375 0%,#072a69 35%,#041c4d 65%,#02102d 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
picture {
    display: block;
    max-width: 100%;
}

li {
    list-style: none;
}

button,
input {
    font: inherit;
    color: var(--color-white);
}

button:focus-visible,
input:focus-visible {
    outline: 1px solid var(--color-primary);
    outline-offset: 1px;
}

input::placeholder {
    color: var(--color-placeholder);
}

::selection {
    background: var(--color-primary);
    color: #fff;
}

::-webkit-scrollbar {
    display: none;
}

::selection {
    background: var(--color-placeholder);
}

/*============================================ASSETS============================================*/

/*---------COLORES DE FUENTES---------*/

.c-b {
    color: var(--color-white);
}

.c-v {
    color: var(--color-green);
}

.c-a {
    color: var(--color-yellow);
}

.c-r {
    color: var(--color-red);
}

/*---------ALINEACION DE FUENTES---------*/

.a-c {
    text-align: center;
}

/*---------GROSOR DE FUENTES---------*/

.w-b {
    font-weight: bold;
}

/*---------TAMAÑO DE ICONOS---------*/

.icon {
    width: 1.8rem;
}

/*============================================BACKGROUNDS============================================*/

.elemento {
    background: linear-gradient(180deg, rgb(12, 40, 95), rgb(7, 25, 68));
    border: 1px solid rgba(80, 150, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
    border-radius: var(--border-radius);
}

.control {
    background: linear-gradient(90deg, rgb(4, 24, 55), rgb(2, 15, 41));
    border: 1px solid #1f5cbf;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .03);
    border-radius: var(--border-radius);
    color: var(--color-white);
}

/*============================================EFFECTS============================================*/

.efecto--rojo {
    background: linear-gradient(180deg, #781616 0%, #5a0a0a 100%);
    border: 1px solid #ff5a5aa6;
    border-radius: var(--border-radius);
    box-shadow: 0 0 0 1px #ffffff0d inset, 0 4px 12px #00000059, 0 0 16px #508cff40;
}

.efecto--amarillo {
    background: linear-gradient(180deg, #784a16 0%, #5a310a 100%);
    border: 1px solid #ffaa5aa6;
    border-radius: var(--border-radius);
    box-shadow: 0 0 0 1px #ffffff0d inset, 0 4px 12px #00000059, 0 0 16px #508cff40;
}

.efecto--verde {
    background: linear-gradient(180deg, #167842 0%, #0a5a32 100%);
    border: 1px solid #5aff8ca6;
    border-radius: var(--border-radius);
    box-shadow: 0 0 0 1px #ffffff0d inset, 0 4px 12px #00000059, 0 0 16px #508cff40;
}

.efecto--azul {
    background: linear-gradient(180deg, #163778 0%, #0a235a 100%);
    border: 1px solid #5aa0ffa6;
    border-radius: var(--border-radius);
    box-shadow: 0 0 0 1px #ffffff0d inset, 0 4px 12px #00000059, 0 0 16px #508cff40;
}

.borde--azul {
    border: 1px solid #5aa0ffa6;
}

/*============================================HEADER============================================*/

.header {
    position: sticky;
    height: 8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background: var(--background-2);
    top: 0;
    left: 0;
    right: 0;
}

.header__logo {
    width: 6rem;
}

/*============================================NAV============================================*/

.nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav__link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.5rem;
    cursor: pointer;
}

.nav__link:hover {
    opacity: 0.8;
}

/*============================================LOGO============================================*/

.logo {
    width: 15rem;
    filter: var(--drop-shadow);
}

/*============================================LOGIN============================================*/

.login {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 1.5rem;
    max-width: 22rem;
    border-radius: var(--border-radius);
    margin: 0 auto;
}

/*============================================MESSAGE============================================*/

.mensaje {
    position: fixed;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000000da;
    height: 100vh;
    width: 100%;
    z-index: 10;
    transition: ease-in-out 0.2s;
}

.mensaje--inactivo {
    opacity: 0;
    pointer-events: none;
}

.mensaje__cuadro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 30rem;
    border-radius: var(--border-radius);
    background: var(--background-2);
    padding: 2rem;
    gap: 1.5rem;
    justify-items: center;
}

.mensaje__icono {
    justify-self: center;
    grid-column: 1 / 3;
    width: 4rem;
}

.mensaje__texto {
    grid-column: 1 / 3;
}

/*============================================BUTTONS============================================*/

.button {
    height: 3rem;
    width: 100%;
    max-width: 6.5rem;
    cursor: pointer;
    border-radius: var(--border-radius);
    border: none;
    background-color: var(--color-button);
}

.button--esquina {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.button:hover {
    opacity: 0.6;
}

/*============================================MENU============================================*/

.menu {
    position: fixed;
    inset: 0;
    top: 8rem;
    padding: 2rem;
    overflow-y: auto;
}

.menu--inactivo {
    opacity: 0;
    pointer-events: none;
}

.table {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, 28rem);
    gap: 3rem 2rem;
}

.menu__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    height: 3rem;
}

.menu__item--ancho {
    height: 3rem;
}

.menu__icono {
    width: 100%;
    height: 3rem;
    padding: .3rem;
}

/*********NOTIFICACION*********/

.notificacion,
.ubicacion,
.cliente,
.equipo {
    display: flex;
    flex-direction: column;
    max-width: 38rem;
    gap: 0.5rem;
    padding: 1.5rem;
    position: relative;
}

.menu__identificador {
    position: absolute;
    top: -1.5rem;
    left: 1rem;
    height: 3rem;
    width: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.menu__imagen {
    position: absolute;
    top: -2rem;
    right: 1rem;
    width: 5rem;
    filter: contrast(1.3);
}

/*---------BUSCADORES---------*/

.search__input {
    background-color: transparent;
    border: none;
    padding: 0 0.5rem;
    width: 100%;
}

/*************** FORMULARIOS ***************/

.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 22rem;
    margin: 1rem auto 3rem auto;
}

.form__text,
.form__selector {
    display: flex;
    align-items: center;
    height: 3rem;
    padding: 0 .8rem;
    width: 100%;
}

.form__text:hover,
.form__selector:hover {
    background: #00000059;
}

.form__selector {
    cursor: pointer;
    position: relative;
}

.form__selector input{
    cursor: pointer;
}

.form__list {
    position: absolute;
    width: 100%;
    top: 4rem;
    left: 0;
    right: 0;
    z-index: 5;
    max-height: 21rem;
    overflow: scroll;
}

.form__list--close {
    pointer-events: none;
    opacity: 0;
}

.form__option {
    min-height: 3rem;
    padding: 0 1.5rem;
    overflow: hidden;
    text-wrap: nowrap;
    text-overflow: ellipsis;
    width: 100%;
    line-height: 3rem;
}

.form__option:hover {
    background-color: #00000059;
}

.form__text,
.form__selector {
    grid-column: 1 / 4;
}

/*============================================MEDIA============================================*/

@media (max-width: 660px) {

    .nav__link a {
        display: none;
    }

}

@media (max-width: 320px) {

    .table {
        grid-template-columns: 1fr;
    }
    
    html {
        font-size: 56.25%;
    }

}

@media (max-width: 280px) {
    
    html {
        font-size: 50%;
    }

}