:root {
  --fondo: #f4f6f9;
  --tarjeta: #ffffff;
  --texto: #14213d;
  --suave: #5b6478;
  --borde: #d5dae3;
  --marino: #0b2a4a;
  --acento: #e8791f;
  --ok: #17703a;
  --error: #b3261e;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #0d1420;
    --tarjeta: #162133;
    --texto: #e7ecf4;
    --suave: #a3adbf;
    --borde: #2b3a52;
    --marino: #9cc3ef;
    --acento: #f0943f;
    --ok: #5fcf8a;
    --error: #ff8a80;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font: 16px/1.5 "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}
.barra {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 3px solid var(--acento);
  background: var(--tarjeta);
}
.marca { font-weight: 700; font-size: 1.2rem; color: var(--marino); margin-right: auto; }
.quien { color: var(--suave); font-size: 0.9rem; overflow-wrap: anywhere; }
main { max-width: 52rem; margin: 0 auto; padding: 2rem 1rem; display: grid; gap: 1.5rem; justify-items: center; }
.tarjeta {
  width: 100%; max-width: 26rem;
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: 12px;
  padding: 1.6rem;
}
.tarjeta.ancha { max-width: 52rem; }
h1 { font-size: 1.4rem; margin: 0 0 0.4rem; }
h2 { font-size: 1.15rem; margin: 0 0 1rem; }
.ayuda { color: var(--suave); margin: 0 0 1rem; font-size: 0.92rem; overflow-wrap: anywhere; }
form { display: grid; gap: 0.5rem; }
label { font-weight: 600; font-size: 0.92rem; }
input {
  font: inherit; padding: 0.65rem 0.75rem;
  border: 1px solid var(--borde); border-radius: 8px;
  background: var(--fondo); color: var(--texto);
}
input:focus-visible, button:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; }
button {
  font: inherit; font-weight: 600; cursor: pointer;
  padding: 0.7rem 1rem; margin-top: 0.4rem;
  border: 0; border-radius: 8px;
  background: var(--marino); color: var(--tarjeta);
}
button:disabled { opacity: 0.55; cursor: wait; }
button.enlace { background: none; color: var(--marino); padding: 0.4rem 0; text-decoration: underline; font-weight: 500; }
button.chico { padding: 0.35rem 0.7rem; margin: 0.15rem; font-size: 0.85rem; }
.pasos { color: var(--suave); padding-left: 1.2rem; margin: 1.2rem 0 0; font-size: 0.92rem; }
.fila { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.fila input { flex: 1 1 12rem; }
.fila button { margin-top: 0; }
.tabla-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--borde); vertical-align: top; }
td.ok { color: var(--ok); font-weight: 600; }
td.apagado { color: var(--suave); }
td.acciones { white-space: nowrap; }
.mensaje { max-width: 26rem; width: 100%; margin: 0; padding: 0.8rem 1rem; border-radius: 8px; background: var(--tarjeta); border-left: 4px solid var(--ok); }
.mensaje.error { border-left-color: var(--error); }
[hidden] { display: none !important; }
