:root {
  --azul: #185fa5;
  --gris-borde: #d3d1c7;
  --texto: #2c2c2a;
  --texto-suave: #5f5e5a;
  --ok: #27500a;
  --error: #791f1f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--texto);
  background: #faf9f5;
  padding: 1rem;
}

.card {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--gris-borde);
  border-radius: 12px;
  padding: 1.5rem;
}

h1 {
  font-size: 1.3rem;
  margin-top: 0;
}

h2 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.hint {
  color: var(--texto-suave);
  font-size: 0.9rem;
}

label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

input,
select {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.6rem;
  border: 1px solid var(--gris-borde);
  border-radius: 8px;
  font-size: 1rem;
}

button {
  background: var(--azul);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--gris-borde);
}

section:last-child {
  border-bottom: none;
}

.fila-documento,
.fila-campo {
  margin-bottom: 1rem;
}

.fila-campo button {
  margin-top: 0.4rem;
}

.mensaje {
  font-size: 0.95rem;
  padding: 0.7rem;
  border-radius: 8px;
}

.mensaje.ok {
  background: #eaf3de;
  color: var(--ok);
}

.mensaje.error {
  background: #fcebeb;
  color: var(--error);
}

ul {
  padding-left: 1.2rem;
}

/* Estilos propios del panel del gestor */

.card.ancho {
  max-width: 760px;
}

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

th,
td {
  text-align: left;
  padding: 0.5rem;
  border-bottom: 1px solid var(--gris-borde);
}

.estado-listo {
  color: var(--ok);
  font-weight: 600;
}

.estado-esperando {
  color: var(--texto-suave);
}

.estado-discrepancia {
  color: #85510b;
  font-weight: 600;
}

.confianza-baja {
  background: #faeeda;
  border: 1px solid #ef9f27;
  border-radius: 6px;
  padding: 0.5rem;
}

.documento-visor img,
.documento-visor embed {
  max-width: 100%;
  border: 1px solid var(--gris-borde);
  border-radius: 8px;
}

.acciones {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.acciones .peligro {
  background: var(--error);
}

a.enlace-fila {
  color: var(--azul);
  text-decoration: none;
}
