/* ═══════════════════════════════════════════════
   DISQUERA ADMIN — Design System
   Tema: Oscuro profesional con azul medianoche
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* Paleta principal */
  --bg-base:       #0c0e14;
  --bg-surface:    #13161f;
  --bg-elevated:   #1a1e2e;
  --bg-hover:      #1f2438;
  --bg-input:      #161924;

  /* Azul medianoche — NO neon */
  --blue-dim:      #1e3a5f;
  --blue-mid:      #2a5298;
  --blue-main:     #3b6fd4;
  --blue-soft:     #4d8af0;
  --blue-glow:     rgba(59, 111, 212, 0.15);
  --blue-border:   rgba(59, 111, 212, 0.3);

  /* Texto */
  --text-primary:  #e8eaf0;
  --text-secondary:#8a90a8;
  --text-muted:    #555b72;
  --text-accent:   #7aa8f5;

  /* Estados */
  --success:       #2d6a4f;
  --success-light: #52b788;
  --error:         #6b2d2d;
  --error-light:   #e07a7a;
  --warning:       #5c4a1e;
  --warning-light: #d4a017;

  /* Bordes y sombras */
  --border:        rgba(255,255,255,0.07);
  --border-focus:  var(--blue-main);
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:     0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.6);

  /* Sidebar */
  --sidebar-w:     240px;
  --sidebar-collapsed: 68px;

  /* Tipografía */
  --font-body:     'DM Sans', sans-serif;
  --font-mono:     'Space Mono', monospace;

  /* Transiciones */
  --t-fast:        0.15s ease;
  --t-mid:         0.25s ease;
  --t-slow:        0.4s ease;
}

/* ─── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; }

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text-accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--blue-soft); }

/* ─── Scrollbar ────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--blue-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-mid); }

/* ════════════════════════════════════════════════
   LOGIN
   ════════════════════════════════════════════════ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(42,82,152,0.18) 0%, transparent 70%),
    var(--bg-base);
  padding: 1rem;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(42,82,152,0.08);
  animation: fadeUp 0.4s ease;
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--blue-dim), var(--blue-mid));
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 20px var(--blue-glow);
}

.login-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.login-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── Forms ────────────────────────────────────── */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 0.65rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--blue-main);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.form-control::placeholder { color: var(--text-muted); }

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a90a8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2.2rem;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.form-required {
  color: var(--error-light);
  margin-left: 2px;
}

/* ─── Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.2rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--blue-main);
  color: #fff;
  width: 100%;
  justify-content: center;
}

.btn-primary:hover { background: var(--blue-soft); color: #fff; }

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--bg-hover); color: var(--text-primary); }

.btn-danger {
  background: var(--error);
  color: var(--error-light);
  border: 1px solid rgba(224,122,122,0.2);
}

.btn-danger:hover { background: #7a3030; }

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  border-radius: 6px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  justify-content: center;
  border-radius: 6px;
}

/* Spinner dentro del botón */
.btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn.loading .btn-spinner { display: block; }
.btn.loading .btn-text    { display: none; }

/* ════════════════════════════════════════════════
   LAYOUT — Sidebar + Main
   ════════════════════════════════════════════════ */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ─── Sidebar ──────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  transition: width var(--t-mid), transform var(--t-mid);
}

.sidebar-header {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-logo-box {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--blue-dim), var(--blue-mid));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 12px var(--blue-glow);
}

.sidebar-brand {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-brand span {
  display: block;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 1px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Nav items */
.sidebar-nav {
  flex: 1;
  padding: 0.75rem 0;
  overflow-y: auto;
}

.nav-section {
  margin-bottom: 0.25rem;
}

.nav-section-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem 0.3rem;
  white-space: nowrap;
  overflow: hidden;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 400;
  cursor: pointer;
  transition: all var(--t-fast);
  border-left: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
}

.nav-item:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-item.active {
  color: var(--blue-soft);
  background: var(--blue-glow);
  border-left-color: var(--blue-main);
}

.nav-item svg, .nav-item .nav-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  opacity: 0.8;
}

