/* ==========================================================================
   ESTILOS ADICIONALES PARA CARRITO V3
   Modal de resumen de eventos, métodos de pago, títulos mejorados
   Versión: 2.0 - Diseño único con gradientes personalizados y animaciones suaves
   ========================================================================== */

/* ==========================================================================
   MODAL DE RESUMEN DE EVENTO - Diseño único con efectos de luz y animaciones
   ========================================================================== */
.event-summary-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.event-summary-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

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

.event-summary-content {
  position: relative;
  width: 90%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(145deg, #ffffff, #f8fafc); /* Gradiente sutil para fondo único */
  border-radius: 24px; /* Bordes más suaves */
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.5); /* Sombra con efecto de luz interna */
  animation: slideInUp 0.4s ease, glowPulse 2s infinite alternate ease-in-out;
  z-index: 1;
}

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

@keyframes glowPulse {
  from {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }
  to {
    box-shadow: 0 25px 60px rgba(37, 99, 235, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }
}

.event-summary-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.8);
  color: #64748b; /* Gris suave para cierre */
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.event-summary-close:hover {
  background: #64748b;
  color: white;
  transform: rotate(180deg) scale(1.1);
}

.event-summary-body {
  padding: 40px 30px 30px 30px;
}

.event-summary-header {
  text-align: center;
  margin-bottom: 30px;
}

.event-summary-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px auto;
  background: linear-gradient(135deg, #10b981, #34d399, #059669); /* Gradiente único con más tonos verdes */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  animation: scaleIn 0.5s ease, rotateGlow 5s infinite linear;
}

@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  }
  50% {
    transform: rotate(180deg);
    box-shadow: 0 4px 25px rgba(16, 185, 129, 0.6);
  }
  100% {
    transform: rotate(360deg);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  }
}

.event-summary-icon i {
  font-size: 2.5rem;
  color: white;
}

.event-summary-header h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text, #333);
  margin: 0 0 10px 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Sombra sutil para texto único */
}

.event-summary-name {
  font-size: 1.1rem;
  color: var(--text-muted, #666);
  margin: 0;
  font-weight: 500;
  font-style: italic; /* Estilo único para nombre */
}

.event-summary-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.event-summary-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(52, 211, 153, 0.05));
  border-radius: 12px;
  border: 2px dashed #10b981; /* Borde dashed para diseño único */
  box-shadow: inset 0 2px 10px rgba(16, 185, 129, 0.1);
}

.price-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text, #333);
}

.price-value {
  font-size: 2rem;
  font-weight: 800;
  color: #10b981;
  text-shadow: 0 1px 3px rgba(16, 185, 129, 0.3); /* Sombra verde para precio único */
}

.event-summary-includes {
  background: linear-gradient(145deg, #f9fafb, #e5e7eb); /* Gradiente único para sección */
  padding: 20px;
  border-radius: 12px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.event-summary-includes h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text, #333);
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-summary-includes h4 i {
  color: #10b981;
  animation: iconPulse 1.5s infinite;
}

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

.event-summary-includes ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-summary-includes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text, #333);
  line-height: 1.5;
  position: relative;
  padding-left: 20px;
}

.event-summary-includes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(16, 185, 129, 0.5); /* Punto único con glow */
}

.event-summary-includes li i {
  color: #10b981;
  font-size: 0.9rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.event-summary-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-direction: row; /* Mantener horizontal */
}

