/* ============================================
   BASE
   Reset + variables + tipografía
   ============================================ */

/* Variables */
:root {
    /* Colores base */
    --negro: #0a0a0a;
    --gris-950: #101010;
    --gris-900: #141414;
    --gris-850: #1a1a1a;
    --gris-800: #202020;
    --gris-700: #2e2e2e;
    --gris-600: #404040;
    --gris-500: #5c5c5c;
    --gris-400: #7a7a7a;
    --gris-300: #a3a3a3;
    --gris-200: #cccccc;
    --gris-100: #e5e5e5;
    --blanco: #fafafa;

    /* Estados */
    --exito: #10b981;
    --error: #ef4444;
    --aviso: #f59e0b;

    /* Tipografía */
    --fuente-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --fuente-mono: 'SF Mono', Monaco, 'Courier New', monospace;

    /* Espaciado */
    --esp-1: 4px;
    --esp-2: 8px;
    --esp-3: 12px;
    --esp-4: 16px;
    --esp-5: 20px;
    --esp-6: 24px;
    --esp-8: 32px;
    --esp-10: 40px;
    --esp-12: 48px;

    /* Radios */
    --radio-sm: 6px;
    --radio-md: 10px;
    --radio-lg: 14px;
    --radio-full: 999px;

    /* Transiciones */
    --transicion: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--fuente-sans);
    background: var(--negro);
    color: var(--blanco);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Contenedor principal */
#app {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--esp-6) var(--esp-4);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Botones */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

/* Inputs */
input, textarea {
    font-family: inherit;
    color: inherit;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--gris-700);
    border-radius: var(--radio-full);
}

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

/* Selección */
::selection {
    background: var(--blanco);
    color: var(--negro);
}

/* Utilidad: oculto */
.oculto {
    display: none !important;
}
