:root {
  --river: #0c536c;
  --river-deep: #092f3d;
  --mate: #2f8f62;
  --sun: #f5b62e;
  --ink: #102a31;
  --paper: #f6faf9;
  --concrete: #dbe4e3;
  --red: #bd3542;
  --amber: #b76e0d;
  --green: #177443;
  --line: #9bb1b3;
  --shadow: 0 16px 40px rgb(9 47 61 / .12);
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, Aptos, "Segoe UI", sans-serif; line-height: 1.62; overflow-wrap: anywhere; }
img, video, iframe, svg { max-width: 100%; height: auto; }
a { color: var(--river); text-decoration-thickness: .1em; text-underline-offset: .16em; }
a:hover { color: var(--red); }
:focus-visible { outline: 4px solid var(--sun); outline-offset: 3px; border-radius: 3px; }
.skip-link { position: fixed; z-index: 100; top: .5rem; left: .5rem; transform: translateY(-160%); background: white; padding: .7rem 1rem; color: var(--ink); }
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 5; background: var(--river-deep); color: white; border-bottom: 5px solid var(--sun); }
.site-header::after { content: "EXPEDIENTE · UY · 2026"; position: absolute; right: min(4vw, 3rem); bottom: -1.05rem; padding: .15rem .65rem; background: var(--sun); color: var(--river-deep); font: 800 .7rem/1.4 ui-monospace, monospace; letter-spacing: .12em; transform: rotate(-1deg); }
.masthead { width: min(1180px, calc(100% - 2rem)); margin: auto; min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.identity { display: inline-flex; align-items: center; gap: .75rem; color: white; text-decoration: none; min-width: 0; }
.identity:hover { color: white; }
.identity__mark { width: 52px; flex: 0 0 52px; }
.identity span { display: grid; }
.identity strong { font: 700 clamp(1.1rem, 3vw, 1.6rem)/1.05 Georgia, serif; }
.identity small { color: #bcd7d8; font-size: .76rem; letter-spacing: .04em; }
.primary-nav { width: min(1180px, calc(100% - 2rem)); margin: auto; display: flex; flex-wrap: wrap; gap: .25rem .4rem; padding: 0 0 .8rem; }
.primary-nav a { color: white; text-decoration: none; padding: .35rem .65rem; border: 1px solid rgb(255 255 255 / .22); border-radius: 99px; font-weight: 750; font-size: .86rem; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { background: white; color: var(--river-deep); }
.cta { display: inline-flex; align-items: center; justify-content: center; text-align: center; border-radius: 4px 14px 4px 14px; padding: .72rem 1rem; font-weight: 850; text-decoration: none; background: var(--sun); color: var(--river-deep); box-shadow: 4px 4px 0 var(--mate); }
.cta:hover { color: var(--river-deep); transform: translate(-1px,-1px); box-shadow: 6px 6px 0 var(--mate); }
.cta--inline { margin-top: .5rem; }

main { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2.4rem, 6vw, 5rem) 0; }
.page-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr); gap: clamp(1.3rem, 4vw, 4rem); align-items: end; padding: clamp(1.3rem, 4vw, 3rem); background: linear-gradient(135deg, #d7ebeb, white); border: 1px solid var(--line); border-radius: 8px 38px 8px 38px; box-shadow: var(--shadow); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0 auto 0 61%; border-left: 2px dashed rgb(12 83 108 / .25); transform: rotate(4deg); }
.eyebrow { margin: 0 0 .5rem; color: var(--river); font: 850 .76rem/1.3 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.12; text-wrap: balance; }
h1 { margin: .2rem 0 1rem; font-size: clamp(2.1rem, 6vw, 4.5rem); letter-spacing: -.035em; }
h2 { margin: 2.4rem 0 .9rem; font-size: clamp(1.55rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.18rem; }
.lede { max-width: 66ch; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.date-stamp { align-self: start; display: inline-grid; gap: .1rem; width: max-content; max-width: 100%; padding: .65rem .8rem; background: white; border: 2px solid var(--river); color: var(--river-deep); font: 800 .8rem/1.35 ui-monospace, monospace; transform: rotate(1deg); }
.date-stamp span { color: var(--red); }
.quick-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.quick-links a { padding: .52rem .75rem; background: white; border: 1px solid var(--line); border-radius: 3px 12px 3px 12px; font-weight: 800; text-decoration: none; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; margin: 2rem 0; }
.panel, .note, .step, .source-card { padding: 1.1rem; background: white; border: 1px solid var(--line); border-radius: 5px 22px 5px 22px; box-shadow: 0 7px 22px rgb(9 47 61 / .07); }
.panel h2, .panel h3, .note h2, .note h3 { margin-top: .25rem; }
.panel--dark { background: var(--river-deep); color: white; }
.panel--dark a { color: #bde8dc; }
.panel--sun { background: #fff3cf; border-color: #dbad35; }
.legal-cite { padding-left: 1rem; border-left: 5px solid var(--river); }
.legal-cite a { font-weight: 800; }

.ai-disclosure { margin: 2.6rem 0; padding: 1.25rem 1.4rem; background: #e6f3ef; border: 2px solid var(--mate); border-radius: 28px 6px 28px 6px; }
.ai-disclosure h2 { margin: 0 0 .6rem; font-size: 1.5rem; }
.ai-disclosure p:last-child { margin-bottom: 0; }

.legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin: 1rem 0 2rem; }
.legend__item { position: relative; padding: 1rem 1rem 1rem 3.25rem; background: white; border: 1px solid var(--line); border-radius: 50px 9px 9px 50px; }
.legend__item::before { content: ""; position: absolute; left: .8rem; top: 50%; width: 1.65rem; height: 1.65rem; border-radius: 50%; transform: translateY(-50%); background: var(--signal); box-shadow: 0 0 0 6px color-mix(in srgb, var(--signal) 18%, white); }
.legend__item strong { display: block; }
.legend__item--green { --signal: var(--green); }
.legend__item--amber { --signal: var(--amber); }
.legend__item--red { --signal: var(--red); }

.brand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin: 1rem 0 2rem; }
.brand-card { min-width: 0; }
.brand-card > a { min-height: 178px; height: 100%; display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: .3rem .8rem; padding: 1rem; background: white; color: var(--ink); border: 1px solid var(--line); border-top: 6px solid var(--signal); border-radius: 5px 24px 5px 24px; text-decoration: none; box-shadow: 0 7px 20px rgb(9 47 61 / .08); }
.brand-card > a:hover { transform: translateY(-3px); border-color: var(--signal); }
.brand-card[data-signal="green"] { --signal: var(--green); }
.brand-card[data-signal="amber"] { --signal: var(--amber); }
.brand-card[data-signal="red"] { --signal: var(--red); }
.brand-card img { grid-row: 1 / 3; width: 64px; height: 64px; object-fit: contain; background: #f4f7f6; border-radius: 50%; padding: .25rem; }
.brand-card h3 { margin: .1rem 0; font-family: inherit; font-size: 1.05rem; }
.brand-card p { margin: 0; font-size: .88rem; color: #3e555b; }
.brand-card__signal { grid-column: 2; align-self: end; color: var(--signal); font: 850 .72rem/1.3 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .06em; }
.catalogue-filter { display: grid; gap: .35rem; max-width: 36rem; margin: 1.4rem 0; font-weight: 800; }
.catalogue-filter input { width: 100%; padding: .8rem 1rem; border: 2px solid var(--river); border-radius: 4px 18px 4px 18px; font: inherit; }

.dossier { max-width: 1040px; margin: auto; }
.dossier__header { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 1.2rem; align-items: center; padding: 1.3rem; background: white; border: 1px solid var(--line); border-radius: 10px 38px 10px 38px; box-shadow: var(--shadow); }
.dossier__logo { width: 132px; height: 132px; object-fit: contain; border: 1px solid var(--concrete); border-radius: 50%; padding: .55rem; background: white; }
.dossier h1 { font-size: clamp(2rem, 5vw, 3.8rem); }
.domain { display: inline-block; max-width: 100%; padding: .25rem .55rem; background: #eaf0ef; font: 750 .88rem/1.4 ui-monospace, monospace; overflow-wrap: anywhere; }
.verdict { margin: 1.4rem 0; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 1rem; padding: 1.2rem; background: white; border: 2px solid var(--signal); border-radius: 50px 10px 10px 50px; }
.verdict[data-signal="green"] { --signal: var(--green); }
.verdict[data-signal="amber"] { --signal: var(--amber); }
.verdict[data-signal="red"] { --signal: var(--red); }
.verdict__lamp { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--signal); font: 900 .72rem/1.2 ui-monospace, monospace; text-align: center; text-transform: uppercase; box-shadow: inset 0 0 0 8px rgb(255 255 255 / .25); }
.verdict h2 { margin: .1rem 0 .4rem; font-size: 1.6rem; }
.verdict p { margin: 0; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin: 1rem 0; }
.fact { padding: .8rem; background: #eaf2f1; border-left: 4px solid var(--river); }
.fact strong { display: block; font-size: .76rem; color: var(--river); text-transform: uppercase; letter-spacing: .06em; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.evidence { margin: 0; padding: .7rem; min-width: 0; background: white; border: 1px solid var(--line); border-radius: 6px 26px 6px 26px; overflow: hidden; }
.evidence img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #edf2f1; border-radius: 3px 18px 3px 18px; }
.evidence figcaption { padding: .7rem .2rem .1rem; font-size: .85rem; }
.evidence code { display: block; margin-top: .3rem; white-space: normal; overflow-wrap: anywhere; color: #486067; }
.stub { padding: 1rem 1.2rem; background: #fff5d8; border-left: 6px solid var(--sun); }
.journey-cta { margin: 2rem 0; padding: 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--river-deep); color: white; border-radius: 8px 32px 8px 32px; }
.journey-cta p { margin: 0; max-width: 62ch; }

.steps { counter-reset: steps; display: grid; gap: .8rem; }
.step { position: relative; padding-left: 4.1rem; }
.step::before { counter-increment: steps; content: counter(steps, decimal-leading-zero); position: absolute; left: 1rem; top: .8rem; color: var(--river); font: 900 1.5rem/1 ui-monospace, monospace; }
.urgent { background: var(--river-deep); color: white; border: 5px solid var(--sun); padding: clamp(1.2rem, 4vw, 2rem); border-radius: 8px 36px 8px 36px; }
.urgent a { color: #c7f2e5; }
.urgent__number { display: inline-block; font: 900 clamp(2rem, 8vw, 4.5rem)/1 ui-monospace, monospace; color: var(--sun); text-decoration: none; }

form { display: grid; gap: 1rem; max-width: 760px; }
label { display: grid; gap: .35rem; font-weight: 800; }
input, textarea, select, button { max-width: 100%; font: inherit; }
input, textarea, select { padding: .75rem; border: 2px solid var(--line); border-radius: 4px 14px 4px 14px; background: white; color: var(--ink); }
textarea { min-height: 10rem; resize: vertical; }
button { width: max-content; border: 0; cursor: pointer; }
.form-help { color: #486067; font-size: .9rem; }
.sitemap-list { columns: 2; column-gap: 2rem; }
.sitemap-list li { break-inside: avoid; margin: .55rem 0; }
.source-host { font-family: ui-monospace, monospace; font-size: .82rem; overflow-wrap: anywhere; }

.site-footer { background: #061f29; color: #d9e8e7; display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 2rem; padding: 2.3rem max(1rem, calc((100vw - 1180px)/2)); }
.site-footer p { margin: .4rem 0; max-width: 55ch; }
.site-footer nav { display: flex; flex-wrap: wrap; align-content: start; gap: .45rem .8rem; }
.site-footer a { color: white; }
.footer-date { font: 750 .78rem/1.5 ui-monospace, monospace; }

@media (max-width: 820px) {
  .page-hero, .split, .legend, .brand-grid, .evidence-grid, .facts, .site-footer { grid-template-columns: 1fr 1fr; }
  .page-hero > :first-child, .site-footer > :first-child, .site-footer > :last-child { grid-column: 1 / -1; }
  .page-hero::before { display: none; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .masthead { align-items: stretch; flex-direction: column; padding: .85rem 0 .65rem; }
  .cta--header { width: 100%; }
  .primary-nav { gap: .4rem; }
  .primary-nav a { flex: 1 1 28%; text-align: center; }
  main { width: min(100% - 1rem, 1180px); }
  .page-hero, .split, .legend, .brand-grid, .evidence-grid, .facts, .site-footer { grid-template-columns: minmax(0, 1fr); }
  .page-hero { padding: 1rem; }
  .brand-card > a { min-height: 150px; }
  .dossier__header { grid-template-columns: 82px minmax(0, 1fr); padding: .85rem; }
  .dossier__logo { width: 82px; height: 82px; }
  .verdict { grid-template-columns: 58px minmax(0, 1fr); padding: .75rem; }
  .verdict__lamp { width: 52px; height: 52px; font-size: .58rem; }
  .sitemap-list { columns: 1; }
}

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