:root {
  --govco: #0943B5;
  --azul: #3366CC;
  --azul-claro: #3B76FB;
  --azul-oscuro: #004884;
  --azul-tinta: #0B2A5B;
  --texto: #2E2E2E;
  --texto-2: #5C5C5C;
  --borde: #D9DEE5;
  --fondo: #F2F5F9;
  --blanco: #FFFFFF;
  --rojo: #A80521;
  --rojo-bg: #FDECEF;
  --verde: #068460;
  --verde-bg: #E6F5EF;
  --ambar: #8A5A00;
  --ambar-bg: #FFF5DB;
  --radio: 10px;
  --sombra: 0 1px 2px rgba(11, 42, 91, .06), 0 8px 24px rgba(11, 42, 91, .08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Work Sans", "Nunito Sans", Verdana, Geneva, sans-serif;
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.5;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: #005DCA; }
a:hover { color: var(--azul-oscuro); }
:focus-visible { outline: 3px solid #FFAB00; outline-offset: 2px; }

.container { width: 100%; max-width: 1232px; margin: 0 auto; padding: 0 16px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--azul-oscuro); color: #fff;
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* GOV.CO */
.govco-bar { background: var(--govco); height: 48px; display: flex; align-items: center; }
.govco-bar .container { display: flex; align-items: center; }
.govco-logo { height: 24px; width: auto; }

/* Encabezado */
.site-header { background: var(--blanco); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.header-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #434343; min-width: 0; }
.escudo { width: 80px; height: 80px; object-fit: contain; flex: none; }
.divider { width: 1px; height: 52px; background: #000; opacity: .7; flex: none; }
.header-name { font-family: "Nunito Sans", sans-serif; font-size: 20px; line-height: 1.25; color: #434343; }
.header-name span { font-size: 16px; color: var(--texto-2); }
.header-dep { text-align: right; border-left: 4px solid var(--azul-claro); padding-left: 14px; }
.dep-label { display: block; font-family: "Nunito Sans", sans-serif; font-weight: 700; color: var(--azul-oscuro); font-size: 16px; }
.dep-sub { display: block; font-size: 13px; color: var(--texto-2); }

.breadcrumb-bar { background: #F6F8F9; border-top: 1px solid #E6EAEE; border-bottom: 2px solid var(--azul); }
.breadcrumb { list-style: none; margin: 0; padding: 12px 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--texto-2); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: #9AA4B2; }
.breadcrumb a { color: #005DCA; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--texto); font-weight: 600; }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(59,118,251,.35), transparent 45%),
    linear-gradient(120deg, var(--azul-tinta) 0%, var(--govco) 60%, var(--azul) 100%);
  color: #fff; padding: 44px 0 96px;
}
.hero-kicker {
  display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px;
  background: rgba(255,255,255,.14); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.hero h1 { font-family: "Nunito Sans", sans-serif; font-weight: 800; font-size: clamp(26px, 4vw, 38px); line-height: 1.15; margin: 0 0 12px; }
.hero-text { margin: 0; max-width: 620px; font-size: 17px; color: #E3ECFF; }

/* Layout */
.layout {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px;
  margin-top: -64px; padding-bottom: 48px;
}
.resultado { grid-column: 1 / -1; }
.resultado:empty { display: none; }

.card { background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra); border: 1px solid #E3E8EF; }
.card-form { padding: 28px; border-top: 5px solid var(--azul-claro); }
.card-info { padding: 24px; }
.card-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: #E8F0FF; color: var(--govco); display: grid; place-items: center; flex: none; }
.card h2 { font-family: "Nunito Sans", sans-serif; font-size: 21px; margin: 0 0 2px; color: var(--azul-tinta); }
.card-head p { margin: 0; font-size: 14px; color: var(--texto-2); }
.req { color: var(--rojo); }

/* Formulario */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--azul-tinta); }
.field input[type=text], .field select {
  width: 100%; height: 48px; border: 1px solid #B9C3D0; border-radius: 8px; padding: 0 14px;
  font: inherit; font-size: 17px; color: var(--texto); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230943B5' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.field input[type=text]:focus, .field select:focus { outline: none; border-color: var(--azul-claro); box-shadow: 0 0 0 4px rgba(59,118,251,.2); }
.field input[aria-invalid=true] { border-color: var(--rojo); }
.help { display: block; margin-top: 6px; font-size: 13px; color: var(--texto-2); }
.error { display: block; margin-top: 6px; font-size: 13px; color: var(--rojo); font-weight: 600; }
.field-check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 6px; }
.field-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--govco); flex: none; }
.field-check label { font-weight: 400; font-size: 14px; color: var(--texto-2); margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; transition: background .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--govco); color: #fff; width: 100%; margin-top: 16px; }
.btn-primary:hover { background: var(--azul-oscuro); }
.btn-primary[disabled] { background: #7F95C4; cursor: progress; }
.btn-secondary { background: #fff; color: var(--govco); border: 2px solid var(--govco); height: 44px; padding: 0 20px; font-size: 15px; }
.btn-secondary:hover { background: #EEF3FF; color: var(--azul-oscuro); }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: giro .8s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }

/* Info */
.card-info h2 { margin-bottom: 14px; }
.info-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.info-list li { padding-left: 16px; border-left: 3px solid #C9D8FA; font-size: 14px; color: var(--texto-2); }
.info-list strong { display: block; color: var(--azul-tinta); font-size: 15px; }
.contact { background: #F4F7FC; border-radius: 8px; padding: 14px 16px; font-size: 14px; color: var(--texto-2); }
.contact p { margin: 0 0 8px; }
.contact p:last-child { margin: 0; }
.contact-title { font-weight: 700; color: var(--azul-tinta) !important; }

/* Resultado */
.res-card { padding: 0; overflow: hidden; }
.res-banner { display: flex; gap: 16px; align-items: flex-start; padding: 22px 28px; }
.res-banner .ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; }
.res-banner h2 { margin: 0 0 4px; }
.res-banner p { margin: 0; color: var(--texto-2); }
.res-mora .res-banner { background: var(--rojo-bg); border-bottom: 1px solid #F5C6CF; }
.res-mora .ico { background: var(--rojo); }
.res-mora h2 { color: var(--rojo); }
.res-ok .res-banner { background: var(--verde-bg); border-bottom: 1px solid #BFE3D4; }
.res-ok .ico { background: var(--verde); }
.res-ok h2 { color: var(--verde); }
.res-error .res-banner { background: var(--ambar-bg); }
.res-error .ico { background: var(--ambar); }
.res-error h2 { color: var(--ambar); }

.res-body { padding: 24px 28px 28px; }
.res-note { margin: 16px 0 0; padding: 12px 14px; border-left: 3px solid var(--azul-claro); background: #F4F7FC; font-size: 13.5px; color: var(--texto-2); border-radius: 0 8px 8px 0; }
.res-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.res-actions .btn-secondary { height: 40px; padding: 0 18px; font-size: 14px; }
.res-footer { font-size: 11.5px; color: #7A8494; margin: 12px 0 0; line-height: 1.5; }

/* =========================================================
   Estado de cuenta (resultado) — Alternativa A "Institucional"
   ========================================================= */
.resultado { width: 100%; }
.resultado:focus { outline: none; }
.doc { overflow: hidden; }
.doc-head {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 22px 16px; color: #fff; position: relative;
  background: linear-gradient(120deg, var(--azul-tinta) 0%, var(--govco) 75%, var(--azul) 100%);
}
.doc-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,.55), rgba(255,255,255,.15));
}
.doc-entidad { display: flex; align-items: center; gap: 12px; min-width: 0; }
.doc-escudo { width: 42px; height: 42px; flex: none; background: #fff; border-radius: 50%; padding: 3px; object-fit: contain; }
.doc-org { margin: 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #C9D8FF; font-weight: 600; }
.doc .doc-titulo { margin: 1px 0; font-family: "Nunito Sans", sans-serif; font-weight: 800; font-size: 18px; color: #fff !important; line-height: 1.2; }
.doc-fecha { margin: 0; font-size: 12px; color: #D6E2FF; }

.sello {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px;
  font-weight: 700; font-size: 12.5px; letter-spacing: .03em; text-transform: uppercase; background: #fff; flex: none;
}
.sello .punto { width: 8px; height: 8px; border-radius: 50%; }
.sello-mora { color: var(--azul-tinta); }
.sello-mora .punto { background: var(--azul-claro); box-shadow: 0 0 0 3px rgba(59,118,251,.2); }
.sello-ok { color: var(--azul-tinta); }
.sello-ok .punto { background: var(--azul-claro); box-shadow: 0 0 0 3px rgba(59,118,251,.2); }

.doc-body { padding: 18px 22px 20px; }

.ficha {
  display: grid; grid-template-columns: 2fr 1fr; margin: 0 0 14px;
  border: 1px solid #E3E8EF; border-radius: 8px; overflow: hidden; background: #FAFBFD;
}
.ficha > div { padding: 9px 14px; min-width: 0; }
.ficha > div + div { border-left: 1px solid #E3E8EF; }
.ficha dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--texto-2); font-weight: 600; }
.ficha dd { margin: 1px 0 0; font-size: 14.5px; font-weight: 700; color: var(--azul-tinta); overflow-wrap: anywhere; }

.kpis { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; margin-bottom: 18px; }
.kpi.kpi-predios { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.kpi-predios .kpi-label, .kpi-predios .kpi-nota { display: block; text-align: left; }
.kpi-num { font-family: "Nunito Sans", sans-serif; font-weight: 800; font-size: 40px; line-height: 1; color: var(--govco); font-variant-numeric: tabular-nums; padding-right: 6px; }
.kpi {
  border: 1px solid #E3E8EF; border-radius: 8px; padding: 10px 14px; background: #fff;
  display: flex; flex-direction: column; justify-content: center; gap: 0; position: relative; overflow: hidden; min-width: 0;
}
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #C9D8FA; }
.kpi-label { font-size: 11px; color: var(--texto-2); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.kpi-valor { font-family: "Nunito Sans", sans-serif; font-weight: 800; font-size: 20px; color: var(--azul-tinta); font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 1.25; }
.kpi-nota { font-size: 11.5px; color: var(--texto-2); }
.kpi-nota.sube { color: var(--govco); font-weight: 600; }
.kpi-total { background: linear-gradient(120deg, var(--azul-tinta), var(--govco)); border-color: transparent; }
.kpi-total::before { background: rgba(255,255,255,.35); }
.kpi-total .kpi-label, .kpi-total .kpi-nota { color: #D6E2FF; }
.kpi-total .kpi-valor { color: #fff; font-size: 25px; }

/* Banda de resumen (saldo | predios | corte) */
.banda {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; margin-bottom: 18px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(120deg, var(--azul-tinta) 0%, var(--govco) 100%); color: #fff;
  box-shadow: 0 6px 18px rgba(9, 67, 181, .18);
}
.banda-item { padding: 14px clamp(14px, 1.8vw, 20px); display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; }
.banda-item + .banda-item { border-left: 1px solid rgba(255,255,255,.18); }
.banda-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: #C9D8FF; }
.banda-nota { font-size: 12px; color: #B9CBF5; }
.banda-valor { font-family: "Nunito Sans", sans-serif; font-weight: 800; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.banda-num { font-family: "Nunito Sans", sans-serif; font-weight: 800; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; }
.banda-fecha { font-family: "Nunito Sans", sans-serif; font-weight: 800; font-size: clamp(15px, 1.7vw, 19px); white-space: nowrap; line-height: 1.5; }

.detalle-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.detalle-head h3, .pasos h3 { margin: 0; font-family: "Nunito Sans", sans-serif; font-size: 15px; color: var(--azul-tinta); }
.detalle-head span { font-size: 12px; color: var(--texto-2); }

.tabla-wrap { border: 1px solid #DCE3EC; border-radius: 8px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid #EEF1F5; white-space: nowrap; vertical-align: middle; }
thead th { background: #F1F4F9; color: var(--azul-tinta); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid #DCE3EC; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:hover td { background: #F5F8FF; }
tfoot td { background: #F7F9FC; font-weight: 700; color: var(--azul-tinta); border-bottom: 0; border-top: 1px solid #DCE3EC; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
tfoot td.num { text-transform: none; letter-spacing: 0; font-size: 14px; }
tfoot td b { color: var(--azul-tinta); font-size: 15px; }
.th-n { width: 40px; }
.n-badge {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: #E8F0FF; color: var(--govco); font-weight: 700; font-size: 11.5px;
}
.predio-num { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; letter-spacing: .01em; color: #3A4250; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-mora { background: #E8F0FF; color: var(--govco); }
.var { color: var(--texto-2); font-size: 13px; }
.td-saldo b { color: var(--azul-tinta); }

.aviso { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 8px; }
.aviso-ok { background: #F1F6FF; border: 1px solid #C9D8FA; }
.aviso-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; background: var(--govco); }
.aviso-titulo { margin: 0 0 2px !important; font-weight: 700; color: var(--azul-tinta); font-size: 15px; }
.aviso p { margin: 0; color: var(--texto-2); font-size: 14px; }

.pasos { margin-top: 18px; }
.pasos ol { list-style: none; counter-reset: paso; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pasos li {
  counter-increment: paso; position: relative; padding: 10px 12px 10px 44px;
  background: #F6F8FB; border: 1px solid #E8ECF2; border-radius: 8px; font-size: 12.5px; line-height: 1.4;
}
.pasos li::before {
  content: counter(paso); position: absolute; left: 12px; top: 11px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--govco); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px;
}
.pasos li b { display: block; color: var(--azul-tinta); font-size: 13px; }
.pasos li span { color: var(--texto-2); }
.pasos-contacto { margin: 10px 0 0; font-size: 12.5px; color: var(--texto-2); }


/* Pie */
.site-footer { background: #fff; }
.footer-main { background: var(--azul-oscuro); color: #fff; padding: 32px 0; font-size: 14px; }
.footer-main a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-grid p { margin: 0 0 10px; color: #E1EAF6; }
.footer-title { font-family: "Nunito Sans", sans-serif; font-weight: 800; font-size: 18px; color: #fff !important; }
.footer-gov { background: var(--govco); padding: 18px 0; }
.footer-gov-inner { display: flex; align-items: center; gap: 18px; }
.co-logo { height: 46px; width: auto; }
.footer-gov .sep { width: 1px; height: 36px; background: rgba(255,255,255,.6); }

/* Responsive */
@media screen and (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .header-dep { display: none; }
}
@media screen and (max-width: 640px) {
  .escudo { width: 48px; height: 48px; }
  .divider { height: 34px; }
  .header-name { font-size: 16px; }
  .header-name span { font-size: 14px; }
  .hero { padding: 32px 0 84px; }
  .hero h1 br { display: none; }
  .card-form, .card-info { padding: 20px; }
  .res-banner, .res-body { padding-left: 18px; padding-right: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .res-actions .btn { flex: 1 1 100%; }

  .doc-head { padding: 14px 16px; }
  .doc-escudo { width: 36px; height: 36px; }
  .doc .doc-titulo { font-size: 15.5px; }
  .doc-org { font-size: 10px; }
  .doc-head .sello { font-size: 11px; padding: 4px 10px; }
  .doc-body { padding: 14px 16px 18px; }
  .ficha { grid-template-columns: 1fr; }
  .ficha > div + div { border-left: 0 !important; border-top: 1px solid #E3E8EF; }
  .ficha > div + div + div { border-left: 1px solid #E3E8EF; }
  .ficha > div:nth-child(2) { border-left: 0; }
  .kpis { grid-template-columns: 1fr; gap: 8px; margin-bottom: 14px; }
  .banda { grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
  .banda-saldo { grid-column: 1 / -1; border-bottom: 1px solid rgba(255,255,255,.18); }
  .banda-item { padding: 12px 16px; }
  .banda-item + .banda-item { border-left: 0; }
  .banda-item:last-child { border-left: 1px solid rgba(255,255,255,.18); }
  .banda-valor { font-size: 26px; }
  .banda-num { font-size: 24px; }
  .banda-fecha { font-size: 16px; line-height: 1.4; white-space: normal; }
  .kpi-num { font-size: 32px; }
  .kpi-total { grid-column: 1 / -1; order: -1; padding: 12px 14px; }
  .kpi-valor { font-size: 17px; }
  .kpi-total .kpi-valor { font-size: 24px; }
  .pasos ol { grid-template-columns: 1fr; gap: 8px; }
}

/* Tabla -> tarjetas por predio en pantallas angostas */
@media screen and (max-width: 760px) {
  .tabla-wrap { overflow: visible; border: 0 !important; border-radius: 0; }
  .tabla-wrap table, .tabla-wrap tbody, .tabla-wrap tfoot, .tabla-wrap tr, .tabla-wrap td { display: block; width: 100%; }
  .tabla-wrap thead { display: none; }
  .tabla-wrap tbody tr {
    border: 1px solid #DCE3EC; border-radius: 10px; margin-bottom: 10px; overflow: hidden;
    background: #fff; box-shadow: 0 1px 2px rgba(11, 42, 91, .05);
  }
  .tabla-wrap tbody tr:hover td { background: transparent; }
  .tabla-wrap td {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 8px 14px; white-space: normal; text-align: right; border-bottom: 1px solid #EEF1F5;
  }
  .tabla-wrap tbody tr td:last-child { border-bottom: 0; }
  .tabla-wrap td[data-label]::before {
    content: attr(data-label); flex: 0 1 auto;
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
    color: var(--texto-2); text-align: left;
  }
  .tabla-wrap td.td-n {
    justify-content: flex-start; background: #F3F6FB !important; border-bottom: 1px solid #DCE3EC;
    font-family: "Nunito Sans", sans-serif; font-weight: 800; color: var(--azul-tinta); font-size: 14px;
  }
  .tabla-wrap td.td-predio { flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
  .tabla-wrap .predio-num { word-break: break-all; font-size: 14px; }
  .tabla-wrap td.td-saldo { background: #F3F7FF !important; }
  .tabla-wrap td.td-saldo b { font-size: 16px; }
  .tabla-wrap tfoot tr { display: flex; justify-content: space-between; align-items: center; border-radius: 10px; overflow: hidden; border: 1px solid #DCE3EC; background: #F7F9FC; }
  .tabla-wrap tfoot td { width: auto !important; background: transparent; }
  .tabla-wrap tfoot td { display: none; }
  .tabla-wrap tfoot td:first-child, .tabla-wrap tfoot td:last-child { display: flex; }
  .tabla-wrap tfoot td:last-child { justify-content: flex-end; }
  .solo-movil { display: inline; }
  .tabla-wrap .n-badge { display: none; }
  .pasos ol { grid-template-columns: 1fr; gap: 8px; }
}
@media print, (min-width: 761px) {
  .solo-movil { display: none; }
}

/* Impresión: estado de cuenta en una sola hoja carta, con tabla */
@page { size: letter portrait; margin: 0; }
@media print {
  html, body { background: #fff !important; }
  body { padding: 12mm 13mm; font-size: 12px; }
  .govco-bar, .site-header, .breadcrumb-bar, .hero, .card-form, .card-info, .site-footer,
  .res-actions, .skip-link { display: none !important; }
  main, .container, .layout { margin: 0 !important; padding: 0 !important; max-width: none !important; display: block; }
  .resultado { max-width: none; }
  .card, .doc { box-shadow: none !important; border: 1px solid #C9D2DE; border-radius: 8px; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  .doc-head { padding: 12px 18px 13px; }
  .doc-escudo { width: 40px; height: 40px; }
  .doc .doc-titulo { font-size: 17px; }
  .doc-body { padding: 14px 18px 14px; }
  .ficha { margin-bottom: 12px; }
  .ficha > div { padding: 7px 12px; }
  .banda { box-shadow: none; margin-bottom: 14px; }
  .banda-item { padding: 10px 16px; }
  .banda-valor, .banda-num { font-size: 22px; }
  .banda-fecha { font-size: 16px; }
  th, td { padding: 7px 10px; }
  tbody tr:hover td { background: transparent; }
  .pasos { margin-top: 14px; break-inside: avoid; }
  .pasos ol { gap: 8px; }
  .pasos li { padding: 8px 10px 8px 38px; font-size: 11px; }
  .pasos li::before { left: 10px; top: 9px; width: 20px; height: 20px; font-size: 11px; }
  .pasos li b { font-size: 11.5px; }
  .res-note { font-size: 11px; padding: 8px 12px; margin-top: 12px; }
  .res-footer { font-size: 10px; margin-top: 10px; }
  .doc, .tabla-wrap, .banda, .ficha { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}

/* Verificación anti-robots: solo ocupa espacio si Cloudflare pide interacción */
.turnstile { margin-top: 12px; display: flex; justify-content: center; }
.turnstile:empty { margin-top: 0; }
.aviso-verif { margin: 8px 0 0; text-align: center; font-size: 13px; font-weight: 600; color: var(--govco); }
