/* WP Guard — hoja de estilos del panel.
   Claro por defecto, oscuro via prefers-color-scheme. Un solo acento. */

/* ------------------------------------------------------------- tokens */

:root {
  color-scheme: light;

  --fondo: #f7f8fb;
  --tarjeta: #ffffff;
  --sup2: #f1f2f7;
  --hover: rgba(17, 20, 40, 0.045);
  --borde: #e6e8f0;

  --texto1: #171a2b;
  --texto2: #4b5163;
  --texto3: #7a8094;

  --acento: #4f46e5;
  --acento-hover: #4338ca;
  --acento-suave: rgba(79, 70, 229, 0.09);
  --anillo: rgba(79, 70, 229, 0.25);

  --ok: #157347;
  --ok-fondo: rgba(22, 163, 74, 0.1);
  --aviso: #b45309;
  --aviso-fondo: rgba(217, 119, 6, 0.11);
  --error: #b91c1c;
  --error-fondo: rgba(220, 38, 38, 0.09);
  --error-fuerte: #dc2626;

  --sombra: 0 1px 2px rgba(16, 24, 40, 0.05);
  --sombra-flotante: 0 4px 12px rgba(16, 24, 40, 0.08);

  --tostada-fondo: #171a2b;
  --tostada-texto: #f5f6fa;

  --radio-control: 8px;
  --radio-tarjeta: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --fondo: #0e1015;
    --tarjeta: #161920;
    --sup2: #1c202a;
    --hover: rgba(255, 255, 255, 0.05);
    --borde: #262b37;

    --texto1: #f2f4f8;
    --texto2: #a6adbf;
    --texto3: #767d90;

    --acento: #7b74ff;
    --acento-hover: #918bff;
    --acento-suave: rgba(123, 116, 255, 0.14);
    --anillo: rgba(123, 116, 255, 0.35);

    --ok: #4ade80;
    --ok-fondo: rgba(74, 222, 128, 0.12);
    --aviso: #fbbf24;
    --aviso-fondo: rgba(251, 191, 36, 0.12);
    --error: #f87171;
    --error-fondo: rgba(248, 113, 113, 0.12);
    --error-fuerte: #ef4444;

    --sombra: 0 1px 2px rgba(0, 0, 0, 0.35);
    --sombra-flotante: 0 4px 14px rgba(0, 0, 0, 0.45);

    --tostada-fondo: #262b37;
    --tostada-texto: #f2f4f8;
  }
}

/* ------------------------------------------------------------- base */

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--texto1);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

::selection { background: var(--acento-suave); }

button { font: inherit; }

svg.icono { width: 18px; height: 18px; flex-shrink: 0; }
svg.icono-grande { width: 36px; height: 36px; color: var(--texto3); }

:is(a, button, input):focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--anillo);
  border-radius: var(--radio-control);
}

.oculto { display: none !important; }
.tenue { color: var(--texto3); }
.chico { font-size: 12.5px; }

/* ------------------------------------------------------------- marco */

.marco {
  display: flex;
  min-height: 100vh;
}

.lateral {
  width: 236px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px 14px;
  background: var(--sup2);
  border-right: 1px solid var(--borde);
}

.principal { flex: 1; min-width: 0; }

.principal-int {
  max-width: 960px;
  margin: 0 auto;
  padding: 36px 32px 72px;
}

/* ------------------------------------------------------------- lateral */

.marca {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  text-decoration: none;
}

.marca-icono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--acento-suave);
  color: var(--acento);
}

.marca-icono svg { width: 20px; height: 20px; }

.marca-texto {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--texto1);
  line-height: 1.2;
}

.marca-texto small {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--texto3);
  letter-spacing: 0;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radio-control);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--texto2);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}

.menu-item:hover { background: var(--hover); color: var(--texto1); }

.menu-item.activo {
  background: var(--acento-suave);
  color: var(--acento);
}

.menu-globo {
  margin-left: auto;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--acento);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.lateral-pie {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modo-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radio-control);
  font-size: 12.5px;
  color: var(--texto3);
  text-decoration: none;
  transition: background 0.12s;
}

.modo-chip:hover { background: var(--hover); color: var(--texto2); }

