/* Express MX Trámites — charcoal + amber */
:root {
  --ink: #0c0a09;
  --char: #1c1917;
  --amber: #f59e0b;
  --amber-deep: #d97706;
  --fog: #f4f4f5;
  --paper: #fafafa;
  --line: #e4e4e7;
  --muted: #71717a;
  --wide: 1000px;
  --radius: 4px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
a { color: var(--amber-deep); text-decoration: none; }
a:hover { color: var(--ink); }
.wide { max-width: var(--wide); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; top: -60px; left: 12px; z-index: 999; background: var(--amber); color: #111; padding: 8px 12px; font-weight: 800; }
.skip-link:focus { top: 10px; }

.ribbon { background: var(--amber); color: #111; font-size: 12px; font-weight: 600; }
.ribbon__inner { max-width: var(--wide); margin: 0 auto; padding: 6px 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ribbon a { color: #111; font-weight: 800; text-decoration: underline; }
.ribbon__meta { opacity: .85; }

.masthead { background: var(--char); position: sticky; top: 0; z-index: 100; }
.masthead__inner { max-width: var(--wide); margin: 0 auto; padding: 0 20px; min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { color: #fff; }
.brand__seal {
  width: 34px; height: 34px; background: var(--amber); color: #111;
  display: grid; place-items: center; font-family: var(--font-display); font-size: 12px; font-weight: 800;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.brand__name { font-family: var(--font-display); font-size: .95rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.brand__sub { display: block; font-family: var(--font-body); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.55); margin-top: 2px; }

.topnav { display: flex; align-items: center; gap: 2px; }
.topnav__link { padding: 8px 11px; color: rgba(255,255,255,.85); font-weight: 600; font-size: 13px; }
.topnav__link:hover { color: #fff; background: rgba(255,255,255,.06); }
.topnav__link.is-active { color: var(--amber); }
.topnav__cta { margin-left: 8px; padding: 9px 15px; background: var(--amber); color: #111; font-weight: 800; font-size: 13px; }
.topnav__cta:hover { background: #fbbf24; color: #111; }
.burger { display: none; flex-direction: column; gap: 4px; padding: 8px; background: none; border: 1px solid rgba(255,255,255,.25); cursor: pointer; }
.burger span { width: 18px; height: 2px; background: #fff; }

.hero {
  background: var(--char);
  color: #fff;
  padding: 52px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; right: -8%; top: 10%; width: 42%; height: 120%;
  background: linear-gradient(135deg, transparent 40%, rgba(245,158,11,.18) 40%, rgba(245,158,11,.18) 58%, transparent 58%);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; position: relative; z-index: 1; }
.hero__eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); margin-bottom: 12px; display: inline-block; }
.hero__title { font-family: var(--font-display); font-size: clamp(1.9rem, 4.2vw, 2.85rem); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; margin-bottom: 14px; }
.hero__title em { font-style: normal; color: var(--amber); }
.hero__lead { color: rgba(255,255,255,.72); max-width: 42ch; margin-bottom: 22px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; font-weight: 800; font-size: 13px; border: 2px solid transparent; letter-spacing: .02em;
}
.btn--gold, .btn--primary { background: var(--amber); color: #111; }
.btn--gold:hover, .btn--primary:hover { background: #fbbf24; color: #111; }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn--outline:hover { border-color: #fff; color: #fff; }
.btn--forest { background: var(--ink); color: #fff; }
.btn--forest:hover { color: #fff; opacity: .9; }

.hero__panel {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); padding: 20px;
}
.hero__panel h2 { font-family: var(--font-display); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--amber); margin-bottom: 12px; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist b { color: var(--amber); font-family: var(--font-display); }

.section { padding: 48px 0; }
.section--cream { background: var(--fog); }
.section--paper { background: var(--paper); }
.section-head { margin-bottom: 24px; }
.section-head__kicker { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-deep); margin-bottom: 6px; }
.section-head__title { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; letter-spacing: -.02em; }
.section-head__desc { color: var(--muted); margin-top: 8px; max-width: 48ch; }

.mosaic { display: grid; gap: 12px; }
.mosaic--3 { grid-template-columns: repeat(3, 1fr); }
.tile {
  background: #fff; border: 1px solid var(--line); padding: 20px 18px;
  border-left: 4px solid var(--amber);
}
.tile__num { font-family: var(--font-display); font-size: 12px; font-weight: 800; color: var(--amber-deep); margin-bottom: 8px; letter-spacing: .08em; }
.tile__title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.tile__text { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.tile__link { font-weight: 800; font-size: 13px; color: var(--ink); }

.banner {
  background: var(--char); color: #fff; padding: 28px; max-width: 680px;
  display: grid; gap: 12px;
}
.banner h2 { font-family: var(--font-display); font-size: 1.35rem; }
.banner p { color: rgba(255,255,255,.7); font-size: 14px; }
.banner .btn--gold { width: fit-content; }

.page-head { padding: 36px 0 0; }
.page-head__kicker { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-deep); margin-bottom: 6px; }
.page-head__title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.page-head__desc { color: var(--muted); max-width: 48ch; }

.footer { background: #09090b; color: #a1a1aa; padding: 36px 0 22px; font-size: 13px; }
.footer a { color: #f4f4f5; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; margin-bottom: 22px; }
.footer__brand-name { font-family: var(--font-display); color: #fff; margin-bottom: 8px; }
.footer h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #71717a; margin-bottom: 10px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer__bottom { padding-top: 16px; border-top: 1px solid #27272a; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 12px; }

.timeline { max-width: 640px; }
.tl-item { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.tl-item:last-child { border-bottom: 0; }
.tl-item__dot { display: none; }
.tl-item__phase { font-family: var(--font-display); font-size: 12px; font-weight: 800; color: var(--amber-deep); }
.tl-item__title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.tl-item__text { font-size: 14px; color: var(--muted); }

.ledger { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 18px; }
.ledger th, .ledger td { padding: 11px 12px; border: 1px solid var(--line); text-align: left; }
.ledger th { background: var(--fog); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.ledger .yes { color: #15803d; font-weight: 800; }
.ledger .no { color: #b91c1c; font-weight: 800; }
.scope-note { padding: 14px 16px; background: var(--fog); border-left: 4px solid var(--amber); font-size: 13px; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; max-width: 900px; }
.aside-card { padding: 18px; border: 1px solid var(--line); background: #fff; margin-bottom: 12px; }
.aside-card h3 { font-family: var(--font-display); font-size: 14px; margin-bottom: 10px; }
.aside-card dt { font-size: 11px; text-transform: uppercase; color: var(--muted); margin-top: 8px; font-weight: 800; }
.aside-card dt:first-child { margin-top: 0; }
.aside-card dd { margin-top: 2px; font-size: 13px; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 12px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size: 14px; background: #fff;
}

.wizard { max-width: 520px; margin: 0 auto; }
.wizard__track { display: flex; gap: 6px; margin-bottom: 22px; }
.wizard__seg { flex: 1; height: 4px; background: var(--line); }
.wizard__seg.is-done, .wizard__seg.is-current { background: var(--amber); }
.wizard__step-label { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.wizard__step-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; }
.wizard__nav { display: flex; gap: 10px; margin-top: 18px; }
.wizard__prev, .wizard__next { flex: 1; }

.topic-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.topic-pill {
  padding: 8px 14px; border: 1px solid var(--line); font-size: 13px; font-weight: 700; cursor: pointer; background: #fff;
}
.topic-pill.is-active { background: var(--char); color: #fff; border-color: var(--char); }

.faq { max-width: 640px; }
.faq__item { border: 1px solid var(--line); margin-bottom: 8px; background: #fff; }
.faq__q { padding: 14px 16px; font-weight: 700; cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__a { padding: 0 16px 14px; color: var(--muted); font-size: 14px; }
.prose { max-width: 640px; }
.prose h2 { font-family: var(--font-display); font-size: 1.1rem; margin: 22px 0 10px; }
.prose p, .prose li { color: var(--muted); margin-bottom: 10px; font-size: 14px; }
.prose ul { padding-left: 18px; }

@media (max-width: 768px) {
  .burger { display: flex; }
  .topnav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #111; flex-direction: column; padding: 12px 20px 16px;
  }
  .topnav.is-open { display: flex; }
  .topnav__cta { margin-left: 0; text-align: center; }
  .hero__grid, .mosaic--3, .footer__grid, .contact-grid { grid-template-columns: 1fr; }
  .hero::after { display: none; }
  .tl-item { grid-template-columns: 1fr; gap: 4px; }
}
