/* ==========================================================================
   BOTONES DE PRODUCTO PROFESIONALES V2
   Diseño moderno, compacto y con animaciones suaves
   ========================================================================== */

/* ==========================================================================
   CONTENEDOR PRINCIPAL DE BOTONES
   ========================================================================== */

.product-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
  padding: 20px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  animation: fadeInUp 0.5s ease-out;
}

/* ==========================================================================
   BOTÓN AGREGAR AL CARRITO - PRINCIPAL
   ========================================================================== */

.btn-add-to-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  color: white;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-add-to-cart::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.6s ease;
}

.btn-add-to-cart:hover::before {
  left: 100%;
}

.btn-add-to-cart:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.btn-add-to-cart:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-add-to-cart i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.btn-add-to-cart:hover i {
  transform: scale(1.15) rotate(-5deg);
}

/* ==========================================================================
   FILA DE BOTONES SECUNDARIOS
   ========================================================================== */

.buttons-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ==========================================================================
   BOTÓN COTIZAR - VERDE
   ========================================================================== */

.btn-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: white;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-quote::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-quote:hover::before {
  left: 100%;
}

.btn-quote:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(16, 185, 129, 0.45);
  color: white;
  text-decoration: none;
}

.btn-quote i {
  font-size: 15px;
  transition: transform 0.3s ease;
}

.btn-quote:hover i {
  transform: scale(1.1);
}

/* ==========================================================================
   BOTÓN WHATSAPP - VERDE WHATSAPP
   ========================================================================== */

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: white;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(37, 211, 102, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-whatsapp::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-whatsapp:hover::before {
  left: 100%;
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(37, 211, 102, 0.45);
  color: white;
  text-decoration: none;
}

.btn-whatsapp i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.btn-whatsapp:hover i {
  transform: scale(1.15);
}

/* Efecto pulso WhatsApp */
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 3px 12px rgba(37, 211, 102, 0.35); }
  50% { box-shadow: 0 3px 20px rgba(37, 211, 102, 0.55); }
}

.btn-whatsapp.pulse {
  animation: pulse-green 2s infinite;
}

/* ==========================================================================
   BOTÓN ANCHO COMPLETO
   ========================================================================== */

.btn-full {
  grid-column: 1 / -1;
}

/* ==========================================================================
   SECCIÓN CART ADD (Contenedor simple)
   ========================================================================== */

.cart-add-section {
  margin: 15px 0;
  animation: scaleIn 0.4s ease-out;
}

/* ==========================================================================
   SECCIÓN DE COTIZACIÓN CON INFO
   ========================================================================== */

.product-details1 {
  background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 100%);
  padding: 16px;
  border-radius: 12px;
  margin: 12px 0;
  border: 1px solid #86efac;
  animation: fadeInUp 0.5s ease-out 0.1s both;
}

.product-details1 .info-text {
  font-size: 13px;
  color: #166534;
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.product-details1 h6 {
  font-size: 12px;
  font-weight: 700;
  color: #15803d;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-details1 li {
  list-style: none;
}

.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.35);
}

.cta-button:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(16, 185, 129, 0.45);
  color: white;
  text-decoration: none;
}

.cta-button::before {
  content: '\f1ec';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}

/* ==========================================================================
   COMPATIBILIDAD CON CLASES ANTIGUAS
   ========================================================================== */

.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.btn-action:hover {
  transform: translateY(-2px);
}

.btn-action i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.btn-action:hover i {
  transform: scale(1.1);
}

/* Contenedor antiguo */
.product-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.action-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

/* WhatsApp Quote antiguo */
.btn-whatsapp-quote {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  box-shadow: 0 3px 12px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp-quote:hover {
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  box-shadow: 0 5px 18px rgba(37, 211, 102, 0.45);
}

/* ==========================================================================
   BOTÓN COTIZACIÓN PROFESIONAL - DISEÑO PREMIUM
   ========================================================================== */

.btn-calculator-quote,
.btn-purchase-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: white;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 15px rgba(139, 92, 246, 0.4),
    0 0 0 0 rgba(139, 92, 246, 0.4);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Efecto brillo suave */
.btn-calculator-quote::before,
.btn-purchase-quote::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: left 0.7s ease;
}