.punto {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--texto3);
  flex-shrink: 0;
}

.punto.ok { background: var(--ok); }

.boton-fantasma {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radio-control);
  background: transparent;
  color: var(--texto3);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.boton-fantasma:hover { background: var(--hover); color: var(--texto1); }

/* ------------------------------------------------------------- cabecera */

.cabecera {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.cabecera h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.cabecera h1.con-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cabecera-sub {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--texto3);
}

.cabecera-meta {
  font-size: 13px;
  color: var(--texto3);
  white-space: nowrap;
  padding-bottom: 3px;
}

.volver {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--texto3);
  text-decoration: none;
}

.volver:hover { color: var(--acento); }
.volver svg { width: 15px; height: 15px; }

/* ------------------------------------------------------------- bloques y tarjetas */

.bloque { margin-bottom: 32px; }

.bloque-cab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.bloque-cab h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.contador {
  font-size: 12px;
  font-weight: 500;
  color: var(--texto3);
  background: var(--sup2);
  border: 1px solid var(--borde);
  border-radius: 999px;
  padding: 2px 10px;
  font-variant-numeric: tabular-nums;
}

.tarjeta {
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: var(--radio-tarjeta);
  padding: 20px 22px;
  box-shadow: var(--sombra);
}

.tarjeta-tabla { padding: 6px 20px 12px; }

/* ------------------------------------------------------------- metricas */

.metricas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.metrica {
  display: block;
  padding: 16px 18px;
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: var(--radio-tarjeta);
  box-shadow: var(--sombra);
  text-decoration: none;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.metrica:hover { box-shadow: var(--sombra-flotante); }

.metrica-cab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: var(--texto3);
}

.metrica-cab svg { color: var(--texto3); width: 16px; height: 16px; }

.metrica strong {
  display: block;
  margin-top: 10px;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--texto1);
  font-variant-numeric: tabular-nums;
}

.metrica strong em {
  font-style: normal;
  font-size: 13px;
  font-weight: 400;
  color: var(--texto3);
  letter-spacing: 0;
}

.metrica-acento strong { color: var(--acento); }
.metrica-aviso strong { color: var(--aviso); }

/* ------------------------------------------------------------- interruptor de modo */

.modo { margin-bottom: 32px; }

.modo-fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.modo-texto h2 {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.modo-texto p {
  margin-top: 3px;
  font-size: 13.5px;
  color: var(--texto2);
  max-width: 52ch;
}

.modo-nota {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--borde);
  font-size: 12.5px;
  color: var(--texto3);
}

.interruptor {
  position: relative;
  width: 46px;
  height: 27px;
  padding: 0;
  border: 1px solid var(--borde);
  border-radius: 999px;
  background: var(--sup2);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s, border-color 0.18s;
}

.interruptor:focus-visible { border-radius: 999px; }

.interruptor-bola {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.3);
  transition: transform 0.18s ease;
}

.interruptor[aria-checked="true"] {
  background: var(--acento);
  border-color: var(--acento);
}

.interruptor[aria-checked="true"] .interruptor-bola { transform: translateX(19px); }

.interruptor:disabled { opacity: 0.6; cursor: default; }

/* ------------------------------------------------------------- botones */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--borde);
  border-radius: var(--radio-control);
  background: var(--tarjeta);
  color: var(--texto1);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s;
}

.boton:hover { background: var(--sup2); }

.boton-primario {
  background: var(--acento);
  border-color: var(--acento);
  color: #fff;
}

.boton-primario:hover { background: var(--acento-hover); border-color: var(--acento-hover); }

.boton:disabled { opacity: 0.55; cursor: default; pointer-events: none; }

.boton-ancho { width: 100%; }

.boton svg { width: 15px; height: 15px; }

.enlace {
  font-size: 13px;
  font-weight: 500;
  color: var(--acento);
  text-decoration: none;
}

.enlace:hover { text-decoration: underline; }

.enlace-fuerte {
  font-weight: 500;
  color: var(--texto1);
  text-decoration: none;
}

.enlace-fuerte:hover { color: var(--acento); }

/* ------------------------------------------------------------- badges */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.5;
}

.badge .punto { background: currentColor; width: 6px; height: 6px; }

