/* ===== VARIABLES ===== */
:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #d1fae5;
  --secondary: #3b82f6;
  --secondary-light: #dbeafe;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #10b981;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --border-radius: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* ===== RESET & GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary);
}

/* ===== LAYOUT ===== */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--gray-50);
}

.header {
  background: white;
  border-bottom: 2px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.logo-img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-user {
  background: var(--primary-light);
  border: 2px solid var(--primary);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.btn-user:hover {
  background: var(--primary);
  color: white;
}

.btn-icon {
  background: var(--gray-100);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: var(--primary-light);
}

/* ===== NAVIGATION ===== */
.main-nav {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  gap: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: var(--shadow);
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.nav-item {
  flex: 1;
  min-width: 100px;
  padding: 1rem;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-600);
  font-weight: 600;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.nav-item:hover {
  color: var(--primary);
  background: var(--gray-50);
}

.nav-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-item .icon {
  font-size: 1.5rem;
}

.nav-item .label {
  font-size: 0.85rem;
}
.admin-only {
  display: none;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
  gap: 1.5rem;
  display: flex;
  flex-direction: column;
}

.content-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.content-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.75rem;
  color: var(--gray-900);
  margin: 0;
}

/* ===== DASHBOARD ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}

.dashboard-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.dashboard-card h3 {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin: 0 0 0.75rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin: 0.5rem 0 0 0;
}

.section-full {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.section-full h3 {
  margin-bottom: 1rem;
}

.chart-container {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border-radius: var(--border-radius);
  padding: 2rem;
}

.chart-container.loading,
.loading {
  color: var(--gray-500);
  font-size: 1rem;
}

/* ===== FILTERS ===== */
.filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-input,
.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-input {
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  background: white;
  transition: var(--transition);
}

.filter-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.filter-group label {
  font-weight: 600;
  color: var(--gray-700);
}

/* ===== ALBARANES LIST ===== */
.albaranes-list {
  display: grid;
  gap: 1rem;
}

.alban-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  border-left: 4px solid var(--secondary);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.alban-card.salida {
  border-left-color: var(--danger);
}

.alban-card.entrada {
  border-left-color: var(--success);
}

.alban-card:hover {
  box-shadow: var(--shadow-lg);
}

.alban-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.alban-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}

.alban-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--gray-600);
}

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

.alban-detail strong {
  color: var(--gray-900);
}

.alban-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.alban-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-venta {
  background: var(--secondary-light);
  color: var(--secondary);
}

.badge-entrada {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.badge-salida {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

/* ===== STOCK ===== */
.stock-filters {
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.stock-container {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.table-responsive {
  overflow-x: auto;
}

.stock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.stock-table thead {
  background: var(--gray-100);
  border-bottom: 2px solid var(--gray-300);
}

.stock-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--gray-900);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.stock-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.stock-table tbody tr:hover {
  background: var(--gray-50);
}

.stock-number {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

/* ===== FORMS ===== */
.form-alban {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  color: var(--gray-900);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: inherit;
  background: white;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid {
  border-color: var(--danger);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* ===== CREAR TABS ===== */
.crear-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--gray-200);
  background: white;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  padding: 0 2rem;
  overflow-x: auto;
}

.tab-btn {
  padding: 1rem;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--gray-600);
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--gray-200);
  color: var(--gray-900);
}

.btn-secondary:hover {
  background: var(--gray-300);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  width: 100%;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: var(--border-radius);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--gray-100);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--gray-200);
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 400px;
}

.toast {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--success);
  animation: slideIn 0.3s ease;
  max-width: 100%;
}

.toast.error {
  border-left-color: var(--danger);
}

.toast.warning {
  border-left-color: var(--warning);
}