/* Sub-items (grupo lanzamientos) */
.nav-group {}

.nav-group-toggle {
  width: 100%;
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--t-fast);
  border-left: 2px solid transparent;
  white-space: nowrap;
  overflow: hidden;
}

.nav-group-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-group-toggle.active {
  color: var(--blue-soft);
}

.nav-group-arrow {
  margin-left: auto;
  transition: transform var(--t-fast);
  flex-shrink: 0;
}

.nav-group-toggle.open .nav-group-arrow {
  transform: rotate(90deg);
}

.nav-sub {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--t-mid);
}

.nav-sub.open { max-height: 300px; }

.nav-sub-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem 0.5rem 2.8rem;
  color: var(--text-muted);
  font-size: 0.84rem;
  transition: all var(--t-fast);
  border-left: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.nav-sub-item:hover { color: var(--text-primary); background: var(--bg-hover); }
.nav-sub-item.active { color: var(--blue-soft); border-left-color: var(--blue-main); background: var(--blue-glow); }

/* Footer del sidebar */
.sidebar-footer {
  padding: 0.75rem;
  border-top: 1px solid var(--border);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background var(--t-fast);
  text-decoration: none;
}

.sidebar-user:hover { background: var(--bg-hover); }

.user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-dim), var(--blue-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.user-info { overflow: hidden; }

.user-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-rol {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.btn-logout {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 5px;
  transition: color var(--t-fast), background var(--t-fast);
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.btn-logout:hover { color: var(--error-light); background: rgba(107,45,45,0.3); }

/* ─── Main Content ─────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  transition: margin-left var(--t-mid);
  min-width: 0;
}

/* Topbar móvil */
.topbar {
  display: none;
  height: 56px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  align-items: center;
  padding: 0 1rem;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-menu-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  transition: all var(--t-fast);
}

.topbar-menu-btn:hover { background: var(--bg-hover); color: var(--text-primary); }

.topbar-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Overlay para móvil */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99;
}

.sidebar-overlay.show { display: block; }

.page-container {
  padding: 2rem;
  flex: 1;
}

/* ─── Page Header ──────────────────────────────── */
.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ─── Cards / Stat Cards ───────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: border-color var(--t-fast);
}

.stat-card:hover { border-color: var(--blue-border); }

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1;
}

.stat-icon {
  float: right;
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  background: var(--blue-glow);
  border: 1px solid var(--blue-border);
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.card-body { padding: 1.25rem; }

/* ─── Table ────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

thead tr {
  border-bottom: 1px solid var(--border);
}

thead th {
  padding: 0.65rem 0.9rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background var(--t-fast);
}

tbody tr:hover { background: var(--bg-hover); }

tbody td {
  padding: 0.65rem 0.9rem;
  color: var(--text-secondary);
  vertical-align: middle;
}

tbody td:first-child {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-accent);
}

.td-actions {
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.badge-ep         { background: rgba(42,82,152,0.25); color: #7aa8f5; }
.badge-single     { background: rgba(45,106,79,0.25); color: #52b788; }
.badge-album      { background: rgba(92,74,30,0.3);   color: #d4a017; }
.badge-compilation{ background: rgba(80,40,100,0.3);  color: #c084fc; }
.badge-admin      { background: rgba(59,111,212,0.2); color: var(--blue-soft); }
.badge-editor     { background: rgba(255,255,255,0.05); color: var(--text-secondary); }

/* ─── Búsqueda / Filtros ───────────────────────── */
.search-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.search-input-wrap {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-input-wrap svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 16px; height: 16px;
}

.search-input-wrap .form-control {
  padding-left: 2.2rem;
}

.search-select { width: 160px; min-width: 130px; }

/* ─── Form Layout ──────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem 1.5rem;
}

.form-grid .form-group { margin-bottom: 0; }

.form-section-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  grid-column: 1 / -1;
}

.id-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.id-display .form-control {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-accent);
  background: var(--bg-base);
  cursor: default;
}

/* Paginación */
.pagination {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 0.5rem;
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: all var(--t-fast);
  text-decoration: none;
}

.page-link:hover, .page-link.active {
  background: var(--blue-main);
  color: #fff;
  border-color: var(--blue-main);
}

/* ─── Alerts / Flash ───────────────────────────── */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.87rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid transparent;
}

