/* Fundación JEP — Design System Tokens v1
   Source: Coming Soon V1.0 (approved) + semantic extensions for full site */

:root {
  /* ── EXISTING APPROVED TOKENS (Coming Soon V1.0) ── */
  --olive-950: #1d241b;
  --olive-900: #283022;
  --olive-800: #343d2c;
  --olive-700: #4e5846;
  --ivory: #f7f2e8;
  --cream: #eee5d5;
  --gold: #c6a257;
  --gold-soft: #d4bb7a;
  --gold-deep: #a88743;
  --charcoal: #1c1d1a;
  --white: #ffffff;
  --muted: #6a6f63;
  --line: rgba(198, 162, 87, 0.28);

  --font-serif: "Cormorant Garamond", "Iowan Old Style", Palatino, "Palatino Linotype", "Times New Roman", serif;
  --font-sans: "Outfit", "Avenir Next", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;

  --radius: 1.25rem;
  --touch: 48px;

  --logo-view-scale: 130%;
  --logo-view-shift-x: 9%;
  --logo-view-shift-y: 4%;

  /* Emblema dorado — optical clear space inside logo frame (legacy logo tokens above do not apply) */
  --emblema-frame-inset-header: 0px;
  --emblema-frame-inset-footer: 0px;

  /* ── NEW DESIGN SYSTEM TOKENS — Semantic color ── */
  --color-brand-primary: var(--olive-900);
  --color-brand-primary-deep: var(--olive-950);
  --color-brand-accent: var(--gold);

  --color-surface-primary: var(--ivory);
  --color-surface-secondary: var(--cream);
  --color-surface-dark: var(--olive-950);
  --color-surface-elevated: rgba(255, 255, 255, 0.55);

  --color-text-primary: var(--charcoal);
  --color-text-secondary: #3a3d36;
  --color-text-on-dark: var(--ivory);
  --color-text-on-dark-secondary: rgba(247, 242, 232, 0.88);
  --color-text-on-dark-muted: rgba(247, 242, 232, 0.78);
  --color-link-on-dark: var(--gold-soft);
  --color-text-muted: var(--muted);

  --color-border: rgba(28, 29, 26, 0.1);
  --color-border-subtle: rgba(28, 29, 26, 0.06);
  --color-border-on-dark: rgba(247, 242, 232, 0.18);
  --color-border-accent: var(--line);

  --color-action-primary: var(--gold);
  --color-action-primary-hover: var(--gold-soft);
  --color-action-primary-text: var(--olive-950);
  --color-action-secondary: transparent;
  --color-action-secondary-hover: rgba(198, 162, 87, 0.12);
  --color-action-secondary-border: var(--gold-soft);
  --color-action-secondary-text: var(--ivory);

  --color-focus: var(--gold);

  --color-success: #3d6b4f;
  --color-success-surface: #e8f2ec;
  --color-warning: #8a6b2e;
  --color-warning-surface: #f5eed9;
  --color-error: #8b4a42;
  --color-error-surface: #f5e8e6;
  --color-error-text: #6b3530;

  /* ── NEW — Typography scale ── */
  --text-display-xl: clamp(2.35rem, 6.2vw, 4.6rem);
  --text-display-l: clamp(2rem, 4.5vw, 3.25rem);
  --text-h1: clamp(1.85rem, 3.6vw, 2.85rem);
  --text-h2: clamp(1.55rem, 2.8vw, 2.15rem);
  --text-h3: clamp(1.35rem, 2vw, 1.65rem);
  --text-h4: clamp(1.15rem, 1.5vw, 1.3rem);
  --text-quote: clamp(1.45rem, 3vw, 2rem);
  --text-body-lg: clamp(1.05rem, 1.4vw, 1.15rem);
  --text-body: 1rem;
  --text-body-sm: 0.92rem;
  --text-eyebrow: 0.72rem;
  --text-label: 0.8rem;
  --text-button: 0.95rem;
  --text-nav: clamp(0.9375rem, 0.12vw + 0.9rem, 1rem);
  --text-header-cta: clamp(0.9125rem, 0.08vw + 0.875rem, 0.9625rem);
  --text-caption: 0.75rem;
  --text-metric: clamp(1.8rem, 3.5vw, 2.75rem);

  --leading-tight: 1.08;
  --leading-snug: 1.2;
  --leading-normal: 1.55;
  --leading-relaxed: 1.65;

  --tracking-tight: -0.02em;
  --tracking-wide: 0.18em;
  --tracking-wider: 0.22em;

  /* ── NEW — Spacing scale ── */
  --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-micro: var(--space-2);
  --space-component: var(--space-4);
  --space-content: var(--space-8);
  --space-section: clamp(3rem, 6vw, 5rem);
  --space-section-lg: clamp(4rem, 8vw, 6.5rem);

  /* ── NEW — Layout / containers ── */
  --container-max: min(1120px, calc(100% - var(--gutter) * 2));
  --container-wide: min(1180px, calc(100% - var(--gutter) * 2));
  --container-reading: min(42rem, calc(100% - var(--gutter) * 2));
  --gutter: clamp(1.35rem, 5vw, 4.5rem);
  --gutter-mobile: clamp(1.25rem, 4vw, 1.75rem);

  /* Legacy alias from Coming Soon */
  --shell: var(--container-max);
  --space: clamp(1.25rem, 3vw, 2.5rem);

  /* ── NEW — Radius ── */
  --radius-sm: 0.7rem;
  --radius-md: var(--radius);
  --radius-lg: 1.5rem;
  --radius-pill: 999px;

  /* ── NEW — Shadows ── */
  --shadow-subtle: 0 1px 2px rgba(29, 36, 27, 0.04), 0 4px 16px rgba(29, 36, 27, 0.04);
  --shadow-elevated: 0 8px 32px rgba(29, 36, 27, 0.1), 0 2px 8px rgba(29, 36, 27, 0.06);

  /* ── NEW — Motion ── */
  --motion-fast: 160ms;
  --motion-base: 420ms;
  --motion-slow: 680ms;
  --motion-cinematic: 900ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-enter: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --ease-emphasis: var(--ease-enter);

  /* Legacy aliases */
  --duration-fast: var(--motion-fast);
  --duration-normal: var(--motion-base);
  --duration-slow: var(--motion-slow);

  /* ── NEW — Breakpoints (for reference in media queries) ── */
  /* sm: 600px | md: 768px | lg: 1024px | xl: 1280px | 2xl: 1440px */

  /* ── NEW — Header ── */
  --header-height: 4.25rem;
  --header-height-scrolled: 4rem;
  --header-logo-size: 3.75rem;

  /* ── NEW — Photography ── */
  --photo-overlay-dark: linear-gradient(180deg, rgba(29, 36, 27, 0.12) 0%, rgba(29, 36, 27, 0.55) 100%);
  --photo-overlay-editorial: linear-gradient(90deg, rgba(29, 36, 27, 0.72) 0%, rgba(29, 36, 27, 0.28) 40%, transparent 70%);
  --hero-photo-position: center center;
}

@media (min-width: 1440px) {
  :root {
    --container-max: min(1180px, calc(100% - 8rem));
    --shell: var(--container-max);
  }
}
