:root {
  --ink: #14212b;
  --ink-soft: #4a5a66;
  --paper: #fbf8f3;
  --card: #ffffff;
  --line: #e6dfd4;
  --accent: #0f7b6c;
  --accent-ink: #ffffff;
  --gold: #c8862a;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

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

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 248, 243, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: "Fraunces", Georgia, serif; font-size: 24px; font-weight: 600; color: var(--ink); text-decoration: none; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 88px 0 72px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(36px, 6vw, 60px); max-width: 15ch; }
.hero p.lead { font-size: 20px; color: var(--ink-soft); max-width: 58ch; margin: 0 0 32px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 1px solid var(--accent);
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { color: var(--accent); background: transparent; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: #f3eee5; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(28px, 4vw, 38px); }
.section-intro { color: var(--ink-soft); max-width: 60ch; margin: 0 0 36px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.card h3 { font-size: 22px; }
.card p { color: var(--ink-soft); margin: 0 0 12px; }
.card ul { margin: 0; padding-left: 18px; color: var(--ink-soft); }
.card li { margin-bottom: 4px; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent);
  background: #e3f1ee; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px;
}

.steps { counter-reset: paso; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding-top: 52px; }
.step::before {
  counter-increment: paso; content: counter(paso);
  position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink); color: var(--paper); display: grid; place-items: center;
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
}
.step h3 { font-size: 20px; }
.step p { color: var(--ink-soft); margin: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.datos { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.datos dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; }
.datos dt { font-weight: 600; color: var(--ink); }
.datos dd { margin: 0; color: var(--ink-soft); overflow-wrap: anywhere; }

/* Footer */
footer { padding: 32px 0 48px; font-size: 14px; color: var(--ink-soft); border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--ink-soft); margin-right: 16px; }

/* Legal pages */
.legal { padding: 56px 0 72px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); }
.legal h2 { font-size: 22px; margin-top: 36px; }
.legal p, .legal li { color: #2b3a45; }
.legal .meta { color: var(--ink-soft); font-size: 15px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 6px; vertical-align: top; }

@media (max-width: 820px) {
  .grid, .steps, .contact { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hero { padding: 56px 0 48px; }
  .datos dl { grid-template-columns: 1fr; gap: 2px; }
  .datos dd { margin-bottom: 10px; }
}
