/* Wiservet pricing page — Sprint 5 día 3.
   Design tokens espejo del frontend Vue (rebuild/08-UI-STANDARDS.md).
   Mobile-first, sin frameworks. Tipografía system-ui para evitar carga remota. */

:root {
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-900: #134e4a;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-900: #0f172a;

  --orange-500: #f97316;

  --bg: #ffffff;
  --fg: var(--slate-900);
  --muted: var(--slate-500);
  --border: var(--slate-200);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 48px rgba(13, 148, 136, 0.18);

  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --fg: #f8fafc;
    --muted: #94a3b8;
    --border: #1e293b;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-700); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 2px;
  border-radius: 2px;
}

h1, h2, h3 { color: var(--fg); margin: 0 0 0.5rem 0; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { margin: 0 0 1rem 0; }

/* ─── Currency banner ─── */
.currency-banner {
  background: var(--teal-50);
  color: var(--teal-900);
  text-align: center;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--teal-100);
}
@media (prefers-color-scheme: dark) {
  .currency-banner {
    background: var(--teal-900);
    color: var(--teal-50);
    border-bottom-color: var(--teal-700);
  }
}

/* ─── Header ─── */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.25rem 1.5rem;
  max-width: 1200px; margin: 0 auto;
}
.site-header nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-header nav a { color: var(--fg); font-weight: 500; }
.brand { display: flex; align-items: center; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  min-height: 44px;          /* WCAG 2.5.5 touch target */
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 150ms ease, box-shadow 200ms ease, background 200ms ease;
}
.btn-primary { background: var(--teal-700); color: #fff; }
.btn-primary:hover { background: var(--teal-600); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: transparent; color: var(--teal-700); border-color: var(--teal-700); }
.btn-secondary:hover { background: var(--teal-50); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { background: var(--slate-100); text-decoration: none; }
.btn-lg { font-size: 1.05rem; min-height: 52px; padding: 0.75rem 1.75rem; }

@media (prefers-color-scheme: dark) {
  .btn-secondary:hover { background: rgba(20, 184, 166, 0.1); }
  .btn-ghost:hover { background: var(--slate-700); }
}

/* ─── Hero ─── */
.hero {
  max-width: 880px; margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) 1.5rem 2rem;
  text-align: center;
}
.lede { font-size: clamp(1.05rem, 1vw + 0.85rem, 1.25rem); color: var(--muted); max-width: 64ch; margin: 0 auto 2rem; }
.hero-ctas { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.trust-strip { color: var(--muted); margin-top: 2rem; font-size: 0.95rem; }

/* ─── Pricing tiers ─── */
.pricing { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }
.pricing-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.tiers {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .tiers { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

.tier {
  position: relative;
  display: flex; flex-direction: column; gap: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-md);
}
.tier h3 { color: var(--teal-700); }
.tier .alias { color: var(--muted); font-weight: 400; font-size: 0.875rem; }
.tier-featured {
  border-color: var(--teal-600);
  box-shadow: var(--shadow-lg);
}
.tier-featured .badge {
  position: absolute; top: -14px; right: 24px;
  background: var(--orange-500); color: #fff;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.4rem 0.75rem; border-radius: 999px;
}

.price { margin: 0.25rem 0 0.5rem 0; }
.price .amount { font-size: 2.25rem; font-weight: 800; color: var(--fg); }
.price .cadence { display: block; color: var(--muted); font-size: 0.95rem; margin-top: 0.25rem; }
.tagline { color: var(--muted); font-size: 0.95rem; }

.features { list-style: none; padding: 0; margin: 0.5rem 0 1.5rem; flex: 1; }
.features li {
  position: relative; padding: 0.5rem 0 0.5rem 1.75rem;
  border-bottom: 1px dashed var(--border);
}
.features li:last-child { border-bottom: 0; }
.features li::before {
  content: ""; position: absolute; left: 0; top: 0.85rem;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--teal-100); border: 2px solid var(--teal-600);
}

.legal-note { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 2rem; }

/* ─── Objection busters ─── */
.objection-busters {
  background: var(--slate-50);
  padding: clamp(2rem, 5vw, 4rem) 1.5rem;
}
@media (prefers-color-scheme: dark) {
  .objection-busters { background: rgba(15, 23, 42, 0.5); }
}
.objection-busters > h2 { text-align: center; max-width: 720px; margin: 0 auto 2rem; }
.oblist {
  max-width: 1100px; margin: 0 auto;
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .oblist { grid-template-columns: repeat(2, 1fr); } }
.oblist > div {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.oblist h3 { font-size: 1.05rem; }
.oblist p { color: var(--muted); margin: 0; }

/* ─── Final CTA ─── */
.final-cta {
  max-width: 720px; margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 1.5rem;
  text-align: center;
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto;
  color: var(--muted); font-size: 0.9rem;
}
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
