/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #09090b; }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

/* Hero Background */
.hero-bg {
  background-image: url('/images/fondo.jpg');
  background-size: cover;
  background-position: center;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-fade-in { animation: fadeIn 1s ease forwards; }
.animate-fade-in-up { animation: fadeInUp 0.8s ease forwards; }
.animate-fade-in-up-delay { animation: fadeInUp 0.8s ease 0.2s forwards; opacity: 0; }
.animate-fade-in-up-delay2 { animation: fadeInUp 0.8s ease 0.4s forwards; opacity: 0; }

/* Nav Scroll State */
.nav-scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Dashboard Tabs */
.dash-tab {
  color: #a1a1aa;
  background: transparent;
}
.dash-tab.active {
  color: #fff;
  background: rgba(220, 38, 38, 0.15);
}
.dash-tab:hover:not(.active) {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

/* Product Card Hover */
.product-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(220, 38, 38, 0.3);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.5), 0 0 0 1px rgba(220,38,38,0.1);
}
.product-card:hover .product-img {
  transform: scale(1.05);
}
.product-img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-pending { background: rgba(234, 179, 8, 0.15); color: #facc15; }
.badge-completed { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.badge-scheduled { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.badge-cancelled { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.badge-progress { background: rgba(168, 85, 247, 0.15); color: #c084fc; }

/* Cart sidebar open */
.cart-open {
  transform: translateX(0) !important;
}

/* Installation card */
.install-card {
  transition: all 0.3s ease;
}
.install-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

/* Section visibility animation */
.section-visible {
  animation: fadeInUp 0.6s ease forwards;
}

/* Modal overlay animation */
.modal-visible {
  animation: fadeIn 0.3s ease forwards;
}

/* Focus styles */
input:focus, select:focus, textarea:focus {
  outline: none;
}

/* Responsive table */
@media (max-width: 768px) {
  table { font-size: 13px; }
  th, td { padding-left: 12px !important; padding-right: 12px !important; }
}

/* Custom select */
select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}