/* =========================================
   AAHHOO / DrMoya Design System
   Basado en el estilo de claridad de Mi Historia
   Versión 1.0
========================================= */

:root {
  /* Colores */
  --bg: #f6f7f9;
  --surface: #ffffff;
  --soft: #eceef1;
  --text: #15171a;
  --muted: #62666d;
  --line: #dedfe3;
  --accent: #111111;
  --accent-hover: #000000;
  --white: #ffffff;

  /* Radios */
  --radius: 22px;
  --radius-sm: 18px;
  --radius-xs: 12px;

  /* Tipografía */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reset básico */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Tipografía */
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin-top: 0; }
.muted { color: var(--muted); }
.eyebrow {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Layout */
.page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 48px;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px max(20px, calc((100vw - 980px) / 2));
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

/* Tarjetas */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 40px);
  margin: 24px 0;
}

/* Callout oscuro */
.callout {
  background: var(--accent);
  color: white;
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px);
  margin: 24px 0;
}
.callout p { color: rgba(255,255,255,0.85); }

/* Botones */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--radius-xs);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--accent);
  transition: 0.15s ease;
}
.button.primary {
  background: var(--accent);
  color: white;
}
.button.primary:hover { background: var(--accent-hover); }
.button.secondary {
  background: white;
  color: var(--accent);
}
.button.secondary:hover { background: var(--soft); }

/* Listas con check */
.checklist {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}
.checklist li {
  position: relative;
  padding-left: 30px;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 900;
}

/* Pasos numerados */
.steps {
  display: grid;
  gap: 14px;
}
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.step-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

/* Utilidades */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }

/* Responsive */
@media (max-width: 640px) {
  .page { padding-top: 40px; }
  .step { grid-template-columns: 42px 1fr; }
}