/*
 * TemaStripe 02-base.css
 * Reset basico, tipografia, body, scrollbars, headings.
 */

/* ---- @font-face: cargamos las fuentes locales del plugin ---- */
@font-face {
    font-family: 'Inter';
    src: url('../Fonts/Inter.woff2') format('woff2-variations'),
         url('../Fonts/Inter.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('../Fonts/JetBrainsMono.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ---- Reset / ajustes globales ---- */
html {
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--fs-font-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--fs-c-text);
    background-color: var(--fs-c-bg-soft);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv11', 'ss03';
    transition: background-color var(--fs-transition-md), color var(--fs-transition-md);
}

/* ---- Bootstrap usa .bg-light en muchos sitios; lo retocamos ---- */
body.bg-light {
    background-color: var(--fs-c-bg-soft) !important;
}

/* ---- Tipografia: headings ---- */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--fs-font-sans);
    color: var(--fs-c-text);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.011em;
}
h1, .h1 { font-size: 1.875rem; font-weight: 700; letter-spacing: -0.022em; }
h2, .h2 { font-size: 1.5rem;   letter-spacing: -0.018em; }
h3, .h3 { font-size: 1.25rem;  letter-spacing: -0.014em; }
h4, .h4 { font-size: 1.125rem; }
h5, .h5 { font-size: 1rem; }
h6, .h6 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fs-c-text-soft); font-weight: 600; }

/* ---- Tipografia: links ---- */
a {
    color: var(--fs-c-primary);
    text-decoration: none;
    transition: color var(--fs-transition);
}
a:hover {
    color: var(--fs-c-primary-hover);
    text-decoration: none;
}

/* ---- Tipografia: codigos, IDs, numeros tecnicos ---- */
code, kbd, pre, samp, .text-mono, .mono {
    font-family: var(--fs-font-mono);
    font-size: 0.92em;
}

/* ---- Numeros tabulares en celdas de moneda y totales ---- */
.table td.text-right,
.table td .money,
td.money, .money {
    font-variant-numeric: tabular-nums;
}

/* ---- Texto secundario ---- */
.text-muted,
small,
.small {
    color: var(--fs-c-text-muted) !important;
}

/* ---- Scrollbars finos (webkit) ---- */
*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
*::-webkit-scrollbar-track {
    background: transparent;
}
*::-webkit-scrollbar-thumb {
    background: var(--fs-c-border-strong);
    border-radius: var(--fs-radius-full);
    border: 2px solid var(--fs-c-bg-soft);
}
*::-webkit-scrollbar-thumb:hover {
    background: var(--fs-c-text-soft);
}

/* Scrollbar Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--fs-c-border-strong) transparent;
}

/* ---- Seleccion de texto ---- */
::selection {
    background-color: var(--fs-c-primary-soft);
    color: var(--fs-c-primary);
}

/* ---- HR ---- */
hr {
    border: 0;
    border-top: 1px solid var(--fs-c-border);
    margin: 1.5rem 0;
}

/* ---- Container ajustes ---- */
.container-fluid {
    padding-left: var(--fs-content-pad);
    padding-right: var(--fs-content-pad);
}
