@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/estatico/fonts/montserrat-400.ttf") format("truetype");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/estatico/fonts/montserrat-600.ttf") format("truetype");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/estatico/fonts/montserrat-700.ttf") format("truetype");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/estatico/fonts/montserrat-800.ttf") format("truetype");
}

html { font-size: 75%; }

:root {
  color-scheme: light;
  --fondo: #f3f5f7;
  --tarjeta: #ffffff;
  --texto: #1c2430;
  --suave: #5c6b7a;
  --linea: #e2e8ee;
  --marca: #0f5f78;
  --ok: #1b7f4e;
  --ok-fondo: #e8f6ee;
  --malo: #b42318;
  --malo-fondo: #fdeceb;
  --pendiente: #9a6700;
  --pendiente-fondo: #fff6e0;
  --boton: #0f5f78;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
  background: var(--fondo);
  color: var(--texto);
  line-height: 1.45;
}

main {
  width: min(720px, calc(100% - 24px));
  margin: 0 auto;
  padding: 20px 0 40px;
}

h1, h2, h3, p { margin-top: 0; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 28px;
  background: #fff;
  color: #1c2430;
  border-bottom: 1px solid #e6edf5;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  position: sticky;
  top: 0;
  z-index: 5;
}

.topbar-marca { display: flex; align-items: center; gap: 12px; }
.topbar-logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  flex: none;
}
.topbar .app {
  display: block;
  color: #7b8794;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.topbar strong { font-size: 1.05rem; font-weight: 750; }

.topbar-acciones {
  display: flex;
  align-items: center;
  gap: 14px;
}

#actualizado {
  margin: 0;
  color: #7b8794;
  font-size: 0.82rem;
  text-align: right;
  white-space: nowrap;
}

.aviso-interruptor {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #1b1744;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.aviso-interruptor input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #1b1744;
}

.boton-actualizar {
  width: auto;
  margin: 0;
  background: #1b1744;
  color: white;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  white-space: nowrap;
}

.boton-actualizar:hover { background: #2c275f; }

.boton-salir {
  width: auto;
  margin: 0;
  background: transparent;
  color: #1b1744;
  border: 1px solid #d5dbe6;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.boton-salir:hover { background: #f4f6fb; }

.instalar {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 30;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(390px, calc(100% - 32px));
  padding: 16px 16px 14px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.16);
}

.instalar-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  flex: none;
}

.instalar-cuerpo { min-width: 0; flex: 1; }
.instalar-cuerpo strong { display: block; font-size: 1rem; }
.instalar-cuerpo p {
  margin: 4px 0 12px;
  color: #667085;
  font-size: 0.92rem;
}

