/* ========================================
   Servicios - Sistema de Automatización
   ======================================== */

/* Pain Points Section */
.pain-points {
  padding: 100px 20px;
  background: linear-gradient(135deg, #2d1b69 0%, #5a4a7d 100%);
  position: relative;
  overflow: hidden;
}

.pain-points-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  margin-bottom: 60px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.pain-points-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 60px;
}

.pain-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
  transition: left 0.5s;
}

.pain-card:hover::before {
  left: 100%;
}

.pain-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 107, 53, 0.3);
  border-color: rgba(255, 107, 53, 0.5);
}

.pain-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #ff6b35 0%, #ffd700 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.pain-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
  line-height: 1.4;
}

.pain-card p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 25px;
}

.pain-stat {
  background: rgba(255, 107, 53, 0.15);
  border-radius: 12px;
  padding: 15px;
  border-left: 4px solid #ff6b35;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 5px;
}

.stat-text {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.pain-cta {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 2px solid rgba(255, 107, 53, 0.3);
}

.pain-cta h3 {
  font-size: 2rem;
  color: #ffd700;
  margin-bottom: 10px;
}

.pain-cta p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
  }
}

/* Sistema Automation Section */
.sistema-automation {
  padding: 100px 20px;
  background: linear-gradient(to bottom, #667eea 0%, #764ba2 100%);
  position: relative;
}

.sistema-header {
  text-align: center;
  margin-bottom: 80px;
}

.sistema-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b35 0%, #ffd700 100%);
  color: #1a1a2a;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sistema-subtitle {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 50px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Flow Steps */
.sistema-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 80px;
}

.flow-step-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 30px;
  max-width: 100%;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
}

.flow-step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.flow-step-card.full-width {
  max-width: 100%;
}

.step-number {
  position: absolute;
  top: -15px;
  left: 20px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ff6b35 0%, #ffd700 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #1a1a2a;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.step-icon-wrapper {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
}

.flow-step-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2d1b69;
  margin-bottom: 10px;
  text-align: center;
}

.flow-step-card p {
  color: #555;
  line-height: 1.6;
  text-align: center;
}

.step-content-dual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 20px;
}

.step-item {
  text-align: center;
}

.flow-arrow {
  font-size: 2rem;
  color: #ffd700;
  animation: bounce-arrow 2s infinite;
}

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

/* Timeline */
.sistema-timeline {
  margin-bottom: 80px;
}

.timeline-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline-item {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 50px;
  width: 2px;
  height: calc(100% + 40px);
  background: rgba(255, 255, 255, 0.3);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-marker {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ff6b35 0%, #ffd700 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #1a1a2a;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
  position: relative;
  z-index: 1;
}

.timeline-content {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-content h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.timeline-content p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 10px;
}

.timeline-duration {
  display: inline-block;
  background: rgba(255, 107, 53, 0.2);
  color: #ffd700;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.timeline-total {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 107, 53, 0.5);
  border-radius: 20px;
  padding: 30px;
  margin-top: 40px;
}

.timeline-total i {
  font-size: 3rem;
  color: #ffd700;
  margin-bottom: 15px;
  display: block;
}

.total-time {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.total-text {
  display: block;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Tech Stack */
.sistema-tech-stack {
  margin-bottom: 80px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.tech-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 25px 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.tech-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border-color: #ff6b35;
}

.tech-logo {
  width: 70px;
  height: 70px;
  margin: 0 auto 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
}

.whatsapp-color { background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); }
.n8n-color { background: linear-gradient(135deg, #ea4b71 0%, #d43f5a 100%); }
.flowise-color { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.supabase-color { background: linear-gradient(135deg, #3ECF8E 0%, #2B9E70 100%); }
.react-color { background: linear-gradient(135deg, #61DAFB 0%, #21a1c4 100%); }
.vercel-color { background: linear-gradient(135deg, #000000 0%, #333333 100%); }

.tech-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2d1b69;
  margin-bottom: 8px;
}

.tech-card p {
  font-size: 0.85rem;
  color: #666;
}

/* Requirements */
.sistema-requirements {
  margin-bottom: 80px;
}

.requirements-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
}

.requirement-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
}

.requirement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: #ff6b35;
}

.requirement-card.optional {
  opacity: 0.8;
}

.requirement-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 20px;
}

.requirement-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2d1b69;
  margin-bottom: 10px;
}

.requirement-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.requirement-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b35 0%, #ffd700 100%);
  color: #1a1a2a;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.optional-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

/* CTA Final */
.sistema-cta-final {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 107, 53, 0.3);
  border-radius: 25px;
  padding: 50px 30px;
  text-align: center;
}

.cta-content h3 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
}

.cta-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 35px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  margin-bottom: 25px;
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.1rem;
  border-radius: 50px;
}

.cta-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.cta-guarantee i {
  color: #ffd700;
  font-size: 1.2rem;
}

/* Responsive - Tablet */
@media (min-width: 768px) {
  .pain-points-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sistema-flow {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
  }

  .flow-step-card {
    max-width: 280px;
  }

  .flow-arrow {
    align-self: center;
  }

  .flow-step-card.full-width {
    width: 100%;
    max-width: 600px;
  }

  .step-content-dual {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .cta-buttons {
    flex-direction: row;
  }
}

/* Responsive - Desktop */
@media (min-width: 1024px) {
  .pain-points {
    padding: 120px 60px;
  }

  .pain-points-title {
    font-size: 3rem;
  }

  .pain-card h3 {
    font-size: 1.6rem;
  }

  .sistema-automation {
    padding: 120px 60px;
  }

  .sistema-subtitle {
    font-size: 2.5rem;
  }

  .flow-step-card {
    max-width: 320px;
  }

  .requirements-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

