/* ═══════════════════════════════════════════════════════════════
   Trackealo — Shared design system
   Loaded by all pages: trackealo-landing, soporte, privacidad, terminos
═══════════════════════════════════════════════════════════════ */

/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #F7F8FA;
  --surface:      #FFFFFF;
  --fg:           #2C2D32;
  --muted:        #6E737C;
  --border:       #DDE1E7;
  --green:        #21C063;
  --purple:       #4E3FC2;
  --green-tint:   rgba(33, 192, 99, 0.09);
  --purple-tint:  rgba(78, 63, 194, 0.08);
  --r:            12px;
  --r-sm:         8px;
  --sh-sm:        0 1px 4px rgba(44,45,50,0.07), 0 0 0 1px rgba(44,45,50,0.04);
  --sh-md:        0 4px 20px rgba(44,45,50,0.10), 0 1px 4px rgba(44,45,50,0.06);
  --font-head:    'Space Grotesk', -apple-system, system-ui, sans-serif;
  --font-body:    'Inter', -apple-system, system-ui, sans-serif;
  --font-logo:    'Unbounded', sans-serif;
  --font-mono:    ui-monospace, 'JetBrains Mono', monospace;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ─── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  padding: 9px 18px; border-radius: var(--r-sm); border: none;
  cursor: pointer; white-space: nowrap; line-height: 1.2;
  transition: all 0.15s ease;
}
.btn-primary  { background: var(--fg); color: #fff; }
.btn-primary:hover { background: #1a1b1f; box-shadow: var(--sh-md); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn-secondary:hover { background: rgba(44,45,50,0.04); border-color: rgba(44,45,50,0.18); }
.btn-lg { font-size: 15px; padding: 11px 22px; border-radius: 10px; }

/* ─── HEADER ───────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(247,248,250,0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(221,225,231,0.65);
}
.header-inner { display: flex; align-items: center; height: 58px; gap: 8px; }
.logo-link { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo-wordmark {
  font-family: var(--font-logo); font-weight: 700; font-size: 17px;
  letter-spacing: -0.03em; line-height: 1; color: var(--fg);
}
.logo-k {
  background: linear-gradient(160deg, #21C063 10%, #4E3FC2 90%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.header-nav a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  padding: 6px 13px; border-radius: 7px;
  transition: color 0.14s, background 0.14s;
}
.header-nav a:hover { color: var(--fg); background: rgba(44,45,50,0.05); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: 20px; }

/* ─── UTILITIES ────────────────────────────────────────────── */
.eyebrow {
  display: inline-block; font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.09em; color: var(--purple);
  margin-bottom: 12px;
}

/* ─── SECTION HEADER (landing sections) ────────────────────── */
.section-hd { text-align: center; margin-bottom: 52px; }
.section-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -0.024em;
  line-height: 1.18; color: var(--fg); max-width: 680px; margin: 0 auto 14px;
}
.section-desc { font-size: 16px; color: var(--muted); max-width: 520px; margin: 0 auto; line-height: 1.65; }
.section-small-label {
  text-align: center; font-size: 12.5px; font-weight: 500;
  color: var(--muted); margin-bottom: 20px; letter-spacing: 0.01em;
}

/* ─── PAGE HERO (legal & support pages) ────────────────────── */
.page-hero { padding: 64px 0 48px; text-align: center; }
.page-hero h1 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(26px, 3.5vw, 42px); letter-spacing: -0.025em;
  line-height: 1.15; color: var(--fg); margin-bottom: 10px;
}
.page-hero p { font-size: 16px; color: var(--muted); max-width: 480px; margin: 0 auto; line-height: 1.7; }
.page-hero .meta { font-size: 13.5px; color: var(--muted); }

/* ─── LEGAL LAYOUT ─────────────────────────────────────────── */
.legal-layout {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 48px; padding: 0 0 96px; align-items: start;
}
.toc { position: sticky; top: 78px; }
.toc-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--muted); margin-bottom: 12px;
}
.toc a {
  display: block; font-size: 13px; color: var(--muted); padding: 5px 0;
  border-left: 2px solid var(--border); padding-left: 12px;
  transition: color 0.14s, border-color 0.14s;
}
.toc a:hover { color: var(--purple); border-color: var(--purple); }

.legal-article h2 {
  font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--fg);
  letter-spacing: -0.015em; margin: 48px 0 14px; padding-top: 8px;
}
.legal-article h2:first-child { margin-top: 0; }
.legal-article p { font-size: 14.5px; color: var(--muted); line-height: 1.8; margin-bottom: 14px; }
.legal-article p strong { color: var(--fg); font-weight: 600; }
.legal-article ul { padding-left: 20px; margin-bottom: 14px; }
.legal-article li { font-size: 14.5px; color: var(--muted); line-height: 1.8; margin-bottom: 5px; }

.info-box {
  background: var(--purple-tint); border: 1px solid rgba(78,63,194,0.15);
  border-radius: var(--r-sm); padding: 16px 18px; margin: 20px 0;
}
.info-box p { margin-bottom: 0; color: var(--fg); font-size: 13.5px; }
.warn-box {
  background: rgba(234,179,8,0.07); border: 1px solid rgba(234,179,8,0.22);
  border-radius: var(--r-sm); padding: 16px 18px; margin: 20px 0;
}
.warn-box p { margin-bottom: 0; font-size: 13.5px; color: var(--fg); }
.divider { height: 1px; background: var(--border); margin: 32px 0; }

/* ─── FOOTER ───────────────────────────────────────────────── */
.footer { padding: 42px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color 0.14s; }
.footer-links a:hover { color: var(--fg); }
.footer-copy { font-size: 12px; color: var(--muted); }

/* ─── FLOATING WHATSAPP BUTTON ─────────────────────────────── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 500;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45), 0 2px 6px rgba(0,0,0,0.12);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.18s, box-shadow 0.18s;
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 24px rgba(37,211,102,0.5), 0 3px 8px rgba(0,0,0,0.14);
}
.wa-float svg { flex-shrink: 0; }

/* ─── SHARED RESPONSIVE ────────────────────────────────────── */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
}
@media (max-width: 520px) {
  .wa-float { bottom: 20px; right: 20px; width: 48px; height: 48px; }
  .header-actions .btn-secondary { display: none; }
}
