:root {
  --bg: #f3f6f8;
  --ink: #16212b;
  --muted: #647382;
  --panel: #ffffff;
  --line: #d9e1e8;
  --blue: #1f68d1;
  --green: #15834f;
  --red: #bd2d2d;
  --amber: #a86b00;
  --shadow: 0 18px 45px rgba(21, 38, 55, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, sans-serif;
}

a {
  color: inherit;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
}

.top strong,
.top span {
  display: block;
}

.top span {
  color: var(--muted);
  font-size: 0.84rem;
}

nav,
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

nav a,
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 14px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.primary,
button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.danger,
button.danger {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.ghost {
  background: transparent;
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 28px auto 56px;
}

.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(135deg, #fff, #eaf1f7);
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero h1,
.panel h1,
.panel h2 {
  margin: 0 0 8px;
}

.hero p,
.panel p,
small {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 22px;
  box-shadow: var(--shadow);
}

.login {
  max-width: 430px;
  margin: 10vh auto;
}

.toolbar {
  margin-bottom: 14px;
}

input,
textarea,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 110px;
  font-family: Consolas, "Courier New", monospace;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 16px;
  margin-bottom: 16px;
}

fieldset {
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink);
}

.check input {
  width: auto;
  min-height: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

td small {
  display: block;
  margin-top: 4px;
}

.mono {
  font-family: Consolas, "Courier New", monospace;
  overflow-wrap: anywhere;
}

.status {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 10px;
  background: #edf2f6;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.status.activa,
.status.active {
  background: #e2f5eb;
  color: var(--green);
}

.status.revocada,
.status.blocked,
.status.bloqueada {
  background: #fae5e5;
  color: var(--red);
}

.status.released {
  background: #fff2d8;
  color: var(--amber);
}

.alert {
  border-radius: 8px;
  padding: 11px 12px;
  margin-bottom: 14px;
}

.alert.danger {
  background: #fae5e5;
  color: var(--red);
}

dl {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 8px 14px;
}

dt {
  color: var(--muted);
  font-weight: 800;
}

dd {
  margin: 0;
}

@media (max-width: 760px) {
  .top,
  .hero,
  .split {
    display: grid;
  }

  .grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
