:root {
  --bg: #f6f3ee;
  --bg-alt: #ece7df;
  --ink: #1f2328;
  --ink-soft: #4a5560;
  --line: #d8d1c6;
  --accent: #f2762e;
  --accent-ink: #b8501a;
  --card: #ffffff;
  --dark: #1f2328;
  --radius: 14px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent-ink); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent-ink); margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 40ch; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 50; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--accent); color: #1a0d05; }
.btn-primary:hover { background: #ff8a45; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: rgba(246, 243, 238, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand svg { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--accent-ink); }
.nav .btn { padding: .55em 1.1em; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--ink-soft); }

/* Maqueta de la app (HTML/CSS, sin imagenes) */
.mock { background: var(--dark); border-radius: 18px; padding: 14px; box-shadow: 0 30px 60px -25px rgba(31, 35, 40, .55); color: #e9ecef; font-size: .85rem; }
.mock-bar { display: flex; gap: 6px; padding: 4px 4px 12px; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4048; }
.mock-body { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.mock-side { background: #262b31; border-radius: 10px; padding: 12px 10px; }
.mock-side b { display: block; font-size: .8rem; margin-bottom: 12px; color: #fff; }
.mock-side span { display: block; padding: 6px 8px; border-radius: 6px; color: #aab2bb; margin-bottom: 2px; }
.mock-side span.on { background: var(--accent); color: #1a0d05; font-weight: 700; }
.mock-main { background: #fff; color: var(--ink); border-radius: 10px; padding: 14px; }
.mock-main h4 { margin: 0 0 10px; font-size: .95rem; }
.mock-search { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; color: var(--ink-soft); margin-bottom: 10px; }
.mock-row { display: grid; grid-template-columns: 74px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid #eee; }
.mock-row strong { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .8rem; background: #f1efe9; border-radius: 5px; padding: 2px 6px; text-align: center; }
.mock-row small { display: block; color: var(--ink-soft); }
.tag { font-size: .7rem; font-weight: 700; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.tag-proc { background: #fff1e6; color: var(--accent-ink); }
.tag-ok { background: #e6f4ea; color: #1e6b34; }
.tag-pend { background: #eef0f3; color: #4a5560; }

/* Secciones */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 44px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; background: #fff1e6; display: grid; place-items: center; margin-bottom: 14px; }
.feature .ico svg { width: 24px; height: 24px; stroke: var(--accent-ink); }
.feature p { color: var(--ink-soft); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: paso; }
.step { position: relative; padding: 26px 26px 26px 76px; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); }
.step::before { counter-increment: paso; content: counter(paso); position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 800; }
.step p { color: var(--ink-soft); margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 0; top: 14px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%231a0d05' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent-ink); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); }

.cta { background: var(--dark); color: var(--bg); border-radius: 22px; padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta h2 { color: #fff; }
.cta p { color: #c9ced4; margin: 0; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta .btn-ghost { border-color: #c9ced4; color: #fff; }
.cta .btn-ghost:hover { background: #fff; color: var(--ink); }
.cta-mail { color: #fff; font-weight: 700; }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-soft); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer a { color: var(--ink-soft); margin-left: 20px; }
.footer a:first-child { margin-left: 0; }

/* Paginas legales */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal .updated { color: var(--ink-soft); font-size: .92rem; }
.legal li { margin-bottom: .4em; }

/* Responsive */
@media (max-width: 920px) {
  .hero-grid, .split, .cta { grid-template-columns: 1fr; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .cta { padding: 40px 28px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; }
  .nav .btn { justify-content: center; margin-top: 8px; }
  .nav-toggle { display: block; }
  .hero { padding: 40px 0; }
  .features, .steps { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .footer a { margin: 0 16px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
