/* ════════════════════════════════════════════════════════════════════
   ATERIS — Design System (compartido entre landing.html e index.html)
   Light base + secciones oscuras · Coral marca · Amarillo acento
   ════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Brand ── */
  --coral: #ff6b6b;
  --coral-600: #f2545b;
  --coral-700: #d83f47;
  --coral-soft: #fff0f0;
  --yellow: #ffd23f;
  --yellow-600: #f5bd0a;
  --yellow-soft: #fff8e0;

  /* ── Light surfaces ── */
  --bg: #fdfcfa;
  --bg-2: #f6f3ee;
  --card: #ffffff;
  --line: #ece7df;
  --line-strong: #ddd5c8;

  /* ── Dark surfaces (secciones oscuras) ── */
  --ink: #101014;
  --ink-2: #17171c;
  --ink-3: #1f1f26;
  --ink-line: #2c2c34;

  /* ── Text ── */
  --text: #1a1a1a;
  --text-2: #57534e;
  --text-3: #8a857d;
  --text-inv: #f7f6f3;
  --text-inv-2: #b6b2ab;
  --text-inv-3: #7a766f;

  /* ── Functional ── */
  --ok: #1f9d63;
  --ok-soft: #e6f5ec;
  --focus: #2563eb;

  /* ── Radii ── */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* ── Shadows ── */
  --sh-xs: 0 1px 2px rgba(26,22,18,0.05);
  --sh-sm: 0 2px 8px -2px rgba(26,22,18,0.08);
  --sh-md: 0 8px 28px -10px rgba(26,22,18,0.16);
  --sh-lg: 0 24px 60px -22px rgba(26,22,18,0.28);
  --sh-coral: 0 14px 34px -12px rgba(255,107,107,0.5);

  /* ── Layout ── */
  --maxw: 1200px;
  --gutter: 32px;

  /* ── Type ── */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

/* ── Focus ── */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Typographic scale ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--coral-700);
}
.eyebrow.on-dark { color: var(--yellow); }

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; }
.display {
  font-size: clamp(38px, 6.2vw, 76px);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.0;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(30px, 4.4vw, 50px);
  letter-spacing: -0.03em; line-height: 1.04;
  text-wrap: balance;
}
.h3 { font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -0.02em; }
.lede {
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--text-2); line-height: 1.55;
  text-wrap: pretty;
}

/* ── Layout helpers ── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 680px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-wa {
  background: var(--coral); color: #fff;
  box-shadow: var(--sh-coral);
}
.btn-wa:hover { background: var(--coral-600); transform: translateY(-2px); }
.btn-wa:active { transform: translateY(0); }
.btn-dark { background: var(--ink); color: var(--text-inv); }
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--text); transform: translateY(-2px); }
.btn-outline.on-dark { color: var(--text-inv); box-shadow: inset 0 0 0 1.5px var(--ink-line); }
.btn-outline.on-dark:hover { box-shadow: inset 0 0 0 1.5px var(--text-inv-2); }
.btn-lg { padding: 17px 28px; font-size: 16px; }
.btn-ghost { padding: 10px 14px; font-weight: 700; color: var(--text-2); border-radius: var(--r-sm); }
.btn-ghost:hover { color: var(--text); background: var(--bg-2); }

/* ── Brand + language toggle (compartidos landing/catálogo) ── */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: inline-flex; flex-shrink: 0; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -0.03em; }
.lang-toggle { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg-2); border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line); flex-shrink: 0; }
.lang-btn { padding: 6px 12px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 800; letter-spacing: .03em; color: var(--text-3); transition: background .15s, color .15s; }
.lang-btn.is-active { background: var(--ink); color: #fff; }
@media (max-width: 760px) {
  .lang-btn { padding: 9px 14px; }
}

/* ── Pills / chips ── */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px; font-weight: 600; color: var(--text-2);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }

/* ── Reveal animation (shared) ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
.reveal.d4 { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── Scroll progress bar (global) ── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--coral), var(--yellow));
  z-index: 200; transition: width .08s linear;
}

/* ── Skip link ── */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ── Floating WhatsApp ── */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 150;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--coral); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-coral);
  transition: transform .15s ease, background .15s ease;
}
.wa-float:hover { transform: scale(1.06); background: var(--coral-600); }
.wa-float svg { width: 28px; height: 28px; }

/* ── Selection ── */
::selection { background: var(--coral); color: #fff; }