.alert-success {
  background: rgba(45,106,79,0.2);
  border-color: rgba(82,183,136,0.25);
  color: var(--success-light);
}

.alert-error {
  background: rgba(107,45,45,0.2);
  border-color: rgba(224,122,122,0.25);
  color: var(--error-light);
}

/* ─── Modal ────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-mid);
  padding: 1rem;
}

.modal-backdrop.show {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform var(--t-mid);
}

.modal-backdrop.show .modal { transform: scale(1); }

.modal-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.modal-body { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 1.25rem; }

.modal-footer {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}

/* Cambiar contraseña modal */
.password-modal-id {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-accent);
}

/* ─── Empty State ──────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-state-icon { font-size: 2.5rem; margin-bottom: 0.75rem; opacity: 0.5; }
.empty-state p { font-size: 0.88rem; }

/* ─── Divider ──────────────────────────────────── */
hr { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* ─── Animations ───────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.fade-up { animation: fadeUp 0.35s ease both; }

/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-w);
  }

  .sidebar.mobile-open { transform: translateX(0); }

  .main-content { margin-left: 0; }

  .topbar { display: flex; }

  .page-container { padding: 1.25rem; }

  .form-grid { grid-template-columns: 1fr; }

  .search-bar { flex-direction: column; }
  .search-select { width: 100%; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .login-card { padding: 1.75rem; }
}

/* Indicador de estado en tabla usuarios */
.user-status {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: var(--text-muted);
}

.user-status.online { background: var(--success-light); box-shadow: 0 0 6px var(--success-light); }

/* Dashboard recientes */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

/* Tipo chart bars */
.tipo-bars { display: flex; flex-direction: column; gap: 0.75rem; }

.tipo-bar-item {}

.tipo-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
  color: var(--text-secondary);
}

.tipo-bar-track {
  height: 6px;
  background: var(--bg-base);
  border-radius: 3px;
  overflow: hidden;
}

.tipo-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--blue-main);
  transition: width 0.6s ease;
}

/* Tooltip en botón deshabilitado */
.tooltip-wrap { position: relative; display: inline-block; }

.tooltip-wrap .tooltip-text {
  visibility: hidden;
  opacity: 0;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  transition: all var(--t-fast);
  pointer-events: none;
  z-index: 10;
}

.tooltip-wrap:hover .tooltip-text { visibility: visible; opacity: 1; }

/* ════════════════════════════════════════════════
   PRÓXIMOS LANZAMIENTOS
   ════════════════════════════════════════════════ */
.proximos-vencidos-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--warning-light);
  background: rgba(92,74,30,0.15);
  border-bottom: 1px solid rgba(92,74,30,0.3);
}

.proximos-mes-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  padding: 0.6rem 1.25rem 0.3rem;
  text-transform: uppercase;
}

.proximo-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background var(--t-fast);
}

.proximo-item:hover { background: var(--bg-hover); }

.proximo-vencido .proximo-nombre {
  color: var(--text-muted);
  text-decoration: line-through;
}

.proximo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.proximo-dot-ok   { background: var(--success-light); }
.proximo-dot-warn { background: var(--warning-light); }

.proximo-info { flex: 1; min-width: 0; }

.proximo-nombre {
  font-size: 0.87rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proximo-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.proximo-dia {
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  flex-shrink: 0;
  min-width: 20px;
  text-align: right;
}

.proximos-ver-mas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--t-fast);
}

.proximos-ver-mas:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
