/* ============================================================================
   SERVICES.CSS - Estilos para páginas de servicios
   MitikLive - Desarrollo de Software, Apps, Web, Automatización
   ============================================================================ */

/* ============================================================================
   VARIABLES ESPECÍFICAS
   ============================================================================ */
:root {
  --service-web: #3b82f6;
  --service-apps: #10b981;
  --service-software: #8b5cf6;
  --service-automation: #f59e0b;
}

/* ============================================================================
   HERO DE SERVICIO
   ============================================================================ */
.service-hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  position: relative;
  overflow: hidden;
}

.service-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.service-hero .container {
  position: relative;
  z-index: 1;
}

.service-hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-badge i {
  font-size: 0.9rem;
}

.service-badge.web { background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.3); color: var(--service-web); }
.service-badge.apps { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.3); color: var(--service-apps); }
.service-badge.software { background: rgba(139, 92, 246, 0.15); border-color: rgba(139, 92, 246, 0.3); color: var(--service-software); }
.service-badge.automation { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.3); color: var(--service-automation); }

.service-hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.2;
}

.service-hero h1 span {
  background: linear-gradient(135deg, var(--primary), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 30px;
}

.service-hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary-lg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary-lg:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
  color: white;
}

.btn-secondary-lg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.btn-secondary-lg:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}

/* ============================================================================
   SECCIONES DE CONTENIDO
   ============================================================================ */
.service-section {
  padding: 80px 0;
}

.service-section.alt {
  background: var(--bg-darker);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================================
   GRID DE SERVICIOS
   ============================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(99, 102, 241, 0.3);
}

.service-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.service-card-icon.web { background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1)); color: var(--service-web); }
.service-card-icon.apps { background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1)); color: var(--service-apps); }
.service-card-icon.software { background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1)); color: var(--service-software); }
.service-card-icon.automation { background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1)); color: var(--service-automation); }

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.service-card-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card-features li:first-child {
  border-top: none;
}

.service-card-features li i {
  color: var(--primary);
  font-size: 0.8rem;
  margin-top: 4px;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.service-card-link:hover {
  gap: 12px;
  color: #818cf8;
}

/* ============================================================================
   TECNOLOGÍAS
   ============================================================================ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
}

.tech-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  transition: all 0.2s ease;
}

.tech-item:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.tech-item i {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.tech-item span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Colores de tecnologías */
.tech-item.html i { color: #e34f26; }
.tech-item.css i { color: #1572b6; }
.tech-item.js i { color: #f7df1e; }
.tech-item.react i { color: #61dafb; }
.tech-item.vue i { color: #4fc08d; }
.tech-item.angular i { color: #dd0031; }
.tech-item.node i { color: #339933; }
.tech-item.php i { color: #777bb4; }
.tech-item.python i { color: #3776ab; }
.tech-item.java i { color: #007396; }
.tech-item.swift i { color: #fa7343; }
.tech-item.kotlin i { color: #7f52ff; }
.tech-item.flutter i { color: #02569b; }
.tech-item.wordpress i { color: #21759b; }
.tech-item.laravel i { color: #ff2d20; }
.tech-item.aws i { color: #ff9900; }
.tech-item.docker i { color: #2496ed; }
.tech-item.git i { color: #f05032; }

/* ============================================================================
   PROCESO DE TRABAJO
   ============================================================================ */
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  gap: 24px;
  position: relative;
}

.process-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.process-step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.process-step-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(180deg, var(--primary), transparent);
  margin: 8px 0;
}

.process-step:last-child .process-step-line {
  display: none;
}

.process-step-content {
  padding-bottom: 40px;
  flex: 1;
}

.process-step-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.process-step-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================================
   PRECIOS / PLANES
   ============================================================================ */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.featured {
  border-color: var(--primary);
  transform: scale(1.05);
}

.pricing-card.featured::before {
  content: 'Más Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

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

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-5px);
}

.pricing-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 16px 0;
}

.pricing-card .price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-card .price-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  text-align: left;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li i {
  color: var(--primary);
}

.pricing-card .btn-pricing {
  display: block;
  padding: 14px 24px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.pricing-card .btn-pricing:hover {
  background: var(--primary);
  color: white;
}

.pricing-card.featured .btn-pricing {
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: white;
}

.pricing-card.featured .btn-pricing:hover {
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

/* ============================================================================
   FAQ SECTION
   ============================================================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
}

.faq-question h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.faq-question i {
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================================
   CTA SECTION
   ============================================================================ */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* ============================================================================
   TESTIMONIOS
   ============================================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px;
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.testimonial-info h5 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.testimonial-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 768px) {
  .service-hero {
    padding: 60px 0 40px;
  }
  
  .service-hero h1 {
    font-size: 2rem;
  }
  
  .service-hero p {
    font-size: 1rem;
  }
  
  .service-hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary-lg,
  .btn-secondary-lg {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .service-section {
    padding: 50px 0;
  }
  
  .section-header h2 {
    font-size: 1.5rem;
  }
  
  .process-step {
    flex-direction: column;
    text-align: center;
  }
  
  .process-step-indicator {
    flex-direction: row;
    gap: 16px;
  }
  
  .process-step-line {
    width: 100%;
    height: 2px;
    margin: 0;
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-5px);
  }
}