.btn-continue-shopping,
.btn-view-cart {
  flex: 1;
  min-width: 200px;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-continue-shopping {
  background: linear-gradient(135deg, #3b82f6, #2563eb); /* Gradiente azul único */
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-continue-shopping:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-view-cart {
  background: linear-gradient(135deg, #10b981, #34d399, #059669); /* Gradiente verde extendido */
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-view-cart:hover {
  background: linear-gradient(135deg, #059669, #10b981);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   MÉTODOS DE PAGO - Tarjetas con hover único
   ========================================================================== */
.cart-payment-methods {
  padding: 20px;
  background: linear-gradient(145deg, #f9fafb, #e5e7eb); /* Gradiente único */
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cart-payment-methods h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text, #333);
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-payment-methods h3 i {
  color: var(--color-primary, #2563eb);
  animation: iconPulse 1.5s infinite;
}

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

.payment-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 10px;
  background: white;
  border-radius: 10px;
  border: 2px solid var(--color-gray-200, #e5e7eb);
  transition: all 0.3s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.payment-method::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.payment-method:hover::before {
  opacity: 1;
}

.payment-method:hover {
  border-color: var(--color-primary, #2563eb);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  transform: translateY(-4px) scale(1.02); /* Escala sutil para único hover */
}

.payment-method i {
  font-size: 1.8rem;
  color: var(--color-primary, #2563eb);
  transition: transform 0.3s ease;
}

.payment-method:hover i {
  transform: rotate(15deg); /* Rotación única en hover */
}

.payment-method span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text, #333);
  text-align: center;
  line-height: 1.2;
}

/* ==========================================================================
   TÍTULOS DE SECCIONES MEJORADOS - Con gradiente y sombra única
   ========================================================================== */
.cart-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: white !important;
  padding: 15px 20px;
  margin: 20px 0 15px 0;
  background: linear-gradient(135deg, #2563eb, #3b82f6, #1d4ed8); /* Gradiente azul extendido único */
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.3); /* Luz interna */
  position: relative;
  overflow: hidden;
}

.cart-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, white, transparent);
  opacity: 0.3;
}

.cart-section-title i {
  font-size: 1.2rem;
  color: white !important;
  animation: iconPulse 1.5s infinite;
}

/* Primera sección sin margin-top */
.cart-section-title:first-child {
  margin-top: 0;
}

/* ==========================================================================
   NOTA DE PRECIOS CON IVA - Diseño único con fondo texturizado
   ========================================================================== */
.price-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted, #666);
  margin: 10px 0 0 0;
  padding: 10px;
  background: rgba(37, 99, 235, 0.05) url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="4" height="4" viewBox="0 0 4 4"%3E%3Cpath fill="%233b82f6" fill-opacity="0.1" d="M1 3h1v1H1V3zm2-2h1v1H3V1z"%3E%3C/path%3E%3C/svg%3E'); /* Textura única */
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed #3b82f6; /* Borde dashed único */
}

.price-note i {
  color: var(--color-primary, #2563eb);
  animation: iconPulse 1.5s infinite;
}

/* ==========================================================================
   AJUSTES AL RESUMEN DEL CARRITO - Con gradiente y sombras
   ========================================================================== */
.cart-summary {
  background: linear-gradient(145deg, #f9fafb, #e5e7eb); /* Gradiente único */
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 2px solid var(--color-gray-200, #e5e7eb);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.summary-row.total {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary, #2563eb);
  padding-top: 15px;
  border-top: 2px solid var(--color-gray-300, #d1d5db);
  margin-top: 10px;
  text-shadow: 0 1px 2px rgba(37, 99, 235, 0.2); /* Sombra única para total */
}

/* ==========================================================================
   FORMULARIO DE DATOS DEL CLIENTE - Diseño único con campos animados
   ========================================================================== */
.cart-customer-form {
  background: linear-gradient(145deg, #f9fafb, #e5e7eb); /* Gradiente único */
  padding: 16px;
  border-radius: 12px;
  margin: 16px 0;
  border: 2px solid #e5e7eb;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.cart-customer-form h3 {
  margin: 0 0 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-customer-form h3 i {
  color: #3b82f6;
  animation: iconPulse 1.5s infinite;
}

.form-group {
  margin-bottom: 12px;
  position: relative;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group label i {
  color: #6b7280;
  font-size: 14px;
}

.form-group .required {
  color: #f59e0b;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
  background: white;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05); /* Sombra interna única */
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), inset 0 2px 4px rgba(59, 130, 246, 0.1); /* Glow interno único */
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca3af;
}

.form-group textarea {
  resize: vertical;
  min-height: 60px;
}

/* Botón WhatsApp deshabilitado */
.btn-whatsapp-order:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 768px) {
  .cart-customer-form {
    padding: 14px;
    margin: 14px 0;
  }

  .cart-customer-form h3 {
    font-size: 15px;
  }

  .form-group label {
    font-size: 12px;
  }

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

/* ==========================================================================
   NUEVOS ELEMENTOS DEL MODAL DE EVENTOS - INFO Y WHATSAPP
   ========================================================================== */
.event-summary-info {
  background: linear-gradient(145deg, #f0f9ff, #e0f2fe);
  border-radius: 12px;
  padding: 15px;
  border: 1px solid #bae6fd;
}

.event-summary-info .info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: #0c4a6e;
  font-size: 0.9rem;
}

.event-summary-info .info-item:not(:last-child) {
  border-bottom: 1px dashed #bae6fd;
}

.event-summary-info .info-item i {
  color: #FE7700;
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.event-summary-whatsapp {
  margin-top: 15px;
  text-align: center;
}

.btn-whatsapp-direct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 25px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-direct:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  background: linear-gradient(135deg, #128C7E, #25D366);
}

.btn-whatsapp-direct i {
  font-size: 1.2rem;
}

/* ==========================================================================
   MODAL RESPONSIVE MEJORADO
   ========================================================================== */
@media (max-width: 600px) {
  .event-summary-content {
    width: 95%;
    max-height: 95vh;
    border-radius: 16px;
  }

  .event-summary-body {
    padding: 30px 20px 20px 20px;
  }

  .event-summary-icon {
    width: 60px;
    height: 60px;
  }

  .event-summary-icon i {
    font-size: 1.8rem;
  }

  .event-summary-header h3 {
    font-size: 1.4rem;
  }

  .price-value {
    font-size: 1.6rem;
  }

  .event-summary-actions {
    flex-direction: column;
  }

  .btn-continue-shopping,
  .btn-view-cart {
    min-width: 100%;
  }

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

/* ==========================================================================
   ESTILOS PARA MÉTODO DE ENTREGA
   ========================================================================== */
.cart-delivery-method {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  border: 1px solid #e2e8f0;
}

.cart-delivery-method h3 {
  font-size: 1rem;
  color: #1e293b;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-delivery-method h3 i {
  color: #e91e63;
}

.delivery-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.delivery-option {
  cursor: pointer;
}

.delivery-option input[type="radio"] {
  display: none;
}

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

.delivery-option input:checked + .delivery-card {
  border-color: #e91e63;
  background: linear-gradient(135deg, #fce4ec, #fff);
  box-shadow: 0 2px 10px rgba(233, 30, 99, 0.15);
}

.delivery-card i {
  font-size: 1.5rem;
  color: #64748b;
  width: 40px;
  text-align: center;
}

.delivery-option input:checked + .delivery-card i {
  color: #e91e63;
}

.delivery-info {
  flex: 1;
}

.delivery-title {
  display: block;
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95rem;
}

.delivery-desc {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 2px;
}

.delivery-price {
  font-weight: 700;
  color: #1e293b;
  font-size: 1rem;
}

.delivery-price.free {
  color: #22c55e;
}

.delivery-price.quote {
  color: #f59e0b;
  font-size: 0.85rem;
}

/* ==========================================================================
   RESUMEN DE COSTOS
   ========================================================================== */
.cart-summary {
  background: linear-gradient(135deg, #1e293b, #334155);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  color: white;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.95rem;
}

.summary-row:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.summary-row.total {
  font-size: 1.2rem;
  font-weight: 700;
  padding-top: 15px;
  margin-top: 5px;
  border-top: 2px solid rgba(255,255,255,0.2);
}

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

.price-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   SECCIÓN DE PAGO
   ========================================================================== */
.cart-payment-section {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  border: 1px solid #e2e8f0;
}

.cart-payment-section h3 {
  font-size: 1rem;
  color: #1e293b;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-payment-section h3 i {
  color: #e91e63;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.payment-option {
  cursor: pointer;
}

.payment-option--soon {
  cursor: not-allowed;
}

.payment-option input[type="radio"] {
  display: none;
}

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

.payment-option--soon .payment-card {
  background: #f8fafc;
  border-style: dashed;
  opacity: 0.86;
}

.payment-option input:checked + .payment-card {
  border-color: #e91e63;
  background: linear-gradient(135deg, #fce4ec, #fff);
}

.payment-card i {
  font-size: 1.3rem;
  color: #64748b;
  width: 30px;
  text-align: center;
}

.payment-option input:checked + .payment-card i {
  color: #e91e63;
}

.coming-soon-badge {
  flex: 0 0 auto;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.payment-info {
  flex: 1;
}

.payment-title {
  display: block;
  font-weight: 600;
  color: #1e293b;
  font-size: 0.9rem;
}

.payment-desc {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
}

#payment-efectivo-option {
  display: none;
}

/* ==========================================================================
   INFORMACIÓN BANCARIA
   ========================================================================== */
.bank-info-section {
  margin-top: 15px;
}

.bank-card {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 15px;
}

.bank-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #065f46;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.bank-header i {
  color: #10b981;
}

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

.bank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.bank-row:last-child {
  border-bottom: none;
}

.bank-label {
  color: #64748b;
  font-size: 0.85rem;
  min-width: 120px;
}

.bank-value {
  font-weight: 600;
  color: #1e293b;
  flex: 1;
}

.bank-value.highlight {
  color: #e91e63;
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
}

.copy-btn {
  background: #f1f5f9;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: #e2e8f0;
  color: #e91e63;
}

.bank-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 8px;
  font-size: 0.8rem;
  color: #065f46;
}

.bank-trust i {
  color: #10b981;
}

/* ==========================================================================
   OPCIONES DE MONTO DE PAGO
   ========================================================================== */
.payment-amount-section {
  margin-top: 20px;
}

.payment-amount-section h4 {
  font-size: 0.9rem;
  color: #1e293b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-amount-section h4 i {
  color: #e91e63;
}

.amount-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.amount-option {
  cursor: pointer;
}

.amount-option input[type="radio"] {
  display: none;
}

.amount-card {
  text-align: center;
  padding: 15px 10px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
}

.amount-option input:checked + .amount-card {
  border-color: #e91e63;
  background: linear-gradient(135deg, #fce4ec, #fff);
}

.amount-card.recommended {
  border-color: #22c55e;
}

.amount-option input:checked + .amount-card.recommended {
  border-color: #22c55e;
  background: linear-gradient(135deg, #dcfce7, #fff);
}

.recommended-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #22c55e;
  color: white;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.amount-percent {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}

.amount-value {
  display: block;
  font-size: 1rem;
  color: #e91e63;
  font-weight: 600;
  margin: 5px 0;
}

.amount-desc {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
}

/* ==========================================================================
   ÁREA DE SUBIDA DE COMPROBANTE
   ========================================================================== */
.upload-section {
  margin-top: 20px;
}

.upload-section label {
  display: block;
  font-size: 0.9rem;
  color: #1e293b;
  margin-bottom: 10px;
  font-weight: 500;
}

.upload-section label i {
  color: #e91e63;
  margin-right: 5px;
}

.upload-area {
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  padding: 20px;
  background: #f8fafc;
  transition: all 0.3s ease;
}

.upload-area.drag-over {
  border-color: #e91e63;
  background: #fce4ec;
}

.upload-placeholder {
  text-align: center;
  cursor: pointer;
  padding: 15px;
}

.upload-placeholder i {
  font-size: 2.5rem;
  color: #94a3b8;
  margin-bottom: 10px;
}

.upload-placeholder span {
  display: block;
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.upload-placeholder small {
  color: #94a3b8;
  font-size: 0.75rem;
}

.upload-preview {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  background: white;
  border-radius: 8px;
}

.upload-preview img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.upload-preview span {
  flex: 1;
  font-size: 0.85rem;
  color: #1e293b;
  word-break: break-all;
}

.remove-receipt {
  background: #f1f5f9;
  color: #64748b;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.remove-receipt:hover {
  background: #e2e8f0;
}

/* ==========================================================================
   SECCIÓN DE FACTURACIÓN
   ========================================================================== */
.cart-billing-section {
  background: #f8fafc;
  border-radius: 12px;
  margin-bottom: 15px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.billing-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.billing-header:hover {
  background: #f1f5f9;
}

.billing-header h3 {
  flex: 1;
  font-size: 0.95rem;
  color: #1e293b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.billing-header h3 i {
  color: #64748b;
}

.optional-badge {
  background: #e2e8f0;
  color: #64748b;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.toggle-icon {
  color: #64748b;
  transition: transform 0.3s;
}

.billing-header.open .toggle-icon {
  transform: rotate(180deg);
}

.billing-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
}

.billing-content.show {
  max-height: 300px;
  padding: 0 20px 20px 20px;
}

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

.provincia-message i {
  font-size: 2rem;
  color: #25D366;
}

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

.provincia-message p strong {
  display: block;
  margin-bottom: 5px;
  color: #78350f;
}

/* ==========================================================================
   MENSAJE DE CONFIANZA
   ========================================================================== */
.trust-message {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 15px;
  margin-top: 15px;
}

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

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

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

/* ==========================================================================
   BOTÓN ENVIAR PEDIDO
   ========================================================================== */
.btn-send-order {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 25px;
  background: linear-gradient(135deg, #e91e63, #c2185b);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  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);
  background: linear-gradient(135deg, #c2185b, #e91e63);
}

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

.btn-send-order i {
  font-size: 1.1rem;
}

/* ==========================================================================
   MODAL DE CONFIRMACIÓN DE PEDIDO
   ========================================================================== */
.order-confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.order-confirm-modal.active {
  opacity: 1;
  visibility: visible;
}

.order-confirm-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.order-confirm-content {
  position: relative;
  width: 90%;
  max-width: 450px;
  max-height: 90vh;
  background: white;
  border-radius: 20px;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.order-confirm-modal.active .order-confirm-content {
  transform: scale(1);
}

.order-confirm-body {
  padding: 30px;
  text-align: center;
}

.confirm-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.confirm-icon.success {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

.confirm-icon.success i {
  font-size: 2.5rem;
  color: #22c55e;
}

.order-confirm-body h2 {
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 10px;
}

.order-number {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.order-number strong {
  color: #e91e63;
  font-family: 'Courier New', monospace;
}

.confirm-details {
  background: #f8fafc;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
}

.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.confirm-row .amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: #e91e63;
}

.confirm-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.8rem;
  color: #64748b;
}

.confirm-note i {
  color: #3b82f6;
}

.confirm-bank-info {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  text-align: left;
}

.confirm-bank-info h4 {
  font-size: 0.9rem;
  color: #065f46;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.confirm-bank-info h4 i {
  color: #10b981;
}

.bank-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.85rem;
}

.bank-detail span {
  color: #64748b;
  min-width: 100px;
}

.bank-detail strong {
  color: #1e293b;
}

.copy-small {
  background: #d1fae5;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  color: #065f46;
  font-size: 0.75rem;
}

.confirm-instructions {
  text-align: left;
  margin-bottom: 20px;
}

.confirm-instructions h4 {
  font-size: 0.9rem;
  color: #1e293b;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.confirm-instructions h4 i {
  color: #e91e63;
}

.confirm-instructions ol {
  margin: 0;
  padding-left: 20px;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.8;
}

.confirm-instructions li strong {
  color: #1e293b;
}

.confirm-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.btn-confirm-close {
  flex: 1;
  padding: 12px 20px;
  background: linear-gradient(135deg, #e91e63, #c2185b);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-confirm-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.btn-confirm-whatsapp {
  flex: 1;
  padding: 12px 20px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
}

.btn-confirm-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.confirm-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: #f0fdf4;
  border-radius: 8px;
  font-size: 0.75rem;
  color: #166534;
}

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

/* ==========================================================================
   RESPONSIVE PARA NUEVOS ELEMENTOS
   ========================================================================== */
@media (max-width: 600px) {
  .delivery-card {
    flex-wrap: wrap;
    gap: 10px;
  }

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

  .delivery-info {
    flex: 1;
    min-width: 150px;
  }

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

  .amount-options {
    grid-template-columns: 1fr;
  }

  .confirm-actions {
    flex-direction: column;
  }

  .order-confirm-body {
    padding: 20px;
  }

  .bank-detail {
    flex-wrap: wrap;
  }

  .bank-detail span {
    min-width: 100%;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   CANTIDAD FIJA EN CARRITO (SIN BOTONES DE EDICIÓN)
   Las cantidades no se pueden modificar una vez agregado al carrito
   ========================================================================== */
.quantity-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f4f8, #e2e8f0);
  border-radius: 10px;
  padding: 10px 15px;
  min-width: 70px;
}

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

.quantity-unit {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Animación de shake para indicar error */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Estilos para upload area con error */
.upload-area.error {
  border-color: #e91e63 !important;
  background: #fce4ec !important;
}

/* Mensaje de boleta obligatoria */
.upload-section label .required-badge {
  background: #e91e63;
  color: white;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 8px;
  font-weight: 600;
}

/* Estilos responsive para cantidad fija */
@media (max-width: 600px) {
  .quantity-display {
    padding: 8px 12px;
    min-width: 60px;
  }

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

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