/* =========================================================
   DHNN Onboarding — Design tokens
   Paleta inspirada en dhnn.com: charcoal + amarillo señal
   ========================================================= */
:root {
  --ink: #1c1c1c;
  --charcoal: #282728;
  --charcoal-2: #2d2c2d;
  --yellow: #ffff05;
  --white: #ffffff;
  --paper: #f4f4f4;
  --line: #e7e7e7;
  --gray-500: #7b7b7b;
  --gray-400: #9b9b9b;
  --gray-300: #c4c4c4;
  --orange: #f58037;

  --font: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.logo .tm { font-size: 0.6rem; vertical-align: super; color: var(--gray-500); }

.logo-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--ink);
  padding: 3px 8px;
  border-radius: 5px;
}

nav.main-nav {
  display: flex;
  gap: 32px;
}

nav.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-500);
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] { color: var(--ink); }

nav.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--white);
  padding: 96px 0 72px;
}

.hero .wrap { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 50%;
}

h1.display {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  max-width: 900px;
}

h1.display mark {
  background: var(--yellow);
  color: var(--ink);
  padding: 0 10px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero p.lede {
  margin-top: 24px;
  max-width: 620px;
  font-size: 1.15rem;
  color: var(--gray-300);
}

.hero-meta {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-meta div strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
}
.hero-meta div span {
  font-size: 0.85rem;
  color: var(--gray-400);
}

/* ---------- Sections ---------- */
section.block { padding: 72px 0; }
section.block.tight { padding: 48px 0; }
section.block.alt { background: var(--paper); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--gray-500);
  max-width: 420px;
}

.kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 10px;
  display: block;
}

/* ---------- Grid / Cards ---------- */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  border-color: var(--ink);
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 18px;
  font-size: 1.1rem;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p { color: var(--gray-500); font-size: 0.95rem; }

.card a.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 700;
}
.card a.more::after { content: "→"; transition: transform 0.15s ease; }
.card a.more:hover::after { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: #e6e600; }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-outline:hover { border-color: var(--white); }

.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #000; }

/* ---------- Checklist ---------- */
.checklist { display: flex; flex-direction: column; gap: 12px; }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}

.check-item input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--ink);
  flex-shrink: 0;
}

.check-item.done { background: var(--paper); border-color: var(--gray-300); }
.check-item.done span.label { text-decoration: line-through; color: var(--gray-400); }

.check-item span.label { font-weight: 600; font-size: 0.98rem; }
.check-item span.hint { display: block; font-size: 0.85rem; color: var(--gray-500); font-weight: 400; margin-top: 2px; }

.progress-bar {
  height: 8px;
  background: var(--paper);
  border-radius: 999px;
  overflow: hidden;
  margin: 20px 0 8px;
}
.progress-bar span {
  display: block;
  height: 100%;
  background: var(--yellow);
  width: 0%;
  transition: width 0.25s ease;
}
.progress-label { font-size: 0.85rem; color: var(--gray-500); font-weight: 600; }

/* ---------- Table (FAQ / políticas) ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  padding: 20px 0;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--gray-400); font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding-bottom: 20px; color: var(--gray-500); max-width: 720px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.cta-banner h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.cta-banner p { color: var(--gray-300); font-size: 0.9rem; max-width: 460px; }
.cta-banner .btn { flex-shrink: 0; }

/* ---------- Policy list (estilo documento) ---------- */
.policy-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.policy-item { border-bottom: 1px solid var(--line); background: var(--white); }
.policy-item:last-child { border-bottom: none; }
.policy-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
}
.policy-item summary::-webkit-details-marker { display: none; }
.policy-item:hover summary { background: var(--paper); }
.policy-left { display: flex; align-items: center; gap: 14px; }
.policy-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.policy-name { font-weight: 700; font-size: 0.98rem; }
.policy-type { font-size: 0.8rem; color: var(--gray-500); margin-top: 2px; }
.policy-arrow {
  font-size: 1.2rem;
  color: var(--gray-400);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
.policy-item[open] .policy-arrow { transform: rotate(45deg); }
.policy-body { padding: 0 22px 20px 76px; color: var(--gray-500); font-size: 0.92rem; }

/* ---------- Pills / tags ---------- */
.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--gray-500);
}
.pill.yellow { background: var(--yellow); color: var(--ink); }
.pill.orange { background: #fff1e6; color: var(--orange); }

/* ---------- Timeline (cultura / primeros días) ---------- */
.timeline { position: relative; padding-left: 28px; border-left: 2px solid var(--line); }
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--ink);
}
.timeline-item h4 { font-weight: 800; margin-bottom: 4px; }
.timeline-item p { color: var(--gray-500); max-width: 560px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--ink);
  color: var(--gray-400);
  padding: 56px 0 32px;
  margin-top: 40px;
}
footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
footer.site-footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
footer.site-footer .locations { display: flex; gap: 24px; flex-wrap: wrap; font-size: 0.9rem; }
footer.site-footer .bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

@media (max-width: 860px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: block; }
  .two-col { grid-template-columns: 1fr; }
  .hero-meta { gap: 28px; }
}

nav.main-nav.open {
  display: flex;
  position: absolute;
  top: 76px;
  left: 0; right: 0;
  background: var(--white);
  flex-direction: column;
  padding: 16px 24px 24px;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
