/* ========================================
   REBOBINA: Espana 1998
   Main Styles - Reset, Variables, Base
   ======================================== */

/* --- Custom Properties --- */
:root {
    /* Colors */
    --negro-crt: #0a0a0a;
    --verde-fosforo: #33ff66;
    --ambar-calido: #ffb347;
    --azul-win98: #0000aa;
    --rojo-espana: #c60b1e;
    --gualda: #ffc400;
    --gris-estatica: #b0b0b0;
    --blanco-crudo: #f5f0e8;
    --morado-noche: #1a0a2e;
    --negro-suave: #111111;
    --gris-oscuro: #1a1a1a;
    --gris-medio: #333333;

    /* Typography */
    --font-vcr: 'Share Tech Mono', monospace;
    --font-pixel: 'Press Start 2P', cursive;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Sizes */
    --max-width: 1200px;
    --header-height: 0px;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    /* Z-index layers */
    --z-content: 0;
    --z-canvas: 1;
    --z-overlay: 10;
    --z-ui: 50;
    --z-loader: 100;
}

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

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--blanco-crudo);
    background-color: var(--negro-crt);
    overflow-x: hidden;
}

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

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

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

input {
    font-family: inherit;
    border: none;
    outline: none;
}

ul, ol {
    list-style: none;
}

/* --- Base Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-family: var(--font-vcr);
    font-size: clamp(3rem, 10vw, 8rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

h2 {
    font-family: var(--font-vcr);
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    letter-spacing: 0.03em;
}

h3 {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 600;
}

h4 {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 600;
}

p {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    max-width: 60ch;
}

/* --- Selection --- */
::selection {
    background: var(--verde-fosforo);
    color: var(--negro-crt);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--verde-fosforo);
    border-radius: 2px;
}

/* --- Utility --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
