:root {
  --azul: #1a56db;
  --gris: #60666b;
  --fondo: #f4f6f8;
  --borde: #d8dde2;
  --rojo: #c0392b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--fondo);
  color: #222;
}

/* ---- Login ---- */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-card {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 2rem 2.2rem;
  width: min(92vw, 22rem);
  box-shadow: 0 4px 14px rgb(0 0 0 / 6%);
}

.login-card h1 { margin: 0; font-size: 1.3rem; color: var(--azul); }
.login-card .subtitle { margin: .2rem 0 1.2rem; color: var(--gris); font-size: .9rem; }
.login-card label { display: block; font-size: .85rem; margin-bottom: .3rem; color: var(--gris); }
.login-card input[type="password"] {
  width: 100%;
  padding: .55rem .7rem;
  border: 1px solid var(--borde);
  border-radius: 6px;
  font-size: 1rem;
}
.login-card button {
  margin-top: 1rem;
  width: 100%;
  padding: .6rem;
  background: var(--azul);
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}
.login-card button:hover { filter: brightness(1.08); }
.error { color: var(--rojo); font-size: .9rem; }

/* ---- Panel ---- */
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1.2rem;
  background: #fff;
  border-bottom: 1px solid var(--borde);
  flex-wrap: wrap;
}
.panel-header h1 { margin: 0; font-size: 1.1rem; color: var(--azul); }
.panel-header .acciones { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.panel-header a.boton, .panel-header button {
  padding: .45rem .8rem;
  border-radius: 6px;
  border: 1px solid var(--borde);
  background: #fff;
  color: #222;
  text-decoration: none;
  font-size: .88rem;
  cursor: pointer;
}
.panel-header a.primario { background: var(--azul); color: #fff; border-color: var(--azul); }

.panel-main { padding: 1.2rem; max-width: 75rem; margin: 0 auto; }

.filtro { display: flex; gap: .6rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.filtro select { padding: .45rem .6rem; border: 1px solid var(--borde); border-radius: 6px; font-size: .9rem; }

table.resenas { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--borde); font-size: .88rem; }
table.resenas th, table.resenas td { padding: .55rem .7rem; border-bottom: 1px solid var(--borde); text-align: left; vertical-align: top; }
table.resenas th { background: #eef1f4; color: var(--gris); font-weight: 600; white-space: nowrap; }
table.resenas td.num { text-align: center; white-space: nowrap; }
table.resenas td.fecha { white-space: nowrap; color: var(--gris); }
.sin-datos { color: var(--gris); padding: 2rem; text-align: center; }
.aviso-tope { color: var(--gris); font-size: .8rem; margin-top: .6rem; }
