/* ============================================
   CEPA DELIVERY — Design System & Base Styles

   ⚠️  IMPORTANTE: Los tokens están centralizados en _design-tokens.css
   Este archivo importa los tokens y los reutiliza en componentes.
   Para cambios de branding: EDITAR _design-tokens.css, no aquí.
   ============================================ */

@import '_design-tokens.css';

:root {
    /* Core Palette */
    --color-black:      #000000;
    --color-near-black: #0a0a0a;
    --color-ink:        #111111;
    --color-accent:     #A100FF;
    --color-accent-dim: rgba(161, 0, 255, 0.12);
    --color-white:      #ffffff;
    --color-off-white:  #f7f7f7;
    --color-surface:    #f2f2f2;
    --color-border:     #e0e0e0;
    --color-muted:      #666666;
    --color-subtle:     #999999;

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-base: 1rem;
    --text-lg:   1.125rem;
    --text-xl:   1.25rem;
    --text-2xl:  1.5rem;
    --text-3xl:  1.875rem;
    --text-4xl:  clamp(2rem, 4vw, 2.75rem);
    --text-5xl:  clamp(2.75rem, 6vw, 4.5rem);
    --text-hero: clamp(3rem, 7vw, 5.5rem);

    --weight-light:    300;
    --weight-normal:   400;
    --weight-medium:   500;
    --weight-semi:     600;
    --weight-bold:     700;
    --weight-black:    900;

    --leading-tight:   1.1;
    --leading-snug:    1.3;
    --leading-normal:  1.5;
    --leading-relaxed: 1.7;

    /* Spacing */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.25rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Motion */
    --ease:      cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out:  cubic-bezier(0, 0, 0.2, 1);
    --dur-fast:  150ms;
    --dur-base:  250ms;
    --dur-slow:  400ms;

    /* Shadows — intentionally minimal */
    --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lift: 0 8px 24px rgba(0,0,0,0.10);

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Z-index */
    --z-nav:   1000;
    --z-modal: 2000;

    /* Layout */
    --max-w: 1200px;
    --nav-h: 68px;
}

/* ============================================
   Reset & Base
   ============================================ */

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

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

body {
    font-family: var(--font);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-ink);
    background-color: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    color: var(--color-ink);
}

p { line-height: var(--leading-relaxed); }

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

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

button {
    font-family: var(--font);
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: var(--font);
    font-size: var(--text-base);
    color: inherit;
}

ul, ol { list-style: none; }

/* ============================================
   Layout Utilities
   ============================================ */

.container {
    width: 100%;
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--space-6);
}

.section {
    padding-block: var(--space-24);
}

/* Eyebrow label — small uppercase tag above headlines */
.section__eyebrow {
    font-size: var(--text-xs);
    font-weight: var(--weight-semi);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-4);
}

.section__eyebrow--light {
    color: rgba(255,255,255,0.6);
}

.section__title {
    font-size: var(--text-4xl);
    font-weight: var(--weight-black);
    line-height: var(--leading-tight);
    color: var(--color-ink);
    margin-bottom: var(--space-4);
}

.section__lead {
    font-size: var(--text-lg);
    color: var(--color-muted);
    line-height: var(--leading-relaxed);
    max-width: 56ch;
}

.section__header {
    margin-bottom: var(--space-16);
}

.section__header--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.section__aside {
    font-size: var(--text-lg);
    color: var(--color-muted);
    max-width: 38ch;
    line-height: var(--leading-relaxed);
    flex-shrink: 0;
}

/* ============================================
   Focus & Accessibility
   ============================================ */

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

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

/* ============================================
   Scrollbar
   ============================================ */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-surface); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-subtle); }

/* ============================================
   Reduced Motion
   ============================================ */

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

/* ============================================
   Print
   ============================================ */

@media print {
    .navbar, .hero__ctas, .cta-block__actions, .modal { display: none; }
    body { color: #000; background: #fff; }
    a { color: #000; text-decoration: underline; }
}