.instalar-acciones {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

.instalar-despues,
.instalar-ahora,
.instalar-cerrar {
  width: auto;
  margin: 0;
}

.instalar-despues {
  background: transparent;
  color: #667085;
  padding: 8px 4px;
  font-weight: 650;
}

.instalar-ahora {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1b1744;
  color: white;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
}

.instalar-ahora svg { width: 16px; height: 16px; }

.instalar-cerrar {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  color: #98a2b3;
  font-size: 1.3rem;
  line-height: 1;
  padding: 0 4px;
}

.tarjeta, .contrato, .informe, .paso {
  background: var(--tarjeta);
  border: 1px solid var(--linea);
  border-radius: 16px;
  padding: 16px;
}

.ayuda, .suave { color: var(--suave); }

.login-pagina {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: #e7e9f2;
}

.login-tarjeta {
  width: min(920px, 100%);
  min-height: 540px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(24, 20, 70, 0.18);
}

.login-bienvenida {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 36px;
  background: #1B1B4B;
}

.marca-negativa {
  width: min(340px, 92%);
  height: auto;
}

.login-logo {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
}

.login-logo-mini {
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  object-fit: contain;
}

.login-saludo {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 2.7rem;
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.login-saludo strong {
  display: inline;
  font-size: 1em;
  font-weight: 800;
  text-transform: uppercase;
}

.login-form {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 64px 56px 28px;
  background:
    radial-gradient(circle at 8% 10%, rgba(90, 84, 160, 0.18) 0 16px, transparent 17px),
    radial-gradient(circle at 94% 8%, transparent 0 18px, rgba(27, 23, 68, 0.12) 19px 28px, transparent 29px),
    radial-gradient(circle at 88% 22%, rgba(27, 23, 68, 0.08) 0 10px, transparent 11px),
    white;
}

.login-form h1 {
  margin: 8px 0 6px;
  text-align: center;
  color: #2c275f;
  font-size: 2rem;
  font-weight: 650;
}

.login-sede {
  margin: 0 0 22px;
  text-align: center;
  color: #8d93a8;
  font-size: 0.92rem;
}

.login-form label {
  margin: 12px 0 6px;
  color: #8b90a3;
  font-size: 0.95rem;
  font-weight: 500;
}

.login-form input {
  border: 1px solid #d7dce8;
  border-radius: 8px;
  padding: 12px 14px;
}

.login-form input:focus {
  outline: 2px solid rgba(27, 23, 68, 0.25);
  border-color: #1b1744;
}

.login-form .error { margin-top: 14px; }

.login-form button {
  width: min(230px, 100%);
  margin: 26px auto 0;
  border-radius: 10px;
  background: #1b1744;
  padding: 12px 24px;
}

.login-confianza {
  margin: 16px 0 0;
  color: #5c6578;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

.login-form .login-enlace,
.privacidad .login-enlace {
  width: auto;
  margin: 6px auto 0;
  padding: 4px 8px;
  border-radius: 0;
  background: transparent;
  color: #1b1744;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dialogo {
  width: min(520px, calc(100% - 32px));
  border: 0;
  border-radius: 16px;
  padding: 28px 24px 22px;
  color: #1c2430;
  box-shadow: 0 24px 60px rgba(24, 20, 70, 0.28);
}

.dialogo::backdrop { background: rgba(26, 27, 75, 0.45); }

.dialogo h2 {
  margin: 0 0 12px;
  color: #1A1B4B;
  font-size: 1.35rem;
}

.dialogo p { margin: 0 0 12px; line-height: 1.55; }

.dialogo button {
  width: auto;
  margin: 8px 0 0;
  background: #1b1744;
}

.privacidad {
  min-height: 100vh;
  padding: 28px 16px 48px;
  background: #e7e9f2;
}

.privacidad article {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 28px 28px 36px;
  background: white;
  border-radius: 16px;
}

.privacidad h1 {
  margin: 0 0 6px;
  color: #1A1B4B;
  font-size: 1.8rem;
}

.privacidad-fecha {
  margin: 0 0 16px;
  color: #7b8794;
  font-size: 0.85rem;
}

.privacidad h2 {
  margin: 22px 0 8px;
  color: #1A1B4B;
  font-size: 1.05rem;
}

.privacidad p,
.privacidad li { line-height: 1.6; }

.privacidad a { color: #0f5f78; }

.privacidad .login-enlace {
  display: inline-block;
  margin: 0 0 16px;
  padding: 0;
}

@media (max-width: 760px) {
  .login-pagina {
    position: fixed;
    inset: 0;
    min-height: 0;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
  }

  .login-tarjeta {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .login-bienvenida { min-height: 0; padding: 14px 16px; }
  .marca-negativa { width: min(168px, 58%); }
  .login-logo-mini { width: 48px; height: 48px; margin-bottom: 0; }
  .login-form {
    min-height: 0;
    justify-content: center;
    padding: 16px 18px 14px;
    overflow: hidden;
  }
  .login-form h1 { font-size: 1.5rem; margin: 4px 0; }
  .login-form label { margin: 8px 0 4px; }
  .login-form input { font-size: 16px; padding: 11px 12px; }
  .login-form button[type="submit"] { width: 100%; min-height: 44px; margin-top: 14px; }
  .login-confianza { margin-top: 10px; font-size: 0.75rem; }
  .login-form .login-enlace { margin-top: 2px; font-size: 0.82rem; }

  body.en-tablero { overflow-x: hidden; }
  .topbar { padding: 12px 14px; gap: 10px; }
  .topbar-acciones { justify-content: flex-start; gap: 8px; }
  #actualizado { flex: 1 1 100%; white-space: normal; text-align: left; }
  .boton-actualizar, .boton-salir { min-height: 40px; padding: 8px 12px; }

  body.en-tablero main {
    width: 100%;
    max-width: 100%;
    padding: 0 0 88px;
    overflow-x: hidden;
  }
  .tablero { width: 100%; gap: 8px; }
  .kpis { grid-template-columns: 1fr; gap: 8px; }
  .kpi, .card {
    width: 100%;
    max-width: 100%;
    padding: 14px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .kpi-valor, .objeto, .card-informes td { overflow-wrap: anywhere; }
  .kpi-valor { font-size: 1.2rem; }
  .seguimiento-identidad { flex-wrap: wrap; }

  .card-informes thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .card-informes tr.fila {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e6edf5;
  }

  .card-informes tr.fila td {
    display: block;
    border: 0;
    padding: 0;
  }

  .card-informes tr.fila td::before {
    display: block;
    margin-bottom: 2px;
    color: #7b8794;
    font-size: 0.72rem;
    font-weight: 700;
  }

  .card-informes tr.fila td:nth-child(1)::before { content: "Pago"; }
  .card-informes tr.fila td:nth-child(2)::before { content: "Fecha"; }
  .card-informes tr.fila td:nth-child(3)::before { content: "Valor"; }
  .card-informes tr.fila td:nth-child(4)::before { content: "Estado"; }

  .card-informes tr.detalle td {
    display: block;
    border: 0;
    padding: 8px 0 4px;
  }

  .privacidad { padding: 16px 12px 32px; }
  .privacidad article { padding: 20px 16px 28px; }
  .dialogo { max-height: calc(100dvh - 32px); overflow: auto; }
  .instalar { left: 12px; right: 12px; width: auto; }
}

label { display: block; font-weight: 600; margin: 14px 0 6px; }

input, select, button {
  font: inherit;
  width: 100%;
  border-radius: 12px;
}

input, select {
  border: 1px solid #c5d0da;
  padding: 12px 14px;
  background: white;
}

button {
  border: 0;
  background: var(--boton);
  color: white;
  padding: 12px 14px;
  margin-top: 16px;
  font-weight: 700;
}

button:disabled { opacity: 0.6; }

.boton-texto {
  width: auto;
  margin: 0;
  background: transparent;
  color: white;
  padding: 8px 0;
  text-decoration: underline;
}

.error {
  background: var(--malo-fondo);
  color: var(--malo);
  padding: 10px 12px;
  border-radius: 12px;
}

.estado {
  font-size: 1.35rem;
  font-weight: 800;
  padding: 12px;
  border-radius: 12px;
}

.tono-ok { background: var(--ok-fondo); color: var(--ok); }
.tono-malo { background: var(--malo-fondo); color: var(--malo); }
.tono-pendiente { background: var(--pendiente-fondo); color: var(--pendiente); }

.barra {
  height: 10px;
  background: #e6edf2;
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0 14px;
}

.barra span {
  display: block;
  height: 100%;
  background: var(--ok);
}

.cifras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin: 0;
}

.cifras div { margin: 0; }
.cifras dt { color: var(--suave); font-size: 0.85rem; }
.cifras dd { margin: 0 0 8px; font-weight: 700; }

.linea-tiempo { list-style: none; padding: 0; margin: 12px 0 0; }
.paso { margin-top: 10px; }
.paso.actual { outline: 2px solid var(--marca); }
.paso h3 { margin-bottom: 6px; font-size: 1rem; }
.observacion { white-space: pre-line; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th, td {
  text-align: left;
  padding: 8px 4px;
  border-bottom: 1px solid var(--linea);
  vertical-align: top;
}

.fila { cursor: pointer; }
.fila:hover { background: #f7fafc; }

h2 { font-size: 1.15rem; margin: 18px 0 10px; }

body.en-tablero { background: #e7eef6; }

body.en-tablero main {
  width: auto;
  max-width: none;
  padding: 20px 28px 48px;
}

.vacio {
  background: white;
  border-radius: 16px;
  padding: 18px;
}

.tablero {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.kpis {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.kpi, .card, .kpis, .tablero { min-width: 0; }

.kpi, .card {
  background: white;
  border: 1px solid #e6edf5;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  padding: 16px 18px;
}

.kpi-etiqueta, .card-cabeza .suave {
  margin: 0;
  color: #7b8794;
  font-size: 0.82rem;
}

.kpi-valor {
  margin: 6px 0 0;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.kpi-linea {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.kpi-linea .kpi-valor { margin: 0; white-space: nowrap; }

.kpi-linea .dona {
  width: 1.7rem;
  height: 1.7rem;
  flex: none;
}

.dona-pista { stroke: #e6edf3; }
.dona-valor { stroke: #2e9b62; }

.card-cabeza h2 {
  margin: 0 0 2px;
  font-size: 1.02rem;
}

.barras {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 180px;
  margin-top: 18px;
}

.barra-mes {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 8px;
  color: #7b8794;
  font-size: 0.75rem;
}

.barra-pila {
  width: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 8px 8px 3px 3px;
  overflow: hidden;
  background: #eef3f8;
}

.barra-pila span { display: block; width: 100%; }
.seg-ok { background: #2e9b62; }
.seg-proceso { background: #e0a106; }
.seg-saldo { background: #d5deea; }

.leyenda {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: #526070;
  font-size: 0.82rem;
}

.leyenda li { display: flex; align-items: center; gap: 6px; }
.leyenda i { width: 10px; height: 10px; border-radius: 99px; display: block; }


.tabla-compacta th { color: #7b8794; font-size: 0.75rem; font-weight: 700; }

.pastilla {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
}

.seguimiento {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.seguimiento-identidad {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.seguimiento-numero {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 750;
}

.seguimiento-tipo {
  margin: 2px 0 0;
  color: #7b8794;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.seguimiento-cifras,
.seguimiento-ficha {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
}

.seguimiento-cifras div,
.seguimiento-ficha div {
  min-width: 0;
  background: #f4f7fb;
  border-radius: 12px;
  padding: 10px 12px;
}

.seguimiento-cifras dt,
.seguimiento-ficha dt {
  margin: 0;
  color: #7b8794;
  font-size: 0.72rem;
  font-weight: 700;
}

.seguimiento-cifras dd,
.seguimiento-ficha dd {
  margin: 3px 0 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.card-informes {
  min-width: 0;
  height: 100%;
}

.card-informes table { font-size: 0.82rem; }

.seguimiento .estado {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
}

.card-objeto {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.objeto {
  flex: 1;
  margin: 10px 0 0;
  text-align: justify;
  hyphens: auto;
  line-height: 1.6;
}

.card-ancho { grid-column: 1 / -1; }
.card-doble { grid-column: span 2; }

.cronologia {
  display: flex;
  align-items: flex-start;
  width: 100%;
  padding: 8px 0 4px;
}

.hito {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  background: transparent;
}

.hito + .hito { margin-left: -12px; }

.hito-icono {
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}

.hito-svg { width: 26px; height: 26px; }

.hito-flecha {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.4em 0 1.1em;
  color: white;
  font-weight: 800;
  font-size: clamp(0.68rem, 1vw, 0.85rem);
  letter-spacing: 0.03em;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 16px 50%);
}

.hito:first-child .hito-flecha {
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
  padding-left: 12px;
}

.hito.tono-ok,
.hito.tono-malo,
.hito.tono-pendiente { background: transparent; }
.hito.tono-ok { color: #2fbe86; }
.hito.tono-ok .hito-flecha { background: #2fbe86; }
.hito.tono-malo { color: #ff6d6d; }
.hito.tono-malo .hito-flecha { background: #ff6d6d; }
.hito.tono-pendiente { color: #3aa0c8; }
.hito.tono-pendiente .hito-flecha { background: #3aa0c8; }

.hito-responsable {
  margin: 12px 10px 0;
  color: currentColor;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.25;
}

.hito-detalle {
  margin: 4px 8px 0;
  color: #7b8794;
  font-size: 0.75rem;
}

.cronologia-total { margin: 14px 0 0; }

@media (max-width: 980px) {
  .tablero { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .card-ancho, .card-doble { grid-column: auto; }

  .cronologia {
    flex-direction: column;
    gap: 0;
  }

  .hito {
    z-index: auto !important;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 2px;
    align-items: start;
    flex: none;
    width: 100%;
    min-width: 0;
    text-align: left;
    padding: 0 0 18px;
  }

  .hito + .hito { margin-left: 0; }

  .hito:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: #d5dee8;
  }

  .hito-icono {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 40px;
    height: 40px;
    margin: 0;
  }

  .hito-flecha,
  .hito:first-child .hito-flecha {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    width: max-content;
    max-width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 6px 12px;
    border-radius: 8px;
    clip-path: none;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
  }

  .hito-responsable {
    grid-column: 2;
    margin: 6px 0 0;
    overflow-wrap: anywhere;
  }

  .hito-detalle {
    grid-column: 2;
    margin: 2px 0 0;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 1100px) {
  .topbar { align-items: flex-start; flex-wrap: wrap; }
  .topbar-acciones { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
  #actualizado { text-align: left; }
}

@media (max-width: 560px) {
  .kpis { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body.en-tablero { overflow-x: hidden; }

  body.en-tablero main {
    width: 100%;
    max-width: 100%;
    padding: 0 0 88px;
    overflow-x: hidden;
  }

  .tablero { width: 100%; max-width: 100%; gap: 8px; }
  .kpis { grid-template-columns: 1fr; gap: 8px; }

  .kpi, .card {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .topbar-acciones { justify-content: flex-start; }
}
