/* ==========================================================================
   ESTILOS DEL SISTEMA DE CARRITO DE COMPRAS
   Algodón Todo Evento - Carrito profesional y responsive
   ========================================================================== */

/* ==========================================================================
   ÍCONO DEL CARRITO EN HEADER
   ========================================================================== */
.cart-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 15px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cart-icon-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-bright));
}

.cart-icon-wrapper i {
  color: white;
  font-size: 1.2rem;
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.cart-icon-wrapper.bounce {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-10px);
  }
  50% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(-5px);
  }
}

/* ==========================================================================
   MODAL DEL CARRITO
   ========================================================================== */
.cart-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cart-modal.active {
  display: flex;
  opacity: 1;
}

.cart-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.cart-modal-content {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 100%;
  background: #ffffff; /* Fondo sólido blanco - sin transparencia */
  margin-left: auto;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Header del Modal */
.cart-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px;
  border-bottom: 2px solid var(--color-gray-200);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
}

.cart-modal-header h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 1.5rem;
  margin: 0;
}

.cart-modal-header h2 i {
  font-size: 1.8rem;
}

.cart-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.cart-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Body del Modal */
.cart-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

/* Carrito Vacío */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  flex: 1;
}

.cart-empty i {
  font-size: 5rem;
  color: var(--color-gray-400);
  margin-bottom: 20px;
}

