/* Portal de Accesos Vakandi - estilo sobrio blanco y negro */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: #f4f4f4; color: #1a1a1a; }

.topbar {
  background: #111; color: #fff;
  display: flex; align-items: center; gap: 24px;
  padding: 0 20px; height: 56px; flex-wrap: wrap;
}
.marca { font-weight: 700; letter-spacing: .5px; }
.topbar nav { display: flex; gap: 4px; flex: 1; }
.topbar nav a {
  color: #ccc; text-decoration: none; padding: 8px 14px; border-radius: 6px; font-size: 14px;
}
.topbar nav a:hover { background: #2a2a2a; color: #fff; }
.topbar nav a.activo { background: #fff; color: #111; font-weight: 600; }
.sesion { display: flex; align-items: center; gap: 12px; font-size: 14px; }

.contenido { max-width: 1100px; margin: 0 auto; padding: 24px 16px 60px; }
h1 { font-size: 22px; margin-bottom: 18px; }
h2 { font-size: 17px; margin: 24px 0 10px; }

.tarjeta-panel {
  background: #fff; border: 1px solid #ddd; border-radius: 10px;
  padding: 18px; margin-bottom: 18px;
}

table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e5e5e5; }
th { background: #fafafa; font-weight: 600; font-size: 13px; }
tr:hover td { background: #f8f8f8; }

.btn {
  display: inline-block; background: #111; color: #fff; border: none;
  padding: 9px 16px; border-radius: 7px; font-size: 14px; cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: #333; }
.btn-chico { padding: 5px 10px; font-size: 12px; }
.btn-borde { background: #fff; color: #111; border: 1px solid #111; }
.btn-borde:hover { background: #eee; }
.btn-peligro { background: #8a1f1f; }
.btn-peligro:hover { background: #a62a2a; }

input, select {
  padding: 9px 10px; border: 1px solid #ccc; border-radius: 7px;
  font-size: 14px; width: 100%;
}
label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 4px; }
.campo { margin-bottom: 12px; }
.fila-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }

.etiqueta {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.et-activa   { background: #e5f3e5; color: #1d6b1d; }
.et-baja     { background: #eee;    color: #555; }
.et-pendiente{ background: #fff6dd; color: #8a6d00; }
.et-aplicado { background: #e5f3e5; color: #1d6b1d; }
.et-error    { background: #fde2e2; color: #8a1f1f; }
.et-online   { background: #e5f3e5; color: #1d6b1d; }
.et-offline  { background: #fde2e2; color: #8a1f1f; }

.aviso { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; }
.aviso-ok { background: #e5f3e5; color: #1d6b1d; }
.aviso-error { background: #fde2e2; color: #8a1f1f; }

.pie { text-align: center; color: #999; font-size: 11px; padding: 16px; }

/* Login */
.login-fondo {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: #111;
}
.login-caja {
  background: #fff; border-radius: 12px; padding: 34px; width: 100%; max-width: 380px;
}
.login-caja h1 { text-align: center; font-size: 20px; margin-bottom: 4px; }
.login-caja p { text-align: center; color: #777; font-size: 13px; margin-bottom: 22px; }
.login-caja .btn { width: 100%; margin-top: 6px; }

@media (max-width: 640px) {
  .topbar { height: auto; padding: 10px; }
  table { font-size: 13px; }
  th, td { padding: 8px 6px; }
}

/* ---------- Vakandi Pases: complementos del panel ---------- */
.marca-sub { font-weight: 400; color: #aaa; }
.texto-suave { color: #777; font-size: 13px; }
.mono { font-family: ui-monospace, Consolas, monospace; }
.tabla-scroll { overflow-x: auto; border: 1px solid #e5e5e5; border-radius: 10px; background: #fff; }
.tabla-scroll table { border: none; }
td.num, th.num { text-align: right; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid #ddd; border-radius: 10px; padding: 14px 16px; }
.kpi .cifra { font-size: 28px; font-weight: 700; line-height: 1.1; }
.kpi .rotulo { font-size: 12px; color: #777; text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }
.kpi.alerta { border-color: #e7b3b3; }
.kpi.alerta .cifra { color: #8a1f1f; }
.acciones { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.acciones form { display: inline; }
.barra { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; }
.barra .campo { margin: 0; min-width: 160px; }
.barra .crece { flex: 1; }
.cuadricula-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.lista-datos { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; font-size: 14px; }
.lista-datos dt { color: #777; }
.lista-datos dd { margin: 0; }
details.desplegable { background: #fff; border: 1px solid #ddd; border-radius: 10px; margin-bottom: 14px; }
details.desplegable > summary { cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: 14px; list-style: none; }
details.desplegable > summary::-webkit-details-marker { display: none; }
details.desplegable > summary::before { content: '+ '; }
details.desplegable[open] > summary::before { content: '– '; }
details.desplegable > .interior { padding: 0 16px 16px; }
textarea { padding: 9px 10px; border: 1px solid #ccc; border-radius: 7px; font-size: 14px; width: 100%; font-family: inherit; }
input[type=checkbox] { width: auto; }
.check { display: inline-flex; gap: 6px; align-items: center; font-weight: 400; font-size: 14px; margin-right: 14px; }
.et-suspendido { background: #fde2e2; color: #8a1f1f; }
.et-programado { background: #eef0ff; color: #2c3a8a; }
.et-vencido, .et-cancelado, .et-quitado, .et-caducado { background: #eee; color: #555; }
.et-vigente, .et-ok, .et-cargado, .et-lista { background: #e5f3e5; color: #1d6b1d; }
.et-enviado, .et-quitando, .et-en_proceso, .et-esperando_foto { background: #fff6dd; color: #8a6d00; }
.et-foto_rechazada { background: #fde2e2; color: #8a1f1f; }
.clave-temporal { font-size: 26px; font-weight: 700; letter-spacing: 4px; font-family: ui-monospace, Consolas, monospace; }
.caja-copiar { background: #f7f7f7; border: 1px dashed #bbb; border-radius: 8px; padding: 10px 12px; font-size: 13px; white-space: pre-wrap; margin: 8px 0; }
.paginacion { display: flex; gap: 6px; justify-content: flex-end; margin-top: 10px; }
.vacio { padding: 26px; text-align: center; color: #888; background: #fff; border: 1px dashed #ccc; border-radius: 10px; }
.sesion .liga-cuenta { color: #ccc; text-decoration: none; }
.sesion .liga-cuenta:hover { color: #fff; }
