:root {
  --bg: #fbfaf7;
  --bg-alt: #f1efe9;
  --surface: #ffffff;
  --text: #1c1917;
  --muted: #6b645c;
  --line: #e4e0d8;
  --brand: #0f766e;
  --brand-ink: #ffffff;
  --brand-soft: #d9f0ec;
  --accent: #f59e0b;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121412;
    --bg-alt: #1a1d1b;
    --surface: #202422;
    --text: #f2f0eb;
    --muted: #a8a29a;
    --line: #2f3431;
    --brand: #2dd4bf;
    --brand-ink: #062a26;
    --brand-soft: #173a36;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; text-align: center; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.sub { text-align: center; color: var(--muted); margin-bottom: 2.5rem; }

/* Nav */
.nav {
  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);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); text-decoration: none; }
.logo-mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: var(--brand); color: var(--brand-ink); font-weight: 800;
}
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--text); }
.lang {
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 600; font-size: .85rem; cursor: pointer;
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .lang { margin-left: auto; }
}

/* Buttons */
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 12px; font-weight: 600;
  text-decoration: none; text-align: center; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.full { width: 100%; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; background: var(--brand-soft); color: var(--brand);
  padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: .85rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 12px; }
.hero-card { display: flex; flex-direction: column; align-items: center; }
.caption { font-size: .8rem; color: var(--muted); margin-top: 12px; }

.phone {
  width: 250px; border-radius: 34px; padding: 12px; background: #1c1917;
  box-shadow: 0 30px 60px rgba(0,0,0,.18); transform: rotate(3deg);
}
.phone-bar { width: 70px; height: 6px; border-radius: 6px; background: #3a3531; margin: 2px auto 10px; }
.phone-screen { background: #fffdf8; border-radius: 24px; padding: 14px; min-height: 420px; }
.mock-hero {
  background: linear-gradient(135deg, #b45309, #f59e0b); color: #fff; border-radius: 14px;
  padding: 26px 14px; display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px;
}
.mock-hero span { font-weight: 800; font-size: 1.05rem; }
.mock-hero small { opacity: .9; font-size: .72rem; }
.mock-btn { background: #0f766e; color: #fff; text-align: center; border-radius: 10px; padding: 9px; font-size: .8rem; font-weight: 600; margin-bottom: 8px; }
.mock-btn.alt { background: #e7e5e4; color: #1c1917; }
.mock-lines i { display: block; height: 8px; background: #e7e5e4; border-radius: 4px; margin: 10px 0; }
.mock-lines i.short { width: 60%; }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.mock-grid b { height: 56px; border-radius: 10px; background: #fde7c4; }
.mock-grid b:nth-child(2), .mock-grid b:nth-child(3) { background: #f6d3a3; }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.section h2 { margin-bottom: .4em; }
#servicios h2, #proceso h2, #faq h2 { margin-bottom: 1.6em; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { color: var(--muted); margin: 0; }
.icon { font-size: 1.6rem; margin-bottom: 10px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; margin-bottom: 24px; }
.plan {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px;
}
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: var(--brand-ink); font-size: .75rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.price { font-size: 2.6rem; font-weight: 800; margin: 0; letter-spacing: -0.03em; }
.price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; }
.plan li { padding: 7px 0 7px 26px; position: relative; border-top: 1px solid var(--line); font-size: .95rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps span {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-weight: 800; margin-bottom: 12px;
}
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
summary { font-weight: 600; cursor: pointer; }
details p { color: var(--muted); margin: 12px 0 0; }

/* Form */
.form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form input, .form textarea, .form select {
  font: inherit; font-weight: 400; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); width: 100%;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.contact-alt { margin-top: 20px; color: var(--muted); }

.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .cards, .pricing { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .plan.featured { margin-top: 8px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .cta-row .btn { flex: 1; }
}

/* Contact cards + floating WhatsApp */
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 8px; }
.contact-card {
  display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-card:hover { border-color: var(--brand); }
.cc-icon { font-size: 1.5rem; }
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 20; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.wa-float:hover { transform: scale(1.05); }
@media (max-width: 520px) { .contact-cards { grid-template-columns: 1fr; } }
.pay-methods { text-align: center; margin: 8px 0 6px; color: var(--muted); }
.pay-methods b { color: var(--text); font-weight: 600; }
.footer { padding-bottom: 96px; } /* room for the WhatsApp button */
