/**
 * ============================================================
 * CONVERSION OPTIMIZED - Estilos para Google Ads
 * Enfocado en maximizar conversiones y ventas
 * ============================================================
 */

/* ============================================================
   BARRA SUPERIOR DE URGENCIA (STICKY) - REDISEÑADA
   ============================================================ */

.urgency-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 10px 15px;
  z-index: 10000;
  box-shadow: 0 2px 20px rgba(102, 126, 234, 0.4);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.urgency-bar-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.urgency-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.urgency-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.urgency-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.urgency-item i {
  font-size: 1rem;
}

.urgency-cta {
  display: flex;
  gap: 8px;
  align-items: center;
}

.urgency-btn {
  padding: 6px 18px;
  border-radius: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.urgency-btn i {
  font-size: 1rem;
}

.urgency-btn-whatsapp {
  background: #25D366;
  color: white;
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

.urgency-btn-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
  color: white;
}

.urgency-btn-call {
  background: white;
  color: #667eea;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.urgency-btn-call:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.5);
  color: #667eea;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Compensar espacio del navbar cuando hay urgency-bar */
body.has-urgency-bar {
  padding-top: 130px !important; /* 40px barra + 90px navbar */
}

/* Ajustar navbar para que aparezca debajo de la barra de urgencia */
body.has-urgency-bar .navbar-enhanced {
  top: 40px;
}

/* ============================================================
   WIDGET WHATSAPP FLOTANTE MEJORADO
   ============================================================ */

.whatsapp-float-enhanced {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9998;
}

.whatsapp-button-enhanced {
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, #25D366 0%, #20ba5a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  animation: floatPulse 2s ease-in-out infinite;
  text-decoration: none;
  border: none;
  pointer-events: auto;
}

.whatsapp-button-enhanced:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-button-enhanced::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  animation: ripple 1.5s infinite;
  z-index: -1;
}

.whatsapp-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff4444;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border: 2px solid white;
  animation: bounce 1s infinite;
}

.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  bottom: 10px;
  background: white;
  color: #333;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.whatsapp-float-enhanced:hover .whatsapp-tooltip {
  opacity: 1;
  right: 80px;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid white;
}

@keyframes floatPulse {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* ============================================================
   ZONAS DE CONVERSIÓN POR CATEGORÍA
   ============================================================ */

.conversion-zone {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-top: 3px solid #00a7e1;
  border-bottom: 3px solid #d72a86;
  padding: 40px 20px;
  margin: 60px 0;
  position: relative;
  overflow: hidden;
}

.conversion-zone::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 167, 225, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(215, 42, 134, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.conversion-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.conversion-header {
  text-align: center;
  margin-bottom: 30px;
}

.conversion-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0f1723;
  margin-bottom: 10px;
}

.conversion-subtitle {
  font-size: 1.1rem;
  color: #6b7280;
}

.conversion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.conversion-card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.conversion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: #00a7e1;
}

.conversion-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #00a7e1, #0066ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  color: white;
  font-size: 28px;
}

.conversion-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f1723;
  margin-bottom: 8px;
}

.conversion-card p {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.conversion-cta-main {
  text-align: center;
  margin-top: 30px;
}

.conversion-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: linear-gradient(135deg, #25D366 0%, #20ba5a 100%);
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  border: none;
  cursor: pointer;
}

.conversion-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
  color: white;
}

.conversion-btn i {
  font-size: 1.3rem;
}

.conversion-secondary {
  display: inline-block;
  margin-left: 15px;
  padding: 16px 35px;
  background: white;
  color: #0066ff;
  font-size: 1.05rem;
  font-weight: 600;
  border: 2px solid #0066ff;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.conversion-secondary:hover {
  background: #0066ff;
  color: white;
  transform: scale(1.05);
}

/* ============================================================
   TESTIMONIOS CON PRUEBA SOCIAL
   ============================================================ */

.testimonials-section {
  background: linear-gradient(135deg, #0f1723 0%, #1a2332 100%);
  color: white;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 50px;
}

.testimonials-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.testimonials-subtitle {
  font-size: 1.1rem;
  color: #cbd5e1;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00a7e1, #d72a86);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: white;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.testimonial-info h4 {
  margin: 0 0 5px 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.testimonial-role {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.testimonial-stars {
  color: #f8bd23;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #e2e8f0;
  font-style: italic;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.trust-badge-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #00a7e1, #d72a86);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trust-badge-label {
  font-size: 0.95rem;
  color: #cbd5e1;
  text-align: center;
}

/* ============================================================
   CTAs MEJORADOS
   ============================================================ */

.cta-enhanced {
  background: linear-gradient(135deg, #25D366 0%, #20ba5a 100%);
  color: white !important;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.cta-enhanced:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
  color: white !important;
}

.cta-secondary-enhanced {
  background: white;
  color: #0066ff !important;
  border: 2px solid #0066ff;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta-secondary-enhanced:hover {
  background: #0066ff;
  color: white !important;
  transform: scale(1.05);
}

/* ============================================================
   INDICADORES DE URGENCIA
   ============================================================ */

.urgency-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #ff4444, #cc0000);
  color: white;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 700;
  animation: pulse 2s infinite;
}

.stock-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #fff3cd;
  color: #856404;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #ffc107;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .urgency-bar {
    padding: 8px 10px;
  }

  .urgency-bar-content {
    gap: 12px;
    justify-content: center;
  }

  .urgency-info {
    gap: 8px;
    justify-content: center;
  }

  .urgency-item {
    font-size: 0.75rem;
    padding: 3px 8px;
    gap: 4px;
  }

  /* Ocultar el teléfono en móvil */
  .urgency-item:nth-child(2) {
    display: none;
  }

  .urgency-item i {
    font-size: 0.85rem;
  }

  .urgency-cta {
    gap: 6px;
  }

  .urgency-btn {
    padding: 5px 12px;
    font-size: 0.75rem;
    gap: 4px;
  }

  .urgency-btn i {
    font-size: 0.85rem;
  }

  body.has-urgency-bar {
    padding-top: 105px !important;
  }

  body.has-urgency-bar .navbar-enhanced {
    top: 36px;
  }

  .whatsapp-float-enhanced {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-button-enhanced {
    width: 55px;
    height: 55px;
    font-size: 26px;
  }

  .whatsapp-tooltip {
    display: none;
  }

  .conversion-title {
    font-size: 1.5rem;
  }

  .conversion-grid {
    grid-template-columns: 1fr;
  }

  .conversion-btn,
  .conversion-secondary {
    width: 100%;
    margin: 10px 0;
  }

  .testimonials-section {
    padding: 40px 15px;
  }

  .testimonials-title {
    font-size: 1.8rem;
  }

  .testimonials-subtitle {
    font-size: 1rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .testimonial-card {
    padding: 20px;
  }

  .testimonial-avatar {
    width: 50px;
    height: 50px;
  }

  .testimonial-info h4 {
    font-size: 1rem;
  }

  .testimonial-role {
    font-size: 0.85rem;
  }

  .testimonial-text {
    font-size: 0.9rem;
  }

  .trust-badges {
    gap: 20px;
  }

  .trust-badge-number {
    font-size: 2rem;
  }

  .trust-badge-label {
    font-size: 0.85rem;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}