/* Efecto glow sutil */
.btn-calculator-quote::after,
.btn-purchase-quote::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #a78bfa, #8b5cf6, #7c3aed, #6d28d9);
  border-radius: 14px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: blur(8px);
}

.btn-calculator-quote:hover,
.btn-purchase-quote:hover {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 50%, #7c3aed 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 8px 25px rgba(139, 92, 246, 0.5),
    0 0 20px rgba(139, 92, 246, 0.3);
  color: white;
  text-decoration: none;
}

.btn-calculator-quote:hover::before,
.btn-purchase-quote:hover::before {
  left: 100%;
}

.btn-calculator-quote:hover::after,
.btn-purchase-quote:hover::after {
  opacity: 0.5;
}

.btn-calculator-quote:active,
.btn-purchase-quote:active {
  transform: translateY(-1px) scale(1);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-calculator-quote i,
.btn-purchase-quote i {
  font-size: 16px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-calculator-quote:hover i,
.btn-purchase-quote:hover i {
  transform: rotate(-10deg) scale(1.15);
}

.btn-calculator-quote span,
.btn-purchase-quote span {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   ANIMACIONES
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ==========================================================================
   ESTADOS
   ========================================================================== */

.btn-add-to-cart:disabled,
.btn-quote:disabled,
.btn-whatsapp:disabled,
.btn-action:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.7;
}

.btn-add-to-cart:disabled:hover,
.btn-quote:disabled:hover,
.btn-whatsapp:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Loading state */
.btn-loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid white;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   TOOLTIPS
   ========================================================================== */

[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  padding: 6px 12px;
  background: #1f2937;
  color: white;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
  pointer-events: none;
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .product-buttons-container {
    padding: 16px;
    gap: 10px;
  }

  .buttons-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .btn-add-to-cart {
    padding: 12px 20px;
    font-size: 14px;
  }

  .btn-quote,
  .btn-whatsapp {
    padding: 11px 16px;
    font-size: 13px;
  }

  .action-buttons-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .product-buttons-container {
    padding: 14px;
    margin: 15px 0;
    border-radius: 12px;
  }

  .btn-add-to-cart {
    padding: 11px 18px;
    font-size: 13px;
    border-radius: 10px;
  }

  .btn-add-to-cart i {
    font-size: 16px;
  }

  .btn-quote,
  .btn-whatsapp {
    padding: 10px 14px;
    font-size: 12px;
    border-radius: 8px;
  }

  .product-details1 {
    padding: 12px;
    border-radius: 10px;
  }

  .product-details1 .info-text {
    font-size: 12px;
  }

  .cta-button {
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* ==========================================================================
   PRECIO DESTACADO (Opcional)
   ========================================================================== */

.price-highlight-box {
  text-align: center;
  padding: 14px;
  background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid #bfdbfe;
}

.price-highlight-box .price-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.price-highlight-box .price-value {
  font-size: 26px;
  font-weight: 800;
  color: #1d4ed8;
  line-height: 1.2;
}

.price-highlight-box .price-unit {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

/* ==========================================================================
   ESTADOS DE DISPONIBILIDAD DE PRODUCTOS
   ========================================================================== */

/* Producto No Disponible */
.availability.unavailable {
  color: #64748b;
  font-weight: 600;
}

.availability.unavailable i {
  margin-right: 5px;
}

.btn-unavailable {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  color: white;
  background: #9ca3af;
  border: none;
  border-radius: 12px;
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-unavailable i {
  font-size: 18px;
}

/* Producto con Precios Pendientes */
.availability.pending {
  color: #d97706;
  font-weight: 600;
}

.availability.pending i {
  margin-right: 5px;
}

.btn-cotizar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-cotizar:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
  color: white;
  text-decoration: none;
}

.btn-cotizar i {
  font-size: 18px;
}
