:root { --azul: #0b4f8a; --gris: #f3f5f7; --borde: #d5dae0; --texto: #1d2733; --rojo: #a4262c; --verde: #2e7d32; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--texto); background: var(--gris); line-height: 1.5; }
main { max-width: 960px; margin: 0 auto; padding: 24px 16px; }
main.centro { min-height: 100vh; display: flex; align-items: center; justify-content: center; max-width: none; }
h1, h2 { margin: 0 0 12px; }
h1 { font-size: 1.5rem; color: var(--azul); }
h2 { font-size: 1.15rem; }
a { color: var(--azul); }

.tarjeta { background: #fff; border: 1px solid var(--borde); border-radius: 8px; padding: 24px; width: 100%; max-width: 420px; margin-bottom: 16px; }
main:not(.centro) .tarjeta { max-width: none; }

.boton { display: inline-block; width: 100%; padding: 10px 16px; background: var(--azul); color: #fff; border: 1px solid var(--azul); border-radius: 6px; font-size: 1rem; text-align: center; text-decoration: none; cursor: pointer; }
.boton:hover { filter: brightness(1.1); }
.boton.secundario { background: #fff; color: var(--azul); }
.boton.chico { width: auto; padding: 4px 10px; font-size: .9rem; }

.tabla { width: 100%; border-collapse: collapse; background: #fff; }
.tabla th, .tabla td { padding: 8px 10px; border-bottom: 1px solid var(--borde); text-align: left; }
.tabla th { background: var(--gris); font-weight: 600; }

.alerta { padding: 10px 14px; border-radius: 6px; border: 1px solid var(--rojo); background: #fdecea; color: var(--rojo); }
.alerta.ok { border-color: var(--verde); background: #e8f5e9; color: var(--verde); }

label { display: block; margin: 12px 0 4px; font-weight: 600; }
input, select, textarea { width: 100%; padding: 8px; border: 1px solid var(--borde); border-radius: 6px; font: inherit; }
.idioma { font-size: .9rem; color: #5b6673; text-align: center; }
.barra { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.barra h1, .barra p, .barra form { margin: 0; }
.ayuda { font-size: .9rem; color: #5b6673; }
.lista-simple { list-style: none; padding: 0; margin: 8px 0; }
.lista-simple .error { color: var(--rojo); }
.paginas { text-align: center; }
[hidden] { display: none !important; }
