:root {
    --ink: #17243a;
    --heading: #102c52;
    --muted: #5b6678;
    --brand: #1769c2;
    --brand-dark: #104b8e;
    --brand-pale: #eaf3ff;
    --accent: #f07755;
    --accent-ink: #07111f;
    --accent-pale: #fff0e9;
    --paper: #fffaf2;
    --surface: #ffffff;
    --soft: #f3f6fb;
    --line: #dce3ee;
    --warning: #fff4d6;
    --shadow: 0 14px 38px rgba(27, 47, 78, .1);
    --radius: 18px;
    --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--brand); }
button, input, select { font: inherit; }
button, .button { min-height: 46px; }
h1, h2, h3 { color: var(--heading); line-height: 1.16; letter-spacing: -.025em; }
h1 { margin: .3rem 0 1.1rem; font-size: clamp(2.1rem, 4.5vw, 3.65rem); }
h2 { margin: 0 0 1rem; font-size: clamp(1.55rem, 3vw, 2.3rem); }
h3 { font-size: 1.23rem; }
p { margin: 0 0 1.1rem; }
address { font-style: normal; }

.wrap, .container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.content-narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-140%); padding: .65rem 1rem; color: white; background: #111; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }

.site-disclaimer { padding-block: .55rem; color: #fff; background: #0b3045; font-size: .82rem; font-weight: 750; line-height: 1.4; text-align: center; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.header-row { display: grid; grid-template-columns: 235px minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; min-height: 80px; }
.brand { display: inline-flex; grid-column: 1; grid-row: 1; text-decoration: none; }
.brand-logo--dark { display: none; }
[data-theme="dark"] .brand-logo--light { display: none; }
[data-theme="dark"] .brand-logo--dark { display: block; }
.header-search { display: flex; max-width: 430px; justify-self: center; width: 100%; }
.header-search input { min-width: 0; flex: 1; border: 1px solid #b8c5d6; border-radius: 10px 0 0 10px; padding: .65rem .85rem; }
.header-search button, .hero-search button, .directory-filters button, .search-form button {
    border: 0; border-radius: 0 10px 10px 0; padding: .6rem 1rem; color: white; background: var(--brand); font-weight: 750; cursor: pointer;
}
.main-nav { display: flex; align-items: center; justify-content: center; gap: 1.35rem; }
.main-nav a { color: var(--ink); font-size: .94rem; font-weight: 750; text-decoration: none; }
.main-nav a:hover { color: var(--brand); }
.main-nav > a.main-nav__nearby { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .55rem .8rem; color: var(--accent-ink); background: var(--accent); border-radius: 10px; font-size: .86rem; white-space: nowrap; }
.main-nav > a.main-nav__nearby:hover { color: var(--accent-ink); background: #ffad93; }
.menu-toggle { display: none; }
.site-main { min-height: 65vh; }

.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 6vw, 5.25rem) 0; color: #f4f8ff; background: linear-gradient(115deg, #0b1e38 0%, #123e70 58%, #1769c2 135%); }
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; border-radius: 50%; }
.hero::before { width: 520px; height: 520px; top: -340px; right: 7%; border: 90px solid rgba(255,255,255,.045); }
.hero::after { width: 320px; height: 320px; right: -150px; bottom: -220px; border: 65px solid rgba(240,119,85,.16); }
.hero-grid { position: relative; z-index: 1; }
.hero-content { max-width: 1080px; }
.hero h1 { max-width: 900px; margin: 0 0 1rem; color: #fff; font-size: clamp(2.4rem, 4.7vw, 4.05rem); line-height: 1.05; letter-spacing: -.04em; }
.hero h1 span { color: #ff9675; white-space: nowrap; }
.hero .lead { max-width: 1020px; margin-bottom: 0; color: #dbe8f8; font-size: clamp(1.08rem, 1.8vw, 1.28rem); }
.lead { max-width: 780px; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.3rem); }
.eyebrow { display: block; margin-bottom: .65rem; color: var(--brand); font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.hero-search { max-width: 1080px; margin-top: 1.65rem; padding: 1rem 1.15rem 1.15rem; color: var(--ink); background: #fff; border: 1px solid rgba(255,255,255,.62); border-radius: 19px; box-shadow: 0 22px 55px rgba(3,15,32,.25); }
.hero-search label { display: block; margin: 0 0 .4rem; color: #102c52; font-size: .82rem; font-weight: 850; }
.hero-search__row { display: flex; gap: .75rem; }
.hero-search input { min-width: 0; flex: 1; min-height: 58px; padding: .85rem 1rem; color: #17243a; background: #fbfdff; border: 1px solid #aebdce; border-radius: 11px; }
.hero-search input::placeholder { color: #68778c; opacity: 1; }
.hero-search button { min-width: 180px; border-radius: 11px; padding-inline: 1.35rem; background: var(--brand); }
.hero-search button:hover { background: var(--brand-dark); }
.hero .microcopy { margin: .7rem 0 0; color: #c6d6e9; font-size: .78rem; }

.page-shell { padding-block: 1.4rem 5rem; }
.page-header, .article-header { padding: 2.25rem 0 1.7rem; }
.page-hero { padding: 3rem 0; background: var(--soft); border-bottom: 1px solid var(--line); }
.page-hero--compact h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.section, .section-block { padding-block: clamp(3.5rem, 7vw, 6rem); }
.soft-section { background: var(--soft); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.8rem; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > a { flex: 0 0 auto; }

.guide-grid, .office-grid, .card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.guide-grid.large { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-card, .office-card { position: relative; display: flex; flex-direction: column; min-height: 100%; padding: 1.55rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 5px 20px rgba(27,47,78,.055); }
.guide-card:hover, .office-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); transition: .18s ease; }
.guide-card h2, .guide-card h3, .office-card h2 { margin: 0 0 .75rem; font-size: 1.25rem; }
.guide-card h2 a, .guide-card h3 a, .office-card h2 a { color: inherit; text-decoration: none; }
.guide-card p, .office-card p { color: var(--muted); font-size: .95rem; }
.guide-card .text-link, .office-card .text-link { margin-top: auto; font-weight: 800; }
.card-kicker { margin-bottom: .45rem; color: var(--brand); font-size: .73rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.location-line { margin-bottom: .7rem !important; font-weight: 700; }
.compact-data { padding-top: .7rem; border-top: 1px solid var(--line); }

.guides-hero { position: relative; padding: .65rem 0 4.25rem; overflow: hidden; color: #eef6ff; background: linear-gradient(118deg, #102f55 0%, #123e69 60%, #0d5870 100%); }
.guides-hero::after { content: ""; position: absolute; right: -145px; bottom: -225px; width: 340px; height: 340px; border: 64px solid rgba(240,119,85,.18); border-radius: 50%; pointer-events: none; }
.guides-hero .breadcrumbs { margin-bottom: 1.65rem; }
.guides-hero .breadcrumbs a, .guides-hero .breadcrumbs span { color: #d9e8f7; }
.guides-hero .breadcrumbs li:not(:last-child)::after { color: #7897b7; }
.guides-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; gap: clamp(2rem, 6vw, 5rem); }
.guides-hero__grid > header { max-width: 860px; }
.guides-hero h1 { max-width: 760px; margin: 0; color: #fff; font-size: clamp(2.35rem, 4.5vw, 3.85rem); line-height: 1.04; letter-spacing: -.045em; }
.guides-hero .lead { max-width: 710px; margin: .95rem 0 0; color: #dce9f7; font-size: 1.08rem; }
.guides-hero .eyebrow { color: #ff9a78; }
.guide-topic-nav { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: -2.25rem; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 42px rgba(22,48,79,.11); }
.guide-topic-nav > a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .7rem; min-width: 0; padding: 1.2rem; color: var(--heading); border-right: 1px solid var(--line); text-decoration: none; transition: background-color .18s ease, color .18s ease; }
.guide-topic-nav > a:last-child { border-right: 0; }
.guide-topic-nav > a:hover { color: var(--brand-dark); background: var(--brand-pale); }
.guide-topic-nav__icon { display: grid; place-items: center; width: 40px; height: 40px; color: var(--brand); background: var(--brand-pale); border-radius: 10px; }
.guide-topic-nav strong { min-width: 0; font-size: .91rem; line-height: 1.3; }
.guide-topic-nav > a > .ui-icon { color: var(--muted); }
.guides-library { margin-top: 2.5rem; margin-bottom: 4.5rem; padding: .45rem clamp(1.5rem, 3vw, 2.6rem) 2.5rem; background: var(--surface); border-radius: 22px; box-shadow: 0 18px 50px rgba(27,47,78,.08); }
.guide-topic { --topic-accent: var(--brand); display: grid; grid-template-columns: minmax(220px, .32fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); padding: 3.5rem .2rem; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.guide-topic:last-of-type { border-bottom: 0; }
.guide-topic__header { position: sticky; top: 104px; align-self: start; }
.guide-topic__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1.15rem; color: var(--topic-accent); background: var(--brand-pale); border-radius: 12px; }
.guide-topic__header .eyebrow { margin-bottom: .45rem; }
.guide-topic__header h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.35rem); line-height: 1.08; letter-spacing: -.035em; }
.guide-topic__header p { margin: 1rem 0 0; color: var(--muted); }
.guide-topic__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.6rem; }
.guide-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; min-width: 0; padding: 1.35rem .35rem; color: var(--heading); border-top: 1px solid var(--line); text-decoration: none; transition: padding .18s ease, color .18s ease, background-color .18s ease; }
.guide-entry:hover { padding-right: .8rem; padding-left: .8rem; color: var(--brand-dark); background: linear-gradient(90deg, var(--brand-pale), transparent); }
.guide-entry__copy { display: grid; gap: .45rem; min-width: 0; }
.guide-entry strong { font-size: 1rem; line-height: 1.35; }
.guide-entry small { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: .82rem; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.guide-entry__arrow { display: grid; place-items: center; width: 34px; height: 34px; color: var(--brand); background: var(--brand-pale); border-radius: 50%; }
.guides-directory-callout { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.2rem; margin-top: 3rem; padding: 2rem; color: #eaf4ff; background: #12365f; border-radius: 15px; box-shadow: 0 20px 45px rgba(16,45,80,.14); }
.guides-directory-callout__icon { display: grid; place-items: center; width: 56px; height: 56px; color: #ff9a78; background: rgba(240,119,85,.15); border-radius: 14px; }
.guides-directory-callout .eyebrow { margin-bottom: .25rem; color: #ff9a78; }
.guides-directory-callout h2 { margin: 0; color: #fff; font-size: 1.55rem; }
.guides-directory-callout p { margin: .35rem 0 0; color: #cbdced; }
.guides-directory-callout .button { white-space: nowrap; }

.state-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; }
.state-list a { display: flex; justify-content: space-between; gap: .5rem; padding: .8rem 1rem; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.state-list strong { color: var(--brand); }
.city-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.city-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.city-link { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: .8rem; min-height: 82px; padding: .9rem 1rem; color: var(--heading); background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 2px 10px rgba(27,47,78,.04); text-decoration: none; transition: color .2s ease, box-shadow .2s ease; }
.city-link__icon { display: grid; place-items: center; width: 38px; height: 38px; color: var(--brand); background: var(--brand-pale); border-radius: 50% 50% 50% 12px; transform: rotate(-8deg); transition: color .2s ease, background-color .2s ease, transform .2s ease; }
.city-link__icon .ui-icon { transform: rotate(8deg); }
.city-link > strong, .city-link__copy { min-width: 0; }
.city-link strong { display: block; color: inherit; font-size: .98rem; line-height: 1.3; }
.city-link__copy small { display: block; margin-top: .15rem; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.city-link__arrow { display: grid; place-items: center; width: 32px; height: 32px; color: #75879a; background: var(--soft); border-radius: 50%; transition: color .2s ease, background-color .2s ease, transform .2s ease; }
.city-link:hover { color: var(--brand-dark); box-shadow: 0 9px 24px rgba(27,47,78,.09); }
.city-link:hover .city-link__icon { color: white; background: var(--brand); transform: rotate(0); }
.city-link:hover .city-link__icon .ui-icon { transform: rotate(0); }
.city-link:hover .city-link__arrow { color: var(--brand); background: var(--brand-pale); transform: translateX(2px); }
.city-link:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 3px; }

.breadcrumbs { margin: .35rem 0; color: var(--muted); font-size: .84rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .35rem; color: #96a2b2; }
.directory-filters { display: grid; grid-template-columns: 1.4fr 1fr auto auto; gap: 1rem; align-items: end; margin-bottom: 2rem; padding: 1.3rem; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); }
.directory-filters label { display: block; margin-bottom: .35rem; font-size: .86rem; font-weight: 750; }
.directory-filters input, .directory-filters select { width: 100%; min-height: 46px; padding: .6rem .75rem; background: white; border: 1px solid #b8c5d6; border-radius: 9px; }
.directory-filters button { border-radius: 9px; }
.clear-filter { display: inline-flex; align-items: center; min-height: 46px; font-weight: 750; }
.directory-hero { position: relative; overflow: hidden; padding: .8rem 0 clamp(2.6rem, 4.5vw, 3.7rem); color: #dce9f8; background: radial-gradient(circle at 8% 5%, rgba(45,132,220,.4), transparent 35%), linear-gradient(120deg, #0b1e38 0%, #123e70 66%, #1769c2 145%); }
.directory-hero::before, .directory-hero::after { content: ""; position: absolute; pointer-events: none; border-radius: 50%; }
.directory-hero::before { top: -245px; right: 9%; width: 410px; height: 410px; border: 72px solid rgba(255,255,255,.045); }
.directory-hero::after { right: -120px; bottom: -185px; width: 285px; height: 285px; border: 54px solid rgba(240,119,85,.19); }
.directory-hero .wrap { position: relative; z-index: 1; }
.directory-hero .breadcrumbs, .directory-hero .breadcrumbs a { color: #c7d9ed; }
.directory-hero .breadcrumbs li:not(:last-child)::after { color: #7894b2; }
.directory-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); padding-top: clamp(1.45rem, 3vw, 2.35rem); }
.directory-hero .eyebrow { color: #ffb39b; }
.directory-hero h1 { max-width: 820px; margin: 0 0 .85rem; color: #fff; font-size: clamp(2.3rem, 4.3vw, 3.6rem); }
.directory-hero .lead { max-width: 760px; margin: 0; color: #d1dfef; }
.directory-hero__filters { grid-template-columns: minmax(0, 1.55fr) minmax(220px, .75fr) auto auto; margin: clamp(1.5rem, 3vw, 2.15rem) 0 0; padding: 1rem 1.1rem; color: #17243a; background: #fff; border: 0; border-radius: 17px; box-shadow: 0 22px 55px rgba(3,15,32,.24); }
.directory-hero__filters label { color: #102c52; }
.directory-hero__filters input, .directory-hero__filters select { min-height: 52px; background: #fbfdff; }
.directory-hero__filters button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 52px; padding-inline: 1.25rem; color: var(--accent-ink); background: var(--accent); }
.directory-hero__filters button:hover { background: #d95f40; }
.directory-hero__filters .clear-filter { color: #104b8e; }
.directory-page-shell--national { padding-top: clamp(2.8rem, 5vw, 4.2rem); }
.location-links { margin: 3rem 0; }
.directory-results-heading { margin: 0 0 1.4rem; }
.directory-results-heading h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.25rem); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: 2.5rem 0; }
.pagination a { padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.notice { margin-top: 2rem; padding: 1.2rem 1.35rem; background: var(--soft); border-left: 4px solid var(--brand); border-radius: 8px; }
.notice p { margin: .3rem 0 0; }
.location-hero { position: relative; overflow: hidden; padding: .75rem 0 clamp(2.5rem, 4vw, 3.4rem); color: #dce9f8; background: radial-gradient(circle at 12% 0%, rgba(45,132,220,.34), transparent 36%), linear-gradient(122deg, #0b1e38 0%, #123e70 76%, #155a9c 145%); }
.location-hero::after { content: ""; position: absolute; right: -105px; bottom: -175px; width: 250px; height: 250px; border: 46px solid rgba(240,119,85,.15); border-radius: 50%; pointer-events: none; }
.location-hero .wrap { position: relative; z-index: 1; }
.location-hero .breadcrumbs, .location-hero .breadcrumbs a { color: #c7d9ed; }
.location-hero .breadcrumbs li:not(:last-child)::after { color: #7894b2; }
.location-hero__content { padding-top: clamp(1.25rem, 2.5vw, 2rem); }
.location-hero h1 { max-width: 820px; margin: 0 0 .75rem; color: #fff; font-size: clamp(2.2rem, 4vw, 3.35rem); }
.location-hero .lead { max-width: 760px; margin: 0; color: #d1dfef; font-size: clamp(1.02rem, 1.7vw, 1.16rem); }
.directory-page-shell--state { padding-top: clamp(2.5rem, 4.5vw, 3.6rem); }
.state-directory-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.state-directory-layout__main { min-width: 0; }
.state-directory-layout__main .location-links { margin-top: 0; }
.directory-page-shell--state-landing .location-links { margin-bottom: 0; }
.state-directory-layout__main .city-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.state-directory-layout__main .office-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.state-directory-aside { position: sticky; top: 100px; }
.state-directory-aside__panel { overflow: hidden; background: var(--surface); border-radius: 14px; box-shadow: 0 12px 34px rgba(27,47,78,.09); }
.state-directory-aside__panel > header { padding: 1.1rem 1.15rem; background: var(--soft); }
.state-directory-aside__panel h2 { margin: 0; font-size: 1.15rem; }
.state-directory-aside__panel nav { max-height: calc(100vh - 190px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.state-directory-aside__link { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 51px; padding: .68rem 1rem; color: var(--heading); border-bottom: 1px solid var(--line); text-decoration: none; }
.state-directory-aside__link:last-child { border-bottom: 0; }
.state-directory-aside__link > span { min-width: 0; font-size: .88rem; font-weight: 750; line-height: 1.25; }
.state-directory-aside__link small { flex: 0 0 auto; color: var(--muted); font-size: .7rem; white-space: nowrap; }
a.state-directory-aside__link:hover { color: var(--brand); background: var(--soft); }
.state-guides { padding-top: clamp(3.5rem, 6vw, 5rem); }
.state-guides .section-heading p { max-width: 620px; margin: .55rem 0 0; color: var(--muted); }
.state-directory-aside__link.is-current { color: var(--brand-dark); background: var(--brand-pale); box-shadow: inset 4px 0 0 var(--accent); }
.state-directory-aside__link.is-current > span { font-weight: 900; }
.state-directory-aside__link.is-current small { color: var(--brand-dark); font-weight: 750; }

.office-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, .55fr); gap: 2.5rem; align-items: start; padding: 2.4rem 0; }
.office-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.office-actions, .button-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1rem; color: white; background: var(--brand); border: 1px solid var(--brand); border-radius: 10px; font-weight: 800; text-decoration: none; }
.button:hover { color: white; background: var(--brand-dark); }
.button.secondary, .button--secondary { color: var(--brand-dark); background: white; border-color: #96bce4; }
.button.secondary:hover, .button--secondary:hover { background: var(--brand-pale); }
.button-light { color: var(--brand-dark); background: white; }
.status-panel, .sidebar-card { padding: 1.35rem; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); }
.status-panel p, .sidebar-card p { margin: .4rem 0 0; color: var(--muted); font-size: .93rem; }
.office-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 2.5rem; align-items: start; }
.office-main > section { padding: 1.8rem 0; border-top: 1px solid var(--line); }
.office-main > section:first-child { border-top: 0; }
.office-main h2 { font-size: 1.55rem; }
.office-sidebar { position: sticky; top: 110px; display: grid; gap: 1rem; }
.office-sidebar h2 { font-size: 1.2rem; }
.sidebar-card dl, .data-list { margin: 0; }
.sidebar-card dl div, .data-list div { display: grid; grid-template-columns: 1fr 1.4fr; gap: .7rem; padding: .65rem 0; border-top: 1px solid var(--line); }
.sidebar-card dl div:first-child, .data-list div:first-child { border-top: 0; }
dt { color: var(--muted); font-size: .88rem; font-weight: 750; }
dd { margin: 0; }
.sidebar-card.warning { background: var(--warning); border-color: #ead694; }
.contact-value { font-size: 1.35rem; font-weight: 800; }
.related-section { padding-top: 4rem; }

.article-shell { max-width: 1120px; }
.article-content { max-width: 800px; margin-inline: auto; }
.article-header { border-bottom: 1px solid var(--line); }
.article-header h1 { font-size: clamp(2.05rem, 3.7vw, 3.15rem); }
.article-alert { display: flex; flex-direction: column; margin-top: 1.5rem; padding: 1rem 1.15rem; background: var(--warning); border: 1px solid #ead694; border-radius: 10px; }
.guide-official-action { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin-top: 1rem; padding: 1.1rem 1.2rem; background: var(--brand-pale); border-radius: 12px; }
.guide-official-action > div { display: grid; gap: .18rem; }
.guide-official-action .eyebrow { margin: 0; }
.guide-official-action strong { color: var(--heading); }
.guide-official-action small { color: var(--muted); }
.guide-official-action .button { flex: 0 0 auto; }
.guide-contact-link { display: flex; align-items: flex-start; flex-direction: column; gap: .35rem; margin: 1rem 0 1.35rem; padding: 1.25rem 1.4rem; background: linear-gradient(110deg, var(--brand-pale), var(--surface)); border-radius: 14px; }
.guide-contact-link .eyebrow { margin: 0; }
.guide-contact-link small { color: var(--muted); }
.important-contact-link { display: inline-block; width: fit-content; color: var(--heading); font-size: clamp(1.75rem, 4vw, 2.55rem); font-weight: 900; line-height: 1.05; letter-spacing: -.045em; text-decoration-line: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: .17em; transition: color .18s ease, text-decoration-color .18s ease; }
.important-contact-link:hover { color: var(--brand); text-decoration-color: var(--brand); }
.important-contact-link:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 5px; border-radius: 2px; }
.article-content > section { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.article-content > section h2 { font-size: 1.65rem; }
.steps, .check-list { padding-left: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; min-height: 42px; padding: .6rem 0 .9rem 3rem; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: .45rem; display: grid; place-items: center; width: 34px; height: 34px; color: white; background: var(--brand); border-radius: 50%; font-weight: 850; }
.check-list li { position: relative; padding: .3rem 0 .3rem 1.8rem; }
.check-list li::before { content: "✓"; position: absolute; left: .15rem; color: var(--brand); font-weight: 900; }
.source-box { padding-inline: 1.4rem !important; background: var(--soft); border: 1px solid var(--line) !important; border-radius: var(--radius); }
.source-directory { columns: 2; gap: 2rem; }
.source-directory li { break-inside: avoid; margin-bottom: .75rem; }
.faq-section details { padding: 1rem 0; border-top: 1px solid var(--line); }
.faq-section summary { cursor: pointer; color: var(--heading); font-weight: 800; }
.faq-section details p { padding-top: .75rem; color: var(--muted); }
.action-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; max-width: 900px; margin: 3rem auto 0; padding: 1.7rem; color: white; background: #102c52; border-radius: var(--radius); }
.action-cta .eyebrow { color: #b9dcff; }
.action-cta h2 { margin: 0; color: white; font-size: 1.5rem; }
.prose h2 { margin-top: 2.4rem; font-size: 1.65rem; }
.search-form--wide { display: grid; max-width: 1000px; margin-top: clamp(1.5rem, 3vw, 2.15rem); padding: 1rem 1.1rem; color: #17243a; background: #fff; border: 0; border-radius: 17px; box-shadow: 0 22px 55px rgba(3,15,32,.24); }
.search-form--wide label { margin-bottom: .4rem; color: #102c52; font-size: .84rem; font-weight: 800; }
.search-form__row { display: flex; gap: .65rem; }
.search-form--wide input { flex: 1; min-width: 0; min-height: 54px; padding: .75rem .9rem; color: #17243a; background: #fbfdff; border: 1px solid #aebdce; border-radius: 9px; }
.search-form--wide button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-width: 140px; border-radius: 9px; }
.search-form--wide > small { margin-top: .55rem; color: #66758a; font-size: .77rem; }
.empty-state, .error-page { text-align: center; }
.empty-state { padding: 3rem 1rem; background: var(--soft); border-radius: var(--radius); }
.error-page { padding-block: 7rem; }
.error-code { margin: 0; color: var(--accent); font-size: 4.5rem; font-weight: 900; line-height: 1; }
.error-page .search-form { margin-inline: auto; }
.error-page .button-row { justify-content: center; }

/* Navegación principal y selector de estados */
.header-actions { display: flex; grid-column: 3; grid-row: 1; align-items: center; gap: .55rem; }
.header-icon-button, .theme-toggle {
    display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0;
    color: var(--heading); background: var(--surface); border: 1px solid var(--line);
    border-radius: 11px; cursor: pointer; text-decoration: none;
}
.header-icon-button:hover, .theme-toggle:hover { color: var(--brand); background: var(--brand-pale); }
.theme-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: block; }
.states-menu { position: relative; }
.states-menu summary { display: inline-flex; align-items: center; gap: .3rem; color: var(--ink); font-size: .94rem; font-weight: 750; cursor: pointer; list-style: none; }
.states-menu summary::-webkit-details-marker { display: none; }
.states-menu[open] summary { color: var(--brand); }
.states-menu__chevron { display: inline-grid; place-items: center; margin-top: .08rem; transition: transform .18s ease; }
.states-menu__chevron .ui-icon { display: block; stroke-width: 2.35; }
.states-menu[open] .states-menu__chevron { transform: rotate(180deg); }
.states-menu__panel {
    position: absolute; top: calc(100% + 20px); left: 50%; z-index: 80;
    width: min(900px, calc(100vw - 40px)); padding: 1.35rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 35, 65, .2); transform: translateX(-50%);
}
.states-menu__panel::before { content: ""; position: absolute; top: -21px; left: 0; width: 100%; height: 22px; }
.states-menu__heading { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.states-menu__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .2rem .8rem; }
.states-menu__grid a { padding: .38rem .5rem; border-radius: 7px; font-size: .86rem; font-weight: 650; }
.states-menu__grid a:hover { background: var(--brand-pale); }

/* Tarjetas compactas de oficinas */
.office-card { padding: 1.45rem; overflow: hidden; border-radius: 9px; box-shadow: none; }
.office-card:hover { transform: none; border-color: #84add8; box-shadow: 0 10px 28px rgba(20,48,82,.08); }
.office-type-badge { display: inline-flex; align-items: center; gap: .5rem; width: fit-content; padding: 0; color: var(--brand-dark); background: transparent; border-radius: 0; font-size: .71rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.office-type-badge > span { width: 7px; height: 7px; background: var(--accent); border-radius: 2px; }
.office-card__count { color: var(--accent); font-size: .73rem; font-weight: 800; }
.office-card h2 { margin-bottom: 1rem; font-size: 1.2rem; }
.office-card__location { display: flex; gap: .55rem; align-items: center; margin-bottom: .7rem !important; color: var(--heading) !important; }
.office-card__location .ui-icon { flex: 0 0 auto; color: var(--accent); }
.office-card__location span { line-height: 1.3; }
.office-card__address { display: -webkit-box; min-height: 3em; margin-bottom: .8rem !important; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.office-card .text-link { width: fit-content; margin-top: .65rem; }
.text-link, .section-heading > a { display: inline-flex; align-items: center; gap: .35rem; width: fit-content; color: var(--heading); font-weight: 800; text-decoration-line: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .2em; transition: color .18s ease, text-decoration-color .18s ease; }
.text-link:hover, .section-heading > a:hover { color: var(--brand); text-decoration-color: var(--brand); }

/* Ficha territorial */
.office-hero--territorial { position: relative; display: block; overflow: hidden; padding: .8rem 0 clamp(2.75rem, 4.5vw, 3.8rem); color: #e8f1ff; background: radial-gradient(circle at 10% 0%, #1d5e9f 0, transparent 35%), linear-gradient(135deg, #0b1e38, #123e70); }
.office-hero--territorial::after { content: ""; position: absolute; right: -125px; bottom: -200px; width: 300px; height: 300px; border: 58px solid rgba(240,119,85,.17); border-radius: 50%; pointer-events: none; }
.office-hero--territorial .wrap { position: relative; z-index: 1; }
.office-hero--territorial .breadcrumbs, .office-hero--territorial .breadcrumbs a { color: #c8d9ed; }
.office-hero--territorial .breadcrumbs li:not(:last-child)::after { color: #7894b2; }
.office-hero__grid { padding-top: clamp(1.45rem, 3vw, 2.35rem); }
.office-hero__content { max-width: 900px; }
.office-hero__content h1 { max-width: 850px; margin: 0 0 .85rem; color: white; font-size: clamp(2.2rem, 4vw, 3.35rem); }
.office-hero__content .lead { max-width: 820px; margin: 0; color: #ccd9e8; }
.office-shell { --office-card-gap: 1.25rem; }
.office-location-index { margin-bottom: 3rem; }
.office-location-index__header { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.25rem; }
.office-location-index__header h2 { margin: 0 0 .35rem; font-size: clamp(1.75rem, 3vw, 2.25rem); }
.office-location-index__header p { max-width: 720px; margin: 0; color: var(--muted); }
.office-location-index__header > a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .35rem; font-size: .86rem; font-weight: 800; }
.office-location-index__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.office-location-index__grid > a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .8rem; min-height: 68px; padding: .8rem 1rem; color: var(--heading); background: var(--surface); border-radius: 12px; box-shadow: 0 8px 24px rgba(27,47,78,.08); text-decoration: none; transition: color .18s ease, box-shadow .18s ease, transform .18s ease; }
.office-location-index__grid > a:hover { color: var(--brand); box-shadow: 0 12px 30px rgba(27,47,78,.12); transform: translateY(-1px); }
.office-location-index__copy { display: grid; gap: .22rem; min-width: 0; }
.office-location-index__copy small { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: .8rem; font-weight: 500; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.office-location-index__icon, .office-location-index__arrow { display: grid; place-items: center; color: var(--brand); }
.office-location-index__icon { width: 36px; height: 36px; background: var(--brand-pale); border-radius: 50% 50% 50% 11px; }
.office-location-index__arrow { color: #8090a3; transition: color .18s ease, transform .18s ease; }
.office-location-index__grid > a:hover .office-location-index__arrow { color: var(--accent); transform: translateX(2px); }
.office-branches { display: grid; gap: 3rem; }
.office-branch-group { display: grid; gap: var(--office-card-gap); min-width: 0; }
.office-branch { scroll-margin-top: 110px; padding: 1.7rem; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.office-branch__header { display: flex; align-items: start; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.3rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.office-branch__header h2 { margin: .55rem 0 .2rem; font-size: 1.65rem; }
.office-branch__header p { margin: 0; color: var(--muted); }
.button--with-icon { gap: .5rem; }
.office-fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.office-fact { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem; padding: 1.15rem; background: var(--soft); border: 1px solid var(--line); border-radius: 15px; }
.office-fact--highlight { background: var(--accent-pale); border-color: #f2c8ba; }
.office-fact--contact { background: linear-gradient(115deg, var(--brand-pale), var(--surface)); }
.office-fact__icon { display: grid; place-items: center; width: 42px; height: 42px; color: var(--brand); background: var(--surface); border-radius: 11px; box-shadow: 0 4px 14px rgba(20,50,85,.08); }
.office-fact--highlight .office-fact__icon { color: var(--accent); }
.office-fact h3 { margin: .15rem 0 .55rem; font-size: 1.04rem; }
.office-fact p, .office-fact address { margin-bottom: .45rem; color: var(--muted); font-size: .92rem; }
.office-fact dl { margin: 0; }
.office-fact dl div { display: flex; justify-content: space-between; gap: .7rem; padding: .28rem 0; }
.office-fact dd { text-align: right; font-size: .9rem; }
.office-fact__primary { color: var(--heading) !important; font-size: 1.08rem !important; font-weight: 800; }
.office-fact--contact .office-fact__primary { margin: .15rem 0 .7rem; }
.important-contact-link--office { font-size: clamp(1.45rem, 3vw, 2.05rem); }
.verification-note { display: flex; gap: .7rem; margin-top: 1rem; padding: .8rem 1rem; color: var(--muted); background: var(--brand-pale); border-radius: 11px; }
.verification-note .ui-icon { flex: 0 0 auto; color: var(--brand); }
.verification-note p { margin: 0; font-size: .87rem; }
.office-map { scroll-margin-top: 110px; margin: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.office-map__header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem 1.7rem; }
.office-map__heading { display: flex; align-items: flex-start; gap: .8rem; min-width: 0; }
.office-map__icon { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; color: var(--brand); background: var(--brand-pale); border-radius: 50%; }
.office-map h2 { margin: 0 0 .35rem; font-size: 1.5rem; }
.office-map__heading p { display: flex; flex-direction: column; gap: .1rem; margin: 0; color: var(--muted); font-size: .87rem; }
.office-map__heading p strong { color: var(--ink); font-weight: 750; }
.office-map__frame { position: relative; height: clamp(320px, 35vw, 430px); background: var(--soft); border-top: 1px solid var(--line); }
.office-map__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.before-visit, .transaction-hub { margin-top: 4rem; }
.office-services { scroll-margin-top: 110px; margin-top: var(--office-card-gap); padding: clamp(2rem, 4vw, 3rem); background: linear-gradient(135deg, #eaf5f2, #edf4fb); border: 1px solid #cddfdc; border-radius: 16px; }
.office-services__header { max-width: 850px; margin-bottom: 1.6rem; }
.office-services__header h2 { margin-bottom: .65rem; }
.office-services__header p { margin: 0; color: var(--muted); }
.office-services__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.office-service { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .85rem; min-height: 96px; padding: 1rem 1.1rem; color: var(--heading); background: rgba(255,255,255,.82); border: 1px solid #d5e2e5; border-radius: 10px; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.office-service__icon { display: grid; place-items: center; width: 42px; height: 42px; color: white; background: var(--brand); border-radius: 50%; }
.office-service strong, .office-service small { display: block; }
.office-service small { margin-top: .2rem; color: var(--muted); font-size: .83rem; line-height: 1.45; }
.office-service__arrow { display: grid; color: #8495a8; transition: color .2s ease, transform .2s ease; }
.office-service:hover { color: var(--brand-dark); border-color: #91b9d7; box-shadow: 0 8px 20px rgba(20, 55, 86, .08); transform: translateY(-1px); }
.office-service:hover .office-service__arrow { color: var(--accent); transform: translateX(3px); }
.before-visit { position: relative; overflow: hidden; padding: clamp(2rem, 4vw, 3rem); color: #eaf3ff; background: linear-gradient(115deg, #0b2341 0%, #123e70 72%, #15518b 145%); border-radius: 16px; box-shadow: 0 18px 42px rgba(11, 35, 65, .16); }
.before-visit::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--accent); }
.before-visit .section-heading { position: relative; }
.before-visit .section-heading h2 { color: #fff; }
.before-visit .eyebrow { color: #ffb39b; }
.before-visit .section-heading > p { max-width: 360px; color: #cbd9e9; }
.visit-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 0; list-style: none; counter-reset: none; }
.visit-steps li { display: grid; grid-template-columns: auto 1fr; gap: .15rem .75rem; min-height: 0; padding: 1.15rem; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; }
.visit-steps li > span { grid-row: 1 / 3; display: grid; place-items: center; width: 42px; height: 42px; color: #ff9f80; background: rgba(240,119,85,.16); border-radius: 10px; }
.visit-steps strong { color: #fff; }
.visit-steps small { color: #cbd9e9; line-height: 1.45; }
.visit-steps small a { color: #fff; font-weight: 750; text-decoration-color: #ff9f80; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.guide-grid--compact { grid-template-columns: repeat(4, 1fr); }
.guide-card--icon { padding: 1.25rem; }
.guide-card__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: .9rem; color: var(--brand); background: var(--brand-pale); border-radius: 11px; }
.guide-card--icon p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.ui-icon { flex: 0 0 auto; }
.content-directory-cta { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; max-width: 900px; margin: 2.5rem auto 0; padding: 1.35rem; background: var(--brand-pale); border: 1px solid var(--line); border-radius: var(--radius); }
.content-directory-cta__icon { display: grid; place-items: center; width: 50px; height: 50px; color: white; background: var(--brand); border-radius: 14px; }
.content-directory-cta .eyebrow { margin-bottom: .2rem; }
.content-directory-cta h2 { margin: 0 0 .25rem; font-size: 1.35rem; }
.content-directory-cta p { margin: 0; color: var(--muted); font-size: .9rem; }

.home-nearby { background: var(--surface); scroll-margin-top: 96px; }
.nearby-intro { max-width: 860px; margin-inline: auto; text-align: center; }
.nearby-intro h2 { margin-bottom: 1.25rem; }
.nearby-intro h2::after { display: block; width: 68px; height: 3px; margin: 1rem auto 0; background: var(--accent); border-radius: 3px; content: ""; }
.nearby-intro > p:first-of-type { margin-bottom: 1.7rem; color: var(--muted); font-size: 1.12rem; }
.nearby-locate { gap: .55rem; min-height: 58px; padding-inline: 1.5rem; color: var(--accent-ink); background: var(--accent); border-color: var(--accent); font-size: 1.02rem; }
.nearby-locate:hover { color: var(--accent-ink); background: #ffad93; border-color: #ffad93; }
.nearby-locate:disabled { cursor: wait; opacity: .9; }
.nearby-locate[hidden], .nearby-results[hidden] { display: none; }
.nearby-note { margin: 1rem 0 .55rem; color: var(--muted); font-size: .82rem; }
.nearby-status { margin: 1.4rem 0 0; color: var(--muted); }
.nearby-status:empty { display: none; }
.nearby-status[data-state="error"] { color: #a43b28; }
.nearby-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; text-align: left; }
.office-card__distance { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: -.25rem 0 .8rem !important; color: var(--brand-dark) !important; font-size: .86rem !important; }
.office-card__distance .ui-icon { flex: 0 0 auto; }
.office-card__distance strong { color: var(--heading); }
.office-card__distance span { color: var(--muted); }
.home-visit-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 0; list-style: none; }
.home-visit-flow li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .85rem; align-items: start; padding: 1.25rem; background: var(--surface); border-radius: 14px; box-shadow: 0 8px 24px rgba(27,47,78,.07); }
.home-visit-flow li > span { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; background: var(--brand); border-radius: 10px; font-size: .85rem; font-weight: 900; }
.home-visit-flow strong, .home-visit-flow small { display: block; }
.home-visit-flow small { margin-top: .35rem; color: var(--muted); line-height: 1.45; }
.guide-grid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-states .section-heading p { max-width: 620px; margin: .55rem 0 0; color: var(--muted); }
.home-state-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.home-state-link { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 72px; padding: 1rem 1.1rem; color: var(--heading); background: var(--surface); border-radius: 12px; box-shadow: 0 7px 22px rgba(27,47,78,.065); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.home-state-link span, .home-state-link strong, .home-state-link small { display: block; min-width: 0; }
.home-state-link strong { line-height: 1.25; }
.home-state-link small { margin-top: .22rem; color: var(--muted); font-size: .76rem; }
.home-state-link .ui-icon { color: var(--brand); }
.home-state-link:hover { color: var(--brand); box-shadow: 0 12px 28px rgba(27,47,78,.11); transform: translateY(-2px); }

/* Arquitectura del directorio */
.directory-discovery { margin-bottom: 4rem; scroll-margin-top: 100px; }
.directory-discovery__heading { align-items: end; }
.directory-discovery__heading > p { max-width: 470px; margin: 0; color: var(--muted); }
.directory-discovery__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 1.25rem; align-items: start; }
.directory-discovery__panel { overflow: hidden; background: var(--surface); border-radius: 16px; box-shadow: 0 14px 38px rgba(27,47,78,.09); }
.directory-discovery__panel > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.3rem; background: var(--brand-pale); }
.directory-discovery__panel--cities > header { background: var(--accent-pale); }
.directory-discovery__panel h3 { margin: 0; font-size: 1.25rem; }
.directory-discovery__panel header a { font-size: .85rem; font-weight: 800; }
.directory-state-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .4rem 1.2rem 1rem; column-gap: 1.5rem; }
.directory-state-list > a, .directory-city-list > a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .7rem; min-height: 64px; padding: .75rem .15rem; color: var(--heading); border-bottom: 1px solid var(--line); text-decoration: none; }
.directory-city-list { padding: .4rem 1.2rem 1rem; }
.directory-city-list > a { grid-template-columns: minmax(0, 1fr) auto; }
.directory-state-list strong, .directory-state-list small, .directory-city-list strong, .directory-city-list small { display: block; }
.directory-state-list small, .directory-city-list small { margin-top: .1rem; color: var(--muted); font-size: .75rem; }
.directory-state-list em, .directory-city-list em { color: var(--muted); font-size: .75rem; font-style: normal; white-space: nowrap; }
.directory-state-list > a:hover, .directory-city-list > a:hover { color: var(--brand); }
.directory-results-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.25rem; }
.directory-results-heading > p { margin: 0; color: var(--muted); }
.city-link > span:nth-child(2) { min-width: 0; }
.city-link > span:nth-child(2) strong, .city-link > span:nth-child(2) small { display: block; }
.city-link > span:nth-child(2) small { margin-top: .15rem; color: var(--muted); font-size: .75rem; font-weight: 500; }

.city-office-shell { padding-top: clamp(2.5rem, 5vw, 4rem); }
.city-choice__header { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.4rem; }
.city-choice__header h2 { margin: 0 0 .4rem; }
.city-choice__header p { max-width: 700px; margin: 0; color: var(--muted); }
.city-choice__header > a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .35rem; }
.city-office-list { display: grid; gap: 1rem; }
.city-office-option { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.25rem; padding: 1.25rem; background: var(--surface); border-radius: 16px; box-shadow: 0 10px 28px rgba(27,47,78,.085); }
.city-office-option__number { display: grid; place-items: center; width: 46px; height: 46px; color: var(--brand); background: var(--brand-pale); border-radius: 12px; font-size: .82rem; font-weight: 900; }
.city-office-option h2 { margin: 0 0 .45rem; font-size: 1.25rem; }
.city-office-option h2 a { color: inherit; text-decoration: none; }
.city-office-option__type { margin: -.1rem 0 .55rem; color: var(--heading); font-size: .84rem; font-weight: 750; }
.city-office-option address { margin: 0; color: var(--muted); font-size: .9rem; }
.city-office-option dl { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; margin: .7rem 0 0; }
.city-office-option dl div { display: flex; gap: .35rem; }
.city-office-option dt, .city-office-option dd { font-size: .8rem; }
.city-office-option dd { color: var(--ink); }
.city-office-option .button { white-space: nowrap; }
.city-before-visit { margin-top: 3.5rem; }

.office-hero__type { display: inline-block; margin-bottom: .65rem; color: #ffb39b; font-size: .78rem; font-weight: 850; }
.office-hero__reviewed { display: flex; align-items: center; gap: .45rem; margin: 1rem 0 0; color: #b8cbe0; font-size: .84rem; }
.office-jump-nav { position: sticky; top: 84px; z-index: 20; display: flex; flex-wrap: wrap; gap: .5rem; margin: -1.2rem 0 1.5rem; padding: .65rem; background: color-mix(in srgb, var(--surface) 94%, transparent); border-radius: 12px; box-shadow: 0 8px 24px rgba(27,47,78,.1); backdrop-filter: blur(10px); }
.office-jump-nav a { padding: .5rem .75rem; color: var(--heading); background: var(--soft); border-radius: 8px; font-size: .82rem; font-weight: 800; text-decoration: none; }
.office-jump-nav a:hover { color: var(--brand); background: var(--brand-pale); }
.office-services__verified { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; padding: 0; list-style: none; }
.office-services__verified li { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; background: var(--surface); border-radius: 10px; }
.office-services__verified .ui-icon { color: var(--brand); }

.back-to-top { position: fixed; right: max(18px, calc((100vw - var(--max)) / 2)); bottom: 22px; z-index: 70; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; color: white; background: var(--brand); border: 0; border-radius: 50%; box-shadow: 0 10px 26px rgba(13,53,102,.28); cursor: pointer; }
.back-to-top[hidden] { display: none; }
.back-to-top:hover { background: var(--brand-dark); transform: translateY(-2px); }
.back-to-top svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Tema oscuro */
:root[data-theme="dark"] {
    --ink: #dbe6f5;
    --heading: #f4f8ff;
    --muted: #aab8ca;
    --brand: #69aef5;
    --brand-dark: #8bc1f8;
    --brand-pale: #142f4e;
    --accent: #ff9675;
    --accent-pale: #42271f;
    --paper: #0b1626;
    --surface: #111f32;
    --soft: #15243a;
    --line: #2b3d55;
    --warning: #3b311b;
    --shadow: 0 16px 42px rgba(0, 0, 0, .28);
}
[data-theme="dark"] .site-header { background: rgba(11,22,38,.96); }
[data-theme="dark"] .hero { background: linear-gradient(115deg, #071321 0%, #0b2744 62%, #104b8e 145%); }
[data-theme="dark"] .directory-hero { background: radial-gradient(circle at 8% 5%, rgba(32,104,174,.34), transparent 35%), linear-gradient(120deg, #071321 0%, #0b2949 68%, #104b8e 145%); }
[data-theme="dark"] .location-hero { background: radial-gradient(circle at 12% 0%, rgba(32,104,174,.3), transparent 36%), linear-gradient(122deg, #071321 0%, #0b2949 76%, #104b8e 145%); }
[data-theme="dark"] .directory-hero__filters { color: var(--ink); background: var(--surface); box-shadow: 0 22px 55px rgba(0,0,0,.34); }
[data-theme="dark"] .directory-hero__filters label { color: var(--heading); }
[data-theme="dark"] .directory-hero__filters .clear-filter { color: var(--brand); }
[data-theme="dark"] .office-hero--territorial { background: linear-gradient(135deg, #0a1728, #102e51); }
[data-theme="dark"] .state-list a,
[data-theme="dark"] .directory-filters input,
[data-theme="dark"] .directory-filters select,
[data-theme="dark"] .search-form--wide { color: #17243a; background: #fff; }
[data-theme="dark"] .search-form--wide label { color: #102c52; }
[data-theme="dark"] .search-form--wide input { color: #17243a; background: #fbfdff; }
[data-theme="dark"] .search-form--wide > small { color: #66758a; }
[data-theme="dark"] .office-type-badge { color: #9dcbfa; }
[data-theme="dark"] .office-fact--highlight { border-color: #694033; }
[data-theme="dark"] .guide-contact-link,
[data-theme="dark"] .office-fact--contact { background: linear-gradient(115deg, var(--brand-pale), var(--surface)); }
[data-theme="dark"] .source-box { background: var(--soft); }
[data-theme="dark"] .office-map__frame { background: #0c1929; }
[data-theme="dark"] .office-services { background: linear-gradient(135deg, #112b31, #13283f); border-color: var(--line); }
[data-theme="dark"] .office-service { background: rgba(17,31,50,.82); border-color: var(--line); }
[data-theme="dark"] .before-visit { background: linear-gradient(115deg, #081b31, #0d3158 78%, #104577 145%); box-shadow: 0 18px 42px rgba(0, 0, 0, .28); }
[data-theme="dark"] .site-footer { background: #07111f; }
[data-theme="dark"] .button.secondary, [data-theme="dark"] .button--secondary { color: var(--brand); background: var(--surface); border-color: var(--line); }
[data-theme="dark"] .button:hover { background: #357fc7; }
[data-theme="dark"] .nearby-locate:hover { color: var(--accent-ink); background: #ffad93; border-color: #ffad93; }
[data-theme="dark"] .action-cta { background: #0e2a48; }
[data-theme="dark"] .nearby-status[data-state="error"] { color: #ffad93; }

.site-footer { padding-top: 3.5rem; color: #e1e9f5; background: #0b1d35; }
.footer-grid { display: grid; grid-template-columns: 1.35fr repeat(3, .7fr); gap: 2.5rem; }
.footer-grid img { margin-bottom: 1rem; }
.footer-grid p { max-width: 560px; color: #bac8da; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.footer-grid a { color: #edf4ff; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-block: 1.2rem; color: #aebdd0; border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; }

:focus-visible { outline: 3px solid #efb64f; outline-offset: 3px; }

@media (max-width: 980px) {
    .header-row { grid-template-columns: 220px 1fr auto; }
    .main-nav { grid-column: 1 / -1; justify-content: center; padding-bottom: 1rem; }
    .office-hero { grid-template-columns: 1fr; }
    .guide-grid, .office-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .state-list, .city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .directory-filters { grid-template-columns: 1fr 1fr; }
    .directory-hero__grid { grid-template-columns: 1fr; }
    .directory-hero__filters { grid-template-columns: 1fr 1fr; }
    .office-layout { grid-template-columns: 1fr; }
    .office-sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
    .office-location-index__header { align-items: start; flex-direction: column; gap: .75rem; }
    .guide-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .states-menu__panel { left: auto; right: -180px; transform: none; }
    .guides-hero__grid { grid-template-columns: 1fr; align-items: stretch; }
    .guide-topic-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guide-topic-nav > a:nth-child(2) { border-right: 0; }
    .guide-topic-nav > a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .guides-library { padding-inline: 1.7rem; }
    .guide-topic { grid-template-columns: 1fr; gap: 1.6rem; }
    .guide-topic__header { position: static; max-width: 680px; }
    .directory-discovery__grid { grid-template-columns: 1fr; }
    .guide-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-state-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nearby-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .state-directory-layout { grid-template-columns: 1fr; }
    .state-directory-aside { position: static; }
    .state-directory-aside__panel nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; }
    .state-directory-aside__link:nth-child(odd) { border-right: 1px solid var(--line); }
}

@media (max-width: 760px) {
    body { font-size: 16px; }
    .wrap, .container { width: min(100% - 28px, var(--max)); }
    .site-disclaimer { font-size: .75rem; }
    .site-header { position: sticky; }
    .header-row { position: relative; grid-template-columns: minmax(0, 1fr) auto; column-gap: .55rem; min-height: 68px; }
    .brand { grid-column: 1; grid-row: 1; min-width: 0; }
    .brand img { width: min(178px, 48vw); height: auto; }
    .header-search { display: none; grid-column: 1 / -1; max-width: none; padding-bottom: 1rem; }
    .header-actions { grid-column: 2; grid-row: 1; justify-self: end; gap: .4rem; }
    .header-icon-button, .theme-toggle { width: 40px; height: 40px; border-radius: 10px; }
    .menu-toggle { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .42rem .7rem; color: var(--heading); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: .84rem; font-weight: 800; cursor: pointer; }
    .menu-toggle:hover, .site-header.is-open .menu-toggle { color: var(--brand); background: var(--brand-pale); border-color: #9fc1e4; }
    [data-theme="dark"] .menu-toggle { color: #f4f8ff; background: #111f32; border-color: #3b506c; }
    [data-theme="dark"] .menu-toggle:hover, [data-theme="dark"] .site-header.is-open .menu-toggle { color: #9dcbfa; background: #142f4e; border-color: #4e7095; }
    .menu-toggle__icon { position: relative; display: block; width: 15px; height: 12px; }
    .menu-toggle__icon::before, .menu-toggle__icon::after, .menu-toggle__icon > span { content: ""; position: absolute; left: 0; width: 15px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .18s ease, opacity .18s ease, top .18s ease; }
    .menu-toggle__icon::before { top: 0; }
    .menu-toggle__icon > span { top: 5px; }
    .menu-toggle__icon::after { top: 10px; }
    .site-header.is-open .menu-toggle__icon::before { top: 5px; transform: rotate(45deg); }
    .site-header.is-open .menu-toggle__icon > span { opacity: 0; }
    .site-header.is-open .menu-toggle__icon::after { top: 5px; transform: rotate(-45deg); }
    .main-nav { position: absolute; top: calc(100% - 1px); left: 0; right: 0; z-index: 90; display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; justify-content: initial; gap: .5rem; max-height: calc(100dvh - 78px); padding: .7rem; overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 14px 14px; box-shadow: 0 20px 44px rgba(15,35,65,.18); }
    .site-header.is-open .main-nav { display: grid; }
    .main-nav > a, .states-menu > summary { display: flex; align-items: center; min-height: 44px; padding: .65rem .75rem; color: var(--heading); background: var(--soft); border: 0; border-radius: 9px; font-size: .88rem; }
    .main-nav > a:hover, .states-menu > summary:hover, .states-menu[open] > summary { color: var(--brand); background: var(--brand-pale); }
    .main-nav > a.main-nav__nearby, .main-nav > a.main-nav__nearby:hover { color: var(--accent-ink); background: var(--accent); }
    .states-menu[open] { grid-column: 1 / -1; }
    .states-menu > summary { justify-content: space-between; }
    .states-menu__panel { position: static; width: 100%; margin-top: .5rem; padding: .8rem; border-radius: 10px; box-shadow: none; transform: none; }
    .states-menu__panel::before { display: none; }
    .states-menu__heading { flex-wrap: wrap; gap: .35rem .75rem; }
    .states-menu__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 300px; overflow: auto; }
    .states-menu__grid a { padding: .4rem; border: 0; }
    .hero { padding-block: 3rem; }
    .hero h1 { font-size: clamp(2.2rem, 10.5vw, 3rem); }
    .hero-search { padding: .9rem; border-radius: 15px; }
    .hero-search__row { flex-direction: column; gap: .6rem; }
    .hero-search input, .hero-search button { width: 100%; border-radius: 9px; }
    .directory-hero { padding-top: .6rem; }
    .directory-hero h1 { font-size: clamp(2.15rem, 10vw, 2.95rem); }
    .search-form--wide { padding: .9rem; border-radius: 15px; }
    .guide-grid, .guide-grid.large, .office-grid, .card-grid, .city-grid, .city-grid.compact, .state-list { grid-template-columns: 1fr; }
    .location-hero { padding-top: .6rem; }
    .location-hero h1 { font-size: clamp(2.1rem, 9.8vw, 2.85rem); }
    .section-heading { align-items: start; flex-direction: column; }
    .directory-filters { grid-template-columns: 1fr; }
    .directory-filters select, .directory-hero__filters select { height: 58px; min-height: 58px; padding: .8rem 2.6rem .8rem .9rem; font-size: 16px; line-height: 1.25; }
    .directory-filters button { width: 100%; }
    .directory-discovery__heading, .directory-results-heading, .city-choice__header { align-items: start; flex-direction: column; gap: .75rem; }
    .directory-state-list { grid-template-columns: 1fr; }
    .city-office-option { grid-template-columns: auto minmax(0, 1fr); gap: .85rem; }
    .city-office-option .button { grid-column: 1 / -1; width: 100%; }
    .city-office-option dl { flex-direction: column; }
    .office-jump-nav { top: 72px; margin-top: -.9rem; overflow-x: auto; flex-wrap: nowrap; }
    .office-jump-nav a { flex: 0 0 auto; }
    .office-services__verified { grid-template-columns: 1fr; }
    .home-state-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-visit-flow, .guide-grid--home { grid-template-columns: 1fr; }
    .nearby-results { grid-template-columns: 1fr; }
    .nearby-locate { width: 100%; }
    .state-directory-layout__main .city-grid.compact, .state-directory-layout__main .office-grid { grid-template-columns: 1fr; }
    .state-directory-aside__panel nav { grid-template-columns: 1fr; }
    .state-directory-aside__link:nth-child(odd) { border-right: 0; }
    .office-sidebar { grid-template-columns: 1fr; }
    .office-hero--territorial { padding-top: 1rem; }
    .office-hero__grid { padding-top: 1rem; }
    .office-hero__content h1 { font-size: clamp(2.1rem, 9.8vw, 2.85rem); }
    .office-location-index__grid { grid-template-columns: 1fr; }
    .office-branch { padding: 1.1rem; border-radius: 17px; }
    .office-branch__header { flex-direction: column; }
    .office-branch__header .button { width: 100%; }
    .office-map { margin: 0; border-radius: 17px; }
    .office-map__header { align-items: stretch; flex-direction: column; padding: 1.25rem 1.1rem; }
    .office-map__header .button { width: 100%; }
    .office-map__frame { height: 300px; }
    .office-fact-grid, .office-services__grid, .visit-steps { grid-template-columns: 1fr; }
    .office-services { padding: 1.5rem; border-radius: 13px; }
    .before-visit { padding: 1.5rem; border-radius: 13px; }
    .guide-grid--compact { grid-template-columns: 1fr; }
    .content-directory-cta { grid-template-columns: auto 1fr; }
    .content-directory-cta .button { grid-column: 1 / -1; width: 100%; }
    .office-actions, .action-cta { align-items: stretch; flex-direction: column; }
    .guide-official-action { align-items: stretch; flex-direction: column; }
    .guide-official-action .button { width: 100%; }
    .guides-hero { padding-bottom: 3.5rem; }
    .guides-hero .breadcrumbs { margin-bottom: 1.4rem; }
    .guides-hero h1 { font-size: clamp(2.15rem, 10.5vw, 3rem); }
    .guide-topic-nav { grid-template-columns: 1fr; margin-top: -1.7rem; border-radius: 11px; }
    .guide-topic-nav > a { border-right: 0; border-bottom: 1px solid var(--line); }
    .guide-topic-nav > a:last-child { border-bottom: 0; }
    .guides-library { margin-top: 1.8rem; margin-bottom: 3.5rem; padding: .25rem 1.1rem 1.2rem; border-radius: 16px; }
    .guide-topic__grid { grid-template-columns: 1fr; }
    .guide-topic { padding: 2.45rem 0; scroll-margin-top: 90px; }
    .guides-directory-callout { grid-template-columns: auto 1fr; padding: 1.4rem; }
    .guides-directory-callout .button { grid-column: 1 / -1; width: 100%; }
    .office-actions .button, .action-cta .button { width: 100%; }
    .source-directory { columns: 1; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; }
    .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
    .search-form__row { flex-direction: column; }
    .search-form--wide input, .search-form--wide button { width: 100%; }
}

@media (max-width: 380px) {
    .home-state-grid { grid-template-columns: 1fr; }
    .header-icon-button, .theme-toggle, .menu-toggle { width: 40px; min-width: 40px; padding: 0; justify-content: center; }
    .menu-toggle [data-menu-label] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Clear content navigation and transparent location notices; retain the site palette. */
.guide-toc { margin: 1.5rem 0 2rem; padding: 1.25rem 1.5rem; background: var(--soft); border-radius: 12px; }
.guide-toc ul { margin: .6rem 0 0; padding-left: 1.25rem; }
.guide-toc a, .guide-context-links a { text-decoration: underline; text-underline-offset: .2em; }
.guide-toc li + li, .guide-context-links li + li { margin-top: .5rem; }
.guide-toc a { display: inline-block; padding: .25rem 0; }
.article-content h2[id] { scroll-margin-top: 110px; }
.guide-context-links { margin: 1rem 0; padding-left: 1.25rem; }
.verification-note--pending { margin: 0 0 1.5rem; border-left: 4px solid #f27752; }
.verification-note--pending a { color: inherit; font-weight: 700; text-decoration: underline; }
.source-box a { overflow-wrap: anywhere; }
.location-pending { color: var(--ink); font-size: .85rem; font-weight: 600; }
