body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f3f4f6;
  color: #374151;
}

.card {
  transition: transform 0.3s;
  margin-bottom: 20px;
  height: 100%;
  border: 1px solid #3b82f6;
  background: #ffffff;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
  border-color: #1e3a8a;
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
  border: 1px solid #3b82f6;
  color: #ffffff;
  font-weight: 600;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  border-color: #60a5fa;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

#carrito-contador {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
  color: #ffffff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  text-align: center;
  line-height: 20px;
  margin-left: 5px;
  font-weight: 600;
}

.carrito-item {
  border-bottom: 1px solid #3b82f6;
  padding: 10px 0;
}

.carrito-item:last-child {
  border-bottom: none;
}

/* ===== SISTEMA DE ALERTAS PERSONALIZADAS ===== */
#alert-container {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 999999 !important;
  max-width: 400px;
  pointer-events: none;
  display: block !important;
  visibility: visible !important;
}

#alert-container .custom-alert {
  pointer-events: auto;
  display: block !important;
  visibility: visible !important;
}

.custom-alert {
  background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
  color: #ffffff !important;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
  margin-bottom: 12px;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-left: 4px solid #3b82f6;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  display: block !important;
  visibility: visible !important;
  width: 100% !important;
  min-width: 300px !important;
}

.custom-alert.show {
  transform: translateX(0);
  opacity: 1;
}

.custom-alert.success {
  background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
  color: #ffffff !important;
}

.custom-alert.error {
  background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
  color: #ff6b6b !important;
  border-left-color: #ff6b6b;
}

.custom-alert.warning {
  background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
  color: #feca57 !important;
  border-left-color: #feca57;
}

.custom-alert.info {
  background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
  color: #60a5fa !important;
  border-left-color: #60a5fa;
}

.custom-alert.confirm {
  background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
  color: #ffffff !important;
}

.custom-alert .alert-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-alert .alert-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.custom-alert .alert-message {
  flex: 1;
  font-weight: 500;
  line-height: 1.4;
}

.custom-alert .alert-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.custom-alert .alert-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
