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

/* ============================================
   FUENTES
   ============================================ */
@font-face {
    font-family: 'Space Grotesk';
    src: url('../assets/fonts/SpaceGrotesk-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('../assets/fonts/SpaceGrotesk-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('../assets/fonts/SpaceGrotesk-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('../assets/fonts/SpaceGrotesk-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Mono';
    src: url('../assets/fonts/SpaceMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Mono';
    src: url('../assets/fonts/SpaceMono-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   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: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --fuente-mono: 'Space 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;
    --esp-16: 64px;

    /* Radios (más cuadrados que en Quevedle) */
    --radio-sm: 0px;
    --radio-md: 2px;
    --radio-lg: 2px;
    --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;
}

#app {
    max-width: 1200px;
    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;
}

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

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

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

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

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

/* ============================================
   SELECCIÓN
   ============================================ */
::selection {
    background: var(--blanco);
    color: var(--negro);
}

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