/* Señales de carretera: banda azul de autovía, paneles blancos con borde azul, el plazo como hito kilométrico. */
@font-face { font-family: "Overpass"; src: url("fonts/overpass-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Overpass"; src: url("fonts/overpass-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --blue: #0b4f9c;        /* panel de autovía */
  --blue-deep: #083c77;
  --blue-soft: #d9e4f1;
  --on-blue: #ffffff;
  --on-blue-2: #c9dbf0;   /* texto secundario sobre azul */
  --ground: #e9eef4;
  --panel: #ffffff;
  --ink: #17202b;
  --muted: #4a5868;
  --rule: #c7d3e1;
  --red: #c8102e;         /* cierra hoy, errores */
  --green: #1d6b3a;       /* adjudicada, confirmaciones */
  --green-soft: #e3f1e8;
  --works: #f2c200;       /* amarillo de obras: correcciones, avisos y premium */
  --works-soft: #fff6cc;
  --works-ink: #7a6100;   /* texto e iconos de «revisa» sobre blanco (contraste AA) */
  --radius: 8px;
  --radius-s: 6px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #9fb3ca var(--ground); }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 1rem/1.5 "Overpass", system-ui, sans-serif;
  font-variant-numeric: tabular-nums; caret-color: var(--blue); accent-color: var(--blue); }
::selection { background: var(--blue); color: var(--on-blue); }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.band :focus-visible { outline-color: var(--works); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: 2rem; font-weight: 800; margin: 0; }
h2 { font-size: 1.25rem; font-weight: 800; margin: 40px 0 12px; }
h3 { font-size: 1rem; font-weight: 700; margin: 20px 0 6px; }
p { margin: 0 0 12px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.i { flex: none; }
.muted { color: var(--muted); }
.note { color: var(--muted); font-size: .875rem; }
.pre { white-space: pre-line; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--works); color: var(--ink); padding: 10px 14px; border-radius: var(--radius-s); font-weight: 700; z-index: 10; }
.skip:focus { top: 12px; }

/* ---------- Banda azul ---------- */
.band { background: var(--blue); color: var(--on-blue); }
.band a { color: var(--on-blue); text-decoration: none; }
.band-top { display: flex; align-items: center; gap: 32px; min-height: 64px; }
.plate { font-weight: 800; font-size: 1.125rem; border: 2px solid var(--on-blue); border-radius: var(--radius-s); padding: 3px 12px 1px; letter-spacing: .01em; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: var(--radius-s); font-weight: 600; color: var(--on-blue-2); }
.nav a:hover { color: var(--on-blue); background: rgba(255, 255, 255, .08); }
.nav a[aria-current] { color: var(--on-blue); box-shadow: inset 0 -3px 0 var(--on-blue); border-radius: 0; }
.acct { margin-left: auto; display: flex; align-items: center; gap: 16px; font-weight: 600; }
.acct a:not(.btn) { display: inline-flex; align-items: center; gap: 6px; }
.band-body { padding-bottom: 24px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px 8px;
  border-radius: var(--radius-s); border: 2px solid transparent; font: 700 1rem/1 "Overpass", sans-serif; text-decoration: none;
  cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease); }
.btn .i { width: 18px; height: 18px; margin-top: -2px; }
.btn-primary, button:not([class]) { background: var(--blue); color: var(--on-blue); border-color: var(--blue); }
.btn-primary:hover, button:not([class]):hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--on-blue); }
.btn-light { background: var(--on-blue); color: var(--blue); }
.band .btn-light { color: var(--blue); }
.btn-light:hover { background: var(--blue-soft); color: var(--blue-deep); }
.btn-outline { background: var(--panel); color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-soft); color: var(--blue-deep); }
.btn-works { background: var(--works); color: var(--ink); border-color: var(--works); }
.btn-works:hover { background: #ffd633; color: var(--ink); }
button:not([class]) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px 8px; border-radius: var(--radius-s); border: 2px solid; font: 700 1rem/1 "Overpass", sans-serif; cursor: pointer; }
button.link { background: none; border: 0; padding: 0; min-height: 0; color: var(--blue); font: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
button.danger { background: var(--red); border-color: var(--red); color: #fff; }
button.danger:hover { background: #a00d25; border-color: #a00d25; }

/* ---------- Buscador (en la banda) ---------- */
.finder { display: grid; grid-template-columns: minmax(240px, 2.2fr) repeat(3, minmax(140px, 1fr)) minmax(190px, 1.2fr) auto; gap: 12px; align-items: end; margin: 4px 0 0; }
.field { min-width: 0; border: 0; margin: 0; padding: 0; }
.field label, .field legend { display: block; font-size: .8125rem; font-weight: 600; color: var(--on-blue-2); margin-bottom: 6px; padding: 0; }
.finder input, .finder select { width: 100%; height: 44px; border: 0; border-radius: var(--radius-s); background: var(--panel); color: var(--ink);
  font: 400 1rem "Overpass", sans-serif; padding: 2px 12px 0; }
.finder input::placeholder { color: #6a7787; }
.finder select, .form select { appearance: none; padding-right: 36px;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b4f9c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; }
.q-wrap { position: relative; }
.q-wrap .i { position: absolute; left: 12px; top: 12px; color: var(--blue); }
.q-wrap input { padding-left: 42px; }
.pair { display: flex; gap: 6px; }
.btn-go { height: 44px; padding-inline: 22px; }
.finder.finder-firm { grid-template-columns: minmax(0, 560px) max-content; justify-content: start; }
.m-show { display: none; }
.finder-firm .field-q { grid-column: auto; }

/* ---------- Cabecera de resultados ---------- */
.results-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin: 32px 0 16px; }
.count { margin: 4px 0 0; color: var(--muted); }
.count strong { color: var(--ink); }
.results-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.sort { display: flex; align-items: center; gap: 4px; font-size: .9375rem; color: var(--muted); }
.sort a { padding: 6px 10px 4px; border-radius: var(--radius-s); text-decoration: none; font-weight: 600; }
.sort a:hover { background: var(--blue-soft); }
.sort a[aria-current] { background: var(--blue); color: var(--on-blue); }

/* ---------- Paneles ---------- */
.panels { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.panel { position: relative; display: grid; grid-template-columns: 88px 184px minmax(0, 1fr) minmax(110px, 190px); align-items: center;
  background: var(--panel); border: 2px solid var(--blue); border-radius: var(--radius); min-height: 76px;
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease); }
.panel:hover, .panel:focus-within { border-color: var(--blue-deep); box-shadow: 0 6px 18px -8px rgba(8, 60, 119, .45); }
.hito { align-self: stretch; margin: 6px; border-radius: 5px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--blue); color: var(--on-blue); text-align: center; padding: 6px 2px 4px; }
.hito b { font-size: 1.75rem; font-weight: 800; line-height: 1; }
.hito small { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; color: var(--on-blue-2); }
.hito-today { background: var(--red); }
.hito-today b { font-size: 1.375rem; text-transform: uppercase; }
.hito-today small { color: #ffd9de; }
.hito-done { background: var(--green); }
.hito-done .i { width: 26px; height: 26px; }
.hito-none, .hito-closed { background: #dfe5ec; color: var(--muted); }
.hito-none small, .hito-closed small { color: var(--muted); }
.hito-none b { font-size: 1.125rem; }
.amount { text-align: right; padding: 0 22px 0 8px; font-size: 1.375rem; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.amount small { display: block; font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.main { padding: 12px 16px 12px 0; min-width: 0; }
.title { color: var(--ink); font-weight: 700; font-size: 1.0625rem; line-height: 1.3; text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.title::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.title:hover { color: var(--blue-deep); text-decoration: none; }
.title:focus-visible { outline: none; }
.panel:has(.title:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.meta { margin: 3px 0 0; color: var(--muted); font-size: .9375rem; display: flex; flex-wrap: wrap; gap: 0 14px; }
.meta > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.meta .buyer { position: relative; z-index: 1; color: var(--muted); text-decoration: none; }
.meta .buyer:hover { color: var(--blue); text-decoration: underline; }
.meta .winner { color: var(--green); font-weight: 600; }
.dest { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-right: 18px; color: var(--blue); font-weight: 700; font-size: .9375rem; text-align: right; }
.dest span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dest .i { transition: transform .15s var(--ease); }
.panel:hover .dest .i, .panel:focus-within .dest .i { transform: translateX(4px); }

.empty { background: var(--panel); border: 2px dashed var(--rule); border-radius: var(--radius); padding: 28px; }
.empty h2 { margin-top: 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 28px 0 8px; color: var(--muted); }

/* ---------- Ficha y órgano ---------- */
.crumbs { margin: 6px 0 14px; font-size: .9375rem; color: var(--on-blue-2); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--on-blue); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); }
.sign-title { font-size: clamp(1.5rem, 2.4vw, 2.125rem); font-weight: 800; color: var(--on-blue); max-width: 52ch; margin: 0 0 8px; }
.sign-sub { color: var(--on-blue-2); margin: 0 0 18px; font-size: 1.0625rem; }
.sign-sub a { color: var(--on-blue); }
.sign-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.sign-row > .btn, .sign-row > form { margin-left: auto; }
.sign { display: flex; align-items: stretch; border: 2px solid var(--on-blue); border-radius: var(--radius); padding: 6px; max-width: 100%; }
.sign .hito { margin: 0 6px 0 0; min-width: 96px; padding: 10px 12px 8px; box-shadow: 0 0 0 2px var(--on-blue); }
.sign .hito b { font-size: 2.125rem; }
.sign-lines { display: flex; flex-wrap: wrap; margin: 0; }
.sign-lines div { display: flex; flex-direction: column; justify-content: center; padding: 4px 22px 2px; border-left: 1px solid rgba(255, 255, 255, .35); }
.sign-lines div:first-child { border-left: 0; }
.sign-lines dd { margin: 0; font-size: 1.5rem; font-weight: 800; line-height: 1.15; color: var(--on-blue); }
.sign-lines dt { order: 2; font-size: .8125rem; font-weight: 600; color: var(--on-blue-2); margin-top: 2px; }

.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; margin-top: 28px; }
.salidas { position: sticky; top: 16px; display: grid; gap: 10px; }
.salidas h2 { margin: 0 0 2px; font-size: 1rem; }
.salida { display: flex; align-items: center; gap: 12px; background: var(--blue); color: var(--on-blue); border-radius: var(--radius); padding: 12px 14px 10px; text-decoration: none; font-weight: 700; line-height: 1.25; }
.salida:hover { background: var(--blue-deep); color: var(--on-blue); text-decoration: none; }
.salida small { display: block; font-weight: 400; color: var(--on-blue-2); font-size: .875rem; }
.salida .i:last-child { margin-left: auto; transition: transform .2s var(--ease); }
.salida:hover .i:last-child { transform: translateX(3px); }
.salidas form .salida { width: 100%; border: 0; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }

.facts { display: flex; flex-wrap: wrap; gap: 0; margin: 0; background: var(--panel);
  border: 2px solid var(--blue); border-radius: var(--radius); overflow: hidden; }
.facts div { flex: 1 1 200px; padding: 12px 16px 10px; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); margin: 0 -1px -1px 0; }
.facts dt { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 700; }
.block { background: var(--panel); border-radius: var(--radius); padding: 4px 20px 18px; margin-top: 16px; border: 1px solid var(--rule); }
.block > h2 { margin: 18px 0 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.tbl th, .tbl td { text-align: left; padding: 10px 10px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl thead th { font-size: .8125rem; font-weight: 700; color: var(--blue); border-bottom: 2px solid var(--blue); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl details { margin-top: 4px; font-size: .875rem; color: var(--muted); }
.tbl summary { cursor: pointer; color: var(--blue); font-weight: 600; }
.list { margin: 0; padding-left: 20px; }
.list li { margin: 6px 0; }
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.docs a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.docs .muted { margin-left: 28px; font-size: .875rem; display: block; }
.baja { margin: 12px 0 0; }
.facts-note { margin: 8px 0 0; }
.baja strong { font-size: 1.125rem; }

.block:has(> .premium-box) { background: var(--works-soft); border: 2px solid var(--works); }
.block > .premium-box { background: none; border: 0; padding: 0; margin: 0; }
.premium-box { background: var(--works-soft); border: 2px solid var(--works); border-radius: var(--radius); padding: 16px 18px; margin-top: 12px; }
.premium-box p { margin-bottom: 12px; }
.summary-lead { font-size: 1.125rem; font-weight: 700; }
.ai-note { border-top: 1px solid var(--rule); margin-top: 16px; padding-top: 10px; }

.cols { display: grid; gap: 0 24px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* ---------- Cuentas, formularios, avisos ---------- */
.narrow { max-width: 460px; }
.page-head { margin: 8px 0 22px; }
.page-head h1 { color: var(--on-blue); }
.page-head p { color: var(--on-blue-2); margin: 6px 0 0; }
.form { display: grid; gap: 6px; background: var(--panel); border: 2px solid var(--blue); border-radius: var(--radius); padding: 22px; margin-top: 28px; }
.form label { font-size: .9375rem; font-weight: 700; margin-top: 8px; }
.form input[type=email], .form input[type=password], .form input[type=text] { font: inherit; height: 46px; padding: 2px 12px 0; border: 2px solid var(--rule); border-radius: var(--radius-s); background: var(--panel); color: var(--ink); }
.form input:focus { border-color: var(--blue); }
.form .check { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; }
.form .check input { width: 18px; height: 18px; margin-top: 3px; }
.form button { margin-top: 14px; }
.after-form { margin-top: 16px; }
.alert { padding: 12px 16px 10px; border-radius: var(--radius-s); margin: 28px 0 0; font-weight: 600; }
.alert + .form { margin-top: 16px; }
.alert.ok { background: var(--green-soft); color: var(--green); border: 1px solid #b5dbc3; }
.alert.error { background: #fdecee; color: var(--red); border: 1px solid #f3b9c2; }
.alert.info { background: var(--works-soft); color: var(--ink); border: 1px solid var(--works); }
.logout { margin-top: 32px; }

/* ---------- Legales ---------- */
.legal { max-width: 76ch; background: var(--panel); border-radius: var(--radius); padding: 8px 32px 28px; margin-top: 28px; border: 1px solid var(--rule); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.band .legal-nav a { padding: 6px 10px 4px; border-radius: var(--radius-s); color: var(--on-blue-2); font-weight: 600; }
.band .legal-nav a[aria-current] { color: var(--on-blue); box-shadow: inset 0 -3px 0 var(--on-blue); border-radius: 0; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }

/* ---------- Pie ---------- */
.foot { margin-top: 56px; border-top: 2px solid var(--blue); background: var(--panel); color: var(--muted); font-size: .875rem; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 20px; padding-bottom: 28px; }
.foot-in p { max-width: 70ch; margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* ---------- Pantallas estrechas ---------- */
@media (max-width: 1080px) {
  .finder { grid-template-columns: 1fr 1fr 1fr; }
  .field-q { grid-column: 1 / -1; }
  .layout-2 { grid-template-columns: minmax(0, 1fr); }
  .salidas { position: static; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .salidas h2 { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: 1.625rem; }
  .band-top { flex-wrap: wrap; gap: 8px 16px; padding-top: 12px; }
  .nav { order: 3; width: 100%; overflow-x: auto; margin: 0 -8px; padding-bottom: 4px; }
  .nav a { white-space: nowrap; }
  .acct { gap: 12px; }
  .acct .btn { min-height: 38px; padding: 8px 12px 6px; font-size: .9375rem; }
  .finder { grid-template-columns: 1fr 1fr; }
  .field-amount, .btn-go { grid-column: 1 / -1; }
  .finder.finder-firm { grid-template-columns: minmax(0, 1fr); }
  .m-hide { display: none; }
  .m-show { display: inline; }
  .panel { grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "hito amount dest" "main main main"; min-height: 0; }
  .hito { grid-area: hito; margin: 6px; min-height: 58px; }
  .hito b { font-size: 1.5rem; }
  .amount { grid-area: amount; text-align: left; padding: 0 8px; font-size: 1.25rem; }
  .dest { grid-area: dest; padding-right: 14px; font-size: .875rem; }
  .main { grid-area: main; padding: 0 14px 12px; }
  .results-head { margin-top: 24px; }
  .sign-head { display: flex; flex-direction: column; }
  .sign-head .crumbs { order: -2; }
  .sign-head .sign-row { order: -1; margin: 0 0 18px; }
  .sign-row > .btn, .sign-row > form, .sign-row > form .btn { margin-left: 0; width: 100%; }
  .sign { width: 100%; }
  .sign-lines div { padding: 4px 12px 2px; }
  .sign-lines dd { font-size: 1.25rem; }
  .sign-title { font-size: 1.375rem; }
  .legal { padding: 4px 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
.block form.narrow { display: grid; gap: 6px; margin-bottom: 8px; }
.block form.narrow label { font-weight: 700; font-size: .9375rem; }
.block form.narrow input { font: inherit; height: 46px; padding: 2px 12px 0; border: 2px solid var(--rule); border-radius: var(--radius-s); }
.block form.narrow button { justify-self: start; margin-top: 8px; }
.sep { display: inline-block; margin: 0 .5em; opacity: .7; }
.amount .na { font-size: 1rem; font-weight: 600; color: var(--muted); }
.nav { scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
@media (max-width: 720px) {
  .block { overflow-x: auto; }
  .block { padding-inline: 14px; }
}
@media (max-width: 720px) {
  .panel { grid-template-columns: 76px auto minmax(0, 1fr); }
  .dest { min-width: 0; }
  .nav a { padding: 8px 8px; }
}
.meta { gap: 0; }
.sign { width: fit-content; }
@media (max-width: 720px) { .sign { width: 100%; } }
@media (max-width: 720px) {
  .hito-today b { font-size: 1.125rem; }
  .meta { display: block; }
  .meta > * { display: block; }
  .meta .sep { display: none; }
}
.nowrap { white-space: nowrap; }
.meta .winner { display: inline; }
@media (max-width: 720px) {
  .sign-lines { display: grid; grid-template-columns: 1fr 1fr; flex: 1; }
  .sign-lines div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .35); padding: 8px 12px 6px; }
  .sign-lines div:nth-child(-n+2) { border-top: 0; }
  .sign-lines div:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .35); }
  .sign-lines div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .sign .hito + .sign-lines { grid-template-columns: 1fr; }
  .sign .hito + .sign-lines div { border-left: 0; }
  .sign .hito + .sign-lines div:nth-child(2) { border-top: 1px solid rgba(255, 255, 255, .35); }
}
.amount-long { font-size: 1.125rem; }

/* ---------- ¿Puedes optar? ---------- */
.verdict { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; font-weight: 800; margin: 0 0 12px; padding: 10px 14px 8px; border-radius: var(--radius-s); }
.verdict .i { width: 22px; height: 22px; margin-top: -2px; }
.verdict-ok { background: var(--green-soft); color: var(--green); }
.verdict-fail { background: #fdecee; color: var(--red); }
.verdict-check { background: var(--works-soft); color: var(--ink); }
.checks-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 0; }
.chk { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0 8px; border-bottom: 1px solid var(--rule); }
.chk:last-child { border-bottom: 0; }
.chk .i { margin-top: 2px; }
.chk-ok .i { color: var(--green); }
.chk-fail .i { color: var(--red); }
.chk-check .i { color: var(--works-ink); }
.chk-state { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-left: 6px; }
.chk-ok .chk-state { color: var(--green); }
.chk-fail .chk-state { color: var(--red); }
.chk-check .chk-state { color: var(--works-ink); }

/* ---------- Perfil de empresa ---------- */
.company-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px 24px; }
.company-grid > div, .company .checks { display: grid; gap: 6px; align-content: start; }
.company .note { margin: 0; }
.company fieldset { border: 0; padding: 0; margin: 8px 0 0; }
.company legend { font-size: .9375rem; font-weight: 700; padding: 0; margin-bottom: 6px; }
.sector-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 16px; }
.company input[type=text] { font: inherit; height: 46px; padding: 2px 12px 0; border: 2px solid var(--rule); border-radius: var(--radius-s); }
.company input[type=text]:focus { border-color: var(--blue); }
.company > .btn { justify-self: start; }

/* ---------- Ficha de empresa: importe por año (una serie, sin leyenda) ---------- */
.yearbars { display: flex; align-items: flex-end; gap: 2px; height: 200px; padding: 28px 0 0; border-bottom: 1px solid var(--rule); margin: 8px 0 44px; }
.yb { position: relative; flex: 1 1 0; max-width: 56px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; outline: none; }
.yb-bar { width: 70%; min-height: 2px; background: var(--blue); border-radius: 4px 4px 0 0; }
.yb:hover .yb-bar, .yb:focus-visible .yb-bar { background: var(--blue-deep); }
.yb:focus-visible { box-shadow: 0 0 0 2px var(--blue); border-radius: 4px; }
.yb-year, .yb-n { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .8125rem; }
.yb-year { bottom: -22px; color: var(--ink); font-weight: 600; }
.yb-n { bottom: -40px; color: var(--muted); }
.yb-tip { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); z-index: 2; display: none; white-space: nowrap;
  background: var(--ink); color: #fff; font-size: .8125rem; line-height: 1.35; padding: 6px 8px 4px; border-radius: var(--radius-s); text-align: center; }
.yb:hover .yb-tip, .yb:focus-visible .yb-tip { display: block; }