.toast.info {
  border-left-color: var(--secondary);
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-content {
    padding: 0.75rem;
  }

  .logo {
    font-size: 1.25rem;
  }
  .main-content {
    padding: 1rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .filters {
    gap: 0.5rem;
  }

  .filter-input {
    flex: 1;
    min-width: 150px;
  }

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

  .alban-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .alban-meta {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .nav-item {
    flex: 1;
    min-width: 80px;
    padding: 0.75rem;
  }

  .nav-item .label {
    font-size: 0.75rem;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .dashboard-card {
    padding: 1rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .stock-table {
    font-size: 0.85rem;
  }

  .stock-table th,
  .stock-table td {
    padding: 0.75rem;
  }

  .modal-content {
    padding: 1.5rem;
  }

  .crear-tabs {
    padding: 0 1rem;
  }

  .form-alban {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .header-content {
    flex-direction: column;
    gap: 0.5rem;
  }

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

  .alban-actions {
    flex-direction: column;
  }

  .filters {
    flex-direction: column;
  }

  .filter-input {
    width: 100%;
  }

  .stock-table {
    font-size: 0.75rem;
  }

  .nav-item {
    flex: 0 0 auto;
    min-width: 70px;
  }

  .toast-container {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }

  .toast {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* ===== WAREHOUSE GRID (Visual Stock) ===== */
.warehouse-grid {
  margin-top: 1.5rem;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.grid-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--gray-300);
}

.grid-wrapper {
  padding: 1rem;
  display: block;
}

/* Calendario visual por almacén */
.stock-calendar {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem;
}

.calendar-col {
  min-width: 180px;
  background: #fff;
  border: 4px solid #000;
  border-radius: 6px;
  padding: 10px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 700;
  color: #111;
}

.calendar-count {
  font-size: 12px;
  padding: 2px 8px;
  border: 2px solid #000;
  border-radius: 10px;
  background: #f5f5f5;
}

.calendar-cells {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(26px, 1fr));
  gap: 6px;
}

.calendar-cell {
  width: 100%;
  padding-top: 100%;
  position: relative;
  border: 2px solid #000;
  border-radius: 4px;
  background: transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.calendar-cell.filled {
  cursor: pointer;
}

.calendar-cell.filled:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.calendar-cell.empty {
  background: #fafafa;
  border-style: dashed;
}

/* Mapa absoluto (ejemplo proporcionado) */
.stock-map {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 420px;
  background: #fff;
  border: 5px solid #000;
  margin: auto;
}

.stock-block {
  position: absolute;
  border: 2px solid #000;
  background: transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stock-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

/* ===== CHARTS & VISUALIZATIONS ===== */
.almacenes-chart-items {
  display: grid;
  gap: 1.5rem;
}

.almacen-chart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.chart-label {
  min-width: 150px;
  font-weight: 600;
  color: var(--gray-900);
}

.chart-bar {
  flex: 1;
  height: 30px;
  background: var(--gray-100);
  border-radius: 4px;
  overflow: hidden;
}

.chart-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--success));
  border-radius: 4px;
  transition: width 0.3s ease;
}

.chart-value {
  min-width: 120px;
  text-align: right;
  font-weight: 700;
  color: var(--primary);
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--gray-500);
  font-size: 1rem;
}

/* ===== ADDITIONAL UI ELEMENTS ===== */
.stock-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.stock-filters .filter-group {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.stock-filters label {
  font-weight: 600;
}

.stock-filters .filter-input {
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
}

.btn-secondary {
  background: var(--gray-200);
  color: var(--gray-900);
}

.btn-secondary:hover {
  background: var(--gray-300);
}

/* Animation utilities */
.fade-in {
  animation: fadeIn 0.3s ease;
}

.slide-in {
  animation: slideIn 0.3s ease;
}

/* Print styles */
@media print {
  .main-nav,
  .header-actions,
  .filters,
  .alban-actions,
  .btn-primary,
  .btn-secondary,
  .modal {
    display: none !important;
  }

  .alban-card,
  .dashboard-card,
  .stock-table {
    page-break-inside: avoid;
  }

  body {
    background: white;
  }
}
/* ===== MODAL STYLES ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  animation: fadeIn 0.3s ease;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideIn 0.3s ease;
  position: relative;
}

.modal-login {
  max-width: 400px;
}

.modal-user-menu {
  max-width: 300px;
  padding: 1.5rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--gray-500);
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--gray-900);
}

.modal h2 {
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.login-hint {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 1rem;
  text-align: center;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-block {
  width: 100%;
  display: block;
}

/* ===== ALMACENES LIST ===== */
.almacenes-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.almacen-card {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.almacen-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.almacen-card h3 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.almacen-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.almacen-card .almacen-actions {
  display: flex;
  gap: 0.5rem;
}

.almacen-card button {
  flex: 1;
  padding: 0.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  font-size: 0.85rem;
}

.almacen-card .btn-edit {
  background: var(--secondary-light);
  color: var(--secondary);
}

.almacen-card .btn-edit:hover {
  background: var(--secondary);
  color: white;
}

.almacen-card .btn-del {
  background: #fee2e2;
  color: var(--danger);
}

.almacen-card .btn-del:hover {
  background: var(--danger);
  color: white;
}

.almacen-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-500);
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {
  .logo-section {
    gap: 0.5rem;
  }

  .logo-img {
    height: 35px;
    width: 35px;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .btn-user {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .modal-content {
    width: 95%;
    padding: 1.5rem;
  }

  .almacenes-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 0.75rem;
  }

  .logo-text {
    display: none;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .btn-user span {
    display: none;
  }

  .modal-content {
    width: 98%;
    padding: 1rem;
  }

  .modal-content h2 {
    font-size: 1.2rem;
  }
}