/* ============================================================================
 * SERVIKUY (Ingesor L4BS) — Estilos Complementarios a TailwindCSS CDN
 * ============================================================================ */

:root {
  --brand-primary: #0f766e;   /* Teal clínico profesional */
  --brand-dark: #115e59;
  --yape-purple: #742284;
  --plin-cyan: #00c4cc;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Scrollbar limpio para pestañas horizontales en móvil */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Resaltado obligatorio sin pérdida de datos */
.field-error {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}

/* Animaciones ligeras */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.pulse-pending {
  animation: pulse-ring 2s infinite;
}

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

.animate-slide-up {
  animation: slideUp 0.2s ease-out;
}

/* Toggle Switch de Stock (Panel Admin) */
.stock-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 48px;
  height: 26px;
  border-radius: 9999px;
  transition: background-color 0.2s ease;
  cursor: pointer;
}
.stock-switch[data-checked="true"] {
  background-color: #10b981;
}
.stock-switch[data-checked="false"] {
  background-color: #cbd5e1;
}
.stock-switch-knob {
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
  transform: translateX(3px);
}
.stock-switch[data-checked="true"] .stock-switch-knob {
  transform: translateX(25px);
}
