/* =============================================================================
   mx-rc — app.css  ·  Design system "Registro Civil México" (handoff Claude Design)
   Guinda institucional #9D2449 / #611232 + acento dorado #E8A33D.
   Reemplaza el CSS anterior. Mapea el diseño a las clases del markup PHP.
   ============================================================================= */

/* ----------------------------------- TOKENS ----------------------------------- */
:root {
  --guinda:            #9D2449;
  --guinda-deep:       #611232;
  --rosa-vino:         #B5295B;
  --guinda-deepest:    #4A0E27;
  --dorado:            #E8A33D;
  --dorado-ink:        #3a2a08;

  --verde:             #15803d;
  --verde-soft:        #e7f6ec;
  --verde-border:      #bfe3cb;
  --verde-ink:         #3a6b52;
  --rojo:              #b91c1c;

  --ink:               #15201f;
  --text:              #3a4a48;
  --muted:             #5b6b69;
  --faint:             #8a9a98;
  --faint-2:           #9aa8a6;

  --bg:                #ffffff;
  --bg-soft:           #f4f3f5;
  --chip-bg:           #f3f1f2;
  --chip-border:       #e6e2e4;
  --border:            #e2e8e7;
  --border-soft:       #eef2f1;
  --hband-border:      #efe2e8;

  --new-bg:            #f7e3ec;
  --new-border:        #eccdd9;
  --new-ink:           #611232;

  --rev-text:          #fbe7ef;
  --rev-pink:          #F0A6C5;
  --rev-faint:         #e3bfd0;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-sm: 11px;
  --r:    14px;
  --r-lg: 16px;
  --r-pill: 999px;
  --sh:    0 10px 30px rgba(76,14,39,.10);
  --sh-sm: 0 1px 3px rgba(6,59,58,.06);
  --sh-menu: 0 12px 34px rgba(6,59,58,.16);

  --hband: linear-gradient(180deg,#f7ecf1 0%,#faf5f7 70%,#fbf8f9 100%);

  --container: 1120px;
  --gutter: 18px;
}

/* --------------------------------- ANIMACIONES -------------------------------- */
@keyframes af-pulse { 0%{box-shadow:0 0 0 0 rgba(21,128,61,.45)} 70%{box-shadow:0 0 0 7px rgba(21,128,61,0)} 100%{box-shadow:0 0 0 0 rgba(21,128,61,0)} }
@keyframes af-spin  { to{transform:rotate(360deg)} }
@keyframes af-fade  { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }
@media (prefers-reduced-motion: reduce){ *{animation-duration:.001ms !important; animation-iteration-count:1 !important} }

/* ------------------------------------ BASE ------------------------------------ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
img { border: 0; max-width: 100%; height: auto; }
a { color: var(--guinda); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 12px; }
strong { font-weight: 700; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.01em; line-height: 1.18; }
mark { background: #ffe3a8; color: var(--ink); border-radius: 3px; padding: 0 2px; font-weight: 700; }
*:focus-visible { outline: 3px solid rgba(157,36,73,.45); outline-offset: 2px; border-radius: 4px; }
.link { color: var(--guinda); font-weight: 600; }

/* ----------------------------------- LAYOUT ----------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 880px; }
.container--tool   { max-width: 760px; }
.row { display: block; }
.col-sm-12, .column { width: 100%; }
.row.box { margin: 0 0 16px; }
main > .container { padding-top: 20px; padding-bottom: 40px; }

/* =============================== HEADER + NAV ================================= */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--border); }
.site-header__inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__mark { flex: none; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--guinda); color: #fff; }
.brand__mark svg { width: 30px; height: 30px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-size: 21px; font-weight: 800; letter-spacing: -.015em; white-space: nowrap; }
.brand__name span { font-weight: 800; }
.brand__note { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; }