.cart-empty h3 {
  color: var(--text);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.cart-empty p {
  color: var(--text-muted);
  margin-bottom: 25px;
}

.empty-cart-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-browse {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-browse:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-browse.secondary {
  background: linear-gradient(135deg, #10b981, #34d399);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-browse.secondary:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Items del Carrito - DISEÑO LIMPIO Y PROFESIONAL */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto auto;
  grid-template-rows: auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
  position: relative;
}

.cart-item:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.cart-item-image {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  position: relative;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Badge de tipo de producto */
.item-type-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: linear-gradient(135deg, #e91e63, #c2185b);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.item-type-badge.sticker {
  background: #6B1B00;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

.cart-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cart-item-category {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
  text-transform: capitalize;
}

.cart-item-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: #3b82f6;
  margin: 0;
}

/* Colores seleccionados */
.cart-item-colors {
  font-size: 0.7rem;
  color: #64748b;
  margin: 3px 0 0 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cart-item-colors i {
  color: #6B1B00;
  font-size: 0.65rem;
}

/* Items incluidos (para eventos) */
.cart-item-includes {
  font-size: 0.7rem;
  color: #10b981;
  margin: 3px 0 0 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cart-item-includes i {
  font-size: 0.65rem;
}

/* Controles del item - MEJORADO para evitar solapamiento */
.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Display de cantidad (fijo, no editable) */
.quantity-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f4f8, #e2e8f0);
  border-radius: 8px;
  padding: 6px 10px;
  min-width: 50px;
}

.quantity-fixed {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1;
}

.quantity-unit {
  font-size: 0.55rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Botón eliminar */
.remove-btn {
  background: #f1f5f9;
  border: none;
  color: #64748b;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 0.7rem;
}

.remove-btn:hover {
  background: #94a3b8;
  color: white;
  transform: scale(1.05);
}

/* Subtotal - ahora en su propia columna de grid */
.cart-item-subtotal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding-left: 8px;
  border-left: 1px solid #e5e7eb;
  min-width: 70px;
}

.cart-item-subtotal .subtotal-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
}

/* Botones deshabilitados */
.qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

.qty-btn:disabled:hover {
  transform: none;
  background: var(--color-primary);
}

/* Section Titles */
.cart-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  padding: 15px 0 10px 0;
  margin: 10px 0;
  border-bottom: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* Item Type Badge */
.item-type-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: linear-gradient(135deg, #10b981, #34d399);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* Controles de Cantidad */
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: var(--color-primary);
  color: white;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}

.qty-btn:hover {
  background: var(--color-primary-light);
  transform: scale(1.1);
}

.qty-btn:active {
  transform: scale(0.95);
}

.qty-input {
  width: 50px;
  height: 28px;
  border: 1px solid var(--color-gray-300);
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.qty-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* Botón Eliminar */
.remove-btn {
  background: #f1f5f9;
  border: none;
  color: #64748b;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.remove-btn:hover {
  background: #94a3b8;
  color: white;
  transform: scale(1.1);
}

/* Resumen del Carrito */
.cart-summary {
  background: var(--color-gray-100);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 2px solid var(--color-gray-200);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  color: var(--text);
  font-size: 1rem;
}

.summary-row:not(:last-child) {
  border-bottom: 1px solid var(--color-gray-300);
}

.summary-row.total {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  padding-top: 15px;
}

/* Acciones del Carrito */
.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-clear-cart,
.btn-whatsapp-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-clear-cart {
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
  border: 2px solid #94a3b8;
}

.btn-clear-cart:hover {
  background: #64748b;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

.btn-whatsapp-order {
  background: linear-gradient(135deg, #25D366, #1ebe57);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   NOTIFICACIONES
   ========================================================================== */
.cart-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  max-width: 350px;
}

.cart-notification.show {
  transform: translateX(0);
}

.cart-notification i {
  font-size: 1.5rem;
}

.cart-notification.success {
  border-left: 4px solid #10b981;
}

.cart-notification.success i {
  color: #10b981;
}

.cart-notification.error {
  border-left: 4px solid #f59e0b;
}

.cart-notification.error i {
  color: #f59e0b;
}

.cart-notification.warning {
  border-left: 4px solid #f59e0b;
}

.cart-notification.warning i {
  color: #f59e0b;
}

.cart-notification.info {
  border-left: 4px solid #3b82f6;
}

.cart-notification.info i {
  color: #3b82f6;
}

.cart-notification span {
  font-weight: 500;
  color: var(--text);
}

/* ==========================================================================
   RESPONSIVE - OPTIMIZADO PARA MÓVILES
   ========================================================================== */
@media (max-width: 768px) {
  .cart-modal-content {
    max-width: 100%;
    border-radius: 0;
  }

  .cart-modal-header {
    padding: 16px 20px;
  }

  .cart-modal-header h2 {
    font-size: 1.2rem;
  }

  .cart-modal-body {
    padding: 16px;
  }

  .cart-item {
    grid-template-columns: 55px 1fr;
    grid-template-rows: auto auto;
    gap: 8px;
    padding: 10px;
  }

  .cart-item-image {
    width: 55px;
    height: 55px;
    grid-row: 1;
  }

  .cart-item-details {
    grid-row: 1;
    padding-right: 0;
  }

  .cart-item-name {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }

  .cart-item-category {
    font-size: 0.65rem;
  }

  .cart-item-price {
    font-size: 0.75rem;
  }

  /* En móvil: controles y subtotal en una fila inferior */
  .cart-item-controls {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e5e7eb;
  }

  .quantity-display {
    padding: 4px 8px;
    min-width: 45px;
    flex-direction: row;
    gap: 4px;
  }

  .quantity-fixed {
    font-size: 0.85rem;
  }

  .quantity-unit {
    font-size: 0.5rem;
  }

  .remove-btn {
    width: 26px;
    height: 26px;
    font-size: 0.65rem;
  }

  .cart-item-subtotal {
    grid-column: auto;
    grid-row: 2;
    margin-left: auto;
    border-left: none;
    padding-left: 0;
    min-width: auto;
    padding-top: 8px;
    border-top: 1px dashed transparent;
  }

  .cart-item-subtotal .subtotal-value {
    font-size: 0.9rem;
    color: #3b82f6;
  }

  .cart-notification {
    right: 10px;
    left: 10px;
    max-width: none;
    top: 10px;
  }

  .cart-icon-wrapper {
    width: 38px;
    height: 38px;
  }

  .cart-icon-wrapper i {
    font-size: 1rem;
  }

  /* Mejorar delivery options en móvil */
  .delivery-card {
    flex-wrap: wrap;
    padding: 12px;
  }

  .delivery-card i {
    font-size: 1.2rem;
  }

  .delivery-title {
    font-size: 0.85rem;
  }

  .delivery-desc {
    font-size: 0.7rem;
  }

  .delivery-price {
    width: 100%;
    text-align: right;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #e5e7eb;
  }
}

@media (max-width: 480px) {
  .cart-modal-header h2 {
    font-size: 1.1rem;
    gap: 8px;
  }

  .cart-modal-header h2 i {
    font-size: 1.3rem;
  }

  .cart-item {
    padding: 10px;
  }

  .cart-item-image {
    width: 50px;
    height: 50px;
  }

  .cart-item-name {
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
  }

  .cart-item-colors,
  .cart-item-includes {
    font-size: 0.6rem;
  }

  .cart-item-controls {
    gap: 6px;
  }

  .quantity-display {
    padding: 3px 6px;
    min-width: 40px;
  }

  .quantity-fixed {
    font-size: 0.8rem;
  }

  .cart-item-subtotal .subtotal-value {
    font-size: 0.85rem;
  }

  .summary-row {
    font-size: 0.9rem;
    padding: 8px 0;
  }

  .summary-row.total {
    font-size: 1.1rem;
  }

  .btn-clear-cart,
  .btn-send-order {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  /* Formulario más compacto */
  .cart-customer-form {
    padding: 12px;
  }

  .form-group input,
  .form-group textarea {
    padding: 10px;
    font-size: 14px;
  }

  .form-group label {
    font-size: 0.8rem;
  }
}

/* Mejoras adicionales para pantallas pequeñas */
@media (max-width: 360px) {
  .cart-item {
    grid-template-columns: 45px 1fr;
    gap: 6px;
    padding: 8px;
  }

  .cart-item-image {
    width: 45px;
    height: 45px;
  }

  .cart-item-name {
    font-size: 0.7rem;
  }

  .cart-item-price {
    font-size: 0.7rem;
  }

  .cart-item-controls {
    padding-top: 6px;
  }

  .quantity-display {
    padding: 3px 5px;
    min-width: 35px;
  }

  .quantity-fixed {
    font-size: 0.75rem;
  }

  .remove-btn {
    width: 22px;
    height: 22px;
    font-size: 0.6rem;
  }

  .cart-item-subtotal .subtotal-value {
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   SELECTOR DE ZONA GEOGRÁFICA
   ========================================================================== */
.cart-zone-selector {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #bae6fd;
}

.cart-zone-selector h3 {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-zone-selector h3 i {
  color: #FE7700;
}

.zone-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.zone-option {
  cursor: pointer;
}

.zone-option input {
  display: none;
}

.zone-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.zone-card i {
  font-size: 1.5rem;
  color: #64748b;
  transition: all 0.3s ease;
}

.zone-title {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.zone-desc {
  font-size: 0.75rem;
  color: #64748b;
}

.zone-option input:checked + .zone-card {
  border-color: #FE7700;
  background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
  box-shadow: 0 4px 12px rgba(254, 119, 0, 0.2);
}

.zone-option input:checked + .zone-card i {
  color: #FE7700;
}

.zone-note {
  margin-top: 12px;
  padding: 10px;
  background: white;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.zone-note i {
  color: #FE7700;
}

/* ==========================================================================
   MÉTODOS DE PAGO MEJORADOS
   ========================================================================== */
.cart-payment-methods {
  background: linear-gradient(135deg, #fefce8, #fef9c3);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #fde047;
}

.cart-payment-methods h3 {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-payment-methods h3 i {
  color: #eab308;
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.payment-method {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.payment-method i {
  font-size: 1.3rem;
  color: #64748b;
  transition: all 0.3s ease;
}

.payment-method span {
  font-weight: 600;
  color: var(--text);
  font-size: 0.8rem;
}

.payment-method small {
  font-size: 0.65rem;
  color: #94a3b8;
}

.payment-method:hover:not(.disabled) {
  border-color: #22c55e;
  transform: translateY(-2px);
}

.payment-method.active {
  border-color: #22c55e;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.payment-method.active i {
  color: #22c55e;
}

.payment-method.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f1f5f9;
}

.payment-method.disabled:hover {
  transform: none;
}

.coming-soon-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
}

.payment-note {
  margin-top: 12px;
  padding: 10px;
  background: white;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-note i {
  color: #22c55e;
}

/* ==========================================================================
   SECCIÓN DE TRANSFERENCIA
   ========================================================================== */
.transfer-section {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #86efac;
  margin-top: 15px;
}

.bank-info {
  margin-bottom: 15px;
}

.bank-info h4 {
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bank-info h4 i {
  color: #22c55e;
}

.bank-details {
  background: white;
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.bank-details p {
  font-size: 0.85rem;
  color: var(--text);
  margin: 0;
}

.bank-details strong {
  color: #64748b;
}

.upload-area {
  border: 2px dashed #86efac;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  margin-top: 10px;
}

.upload-area:hover,
.upload-area.drag-over {
  border-color: #22c55e;
  background: #f0fdf4;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #64748b;
}

.upload-placeholder i {
  font-size: 2rem;
  color: #22c55e;
}

.upload-placeholder small {
  font-size: 0.75rem;
}

.upload-preview {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.upload-preview img {
  max-width: 150px;
  max-height: 150px;
  border-radius: 8px;
  object-fit: cover;
}

.remove-receipt {
  position: absolute;
  top: -8px;
  right: calc(50% - 75px - 8px);
  background: #64748b;
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.remove-receipt:hover {
  background: #475569;
  transform: scale(1.1);
}

/* ==========================================================================
   MENSAJE DE PROVINCIA
   ========================================================================== */
.provincia-message {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 10px;
  padding: 15px;
  margin-top: 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #fbbf24;
}

.provincia-message i {
  color: #f59e0b;
  font-size: 1.2rem;
  margin-top: 2px;
}

.provincia-message p {
  margin: 0;
  font-size: 0.85rem;
  color: #92400e;
  line-height: 1.4;
}

/* ==========================================================================
   FORMULARIO MEJORADO
   ========================================================================== */
.cart-customer-form .form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text);
  font-size: 0.9rem;
}

.cart-customer-form .form-group label i {
  color: #64748b;
  font-size: 0.85rem;
}

.cart-customer-form .required {
  color: #f59e0b;
}

.cart-customer-form input[type="date"],
.cart-customer-form input[type="time"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.cart-customer-form input[type="date"]:focus,
.cart-customer-form input[type="time"]:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Botón WhatsApp actualizado */
.btn-whatsapp-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.btn-whatsapp-order:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ==========================================================================
   RESPONSIVE PARA NUEVOS ELEMENTOS
   ========================================================================== */
@media (max-width: 768px) {
  .zone-options {
    grid-template-columns: 1fr;
  }

  .payment-methods-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .payment-method:nth-child(3) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .zone-card {
    padding: 12px 8px;
  }

  .zone-title {
    font-size: 0.85rem;
  }

  .payment-methods-grid {
    grid-template-columns: 1fr 1fr;
  }

  .payment-method span {
    font-size: 0.7rem;
  }

  .bank-details {
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   ESTILOS ADICIONALES PARA CONFIANZA Y PROFESIONALISMO
   ========================================================================== */

/* Sección de títulos del carrito */
.cart-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin: 16px 0 10px 0;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.cart-section-title:first-child {
  margin-top: 0;
}

.cart-section-title i {
  font-size: 1rem;
}

/* Badge de confianza */
.trust-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #166534;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
}

.trust-badge-inline i {
  color: #22c55e;
}

/* Mensaje de envío claro */
.shipping-info-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1px solid #bae6fd;
  border-radius: 10px;
  margin-bottom: 16px;
}

.shipping-info-banner i {
  font-size: 1.3rem;
  color: #E19100;
}

.shipping-info-banner span {
  font-size: 0.85rem;
  color: #0c4a6e;
}

.shipping-info-banner strong {
  color: #0369a1;
}

/* Mejoras al resumen */
.cart-summary {
  background: linear-gradient(135deg, #1e293b, #334155) !important;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  color: white;
}

.cart-summary .summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cart-summary .summary-row:last-of-type {
  border-bottom: none;
}

.cart-summary .summary-row.total {
  font-size: 1.15rem;
  font-weight: 700;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 2px solid rgba(255,255,255,0.2);
  border-bottom: none;
}

.cart-summary .summary-row span:last-child.free {
  color: #4ade80;
}

.cart-summary .price-note {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  padding: 0;
  border: none;
}

/* Botones de acción mejorados */
.cart-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.btn-clear-cart {
  flex: 0 0 auto;
  padding: 12px 16px;
  background: #f1f5f9;
  color: #64748b;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-clear-cart:hover {
  background: #64748b;
  color: white;
  border-color: #64748b;
}

.btn-send-order {
  flex: 1;
  padding: 14px 20px;
  background: linear-gradient(135deg, #e91e63, #c2185b);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.btn-send-order:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.btn-send-order:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Mensaje de confianza al final - VERSIÓN ANTIGUA (mantener para compatibilidad) */
.trust-message {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 14px;
  margin-top: 16px;
}

.trust-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.trust-icons span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #166534;
  font-weight: 500;
}

.trust-icons i {
  color: #22c55e;
  font-size: 0.9rem;
}

/* Animación de carga */
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}

.loading-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}

/* ==========================================================================
   MENSAJE DE CONFIANZA MEJORADO
   ========================================================================== */
.trust-message-box {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid #86efac;
  border-radius: 12px;
  padding: 0;
  margin-top: 16px;
  overflow: hidden;
}

.trust-header {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}

.trust-header i {
  font-size: 1.1rem;
}

.trust-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  background: white;
  border-radius: 8px;
  border: 1px solid #d1fae5;
}

.trust-item > i {
  font-size: 1.1rem;
  color: #22c55e;
  margin-top: 2px;
  flex-shrink: 0;
}

.trust-item > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-item strong {
  font-size: 0.8rem;
  color: #166534;
}

.trust-item small {
  font-size: 0.7rem;
  color: #4b5563;
  line-height: 1.3;
}

.trust-footer {
  background: #166534;
  color: #dcfce7;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
}

.trust-footer i {
  color: #4ade80;
}

/* Responsive para mensaje de confianza */
@media (max-width: 480px) {
  .trust-header {
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  .trust-content {
    padding: 10px;
    gap: 8px;
  }

  .trust-item {
    padding: 6px 8px;
    gap: 8px;
  }

  .trust-item > i {
    font-size: 1rem;
  }

  .trust-item strong {
    font-size: 0.75rem;
  }

  .trust-item small {
    font-size: 0.65rem;
  }

  .trust-footer {
    font-size: 0.65rem;
    padding: 6px 12px;
  }
}
