:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #15211f;
  --muted: #55625f;
  --line: #e4e1d9;
  --brand: #0d6a60;
  --brand-ink: #ffffff;
  --brand-soft: #e3f0ed;
  --accent: #e8664f;
  --radius: 16px;
  --maxw: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1615;
    --surface: #162120;
    --ink: #eef3f1;
    --muted: #a3b2ae;
    --line: #26332f;
    --brand: #3fb3a3;
    --brand-ink: #0b1312;
    --brand-soft: #18302c;
    --accent: #f08a74;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Encabezado */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 24px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.logo svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--brand-ink); }
@media (max-width: 760px) { .nav .hide-sm { display: none; } }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }

/* Portada */
.hero { padding: 72px 0 56px; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 600; max-width: 15ch; }
h1 em { font-style: italic; color: var(--brand); }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 56ch; margin: 22px 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* Teléfono de ejemplo */
.phone {
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  padding: 18px; box-shadow: 0 30px 60px -30px rgba(13, 106, 96, .35);
  max-width: 360px; margin: 0 auto; width: 100%;
}
.phone-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand); font-weight: 700; }
.phone-head strong { display: block; font-size: 15px; }
.phone-head span { font-size: 12px; color: var(--muted); }
.bubble { padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; margin: 8px 0; max-width: 86%; }
.bubble.in { background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.out { background: var(--brand-soft); margin-left: auto; border-bottom-right-radius: 4px; }
.bubble small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; text-align: right; }
.phone-caption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; }

/* Secciones */
section { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; }
.section-head p { color: var(--muted); margin: 14px 0 0; }
.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .g3, .g2 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.alt .card { background: var(--bg); }
.card h3 { font-size: 21px; font-weight: 600; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 22px; height: 22px; }

.pain .card { border-left: 4px solid var(--accent); }

/* Pasos */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 24px; top: 24px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 15px;
  display: grid; place-items: center;
}
.step.card { padding-left: 68px; }
.step .when { font-size: 13px; font-weight: 600; color: var(--brand); text-transform: uppercase; letter-spacing: .04em; display: block; margin-bottom: 6px; }

/* Bloque de medición */
.proof { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .proof { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }

/* Llamado final */
.final { text-align: center; }
.final .card { padding: 48px 24px; background: var(--brand); color: var(--brand-ink); border: none; }
.final h2 { font-size: clamp(28px, 4vw, 40px); }
.final p { opacity: .9; max-width: 52ch; margin: 14px auto 28px; color: inherit; }
.final .btn-primary { background: var(--brand-ink); color: var(--brand); }

/* Pie */
footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
footer a { color: var(--muted); }

/* Página legal */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); max-width: none; margin-bottom: 8px; }
.legal h2 { font-size: 24px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink); }
.legal .meta { color: var(--muted); }