.nav { display: none; align-items: center; gap: 2px; }
.nav-group { position: relative; }
.nav-group__btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; font-family: inherit; color: var(--text); font-weight: 650; font-size: 14.5px; padding: 9px 12px; border-radius: 9px; }
.nav-group__btn:hover, .nav-group.open > .nav-group__btn, .nav-group:focus-within > .nav-group__btn { background: var(--bg-soft); color: var(--guinda); }
.nav-group__btn .caret { font-size: 9px; color: #9fb0ae; display: inline-block; transition: transform .15s; }
.nav-group.open .caret { transform: rotate(180deg); }
.nav-group__menu { position: absolute; top: calc(100% + 4px); left: 0; min-width: 252px; background: #fff; border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--sh-menu); padding: 7px; display: none; z-index: 70; animation: af-fade .14s ease; }
.nav-group__menu::before { content: ""; position: absolute; top: -7px; left: 0; right: 0; height: 7px; }
.nav-group:hover .nav-group__menu, .nav-group:focus-within .nav-group__menu, .nav-group.open .nav-group__menu { display: block; }
.nav-group__menu a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border-radius: 9px; text-decoration: none; color: #26332f; font-weight: 600; font-size: 14.5px; }
.nav-group__menu a:hover, .nav-group__menu a[aria-current="page"] { background: var(--bg-soft); color: var(--guinda); }
.nav-cta { margin-left: 8px; display: inline-flex; align-items: center; gap: 7px; background: var(--dorado); color: var(--dorado-ink); font-weight: 800; font-size: 14.5px; padding: 10px 17px; border-radius: 10px; text-decoration: none; box-shadow: 0 1px 2px rgba(180,120,20,.25); }
.nav-cta:hover { text-decoration: none; filter: brightness(.97); }
.nav-new { font-size: 10px; font-weight: 800; color: var(--new-ink); background: var(--new-bg); border: 1px solid var(--new-border); padding: 2px 7px; border-radius: var(--r-pill); letter-spacing: .02em; }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 4px; background: none; border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; cursor: pointer; }
.nav-toggle span { width: 20px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-drawer { display: none; position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw,360px); background: #fff; z-index: 90; box-shadow: -12px 0 40px rgba(6,59,58,.22); overflow-y: auto; animation: af-fade .16s ease; }
body.nav-open .nav-drawer { display: block; }
body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(6,40,39,.42); z-index: 80; }
.nav-drawer .container { padding: 12px 16px 26px; }
.nav-drawer .nav-cta { display: flex; justify-content: center; margin: 8px 0 16px; padding: 13px; border-radius: 11px; }
.drawer-group { margin-bottom: 14px; }
.drawer-group__title { display: block; margin: 0 0 5px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--guinda); }
.nav-drawer .drawer-group a { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px; border-radius: 9px; text-decoration: none; color: #26332f; font-weight: 600; font-size: 15.5px; border-bottom: 1px solid #f0f4f3; }

.breadcrumbs { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.breadcrumbs ol { max-width: var(--container); margin: 0 auto; padding: 10px var(--gutter); list-style: none; display: flex; align-items: center; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); font-weight: 500; }
.breadcrumbs .sep { margin: 0 8px; color: #aebbb9; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ========================== FRESHNESS STRIP ================================== */
.freshness { background: linear-gradient(0deg,#fff,#f5f4f6); border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; gap: 7px 15px; font-size: 13px; padding: 9px var(--gutter); }
.freshness__upd { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--verde); }
.freshness__upd::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--verde); display: inline-block; animation: af-pulse 1.8s infinite; }
.freshness__sep { color: #aebbb9; }
.freshness__today { color: var(--muted); }
.freshness__today [data-today], .freshness__today strong { color: var(--ink); }

/* ================================ FOOTER ===================================== */
.site-footer { background: var(--guinda-deep); color: #e8cdd8; margin-top: auto; }
.footer-grid { max-width: var(--container); margin: 0 auto; padding: 40px var(--gutter) 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-logo { flex: none; display: inline-grid; place-items: center; width: 46px; height: 46px; color: #fff; }
.footer-logo svg { width: 44px; height: 44px; }
.footer-brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.footer-brand__name { color: #fff; font-weight: 800; font-size: 21px; letter-spacing: -.015em; }
.footer-brand__sub { color: var(--rev-pink); font-weight: 700; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; }
.site-footer h3 { color: #fff; font-size: 14px; margin: 0 0 .7em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.site-footer a { color: #e8cdd8; font-size: 14px; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-states .states-list { display: flex; flex-direction: column; gap: 7px; }
.footer-states .states-list a::after { content: none; }
.footer-meta .muted, .footer-meta p { color: #cda7b7; font-size: 13.5px; margin: 0; max-width: 36ch; }
.footer-legal { max-width: var(--container); margin: 26px auto 0; padding: 18px var(--gutter) 24px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: #b48fa0; font-size: 12.5px; }
.footer-disclaimer { color: #ffe2ad; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; width: 100%; }
.footer-disclaimer::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dorado); }
.footer-legal a { color: #f3e4ea; }

/* ===================== INTERNAL PAGE HEADER (banda) ========================== */
.page-header { background: var(--hband); border-top: 4px solid var(--guinda); border-bottom: 1px solid var(--hband-border); }
.page-header__in { max-width: var(--container); margin: 0 auto; padding: 30px var(--gutter); }
.page-header--guia .page-header__in { max-width: var(--container); padding: 38px var(--gutter) 34px; }
.page-header h1 { margin: 0 0 8px; font-size: clamp(1.7rem,4vw,2.3rem); font-weight: 800; letter-spacing: -.02em; }
.page-header--guia h1 { margin: 0 0 12px; font-size: clamp(1.8rem,4.4vw,2.5rem); line-height: 1.13; }
.page-header p { margin: 0; color: var(--text); max-width: 64ch; font-size: clamp(16px,2.1vw,18px); }
.ph-badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #ecdde4; color: var(--guinda); padding: 7px 14px; border-radius: 13px; font-size: 12.5px; font-weight: 700; margin-bottom: 14px; line-height: 1.3; box-shadow: 0 1px 2px rgba(76,14,39,.05); }
.ph-badge::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--verde); animation: af-pulse 1.8s infinite; }
.ph-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.ph-chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e6dce1; color: var(--guinda); padding: 7px 14px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700; }
.ph-chip span { font-weight: 600; color: var(--muted); }

.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 800; color: var(--guinda); margin: 0 0 6px; }

/* ================================== HERO (home) ============================== */
.hero { background: radial-gradient(120% 130% at 82% -20%, var(--rosa-vino) 0%, var(--guinda) 44%, var(--guinda-deep) 100%); color: #fff; padding: 46px var(--gutter) 122px; }
.hero__in { max-width: var(--container); margin: 0 auto; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.22); color: var(--rev-text); padding: 7px 14px; border-radius: 13px; font-size: 12.5px; font-weight: 600; margin-bottom: 16px; }
.hero__badge::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--rev-pink); animation: af-pulse 1.8s infinite; }
.hero h1 { margin: 0; max-width: 21ch; color: #fff; font-size: clamp(2rem,5vw,3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.hero h1 .hl { color: #ffe2ad; }
.hero__lead { color: #f3d9e3; font-size: clamp(16px,2.2vw,19px); max-width: 60ch; margin: 16px 0 0; }

.access-wrap { max-width: var(--container); margin: -94px auto 0; padding: 0 var(--gutter); position: relative; z-index: 2; }
.access-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px,1fr)); gap: 14px; }
.access-card { display: flex; align-items: flex-start; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: 15px; padding: 18px; box-shadow: var(--sh); text-decoration: none; color: var(--ink); }
.access-card:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 14px 36px rgba(76,14,39,.14); }
.access-card__mono { flex: none; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; font-weight: 800; font-size: 14px; color: #fff; }
.access-card__mono svg { width: 25px; height: 25px; }
.access-card__t { font-weight: 800; font-size: 16px; letter-spacing: -.01em; display: block; }
.access-card__d { color: var(--muted); font-size: 13.5px; line-height: 1.4; display: block; }

.section { max-width: var(--container); margin: 0 auto; padding: 38px var(--gutter); }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--dark { background: var(--guinda-deep); color: #fff; }
.section--dark h2 { color: #fff; }
.section--dark .eyebrow { color: var(--rev-pink); }
.section--dark p { color: var(--rev-faint); }
.section--bleed { max-width: none; padding: 0; }
.section--bleed > .section { padding: 40px var(--gutter); }
.section h2 { font-size: clamp(1.4rem,3vw,1.9rem); font-weight: 800; }

.numgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 14px; }
.numcard { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 18px; box-shadow: var(--sh-sm); }
.numcard__n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--chip-bg); color: var(--guinda); font-weight: 800; font-size: 15px; margin-bottom: 10px; }
.numcard__t { margin: 0 0 4px; font-weight: 800; font-size: 15.5px; }
.numcard__d { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

.toolcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 14px; }
.toolcard { display: block; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: var(--r); padding: 18px 19px; text-decoration: none; color: #fff; }
.toolcard:hover { text-decoration: none; background: rgba(255,255,255,.1); }
.toolcard__t { margin: 0 0 4px; font-weight: 800; font-size: 16px; color: #fff; }
.toolcard__t .arr { color: var(--rev-pink); }
.toolcard__d { margin: 0; color: var(--rev-faint); font-size: 14px; line-height: 1.45; }

.novedades { list-style: none; margin: 18px 0 0; padding: 0 0 0 26px; position: relative; }
.novedades::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--chip-border); }
.novedades li { position: relative; padding: 0 0 22px; }
.novedades li::before { content: ""; position: absolute; left: -26px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--guinda); }
.nov-date { font-size: 12.5px; font-weight: 800; color: var(--guinda); letter-spacing: .02em; }
.nov-new { font-size: 10px; font-weight: 800; color: var(--new-ink); background: var(--new-bg); border: 1px solid var(--new-border); padding: 2px 7px; border-radius: var(--r-pill); margin-left: 6px; vertical-align: middle; }
.novedades li p { margin: 3px 0 0; }

