:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --surface: #ffffff;
  --border: #e3e6ea;
  --text: #15181d;
  --text-dim: #5b6572;
  --accent: #2f6df6;
  --accent-text: #ffffff;
  --accent-soft: #eaf1ff;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --radius: 14px;
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1116;
    --bg-alt: #141922;
    --surface: #161c25;
    --border: #262f3c;
    --text: #eef1f5;
    --text-dim: #9aa6b6;
    --accent: #5b8cff;
    --accent-text: #0b1220;
    --accent-soft: #1a2439;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

:root[data-theme="dark"] {
  --bg: #0e1116;
  --bg-alt: #141922;
  --surface: #161c25;
  --border: #262f3c;
  --text: #eef1f5;
  --text-dim: #9aa6b6;
  --accent: #5b8cff;
  --accent-text: #0b1220;
  --accent-soft: #1a2439;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; }

/* ---------- nav ---------- */
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent); color: var(--accent-text);
  display: grid; place-items: center; font-weight: 800; font-size: 16px;
}
.nav-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: var(--text-dim); font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 16px; color: var(--text) !important; background: var(--surface);
}

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 16px 56px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  max-width: 20ch;
  margin: 0 auto 20px;
  font-weight: 700;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { max-width: 58ch; margin: 0 auto; color: var(--text-dim); font-size: 1.05rem; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .08s ease, opacity .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { opacity: .9; }
.btn-ghost { border-color: var(--border); background: var(--surface); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-dim); }
.btn-block { display: block; text-align: center; }
.btn-disabled { background: var(--bg-alt); color: var(--text-dim); border-color: var(--border); pointer-events: none; }

/* ---------- secciones ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 64px 16px; }
.section-alt { max-width: none; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-bottom: 8px; }
.section-head p { color: var(--text-dim); }

/* ---------- productos ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px;
}
.card-tag {
  align-self: flex-start;
  font-size: 12px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  padding: 5px 10px; border-radius: 999px;
}
.card h3 { font-size: 1.3rem; }
.card-tagline { color: var(--text-dim); font-size: .97rem; }
.card ul { margin: 0; padding-left: 20px; color: var(--text-dim); font-size: .95rem; }
.card li { margin-bottom: 6px; }
.card-precio { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.card-precio strong { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; }
.card-precio span { color: var(--text-dim); font-size: .9rem; }
.card-nota { font-size: .85rem; color: var(--accent); }

/* ---------- pasos ---------- */
.pasos {
  list-style: none; margin: 0; padding: 0 16px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px;
}
.pasos li { display: flex; flex-direction: column; gap: 8px; }
.paso-num {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700;
}
.pasos h3 { font-size: 1.1rem; }
.pasos p { color: var(--text-dim); font-size: .95rem; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; }
details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 20px;
}
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--text-dim); margin-top: 10px; font-size: .96rem; }

/* ---------- cta + footer ---------- */
.cta { text-align: center; padding: 72px 16px; background: var(--bg-alt); border-top: 1px solid var(--border); }
.cta h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 10px; }
.cta p { color: var(--text-dim); margin-bottom: 24px; }
.footer {
  max-width: var(--maxw); margin: 0 auto;
  padding: 32px 16px 48px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--text-dim); font-size: .9rem;
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }
