/* Fraguia · sistema de diseño editorial minimalista.
   Tokens heredados del sistema probado: fondo cálido, tarjetas blancas con
   borde suave, acento esmeralda, titulares serif, cuerpo sans. Sin emojis. */

:root {
  --bg: #faf9f7;
  --card: #ffffff;
  --border: #e8e4df;
  --ink: #1c1917;      /* stone-900 */
  --body: #57534e;     /* stone-600 */
  --muted: #a8a29e;    /* stone-400 */
  --accent: #059669;   /* emerald-600 */
  --accent-dark: #047857;
  --accent-soft: #ecfdf5;
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, .serif {
  font-family: Lora, Georgia, "Times New Roman", serif;
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ── */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: Lora, Georgia, serif; font-weight: 700; font-size: 22px; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--body); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 13px 26px; border-radius: 999px; transition: all .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ── Hero ── */
.hero { padding: 88px 0 72px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 18px; margin-bottom: 28px; max-width: 46ch; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .note { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* Tarjeta de "obra" del hero: simula un tablero de proyecto */
.board {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(28, 25, 23, .07);
  padding: 22px; font-size: 13.5px;
}
.board .board-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.board .board-head strong { color: var(--ink); font-size: 14px; }
.badge { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); padding: 3px 10px; border-radius: 999px; }
.step-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; }
.step-row + .step-row { margin-top: 6px; }
.step-row .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.step-row.done { background: var(--accent-soft); color: #065f46; }
.step-row.done .dot { background: var(--accent); }
.step-row.doing { background: #fafaf9; color: var(--ink); border: 1px dashed var(--border); }
.step-row.doing .dot { background: #f59e0b; }
.step-row.todo { color: var(--muted); }
.step-row.todo .dot { background: var(--border); }

/* ── Secciones ── */
section { padding: 72px 0; }
section.alt { background: #f5f4f1; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
h2 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 12px; }
.section-sub { max-width: 62ch; margin-bottom: 40px; }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px;
}
.card h3 { font-size: 18px; margin: 14px 0 8px; }
.card p { font-size: 14.5px; }
.icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
}
.icon svg { width: 21px; height: 21px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Proceso numerado */
.steps { counter-reset: paso; }
.step { position: relative; padding-left: 0; }
.step .num {
  font-family: Lora, Georgia, serif; font-weight: 700; font-size: 15px;
  width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14px; }

/* Precios / paquetes */
.pack { display: flex; flex-direction: column; }
.pack .price { font-family: Lora, Georgia, serif; font-size: 30px; color: var(--ink); font-weight: 700; margin: 8px 0 2px; }
.pack .price small { font-family: Inter, sans-serif; font-size: 13px; color: var(--muted); font-weight: 500; }
.pack ul { list-style: none; margin: 16px 0 22px; }
.pack li { font-size: 14px; padding: 6px 0 6px 26px; position: relative; }
.pack li::before {
  content: ""; position: absolute; left: 2px; top: 12px; width: 14px; height: 8px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg);
}
.pack .btn { margin-top: auto; text-align: center; }
.pack.featured { border-color: var(--accent); box-shadow: 0 12px 34px rgba(5, 150, 105, .10); }
.tag-pop { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); }

/* FAQ */
details {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 22px; margin-bottom: 10px;
}
details summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details summary::after { content: "+"; font-size: 20px; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; font-size: 14.5px; }

/* CTA final */
.cta-final { text-align: center; }
.cta-final .card { padding: 52px 32px; }
.cta-final h2 { margin-bottom: 10px; }
.cta-final p { max-width: 52ch; margin: 0 auto 26px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 34px 0; font-size: 13px; color: var(--muted); }
footer .cols { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--body); text-decoration: none; margin-left: 18px; }
footer a:hover { color: var(--ink); }

/* Páginas legales */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.legal h1 { font-size: 32px; margin-bottom: 8px; }
.legal .updated { font-size: 13px; color: var(--muted); margin-bottom: 34px; }
.legal h2 { font-size: 20px; margin: 30px 0 10px; }
.legal p, .legal li { font-size: 14.5px; }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal a { color: var(--accent-dark); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 56px 0 48px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  section { padding: 52px 0; }
}