.scope-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.scope-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--chip-bg); border: 1px solid var(--chip-border); color: var(--guinda-deep); padding: 8px 15px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 700; }
.scope-chip strong { font-size: 15px; color: var(--guinda-deep); }
.scope-chip span { font-weight: 600; color: var(--text); }

.states-grid, .states-inline { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 0; list-style: none; }
.states-grid a, .states-inline a, .state-chip { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-pill); padding: 8px 15px; font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; }
.states-grid a:hover, .states-inline a:hover { text-decoration: none; background: var(--bg-soft); }
.states-grid a::after, .state-chip::after { content: "→"; color: #aebbb9; }
.states-filter { width: 100%; max-width: 430px; padding: 11px 13px; font-size: 15px; border: 1.5px solid var(--border); border-radius: 10px; font-family: inherit; color: var(--ink); background: #fff; box-sizing: border-box; }
.table-filter-input { width: 100%; flex: 1; min-width: 240px; padding: 11px 13px; font-size: 15px; border: 1.5px solid var(--border); border-radius: 10px; font-family: inherit; color: var(--ink); background: #fff; box-sizing: border-box; }

/* =============================== CONTENIDO (cards) ============================ */
.boxHeading { margin: 18px 0 8px; }
.boxHeading h1 { font-size: clamp(1.7rem,4vw,2.3rem); font-weight: 800; letter-spacing: -.02em; margin: 0; }
.boxHeading h2 { margin: 0; font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; }
.box { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--sh-sm); margin: 0 0 16px; }
.box p { color: var(--text); font-size: 15.5px; line-height: 1.55; }
.box p:last-child { margin-bottom: 0; }
.subHeading { font-weight: 800; font-size: 1.05rem; margin: 0 0 8px; color: var(--ink); }

.custom-bullet { list-style: none; padding: 0; margin: 8px 0; }
.custom-bullet li { position: relative; padding: 4px 0 4px 24px; color: var(--text); font-size: 15.5px; line-height: 1.5; }
.custom-bullet li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--dorado); }

