/* =============================================================================
   KALMMA SPORTS · DESIGN SYSTEM
   Estética: cruda, atlética, combativa. Alto contraste, formas afiladas.
   ============================================================================= */

/* ---- Fuentes -------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

/* ---- Tokens --------------------------------------------------------------- */
:root {
    /* Colores · base oscura */
    --color-bg:           #0A0A0B;
    --color-surface:      #111317;
    --color-surface-2:    #16191F;
    --color-surface-3:    #1F232B;
    --color-border:       #262B34;
    --color-border-soft:  rgba(255,255,255,0.06);

    /* Colores · texto */
    --color-text:         #F4F5F7;
    --color-text-dim:     #A0A6B0;
    --color-text-muted:   #6B7280;

    /* Colores · acento combate */
    --color-accent:       #E11D2E;
    --color-accent-hot:   #FF3344;
    --color-accent-dark:  #B81525;
    --color-accent-glow:  rgba(225, 29, 46, 0.45);

    /* Colores · semánticos */
    --color-success:      #16A34A;
    --color-warning:      #F59E0B;
    --color-info:         #3B82F6;
    --color-danger:       #DC2626;

    /* Tipografía */
    --font-display: 'Barlow Condensed', 'Oswald', 'Impact', sans-serif;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;

    --fs-12: 0.75rem;
    --fs-13: 0.8125rem;
    --fs-14: 0.875rem;
    --fs-15: 0.9375rem;
    --fs-16: 1rem;
    --fs-18: 1.125rem;
    --fs-20: 1.25rem;
    --fs-24: 1.5rem;
    --fs-30: 1.875rem;
    --fs-36: 2.25rem;
    --fs-48: 3rem;
    --fs-60: 3.75rem;
    --fs-72: 4.5rem;
    --fs-96: 6rem;

    /* Espaciado (escala 4pt) */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.25rem;
    --sp-6: 1.5rem;
    --sp-8: 2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;
    --sp-16: 4rem;
    --sp-20: 5rem;
    --sp-24: 6rem;

    /* Radio · combate = poco radio */
    --radius-sm: 2px;
    --radius:    4px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --radius-full: 9999px;

    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 4px 12px rgba(0,0,0,.5);
    --shadow-lg: 0 20px 40px -8px rgba(0,0,0,.7);
    --shadow-accent: 0 12px 32px -8px var(--color-accent-glow);

    /* Layout */
    --container: 1320px;
    --container-tight: 1100px;
    --header-h: 80px;
    --header-h-mobile: 64px;

    /* Transiciones */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast: 180ms;
    --t: 240ms;
    --t-slow: 360ms;

    /* Z-index */
    --z-banner: 30;
    --z-header: 50;
    --z-mega:   60;
    --z-drawer: 70;
    --z-toast:  80;
    --z-modal:  90;
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-16);
    line-height: 1.55;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100dvh;
    overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
img { font-style: italic; background-color: var(--color-surface-2); shape-margin: 1rem; }

button, input, textarea, select {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
}

button { cursor: pointer; background: none; }

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

ul, ol { list-style: none; }

table { border-collapse: collapse; width: 100%; }

:focus-visible {
    outline: 2px solid var(--color-accent-hot);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

::selection {
    background: var(--color-accent);
    color: #fff;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-surface-3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-accent); }

/* ---- Tipografía ---------------------------------------------------------- */
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

h1 { font-size: clamp(2.5rem, 6vw, var(--fs-72)); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, var(--fs-48)); }
h3 { font-size: clamp(1.5rem, 3vw, var(--fs-30)); }
h4 { font-size: var(--fs-20); }

p { line-height: 1.65; color: var(--color-text-dim); }

.eyebrow {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: var(--fs-13);
    color: var(--color-accent);
}

.eyebrow--muted { color: var(--color-text-dim); }

/* ---- Container ----------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(var(--sp-4), 4vw, var(--sp-8));
}

.container--tight { max-width: var(--container-tight); }

/* ---- Secciones ----------------------------------------------------------- */
.section { padding-block: clamp(var(--sp-12), 8vw, var(--sp-20)); }
.section--sm { padding-block: clamp(var(--sp-8), 5vw, var(--sp-12)); }
.section--lg { padding-block: clamp(var(--sp-16), 10vw, var(--sp-24)); }

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: var(--sp-6);
    margin-bottom: var(--sp-10);
    flex-wrap: wrap;
}
.section-head h2 { line-height: 0.95; }

/* ---- Utilidades ---------------------------------------------------------- */
.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;
}

.text-accent { color: var(--color-accent); }
.text-dim    { color: var(--color-text-dim); }
.text-muted  { color: var(--color-text-muted); }

.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border) 20%, var(--color-border) 80%, transparent);
}

.skew-cut {
    position: relative;
}
.skew-cut::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: var(--color-accent);
    transform: skewX(-20deg);
}

/* ---- Reveal on scroll ---------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms var(--ease-out-soft), transform 600ms var(--ease-out-soft);
    will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}
