/* LegalSV — Legal El Salvador · design system v1 */
:root {
  --ink: #21272f;
  --ink-soft: #4b5563;
  --paper: #faf8f4;
  --card: #ffffff;
  --green: #1e4d38;
  --green-dark: #143527;
  --gold: #b07d2b;
  --gold-soft: #f3e8d3;
  --line: #e5e0d6;
  --wa: #1fa855;
  --radius: 14px;
  --maxw: 1080px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
}
h1, h2, h3 { font-family: "Source Serif 4", Georgia, serif; line-height: 1.2; color: var(--green-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: .5rem; }
h3 { font-size: 1.2rem; }
p { color: var(--ink-soft); }
a { color: var(--green); }
img { max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: var(--maxw); margin: 0 auto; }
.logo { font-family: "Source Serif 4", Georgia, serif; font-weight: 700; font-size: 1.25rem; color: var(--green-dark); text-decoration: none; }
.logo span { color: var(--gold); }
.nav-right { display: flex; gap: 14px; align-items: center; }
.lang { font-size: .9rem; text-decoration: none; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; color: var(--ink-soft); background: var(--card); }
.lang:hover { border-color: var(--gold); }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 13px 22px; border-radius: 999px; font-size: 1rem;
  transition: transform .1s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 4px 14px rgba(31,168,85,.28); }
.btn-ghost { border: 1.5px solid var(--green); color: var(--green); background: transparent; }
.btn small { display: block; font-weight: 400; font-size: .78rem; opacity: .9; }

/* Hero */
.hero { padding: 64px 0 48px; }
.hero .kicker { color: var(--gold); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .82rem; margin-bottom: 10px; }
.hero h1 { max-width: 720px; margin-bottom: 18px; }
.hero .sub { font-size: 1.15rem; max-width: 640px; margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.trust-strip { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; font-size: .92rem; color: var(--ink-soft); }
.trust-strip div { display: flex; align-items: center; gap: 8px; }

/* Sections */
section { padding: 56px 0; }
section.alt { background: #f2efe8; }
.section-head { max-width: 680px; margin-bottom: 34px; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 10px;
}
.card.featured { border: 2px solid var(--gold); position: relative; }
.card .tag {
  position: absolute; top: -12px; left: 22px; background: var(--gold); color: #fff;
  font-size: .75rem; font-weight: 700; padding: 3px 12px; border-radius: 999px;
  letter-spacing: .04em;
}
.card h3 { margin-top: 4px; }
.price { font-family: "Source Serif 4", Georgia, serif; font-size: 1.6rem; font-weight: 700; color: var(--green-dark); }
.price small { font-family: "Inter", sans-serif; font-size: .82rem; font-weight: 400; color: var(--ink-soft); }
.card ul { list-style: none; display: grid; gap: 7px; font-size: .95rem; color: var(--ink-soft); }
.card ul li::before { content: "✓"; color: var(--gold); font-weight: 700; margin-right: 8px; }
.card .meta { font-size: .85rem; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 10px; }
.card .btn { margin-top: auto; text-align: center; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center;
  background: var(--gold-soft); color: var(--gold); font-weight: 700; border-radius: 50%;
  margin-bottom: 10px; font-family: "Source Serif 4", serif;
}

/* Firm block */
.firm { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.firm-card { background: var(--green-dark); color: #efece4; border-radius: var(--radius); padding: 34px; }
.firm-card h2, .firm-card h3 { color: #fff; }
.firm-card p { color: #cfd8cf; }
.firm-card .credential { display: flex; gap: 10px; margin-top: 14px; font-size: .95rem; align-items: baseline; }
.firm-card .credential::before { content: "▪"; color: var(--gold); }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details p { margin-top: 10px; font-size: .95rem; }

/* Honesty note */
.honesty { background: var(--gold-soft); border-radius: var(--radius); padding: 22px 26px; font-size: .95rem; color: #6b5518; }

/* Footer */
footer { background: var(--green-dark); color: #b9c4ba; padding: 44px 0 30px; font-size: .9rem; }
footer a { color: #e4e9e2; }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; margin-bottom: 26px; }
footer .legal { border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; font-size: .8rem; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  background: var(--wa); color: #fff; text-decoration: none;
  padding: 13px 20px; border-radius: 999px; font-weight: 700;
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
}

@media (max-width: 760px) {
  .firm { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 36px; }
  .nav { flex-wrap: wrap; gap: 10px; }
  .nav-right { flex-wrap: wrap; }
  body { padding-bottom: 76px; }
}
