/* ====== Tema base ====== */
:root {
  --bg: #0f172a;
  --bg2: #0b1324;
  --card: rgba(17,24,39,.85);
  --line: #1f2937;
  --muted: #334155;
  --acc: #22d3ee;
  --text: #e5e7eb;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg2), var(--bg));
  color: var(--text);
}

/* ====== Layout ====== */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.header img { height: 40px; }
.header .title { margin: 0; }
.header .spacer { margin-left: auto; }

/* Tarjetas */
.card {
  background: var(--card);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  padding: 24px;
}

/* Grid */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* Formularios y botones */
input, select, button {
  width: 100%;
  padding: 12px 14px;
  margin: 8px 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0b1220;
  color: var(--text);
  outline: none;
}
input:focus, select:focus { border-color: #2b3b57; }
button { cursor: pointer; font-weight: 600; }
.btn { background: #0b1220; border-color: #223049; }
.btn-primary { background: var(--acc); color: #06202a; border-color: #0ea5b7; }
.btn-link { background: transparent; border: none; color: var(--acc); padding: 0; }

/* Tablas */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; margin-top: 12px; min-width: 720px; }
.table th, .table td {
  border-bottom: 1px solid #243047;
  padding: 10px;
  text-align: left;
}
.table th { font-weight: 700; }

/* Utilidades */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #0b1220;
  border: 1px solid #223049;
}
.list { margin-top: 8px; }
.list-item {
  display: flex;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid #243047;
  padding: 8px 0;
}
.grow { flex: 1; }
.divider { border: none; border-top: 1px solid #243047; margin: 16px 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 12px; }

/* Enlaces */
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Tabs */
.tabs { display:flex; gap:8px; border-bottom:1px solid #243047; margin-bottom:12px; }
.tab {
  background:#0b1220; border:1px solid #223049; border-bottom:none;
  padding:10px 14px; border-top-left-radius:10px; border-top-right-radius:10px; cursor:pointer;
}
.tab.active { background:var(--card); font-weight:700; }
.tab-panel { padding-top:8px; }

/* Logo superior (banner) */
.top-logo {
  width: 100%;
  display: flex;
  justify-content: center;
  background: rgba(17,24,39,.6);
  border-bottom: 1px solid #1f2937;
}
.top-logo img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  padding: 10px 16px;
}

/* ====== MENÚ HAMBURGUESA (no altera lo existente) ====== */
.hamburger {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: #0b1220;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative;
}
.hamburger span, .hamburger::before, .hamburger::after {
  content: ""; position: absolute; width: 20px; height: 2px;
  background: var(--text); border-radius: 1px; transition: .22s;
}
.hamburger span { transform: translateY(0); }
.hamburger::before { transform: translateY(-6px); }
.hamburger::after  { transform: translateY( 6px); }
.hamburger.active span { opacity: 0; }
.hamburger.active::before { transform: rotate(45deg); }
.hamburger.active::after  { transform: rotate(-45deg); }

/* Drawer lateral + backdrop */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 999;
}
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 280px; max-width: 90vw;
  background: var(--card);
  border-right: 1px solid var(--line);
  transform: translateX(-100%);
  transition: transform .25s ease; z-index: 1000;
  display: flex; flex-direction: column;
  backdrop-filter: blur(6px);
}
.drawer.open { transform: translateX(0); }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.drawer header {
  padding: 16px; font-weight: 700;
  border-bottom: 1px solid #243047;
}
.drawer nav a {
  display: block; padding: 12px 16px; color: var(--text);
  text-decoration: none; border-bottom: 1px solid #243047;
}
.drawer nav a:hover { background: #0b1324; }

@media (min-width: 1024px) {
  /* opcional: que siga siendo drawer en escritorio;
     si quisieras una barra fija, te paso otro bloque luego */
}