/* estados de web */
.est-limpia { background: var(--ok-fondo); color: var(--ok); }
.est-sospechosa { background: var(--aviso-fondo); color: var(--aviso); }
.est-infectada { background: var(--error-fondo); color: var(--error); }
.est-en_limpieza { background: var(--acento-suave); color: var(--acento); }
.est-desconocido { background: var(--sup2); color: var(--texto3); }

/* severidad */
.sev-baja { background: var(--sup2); color: var(--texto2); }
.sev-media { background: var(--aviso-fondo); color: var(--aviso); }
.sev-alta { background: var(--error-fondo); color: var(--error); }
.sev-critica { background: var(--error-fuerte); color: #fff; }

/* situacion del hallazgo */
.st-nuevo { background: var(--acento-suave); color: var(--acento); }
.st-pendiente_aprobacion { background: var(--aviso-fondo); color: var(--aviso); }
.st-aprobado { background: var(--acento-suave); color: var(--acento); }
.st-rechazado { background: var(--sup2); color: var(--texto3); }
.st-en_cuarentena { background: var(--acento-suave); color: var(--acento); }
.st-resuelto { background: var(--ok-fondo); color: var(--ok); }
.st-ignorado { background: var(--sup2); color: var(--texto3); }

.badge-num {
  display: inline-block;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--aviso-fondo);
  color: var(--aviso);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------- tablas */

.tabla-envoltorio { overflow-x: auto; }

.tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.tabla th {
  padding: 12px 12px 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  color: var(--texto3);
}

.tabla td {
  padding: 12px;
  border-top: 1px solid var(--borde);
  vertical-align: middle;
}

.tabla tbody tr { transition: background 0.1s; }
.tabla tbody tr:hover { background: var(--hover); }
.tabla tbody tr#sin-resultados:hover { background: transparent; }

.tabla .num { text-align: right; font-variant-numeric: tabular-nums; }
.tabla th.num { text-align: right; }

.celda-icono {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.celda-icono svg { color: var(--texto3); width: 16px; height: 16px; }

.vacio-mini {
  text-align: center;
  color: var(--texto3);
  padding: 28px 12px;
}

/* ------------------------------------------------------------- barra de herramientas */

.barra-herramientas {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.buscador {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.buscador svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--texto3);
  pointer-events: none;
}

.buscador .campo { padding-left: 34px; }

/* ------------------------------------------------------------- campos */

.campo {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--borde);
  border-radius: var(--radio-control);
  background: var(--tarjeta);
  color: var(--texto1);
  font-size: 13.5px;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.campo::placeholder { color: var(--texto3); }

.campo:focus {
  outline: none;
  border-color: var(--acento);
  box-shadow: 0 0 0 3px var(--anillo);
}

.campo-etiqueta {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--texto2);
  text-align: left;
}

/* ------------------------------------------------------------- hallazgos */

.lista-hallazgos {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hallazgo {
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: var(--radio-tarjeta);
  padding: 16px 18px;
  box-shadow: var(--sombra);
}

.hallazgo-cab {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.hallazgo-cab h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hallazgo-desc {
  margin-top: 2px;
  font-size: 13px;
  color: var(--texto3);
  max-width: 60ch;
}

.hallazgo-badges {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hallazgo-detalle {
  margin-top: 8px;
  font-size: 13px;
  color: var(--texto2);
}

.hallazgo-pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.acciones { display: flex; gap: 8px; }

.ruta {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 8px;
  border: 1px solid var(--borde);
  border-radius: 6px;
  background: var(--sup2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--texto2);
  word-break: break-all;
}

.ruta-chica { margin-top: 0; margin-left: 6px; font-size: 11.5px; padding: 1px 6px; }

/* ------------------------------------------------------------- aprobaciones */

.lista-pendientes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pendiente {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: opacity 0.22s, transform 0.22s;
}

.pendiente.saliendo { opacity: 0; transform: translateX(10px); }

.pendiente-info { min-width: 0; }

.pendiente-cab {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.pendiente-info h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pendiente-info p { margin-top: 2px; font-size: 13px; max-width: 60ch; }

.pendiente-info .ruta { margin-top: 8px; margin-bottom: 6px; }

.pendiente-info .chico { display: block; margin-top: 4px; }

.pendiente-acciones {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

/* ------------------------------------------------------------- historial */

.historial {
  list-style: none;
  margin: 0;
  padding: 0;
}

.historial li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
}

.historial li + li { border-top: 1px solid var(--borde); }

.historial-punto {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acento-suave);
  border: 2px solid var(--acento);
  flex-shrink: 0;
  margin-top: 6px;
}

.historial-texto { min-width: 0; font-size: 13.5px; }
.historial-texto strong { font-weight: 600; }
.historial-texto .chico { margin-top: 2px; }

/* ------------------------------------------------------------- estados vacios */

.vacio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 48px 24px;
}

.vacio h3 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--texto2);
  margin-top: 8px;
}

.vacio p {
  font-size: 13px;
  color: var(--texto3);
  max-width: 44ch;
}

.vacio-compacto { padding: 24px; }

/* ------------------------------------------------------------- listas claras */

.lista-clara {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lista-clara li {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: 13.5px;
  color: var(--texto2);
}

.lista-clara li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acento);
  opacity: 0.6;
}

