/* ============================================================
   SITE.CSS — layout y componentes (agnóstico de marca).
   Usa SOLO variables de tokens.css. No metas colores/fuentes
   literales aquí: si lo haces, rompes el gate de diseño.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0 0 .4em; letter-spacing: -.02em; }
h1 { font-size: clamp(34px, 6vw, 60px); }
h2 { font-size: clamp(27px, 4vw, 42px); }
h3 { font-size: clamp(19px, 2.4vw, 24px); }
p  { margin: 0 0 1em; }
.muted { color: var(--muted); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sec  { padding: clamp(56px, 7vw, 88px) 0; }
.sec-sm { padding: clamp(40px, 6vw, 70px) 0; }
.center { text-align: center; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 60ch; }
.eyebrow { font-family: var(--font-body); font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 14px; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 600; font-size: 16px; padding: 13px 24px; border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-strong); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { font-size: 17px; padding: 16px 30px; }

/* Header */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 15px; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: 6px; }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: var(--r-sm); background: transparent; flex-direction: column; gap: 5px; align-items: center; justify-content: center; cursor: pointer; }
.burger span { width: 18px; height: 2px; background: var(--ink); display: block; }
.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 22px; border-bottom: 1px solid var(--border); background: var(--bg); }
.mobile-menu a { padding: 12px 0; font-family: var(--font-display); font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-menu.open { display: flex; }

/* Hero */
.hero { padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 72px); }
.hero h1 { font-size: clamp(40px, 6.4vw, 74px); max-width: 16ch; }
.hero .lead { margin-top: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted-2); }

/* Logos / trust row */
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.trust-label { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.trust-item { font-family: var(--font-display); font-weight: 600; color: var(--muted); font-size: 17px; }

/* Grids */
.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.card .ico { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-bottom: 16px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* Section heads */
.sec-head { max-width: 62ch; margin: 0 auto clamp(36px, 5vw, 56px); }
.sec-head.center { text-align: center; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; }
.step .num { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--accent); }

/* Surface band */
.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band-ink { background: var(--ink); color: #fff; }
.band-ink .muted { color: #aeb6c2; }
.band-ink h2 { color: #fff; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--r-md); padding: 30px; background: var(--bg); }
.price.featured { border-color: var(--accent); box-shadow: var(--shadow-md); position: relative; }
.price.featured::before { content: "Most popular"; position: absolute; top: -12px; left: 30px; background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 12px; padding: 4px 12px; border-radius: 999px; }
.price .tier { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.price .amount { font-family: var(--font-display); font-weight: 700; font-size: 40px; letter-spacing: -.03em; margin: 10px 0 2px; }
.price .per { color: var(--muted-2); font-size: 14px; }
.price ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; }
.price li { font-size: 15px; padding-left: 26px; position: relative; color: var(--muted); }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.price .btn { margin-top: auto; justify-content: center; }

/* FAQ */
.faq { border-bottom: 1px solid var(--border); padding: 6px 0; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 18px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--muted); padding: 0 0 18px; margin: 0; max-width: 70ch; }

/* Forms */
.field { margin: 14px 0; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--r-sm); font-family: var(--font-body); font-size: 16px; background: var(--bg); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-md); max-width: 560px; }

/* CTA final */
.cta { text-align: center; }
.cta h2 { max-width: 18ch; margin-inline: auto; }

/* Footer */
footer { border-top: 1px solid var(--border); background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; padding: 60px 0 40px; }
.foot-grid h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.foot-grid a { display: block; color: var(--muted); font-size: 15px; padding: 5px 0; }
.foot-grid a:hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0 40px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted-2); flex-wrap: wrap; }

/* Utilities */
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); color: var(--accent-strong); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; }
.score-badge { font-family: var(--font-display); font-weight: 700; font-size: clamp(56px, 10vw, 92px); color: var(--accent); letter-spacing: -.04em; line-height: 1; }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .grid-3, .grid-4, .price-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