.button { display: inline-flex; align-items: center; gap: 7px; background: var(--guinda); color: #fff; font-weight: 700; font-size: 14.5px; padding: 11px 17px; border-radius: 11px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.button:hover { text-decoration: none; filter: brightness(.96); color: #fff; }
.button--gold { background: var(--dorado); color: var(--dorado-ink); font-weight: 800; }
.controls { display: block; margin: 12px 0 0; }

.stepper { list-style: none; margin: 0; padding-left: 46px; position: relative; counter-reset: step; }
.stepper::before { content: ""; position: absolute; left: 17px; top: 8px; bottom: 24px; width: 2px; background: var(--chip-border); }
.stepper .step { position: relative; padding: 0 0 20px; }
.stepper .step-title h3 { margin: 0 0 3px; font-weight: 800; font-size: 17px; color: var(--ink); position: relative; }
.stepper .step-title h3::before { counter-increment: step; content: counter(step); position: absolute; left: -46px; top: -4px; width: 36px; height: 36px; border-radius: 50%; background: var(--guinda); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.stepper .step-content { color: var(--text); font-size: 15.5px; line-height: 1.5; }
.stepper .explain-box p { margin: 0 0 6px; }

/* ================================== TABLAS =================================== */
.table-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--border); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.rc-table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: #fff; }
.rc-table thead th { text-align: left; padding: 11px 14px; background: var(--chip-bg); color: var(--guinda-deepest); font-weight: 800; border-bottom: 1px solid var(--border); }
.rc-table th, .rc-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border-soft); vertical-align: top; color: var(--text); }
.rc-table tbody th[scope="row"], .rc-table tbody td:first-child { font-weight: 700; color: var(--ink); }
.rc-table tbody tr:last-child td, .rc-table tbody tr:last-child th { border-bottom: 0; }
.table-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 12px; }
.table-count { font-size: 13px; color: var(--muted); white-space: nowrap; font-weight: 600; }

