/* ============================================================
   SMC Design System · v12 Apple-grade
   Capturado del DOM real de apple.com/cl/mac-mini (2026-05-11)
   ============================================================ */

:root {
  /* ---- FONT STACK · -apple-system first · zero webfont ---- */
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* ---- TYPE SCALE · Apple precise ----
     Apple usa scales sutiles · NO valores extremos.
     Lo premium viene del WHITE SPACE + line-height TIGHT + weight 600. */
  --t-eyebrow: 12px;       /* mono labels · sections */
  --t-small:   14px;       /* captions */
  --t-body:    17px;       /* Apple default · 1.47 line-height */
  --t-h4:      19px;       /* card titles */
  --t-h3:      24px;       /* sub-sections */
  --t-h2:      40px;       /* sections */
  --t-h1:      56px;       /* page heroes · Apple Mac mini real value */
  --t-display: clamp(56px, 9vw, 96px);  /* gallery hero · escalable */

  /* ---- LINE-HEIGHT · Apple secret = super tight in headings ---- */
  --lh-display:  1.0625;   /* 60/56 Apple capturado */
  --lh-tight:    1.08;
  --lh-snug:     1.2;
  --lh-body:     1.47;     /* 25/17 Apple body */

  /* ---- LETTER-SPACING · less extreme than expected ---- */
  --ls-body:    -0.022em;  /* -0.374px/17px Apple body */
  --ls-h:       -0.005em;  /* -0.28px/56px Apple headings (más sutil) */
  --ls-mono:     0.04em;   /* mono labels wide */

  /* ---- FONT WEIGHTS · Apple uses 600 not 700/800 ---- */
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;      /* Apple display canon */
  --fw-bold:     700;      /* only for emphasis */

  /* ---- COLORS · monochrome rigor + 1 accent ---- */
  --bg:          #FFFFFF;        /* puro */
  --bg-soft:     #F5F5F7;        /* section soft Apple */
  --bg-warm:     #FAF7F4;        /* hero warm cream Mac mini */
  --bg-dark:     #1D1D1F;        /* dark sections */

  --text:        #1D1D1F;        /* primary · Apple capturado */
  --text-muted:  #6E6E73;        /* secondary · Apple capturado */
  --text-light:  #86868B;        /* tertiary */
  --text-on-dark: #F5F5F7;

  --border:      #D2D2D7;        /* light dividers */
  --border-soft: #E5E5E7;

  --accent:      #0066CC;        /* Apple link blue · capturado real */
  --accent-hover: #0077ED;

  /* ---- SMC identity twist (mantener marca) ---- */
  --smc-accent:  #00E5B0;        /* SMC tech green */
  --smc-gold:    #C49A3A;
  --smc-navy:    #1B2F4E;

  /* ---- SPACING · Apple-grade generosity ---- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;
  --space-11: 160px;       /* Apple section pad capturado */

  --sec-pad:    clamp(80px, 12vw, 160px);  /* responsive section vertical */
  --gutter:     clamp(24px, 4vw, 40px);

  /* ---- CONTAINER · Apple uses 980 narrow + 1200 wide ---- */
  --container:        1200px;
  --container-narrow: 980px;
  --container-text:   720px;

  /* ---- RADIUS · Apple pill buttons ---- */
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    18px;
  --radius-card:  22px;
  --radius-pill:  980px;      /* Apple CTA pill total */

  /* ---- MOTION ---- */
  --ease-out:    cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --dur-fast:    180ms;
  --dur-base:    280ms;
  --dur-slow:    480ms;

  /* ---- SHADOWS · Apple uses flat · only on hover ---- */
  --shadow-rest:  none;
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, .08);
  --shadow-deep:  0 24px 64px rgba(0, 0, 0, .12);
  --shadow-focus: 0 0 0 4px rgba(0, 102, 204, .25);
}

/* ============================================================
   GLOBAL RESET · Apple anti-aliasing canon
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-text);
  font-size: var(--t-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--text);
  background: var(--bg);
}

/* ============================================================
   TYPOGRAPHY · semantic
   ============================================================ */
.t-display {
  font-family: var(--font-display);
  font-size: var(--t-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-h);
  font-weight: var(--fw-semibold);
}
.t-h1, h1 {
  font-family: var(--font-display);
  font-size: var(--t-h1);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-h);
  font-weight: var(--fw-semibold);
  color: var(--text);
  margin: 0;
}
.t-h2, h2 {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-h);
  font-weight: var(--fw-semibold);
  color: var(--text);
  margin: 0;
}
.t-h3, h3 {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
  font-weight: var(--fw-semibold);
  color: var(--text);
  margin: 0;
}
.t-h4, h4 {
  font-family: var(--font-text);
  font-size: var(--t-h4);
  line-height: 1.31;
  font-weight: var(--fw-semibold);
  color: var(--text);
  margin: 0;
}
.t-body, p {
  font-family: var(--font-text);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--text);
  margin: 0;
}
.t-secondary { color: var(--text-muted); }
.t-small {
  font-size: var(--t-small);
  line-height: 1.43;
  letter-spacing: -0.016em;
  color: var(--text-muted);
}
.t-eyebrow {
  font-size: var(--t-eyebrow);
  font-family: var(--font-text);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--text-muted);
}
.t-mono, code, pre {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0;
}

/* ============================================================
   BUTTONS · Apple pill canon
   ============================================================ */
.btn-apple {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-text);
  font-size: var(--t-body);
  font-weight: var(--fw-regular);
  letter-spacing: -0.022em;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
}
.btn-apple.primary {
  background: var(--accent);
  color: white;
}
.btn-apple.primary:hover {
  background: var(--accent-hover);
}
.btn-apple.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid transparent;
}
.btn-apple.ghost:hover {
  background: rgba(0, 102, 204, 0.06);
}
.btn-apple.outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-apple.outline:hover {
  background: var(--accent);
  color: white;
}
.btn-apple.dark {
  background: var(--text);
  color: white;
}
.btn-apple.dark:hover {
  background: #000;
}
.btn-apple.sm {
  padding: 8px 16px;
  font-size: var(--t-small);
}
.btn-apple.lg {
  padding: 16px 32px;
  font-size: var(--t-h4);
}

/* ============================================================
   CONTAINER & SECTION
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section {
  padding: var(--sec-pad) 0;
}
section.soft { background: var(--bg-soft); }
section.warm { background: var(--bg-warm); }
section.dark { background: var(--text); color: var(--text-on-dark); }
section.dark h1, section.dark h2, section.dark h3, section.dark h4 { color: white; }