.lista-clara li + li { border-top: 1px solid var(--borde); }

.sesion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------- portada (entrar) */

.portada {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  background: var(--fondo);
}

.portada-caja {
  width: 100%;
  max-width: 380px;
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: 16px;
  box-shadow: var(--sombra-flotante);
  padding: 36px 32px;
  text-align: center;
}

.portada-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--acento-suave);
  color: var(--acento);
  margin-bottom: 14px;
}

.portada-logo svg { width: 26px; height: 26px; }

.portada-caja h1 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.portada-sub {
  margin-top: 4px;
  margin-bottom: 24px;
  font-size: 13.5px;
  color: var(--texto3);
}

.portada-form { text-align: left; }

.portada-form .campo { height: 40px; margin-bottom: 14px; }

.alerta {
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: var(--radio-control);
  background: var(--error-fondo);
  color: var(--error);
  font-size: 13px;
  text-align: left;
}

.portada-pie {
  font-size: 12.5px;
  color: var(--texto3);
}

/* ------------------------------------------------------------- tostadas */

.tostadas {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 50;
}

.tostada {
  max-width: 340px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--tostada-fondo);
  color: var(--tostada-texto);
  font-size: 13.5px;
  box-shadow: var(--sombra-flotante);
  animation: tostada-entra 0.22s ease;
  transition: opacity 0.4s;
}

.tostada.error { box-shadow: var(--sombra-flotante), inset 3px 0 0 var(--error-fuerte); }

.tostada.saliendo { opacity: 0; }

@keyframes tostada-entra {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------- movil */

@media (max-width: 840px) {
  .marco { flex-direction: column; }

  .lateral {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--borde);
    overflow-x: auto;
  }

  .marca { padding: 0; }
  .marca-texto small { display: none; }

  .menu {
    flex-direction: row;
    gap: 2px;
    flex: initial;
    margin-left: 8px;
  }

  .menu-item { padding: 8px; }
  .menu-item > span:not(.menu-globo) { display: none; }
  .menu-globo { margin-left: 4px; }

  .lateral-pie {
    flex-direction: row;
    align-items: center;
    margin-left: auto;
  }

  .modo-chip span:not(.punto) { display: none; }
  .boton-fantasma span { display: none; }

  .principal-int { padding: 20px 16px 56px; }

  .cabecera { flex-direction: column; align-items: flex-start; gap: 6px; }
  .cabecera-meta { padding-bottom: 0; }

  .modo-fila { align-items: flex-start; }

  .pendiente { flex-direction: column; align-items: stretch; gap: 14px; }
  .pendiente-acciones { flex-direction: row; }
  .pendiente-acciones .boton { flex: 1; }

  .hallazgo-cab { flex-direction: column; gap: 8px; }
  .hallazgo-badges { justify-content: flex-start; }
  .hallazgo-pie { flex-direction: column; align-items: flex-start; }
  .acciones { width: 100%; }
  .acciones .boton { flex: 1; }

  .barra-herramientas { flex-direction: column; align-items: stretch; gap: 8px; }
  .buscador { max-width: none; }
}
