:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --ink: #0b1220;
  --muted: #5a6a85;
  --line: #e6ebf3;
  --line-hi: #cdd8ea;
  --sky: #0ea5e9;
  --ok: #16a34a;
  --mal: #dc2626;
  --grad: linear-gradient(100deg, #06b6d4 0%, #0ea5e9 30%, #7c3aed 66%, #f97316 100%);
  --radius: 18px;
  --shadow: 0 18px 50px -24px rgba(20, 40, 90, 0.28);
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg-soft); color: var(--ink);
  font-family: "Inter", system-ui, sans-serif; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, .brand-name { font-family: "Space Grotesk", system-ui, sans-serif; letter-spacing: -0.02em; margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
[hidden] { display: none !important; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-name { font-size: 1.3rem; font-weight: 700; }
.brand-8 { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em; margin: 0;
  font: 700 0.7rem "Space Mono", monospace; color: var(--sky);
}

/* ===== ENTRADA ===== */
.centro { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.caja {
  width: 100%; max-width: 380px; padding: 32px 28px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.caja h1 { font-size: 1.45rem; margin: 22px 0 4px; }
.caja .sub { color: var(--muted); font-size: 0.92rem; margin: 0 0 22px; }
.campo { display: block; margin-bottom: 14px; }
.campo span { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.campo input {
  width: 100%; height: 46px; padding: 0 14px; color: var(--ink);
  border: 1px solid var(--line-hi); border-radius: 12px; background: var(--bg); outline: none;
}
.campo input:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14); }
.boton {
  width: 100%; height: 48px; margin-top: 6px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--ink); color: #fff; font-weight: 600;
}
.boton:hover { background: #1a2440; }
.boton:disabled { opacity: 0.6; cursor: progress; }
.aviso { min-height: 1.3em; margin: 12px 0 0; font-size: 0.86rem; color: var(--mal); }
.volver { display: block; margin-top: 18px; text-align: center; font-size: 0.84rem; color: var(--muted); }
.volver:hover { color: var(--ink); }

/* ===== PANEL ===== */
.top { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.wrap { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.top-acciones { display: flex; align-items: center; gap: 6px; }
.liga {
  border: 0; background: none; cursor: pointer; padding: 10px 12px; border-radius: 10px;
  color: var(--muted); font-size: 0.88rem; font-weight: 500;
}
.liga:hover { color: var(--ink); background: var(--bg-soft); }

.cabeza { padding: 36px 0 18px; }
.cabeza h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-top: 8px; }
.buscar {
  width: 100%; height: 48px; margin-top: 20px; padding: 0 18px; color: var(--ink);
  border: 1px solid var(--line-hi); border-radius: 999px; background: var(--bg); outline: none;
}
.buscar:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14); }

.grupo { margin: 26px 0 0; }
.grupo h2 { font-size: 0.78rem; font-family: "Space Mono", monospace; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 4px 10px; }
.lista { list-style: none; margin: 0; padding: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lista li + li { border-top: 1px solid var(--line); }
.fila { display: flex; align-items: center; gap: 14px; padding: 14px 18px; min-height: 64px; }
.fila:hover, .fila:focus-visible { background: var(--bg-soft); outline: none; }
.punto { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--line-hi); }
.punto.ok { background: var(--ok); }
.punto.mal { background: var(--mal); }
.fila-texto { flex: 1; min-width: 0; }
.fila-nombre { font-weight: 600; }
.fila-nota { color: var(--muted); font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila-url { flex: none; max-width: 38%; color: var(--muted); font: 400 0.74rem "Space Mono", monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila-ir { flex: none; color: var(--muted); }
.vacio { color: var(--muted); text-align: center; padding: 40px 0; }
.pie { color: var(--muted); font-size: 0.8rem; padding: 28px 4px 56px; }

@media (max-width: 640px) {
  .fila-url { display: none; }
  .fila-nota { white-space: normal; }
}
