/* ==========================================================================
   NOVATRACK
   BASE.CSS
   Estilos globales del sistema
   ========================================================================== */


/* ==========================================================================
   RESET GENERAL
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* ==========================================================================
   HTML
   ========================================================================== */

html {
    width: 100%;
    min-height: 100%;
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}


/* ==========================================================================
   BODY
   ========================================================================== */

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-regular);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}


/* ==========================================================================
   TEXTO
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
}

p {
    margin: 0;
    padding: 0;
}

span {
    font-family: inherit;
}


/* ==========================================================================
   ENLACES
   ========================================================================== */

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: inherit;
}


/* ==========================================================================
   LISTAS
   ========================================================================== */

ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}


/* ==========================================================================
   IMÁGENES
   ========================================================================== */

img {
    display: block;
    max-width: 100%;
    height: auto;
}


/* ==========================================================================
   BOTONES
   ========================================================================== */

button,
input,
textarea,
select {
    font-family: inherit;
}

button {
    border: 0;
    outline: 0;
    background: none;
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: var(--opacity-disabled);
}


/* ==========================================================================
   INPUTS
   ========================================================================== */

input,
textarea,
select {
    border: 0;
    outline: 0;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-primary);
    opacity: 1;
}


/* ==========================================================================
   TABLAS
   ========================================================================== */

table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}


/* ==========================================================================
   SELECCIÓN DE TEXTO
   ========================================================================== */

::selection {
    background: var(--color-primary);
    color: var(--color-white);
}


/* ==========================================================================
   FOCUS
   ========================================================================== */

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}


/* ==========================================================================
   SCROLLBAR - CHROME / EDGE / SAFARI
   ========================================================================== */

::-webkit-scrollbar {
    width: var(--scrollbar-width);
    height: var(--scrollbar-width);
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: var(--radius-xl);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}


/* ==========================================================================
   SCROLLBAR - FIREFOX
   ========================================================================== */

html {
    scrollbar-width: thin;
    scrollbar-color:
        var(--scrollbar-thumb)
        var(--scrollbar-track);
}


/* ==========================================================================
   ELEMENTOS OCULTOS
   ========================================================================== */

[hidden] {
    display: none !important;
}


/* ==========================================================================
   UTILIDADES BÁSICAS
   ========================================================================== */

.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted);
}

.text-white {
    color: var(--text-light);
}

.text-red {
    color: var(--color-primary);
}


/* ==========================================================================
   ESTADOS
   ========================================================================== */

.text-success {
    color: var(--color-success);
}

.text-warning {
    color: var(--color-warning);
}

.text-danger {
    color: var(--color-danger);
}

.text-info {
    color: var(--color-info);
}


/* ==========================================================================
   UTILIDADES DE ALINEACIÓN
   ========================================================================== */

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}


/* ==========================================================================
   UTILIDADES DE DISPLAY
   ========================================================================== */

.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.align-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}


/* ==========================================================================
   UTILIDAD: OCULTAR
   ========================================================================== */

.hidden {
    display: none !important;
}