.calc-cost { font-size: 22px; font-weight: 800; color: var(--guinda-deep); }
.metric { background: #fff; border: 1px solid var(--border); border-radius: 13px; padding: 16px 18px; box-shadow: var(--sh-sm); }
.metric__k { margin: 0; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.metric__v { margin: 4px 0 0; font-weight: 800; font-size: 22px; color: var(--ink); }
.metric__v--cost { color: var(--guinda-deep); }
.metric__d { margin: 1px 0 0; font-size: 13px; color: var(--muted); }

/* =================================== FAQ ===================================== */
.faq-list { margin-top: 6px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; padding: 2px 17px; margin: 0 0 10px; background: #fff; }
.faq-item summary { font-weight: 700; cursor: pointer; padding: 14px 0; font-size: 16px; display: flex; justify-content: space-between; gap: 14px; align-items: center; list-style: none; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--guinda); font-weight: 800; font-size: 22px; line-height: 1; transition: transform .18s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 2px 0 15px; color: var(--text); font-size: 15.5px; }

/* ================================ HERRAMIENTAS =============================== */
.tool-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; box-shadow: 0 8px 24px rgba(6,59,58,.07); margin: 0 0 18px; }
.tool-card label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 7px; }
.tool-card input[type=text], .tool-card select { width: 100%; padding: 14px; font-size: 16px; border: 1.5px solid var(--border); border-radius: 12px; font-family: inherit; background: #fff; color: var(--ink); box-sizing: border-box; }
.tool-card input:focus, .tool-card select:focus { outline: none; border-color: var(--guinda); box-shadow: 0 0 0 3px rgba(157,36,73,.15); }
.tool-card .button, .tool-card button.button { width: 100%; justify-content: center; margin-top: 14px; padding: 14px; font-size: 16px; }
.tool-result { margin-top: 16px; }

.tool-working { border: 1px solid var(--border); border-radius: 13px; padding: 16px 18px; background: var(--bg-soft); animation: af-fade .2s ease; display: flex; align-items: center; gap: 11px; }
.tool-spinner { flex: none; width: 22px; height: 22px; border: 2.5px solid var(--chip-border); border-top-color: var(--guinda); border-radius: 50%; animation: af-spin .7s linear infinite; }
.tool-working__txt { font-weight: 700; font-size: 15px; color: var(--ink); }

.tool-result .ok { border: 1px solid var(--verde-border); border-radius: 13px; padding: 18px; background: var(--verde-soft); animation: af-fade .2s ease; }
.tool-result .ok strong { font-weight: 800; }
.tool-result .ok table { width: 100%; margin-top: 13px; border-top: 1px dashed rgba(0,0,0,.13); padding-top: 6px; }
.tool-result .ok td { padding: 4px 0; border: 0; font-size: 15px; }
.tool-result .bad { border: 1px solid #f1c9c2; border-radius: 13px; padding: 16px 18px; background: #fbeae6; color: #7a2418; animation: af-fade .2s ease; }
.tool-result .info { border: 1px solid var(--border); border-radius: 13px; padding: 16px 18px; background: var(--bg-soft); animation: af-fade .2s ease; }
.tool-vigente { display: inline-block; margin-top: 4px; font-size: 13px; color: var(--verde-ink); font-weight: 600; }
.tool-stamp { margin: 13px 0 0; font-size: 12.5px; color: var(--verde-ink); display: flex; align-items: center; gap: 7px; }
.tool-stamp::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--verde); }

