/* ============================================
   DISTRIBUIDORA — Base Reset & Global Styles
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    font-size: var(--text-base);
    font-weight: var(--fw-normal);
    color: var(--text-1);
    background: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    letter-spacing: -0.01em;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.15); }

/* ---- Typography ---- */
a { color: var(--accent); text-decoration: none; transition: opacity var(--t-fast); }
a:hover { opacity: 0.85; }

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--fw-semibold);
    line-height: 1.3;
    color: var(--text-1);
    letter-spacing: -0.02em;
}

h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-md); }
h5 { font-size: var(--text-base); }

p { color: var(--text-2); line-height: 1.6; }

ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

/* ---- Form Reset ---- */
input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    outline: none;
    border: none;
    background: none;
}

button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

::selection { background: var(--accent); color: var(--text-inv); }

/* ---- Keyframes ---- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ---- Utility Animation Classes (used by JS) ---- */
.animate-fade-in-up {
    animation: slideUp var(--t-slow) var(--ease) both;
}

/* ---- Focus Ring ---- */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--r-sm);
}

/* ---- Code ---- */
code {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent);
}

/* ---- HR ---- */
hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: var(--s-4) 0;
}
