/* Global MX Trámite — minimal */
:root {
  --forest: #0f4c5c;
  --forest-deep: #0a3540;
  --forest-mid: #14748f;
  --cream: #f8fafc;
  --gold: #0ea5e9;
  --gold-deep: #0284c7;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #ffffff;
  --white: #ffffff;
  --radius: 8px;
  --radius-lg: 12px;
  --wide: 960px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --font-serif: 'DM Sans', system-ui, sans-serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: var(--forest-mid); text-decoration: none; }
a:hover { color: var(--gold-deep); }
.wide { max-width: var(--wide); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 999;
  background: var(--gold); color: #fff; padding: 8px 14px; border-radius: var(--radius); font-weight: 700;
}
.skip-link:focus { top: 12px; }

.ribbon { background: var(--forest-deep); color: var(--cream); font-size: 12px; }
.ribbon__inner {
  max-width: var(--wide); margin: 0 auto; padding: 6px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.ribbon a { color: #fff; font-weight: 600; }
.ribbon__meta { opacity: 0.75; }

.masthead {
  background: var(--forest);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky; top: 0; z-index: 100;
}
.masthead__inner {
  max-width: var(--wide); margin: 0 auto; padding: 0 20px;
  min-height: 60px; 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: 36px; height: 36px; border-radius: 8px; background: var(--gold);
  display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff;
}
.brand__name { font-size: 1rem; font-weight: 700; line-height: 1.1; }
.brand__sub {
  display: block; font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; opacity: 0.7; margin-top: 2px;
}

.topnav { display: flex; align-items: center; gap: 2px; }
.topnav__link {
  padding: 8px 12px; color: rgba(255,255,255,0.9); font-weight: 600; font-size: 13px;
  border-radius: var(--radius);
}
.topnav__link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.topnav__link.is-active { color: #fff; background: rgba(255,255,255,0.12); }
.topnav__cta {
  margin-left: 6px; padding: 9px 16px; background: var(--gold); color: #fff;
  border-radius: var(--radius); font-weight: 700; font-size: 13px;
}
.topnav__cta:hover { background: var(--gold-deep); color: #fff; }

.burger {
  display: none; flex-direction: column; gap: 4px; padding: 8px;
  background: none; border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius); cursor: pointer;
}
.burger span { width: 20px; height: 2px; background: #fff; }

.hero {
  background: linear-gradient(165deg, var(--forest) 0%, var(--forest-deep) 100%);
  color: #fff; padding: 48px 0 56px;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; }
.hero__eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; opacity: 0.75; margin-bottom: 12px;
}
.hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700;
  line-height: 1.1; margin-bottom: 14px;
}
.hero__title em { font-style: normal; color: var(--gold); }
.hero__lead { font-size: 1rem; opacity: 0.88; 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: 11px 20px; font-weight: 700; font-size: 14px;
  border-radius: var(--radius); border: 1px solid transparent; transition: opacity 0.2s;
}
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { opacity: 0.9; color: #fff; }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn--outline:hover { border-color: #fff; color: #fff; }
.btn--forest { background: var(--forest); color: #fff; }

.hero__panel {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg); padding: 20px;
}
.hero__panel h2 { font-size: 14px; font-weight: 700; margin-bottom: 12px; opacity: 0.9; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.checklist li { display: flex; align-items: flex-start; gap: 8px; }
.checklist svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--gold); margin-top: 2px; }

.section { padding: 48px 0; }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }

.section-head { margin-bottom: 24px; }
.section-head__kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 6px; }
.section-head__title { font-size: 1.5rem; font-weight: 700; }
.section-head__desc { color: var(--muted); margin-top: 8px; max-width: 50ch; }

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

.tile {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.tile__num { font-size: 11px; font-weight: 800; color: var(--gold-deep); margin-bottom: 8px; }
.tile__title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.tile__text { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.tile__link { font-size: 13px; font-weight: 700; }

.banner {
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--cream); text-align: center; max-width: 560px; margin: 0 auto;
}
.banner h2 { font-size: 1.25rem; margin-bottom: 8px; }
.banner p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }

.page-head { padding: 36px 0 0; }
.page-head__kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.page-head__title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: 8px; }
.page-head__desc { color: var(--muted); max-width: 52ch; }

.footer { background: var(--forest-deep); color: rgba(255,255,255,0.75); padding: 36px 0 24px; font-size: 13px; }
.footer a { color: rgba(255,255,255,0.9); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.footer__brand-name { font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer__scope { line-height: 1.5; }
.footer h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); margin-bottom: 10px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer__bottom {
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 12px;
}

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

.wizard { max-width: 520px; margin: 0 auto; }
.wizard__track { display: flex; gap: 6px; margin-bottom: 24px; }
.wizard__seg { flex: 1; height: 3px; background: var(--line); border-radius: 999px; }
.wizard__seg.is-done, .wizard__seg.is-current { background: var(--gold); }
.wizard__step-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.wizard__step-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; }
.wizard__nav { display: flex; gap: 10px; margin-top: 20px; }
.wizard__prev, .wizard__next { flex: 1; }

.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; }
.faq-item summary { padding: 14px 16px; font-weight: 600; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__body { padding: 0 16px 14px; color: var(--muted); font-size: 14px; }

.prose { max-width: 640px; }
.prose h2 { font-size: 1.15rem; margin: 24px 0 10px; }
.prose p, .prose li { color: var(--muted); margin-bottom: 10px; font-size: 14px; }
.prose ul { padding-left: 18px; }

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

.timeline { max-width: 640px; margin: 0 auto; }
.tl-item { position: relative; padding-left: 28px; padding-bottom: 24px; border-left: 2px solid var(--line); margin-left: 8px; }
.tl-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.tl-item__dot {
  position: absolute; left: -7px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--gold); border: 2px solid var(--paper);
}
.tl-item__phase { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.tl-item__title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.tl-item__text { font-size: 14px; color: var(--muted); }

.ledger { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 20px; }
.ledger th, .ledger td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.ledger th { background: var(--cream); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.ledger .yes { color: #059669; font-weight: 700; }
.ledger .no { color: #dc2626; font-weight: 700; }

.scope-note {
  padding: 14px 16px; background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); font-size: 13px; color: var(--muted); line-height: 1.5;
}

.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; max-width: 880px; }
.aside-card {
  padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--cream); margin-bottom: 14px;
}
.aside-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.aside-card dl { font-size: 13px; }
.aside-card dt { font-weight: 700; color: var(--muted); font-size: 11px; text-transform: uppercase; margin-top: 8px; }
.aside-card dt:first-child { margin-top: 0; }
.aside-card dd { margin-top: 2px; }

.form-note { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.5; }

.faq { max-width: 640px; margin: 0 auto; }
.faq__item, .faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; }
.faq__q, .faq-item summary { padding: 14px 16px; font-weight: 600; cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker, .faq-item summary::-webkit-details-marker { display: none; }
.faq__a, .faq-item__body { padding: 0 16px 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }

@media (max-width: 768px) {
  .burger { display: flex; }
  .topnav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--forest-deep); flex-direction: column; padding: 12px 20px 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .topnav.is-open { display: flex; }
  .topnav__cta { margin-left: 0; width: 100%; text-align: center; }
  .hero__grid { grid-template-columns: 1fr; }
  .mosaic, .mosaic--3 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .mosaic:not(.mosaic--3) { grid-template-columns: 1fr; }
}
