/* ===== MODAL DE ESTADO DE PEDIDO - VERSIÓN MEJORADA ===== */
.order-status-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0;
}

.order-status-modal.show {
  opacity: 1;
  visibility: visible;
}

.order-status-modal .modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  position: relative;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.order-status-modal.show .modal-content {
  transform: translateY(0);
}

.order-status-modal .close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.08);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #555;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.order-status-modal .close-modal:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #333;
  transform: scale(1.1);
}

.order-status-modal h2 {
  margin: 0 0 24px 0;
  font-size: 26px;
  font-weight: 700;
  color: #2d3748;
  text-align: center;
  padding: 24px 20px 0;
  position: relative;
}

.order-status-modal h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #ff6b35, #ff8c42);
  border-radius: 2px;
}

/* Header del estado */
.status-header {
  padding: 20px;
  margin: 0 20px 24px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-left: 5px solid;
}

.status-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  opacity: 0.05;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center right;
}

.status-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 24px;
  color: white;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.status-message {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.4;
}

/* Detalles del pedido */
.order-details {
  margin: 0 20px 24px;
  padding: 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.order-details h3 {
  margin: 0 0 18px 0;
  font-size: 19px;
  font-weight: 700;
  color: #2d3748;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f3f5;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f3f5;
  align-items: flex-start;
}

.detail-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.detail-item span:first-child {
  font-weight: 600;
  color: #4a5568;
  flex: 1;
}

.detail-item span:last-child {
  color: #2d3748;
  text-align: right;
  max-width: 60%;
  font-weight: 500;
}

/* Lista de productos */
.order-products {
  margin: 0 20px 24px;
}

.order-products h3 {
  margin: 0 0 18px 0;
  font-size: 19px;
  font-weight: 700;
  color: #2d3748;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 12px;
  border-bottom: 2px solid #f1f3f5;
}

.products-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: white;
  border-radius: 16px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.product-item img {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #f8f9fa;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.product-info {
  flex: 1;
  min-width: 0;
}

.product-info span:first-child {
  display: block;
  font-weight: 600;
  color: #2d3748;
  font-size: 15px;
  margin-bottom: 6px;
  line-height: 1.4;
}

.product-info span:last-child {
  color: #718096;
  font-size: 14px;
  font-weight: 500;
}

.especificacion-producto {
  font-size: 13px;
  color: #6b7280;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background-color: #f9fafb;
  border-left: 3px solid #ff6b35;
  line-height: 1.4;
}

.product-total {
  font-weight: 700;
  color: #ff6b35;
  align-self: center;
  flex-shrink: 0;
  font-size: 16px;
}

/* Resumen de pago */
.order-summary {
  margin: 0 20px 24px;
  padding: 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.order-summary h3 {
  margin: 0 0 18px 0;
  font-size: 19px;
  font-weight: 700;
  color: #2d3748;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f3f5;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f3f5;
  font-size: 16px;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-item.total {
  border-bottom: none;
  border-top: 2px solid #ff6b35;
  padding-top: 14px;
  font-weight: 700;
  font-size: 20px;
  margin-top: 8px;
}

.summary-item.total span:last-child {
  color: #ff6b35;
}

/* Recordatorio de pago */
.payment-reminder {
  background: linear-gradient(135deg, #fff3e0 0%, #ffecb3 100%);
  border: 1px solid #ffb74d;
  border-radius: 14px;
  padding: 18px;
  margin: 0 20px 24px;
  font-size: 15px;
  color: #e65100;
  line-height: 1.5;
  box-shadow: 0 4px 10px rgba(255, 167, 38, 0.15);
}

/* Botones de cancelación */
.cancel-button-container {
  margin: 24px 20px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.cancel-info-box {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 1px solid #a5d6a7;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  margin-bottom: 16px;
  font-size: 15px;
  color: #2e7d32;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(76, 175, 80, 0.1);
}

.cancel-order-btn {
  width: 100%;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.cancel-order-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4);
}

.cancel-order-btn:disabled {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  cursor: not-allowed;
  box-shadow: none;
}

.cancel-order-btn.warning-state {
  background: linear-gradient(135deg, #fd7e14 0%, #f76707 100%);
}

.cancel-order-btn.warning-state:hover {
  background: linear-gradient(135deg, #e65a10 0%, #d9480f 100%);
}

.cancel-order-btn.final-warning {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  animation: pulseWarning 1.5s infinite;
}

.cancel-timer {
  font-weight: 700;
  background: rgba(255, 255, 255, 0.25);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 15px;
}

.cancel-warning-text {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  margin-top: 10px;
  line-height: 1.4;
}

.cancel-time-expired {
  font-size: 13px;
  color: #dc3545;
  text-align: center;
  margin-top: 10px;
  font-weight: 600;
}

@keyframes pulseWarning {
  0% { transform: scale(1); box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3); }
  50% { transform: scale(1.02); box-shadow: 0 6px 16px rgba(220, 53, 69, 0.5); }
  100% { transform: scale(1); box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3); }
}

/* Alertas de estado */
.status-alert {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 18px 24px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  z-index: 10000;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 90%;
  line-height: 1.5;
}

.status-alert.entregado {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.95) 0%, rgba(21, 128, 61, 0.95) 100%);
}

.status-alert.cancelado {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(185, 28, 28, 0.95) 100%);
}

/* Scroll personalizado */
.order-status-modal .modal-content {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px;
}

.order-status-modal .modal-content::-webkit-scrollbar {
  width: 8px;
}

.order-status-modal .modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  margin: 10px;
}

