body {
  background-color: #f8f9fa;
  font-family: 'Segoe UI', sans-serif;
}

/* ── Navbar ────────────────────────────────── */
.navbar-brand { font-size: 1.2rem; }

@media (max-width: 767px) {
  .navbar-brand { font-size: 1rem; }
  .container-fluid.mt-4 { margin-top: 1rem !important; }
  .px-4 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
}

/* ── Cards ─────────────────────────────────── */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.card-header {
  border-radius: 12px 12px 0 0 !important;
  font-weight: 600;
}

/* ── Tablas ─────────────────────────────────── */
.table th {
  background-color: #f1f3f5;
  font-weight: 600;
}

/* En celular las tablas hacen scroll horizontal */
.table-responsive { -webkit-overflow-scrolling: touch; }

@media (max-width: 575px) {
  .table td, .table th { font-size: 0.82rem; padding: 0.4rem 0.5rem; }
}

/* ── Stat cards ─────────────────────────────── */
.stat-card {
  border-left: 4px solid;
  border-radius: 8px;
}
.stat-card.verde   { border-color: #198754; }
.stat-card.azul    { border-color: #0d6efd; }
.stat-card.naranja { border-color: #fd7e14; }
.stat-card.rojo    { border-color: #dc3545; }

/* ── Alerta stock ───────────────────────────── */
.alerta-stock {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
}

/* ── Login ──────────────────────────────────── */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(135deg, #198754 0%, #0f5132 100%);
}

.login-card {
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  overflow: hidden;
}

/* ── Nueva venta — botón micrófono ─────────── */
#mic_active { animation: pulso 1s infinite; }

@keyframes pulso {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── Botones grandes en móvil ───────────────── */
@media (max-width: 575px) {
  .btn-lg-mobile {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  /* Accesos rápidos del dashboard más compactos */
  .dashboard-actions .btn { text-align: left; font-size: 0.9rem; }
}

/* ── Formularios móvil ──────────────────────── */
@media (max-width: 575px) {
  .form-control, .form-select { font-size: 1rem; } /* evita zoom en iOS */
}