.rc-ac-wrap { position: relative; }
.rc-ac-list { list-style: none; margin: 6px 0 0; padding: 6px; position: absolute; left: 0; right: 0; background: #fff; border: 1px solid var(--border); border-radius: 13px; box-shadow: var(--sh-menu); z-index: 30; max-height: 340px; overflow-y: auto; animation: af-fade .14s ease; }
.rc-ac-item { display: flex; align-items: flex-start; gap: 11px; padding: 11px 12px; border-radius: 10px; cursor: pointer; }
.rc-ac-item.active, .rc-ac-item:hover { background: #faedf2; }
.rc-ac-item .ac-tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.rc-ac-item .ac-t { font-weight: 700; font-size: 15px; }
.rc-ac-item .ac-s { color: var(--muted); font-size: 13px; }
.ac-badge { flex: none; width: 34px; min-width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 11px; color: #fff; background: var(--guinda); }
.ac-badge.is-kiosko { background: #c98421; }
.rc-ac-empty, .rc-ac-more { padding: 10px 12px; color: var(--muted); font-size: 14px; }

.ofi-card { background: #fff; border: 1px solid var(--border); border-radius: 15px; padding: 20px 22px; box-shadow: 0 8px 24px rgba(6,59,58,.08); animation: af-fade .2s ease; }
.ofi-card h3 { margin: 0 0 12px; font-weight: 800; font-size: 19px; }
.ofi-tag { font-size: 11px; font-weight: 800; letter-spacing: .03em; color: #fff; background: var(--guinda); padding: 4px 10px; border-radius: var(--r-pill); }
.ofi-data { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 11px; width: 100%; }
.ofi-data td { border: 0; padding: 2px 0; }
.ofi-data td:first-child { font-weight: 700; color: var(--guinda); width: auto; }

.data-note { font-size: 12.5px; color: var(--muted); margin: 9px 0 0; display: flex; align-items: center; gap: 7px; }
.data-note b { color: var(--verde-ink); }
.data-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--verde); flex: none; }

/* ============================== RESPONSIVE ================================== */
@media (min-width: 820px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  body.nav-open .nav-drawer { display: none; }
  body.nav-open::after { display: none; }
}
@media (max-width: 819px) {
  .access-wrap { margin-top: 18px; }
  .hero { padding-bottom: 40px; }
  .page-header--guia .page-header__in { padding-bottom: 40px; }
}
@media (max-width: 640px) {
  .rc-table thead { display: none; }
  .rc-table, .rc-table tbody, .rc-table tr, .rc-table td { display: block; width: 100%; box-sizing: border-box; }
  .rc-table tr { border-bottom: 8px solid var(--bg-soft); }
  .rc-table td { border-bottom: 1px solid var(--border-soft); }
  .rc-table td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--guinda); }
}

/* ===== fixes: menú mobile (overlay clickeable) + ancho de page-header + breadcrumb ===== */
body.nav-open .site-header { z-index: 85; }   /* hamburguesa por encima del overlay para poder cerrar */
.drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.drawer-top span { font-weight: 800; }
.drawer-close { background: none; border: 1px solid var(--border); border-radius: 9px; width: 36px; height: 36px; cursor: pointer; font-size: 17px; color: var(--muted); line-height: 1; }
.page-header--tool .page-header__in   { max-width: 760px; }
.page-header--narrow .page-header__in { max-width: 880px; }

/* Stepper: cada número con un color distinto de la paleta (cicla) */
.stepper .step:nth-of-type(6n+1) .step-title h3::before { background: #9D2449; }
.stepper .step:nth-of-type(6n+2) .step-title h3::before { background: #B5295B; }
.stepper .step:nth-of-type(6n+3) .step-title h3::before { background: #c98421; }
.stepper .step:nth-of-type(6n+4) .step-title h3::before { background: #611232; }
.stepper .step:nth-of-type(6n+5) .step-title h3::before { background: #7E1B3A; }
.stepper .step:nth-of-type(6n)   .step-title h3::before { background: #4A0E27; }

/* Breadcrumb alineado al ancho del contenido (guías 880, herramientas 760) */
.breadcrumbs--narrow ol { max-width: 880px; }
.breadcrumbs--tool ol   { max-width: 760px; }

/* Byline E-E-A-T en el page-header */
.ph-byline { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.ph-byline strong { color: var(--guinda); font-weight: 700; }

/* ============================== INFOGRAFÍAS ============================== */
.infographic { margin: 22px 0; border: 1px solid var(--border); border-radius: var(--r-lg); background: linear-gradient(180deg,#fff 0%,#fcf9fb 100%); padding: 22px 18px 24px; box-shadow: var(--sh-sm); position: relative; overflow: hidden; }
.infographic::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--guinda) 0%, var(--rosa-vino) 55%, var(--dorado) 100%); }
.infographic figcaption { margin: 4px 0 18px; font-weight: 800; font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--guinda-deepest); display: flex; align-items: center; gap: 9px; line-height: 1.25; }
.infographic figcaption svg { width: 19px; height: 19px; color: var(--guinda); flex: none; }

/* 1) Flujo del trámite */
.ig-flow__track { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(5,1fr); gap: 4px; }
.ig-flow__step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 2px; }
.ig-flow__step::before { content: ""; position: absolute; top: 28px; right: 50%; width: 100%; height: 3px; background: var(--chip-border); z-index: 0; }
.ig-flow__step:first-child::before { display: none; }
.ig-flow__node { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 6px 16px rgba(76,14,39,.20); margin-bottom: 11px; }
.ig-flow__node svg { width: 27px; height: 27px; }
.ig-flow__node b { position: absolute; top: -3px; right: -3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; color: var(--guinda-deep); border: 2px solid currentColor; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.ig-flow__step:nth-child(1) .ig-flow__node { background: var(--guinda); }
.ig-flow__step:nth-child(2) .ig-flow__node { background: var(--rosa-vino); }
.ig-flow__step:nth-child(3) .ig-flow__node { background: #c98421; }
.ig-flow__step:nth-child(4) .ig-flow__node { background: var(--guinda-deep); }
.ig-flow__step:nth-child(5) .ig-flow__node { background: var(--verde); }
.ig-flow__txt { display: flex; flex-direction: column; gap: 2px; }
.ig-flow__t { font-weight: 800; font-size: 13.5px; color: var(--ink); line-height: 1.2; }
.ig-flow__d { font-size: 12px; color: var(--muted); line-height: 1.3; }

/* 2) Anatomía del acta */
.ig-doc__grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: 20px; align-items: start; }
.ig-doc__sheet { background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--sh); padding: 14px 14px 16px; }
.ig-doc__sheet-top { display: flex; align-items: center; gap: 11px; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 2px solid var(--hband-border); }
.ig-doc__seal { flex: none; color: var(--guinda); }
.ig-doc__seal svg { width: 40px; height: 40px; display: block; }
.ig-doc__sheet-top b { display: block; font-size: 14px; color: var(--guinda-deepest); letter-spacing: .02em; }
.ig-doc__sheet-top small { color: var(--muted); font-size: 11.5px; }
.ig-doc__row, .ig-doc__valid { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.ig-doc__sheet .ig-doc__row:last-of-type { border-bottom: 0; }
.ig-doc__n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--guinda); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; margin-top: 1px; }
.ig-doc__row b, .ig-doc__valid b { display: block; font-size: 13.5px; color: var(--ink); font-weight: 800; line-height: 1.2; }
.ig-doc__row i, .ig-doc__valid i { font-style: normal; font-size: 12px; color: var(--muted); }
.ig-doc__valid { margin-top: 8px; padding: 11px; background: var(--verde-soft); border: 1px solid var(--verde-border); border-radius: 10px; align-items: center; }
.ig-doc__valid .ig-doc__n { background: var(--verde); }
.ig-doc__valid-txt { flex: 1; }
.ig-doc__valid b { color: var(--verde-ink); }
.ig-doc__qr { flex: none; color: var(--guinda-deepest); }
.ig-doc__qr svg { width: 42px; height: 42px; display: block; }
.ig-doc__legend { list-style: none; margin: 0; padding: 0; counter-reset: leg; display: grid; gap: 9px; align-self: center; }
.ig-doc__legend li { position: relative; padding-left: 30px; font-size: 13.5px; color: var(--text); line-height: 1.4; }
.ig-doc__legend li::before { counter-increment: leg; content: counter(leg); position: absolute; left: 0; top: 0; width: 21px; height: 21px; border-radius: 50%; background: var(--chip-bg); border: 1px solid var(--chip-border); color: var(--guinda); font-size: 11.5px; font-weight: 800; display: grid; place-items: center; }
.ig-doc__legend b { color: var(--ink); }

/* 3) Escala de costo */
.ig-cost__bar { position: relative; height: 14px; border-radius: 999px; background: linear-gradient(90deg, var(--verde) 0%, #cfa23e 52%, var(--guinda) 100%); margin: 46px 14px 52px; }
.ig-cost__mark { position: absolute; top: 50%; transform: translate(-50%,-50%); }
.ig-cost__mark i { display: block; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 3px solid var(--guinda-deep); box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.ig-cost__lab { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; text-align: center; }
.ig-cost__lab b { display: block; font-size: 14px; font-weight: 800; color: var(--guinda-deepest); }
.ig-cost__lab small { display: block; font-size: 11.5px; color: var(--muted); }
.ig-cost__mark--up .ig-cost__lab { bottom: 16px; }
.ig-cost__mark--down .ig-cost__lab { top: 16px; }
.ig-cost__mark--l .ig-cost__lab { left: 0; transform: none; text-align: left; }
.ig-cost__mark--r .ig-cost__lab { left: auto; right: 0; transform: none; text-align: right; }
.ig-cost__ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }

@media (max-width: 680px) {
  .ig-flow__track { grid-template-columns: 1fr; gap: 0; }
  .ig-flow__track::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 3px; background: var(--chip-border); }
  .ig-flow__step { flex-direction: row; align-items: center; text-align: left; gap: 14px; padding: 0 0 16px; }
  .ig-flow__step:last-child { padding-bottom: 0; }
  .ig-flow__step::before { display: none; }
  .ig-flow__node { margin-bottom: 0; flex: none; }
  .ig-doc__grid { grid-template-columns: 1fr; gap: 16px; }
}