.order-status-modal .modal-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.order-status-modal .modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (min-width: 768px) {
  .order-status-modal {
    align-items: center;
  }
  
  .order-status-modal .modal-content {
    border-radius: 24px;
    max-height: 85vh;
  }
  
  .order-status-modal.show .modal-content {
    transform: translateY(0) scale(1);
  }
  
  .order-status-modal .modal-content {
    transform: translateY(50px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
}

@media (min-width: 1025px) {
  .order-status-modal .modal-content {
    max-width: 560px;
  }
}

/* CORRECCIÓN PARA DISPOSITIVOS MÓVILES - PEGADO AL FONDO */
@media (max-width: 767px) {
  .order-status-modal {
    align-items: flex-end;
    padding: 0; /* Eliminamos el padding superior */
  }
  
  .order-status-modal .modal-content {
    margin-bottom: 0; /* Eliminamos el margen inferior */
    border-radius: 24px 24px 0 0;
    max-height: 90vh;
  }
  
  /* Ajustes adicionales para pantallas pequeñas */
  .order-status-modal h2 {
    font-size: 22px;
    padding-top: 20px;
  }
  
  .detail-item {
    flex-direction: column;
    gap: 6px;
  }
  
  .detail-item span:last-child {
    max-width: 100%;
    text-align: left;
  }
  
  .product-item {
    flex-wrap: wrap;
  }
  
  .product-total {
    margin-left: auto;
    margin-top: 10px;
  }
  
  .status-header,
  .order-details,
  .order-products,
  .order-summary,
  .payment-reminder,
  .cancel-button-container {
    margin-left: 16px;
    margin-right: 16px;
  }
}

/* Estados específicos con iconos de fondo */
.status-header[style*="border-color: #facc15"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23facc15'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z'/%3E%3C/svg%3E"); }
.status-header[style*="border-color: #3b82f6"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233b82f6'%3E%3Cpath d='M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 9h-2V5h2v6zm0 4h-2v-2h2v2z'/%3E%3C/svg%3E"); }
.status-header[style*="border-color: #f59e0b"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f59e0b'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E"); }
.status-header[style*="border-color: #8b5cf6"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238b5cf6'%3E%3Cpath d='M12 2c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 14.5c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6z'/%3E%3C/svg%3E"); }
.status-header[style*="border-color: #22c55e"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2322c55e'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E"); }
.status-header[style*="border-color: #ef4444"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ef4444'%3E%3Cpath d='M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z'/%3E%3C/svg%3E"); }

.panel-item#panelOrderStatus {
  position: relative;
  display: none; /* Oculto por defecto */
}

.panel-item#panelOrderStatus .status-indicator {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff6b35;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.panel-item#panelOrderStatus.active {
  display: flex;
}/* Mejoras para el botón de estado de pedido */
.panel-item#panelOrderStatus.active {
  animation: pulseStatus 2s infinite;
}

@keyframes pulseStatus {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.panel-item#panelOrderStatus .status-indicator {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: pulse 2s infinite;
}

/* Estados específicos */
.panel-item#panelOrderStatus[data-status="entregado"] {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
}

.panel-item#panelOrderStatus[data-status="cancelado"] {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}

/*coment*/


/* ===== MODAL DE ESTADO DE PEDIDO - VERSIÓN MEJORADA ===== */
.order-status-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0;
}

/* ... (mantén todo el CSS existente hasta la parte responsive) ... */

/* CORRECCIÓN PARA DISPOSITIVOS MÓVILES - CON ESPACIO SUPERIOR */
@media (max-width: 767px) {
  .order-status-modal {
    align-items: flex-end;
    padding: 40px 0 0 0; /* Añadimos padding superior */
  }
  
  .order-status-modal .modal-content {
    margin-bottom: 0;
    border-radius: 24px 24px 0 0;
    max-height: 85vh; /* Reducimos la altura máxima */
  }
  
  /* Ajustes adicionales para pantallas pequeñas */
  .order-status-modal h2 {
    font-size: 22px;
    padding-top: 20px;
  }
  
  .detail-item {
    flex-direction: column;
    gap: 6px;
  }
  
  .detail-item span:last-child {
    max-width: 100%;
    text-align: left;
  }
  
  .product-item {
    flex-wrap: wrap;
  }
  
  .product-total {
    margin-left: auto;
    margin-top: 10px;
  }
  
  .status-header,
  .order-details,
  .order-products,
  .order-summary,
  .payment-reminder,
  .cancel-button-container {
    margin-left: 16px;
    margin-right: 16px;
  }
  
  /* Asegurar que el contenido sea scrollable si es necesario */
  .order-status-modal .modal-content {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 380px) {
  .order-status-modal {
    padding: 30px 0 0 0; /* Menos padding en pantallas muy pequeñas */
  }
  
  .order-status-modal .modal-content {
    max-height: 82vh; /* Ajuste de altura */
  }
}

/* Ajustes para pantallas en orientación horizontal */
@media (max-width: 767px) and (max-height: 500px) {
  .order-status-modal {
    padding: 20px 0 0 0;
  }
  
  .order-status-modal .modal-content {
    max-height: 90vh; /* Más altura en modo horizontal */
  }
}


/* Estilos para la confirmación de cancelación */
.cancel-confirmation {
  margin-top: 20px;
  padding: 20px;
  background: rgba(239, 68, 68, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  animation: fadeIn 0.3s ease;
}

.confirmation-content {
  text-align: center;
}

.confirmation-content h4 {
  margin: 0 0 10px 0;
  color: #dc3545;
  font-size: 18px;
}

.confirmation-content p {
  margin: 0 0 20px 0;
  color: #6c757d;
  font-size: 14px;
}

.confirmation-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.confirm-btn, .cancel-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.confirm-btn {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
}

.confirm-btn:hover {
  background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
  transform: translateY(-2px);
}

.cancel-btn {
  background: #f8f9fa;
  color: #6c757d;
  border: 1px solid #dee2e6;
}

.cancel-btn:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* Responsive */
@media (min-width: 768px) {
  .order-status-modal {
    align-items: center; /* Centrado vertical en desktop */
    padding-top: 60px; /* Añadido: espacio superior para PC */
  }
  
  .order-status-modal .modal-content {
    border-radius: 24px;
    max-height: 75vh; /* Reducido ligeramente para más espacio arriba */
    margin-top: -50px; /* Añadido: subir el modal 50px más arriba */
  }
  
  .order-status-modal.show .modal-content {
    transform: translateY(0) scale(1);
  }
  
  .order-status-modal .modal-content {
    transform: translateY(40px) scale(0.95); /* Ajustado: menos desplazamiento inicial */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
}

@media (min-width: 1025px) {
  .order-status-modal {
    padding-top: 80px; /* Más espacio en pantallas grandes */
  }
  
  .order-status-modal .modal-content {
    max-width: 560px;
    margin-top: -70px; /* Subir aún más en pantallas grandes */
  }
}

.no-orders-content {
  text-align: center;
  padding: 2rem;
}

.no-orders-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-orders-content h3 {
  margin-bottom: 1rem;
  color: #333;
}

.no-orders-content p {
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.no-orders-button {
  background-color: #ff6b35;
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.no-orders-button:hover {
  background-color: #e55a2b;
}


/* Asegurar que el panel de estado de pedido siempre sea visible */
.panel-item#panelOrderStatus {
  display: flex !important; /* Forzar visibilidad */
  position: relative;
}

/* Ocultar el indicador por defecto */
.panel-item#panelOrderStatus .status-indicator {
  display: none; /* Oculto por defecto */
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Mostrar solo cuando está activo y hay animación */
.panel-item#panelOrderStatus.active .status-indicator {
  display: block;
  animation: pulse 2s infinite;
}

/* Animación solo para el estado activo (cuando hay pedido) */
.panel-item#panelOrderStatus.active {
  animation: pulseStatus 2s infinite;
}

/* Quitar la animación cuando no está activo */
.panel-item#panelOrderStatus:not(.active) {
  animation: none;
}