/* 
 * Estilos Globales - Concesionaria Elite
 * Custom utilities para Tailwind + Scrollbars + Animaciones
 */

/* =========================================
   SCROLLBAR CUSTIMIZADA (Estilo Premium)
   ========================================= */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #cbd5e1; /* slate-300 */
  border-radius: 9999px;
}

.dark ::-webkit-scrollbar-thumb {
  background-color: #334155; /* slate-700 */
}

::-webkit-scrollbar-thumb:hover {
  background-color: #94a3b8; /* slate-400 */
}

.dark ::-webkit-scrollbar-thumb:hover {
  background-color: #475569; /* slate-600 */
}

/* =========================================
     ANIMACIONES BASES
     ========================================= */

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-in forwards;
}

/* Stagger animar hijos */
.stagger-1 {
  animation-delay: 0.1s;
}
.stagger-2 {
  animation-delay: 0.2s;
}
.stagger-3 {
  animation-delay: 0.3s;
}
.stagger-4 {
  animation-delay: 0.4s;
}

/* =========================================
     UTILIDADES EXTRAS
     ========================================= */

/* Remueve flechas en inputs tipo number */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* Select custom sin el chevron nativo (ya manejado por icono absoluto) */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
