:root {
  --navy-950: #061f40;
  --navy-900: #082650;
  --navy-800: #0a2a56;
  --blue-700: #08629f;
  --ink: #112f4d;
  --muted: #657b90;
  --line: #d4e0ea;
  --danger: #a93434;
  --burgundy: #8f2f2b;
  --burgundy-dark: #74231f;
  --warm-50: #f5f7f9;
  --warm-100: #e9eef2;
  --white: #fff;
  --page-width: 1480px;
  --form-width: 1000px;
  --dossier-content-width: clamp(980px, 75vw, 1440px);
  --card-shadow: 0 24px 70px rgba(9, 45, 78, .17), 0 5px 18px rgba(9, 45, 78, .08);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #eaf2f7; }

body {
  position: relative;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: transparent;
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.session-open,
body.info-open,
body.search-open,
body.dossier-loading-open { overflow: hidden; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Barra superior */
.topbar {
  position: relative;
  z-index: 20;
  height: 58px;
  color: var(--white);
  background: #082650;
  border-top: 5px solid #61504a;
  box-shadow: 0 3px 16px rgba(4, 31, 55, .16);
}

.topbar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, .18);
}

.topbar-inner {
  width: min(var(--page-width), calc(100% - 64px));
  height: 53px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-main,
.session-data,
.nav-item,
.secure-session { display: flex; align-items: center; }
.nav-main { gap: 46px; }
.nav-item { position: relative; min-height: 40px; padding: 0 2px; gap: 11px; color: #fff; background: transparent; border: 0; font: 600 14px/1 "Segoe UI", Inter, Arial, sans-serif; white-space: nowrap; cursor: pointer; transition: color .18s ease; }
.nav-item::after { content: ""; position: absolute; right: 2px; bottom: 0; left: 2px; height: 2px; background: #d5e5f1; border-radius: 999px; opacity: 0; transform: scaleX(.55); transition: opacity .18s ease, transform .18s ease; }
.nav-item:hover { color: #e6f3fb; }
.nav-item:hover::after,
.nav-item.is-active::after { opacity: 1; transform: scaleX(1); }
.nav-item.is-active::after { background: #d76a6d; }
.nav-item:focus-visible { outline: 2px solid rgba(255, 255, 255, .78); outline-offset: 4px; border-radius: 3px; }
.nav-item svg { width: 20px; height: 20px; }
.session-data { gap: 16px; font-size: 12.5px; font-weight: 600; }
.session-data > i { width: 1px; height: 22px; background: rgba(255, 255, 255, .38); }
.secure-session { gap: 8px; }
.secure-session svg { width: 19px; height: 19px; margin-right: 3px; }
.secure-session strong { min-width: 42px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* Fotografía arquitectónica con tratamiento institucional */
.background-scene {
  position: absolute;
  z-index: 0;
  inset: 58px 0 auto;
  height: calc(100% - 58px);
  min-height: calc(100vh - 58px);
  overflow: hidden;
  background: #edf5fa;
}

.background-scene::before {
  content: "";
  position: absolute;
  inset: 106px auto 0 0;
  width: 48%;
  background:
    linear-gradient(90deg, rgba(3, 38, 66, .28) 0%, rgba(12, 66, 105, .11) 48%, rgba(239, 248, 253, .58) 78%, #f5fbfe 100%),
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(5, 47, 80, .18)),
    url("assets/palacio-justicia.jpg") center 48% / cover no-repeat;
  filter: saturate(.82) contrast(.98);
}

.background-scene::after {
  content: "";
  position: absolute;
  top: -7%;
  right: -210px;
  width: 720px;
  height: 114%;
  border-radius: 53% 0 0 47% / 42% 0 0 58%;
  background: #061f40;
  box-shadow: -26px 0 80px rgba(4, 62, 106, .16);
  transform: rotate(-5deg);
}

.navy-rings {
  position: absolute;
  z-index: 1;
  top: 52px;
  right: -250px;
  width: 760px;
  height: 760px;
  border: 74px solid rgba(24, 74, 122, .36);
  border-radius: 50%;
  transform: rotate(-9deg);
  pointer-events: none;
}

.navy-rings::before,
.navy-rings::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

/* Superficie institucional clara para la lectura del expediente */
body.dossier-open {
  background-color: #f5f8fa;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(13, 48, 78, .055) 1px, transparent 1.15px),
    linear-gradient(135deg, rgba(255, 255, 255, .97), rgba(239, 245, 248, .9));
  background-size: 18px 18px, 100% 100%;
  background-attachment: fixed;
}
body.dossier-open .app-shell { width: 100%; padding: 16px 0 0; }
body.dossier-open .background-scene {
  background-color: rgba(248, 250, 251, .88);
  background-image:
    linear-gradient(115deg, transparent 0 46%, rgba(22, 61, 91, .025) 46% 47%, transparent 47% 100%),
    radial-gradient(circle at 20% 14%, rgba(255, 255, 255, .94), transparent 38%);
}
body.dossier-open .background-scene::before,
body.dossier-open .background-scene::after,
body.dossier-open .navy-rings { display: none; }
.navy-rings::before {
  inset: 64px -92px -38px 72px;
  border: 58px solid rgba(39, 91, 137, .24);
}

.navy-rings::after {
  inset: 168px -142px 48px 154px;
  border: 1px solid rgba(129, 171, 205, .16);
  box-shadow: 0 0 0 48px rgba(12, 54, 94, .13);
}

/* Composición principal */
.app-shell {
  position: relative;
  z-index: 2;
  width: min(var(--page-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 16px 0 30px;
}

.brand-row {
  position: relative;
  height: 90px;
  width: min(var(--form-width), 100%);
  margin: 0 auto;
  padding-left: 34px;
  display: flex;
  align-items: flex-start;
}

.brand-row::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -16px;
  left: 50%;
  width: 100vw;
  height: 106px;
  transform: translateX(-50%);
  background: #fff;
  border-bottom: 1px solid rgba(77, 125, 159, .1);
  box-shadow: 0 8px 30px rgba(17, 70, 107, .035);
}

.brand-logo {
  width: 112px;
  height: 84px;
  margin-top: -2px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-logo img {
  width: 106px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, .9));
}

.brand-divider {
  width: 1px;
  height: 60px;
  margin: 3px 22px 0 10px;
  background: #ccd8e1;
}

.brand-copy { min-width: 0; padding-top: 1px; }
.brand-copy h1 { margin: 0; color: #0b3154; font-size: 27px; line-height: 1.18; font-weight: 750; letter-spacing: -.7px; }
.brand-copy p { margin: 2px 0; color: #5e7286; font-size: 13px; }
.brand-copy em { color: #8192a2; font-size: 11.5px; letter-spacing: .01em; }

.court-label {
  margin-left: auto;
  padding: 7px 8px 0 0;
  color: #708398;
  font-size: 11.5px;
  line-height: 1.45;
}
.court-label b { display: block; width: 40px; height: 3px; margin-top: 9px; background: var(--burgundy); }

.content-layout {
  position: relative;
  width: 100%;
  margin-top: 14px;
}

/* Tarjeta de consulta */
.consult-card {
  width: min(var(--form-width), 100%);
  margin: 0 auto;
  min-width: 0;
  min-height: 684px;
  padding: 10px 24px 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, .975);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 17px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
}

.search-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.search-tab {
  height: 66px;
  padding: 0 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  color: #294766;
  background: #edf2f6;
  border: 1px solid #edf2f6;
  border-radius: 9px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color .22s ease, background-color .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.search-tab:hover { border-color: #cddbe6; transform: translateY(-1px); }
.search-tab:focus-visible { outline: 3px solid rgba(26, 111, 168, .22); outline-offset: 2px; }

.search-tab.active {
  color: var(--white);
  background: #082650;
  border-color: rgba(6, 69, 119, .25);
  box-shadow: 0 7px 16px rgba(6, 76, 130, .15), inset 0 1px rgba(255, 255, 255, .16);
}
.search-tab > svg {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 8px;
  color: #245477;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(30, 88, 128, .09);
  border-radius: 12px;
  stroke-width: 1.65;
}
.search-tab.active > svg {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px rgba(255, 255, 255, .1);
}
.search-tab strong { display: block; margin-bottom: 3px; font-size: 15.5px; }
.search-tab span { display: block; font-size: 12px; opacity: .82; }
.search-tab > div,
.section-heading > div { min-width: 0; }

.security-banner {
  min-height: 93px;
  margin: 22px 6px 18px;
  padding: 14px 18px 14px 15px;
  display: grid;
  grid-template-columns: 59px minmax(0, 1fr) 178px;
  align-items: center;
  background: #eef6fb;
  border: 1px solid #b9d3e3;
  border-radius: 11px;
  box-shadow: 0 6px 18px rgba(8, 38, 80, .04);
}

.security-icon {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  color: #082650;
  background: #fff;
  border: 1px solid #cadae5;
  border-radius: 50%;
  box-shadow: 0 5px 14px rgba(8, 38, 80, .055);
}
.security-icon svg { width: 31px; height: 31px; }
.security-copy { min-width: 0; }
.security-copy strong { display: block; color: #082650; font-size: 14.5px; }
.security-copy p { margin: 4px 0 0; color: #526c84; font-size: 11.5px; line-height: 1.5; }

.learn-more {
  width: 148px;
  height: 42px;
  margin-left: 18px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #082650;
  background: rgba(255, 255, 255, .78);
  border: 1px solid #c9d9e4;
  border-radius: 8px;
  box-shadow: 0 3px 9px rgba(8, 38, 80, .045), inset 0 1px rgba(255, 255, 255, .9);
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.learn-more:hover { color: var(--burgundy); background: #fff; border-color: #c78e8a; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(8, 38, 80, .08); }
.learn-more:focus-visible { outline: 3px solid rgba(143, 47, 43, .18); outline-offset: 3px; }
.learn-more svg:first-child { width: 19px; height: 19px; }
.learn-more svg:last-child { width: 15px; height: 15px; margin-left: auto; color: var(--burgundy); }
.learn-more span { font-size: 10.5px; font-weight: 750; }

/* Contenido intercambiable de los dos métodos de consulta */
.mode-stage { position: relative; }
.mode-panel { transform-origin: 50% 0; }
.mode-panel.is-entering { animation: modeEnter .36s cubic-bezier(.2, .82, .28, 1) both; }
.mode-panel.is-leaving { animation: modeLeave .16s ease both; }

@keyframes modeEnter {
  from { opacity: 0; transform: translateY(12px) scale(.992); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes modeLeave {
  to { opacity: 0; transform: translateY(-6px) scale(.995); }
}

.form-section { padding: 0 12px; }
.section-heading { margin-bottom: 12px; display: flex; align-items: center; gap: 18px; }
.step {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: #08649b;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(4, 77, 132, .18);
  font-size: 14px;
  font-weight: 700;
}
.section-heading h2 { margin: 0 0 2px; color: #10436e; font-size: 15.5px; }
.section-heading p { margin: 0; color: #71859a; font-size: 12px; }
.form-grid { display: grid; gap: 15px 34px; }
.form-grid-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 7px; color: #173650; font-size: 12px; font-weight: 700; }
.field label b { margin-left: 4px; color: var(--danger); }

.control {
  position: relative;
  height: 42px;
  display: flex;
  align-items: center;
  color: #173651;
  background: #fff;
  border: 1px solid #c7d5e0;
  border-radius: 6px;
  box-shadow: inset 0 1px 2px rgba(11, 52, 88, .025), 0 1px 2px rgba(11, 52, 88, .025);
}
.control > svg:first-child { width: 19px; height: 19px; margin: 0 12px; color: #09639f; }
.control > span { padding-left: 12px; border-left: 1px solid #d9e2e9; font-size: 12px; line-height: 25px; white-space: nowrap; }
.control .chevron { width: 15px; height: 15px; margin-right: 10px; margin-left: auto; color: #17314b; stroke-width: 2; }
.select { position: relative; z-index: 1; }
.select.is-open { z-index: 30; }
.select-trigger {
  width: 100%;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.select-trigger:hover { background: #f9fcfe; border-color: #99b9cf; }
.select-trigger:focus-visible { outline: 3px solid rgba(7, 92, 150, .18); outline-offset: 2px; border-color: #4686af; }
.select.is-open .select-trigger { background: #fff; border-color: #397ca9; box-shadow: 0 0 0 3px rgba(7, 92, 150, .11); }
.select-trigger .chevron { transition: transform .2s ease; }
.select.is-open .select-trigger .chevron { transform: rotate(180deg); }

.select-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  padding: 6px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-5px) scale(.985);
  transform-origin: top;
  background: #fff;
  border: 1px solid #c5d8e5;
  border-radius: 11px;
  box-shadow: 0 18px 38px rgba(8, 38, 80, .16), 0 4px 12px rgba(8, 38, 80, .08);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.select.is-open .select-menu { visibility: visible; opacity: 1; transform: translateY(0) scale(1); }
.select-option {
  width: 100%;
  min-height: 35px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #29475f;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font: 600 10.5px/1.25 "Segoe UI", Inter, Arial, sans-serif;
  text-align: left;
  cursor: pointer;
}
.select-option:hover,
.select-option:focus-visible { color: #082650; background: #edf5fa; outline: none; }
.select-option b { color: #0872ad; opacity: 0; font-size: 12px; }
.select-option.is-selected { color: #082650; background: #f1f7fb; }
.select-option.is-selected b { opacity: 1; }
.field small { display: block; margin-top: 5px; color: #7b8c9c; font-size: 10px; font-style: italic; }
.field-number { grid-column: 2; }

.standard-code-card {
  margin-top: 2px;
  padding: 14px 15px 13px;
  background: #f5f9fc;
  border: 1px solid #cbdde9;
  border-radius: 10px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .9);
}

.standard-code-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.standard-code-header > div { min-width: 0; }
.standard-code-header strong { display: block; color: #173650; font-size: 12px; }
.standard-code-header strong b { margin-left: 4px; color: var(--danger); }
.standard-code-header span { display: block; margin-top: 2px; color: #71859a; font-size: 10px; font-style: italic; }
.code-help {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 0;
  color: #08629f !important;
  background: transparent;
  border: 0;
  font-family: inherit;
  font-style: normal !important;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease;
}
.code-help:hover { color: var(--burgundy) !important; }
.code-help:focus-visible { outline: 3px solid rgba(143, 47, 43, .18); outline-offset: 3px; border-radius: 4px; }
.code-help b {
  width: 15px;
  height: 15px;
  display: inline-grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 700 9px/1 Georgia, serif;
}

.code-parts {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1.12fr 12px 1.08fr 12px .8fr 12px 1.12fr 12px .9fr 12px .9fr 12px .9fr;
  align-items: end;
  gap: 7px;
}

.code-parts > i {
  padding-bottom: 12px;
  color: #547087;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  text-align: center;
}

.code-part { margin: 0 !important; }
.code-part > span {
  display: block;
  margin-bottom: 5px;
  color: #6d8195;
  font-size: 8.5px;
  font-weight: 750;
  text-align: center;
  letter-spacing: .03em;
}

.code-part-input {
  width: 100%;
  height: 38px;
  padding: 0 7px;
  color: #143b5c;
  background: #fff;
  border: 1px solid #c4d5e1;
  border-radius: 6px;
  box-shadow: inset 0 1px 2px rgba(8, 38, 80, .03);
  font: 700 12px/1 "Segoe UI", Inter, Arial, sans-serif;
  text-align: center;
  text-transform: uppercase;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.code-part-input:hover { border-color: #93b4ca; }
.code-part-input:focus { outline: none; background: #fbfdff; border-color: #2679ad; box-shadow: 0 0 0 3px rgba(8, 98, 159, .13); }

.case-summary {
  margin-top: 11px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  background: #082650;
  border-radius: 7px;
}
.case-summary span { color: rgba(255, 255, 255, .68); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.case-summary strong { font-size: 12.5px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }

.field-error {
  min-height: 14px;
  margin: 5px 0 0;
  color: var(--burgundy);
  font-size: 9.5px;
  font-weight: 650;
}
.code-error { min-height: 0; margin: 6px 1px 0; text-align: right; }
.control.is-invalid,
.standard-code-card.is-invalid { border-color: #b94a43; box-shadow: 0 0 0 3px rgba(143, 47, 43, .11); }

.identity-section { margin-top: 19px; padding-top: 14px; border-top: 1px solid #d8e2ea; }
.identity-grid { display: grid; grid-template-columns: .88fr 1.2fr; gap: 66px; }
.captcha-field { position: relative; }
.captcha-field::before { content: ""; position: absolute; top: 7px; bottom: -14px; left: -33px; width: 1px; background: #d8e2ea; }
.captcha-row { display: grid; grid-template-columns: 150px minmax(126px, 1fr) 58px; gap: 9px; }

.captcha-code {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #173d5e;
  background:
    linear-gradient(7deg, transparent 47%, rgba(62, 108, 145, .22) 48% 50%, transparent 51%),
    linear-gradient(-9deg, transparent 45%, rgba(137, 72, 72, .16) 46% 48%, transparent 49%),
    #f8fafb;
  border: 1px solid #c7d5e0;
  border-radius: 6px;
  font: 700 24px/1 Georgia, serif;
  letter-spacing: 7px;
}
.captcha-input {
  width: 100%;
  min-width: 0;
  padding: 0 13px;
  font: 600 12px/1 "Segoe UI", Inter, Arial, sans-serif;
  text-transform: uppercase;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.captcha-input::placeholder { color: #77899a; font-weight: 400; text-transform: none; }
.captcha-input:focus { outline: none; border-color: #2679ad; box-shadow: 0 0 0 3px rgba(8, 98, 159, .13); }
.mini-control { padding: 0; text-align: center; color: #07558f; background: transparent; border: 0; font: inherit; cursor: pointer; }
.mini-control > svg { width: 58px; height: 42px; padding: 12px 16px; background: #f7f9fb; border: 1px solid #c7d5e0; border-radius: 6px; transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease; }
.mini-control:hover > svg { color: #082650; background: #eef5fa; border-color: #8fb2ca; transform: translateY(-1px); }
.mini-control:focus-visible { outline: 3px solid rgba(8, 98, 159, .18); outline-offset: 2px; border-radius: 7px; }
.mini-control small { margin-top: 4px; font-size: 8.5px; font-style: normal; line-height: 1.04; text-decoration: underline; }
.regen-control.is-refreshing svg { animation: captchaRefresh .42s ease; }

@keyframes captchaRefresh { to { transform: rotate(180deg); } }

.action-row { margin-top: 23px; display: flex; justify-content: center; }
.consult-button {
  width: 360px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--white);
  background: linear-gradient(105deg, #082650 0 86%, #8f2f2b 86% 100%);
  border: 1px solid rgba(4, 61, 106, .28);
  border-radius: 8px;
  box-shadow: 0 9px 18px rgba(4, 62, 106, .2), inset 0 1px rgba(255, 255, 255, .18);
  font: inherit;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.consult-button:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 13px 25px rgba(4, 49, 86, .25); }
.consult-button:focus-visible { outline: 3px solid rgba(143, 47, 43, .22); outline-offset: 3px; }
.consult-button:disabled { opacity: .7; cursor: wait; transform: none; }
.consult-button strong { font-size: 15.5px; }
.consult-button svg:first-child { width: 26px; height: 26px; }
.consult-button svg:last-child { width: 21px; height: 21px; }

/* Panel lateral */
.feature-panel {
  position: absolute;
  top: 0;
  left: calc(50% + (var(--form-width) / 2) + 44px);
  width: 218px;
  height: 100%;
  min-height: 684px;
  padding: 42px 0 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  color: var(--white);
}
.feature-panel-heading { position: relative; padding: 0 0 24px; }
.feature-panel-heading::before { content: ""; display: block; width: 34px; height: 3px; margin-bottom: 16px; background: #c3a24a; }
.feature-panel-heading span { display: block; margin-bottom: 8px; color: #a9c7df; font-size: 8px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.feature-panel-heading strong { display: block; max-width: 210px; font-size: 16px; line-height: 1.4; text-wrap: balance; }
.feature-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: #0a2a56;
  border: 1px solid rgba(189, 213, 231, .44);
  border-radius: 12px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-item strong { font-size: 12px; line-height: 1.35; }
.feature-item p { margin: 4px 0 0; color: rgba(255, 255, 255, .7); font-size: 9.5px; line-height: 1.45; }

/* Resultado de la consulta */
.results-view {
  width: min(var(--form-width), 100%);
  min-height: 0;
  margin: 14px auto 0;
  padding: 30px 34px 34px;
  color: #172f48;
  background: rgba(255, 255, 255, .985);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 17px;
  box-shadow: var(--card-shadow);
  animation: resultEnter .48s cubic-bezier(.18, .82, .22, 1) both;
}
.results-view[hidden] { display: none; }
.results-header { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 0 2px 23px; }
.results-heading { min-width: 0; display: flex; align-items: center; gap: 16px; }
.results-heading-icon { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; color: #fff; background: #082650; border-radius: 12px; box-shadow: 0 8px 18px rgba(8, 38, 80, .16); }
.results-heading-icon svg { width: 23px; height: 23px; }
.results-heading > div > span { color: var(--burgundy); font-size: 8px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.results-header h2 { margin: 4px 0 2px; color: #102c49; font-size: 24px; letter-spacing: -.45px; }
.results-header p { margin: 0; color: #6c7d8e; font-size: 11.5px; }
.back-button {
  height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #243d54;
  background: #f4f7f9;
  border: 1px solid #d6e0e7;
  border-radius: 8px;
  font: 750 10.5px/1 "Segoe UI", Inter, Arial, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.back-button svg { width: 17px; height: 17px; transform: rotate(180deg); }
.back-button:hover { background: #fff; border-color: #c78e8a; transform: translateX(-2px); }

.results-panel { overflow: hidden; background: #f5f8fa; border: 1px solid #d7e1e8; border-radius: 13px; box-shadow: 0 13px 34px rgba(21, 48, 72, .085); }
.results-summary { min-height: 72px; display: grid; grid-template-columns: 190px minmax(0, 1fr) 240px; color: #fff; background: #122943; border-bottom: 3px solid var(--burgundy); }
.results-summary > div { min-width: 0; padding: 0 20px; display: flex; align-items: center; }
.results-summary > div + div { border-left: 1px solid rgba(255, 255, 255, .13); }
.results-count { gap: 12px; }
.results-count > strong { font: 700 28px/1 Georgia, serif; }
.results-count > span { color: rgba(255, 255, 255, .72); font-size: 8.5px; font-weight: 750; line-height: 1.35; letter-spacing: .08em; text-transform: uppercase; }
.results-query { flex-direction: column; align-items: flex-start !important; justify-content: center; }
.results-query span,
.results-verified span { display: block; margin-bottom: 4px; color: rgba(255, 255, 255, .56); font-size: 7.5px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.results-query strong { font-size: 12.5px; font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.results-verified { gap: 11px; }
.results-verified > svg { width: 24px; height: 24px; color: #d99c99; }
.results-verified strong { font-size: 10.5px; }

.result-card { position: relative; margin: 20px; display: grid; grid-template-columns: minmax(0, 1fr) 246px; overflow: hidden; background: #fff; border: 1px solid #dfe6eb; border-radius: 11px; box-shadow: 0 8px 22px rgba(24, 45, 66, .065); }
.result-card-accent { position: absolute; z-index: 2; top: 0; bottom: 0; left: 0; width: 4px; background: var(--burgundy); }
.result-content { padding: 22px 25px 20px 28px; }
.result-title-row { padding-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e5ebef; }
.result-record { min-width: 0; display: flex; align-items: center; gap: 13px; }
.result-record-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; color: #0b5b8f; background: #eef5f9; border: 1px solid #d6e4ed; border-radius: 10px; }
.result-record-icon svg { width: 21px; height: 21px; }
.result-eyebrow { display: block; margin-bottom: 4px; color: var(--burgundy); font-size: 8px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.result-title-row h3 { margin: 0; color: #17283e; font-size: 19px; letter-spacing: -.2px; }
.court-reference { flex: 0 0 auto; padding: 9px 11px; display: flex; align-items: center; gap: 9px; color: #52697c; background: #f5f8fa; border: 1px solid #dce5eb; border-radius: 8px; }
.court-reference svg { width: 18px; height: 18px; color: #0a5b8e; }
.court-reference span { display: block; color: #81909d; font-size: 7px; font-weight: 700; text-transform: uppercase; }
.court-reference strong { display: block; margin-top: 2px; color: #334b5f; font-size: 9px; text-transform: none; }
.result-parties { padding: 17px 0 15px; display: grid; grid-template-columns: 1fr 1.45fr; gap: 24px; }
.result-parties > div { min-width: 0; padding-left: 11px; border-left: 2px solid #dbe5ec; }
.result-parties > div:first-child { border-left-color: #c98581; }
.result-parties span,
.result-metadata span { display: block; margin-bottom: 5px; color: #7b8793; font-size: 8.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.result-parties strong { color: #273b4f; font-size: 11px; text-transform: uppercase; }
.result-metadata { padding-top: 13px; display: grid; grid-template-columns: .7fr 1fr 1fr; gap: 15px; border-top: 1px solid #e7edf1; }
.result-metadata strong { color: #22384d; font-size: 10.5px; }
.state-active { display: inline-flex !important; align-items: center; gap: 7px; color: #2d7151 !important; }
.state-active i { display: inline-block; width: 6px; height: 6px; background: #55bd88; border-radius: 50%; box-shadow: 0 0 0 4px rgba(85, 189, 136, .13); }

.result-action { padding: 24px 20px; display: flex; flex-direction: column; align-items: stretch; justify-content: center; background: #f2f6f8; border-left: 1px solid #dbe4ea; }
.secure-label { margin-bottom: 13px; display: flex; align-items: center; gap: 7px; color: #657b8d; font-size: 8px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.secure-label svg { width: 15px; height: 15px; color: var(--burgundy); }
.result-action > strong { color: #1d364d; font-size: 12px; }
.result-action > p { margin: 5px 0 15px; color: #718393; font-size: 9.5px; line-height: 1.45; }
.result-action button {
  height: 50px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: var(--burgundy);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 9px 20px rgba(116, 35, 31, .21), inset 0 1px rgba(255, 255, 255, .16);
  font: 750 10.5px/1 "Segoe UI", Inter, Arial, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}
.result-action button:hover { background: var(--burgundy-dark); transform: translateY(-2px); }
.result-action button svg { width: 18px; height: 18px; }
.result-action button svg:last-child { width: 15px; }
.result-action small { margin-top: 11px; display: flex; align-items: flex-start; gap: 5px; color: #8995a0; font-size: 7.7px; line-height: 1.35; }
.result-action small svg { width: 12px; height: 12px; flex: 0 0 12px; color: #52758f; }

@keyframes resultEnter { from { opacity: 0; transform: translateY(15px) scale(.992); } }

/* Progreso de búsqueda */
.search-overlay {
  position: fixed;
  z-index: 1070;
  inset: 0;
  padding: 22px;
  display: grid;
  place-items: center;
  background: rgba(247, 251, 254, .94);
  backdrop-filter: blur(9px) saturate(.78);
  animation: overlayIn .22s ease both;
}
.search-overlay[hidden] { display: none; }
.search-progress-card {
  position: relative;
  width: min(445px, 100%);
  padding: 39px 44px 31px;
  overflow: hidden;
  color: #17283e;
  text-align: center;
  background: #fff;
  border: 1px solid #ccdae5;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(8, 38, 80, .18), 0 4px 14px rgba(8, 38, 80, .06);
}
.search-progress-card::before { content: ""; position: absolute; right: 44px; bottom: 0; left: 44px; height: 1px; background: #dbe6ee; }
.search-progress-accent { position: absolute; inset: 0 0 auto; height: 6px; background: #082650; }
.search-spinner { position: relative; width: 88px; height: 88px; margin: 0 auto 21px; display: grid; place-items: center; }
.search-spinner::before,
.search-spinner::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.search-spinner::before { border: 1px solid #cbdbe7; }
.search-spinner::after { inset: -1px; border: 3px solid transparent; border-top-color: #082650; border-right-color: #2d7eae; animation: searchSpin 1s linear infinite; }
.search-spinner span { position: absolute; inset: 10px; background: #f6f9fb; border: 1px solid #dbe6ee; border-radius: 50%; box-shadow: inset 0 1px #fff; }
.search-spinner img { position: relative; z-index: 1; width: 52px; height: 43px; object-fit: contain; }
.search-progress-kicker { color: #45657e; font-size: 8.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.search-progress-card h2 { margin: 10px 0 8px; color: #0b2f52; font-size: 22px; letter-spacing: .45px; text-transform: uppercase; }
.search-progress-card p { margin: 0; color: #647a8c; font-size: 11.5px; font-weight: 600; }
.search-progress-bar { height: 3px; margin: 27px 0 15px; overflow: hidden; background: #dce7ee; border-radius: 99px; }
.search-progress-bar span { display: block; width: 35%; height: 100%; background: linear-gradient(90deg, #0a2f57, #2c83b4); border-radius: inherit; animation: searchBar 1.65s ease-in-out infinite; }
.search-progress-card > small { display: flex; align-items: center; justify-content: center; gap: 7px; color: #7b8d9c; font-size: 9px; }
.search-progress-card > small svg { width: 14px; height: 14px; color: #285f88; }
@keyframes searchSpin { to { transform: rotate(360deg); } }
@keyframes searchBar { 0% { transform: translateX(-115%); } 100% { transform: translateX(320%); } }

/* Carga del expediente */
.dossier-loading-overlay {
  position: fixed;
  z-index: 1075;
  inset: 0;
  padding: 22px;
  display: grid;
  place-items: center;
  background: rgba(245, 249, 252, .96);
  backdrop-filter: blur(10px) saturate(.8);
  animation: overlayIn .22s ease both;
}
.dossier-loading-overlay[hidden] { display: none; }
.dossier-loading-card {
  position: relative;
  width: min(470px, 100%);
  padding: 30px 43px 31px;
  overflow: hidden;
  color: #162c43;
  text-align: center;
  background: #fff;
  border: 1px solid #ccd9e3;
  border-radius: 17px;
  box-shadow: 0 28px 75px rgba(8, 38, 80, .2), 0 4px 14px rgba(8, 38, 80, .06);
}
.dossier-loading-accent { position: absolute; inset: 0 0 auto; height: 6px; background: var(--navy-900); }
.dossier-loading-brand { padding-bottom: 20px; display: flex; align-items: center; justify-content: center; gap: 12px; border-bottom: 1px solid #e0e8ee; text-align: left; }
.dossier-loading-brand img { width: 47px; height: 39px; object-fit: contain; }
.dossier-loading-brand div { padding-left: 12px; border-left: 1px solid #d5dfe7; }
.dossier-loading-brand span,
.dossier-loading-brand strong { display: block; }
.dossier-loading-brand span { color: #6c7f8f; font-size: 8px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.dossier-loading-brand strong { margin-top: 3px; color: #173652; font-size: 11px; }
.dossier-loading-symbol { position: relative; width: 88px; height: 88px; margin: 25px auto 18px; display: grid; place-items: center; color: #fff; background: #082650; border: 9px solid #edf3f7; border-radius: 50%; box-shadow: 0 0 0 1px #cbdce8; }
.dossier-loading-symbol::before { content: ""; position: absolute; inset: -10px; border: 3px solid transparent; border-top-color: #0a5f97; border-right-color: #0a5f97; border-radius: 50%; animation: searchSpin 1s linear infinite; }
.dossier-loading-symbol span { position: absolute; right: -2px; bottom: 5px; width: 13px; height: 13px; background: #fff; border: 3px solid #0a5f97; border-radius: 50%; box-shadow: 0 0 0 3px #fff; }
.dossier-loading-symbol svg { width: 28px; height: 28px; }
.dossier-loading-kicker { color: #4d6c85; font-size: 8px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.dossier-loading-card h2 { margin: 9px 0 7px; color: #082650; font-size: 22px; letter-spacing: .35px; text-transform: uppercase; }
.dossier-loading-card > p { margin: 0; color: #667c8e; font-size: 11.5px; font-weight: 600; }
.dossier-loading-progress { height: 3px; margin: 25px 0 15px; overflow: hidden; background: #dce6ed; border-radius: 99px; }
.dossier-loading-progress span { display: block; width: 34%; height: 100%; background: #0a5f97; border-radius: inherit; animation: dossierProgress 1.45s ease-in-out infinite; }
.dossier-loading-card > small { display: flex; align-items: center; justify-content: center; gap: 7px; color: #7d8e9c; font-size: 9px; }
.dossier-loading-card > small svg { width: 14px; height: 14px; color: #315f81; }
@keyframes dossierProgress { 0% { transform: translateX(-110%); } 100% { transform: translateX(310%); } }

/* Detalle del expediente */
.dossier-view {
  width: 100%;
  min-height: calc(100vh - 58px);
  margin: 0;
  padding: 0 max(24px, calc((100vw - var(--dossier-content-width)) / 2)) 64px;
  color: #172f48;
  background-color: #f7fafc;
  background-image:
    radial-gradient(circle at 91% 9%, transparent 0 128px, rgba(8, 38, 80, .045) 129px 131px, transparent 132px 205px, rgba(8, 38, 80, .028) 206px 208px, transparent 209px),
    radial-gradient(circle at 8% 38%, transparent 0 82px, rgba(169, 43, 48, .025) 83px 84px, transparent 85px 154px, rgba(8, 38, 80, .025) 155px 156px, transparent 157px),
    linear-gradient(rgba(16, 53, 82, .024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 53, 82, .024) 1px, transparent 1px),
    repeating-linear-gradient(135deg, transparent 0 119px, rgba(9, 44, 75, .018) 120px, transparent 121px 240px),
    repeating-linear-gradient(0deg, rgba(12, 43, 70, .014) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(243, 247, 250, .94));
  background-size: 100% 620px, 100% 820px, 48px 48px, 48px 48px, 240px 240px, 100% 5px, 100% 100%;
  background-repeat: no-repeat, no-repeat, repeat, repeat, repeat, repeat, no-repeat;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.dossier-view[hidden] { display: none; }
.dossier-view.is-entering { animation: dossierEnter .52s cubic-bezier(.18, .82, .22, 1) both; }
.dossier-breadcrumb {
  width: 100vw;
  min-height: 54px;
  margin-left: calc(50% - 50vw);
  padding: 0 max(24px, calc((100vw - var(--dossier-content-width)) / 2));
  display: flex;
  align-items: center;
  gap: 11px;
  color: #66809a;
  background: #f7fafc;
  border-bottom: 1px solid #e3ebf1;
  box-shadow: inset 0 1px rgba(255, 255, 255, .9);
  font-size: 11px;
}
.dossier-breadcrumb > svg { width: 13px; height: 13px; color: #9aabba; }
.dossier-breadcrumb > span { display: inline-flex; align-items: center; gap: 8px; }
.dossier-breadcrumb > span > svg { width: 16px; height: 16px; }
.dossier-breadcrumb strong { color: #405c75; font-weight: 700; }
.dossier-header { padding: 36px 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.dossier-heading { min-width: 0; display: flex; align-items: center; gap: 24px; }
.dossier-heading-icon { width: 72px; height: 72px; flex: 0 0 72px; display: grid; place-items: center; color: #a51f26; background: #fbefef; border: 1px solid #f7e6e6; border-radius: 15px; }
.dossier-heading-icon svg { width: 36px; height: 36px; stroke-width: 1.75; }
.dossier-heading > div { min-width: 0; }
.dossier-heading > div > span { color: var(--burgundy); font-size: 9px; font-weight: 850; letter-spacing: .25em; text-transform: uppercase; }
.dossier-heading h2 { margin: 10px 0 6px; color: #082650; font-size: clamp(30px, 2.7vw, 43px); line-height: 1.05; font-weight: 780; letter-spacing: -1.25px; text-transform: none; }
.dossier-heading p { margin: 0; display: flex; align-items: center; gap: 8px; color: #607b92; font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.copy-case-code { width: 30px; height: 30px; padding: 0; display: inline-grid; place-items: center; color: #395a75; background: transparent; border: 0; border-radius: 7px; cursor: pointer; transition: color .18s ease, background-color .18s ease, transform .18s ease; }
.copy-case-code svg { width: 18px; height: 18px; }
.copy-case-code:hover { color: var(--burgundy); background: #f8eded; transform: translateY(-1px); }
.copy-case-code.is-copied { color: #237149; background: #eaf7f0; }
.dossier-status-pill { width: max-content; margin-top: 12px; padding: 8px 14px; display: flex; align-items: center; gap: 9px; color: #1f6c42; background: #edf8f1; border: 1px solid #d9eddf; border-radius: 999px; font-size: 12px; }
.dossier-status-pill i { width: 9px; height: 9px; background: #24a058; border-radius: 50%; box-shadow: 0 0 0 4px rgba(36, 160, 88, .1); }
.dossier-actions { flex: 0 0 auto; display: flex; gap: 10px; }
.dossier-actions .back-button { height: 50px; padding-inline: 22px; background: #fff; border-color: #cbd9e3; font-size: 10.5px; }
.print-button { height: 50px; padding: 0 22px; display: inline-flex; align-items: center; gap: 10px; color: #fff; background: var(--navy-900); border: 1px solid var(--navy-900); border-radius: 9px; font: 750 10.5px/1 "Segoe UI", Inter, Arial, sans-serif; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; box-shadow: 0 7px 16px rgba(8, 38, 80, .13); transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.print-button svg { width: 19px; height: 19px; }
.print-button:hover { background: #0c376c; box-shadow: 0 9px 21px rgba(8, 38, 80, .18); transform: translateY(-1px); }
.dossier-facts { margin: 0 0 20px; display: grid; grid-template-columns: 1.05fr 1.5fr .75fr .85fr; overflow: hidden; background: #fff; border: 1px solid #d4e0e9; border-radius: 11px; box-shadow: 0 5px 18px rgba(22, 54, 82, .035); }
.dossier-facts > div { min-width: 0; min-height: 98px; padding: 17px 22px; display: flex; align-items: center; gap: 17px; }
.dossier-facts > div + div { border-left: 1px solid #dce5eb; }
.dossier-facts > div > div { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.dossier-facts span:not(.dossier-fact-icon) { margin-bottom: 7px; color: #758a9d; font-size: 8px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.dossier-facts strong { overflow: hidden; color: #102f4d; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.dossier-fact-icon { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; color: #143d61; background: #f2f6f9; border-radius: 50%; }
.dossier-fact-icon svg { width: 24px; height: 24px; }
.dossier-state { display: flex; align-items: center; gap: 8px; color: #1f6c42 !important; }
.dossier-state i { width: 8px; height: 8px; background: #24a058; border-radius: 50%; box-shadow: 0 0 0 4px rgba(36, 160, 88, .11); }
.process-card { overflow: hidden; background: #fff; border: 1px solid #d4e0e9; border-radius: 12px; box-shadow: 0 12px 34px rgba(20, 48, 74, .065); }
.process-card-header { min-height: 112px; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 28px; color: #102f4d; background: #fff; border: 0; }
.process-title-group { min-width: 0; display: flex; align-items: center; gap: 18px; }
.process-card-icon { width: 56px; height: 56px; flex: 0 0 56px; display: grid; place-items: center; color: #123c62; background: #f1f6fa; border: 0; border-radius: 50%; }
.process-card-icon svg { width: 27px; height: 27px; }
.process-card-header h3 { margin: 0; color: #082650; font-size: 20px; letter-spacing: -.3px; text-transform: none; }
.process-card-header p { margin: 6px 0 0; color: #6b8296; font-size: 11.5px; }
.current-stage-card { min-width: 390px; padding: 12px 18px; display: grid; grid-template-columns: 52px minmax(150px, 1fr) auto; align-items: center; gap: 14px; background: linear-gradient(100deg, #fff7f7, #fdf1f1); border: 1px solid #f2dddd; border-radius: 10px; }
.current-stage-card > span { width: 47px; height: 47px; display: grid; place-items: center; color: #a62428; background: #f9e9e9; border-radius: 50%; }
.current-stage-card > span svg { width: 25px; height: 25px; }
.current-stage-card > div { padding-left: 14px; border-left: 2px solid #bd4346; }
.current-stage-card small,
.current-stage-card strong { display: block; }
.current-stage-card small { margin-bottom: 5px; color: #a62428; font-size: 9px; font-weight: 800; }
.current-stage-card strong { color: #0b3154; font-size: 17px; }
.current-stage-card time { display: flex; align-items: center; gap: 8px; color: #4d6c84; font-size: 11px; font-style: normal; font-weight: 700; white-space: nowrap; }
.current-stage-card time svg { width: 17px; height: 17px; }
.process-card-body { padding: 23px 22px 27px; border-top: 1px solid #edf1f4; }
.process-timeline { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); }
.process-timeline::before { content: ""; position: absolute; z-index: 0; top: 27px; right: 7%; left: 7%; height: 3px; background: #dce4ea; }
.process-timeline::after { content: ""; position: absolute; z-index: 0; top: 27px; left: 7%; width: 76%; height: 3px; background: var(--navy-900); transform-origin: left; }
.process-step { position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; opacity: 1; transform: translateY(0); }
.dossier-view.is-entering .process-step { animation: stepEnter .4s ease forwards; }
.dossier-view.is-entering .process-step:nth-child(2) { animation-delay: .07s; }
.dossier-view.is-entering .process-step:nth-child(3) { animation-delay: .14s; }
.dossier-view.is-entering .process-step:nth-child(4) { animation-delay: .21s; }
.dossier-view.is-entering .process-step:nth-child(5) { animation-delay: .28s; }
.dossier-view.is-entering .process-step:nth-child(6) { animation-delay: .35s; }
.dossier-view.is-entering .process-step:nth-child(7) { animation-delay: .42s; }
.process-step-icon { width: 56px; height: 56px; display: grid; place-items: center; color: #fff; background: var(--navy-900); border: 5px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #b9cad7, 0 7px 16px rgba(8, 38, 80, .14); }
.process-step-icon svg { width: 22px; height: 22px; }
.process-step.is-complete:not(:nth-child(4))::after { content: "✓"; position: absolute; z-index: 2; top: 19px; right: -5px; width: 18px; height: 18px; display: grid; place-items: center; color: #fff; background: var(--navy-900); border: 2px solid #fff; border-radius: 50%; font-size: 9px; font-weight: 900; box-shadow: 0 0 0 1px rgba(8, 38, 80, .08); }
.process-step > div { width: 100%; margin-top: 13px; padding-inline: 5px; }
.process-step strong,
.process-step time,
.process-step small { display: block; }
.process-step strong { min-height: 27px; color: #23384c; font-size: 10.5px; line-height: 1.25; }
.process-step time { margin-top: 4px; color: #6e8192; font-size: 9px; font-style: normal; }
.process-step small { margin: 7px auto 0; width: max-content; max-width: 100%; padding: 5px 10px; color: #587185; background: #edf3f7; border-radius: 4px; font-size: 7px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.process-step.is-current .process-step-icon { background: #b52127; box-shadow: 0 0 0 7px rgba(181, 33, 39, .08), 0 8px 19px rgba(116, 35, 31, .24); }
.process-step.is-current strong { color: var(--burgundy); }
.process-step.is-current small { color: #fff; background: #ac2528; }
.process-step.is-pending .process-step-icon { color: #9ba8b2; background: #eef2f4; box-shadow: 0 0 0 1px #d6dee4; }
.process-step.is-pending strong,
.process-step.is-pending time { color: #9aa6af; }
.process-step.is-pending small { color: #a0abb4; background: #f3f5f6; }

/* Información complementaria del expediente */
.dossier-detail-stack { margin-top: 22px; display: grid; gap: 18px; }
.dossier-detail-panel { overflow: hidden; background: #fff; border: 1px solid #cfdde7; border-radius: 12px; box-shadow: 0 12px 32px rgba(20, 48, 74, .055); }
.dossier-view.is-entering .dossier-detail-panel { animation: detailPanelEnter .5s cubic-bezier(.18, .82, .22, 1) .22s both; }
.dossier-view.is-entering .dossier-detail-panel:nth-child(2) { animation-delay: .32s; }
.detail-panel-toggle { width: 100%; min-height: 88px; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #17324b; background: #fff; border: 0; border-bottom: 1px solid #dce5eb; cursor: pointer; text-align: left; transition: background-color .2s ease, border-color .2s ease; }
.detail-panel-toggle:hover { background: #f9fbfc; }
.detail-panel-toggle:focus-visible { position: relative; z-index: 3; outline: 3px solid rgba(8, 98, 159, .18); outline-offset: -3px; }
.detail-panel-heading { min-width: 0; display: flex; align-items: center; gap: 18px; }
.detail-panel-heading > span:last-child { min-width: 0; }
.detail-panel-icon { width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; color: #fff; background: var(--navy-900); border-radius: 13px; box-shadow: 0 9px 20px rgba(8, 38, 80, .16); }
.detail-panel-icon svg { width: 28px; height: 28px; }
.detail-panel-heading small,
.detail-panel-heading strong { display: block; }
.detail-panel-heading small { margin-bottom: 4px; color: #a32629; font-size: 8px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.detail-panel-heading strong { color: #0b2c4c; font-size: 20px; line-height: 1.1; letter-spacing: -.3px; }
.detail-panel-heading p { margin: 5px 0 0; color: #6d8396; font-size: 10.5px; font-weight: 500; }
.detail-panel-action { flex: 0 0 auto; display: flex; align-items: center; gap: 9px; color: #667d90; }
.detail-panel-action small { font-size: 7.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.detail-panel-action svg { width: 18px; height: 18px; transition: transform .28s ease; }
.detail-panel-toggle[aria-expanded="true"] .detail-panel-action svg { transform: rotate(180deg); }
.detail-panel-content { max-height: 2200px; overflow: hidden; opacity: 1; transition: max-height .58s cubic-bezier(.2, .8, .2, 1), opacity .28s ease; }
.dossier-detail-panel.is-collapsed .detail-panel-content { max-height: 0; opacity: 0; pointer-events: none; }
.dossier-detail-panel.is-collapsed .detail-panel-toggle { border-bottom-color: transparent; }
.record-toolbar { min-height: 48px; margin: 16px 22px 4px; padding: 7px 10px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; color: #35536c; background: #f5f8fa; border: 1px solid #dbe5eb; border-radius: 9px; }
.record-toolbar > i { width: 1px; height: 31px; background: #bfcbd4; }
.record-status,
.record-ruling { min-height: 38px; padding: 0 14px; display: inline-flex; align-items: center; gap: 9px; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.record-status { color: #216c42; background: #edf8f1; border: 1px solid #c5e5d1; }
.record-status i { width: 8px; height: 8px; background: #25a459; border-radius: 50%; box-shadow: 0 0 0 4px rgba(37, 164, 89, .1); }
.record-ruling { color: #17324b; background: #fff; border: 1px solid #c6d5e0; }
.record-ruling svg { width: 19px; height: 19px; color: #0a3157; }
.record-grid { padding: 0 24px 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.record-column { min-width: 0; padding: 0 20px; }
.record-column:first-child { padding-left: 0; }
.record-column:last-child { padding-right: 0; }
.record-column + .record-column { border-left: 1px solid #dfe7ed; }
.record-item { min-height: 72px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid #e2e9ee; }
.record-item:last-child { border-bottom: 0; }
.record-item > span { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; color: #0c3359; background: #f0f5f8; border-radius: 50%; }
.record-item > span svg { width: 21px; height: 21px; }
.record-item > div { min-width: 0; }
.record-item small,
.record-item strong { display: block; }
.record-item small { margin-bottom: 5px; color: #70869a; font-size: 7.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.record-item strong { color: #102f4d; font-size: 10.5px; line-height: 1.35; overflow-wrap: anywhere; }
.record-summary { margin: 14px 22px 24px; padding: 14px 18px; display: flex; align-items: center; gap: 16px; background: #fff7f7; border: 1px solid #f0d5d6; border-left: 4px solid #c9272c; border-radius: 8px; }
.record-summary > span { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; color: #fff; background: #ae2228; border-radius: 11px; box-shadow: 0 7px 15px rgba(142, 34, 39, .18); }
.record-summary > span svg { width: 24px; height: 24px; }
.record-summary small,
.record-summary strong { display: block; }
.record-summary small { margin-bottom: 5px; color: #a5262a; font-size: 7.5px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.record-summary strong { color: #102f4d; font-size: 11px; line-height: 1.45; }
.parties-intro { min-height: 42px; margin: 16px 22px 0; padding: 9px 13px; display: flex; align-items: center; gap: 10px; color: #496780; background: #f1f6fa; border: 1px solid #d9e5ed; border-radius: 7px; }
.parties-intro svg { width: 17px; height: 17px; flex: 0 0 17px; color: #0c4774; }
.parties-intro p { margin: 0; font-size: 9px; line-height: 1.45; }
.party-table-wrap { padding: 13px 22px 22px; overflow-x: auto; }
.party-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.party-table th { height: 42px; padding: 0 12px; color: #556d82; background: #eef3f6; border-block: 1px solid #d8e2e8; font-size: 7px; font-weight: 850; letter-spacing: .095em; text-align: left; text-transform: uppercase; }
.party-table th:nth-child(1) { width: 24%; }
.party-table th:nth-child(2) { width: 11%; }
.party-table th:nth-child(3) { width: 12%; }
.party-table th:nth-child(4) { width: 25%; }
.party-table th:nth-child(5) { width: 16%; }
.party-table th:nth-child(6) { width: 12%; }
.party-table td { min-height: 58px; padding: 12px; color: #34495d; border-bottom: 1px solid #e3e9ed; font-size: 9px; line-height: 1.35; vertical-align: middle; }
.party-table tbody tr:last-child td { border-bottom: 0; }
.party-table tbody tr { transition: background-color .18s ease; }
.party-table tbody tr:hover { background: #f9fbfc; }
.party-person { display: flex; align-items: center; gap: 10px; }
.party-person > strong { color: #21384d; font-size: 8.7px; font-weight: 650; }
.party-avatar { width: 31px; height: 31px; flex: 0 0 31px; display: grid; place-items: center; color: #123c62; background: #eef4f8; border-radius: 50%; }
.party-avatar svg { width: 17px; height: 17px; }
.party-role,
.party-kind { display: inline-flex; padding: 5px 8px; color: #566575; background: #eef1f4; border-radius: 4px; font-size: 7px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.party-role { text-transform: uppercase; }
.party-role.is-claimant { color: #0b5b93; background: #e5f2fa; }
.party-kind { color: #315b7a; background: #eaf3f8; }
.party-kind.is-legal { color: #5e6572; background: #f0f2f4; }
.identity-state { display: inline-flex; align-items: center; gap: 8px; color: #526b80; font-size: 8.5px; white-space: nowrap; }
.identity-state i { width: 7px; height: 7px; background: #17a249; border-radius: 50%; box-shadow: 0 0 0 3px rgba(23, 162, 73, .09); }
.identity-check { min-height: 34px; min-width: 118px; padding: 0 11px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: var(--navy-900); background: #fff; border: 1px solid #aebfcd; border-radius: 6px; font: 800 7px/1 "Segoe UI", Inter, Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease; }
.identity-check:hover { color: #fff; background: var(--navy-900); border-color: var(--navy-900); transform: translateY(-1px); }
.identity-check svg { width: 15px; height: 15px; color: var(--burgundy); }
.identity-check:hover svg { color: #fff; }
.identity-check.is-validated { color: #2b674b; background: #edf7f2; border-color: #bcdccb; transform: none; cursor: default; }
.identity-check.is-validated svg { color: #2b674b; }
.not-applicable { color: #7f8f9d; font-size: 8px; }
@keyframes dossierEnter { from { opacity: 0; transform: translateY(16px) scale(.993); } }
@keyframes stepEnter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes detailPanelEnter { from { opacity: 0; transform: translateY(14px); } }

/* Ventanas informativas */
.info-overlay {
  position: fixed;
  z-index: 1080;
  inset: 0;
  padding: 22px;
  display: grid;
  place-items: center;
  background: rgba(6, 24, 43, .72);
  backdrop-filter: blur(8px);
  animation: overlayIn .22s ease both;
}
.info-overlay[hidden] { display: none; }
.info-dialog {
  position: relative;
  width: min(650px, 100%);
  max-height: calc(100vh - 44px);
  padding: 31px 34px 30px;
  overflow: auto;
  color: #243a4d;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0, 15, 30, .4);
  animation: dialogIn .35s cubic-bezier(.18, .85, .25, 1.08) both;
}
.info-close {
  position: absolute;
  z-index: 3;
  top: 15px;
  right: 15px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #526576;
  background: rgba(255, 255, 255, .88);
  border: 1px solid #dce2e6;
  border-radius: 50%;
  font: 400 23px/1 Arial, sans-serif;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}
.info-close:hover { color: var(--burgundy); border-color: #d7aaa7; transform: rotate(5deg); }
.info-hero { margin: -31px -34px 24px; padding: 30px 70px 24px 34px; display: flex; align-items: center; gap: 17px; color: #fff; background: #17283e; border-bottom: 4px solid var(--burgundy); }
.privacy-hero { background: linear-gradient(105deg, #17283e 0 78%, #8f2f2b 78%); }
.code-hero { background: linear-gradient(105deg, #17283e 0 78%, #8f2f2b 78%); }
.info-hero-icon { width: 52px; height: 52px; flex: 0 0 52px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: 14px; }
.info-hero-icon svg { width: 29px; height: 29px; }
.info-hero > div > span { display: block; margin-bottom: 5px; color: #b9d2e5; font-size: 8px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.code-hero > div > span { color: #f0b7b3; }
.info-hero h2 { margin: 0; font-size: 21px; letter-spacing: -.2px; }
.info-lead { margin: 0 0 20px; color: #5d6e7d; font-size: 12px; line-height: 1.6; }
.info-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.info-feature-grid article { min-width: 0; padding: 14px 13px; background: #f7f9fa; border: 1px solid #e2e7ea; border-radius: 9px; }
.info-feature-grid article > span { display: block; margin-bottom: 11px; color: var(--burgundy); font: 750 18px/1 Georgia, serif; }
.info-feature-grid strong { display: block; color: #263c4f; font-size: 10.5px; }
.info-feature-grid p { margin: 5px 0 0; color: #72808d; font-size: 9.5px; line-height: 1.5; }
.info-note { margin-top: 17px; padding: 12px 14px; display: flex; align-items: flex-start; gap: 11px; color: #566b7c; background: #eef5f5; border-left: 3px solid #3d7462; border-radius: 7px; }
.info-note.warm { background: #fbf1f1; border-left-color: var(--burgundy); }
.info-note svg { width: 20px; height: 20px; flex: 0 0 20px; color: #3d7462; }
.info-note.warm svg { color: var(--burgundy); }
.info-note p { margin: 0; font-size: 10px; line-height: 1.5; }
.info-note strong { display: block; color: #2e4658; }
.citizen-help-hero { background: linear-gradient(108deg, #0b2f5a 0 76%, #a6282d 76%); }
.citizen-help-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.citizen-help-options > button { min-width: 0; min-height: 150px; padding: 15px 14px 13px; display: grid; grid-template-columns: 42px minmax(0, 1fr); grid-template-rows: 1fr auto; align-items: start; gap: 12px; color: #173754; background: #f7fafc; border: 1px solid #dce6ed; border-radius: 11px; text-align: left; cursor: pointer; box-shadow: 0 5px 16px rgba(19, 50, 75, .035); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.citizen-help-options > button:hover { border-color: #adc4d4; box-shadow: 0 10px 23px rgba(14, 51, 80, .09); transform: translateY(-2px); }
.citizen-help-options > button:focus-visible { outline: 3px solid rgba(30, 103, 155, .18); outline-offset: 2px; }
.citizen-help-options > button > span { width: 42px; height: 42px; grid-row: 1 / 3; display: grid; place-items: center; color: #0d4472; background: #eaf2f7; border-radius: 10px; }
.citizen-help-options > button > span svg { width: 21px; height: 21px; }
.citizen-help-options > button > div { min-width: 0; }
.citizen-help-options small { display: block; margin-bottom: 5px; color: #9d292d; font-size: 7px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.citizen-help-options strong { display: block; color: #102f4d; font-size: 11px; line-height: 1.25; }
.citizen-help-options p { margin: 7px 0 0; color: #6d8294; font-size: 9px; line-height: 1.45; }
.citizen-help-options > button > svg { width: 16px; height: 16px; grid-column: 2; color: #8b9dac; transition: color .18s ease, transform .18s ease; }
.citizen-help-options > button:hover > svg { color: #a6282d; transform: translateX(3px); }
.citizen-help-process { margin-top: 18px; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 9px; color: #4f687d; background: #f1f6f9; border: 1px solid #dfe8ee; border-radius: 9px; }
.citizen-help-process span { min-width: 0; display: flex; align-items: center; gap: 7px; font-size: 8px; line-height: 1.3; }
.citizen-help-process b { width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; color: #fff; background: #153e64; border-radius: 50%; font-size: 8px; }
.citizen-help-process i { width: 22px; height: 1px; flex: 0 1 22px; background: #bfd0dc; }
.citizen-security-link { width: 100%; margin-top: 13px; padding: 12px 14px; display: grid; grid-template-columns: 28px minmax(0, 1fr) 18px; align-items: center; gap: 10px; color: #3f5d74; background: #fff; border: 1px solid #dce6ed; border-radius: 9px; text-align: left; cursor: pointer; transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
.citizen-security-link:hover { color: #173f62; background: #f8fafb; border-color: #bccedb; }
.citizen-security-link > svg:first-child { width: 22px; height: 22px; color: #297052; }
.citizen-security-link > svg:last-child { width: 16px; height: 16px; }
.citizen-security-link span { font-size: 8.5px; line-height: 1.35; }
.citizen-security-link strong { display: block; color: #173b58; font-size: 9.5px; }
.code-example { padding: 14px 17px; color: #fff; background: #17283e; border-radius: 9px; }
.code-example span { display: block; margin-bottom: 6px; color: #f0b7b3; font-size: 8px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.code-example strong { font-size: 15px; letter-spacing: .08em; }
.code-legend { margin-top: 14px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.code-legend > div { padding: 9px 4px; text-align: center; background: #f6f8fa; border: 1px solid #dfe6eb; border-radius: 7px; }
.code-legend b { display: block; color: var(--burgundy); font-size: 7px; }
.code-legend span { display: block; margin: 4px 0; color: #18334c; font-size: 11px; font-weight: 800; }
.code-legend small { display: block; color: #85909a; font-size: 6.7px; line-height: 1.25; }
/* Aviso y cierre de sesión */
.session-overlay {
  position: fixed;
  z-index: 1100;
  inset: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(3, 17, 35, .74);
  backdrop-filter: blur(9px) saturate(.82);
  animation: overlayIn .25s ease both;
}
.session-overlay[hidden] { display: none; }

.session-dialog {
  position: relative;
  width: min(430px, 100%);
  padding: 42px 42px 32px;
  overflow: hidden;
  color: #173650;
  text-align: center;
  background:
    radial-gradient(circle at 100% 0, rgba(8, 98, 159, .08), transparent 35%),
    #fff;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 12, 27, .42), 0 4px 18px rgba(0, 20, 40, .12);
  animation: dialogIn .38s cubic-bezier(.18, .85, .25, 1.08) both;
}

.session-dialog::before,
.session-dialog::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}
.session-dialog::before { top: -82px; right: -72px; width: 188px; height: 188px; border: 25px solid rgba(8, 98, 159, .055); }
.session-dialog::after { bottom: -96px; left: -102px; width: 200px; height: 200px; border: 28px solid rgba(8, 38, 80, .035); }
.session-accent { position: absolute; top: 0; right: 0; left: 0; height: 6px; background: linear-gradient(90deg, #082650 0 82%, #8f2f2b 82%); }
.session-emblem {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  margin: 0 auto 17px;
  display: grid;
  place-items: center;
  color: #082650;
  background: #eef5fa;
  border: 1px solid #d6e4ed;
  border-radius: 22px;
  box-shadow: 0 10px 22px rgba(8, 38, 80, .08);
}
.session-emblem svg { width: 35px; height: 35px; stroke-width: 1.7; }
.session-kicker { position: relative; z-index: 1; color: #0870aa; font-size: 9px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.session-dialog h2 { position: relative; z-index: 1; margin: 8px 0 10px; color: #082650; font-size: 24px; letter-spacing: -.45px; text-transform: uppercase; }
.session-dialog p { position: relative; z-index: 1; margin: 0 auto 25px; color: #5d7184; font-size: 13.5px; line-height: 1.55; }
.session-dialog p strong { color: #9b2f2f; font-size: 17px; font-variant-numeric: tabular-nums; }
.session-action {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 54px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #fff;
  background: #082650;
  border: 0;
  border-radius: 9px;
  box-shadow: 0 11px 24px rgba(8, 38, 80, .2), inset 0 1px rgba(255, 255, 255, .15);
  font: 750 13px/1 "Segoe UI", Inter, Arial, sans-serif;
  letter-spacing: .045em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.session-action:hover { background: #0a3268; transform: translateY(-1px); box-shadow: 0 14px 28px rgba(8, 38, 80, .25); }
.session-action:focus-visible { outline: 3px solid rgba(8, 98, 159, .25); outline-offset: 3px; }
.session-action svg { width: 19px; height: 19px; }
.session-dialog > small { position: relative; z-index: 1; margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #718397; font-size: 9.5px; }
.session-dialog > small svg { width: 15px; height: 15px; color: #0870aa; }
.session-overlay.is-expired .session-accent { background: linear-gradient(90deg, #7e2424 0 82%, #082650 82%); }
.session-overlay.is-expired .session-emblem { color: #8d2929; background: #f9eeee; border-color: #efd2d2; }

@keyframes overlayIn { from { opacity: 0; } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }

/* Pantalla de carga */
.loading-screen {
  position: fixed;
  z-index: 999;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: #061f40 url("assets/palacio-justicia.jpg") center 44% / cover no-repeat;
  background-blend-mode: multiply;
  transition: opacity .72s ease, visibility .72s ease;
}

.loading-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .58;
  background:
    radial-gradient(circle at 50% 45%, rgba(30, 145, 208, .25), transparent 31%),
    linear-gradient(115deg, transparent 0 46%, rgba(255, 255, 255, .09) 46.15% 46.32%, transparent 46.48%),
    repeating-radial-gradient(ellipse at 50% 110%, transparent 0 42px, rgba(255, 255, 255, .07) 44px, transparent 46px 82px);
}
.loader-aura { position: absolute; width: min(760px, 92vw); height: min(760px, 92vw); background: radial-gradient(circle, rgba(19, 133, 198, .24), transparent 64%); border-radius: 50%; animation: aura 2.6s ease-in-out infinite; }
.loader-shell {
  position: relative;
  z-index: 2;
  width: min(458px, calc(100% - 36px));
  padding: 38px 46px 34px;
  overflow: hidden;
  text-align: center;
  background: rgba(8, 38, 80, .94);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 26px;
  box-shadow: 0 34px 80px rgba(0, 16, 31, .38), inset 0 1px rgba(255, 255, 255, .08);
  backdrop-filter: blur(18px);
}
.loader-shell::before {
  content: "";
  position: absolute;
  top: 0;
  right: 52px;
  left: 52px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #9b3430, transparent);
}
.loader-emblem { position: relative; width: 134px; height: 134px; margin: 0 auto 23px; display: grid; place-items: center; }
.loader-emblem img { width: 86px; height: 68px; object-fit: contain; filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(255, 255, 255, .16)); }
.orbit { position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; }
.orbit::after { content: ""; position: absolute; top: 12px; left: 28px; width: 7px; height: 7px; background: #56bff1; border-radius: 50%; box-shadow: 0 0 14px #56bff1; }
.orbit-one { animation: spin 4s linear infinite; }
.orbit-two { inset: 15px; border-color: rgba(255, 255, 255, .08); animation: spin 5.5s linear infinite reverse; }
.orbit-two::after { top: auto; right: 26px; bottom: 5px; left: auto; width: 5px; height: 5px; background: #9b3430; box-shadow: 0 0 12px #9b3430; }
.loader-kicker { color: #8fd3f5; font-size: 9px; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; }
.loader-copy h1 { margin: 10px 0 8px; font-size: 27px; letter-spacing: -.6px; }
.loader-copy p { margin: 0; color: rgba(255, 255, 255, .64); font-size: 12.5px; }
.loader-progress { height: 3px; margin: 30px auto 15px; overflow: hidden; background: rgba(255, 255, 255, .11); border-radius: 999px; }
.loader-progress span { display: block; width: 0; height: 100%; background: #42b8ea; box-shadow: 0 0 12px #37a7e1; animation: loadbar 1.65s cubic-bezier(.2, .8, .2, 1) forwards; }
.loader-status { color: rgba(255, 255, 255, .52); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.pulse-dot { display: inline-block; width: 5px; height: 5px; margin: 0 8px 1px 0; background: #56d4a5; border-radius: 50%; box-shadow: 0 0 8px #56d4a5; animation: pulse 1.1s ease infinite; }
.loading-screen.is-complete { visibility: hidden; opacity: 0; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes aura { 50% { transform: scale(1.05); opacity: .68; } }
@keyframes pulse { 50% { transform: scale(.7); opacity: .35; } }
@keyframes loadbar { 0% { width: 0; } 45% { width: 58%; } 78% { width: 82%; } 100% { width: 100%; } }

@media (max-width: 1260px) {
  .topbar-inner { width: calc(100% - 40px); }
}

@media (max-width: 1520px) {
  :root { --form-width: 940px; }
  .app-shell { width: min(1000px, calc(100% - 40px)); }
  .feature-panel { display: none; }
  .consult-card { min-height: auto; }
  .background-scene::after { right: -300px; width: 690px; opacity: 1; }
  .background-scene::before { width: 50%; }
  .navy-rings { right: -340px; opacity: .38; }
}

@media (max-width: 1200px) and (min-width: 841px) {
  :root { --form-width: 900px; }
  .app-shell { width: min(940px, calc(100% - 32px)); }
}

/* Escala compacta para laptops de 14 pulgadas y pantallas de poca altura */
@media (max-height: 850px) and (min-width: 841px) {
  .topbar { height: 52px; }
  .topbar-inner { height: 47px; }
  .background-scene { inset-block-start: 52px; height: calc(100% - 52px); min-height: calc(100vh - 52px); }
  .app-shell { padding-top: 8px; padding-bottom: 14px; }
  .brand-row { height: 72px; padding-left: 24px; }
  .brand-row::before { top: -8px; height: 80px; }
  .brand-logo { width: 98px; height: 70px; margin-top: -2px; }
  .brand-logo img { width: 92px; height: 68px; }
  .brand-divider { height: 52px; margin: 2px 19px 0 9px; }
  .brand-copy { padding-top: 1px; }
  .brand-copy h1 { font-size: 24px; }
  .brand-copy p { margin-block: 1px; font-size: 11.5px; }
  .brand-copy em { font-size: 10.5px; }
  .court-label { padding-top: 3px; font-size: 10.5px; }
  .court-label b { margin-top: 6px; }
  .background-scene::before { top: 80px; }
  .content-layout { margin-top: 8px; }
  .consult-card { min-height: 0; padding: 8px 20px 14px; border-radius: 15px; }
  .search-tab { height: 56px; }
  .search-tab > svg { width: 38px; height: 38px; flex-basis: 38px; padding: 7px; }
  .search-tab strong { font-size: 14px; }
  .search-tab span { font-size: 11px; }
  .security-banner { min-height: 76px; margin: 12px 5px; padding-block: 9px; grid-template-columns: 53px minmax(0, 1fr) 166px; }
  .security-icon { width: 44px; height: 44px; }
  .security-icon svg { width: 26px; height: 26px; }
  .security-copy strong { font-size: 13.5px; }
  .security-copy p { margin-top: 2px; font-size: 10.7px; line-height: 1.4; }
  .learn-more { width: 142px; height: 40px; margin-left: 14px; padding-inline: 11px; gap: 7px; }
  .form-section { padding-inline: 10px; }
  .section-heading { margin-bottom: 8px; gap: 14px; }
  .step { width: 32px; height: 32px; flex-basis: 32px; }
  .section-heading h2 { font-size: 14.5px; }
  .section-heading p { font-size: 11px; }
  .form-grid { gap: 9px 28px; }
  .field label { margin-bottom: 5px; font-size: 11px; }
  .control,
  .captcha-code { height: 37px; }
  .control > span { font-size: 11px; line-height: 22px; }
  .field small { margin-top: 3px; font-size: 9px; }
  .identity-section { margin-top: 11px; padding-top: 10px; }
  .identity-grid { gap: 56px; }
  .captcha-row { grid-template-columns: 140px minmax(120px, 1fr) 54px; gap: 8px; }
  .captcha-code { font-size: 22px; }
  .mini-control > svg { width: 54px; height: 37px; padding: 10px 14px; }
  .mini-control small { margin-top: 3px; font-size: 7.8px; }
  .standard-code-card { padding-block: 11px 10px; }
  .code-parts { margin-top: 8px; }
  .code-part-input { height: 34px; }
  .code-parts > i { padding-bottom: 10px; }
  .case-summary { margin-top: 8px; padding-block: 7px; }
  .action-row { margin-top: 11px; }
  .consult-button { width: 340px; height: 49px; }
  .consult-button strong { font-size: 14.5px; }
  .feature-panel { min-height: 0; padding-block: 20px; gap: 18px; }
  .results-view { min-height: 0; padding: 20px 28px 26px; }
  .results-header { padding-bottom: 16px; }
  .results-header h2 { font-size: 22px; }
  .result-card { margin: 18px; }
  .result-content { padding-block: 18px; }
}

@media (max-width: 840px) {
  .topbar-inner { width: calc(100% - 32px); }
  .nav-main { gap: 22px; }
  .session-data > :not(.secure-session) { display: none; }
  .brand-row { height: 82px; padding: 0; align-items: center; }
  .brand-row::before { height: 98px; }
  .content-layout { margin-top: 10px; }
  .brand-logo { width: 82px; height: 66px; }
  .brand-logo img { width: 82px; height: 63px; }
  .brand-divider { height: 48px; margin: 0 14px 0 7px; }
  .brand-copy h1 { font-size: 20px; }
  .brand-copy p { font-size: 11px; }
  .brand-copy em,
  .court-label { display: none; }
  .consult-card { padding: 10px 16px 22px; }
  .security-banner { grid-template-columns: 54px minmax(0, 1fr); }
  .learn-more { grid-column: 2; width: 138px; height: 36px; margin: 7px 0 0; padding: 0 10px; justify-content: center; border: 1px solid #c9d9e4; }
  .form-grid-main { grid-template-columns: 1fr 1fr; }
  .field-number { grid-column: auto; }
  .identity-grid { grid-template-columns: 1fr; gap: 19px; }
  .captcha-field::before { display: none; }
  .code-parts { grid-template-columns: repeat(7, minmax(54px, 1fr)); gap: 8px; }
  .code-parts > i { display: none; }
  .results-view { padding: 24px; }
  .results-summary { grid-template-columns: 155px minmax(0, 1fr); }
  .results-verified { grid-column: 1 / -1; min-height: 52px; border-top: 1px solid rgba(255, 255, 255, .13); border-left: 0 !important; }
  .result-card { grid-template-columns: 1fr; }
  .result-action { border-top: 1px solid #dbe4ea; border-left: 0; }
  .result-action button { max-width: 280px; align-self: center; width: 100%; }
  .result-action small { max-width: 280px; align-self: center; }
  .background-scene::before { top: 98px; width: 100%; opacity: .32; }
  .background-scene::after { opacity: .9; }
  .navy-rings { display: none; }
}

@media (max-width: 580px) {
  .topbar { height: 54px; border-top-width: 4px; }
  .topbar-inner { height: 50px; width: calc(100% - 24px); }
  .background-scene { inset-block-start: 54px; height: calc(100% - 54px); min-height: calc(100vh - 54px); }
  .background-scene::before { top: 82px; }
  .nav-main { gap: 18px; }
  .nav-item { gap: 7px; font-size: 11.5px; }
  .nav-item svg { width: 18px; height: 18px; }
  .secure-session { display: none; }
  .app-shell { width: calc(100% - 18px); padding: 8px 0 20px; }
  .brand-row { height: 74px; }
  .brand-row::before { height: 90px; }
  .brand-logo { width: 68px; height: 58px; }
  .brand-logo img { width: 70px; height: 55px; }
  .brand-divider { height: 44px; margin: 0 10px 0 4px; }
  .brand-copy h1 { max-width: 240px; font-size: 17px; line-height: 1.15; overflow-wrap: anywhere; }
  .brand-copy p { max-width: 230px; font-size: 10px; line-height: 1.3; }
  .consult-card { width: 100%; max-width: 100%; padding: 8px 10px 20px; border-radius: 13px; }
  .search-tabs,
  .security-banner,
  .form-section { min-width: 0; max-width: 100%; }
  .search-tabs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
  .search-tab { height: auto; min-height: 67px; justify-content: flex-start; gap: 9px; padding: 9px 10px; }
  .search-tab > svg { width: 34px; height: 34px; flex-basis: 34px; padding: 7px; border-radius: 9px; }
  .search-tab strong,
  .search-tab span { white-space: normal; }
  .search-tab strong { font-size: 11.5px; line-height: 1.2; }
  .search-tab span { display: none; }
  .security-banner { margin: 16px 2px; padding: 12px; grid-template-columns: 46px minmax(0, 1fr); }
  .security-icon { width: 40px; height: 40px; }
  .security-icon svg { width: 27px; height: 27px; }
  .security-copy p { font-size: 10.5px; line-height: 1.5; }
  .form-section { padding: 0 5px; }
  .section-heading { gap: 13px; align-items: flex-start; }
  .section-heading p { line-height: 1.45; }
  .form-grid-main { grid-template-columns: 1fr; }
  .identity-grid { grid-template-columns: minmax(0, 1fr); }
  .captcha-row { grid-template-columns: 105px minmax(0, 1fr) 45px; gap: 7px; }
  .captcha-code { font-size: 19px; letter-spacing: 4px; }
  .mini-control > svg { width: 45px; }
  .standard-code-card { padding: 12px 10px 11px; }
  .standard-code-header { display: block; }
  .code-help { margin-top: 8px !important; }
  .code-parts { grid-template-columns: repeat(4, minmax(52px, 1fr)); gap: 9px 7px; }
  .code-part-input { height: 36px; padding-inline: 3px; font-size: 11px; }
  .case-summary { align-items: flex-start; flex-direction: column; gap: 4px; }
  .case-summary strong { font-size: 11.5px; }
  .consult-button { width: min(100%, 340px); }
  .results-view { min-height: 0; margin-top: 10px; padding: 18px 12px 20px; border-radius: 13px; }
  .results-header { align-items: flex-start; flex-direction: column; gap: 14px; padding-bottom: 17px; }
  .results-heading { gap: 11px; }
  .results-heading-icon { width: 42px; height: 42px; flex-basis: 42px; border-radius: 10px; }
  .results-heading-icon svg { width: 20px; height: 20px; }
  .results-header h2 { font-size: 20px; }
  .back-button { height: 38px; }
  .results-summary { grid-template-columns: .85fr 1.15fr; }
  .results-summary > div { min-height: 58px; padding-inline: 12px; }
  .results-count { gap: 9px; }
  .results-count > strong { font-size: 24px; }
  .results-count > span { font-size: 7.5px; }
  .results-query strong { font-size: 10px; }
  .results-verified { min-height: 48px !important; }
  .result-card { margin: 11px; }
  .result-content { padding: 18px 14px 17px 17px; }
  .result-title-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .result-title-row h3 { font-size: 17px; line-height: 1.25; }
  .result-record-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .court-reference { width: 100%; }
  .result-parties { grid-template-columns: 1fr; gap: 13px; }
  .result-metadata { grid-template-columns: repeat(3, 1fr); }
  .result-action { padding: 20px 14px; }
  .info-overlay { padding: 12px; }
  .info-dialog { max-height: calc(100vh - 24px); padding: 25px 18px 22px; border-radius: 16px; }
  .info-hero { margin: -25px -18px 20px; padding: 28px 52px 20px 18px; gap: 12px; }
  .info-hero-icon { width: 44px; height: 44px; flex-basis: 44px; border-radius: 12px; }
  .info-hero-icon svg { width: 24px; height: 24px; }
  .info-hero h2 { font-size: 17px; }
  .info-feature-grid { grid-template-columns: 1fr; }
  .info-feature-grid article { display: grid; grid-template-columns: 34px 1fr; gap: 8px; }
  .info-feature-grid article > span { margin: 1px 0 0; }
  .citizen-help-options { grid-template-columns: 1fr; }
  .citizen-help-options > button { min-height: 0; grid-template-columns: 40px minmax(0, 1fr) 16px; grid-template-rows: auto; align-items: center; padding: 12px; }
  .citizen-help-options > button > span { width: 40px; height: 40px; grid-row: auto; }
  .citizen-help-options > button > svg { grid-column: 3; }
  .citizen-help-options p { margin-top: 4px; }
  .citizen-help-process { align-items: stretch; flex-direction: column; gap: 7px; }
  .citizen-help-process i { width: 1px; height: 10px; margin-left: 10px; flex: 0 0 10px; }
  .citizen-security-link { padding: 11px 12px; }
  .code-example strong { font-size: 11.5px; letter-spacing: .04em; }
  .code-legend { grid-template-columns: repeat(4, 1fr); }
  .search-progress-card { padding: 36px 23px 28px; border-radius: 17px; }
  .search-progress-card h2 { font-size: 20px; }
  .loader-shell { width: calc(100% - 28px); padding: 32px 25px 30px; border-radius: 22px; }
  .loader-emblem { width: 124px; height: 124px; }
  .loader-copy h1 { font-size: 23px; line-height: 1.2; }
  .session-overlay { padding: 16px; }
  .session-dialog { padding: 35px 22px 27px; border-radius: 18px; }
  .session-emblem { width: 64px; height: 64px; border-radius: 19px; }
  .session-dialog h2 { font-size: 20px; }
  .session-dialog p { margin-bottom: 21px; font-size: 12.5px; }
  .session-action { height: 50px; font-size: 11.5px; }
}

@media (max-width: 840px) {
  .dossier-view { padding: 0 20px 32px; }
  .dossier-breadcrumb { padding-inline: 20px; }
  .dossier-header { padding-block: 28px 22px; align-items: flex-start; flex-direction: column; }
  .dossier-actions { width: 100%; }
  .dossier-actions button { flex: 1; justify-content: center; }
  .dossier-facts { grid-template-columns: 1fr 1fr; }
  .dossier-facts > div:nth-child(3) { border-left: 0; border-top: 1px solid #dce5eb; }
  .dossier-facts > div:nth-child(4) { border-top: 1px solid #dce5eb; }
  .process-card-header { align-items: stretch; flex-direction: column; }
  .current-stage-card { width: 100%; min-width: 0; }
  .process-card-body { padding-inline: 18px; overflow: hidden; }
  .process-timeline { min-width: 820px; padding-bottom: 8px; overflow: visible; }
  .process-card-body { overflow-x: auto; scrollbar-color: #b8c8d3 #eef3f6; scrollbar-width: thin; }
  .record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
  .record-column { display: contents; }
  .record-item { min-height: 68px; }
  .party-table { min-width: 1020px; }
}

@media (max-width: 580px) {
  .dossier-loading-overlay { padding: 14px; }
  .dossier-loading-card { padding: 26px 22px 25px; border-radius: 15px; }
  .dossier-loading-brand { padding-bottom: 17px; }
  .dossier-loading-symbol { width: 79px; height: 79px; margin-block: 22px 16px; }
  .dossier-loading-card h2 { font-size: 19px; }
  .dossier-view { margin: 0; padding: 0 12px 24px; border-radius: 0; }
  .dossier-breadcrumb { min-height: 46px; padding-inline: 13px; gap: 7px; font-size: 8.5px; }
  .dossier-breadcrumb > span:first-child span { display: none; }
  .dossier-breadcrumb > svg { width: 10px; height: 10px; }
  .dossier-header { min-width: 0; padding: 22px 2px 18px; }
  .dossier-heading { width: 100%; min-width: 0; align-items: flex-start; gap: 11px; }
  .dossier-heading > div { min-width: 0; }
  .dossier-heading-icon { width: 50px; height: 50px; flex-basis: 50px; border-radius: 11px; }
  .dossier-heading-icon svg { width: 25px; height: 25px; }
  .dossier-heading > div > span { font-size: 7px; }
  .dossier-heading h2 { margin-block: 6px 5px; font-size: 21px; line-height: 1.12; letter-spacing: -.6px; }
  .dossier-heading p { font-size: 8.5px; line-height: 1.45; overflow-wrap: anywhere; }
  .copy-case-code { width: 25px; height: 25px; flex: 0 0 25px; }
  .copy-case-code svg { width: 15px; height: 15px; }
  .dossier-status-pill { margin-top: 9px; padding: 6px 10px; font-size: 9px; }
  .dossier-actions { min-width: 0; gap: 6px; overflow: hidden; }
  .dossier-actions .back-button { min-width: 0; height: 39px; padding-inline: 9px; font-size: 8.5px; }
  .dossier-actions .print-button { width: 46px; flex: 0 0 46px; height: 39px; padding: 0; font-size: 0; justify-content: center; }
  .dossier-actions .print-button svg { width: 18px; height: 18px; }
  .dossier-facts { margin: 0 0 14px; }
  .dossier-facts > div { min-height: 74px; padding: 11px; gap: 9px; }
  .dossier-fact-icon { width: 35px; height: 35px; flex-basis: 35px; }
  .dossier-fact-icon svg { width: 18px; height: 18px; }
  .dossier-facts span:not(.dossier-fact-icon) { margin-bottom: 4px; font-size: 6.3px; }
  .dossier-facts strong { font-size: 9px; }
  .process-card { min-width: 0; }
  .process-card-header { min-width: 0; min-height: 0; padding: 16px 13px; gap: 14px; }
  .process-title-group { min-width: 0; gap: 11px; }
  .process-card-icon { width: 42px; height: 42px; flex-basis: 42px; }
  .process-card-icon svg { width: 21px; height: 21px; }
  .process-card-header h3 { font-size: 16px; }
  .process-card-header p { margin-top: 4px; font-size: 9px; line-height: 1.4; }
  .current-stage-card { padding: 10px; grid-template-columns: 39px minmax(0, 1fr); gap: 9px; }
  .current-stage-card > span { width: 38px; height: 38px; }
  .current-stage-card > span svg { width: 20px; height: 20px; }
  .current-stage-card > div { padding-left: 9px; }
  .current-stage-card small { font-size: 7px; }
  .current-stage-card strong { font-size: 13px; }
  .current-stage-card time { grid-column: 2; padding-left: 10px; font-size: 8px; }
  .process-card-body { padding: 22px 14px 15px; overflow: visible; }
  .process-timeline { min-width: 0; grid-template-columns: 1fr; gap: 15px; padding: 0; }
  .process-timeline::before { top: 22px; bottom: 22px; left: 22px; width: 3px; height: auto; }
  .process-timeline::after { top: 22px; left: 22px; width: 3px; height: 64%; }
  .process-step { min-height: 46px; flex-direction: row; align-items: center; text-align: left; }
  .process-step.is-complete::after { display: none; }
  .process-step-icon { width: 45px; height: 45px; flex: 0 0 45px; }
  .process-step > div { margin: 0 0 0 12px; padding: 0; }
  .process-step strong { min-height: 0; font-size: 9.5px; }
  .process-step time { font-size: 8px; }
  .process-step small { margin: 4px 0 0; }
  .dossier-detail-stack { margin-top: 13px; gap: 13px; }
  .dossier-detail-panel { border-radius: 10px; }
  .detail-panel-toggle { min-height: 78px; padding: 10px 12px; gap: 12px; }
  .detail-panel-heading { gap: 11px; }
  .detail-panel-icon { width: 44px; height: 44px; flex-basis: 44px; border-radius: 10px; }
  .detail-panel-icon svg { width: 22px; height: 22px; }
  .detail-panel-heading strong { font-size: 15px; }
  .detail-panel-heading p { margin-top: 3px; font-size: 8.5px; line-height: 1.35; }
  .detail-panel-action small { display: none; }
  .record-toolbar { min-height: 51px; margin: 12px 14px 3px; padding: 7px 8px; justify-content: flex-start; gap: 8px; overflow-x: auto; }
  .record-toolbar > i { height: 26px; }
  .record-status,
  .record-ruling { min-height: 32px; padding-inline: 10px; font-size: 8px; }
  .record-grid { padding: 0 14px 3px; grid-template-columns: 1fr; gap: 0; }
  .record-item { min-height: 64px; gap: 11px; }
  .record-item > span { width: 37px; height: 37px; flex-basis: 37px; }
  .record-item > span svg { width: 19px; height: 19px; }
  .record-item small { font-size: 6.5px; }
  .record-item strong { font-size: 9.5px; }
  .record-summary { margin: 11px 14px 15px; padding: 12px; align-items: flex-start; }
  .record-summary > span { width: 41px; height: 41px; flex-basis: 41px; }
  .record-summary strong { font-size: 9px; }
  .parties-intro { margin: 12px 14px 0; padding: 10px 11px; align-items: flex-start; }
  .parties-intro p { font-size: 8.5px; }
  .party-table-wrap { padding: 12px 14px 15px; overflow: visible; }
  .party-table { min-width: 0; table-layout: auto; }
  .party-table thead { display: none; }
  .party-table tbody { display: grid; gap: 10px; }
  .party-table tbody tr { padding: 5px 11px; display: block; background: #f8fafb; border: 1px solid #dce5eb; border-radius: 8px; }
  .party-table tbody tr:hover { background: #f8fafb; }
  .party-table td { min-height: 0; padding: 8px 0; display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 10px; border-bottom: 1px solid #e1e8ed; font-size: 8.5px; }
  .party-table td:first-child { display: grid; grid-template-columns: 108px minmax(0, 1fr); align-items: center; }
  .party-table tbody tr:last-child td { border-bottom: 1px solid #e1e8ed; }
  .party-table tbody tr td:last-child { border-bottom: 0; }
  .party-table td::before { content: attr(data-label); color: #83929f; font-size: 6.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
  .identity-check { justify-self: start; }
}

/* Escala fluida: tipografía, iconos y espacios responden al ancho disponible */
@media screen {
  .nav-main { gap: clamp(22px, 2.4vw, 46px); }
  .nav-item { gap: clamp(7px, .58vw, 11px); font-size: clamp(10.5px, .73vw, 14px); }
  .session-data { gap: clamp(8px, .84vw, 16px); font-size: clamp(10px, .66vw, 12.5px); }

  .brand-row { height: clamp(74px, 4.7vw, 90px); }
  .brand-logo { width: clamp(84px, 5.85vw, 112px); height: clamp(66px, 4.38vw, 84px); }
  .brand-logo img { width: clamp(82px, 5.52vw, 106px); height: clamp(63px, 4.16vw, 80px); }
  .brand-copy h1 { font-size: clamp(17px, 1.41vw, 27px); }
  .brand-copy p { font-size: clamp(9.5px, .68vw, 13px); }
  .brand-copy em { font-size: clamp(8.5px, .6vw, 11.5px); }
  .court-label { font-size: clamp(8px, .55vw, 10.5px); }

  .search-tab strong { font-size: clamp(10.5px, .81vw, 15.5px); }
  .search-tab span { font-size: clamp(9px, .63vw, 12px); }
  .security-copy strong { font-size: clamp(12.5px, .76vw, 14.5px); }
  .security-copy p { font-size: clamp(9.8px, .6vw, 11.5px); }
  .section-heading h2 { font-size: clamp(13px, .81vw, 15.5px); }
  .section-heading p { font-size: clamp(9px, .6vw, 11.5px); }
  .field label { font-size: clamp(10px, .63vw, 12px); }
  .control,
  .captcha-code { height: clamp(37px, 2.2vw, 42px); }
  .control > span,
  .captcha-input { font-size: clamp(10.5px, .63vw, 12px); }
  .field small { font-size: clamp(8px, .5vw, 9.5px); }
  .consult-button { height: clamp(48px, 2.8vw, 54px); }
  .consult-button strong { font-size: clamp(12.5px, .81vw, 15.5px); }

  .results-header h2 { font-size: clamp(20px, 1.25vw, 24px); }
  .results-header p { font-size: clamp(9.5px, .6vw, 11.5px); }

  .dossier-breadcrumb { min-height: clamp(46px, 2.82vw, 54px); font-size: clamp(8.5px, .57vw, 11px); }
  .dossier-header { padding-block: clamp(22px, 1.88vw, 36px) clamp(18px, 1.46vw, 28px); gap: clamp(18px, 1.88vw, 36px); }
  .dossier-heading { gap: clamp(11px, 1.25vw, 24px); }
  .dossier-heading-icon { width: clamp(50px, 3.75vw, 72px); height: clamp(50px, 3.75vw, 72px); flex-basis: clamp(50px, 3.75vw, 72px); border-radius: clamp(11px, .78vw, 15px); }
  .dossier-heading-icon svg { width: clamp(25px, 1.88vw, 36px); height: clamp(25px, 1.88vw, 36px); }
  .dossier-heading > div > span { font-size: clamp(7px, .47vw, 9px); }
  .dossier-heading h2 { font-size: clamp(21px, 2.24vw, 43px); }
  .dossier-heading p { font-size: clamp(8.5px, .78vw, 15px); }
  .dossier-status-pill { font-size: clamp(9px, .63vw, 12px); }
  .dossier-actions .back-button,
  .dossier-actions .print-button { height: clamp(39px, 2.6vw, 50px); font-size: clamp(8.5px, .55vw, 10.5px); }

  .dossier-facts > div { min-height: clamp(74px, 5.1vw, 98px); padding: clamp(11px, 1.15vw, 22px); gap: clamp(9px, .89vw, 17px); }
  .dossier-fact-icon { width: clamp(35px, 2.5vw, 48px); height: clamp(35px, 2.5vw, 48px); flex-basis: clamp(35px, 2.5vw, 48px); }
  .dossier-fact-icon svg { width: clamp(18px, 1.25vw, 24px); height: clamp(18px, 1.25vw, 24px); }
  .dossier-facts span:not(.dossier-fact-icon) { font-size: clamp(6.3px, .42vw, 8px); }
  .dossier-facts strong { font-size: clamp(9px, .73vw, 14px); }

  .process-card-header { min-height: clamp(88px, 5.84vw, 112px); padding: clamp(14px, .94vw, 18px) clamp(13px, 1.25vw, 24px); gap: clamp(14px, 1.46vw, 28px); }
  .process-title-group { gap: clamp(11px, .94vw, 18px); }
  .process-card-icon { width: clamp(42px, 2.92vw, 56px); height: clamp(42px, 2.92vw, 56px); flex-basis: clamp(42px, 2.92vw, 56px); }
  .process-card-icon svg { width: clamp(21px, 1.41vw, 27px); height: clamp(21px, 1.41vw, 27px); }
  .process-card-header h3 { font-size: clamp(16px, 1.04vw, 20px); }
  .process-card-header p { font-size: clamp(9px, .6vw, 11.5px); }
  .current-stage-card small { font-size: clamp(7px, .47vw, 9px); }
  .current-stage-card strong { font-size: clamp(13px, .89vw, 17px); }
  .current-stage-card time { font-size: clamp(8px, .57vw, 11px); }
  .process-step strong { font-size: clamp(9.5px, .55vw, 10.5px); }
  .process-step time { font-size: clamp(8px, .47vw, 9px); }
  .process-step small { font-size: clamp(6.4px, .37vw, 7px); }

  .detail-panel-heading small { font-size: clamp(6.5px, .42vw, 8px); }
  .detail-panel-heading strong { font-size: clamp(15px, 1.04vw, 20px); }
  .detail-panel-heading p { font-size: clamp(8.5px, .55vw, 10.5px); }
  .parties-intro p { font-size: clamp(8.5px, .47vw, 9px); }
  .record-item small { font-size: clamp(6.5px, .39vw, 7.5px); }
  .record-item strong { font-size: clamp(9.5px, .55vw, 10.5px); }
  .record-summary strong { font-size: clamp(9px, .57vw, 11px); }
  .party-table th { font-size: clamp(6.4px, .36vw, 7px); }
  .party-table td { font-size: clamp(8.5px, .47vw, 9px); }
}

@media screen and (max-width: 580px) {
  body.dossier-open .app-shell { padding-top: 8px; }
  .nav-item { font-size: 11.5px; }
  .brand-logo { width: 68px; height: 58px; }
  .brand-logo img { width: 70px; height: 55px; }
  .brand-copy p { font-size: 10px; }
  .search-tab strong { font-size: 11.5px; }
  .security-copy p { font-size: 10.5px; }
  .dossier-actions .print-button { font-size: 0; }
  .detail-panel-heading strong { font-size: 15px; }
}

/* Seguimiento procesal y lectura jurídica asistida */
.proceedings-panel .detail-panel-content { max-height: 12000px; }
.proceedings-panel.is-collapsed .detail-panel-content { max-height: 0; }
.proceedings-count { min-height: 24px; padding: 0 9px; display: inline-flex; align-items: center; color: #fff; background: var(--navy-900); border-radius: 999px; font-size: 7px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.proceedings-intro { margin: 18px 24px 0; padding: 14px 16px; display: flex; align-items: center; gap: 13px; color: #405c73; background: #f3f7fa; border: 1px solid #d7e3eb; border-radius: 9px; }
.proceedings-intro > span:first-child { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; color: #fff; background: var(--navy-900); border-radius: 10px; }
.proceedings-intro > span:first-child svg { width: 20px; height: 20px; }
.proceedings-intro > div { min-width: 0; }
.proceedings-intro strong { display: block; color: #16344f; font-size: 10px; }
.proceedings-intro p { margin: 3px 0 0; color: #6f8394; font-size: 9px; line-height: 1.45; }
.proceedings-order { margin-left: auto; min-height: 31px; padding: 0 11px; display: inline-flex; align-items: center; gap: 7px; color: #7e292b; background: #fff; border: 1px solid #e5cacc; border-radius: 7px; font-size: 7.5px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; }
.proceedings-order svg { width: 15px; height: 15px; }
.proceedings-timeline { position: relative; margin: 18px 24px 28px; padding-left: 58px; }
.proceedings-timeline::before { content: ""; position: absolute; top: 27px; bottom: 28px; left: 19px; width: 2px; background: linear-gradient(#a72a2d 0 8%, #c9d7e1 18% 92%, transparent); }
.proceeding-item { position: relative; padding-bottom: 16px; }
.proceeding-item:last-child { padding-bottom: 0; }
.proceeding-marker { position: absolute; z-index: 2; top: 20px; left: -58px; width: 40px; height: 40px; display: grid; place-items: center; color: #fff; background: var(--navy-900); border: 5px solid #f3f7fa; border-radius: 50%; box-shadow: 0 0 0 1px #aebfcd, 0 5px 12px rgba(8, 38, 80, .13); }
.proceeding-marker span { font-size: 8px; font-weight: 850; font-variant-numeric: tabular-nums; }
.proceeding-item.is-latest .proceeding-marker,
.proceeding-item.is-milestone .proceeding-marker { background: #a6282b; box-shadow: 0 0 0 1px #c78688, 0 6px 14px rgba(146, 34, 38, .18); }
.proceeding-card { overflow: hidden; background: #fff; border: 1px solid #d9e3ea; border-radius: 11px; box-shadow: 0 8px 22px rgba(20, 48, 74, .055); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.proceeding-card:hover { border-color: #bccdd9; box-shadow: 0 13px 27px rgba(20, 48, 74, .09); transform: translateY(-1px); }
.proceeding-item.is-latest .proceeding-card { border-color: #dfb5b7; box-shadow: 0 12px 28px rgba(137, 36, 39, .085); }
.proceeding-item.is-latest .proceeding-card::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, #a6282b, #c94749 18%, #0a2e55 18%); }
.proceeding-card-head { min-height: 88px; padding: 18px 19px 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.proceeding-card-head > div:first-child { min-width: 0; }
.proceeding-type { display: inline-flex; margin-bottom: 7px; padding: 4px 7px; color: #8e292c; background: #fbefef; border-radius: 4px; font-size: 6.5px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.proceeding-type.is-written { color: #0b5888; background: #eaf4fa; }
.proceeding-type.is-hearing { color: #32624f; background: #edf7f2; }
.proceeding-card h3 { margin: 0; max-width: 820px; color: #112f4c; font-size: 12px; line-height: 1.38; letter-spacing: -.05px; }
.proceeding-date { min-width: 144px; padding: 10px 11px; display: flex; align-items: center; gap: 9px; color: #21415d; background: #f4f7f9; border: 1px solid #dce5eb; border-radius: 8px; }
.proceeding-date > svg { width: 18px; height: 18px; color: #a12a2d; }
.proceeding-date span,
.proceeding-date small,
.proceeding-date strong { display: block; }
.proceeding-date small { margin-bottom: 3px; color: #7b8d9c; font-size: 6px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.proceeding-date strong { font-size: 9px; font-variant-numeric: tabular-nums; }
.proceeding-data-grid { padding: 11px 19px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: stretch; gap: 10px; background: #f7f9fb; border-block: 1px solid #e0e8ed; }
.proceeding-data-grid > div { min-height: 53px; padding: 10px 12px; display: flex; flex-direction: column; justify-content: center; background: #fff; border: 1px solid #dce5eb; border-radius: 7px; }
.proceeding-data-grid small,
.proceeding-data-grid strong { display: block; }
.proceeding-data-grid small { margin-bottom: 5px; color: #7b8d9c; font-size: 6.3px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.proceeding-data-grid strong { color: #17344f; font-size: 9px; line-height: 1.25; }
.proceeding-data-grid > b { min-width: 93px; padding: 0 10px; display: grid; place-items: center; color: #fff; background: #a72a2d; border-radius: 7px; font-size: 6.5px; letter-spacing: .055em; text-align: center; text-transform: uppercase; }
.proceeding-summary { margin: 14px 19px 0; padding: 12px 14px; display: flex; align-items: flex-start; gap: 12px; color: #40586c; background: #f4f7f9; border-left: 3px solid #173b60; border-radius: 7px; }
.proceeding-summary > span { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; color: #0b3459; background: #fff; border: 1px solid #d9e4eb; border-radius: 8px; }
.proceeding-summary > span svg { width: 17px; height: 17px; }
.proceeding-summary small { display: block; margin-bottom: 4px; color: #8f292c; font-size: 6.5px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.proceeding-summary p { margin: 0; font-size: 9px; line-height: 1.5; }
.proceeding-actions { padding: 14px 19px 18px; display: flex; align-items: center; gap: 9px; }
.assisted-button,
.document-button { min-height: 38px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 7px; font: 800 7.5px/1 "Segoe UI", Inter, Arial, sans-serif; letter-spacing: .055em; text-decoration: none; text-transform: uppercase; cursor: pointer; transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.assisted-button { color: #fff; background: var(--navy-900); border: 1px solid var(--navy-900); box-shadow: 0 7px 15px rgba(8, 38, 80, .14); }
.assisted-button:hover { background: #0c386b; border-color: #0c386b; box-shadow: 0 9px 19px rgba(8, 38, 80, .2); transform: translateY(-1px); }
.document-button { color: #203d57; background: #fff; border: 1px solid #bdccd7; }
.document-button:hover { color: #fff; background: #98282b; border-color: #98282b; transform: translateY(-1px); }
.assisted-button svg,
.document-button svg { width: 15px; height: 15px; }
.document-button svg:last-child { width: 13px; height: 13px; margin-left: 3px; }
.notification-section { margin: 0 19px 18px; padding-top: 14px; border-top: 1px solid #e1e8ed; }
.notification-heading { margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.notification-heading > span { display: inline-flex; align-items: center; gap: 8px; color: #173a58; font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.notification-heading svg { width: 15px; height: 15px; color: #a52a2d; }
.notification-heading b { padding: 4px 7px; color: #637a8c; background: #eef3f6; border-radius: 4px; font-size: 6.2px; letter-spacing: .06em; text-transform: uppercase; }
.notification-card { padding: 13px 14px; display: grid; grid-template-columns: 39px minmax(0, 1fr) auto; align-items: center; gap: 13px; background: #f5f8fa; border: 1px solid #d8e3ea; border-left: 3px solid #a62a2d; border-radius: 8px; }
.notification-icon { width: 39px; height: 39px; display: grid; place-items: center; color: #fff; background: var(--navy-900); border-radius: 9px; box-shadow: 0 6px 13px rgba(8, 38, 80, .12); }
.notification-icon svg { width: 19px; height: 19px; }
.notification-body { min-width: 0; }
.notification-body small,
.notification-body strong,
.notification-body span { display: block; }
.notification-body small { margin-bottom: 4px; color: #8c2a2d; font-size: 6.3px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.notification-body strong { color: #16354f; font-size: 9.5px; }
.notification-body p { margin: 4px 0; color: #60788b; font-size: 8px; line-height: 1.4; }
.notification-body span { color: #3d566b; font-size: 7.5px; font-weight: 700; }
.notification-body .notification-digital { margin-bottom: 3px; color: #7b8b98; font-size: 6.7px; font-weight: 600; overflow-wrap: anywhere; }
.notification-side { display: grid; grid-template-columns: auto auto; align-items: center; justify-items: end; gap: 5px 10px; }
.notification-side time { display: inline-flex; align-items: center; gap: 6px; color: #7f292c; font-size: 7.5px; font-weight: 850; font-style: normal; font-variant-numeric: tabular-nums; }
.notification-side time svg { width: 14px; height: 14px; }
.notification-side > small { color: #8292a0; font-size: 6.5px; }
.notification-side a { grid-column: 1 / -1; min-height: 34px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; color: #fff; background: var(--navy-900); border-radius: 6px; box-shadow: 0 6px 13px rgba(8, 38, 80, .13); font-size: 7px; font-weight: 850; letter-spacing: .055em; text-decoration: none; text-transform: uppercase; transition: background-color .18s ease, transform .18s ease; }
.notification-side a:hover { background: #98282b; transform: translateY(-1px); }
.notification-side a svg { width: 14px; height: 14px; }

/* Visor documental integrado. */
body.pdf-viewer-open { overflow: hidden; }
.pdf-overlay { position: fixed; z-index: 1180; inset: 0; padding: 22px; display: grid; place-items: center; background: rgba(3, 16, 31, .82); backdrop-filter: blur(10px) saturate(.78); animation: overlayIn .22s ease both; }
.pdf-overlay[hidden] { display: none; }
.pdf-viewer { width: min(1380px, 100%); height: min(94vh, 940px); overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; color: #203b53; background: #fff; border: 1px solid rgba(255, 255, 255, .86); border-radius: 16px; box-shadow: 0 36px 105px rgba(0, 11, 25, .52); animation: dialogIn .34s cubic-bezier(.18, .85, .25, 1.06) both; }
.pdf-viewer-header { min-height: 84px; padding: 15px 18px 15px 20px; display: flex; align-items: center; gap: 15px; color: #fff; background: var(--navy-900); border-bottom: 3px solid #a6282b; }
.pdf-viewer-mark { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .2); border-radius: 11px; }
.pdf-viewer-mark svg { width: 25px; height: 25px; }
.pdf-viewer-heading { min-width: 0; }
.pdf-viewer-heading small { display: block; margin-bottom: 4px; color: #aec6d9; font-size: 7px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.pdf-viewer-heading h2 { margin: 0; overflow: hidden; font-size: 16px; line-height: 1.2; letter-spacing: -.2px; text-overflow: ellipsis; white-space: nowrap; }
.pdf-viewer-heading p { margin: 4px 0 0; color: rgba(255, 255, 255, .67); font-size: 8.5px; }
.pdf-viewer-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pdf-viewer-actions a,
.pdf-viewer-actions button { min-height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); border-radius: 7px; font: 800 7px/1 "Segoe UI", Inter, Arial, sans-serif; letter-spacing: .055em; text-decoration: none; text-transform: uppercase; cursor: pointer; transition: background-color .18s ease, border-color .18s ease, transform .18s ease; }
.pdf-viewer-actions a:hover,
.pdf-viewer-actions button:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .38); transform: translateY(-1px); }
.pdf-viewer-actions svg { width: 15px; height: 15px; }
.pdf-viewer-actions .pdf-viewer-close { width: 38px; padding: 0; font: 400 24px/1 Arial, sans-serif; }
.pdf-viewer-body { position: relative; min-height: 0; overflow: hidden; background: #e9eef2; }
.pdf-viewer-body iframe { position: relative; z-index: 2; width: 100%; height: 100%; display: block; opacity: 0; background: #fff; border: 0; transition: opacity .24s ease; }
.pdf-viewer.is-loaded .pdf-viewer-body iframe { opacity: 1; }
.pdf-viewer-loading { position: absolute; z-index: 1; inset: 0; display: grid; place-content: center; justify-items: center; gap: 13px; color: #16344f; background: #f7f9fa; text-align: center; }
.pdf-viewer-loading > span { position: relative; width: 58px; height: 58px; display: grid; place-items: center; color: #173b60; background: #fff; border-radius: 14px; box-shadow: 0 8px 24px rgba(20, 48, 74, .1); }
.pdf-viewer-loading > span i { position: absolute; inset: -5px; border: 2px solid #d7e1e8; border-top-color: #173b60; border-radius: 18px; animation: spin .85s linear infinite; }
.pdf-viewer-loading > span svg { width: 26px; height: 26px; }
.pdf-viewer-loading strong { font-size: 11px; }
.pdf-viewer-loading p { margin: -7px 0 0; color: #718696; font-size: 8.5px; }
.pdf-viewer.is-loaded .pdf-viewer-loading { visibility: hidden; opacity: 0; transition: opacity .18s ease, visibility .18s ease; }
.pdf-viewer-footer { min-height: 35px; padding: 0 18px; display: flex; align-items: center; gap: 8px; color: #647a8c; background: #f7f9fa; border-top: 1px solid #dce5eb; font-size: 7.5px; }
.pdf-viewer-footer span { display: inline-flex; align-items: center; gap: 7px; }
.pdf-viewer-footer p { margin: 0 0 0 auto; }
.pdf-viewer-footer svg { width: 14px; height: 14px; color: #173b60; }

body.assisted-reading-open { overflow: hidden; }
.assisted-overlay { position: fixed; z-index: 1160; inset: 0; padding: 22px; display: grid; place-items: center; background: rgba(4, 20, 38, .76); backdrop-filter: blur(9px) saturate(.82); animation: overlayIn .22s ease both; }
.assisted-overlay[hidden] { display: none; }
.assisted-dialog { position: relative; width: min(660px, 100%); max-height: calc(100vh - 44px); overflow: auto; color: #253f56; background: #fff; border: 1px solid rgba(255, 255, 255, .9); border-radius: 18px; box-shadow: 0 34px 95px rgba(0, 14, 29, .44); animation: dialogIn .34s cubic-bezier(.18, .85, .25, 1.06) both; }
.assisted-dialog::before { content: ""; position: absolute; z-index: 2; top: 0; right: 0; left: 0; height: 4px; background: linear-gradient(90deg, var(--navy-900) 0 78%, #a6282b 78%); }
.assisted-close { position: absolute; z-index: 4; top: 16px; right: 16px; width: 35px; height: 35px; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; font: 400 23px/1 Arial, sans-serif; cursor: pointer; transition: background-color .18s ease, transform .18s ease; }
.assisted-close:hover { background: rgba(255, 255, 255, .17); transform: rotate(4deg); }
.assisted-header { min-height: 138px; padding: 30px 68px 26px 30px; display: flex; align-items: center; gap: 17px; color: #fff; background: var(--navy-900); }
.assisted-emblem { width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; }
.assisted-emblem svg { width: 29px; height: 29px; }
.assisted-header > div { min-width: 0; }
.assisted-header small { display: block; margin-bottom: 5px; color: #a9c5db; font-size: 7.5px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.assisted-header h2 { margin: 0; font-size: 22px; letter-spacing: -.35px; }
.assisted-header p { margin: 7px 0 0; color: rgba(255, 255, 255, .72); font-size: 9.5px; line-height: 1.4; }
.assisted-processing { min-height: 260px; padding: 42px 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.assisted-processing[hidden] { display: none; }
.assisted-loader { position: relative; width: 68px; height: 68px; margin-bottom: 19px; display: grid; place-items: center; color: var(--navy-900); background: #f1f6f9; border-radius: 18px; }
.assisted-loader i { position: absolute; inset: -7px; border: 2px solid #d9e4eb; border-top-color: #9e2b2e; border-radius: 22px; animation: spin 1s linear infinite; }
.assisted-loader svg { width: 30px; height: 30px; }
.assisted-processing strong { color: #14334f; font-size: 14px; }
.assisted-processing p { margin: 7px 0 0; color: #758796; font-size: 10px; }
.assisted-result { padding: 24px 28px 27px; animation: assistedReveal .3s ease both; }
.assisted-result[hidden] { display: none; }
.assisted-section { padding: 16px; display: flex; align-items: flex-start; gap: 14px; background: #f5f8fa; border: 1px solid #dce6ec; border-radius: 9px; }
.assisted-section + .assisted-section { margin-top: 11px; }
.assisted-section > span { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; color: #fff; background: var(--navy-900); border-radius: 9px; }
.assisted-section > span svg { width: 20px; height: 20px; }
.assisted-section.is-impact { background: #fff7f7; border-color: #efd6d7; }
.assisted-section.is-impact > span { background: #a6282b; }
.assisted-section small { display: block; margin-bottom: 5px; color: #7a2a2d; font-size: 7px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.assisted-section p { margin: 0; color: #41586b; font-size: 10px; line-height: 1.58; }
.assisted-disclaimer { margin-top: 14px; padding: 11px 13px; display: flex; align-items: flex-start; gap: 10px; color: #617789; background: #eef4f7; border-radius: 7px; }
.assisted-disclaimer svg { width: 17px; height: 17px; flex: 0 0 17px; color: #17496f; }
.assisted-disclaimer p { margin: 0; font-size: 8.5px; line-height: 1.45; }
.assisted-disclaimer strong { color: #173c5d; }
@keyframes assistedReveal { from { opacity: 0; transform: translateY(7px); } }

@media screen and (max-width: 820px) {
  .proceedings-panel .detail-panel-action small { display: none; }
  .proceedings-intro { margin-inline: 16px; align-items: flex-start; }
  .proceedings-order { display: none; }
  .proceedings-timeline { margin: 16px 16px 22px; padding-left: 45px; }
  .proceedings-timeline::before { left: 15px; }
  .proceeding-marker { left: -45px; width: 32px; height: 32px; border-width: 4px; }
  .proceeding-card-head { min-height: 0; padding: 15px; display: grid; gap: 12px; }
  .proceeding-card h3 { font-size: 10.5px; }
  .proceeding-date { min-width: 0; width: max-content; max-width: 100%; }
  .proceeding-data-grid { padding: 10px 15px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proceeding-data-grid > b { min-height: 31px; grid-column: 1 / -1; }
  .proceeding-summary { margin: 12px 15px 0; }
  .proceeding-actions { padding: 12px 15px 16px; }
  .notification-section { margin: 0 15px 16px; }
  .notification-card { grid-template-columns: 36px minmax(0, 1fr); }
  .notification-icon { width: 36px; height: 36px; }
  .notification-side { grid-column: 1 / -1; padding-top: 9px; grid-template-columns: auto auto 1fr; justify-items: start; border-top: 1px solid #dee6eb; }
  .notification-side a { grid-column: auto; justify-self: end; }
  .pdf-overlay { padding: 12px; }
  .pdf-viewer { height: calc(100dvh - 24px); border-radius: 13px; }
  .pdf-viewer-header { min-height: 76px; padding: 12px; gap: 11px; }
  .pdf-viewer-mark { width: 42px; height: 42px; flex-basis: 42px; }
  .pdf-viewer-heading h2 { font-size: 13px; }
  .pdf-viewer-actions a { width: 38px; padding: 0; }
  .pdf-viewer-actions a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media screen and (max-width: 580px) {
  .proceedings-count { display: none; }
  .proceedings-intro { margin: 12px 12px 0; padding: 11px; }
  .proceedings-intro > span:first-child { width: 34px; height: 34px; flex-basis: 34px; }
  .proceedings-intro strong { font-size: 9px; }
  .proceedings-intro p { font-size: 8px; }
  .proceedings-timeline { margin: 14px 12px 18px; padding-left: 35px; }
  .proceedings-timeline::before { left: 11px; }
  .proceeding-marker { top: 17px; left: -35px; width: 25px; height: 25px; border-width: 3px; }
  .proceeding-marker span { font-size: 6.5px; }
  .proceeding-card-head { padding: 13px 12px 11px; }
  .proceeding-card h3 { font-size: 9.5px; }
  .proceeding-date { padding: 8px 9px; }
  .proceeding-data-grid { padding: 9px 12px; grid-template-columns: 1fr; gap: 7px; }
  .proceeding-data-grid > div { min-height: 45px; }
  .proceeding-data-grid > b { grid-column: auto; }
  .proceeding-summary { margin: 10px 12px 0; padding: 10px; gap: 9px; }
  .proceeding-summary > span { width: 29px; height: 29px; flex-basis: 29px; }
  .proceeding-summary p { font-size: 8.2px; }
  .proceeding-actions { padding: 11px 12px 13px; display: grid; grid-template-columns: 1fr; }
  .assisted-button,
  .document-button { width: 100%; min-height: 40px; }
  .notification-section { margin: 0 12px 13px; padding-top: 12px; }
  .notification-card { padding: 11px; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
  .notification-icon { width: 32px; height: 32px; }
  .notification-side { grid-template-columns: 1fr auto; }
  .notification-side > small { text-align: right; }
  .notification-side a { grid-column: 1 / -1; width: 100%; min-height: 37px; justify-content: center; }
  .pdf-overlay { padding: 0; }
  .pdf-viewer { width: 100%; height: 100dvh; border: 0; border-radius: 0; }
  .pdf-viewer-header { min-height: 69px; padding: 10px; gap: 9px; }
  .pdf-viewer-mark { width: 38px; height: 38px; flex-basis: 38px; border-radius: 9px; }
  .pdf-viewer-mark svg { width: 21px; height: 21px; }
  .pdf-viewer-heading small,
  .pdf-viewer-heading p { display: none; }
  .pdf-viewer-heading h2 { max-width: 36vw; font-size: 11px; }
  .pdf-viewer-actions { gap: 5px; }
  .pdf-viewer-actions a,
  .pdf-viewer-actions .pdf-viewer-close { width: 34px; min-height: 34px; }
  .pdf-viewer-actions a:nth-child(2) { display: none; }
  .pdf-viewer-footer { min-height: 32px; padding-inline: 11px; font-size: 6.8px; }
  .pdf-viewer-footer p { display: none; }
  .assisted-overlay { padding: 12px; }
  .assisted-dialog { max-height: calc(100vh - 24px); border-radius: 14px; }
  .assisted-header { min-height: 120px; padding: 25px 54px 21px 20px; gap: 12px; }
  .assisted-emblem { width: 47px; height: 47px; flex-basis: 47px; border-radius: 11px; }
  .assisted-emblem svg { width: 24px; height: 24px; }
  .assisted-header h2 { font-size: 18px; }
  .assisted-header p { font-size: 8px; }
  .assisted-result { padding: 17px; }
  .assisted-section { padding: 12px; gap: 10px; }
  .assisted-section p { font-size: 9px; }
}

/* Centro documental maestro–detalle: historial completo y PDF integrado. */
.proceedings-section { width: calc(100vw - 48px); margin-left: calc(50% - 50vw + 24px); background: #fff; }
.proceedings-direct-header { min-height: 142px; padding: 19px 8px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "heading total" "toolbar toolbar"; align-items: center; gap: 15px 24px; border-top: 1px solid #e3eaf0; }
.proceedings-direct-header .detail-panel-heading { grid-area: heading; gap: 16px; }
.proceedings-direct-header .detail-panel-icon { position: relative; width: 56px; height: 56px; flex-basis: 56px; color: #123a61; background: #edf3f7; border: 1px solid #d6e2ea; border-radius: 14px; box-shadow: 0 8px 22px rgba(12, 48, 82, .08); }
.proceedings-direct-header .detail-panel-icon::after { content: ""; position: absolute; right: -4px; bottom: 8px; width: 4px; height: 18px; background: #b42127; border-radius: 3px; }
.proceedings-direct-header .detail-panel-icon svg { width: 27px; height: 27px; }
.proceedings-direct-header .detail-panel-heading small { margin-bottom: 3px; font-size: 8px; letter-spacing: .12em; }
.proceedings-direct-header .detail-panel-heading strong { font-size: clamp(19px, 1.6vw, 24px); letter-spacing: -.45px; }
.proceedings-direct-header .detail-panel-heading p { margin-top: 4px; font-size: 10px; }
.proceedings-direct-header > .workbench-total { grid-area: total; width: 86px; min-height: 56px; border-top: 3px solid #b42127; }
.proceedings-direct-header > .workbench-total strong { font-size: 18px; }
.proceedings-direct-header .workbench-toolbar { grid-area: toolbar; min-height: 58px; padding: 8px 10px 8px 13px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px; background: #f4f7f9; border: 1px solid #d9e3ea; border-radius: 11px; }
.workbench-toolbar-title { min-width: 175px; display: flex; align-items: center; gap: 9px; }
.workbench-toolbar-title > i { width: 4px; height: 30px; flex: 0 0 4px; background: #b42127; border-radius: 4px; }
.workbench-toolbar-title strong,
.workbench-toolbar-title small { display: block; }
.workbench-toolbar-title strong { color: #153a5c; font-size: 8.5px; }
.workbench-toolbar-title small { margin-top: 3px; color: #778b9a; font-size: 6.5px; }
.proceedings-direct-content { min-width: 0; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.proceedings-section .proceedings-intro { display: none; }
.proceedings-workbench { margin: 0 0 30px; overflow: hidden; background: #fff; border: 0; border-radius: 0; box-shadow: none; }
.workbench-toolbar { min-height: 58px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #f7f9fb; border-bottom: 1px solid #dce5eb; }
.workbench-total { width: 78px; min-height: 42px; flex: 0 0 78px; display: grid; place-content: center; text-align: center; background: #fff; border: 1px solid #d6e0e7; border-radius: 8px; box-shadow: 0 4px 12px rgba(20, 48, 74, .05); }
.workbench-total strong { color: #0b3157; font-size: 15px; line-height: 1; }
.workbench-total span { margin-top: 4px; color: #758999; font-size: 6.5px; font-weight: 750; text-transform: uppercase; }
.workbench-controls { min-width: 0; display: grid; grid-template-columns: minmax(175px, .85fr) minmax(165px, .8fr) minmax(270px, 1.35fr); align-items: center; justify-content: end; gap: 8px; }
.workbench-select,
.workbench-search { min-height: 40px; display: flex; align-items: center; gap: 8px; color: #193c5c; background: #fff; border: 1px solid #cfdae3; border-radius: 8px; box-shadow: 0 2px 7px rgba(20, 48, 74, .025); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.workbench-select:focus-within,
.workbench-search:focus-within { border-color: #7593aa; box-shadow: 0 0 0 3px rgba(23, 59, 96, .08); }
.workbench-select { padding: 0 9px; }
.workbench-select svg,
.workbench-search svg { width: 16px; height: 16px; flex: 0 0 16px; color: #315a7b; }
.workbench-select select,
.workbench-search input { min-width: 0; color: #29465e; background: transparent; border: 0; outline: 0; font: 700 8px/1 "Segoe UI", Inter, Arial, sans-serif; }
.workbench-select select { width: 100%; cursor: pointer; }
.workbench-search { width: 100%; padding: 0 11px; }
.workbench-search input { width: 100%; }
.workbench-search input::placeholder { color: #8a9aa7; font-weight: 500; }

.workbench-layout { height: clamp(640px, 76vh, 790px); min-height: 0; display: grid; grid-template-columns: minmax(320px, 390px) minmax(0, 1fr); gap: 18px; }
.workbench-index { min-height: 0; overflow: hidden; background: #f4f7f9; border: 1px solid #d8e2e9; border-radius: 10px; box-shadow: 0 10px 28px rgba(20, 48, 74, .055); }
.workbench-list { height: 100%; min-height: 0; overflow-y: auto; padding: 16px 13px 22px 88px; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #91a5b5 #e9eef2; }
.workbench-timeline-entry { position: relative; }
.workbench-timeline-entry::before { content: ""; position: absolute; top: 32px; bottom: -16px; left: -48px; width: 2px; background: #d1dce4; }
.workbench-timeline-entry:last-child::before { bottom: 46px; }
.workbench-timeline-marker { position: absolute; z-index: 2; top: 1px; left: -78px; width: 60px; display: grid; justify-items: center; color: #173b60; }
.workbench-timeline-marker b { width: 39px; height: 39px; display: grid; place-items: center; color: #fff; background: var(--navy-900); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #c3d0d9, 0 6px 13px rgba(16, 44, 69, .13); font-size: 9px; }
.workbench-timeline-marker.is-active b { background: #b42127; box-shadow: 0 0 0 1px #d7999c, 0 7px 16px rgba(154, 35, 40, .18); }
.workbench-timeline-marker time { margin-top: 5px; display: grid; justify-items: center; color: #526b7e; font-style: normal; line-height: 1.1; }
.workbench-timeline-marker time strong { font-size: 6.8px; font-weight: 900; }
.workbench-timeline-marker time span { margin-top: 2px; font-size: 6.6px; font-weight: 750; }
.workbench-list-item { position: relative; width: 100%; min-height: 92px; margin-bottom: 10px; padding: 11px 13px 10px; display: block; color: #1a3853; background: #fff; border: 1px solid #d9e3ea; border-left: 3px solid #173b60; border-radius: 8px; cursor: pointer; text-align: left; box-shadow: 0 5px 14px rgba(20, 48, 74, .045); transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.workbench-list-item:hover { border-color: #b9cbd8; box-shadow: 0 9px 20px rgba(20, 48, 74, .09); transform: translateY(-1px); }
.workbench-list-item.is-active { background: #fffafa; border-color: #d9a4a7; border-left-color: #b42127; box-shadow: 0 9px 23px rgba(139, 34, 38, .09); }
.workbench-list-top { display: flex; align-items: center; gap: 6px; }
.workbench-list-type,
.workbench-list-latest { padding: 4px 6px; border-radius: 4px; font-size: 6px; font-weight: 850; letter-spacing: .03em; }
.workbench-list-type { color: #174e77; background: #eaf3f9; }
.workbench-list-type.is-resolution { color: #96282b; background: #fbecec; }
.workbench-list-type.is-hearing { color: #24634a; background: #eaf6f0; }
.workbench-list-latest { color: #a12428; background: #fff0f0; }
.workbench-list-item h4 { margin: 8px 0 4px; overflow: hidden; color: #15344f; font-size: 10px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.workbench-list-item p { margin: 0; overflow: hidden; color: #667d8f; font-size: 7.5px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.workbench-list-meta { margin-top: 9px; display: flex; align-items: center; gap: 10px; color: #718697; font-size: 6.8px; font-weight: 700; }
.workbench-list-meta span { display: inline-flex; align-items: center; gap: 4px; }
.workbench-list-meta svg { width: 12px; height: 12px; }
.workbench-child-notification { position: relative; width: calc(100% - 21px); min-height: 58px; margin: -2px 0 12px 21px; padding: 9px 28px 9px 10px; display: grid; grid-template-columns: 29px minmax(0, 1fr); align-items: center; gap: 9px; color: #415d73; background: #f9fbfc; border: 1px solid #d6e0e7; border-left: 2px solid #8fa6b8; border-radius: 7px; cursor: pointer; text-align: left; box-shadow: 0 4px 11px rgba(20, 48, 74, .035); transition: border-color .18s ease, background-color .18s ease, transform .18s ease; }
.workbench-child-notification::before { content: ""; position: absolute; top: -17px; left: -31px; width: 26px; height: 39px; border-left: 2px solid #c4d1da; border-bottom: 2px solid #c4d1da; border-radius: 0 0 0 9px; }
.workbench-child-notification:hover { background: #fff; border-color: #afc1ce; transform: translateX(2px); }
.workbench-child-notification.is-active { color: #81252a; background: #fff8f8; border-color: #d6a5a7; border-left-color: #b42127; }
.workbench-child-icon { width: 29px; height: 29px; display: grid; place-items: center; color: #173b60; background: #edf3f7; border-radius: 7px; }
.workbench-child-icon svg { width: 15px; height: 15px; }
.workbench-child-notification.is-active .workbench-child-icon { color: #fff; background: #b42127; }
.workbench-child-copy { min-width: 0; }
.workbench-child-copy small,
.workbench-child-copy strong,
.workbench-child-copy em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workbench-child-copy small { color: #9c292d; font-size: 5.6px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.workbench-child-copy strong { margin-top: 3px; color: #183b58; font-size: 7.6px; }
.workbench-child-copy em { margin-top: 3px; color: #7b8e9c; font-size: 6px; font-style: normal; }
.workbench-child-arrow { position: absolute; right: 10px; width: 12px; height: 12px; color: #748a9b; }
.workbench-empty { height: 100%; padding: 30px 18px; display: grid; place-content: center; justify-items: center; color: #718596; text-align: center; }
.workbench-empty svg { width: 30px; height: 30px; margin-bottom: 10px; color: #173b60; }
.workbench-empty strong { color: #17344f; font-size: 10px; }
.workbench-empty p { margin: 5px 0 0; font-size: 8px; }

.workbench-detail { min-width: 0; min-height: 0; overflow: hidden; display: grid; grid-template-rows: auto auto auto auto auto minmax(0, 1fr); background: #fff; border: 1px solid #d4dfe7; border-radius: 10px; box-shadow: 0 13px 32px rgba(20, 48, 74, .06); }
.workbench-detail.is-updating > * { animation: workbenchDetailIn .3s ease both; }
.workbench-detail-head { min-height: 82px; padding: 11px 16px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; border-top: 3px solid #b42127; border-bottom: 1px solid #e0e7ec; }
.workbench-document-icon { width: 42px; height: 42px; display: grid; place-items: center; color: #173b60; background: #eef3f7; border: 1px solid #dce5eb; border-radius: 9px; }
.workbench-document-icon svg { width: 21px; height: 21px; }
.workbench-title { min-width: 0; }
.workbench-title > div { display: flex; align-items: center; gap: 7px; }
.workbench-title > div span,
.workbench-title > div b { padding: 4px 7px; color: #98282b; background: #fbeded; border-radius: 4px; font-size: 6px; font-weight: 850; }
.workbench-title h3 { margin: 5px 0 2px; overflow: hidden; color: #0d3156; font-size: clamp(14px, 1.15vw, 18px); line-height: 1.12; letter-spacing: -.25px; text-overflow: ellipsis; white-space: nowrap; }
.workbench-title p { margin: 0; overflow: hidden; color: #6d8293; font-size: 7.7px; text-overflow: ellipsis; white-space: nowrap; }
.workbench-date { min-width: 128px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; color: #183d5d; background: #f6f8fa; border: 1px solid #d8e2e9; border-radius: 8px; }
.workbench-date svg { width: 18px; height: 18px; color: #a3272b; }
.workbench-date small,
.workbench-date strong { display: block; }
.workbench-date small { margin-bottom: 3px; color: #718596; font-size: 6.5px; }
.workbench-date strong { font-size: 9px; }
.workbench-metrics { padding: 7px 16px; display: grid; grid-template-columns: .7fr .7fr 1.2fr 1.2fr; gap: 7px; background: #f7f9fa; }
.workbench-metrics > div { min-width: 0; min-height: 43px; padding: 7px 8px; display: flex; align-items: center; gap: 7px; background: #fff; border: 1px solid #dfe7ec; border-radius: 7px; }
.workbench-metrics svg { width: 16px; height: 16px; flex: 0 0 16px; color: #173b60; }
.workbench-metrics span { min-width: 0; }
.workbench-metrics small,
.workbench-metrics strong { display: block; }
.workbench-metrics small { margin-bottom: 3px; color: #7b8d9c; font-size: 5.7px; }
.workbench-metrics strong { overflow: hidden; color: #17344f; font-size: 7.8px; text-overflow: ellipsis; white-space: nowrap; }
.workbench-summary { margin: 7px 16px 0; padding: 8px 10px; display: flex; align-items: flex-start; gap: 9px; color: #425a6e; background: #f5f7f9; border-left: 3px solid #b42127; border-radius: 7px; }
.workbench-summary > span { width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; color: #173b60; background: #fff; border: 1px solid #dce5eb; border-radius: 6px; }
.workbench-summary svg { width: 14px; height: 14px; }
.workbench-summary small { display: block; margin-bottom: 3px; color: #a1262a; font-size: 6.3px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.workbench-summary p { margin: 0; overflow: hidden; display: -webkit-box; font-size: 7.8px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.workbench-actions { padding: 7px 16px; display: flex; align-items: center; gap: 7px; }
.workbench-actions button,
.workbench-actions a { min-height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: #173b60; background: #fff; border: 1px solid #c8d5df; border-radius: 7px; font: 800 6.7px/1 "Segoe UI", Inter, Arial, sans-serif; letter-spacing: .035em; text-decoration: none; cursor: pointer; transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease; }
.workbench-actions .is-primary { color: #fff; background: var(--navy-900); border-color: var(--navy-900); }
.workbench-actions button:hover,
.workbench-actions a:hover { color: #fff; background: #98282b; border-color: #98282b; transform: translateY(-1px); }
.workbench-actions .is-icon { width: 34px; margin-left: auto; padding: 0; }
.workbench-actions svg { width: 15px; height: 15px; }
.workbench-tabs { min-height: 36px; padding: 0 16px; display: flex; align-items: end; gap: 20px; border-bottom: 1px solid #dfe7ec; }
.workbench-tabs button { position: relative; min-height: 35px; padding: 0 0 1px; color: #698091; background: transparent; border: 0; font: 750 7.6px/1 "Segoe UI", Inter, Arial, sans-serif; cursor: pointer; }
.workbench-tabs button::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: transparent; border-radius: 3px 3px 0 0; }
.workbench-tabs button.is-active { color: #153a5d; }
.workbench-tabs button.is-active::after { background: #b42127; }
.workbench-tabs button span { min-width: 18px; min-height: 18px; margin-left: 4px; display: inline-grid; place-items: center; color: #fff; background: #173b60; border-radius: 999px; font-size: 6px; }
.workbench-tab-panels { min-height: 0; overflow: hidden; }
.workbench-tab-panel { height: 100%; min-height: 0; }
.workbench-tab-panel[hidden] { display: none; }
.inline-pdf-viewer { position: relative; height: 100%; min-height: 310px; overflow: hidden; display: grid; grid-template-rows: 42px minmax(0, 1fr); background: #dfe5e9; }
.inline-pdf-toolbar { position: relative; z-index: 4; min-height: 42px; padding: 5px 9px; display: flex; align-items: center; justify-content: space-between; gap: 9px; color: #29465e; background: #f6f8fa; border-bottom: 1px solid #d3dee6; box-shadow: 0 3px 10px rgba(18, 44, 68, .06); }
.inline-pdf-toolbar > div { display: flex; align-items: center; gap: 5px; }
.inline-pdf-toolbar button { width: 30px; height: 30px; display: grid; place-items: center; color: #244762; background: #fff; border: 1px solid #d2dde5; border-radius: 6px; cursor: pointer; transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
.inline-pdf-toolbar button:hover:not(:disabled) { color: #fff; background: #173b60; border-color: #173b60; }
.inline-pdf-toolbar button:disabled { color: #a7b3bc; background: #eef2f4; cursor: default; }
.inline-pdf-toolbar button:first-child svg { transform: rotate(180deg); }
.inline-pdf-toolbar svg { width: 13px; height: 13px; }
.inline-pdf-toolbar b { font-size: 16px; line-height: 1; }
.inline-pdf-toolbar > div > span { min-width: 44px; color: #61788a; font-size: 7px; font-weight: 750; text-align: center; }
.inline-pdf-toolbar > div > span strong { color: #173b60; }
.inline-pdf-toolbar > a { min-height: 30px; padding: 0 9px; display: inline-flex; align-items: center; gap: 6px; color: #173b60; background: #fff; border: 1px solid #d2dde5; border-radius: 6px; font-size: 6.7px; font-weight: 800; text-decoration: none; }
.inline-pdf-content { min-height: 0; overflow: hidden; display: grid; grid-template-columns: 88px minmax(0, 1fr); }
.inline-pdf-thumbnails { min-height: 0; overflow-y: auto; padding: 9px 8px; background: #23313d; border-right: 1px solid #44515b; scrollbar-width: thin; scrollbar-color: #76828b transparent; }
.inline-pdf-thumb { width: 100%; margin-bottom: 9px; padding: 4px; display: block; color: #dce4ea; background: transparent; border: 1px solid transparent; border-radius: 4px; cursor: pointer; }
.inline-pdf-thumb.is-active { background: #173b60; border-color: #6ca7d5; box-shadow: 0 0 0 1px #6ca7d5; }
.inline-pdf-thumb img { width: 100%; display: block; background: #fff; }
.inline-pdf-thumb span { display: block; padding-top: 4px; font-size: 6.5px; text-align: center; }
.inline-pdf-stage { min-height: 0; overflow: auto; padding: 18px; display: flex; align-items: flex-start; justify-content: center; background: #cbd3d9; scrollbar-width: thin; scrollbar-color: #8293a0 #dfe5e9; }
.inline-pdf-stage img { width: 100%; height: auto; display: block; background: #fff; box-shadow: 0 8px 24px rgba(11, 29, 45, .23); transition: width .18s ease; }
.inline-pdf-loading { position: absolute; z-index: 5; inset: 42px 0 0; display: grid; place-content: center; justify-items: center; gap: 7px; color: #173b60; background: #f4f7f9; }
.inline-pdf-loading i { width: 39px; height: 39px; margin-bottom: 5px; border: 3px solid #d5dfe6; border-top-color: #173b60; border-radius: 50%; animation: spin .85s linear infinite; }
.inline-pdf-loading strong { font-size: 10px; }
.inline-pdf-loading span { color: #748897; font-size: 7.5px; }
.inline-pdf-viewer.is-loaded .inline-pdf-loading { visibility: hidden; opacity: 0; transition: opacity .18s ease, visibility .18s ease; }
.workbench-information,
.workbench-notifications { overflow-y: auto; padding: 18px; background: #f7f9fa; }
.workbench-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.workbench-info-grid > div { min-height: 62px; padding: 12px; background: #fff; border: 1px solid #dce5eb; border-radius: 8px; }
.workbench-info-grid small,
.workbench-info-grid strong { display: block; }
.workbench-info-grid small { margin-bottom: 5px; color: #768a99; font-size: 6.5px; font-weight: 800; text-transform: uppercase; }
.workbench-info-grid strong { color: #17344f; font-size: 9px; line-height: 1.4; }
.workbench-info-note { margin-top: 12px; padding: 12px; display: flex; align-items: flex-start; gap: 10px; color: #5d7487; background: #edf3f6; border-radius: 8px; }
.workbench-info-note svg { width: 18px; height: 18px; flex: 0 0 18px; color: #173b60; }
.workbench-info-note p { margin: 0; font-size: 8px; line-height: 1.5; }
.notification-tab-head { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.notification-tab-head small,
.notification-tab-head strong { display: block; }
.notification-tab-head small { margin-bottom: 3px; color: #a1262a; font-size: 6.3px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.notification-tab-head strong { color: #15344f; font-size: 13px; }
.notification-tab-head > span { padding: 6px 9px; color: #173b60; background: #fff; border: 1px solid #d5e0e7; border-radius: 999px; font-size: 7px; font-weight: 800; }
.workbench-notification-card { padding: 14px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 13px; background: #fff; border: 1px solid #d8e3ea; border-left: 3px solid #a4282c; border-radius: 9px; box-shadow: 0 7px 19px rgba(20, 48, 74, .05); }
.workbench-notification-card + .workbench-notification-card { margin-top: 10px; }
.workbench-notification-card > span { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--navy-900); border-radius: 9px; }
.workbench-notification-card > span svg { width: 20px; height: 20px; }
.workbench-notification-copy small,
.workbench-notification-copy strong,
.workbench-notification-copy span { display: block; }
.workbench-notification-copy small { margin-bottom: 4px; color: #9a292c; font-size: 6.2px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.workbench-notification-copy strong { color: #17344f; font-size: 9.5px; }
.workbench-notification-copy p { margin: 4px 0; color: #61788a; font-size: 8px; line-height: 1.4; }
.workbench-notification-copy span { color: #718596; font-size: 7px; }
.workbench-notification-action { display: grid; justify-items: end; gap: 7px; }
.workbench-notification-action time { color: #8f292c; font-size: 7px; font-weight: 850; }
.workbench-notification-action a { min-height: 34px; padding: 0 11px; display: inline-flex; align-items: center; gap: 6px; color: #fff; background: var(--navy-900); border-radius: 6px; font-size: 7px; font-weight: 800; text-decoration: none; }
.workbench-notification-action svg { width: 14px; height: 14px; }
.workbench-no-notifications { min-height: 220px; display: grid; place-content: center; justify-items: center; color: #718596; text-align: center; }
.workbench-no-notifications > span { width: 52px; height: 52px; margin-bottom: 12px; display: grid; place-items: center; color: #173b60; background: #fff; border: 1px solid #dce5eb; border-radius: 13px; }
.workbench-no-notifications svg { width: 24px; height: 24px; }
.workbench-no-notifications strong { color: #17344f; font-size: 11px; }
.workbench-no-notifications p { max-width: 310px; margin: 5px 0 0; font-size: 8px; line-height: 1.45; }
@keyframes workbenchDetailIn { from { opacity: .35; transform: translateY(3px); } }

@media screen and (max-width: 1080px) {
  .workbench-layout { grid-template-columns: minmax(270px, 310px) minmax(0, 1fr); }
  .workbench-toolbar-title { min-width: 150px; }
  .workbench-controls { grid-template-columns: minmax(150px, .9fr) minmax(145px, .85fr) minmax(220px, 1.2fr); }
  .workbench-search { width: 100%; }
  .workbench-date { min-width: 126px; }
  .workbench-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workbench-actions button span,
  .workbench-actions a span { font-size: 6.6px; }
}

@media screen and (max-width: 820px) {
  .proceedings-section { width: calc(100vw - 32px); margin-left: calc(50% - 50vw + 16px); }
  .proceedings-direct-header { min-height: 0; padding: 15px 0; gap: 12px 16px; }
  .proceedings-direct-header .detail-panel-icon { width: 52px; height: 52px; flex-basis: 52px; }
  .proceedings-direct-header .detail-panel-heading { gap: 13px; }
  .proceedings-direct-header .workbench-toolbar { grid-template-columns: 1fr; gap: 8px; }
  .workbench-toolbar-title { min-width: 0; }
  .proceedings-workbench { margin: 0 0 22px; }
  .workbench-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 1; }
  .workbench-search { width: auto; grid-column: 1 / -1; }
  .workbench-select select { width: 100%; }
  .workbench-layout { height: auto; display: block; }
  .workbench-index { height: 390px; border-right: 0; border-bottom: 1px solid #d8e2e9; }
  .workbench-list { padding-left: 88px; }
  .workbench-detail { height: 660px; }
  .workbench-detail-head { grid-template-columns: 43px minmax(0, 1fr); }
  .workbench-document-icon { width: 43px; height: 43px; }
  .workbench-date { grid-column: 2; width: max-content; min-width: 0; padding: 8px 10px; }
  .workbench-actions { flex-wrap: wrap; }
  .workbench-actions .is-icon { margin-left: 0; }
}

@media screen and (max-width: 580px) {
  .proceedings-section { width: calc(100vw - 24px); margin-left: calc(50% - 50vw + 12px); }
  .proceedings-direct-header { position: relative; min-height: 0; padding: 13px 0 12px; grid-template-columns: 1fr; grid-template-areas: "heading" "toolbar"; gap: 11px; }
  .proceedings-direct-header .detail-panel-heading { padding-right: 66px; }
  .proceedings-direct-header .detail-panel-icon { width: 44px; height: 44px; flex-basis: 44px; border-radius: 10px; }
  .proceedings-direct-header .detail-panel-icon svg { width: 23px; height: 23px; }
  .proceedings-direct-header .detail-panel-heading { gap: 10px; }
  .proceedings-direct-header .detail-panel-heading strong { font-size: 15px; }
  .proceedings-direct-header .detail-panel-heading p { max-width: 245px; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
  .proceedings-direct-header > .workbench-total { position: absolute; top: 12px; right: 0; width: 58px; min-height: 46px; }
  .proceedings-direct-header > .workbench-total strong { font-size: 15px; }
  .proceedings-direct-header .workbench-toolbar { padding: 8px; }
  .workbench-toolbar-title { display: none; }
  .proceedings-workbench { margin: 0 0 18px; border-radius: 0; }
  .workbench-controls { display: grid; grid-template-columns: 1fr; }
  .workbench-select:nth-child(2) { display: none; }
  .workbench-search { grid-column: auto; }
  .workbench-index { height: 350px; }
  .workbench-list { padding: 13px 10px 18px 76px; }
  .workbench-timeline-marker { left: -67px; width: 54px; }
  .workbench-timeline-entry::before { left: -40px; }
  .workbench-timeline-marker b { width: 36px; height: 36px; }
  .workbench-list-item { min-height: 86px; }
  .workbench-child-notification { width: calc(100% - 15px); margin-left: 15px; }
  .workbench-child-notification::before { left: -25px; width: 20px; }
  .workbench-detail { height: 630px; }
  .workbench-detail-head { min-height: 104px; padding: 10px 12px; gap: 9px; }
  .workbench-title h3 { font-size: 14px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .workbench-title p { font-size: 7.5px; }
  .workbench-date { grid-column: 1 / -1; margin-left: 53px; }
  .workbench-metrics { padding: 9px 12px; gap: 7px; }
  .workbench-metrics > div { min-height: 47px; padding: 7px; }
  .workbench-metrics svg { display: none; }
  .workbench-summary { margin: 10px 12px 0; padding: 9px 10px; }
  .workbench-summary > span { display: none; }
  .workbench-summary p { font-size: 7.8px; }
  .workbench-actions { padding: 9px 12px; display: grid; grid-template-columns: 1fr 1fr auto; }
  .workbench-actions button,
  .workbench-actions a { min-height: 36px; padding: 0 8px; }
  .workbench-actions .is-primary { grid-column: 1 / -1; }
  .workbench-actions .is-icon { width: 36px; }
  .workbench-tabs { padding-inline: 12px; gap: 14px; overflow-x: auto; }
  .workbench-tabs button { flex: 0 0 auto; font-size: 7.3px; }
  .inline-pdf-viewer { min-height: 280px; }
  .inline-pdf-toolbar { padding-inline: 6px; }
  .inline-pdf-toolbar > a { width: 30px; padding: 0; justify-content: center; }
  .inline-pdf-toolbar > a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .inline-pdf-content { grid-template-columns: 64px minmax(0, 1fr); }
  .inline-pdf-thumbnails { padding: 7px 6px; }
  .inline-pdf-stage { padding: 10px; }
  .workbench-information,
  .workbench-notifications { padding: 12px; }
  .workbench-info-grid { grid-template-columns: 1fr; }
  .workbench-notification-card { grid-template-columns: 35px minmax(0, 1fr); padding: 11px; }
  .workbench-notification-card > span { width: 35px; height: 35px; }
  .workbench-notification-action { grid-column: 1 / -1; padding-top: 8px; grid-template-columns: 1fr auto; align-items: center; border-top: 1px solid #e1e8ed; }
}

/* Robot jurídico contextual del expediente */
.legal-assistant { position: fixed; z-index: 1090; right: 22px; bottom: 22px; display: none; font-family: inherit; }
body.dossier-open .legal-assistant { display: block; }
.legal-assistant-panel[hidden] { display: none; }
.legal-assistant-panel { width: min(410px, calc(100vw - 32px)); height: min(500px, calc(100dvh - 44px)); max-height: calc(100dvh - 44px); overflow: hidden; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto auto; background: #fff; border: 1px solid #cbd8e2; border-radius: 18px; box-shadow: 0 24px 70px rgba(7, 29, 53, .25), 0 4px 16px rgba(7, 29, 53, .1); animation: legalAssistantIn .32s cubic-bezier(.2, .85, .26, 1) both; }
.legal-assistant-header { min-height: 92px; padding: 16px 17px; display: grid; grid-template-columns: 54px minmax(0, 1fr) 34px; align-items: center; gap: 12px; color: #fff; background: linear-gradient(120deg, #071f40, #0b315d 72%, #123d69); border-bottom: 3px solid #a92b30; }
.legal-assistant-header > div { min-width: 0; }
.legal-assistant-header small { display: block; margin-bottom: 3px; color: #aec6d9; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.legal-assistant-header h2 { margin: 0; overflow: hidden; font-size: 16px; line-height: 1.18; letter-spacing: -.2px; text-overflow: ellipsis; white-space: nowrap; }
.legal-assistant-header p { margin: 6px 0 0; display: flex; align-items: center; gap: 6px; color: #c8d8e5; font-size: 9px; }
.legal-assistant-header p i { width: 7px; height: 7px; background: #4fd19c; border: 2px solid rgba(79, 209, 156, .2); border-radius: 50%; box-shadow: 0 0 0 3px rgba(79, 209, 156, .13); }
.legal-assistant-close { width: 32px; height: 32px; display: grid; place-items: center; color: #dbe7f0; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18); border-radius: 9px; font: 400 21px/1 Arial, sans-serif; cursor: pointer; transition: background-color .18s ease, transform .18s ease; }
.legal-assistant-close:hover { background: rgba(255, 255, 255, .15); transform: rotate(3deg); }
.legal-bot-avatar { position: relative; width: 50px; height: 50px; flex: 0 0 50px; display: grid; place-items: center; background: transparent; border: 0; }
.legal-bot-avatar.is-large { width: 58px; height: 58px; }
.legal-bot-avatar img { width: 100%; height: 100%; display: block; object-fit: contain; filter: drop-shadow(0 7px 10px rgba(3, 22, 43, .2)); }
.legal-assistant-context { min-height: 40px; padding: 7px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #49657c; background: #f3f6f8; border-bottom: 1px solid #dfe7ed; }
.legal-assistant-context span { display: inline-flex; align-items: center; gap: 6px; font-size: 8px; }
.legal-assistant-context svg { width: 13px; height: 13px; color: #173b60; }
.legal-assistant-context strong { color: #173853; font-size: 8.5px; }
.legal-assistant-conversation { min-height: 0; overflow-y: auto; padding: 16px 14px 10px; background: linear-gradient(#fbfcfd, #f7f9fa); scrollbar-width: thin; scrollbar-color: #aabac6 transparent; }
.legal-chat-message { margin-bottom: 13px; display: flex; align-items: flex-start; gap: 8px; animation: legalMessageIn .24s ease both; }
.legal-chat-message.is-user { justify-content: flex-end; }
.legal-chat-message > div { max-width: 82%; padding: 10px 11px; color: #405a70; background: #fff; border: 1px solid #dbe4ea; border-radius: 4px 13px 13px 13px; box-shadow: 0 4px 13px rgba(14, 45, 72, .05); }
.legal-chat-message.is-user > div { color: #fff; background: #0a2d58; border-color: #0a2d58; border-radius: 13px 4px 13px 13px; box-shadow: 0 5px 15px rgba(8, 38, 80, .15); }
.legal-chat-message small { display: block; margin-bottom: 5px; color: #9e292d; font-size: 7px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.legal-chat-message.is-user small { color: #bfd2e1; }
.legal-chat-message p { margin: 0; font-size: 10px; line-height: 1.52; }
.legal-message-avatar { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; color: #fff; background: #0a2d58; border-radius: 8px; box-shadow: 0 4px 10px rgba(8, 38, 80, .13); }
.legal-message-avatar svg { width: 15px; height: 15px; }
.legal-message-source { margin-top: 8px; padding-top: 7px; display: flex; align-items: center; gap: 5px; color: #708595; border-top: 1px solid #e6ecef; font-size: 7.2px; line-height: 1.35; }
.legal-message-source svg { width: 11px; height: 11px; flex: 0 0 11px; color: #173b60; }
.legal-message-action { margin-top: 9px; min-height: 30px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; color: #173b60; background: #f7fafc; border: 1px solid #cad8e2; border-radius: 7px; font-size: 7.5px; font-weight: 850; cursor: pointer; }
.legal-message-action svg { width: 12px; height: 12px; }
.legal-chat-typing > div { min-width: 67px; display: flex; gap: 5px; }
.legal-chat-typing i { width: 6px; height: 6px; background: #7890a3; border-radius: 50%; animation: legalTyping 1s infinite ease-in-out; }
.legal-chat-typing i:nth-child(2) { animation-delay: .14s; }
.legal-chat-typing i:nth-child(3) { animation-delay: .28s; }
.legal-assistant-suggestions { padding: 10px 14px 9px; background: #fff; border-top: 1px solid #e0e7ec; }
.legal-assistant-suggestions > span { display: block; margin-bottom: 7px; color: #778b9b; font-size: 7px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.legal-assistant-suggestions > div { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.legal-assistant-suggestions > div::-webkit-scrollbar { display: none; }
.legal-assistant-suggestions button { min-height: 29px; flex: 0 0 auto; padding: 0 10px; color: #173b60; background: #f5f8fa; border: 1px solid #d4dfe7; border-radius: 999px; font-size: 7.5px; font-weight: 750; cursor: pointer; transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
.legal-assistant-suggestions button:hover { color: #fff; background: #173b60; border-color: #173b60; }
.legal-assistant-composer { margin: 0; padding: 10px 12px; display: grid; grid-template-columns: minmax(0, 1fr) 39px; gap: 8px; background: #fff; border-top: 1px solid #e0e7ec; }
.legal-assistant-composer input { width: 100%; min-height: 39px; padding: 0 12px; color: #17344f; background: #f6f8fa; border: 1px solid #cfdbe4; border-radius: 9px; outline: none; font: 500 9px/1.3 inherit; transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
.legal-assistant-composer input:focus { background: #fff; border-color: #315f85; box-shadow: 0 0 0 3px rgba(49, 95, 133, .1); }
.legal-assistant-composer button { width: 39px; height: 39px; display: grid; place-items: center; color: #fff; background: #a62b30; border: 0; border-radius: 9px; box-shadow: 0 5px 13px rgba(166, 43, 48, .2); cursor: pointer; transition: background-color .18s ease, transform .18s ease; }
.legal-assistant-composer button:hover { background: #8e2429; transform: translateY(-1px); }
.legal-assistant-composer button svg { width: 17px; height: 17px; }
.legal-assistant-panel > footer { min-height: 34px; padding: 7px 13px; display: flex; align-items: center; gap: 7px; color: #778b9b; background: #f5f7f9; border-top: 1px solid #e0e7ec; font-size: 6.8px; line-height: 1.35; }
.legal-assistant-panel > footer svg { width: 13px; height: 13px; flex: 0 0 13px; color: #173b60; }
.legal-assistant-launcher { position: relative; width: 78px; height: 78px; padding: 0; display: grid; place-items: center; color: #fff; background: transparent; border: 0; border-radius: 25px; cursor: pointer; filter: drop-shadow(0 14px 18px rgba(7, 29, 53, .23)); transition: transform .22s ease, filter .22s ease, opacity .18s ease; }
.legal-assistant-launcher:hover { transform: translateY(-4px) scale(1.035); filter: drop-shadow(0 18px 23px rgba(7, 29, 53, .29)); }
.legal-assistant-launcher .legal-bot-avatar { width: 76px; height: 76px; }
.legal-launcher-pulse { display: none; }
.legal-assistant-launcher.is-visited .legal-launcher-pulse { animation: none; box-shadow: none; }
body.legal-assistant-open .legal-assistant-launcher { opacity: 0; pointer-events: none; transform: translateY(8px) scale(.95); }
@keyframes legalAssistantIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes legalMessageIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes legalTyping { 0%, 70%, 100% { transform: translateY(0); opacity: .5; } 35% { transform: translateY(-4px); opacity: 1; } }
@keyframes legalBotBlink { 0%, 44%, 48%, 100% { transform: scaleY(1); } 46% { transform: scaleY(.15); } }
@keyframes launcherPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.13); } }

@media screen and (max-width: 580px) {
  .legal-assistant { right: 12px; bottom: max(10px, env(safe-area-inset-bottom)); }
  .legal-assistant-panel { width: calc(100vw - 24px); height: min(480px, calc(100dvh - 20px)); max-height: calc(100dvh - 20px); border-radius: 15px; }
  .legal-assistant-header { min-height: 82px; padding: 13px; grid-template-columns: 48px minmax(0, 1fr) 32px; gap: 10px; }
  .legal-bot-avatar.is-large { width: 50px; height: 50px; }
  .legal-assistant-header h2 { font-size: 14px; }
  .legal-assistant-launcher { width: 68px; height: 68px; border-radius: 21px; }
  .legal-assistant-launcher .legal-bot-avatar { width: 66px; height: 66px; }
  .legal-assistant-conversation { padding-inline: 11px; }
  .legal-chat-message > div { max-width: 86%; }
}

@media print {
  html,
  body { background: #fff !important; }
  .topbar,
  .background-scene,
  .brand-row,
  .dossier-actions,
  #consultationView,
  #resultsView { display: none !important; }
  .app-shell { width: 100%; padding: 0; }
  .dossier-view { width: 100%; margin: 0; padding: 14mm; border: 0; border-radius: 0; box-shadow: none; }
  .process-step { opacity: 1; transform: none; }
  .detail-panel-content { max-height: none !important; opacity: 1 !important; }
  .detail-panel-action { display: none; }
  .proceeding-actions,
  .assisted-overlay,
  .pdf-overlay,
  .legal-assistant { display: none !important; }
  .proceeding-card { break-inside: avoid; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
