* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", system-ui, sans-serif; font-size: 15px; color: #1f2430; background: #f4f6fa; }
a { color: #3150c8; }
main { max-width: 1200px; margin: 0 auto; padding: 20px; }
h1 { font-size: 24px; margin: 8px 0 16px; }
h2 { font-size: 18px; margin: 28px 0 10px; }
.muted { color: #6b7280; font-size: 13px; }

.barra { display: flex; align-items: center; gap: 24px; padding: 0 20px; height: 54px; background: linear-gradient(90deg, #3b4fd8, #5a2fc2); color: #fff; }
.barra .marca { font-weight: 600; font-size: 17px; }
.barra nav { display: flex; gap: 4px; flex: 1; }
.barra nav a { color: #e6e9ff; text-decoration: none; padding: 8px 12px; border-radius: 6px; }
.barra nav a.activo, .barra nav a:hover { background: rgba(255,255,255,.18); color: #fff; }
.barra .sesion, .barra .sesion a { color: #e6e9ff; font-size: 13px; }

.aviso { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; background: #e7f7ee; border: 1px solid #a7e1bd; }
.aviso.error { background: #fdecec; border-color: #f3b4b4; }

.tarjetas { display: flex; gap: 14px; flex-wrap: wrap; }
.tarjeta { background: #fff; border-radius: 10px; padding: 16px 22px; min-width: 180px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.tarjeta .num { font-size: 30px; font-weight: 600; color: #3b4fd8; }

.panel-equipo { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: #fff; border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.panel-equipo .acciones { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid #eef0f4; vertical-align: middle; }
th { background: #f8f9fc; font-weight: 600; font-size: 13px; color: #4b5563; }
td.derecha { text-align: right; white-space: nowrap; }

.btn { display: inline-block; padding: 7px 14px; border-radius: 7px; border: 1px solid #cfd5e3; background: #fff; color: #1f2430; font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; }
.btn:hover { background: #f1f3f9; }
.btn.primario { background: #3b4fd8; border-color: #3b4fd8; color: #fff; }
.btn.primario:hover { background: #2f41bb; }
.btn.peligro { color: #b42318; border-color: #f3b4b4; }
.btn.peligro:hover { background: #fdecec; }
form.en-linea { display: inline; }

.insignia { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.insignia.verde { background: #e7f7ee; color: #146c3a; }
.insignia.rojo { background: #fdecec; color: #b42318; }
.insignia.azul { background: #e8ecff; color: #3150c8; }
.insignia.gris { background: #eef0f4; color: #4b5563; }

.titulo-fila { display: flex; justify-content: space-between; align-items: center; }
.filtros { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
input, select { font: inherit; padding: 7px 10px; border: 1px solid #cfd5e3; border-radius: 7px; background: #fff; }
.formulario { background: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.formulario label { display: block; margin-bottom: 12px; font-weight: 600; font-size: 14px; }
.formulario label input:not([type=checkbox]) { display: block; width: 100%; margin-top: 4px; font-weight: 400; }
.formulario label.check { font-weight: 400; }
.columnas { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.botones { display: flex; gap: 8px; margin-top: 8px; }
.miniatura { width: 42px; height: 56px; object-fit: cover; border-radius: 6px; }
.foto-grande { max-width: 240px; border-radius: 10px; }
.paginas { display: flex; gap: 8px; margin-top: 12px; }

.caja-qr { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.caja-qr .qr svg { display: block; border: 1px solid #eef0f4; border-radius: 8px; }
.link-copiar { width: 100%; max-width: 520px; font-family: Consolas, monospace; font-size: 13px; }
.caja-login { max-width: 360px; margin: 80px auto; background: #fff; padding: 28px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.caja-login h1 { text-align: center; }
.caja-login label { display: block; margin-bottom: 12px; font-weight: 600; font-size: 14px; }
.caja-login input { display: block; width: 100%; margin-top: 4px; }
.caja-login .btn { width: 100%; }

@media (max-width: 760px) { .columnas { grid-template-columns: 1fr; } .barra { flex-wrap: wrap; height: auto; padding: 10px; } }
