/* Corregir text-gradient para fondo blanco */
.text-gradient {
  background: linear-gradient(135deg, #1e3a8a 0%, #0ea5e9 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}/* ===== SERVICIOS - ESTILOS ESPECÍFICOS ===== */

/* Hero Section Servicios */
.services-hero {
  min-height: 70vh;
  background: var(--light-color);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: -80px;
  padding-top: 80px;
  background-image: 
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="services-grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="%230ea5e9" stroke-width="0.5" opacity="0.2"/></pattern></defs><rect width="100%" height="100%" fill="url(%23services-grid)"/></svg>');
  background-size: 50px 50px;
}

.services-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="service1" cx="20%" cy="30%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%230ea5e9" stop-opacity="0"/></radialGradient><radialGradient id="service2" cx="80%" cy="70%"><stop offset="0%" stop-color="%2306b6d4" stop-opacity="0.08"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="300" r="150" fill="url(%23service1)"/><circle cx="800" cy="700" r="200" fill="url(%23service2)"/><circle cx="600" cy="200" r="100" fill="url(%23service1)" opacity="0.5"/></svg>');
  animation: float 20s infinite linear;
}

.services-hero .hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-dark);
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

.services-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.2;
  color: var(--text-dark);
}

.services-hero p {
  font-size: 1.25rem;
  margin-bottom: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
  font-weight: 500;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 48px;
}

.stat-item {
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-color);
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  margin-top: 8px;
  font-weight: 600;
  color: var(--text-light);
}

/* Services Section */
.services-section {
  padding: 100px 0;
  background: var(--light-color);
  background-image: 
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="dots-pattern" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1.5" fill="%230ea5e9" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots-pattern)"/></svg>');
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 32px;
  margin-top: 64px;
}

/* Service Card */
.service-card {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.08);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(14, 165, 233, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(30, 58, 138, 0.15);
  border-color: rgba(14, 165, 233, 0.3);
}

.service-card.featured {
  border: 2px solid var(--accent-color);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.service-card.featured::before {
  height: 6px;
  background: var(--gradient-accent);
}

/* Service Header */
.service-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--white);
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.4);
}

.service-badge {
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-badge.popular {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: var(--white);
}

.service-badge.premium {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: var(--white);
}

/* Service Content */
.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
  line-height: 1.3;
}

.service-card > p {
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.6;
  flex-grow: 1;
}

/* Service Features */
.service-features {
  list-style: none;
  margin: 0 0 32px 0;
  padding: 0;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.service-features li i {
  color: var(--success-color);
  font-size: 0.9rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Service Footer */
.service-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(14, 165, 233, 0.1);
}

.price-from {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.btn-service {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-service:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
  color: var(--white);
  text-decoration: none;
}

/* Services Filter */
.services-filter {
  background: var(--white);
  padding: 32px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 80px;
  z-index: 100;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 2px solid rgba(14, 165, 233, 0.2);
  color: var(--text-light);
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-primary);
  border-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

/* Work Process */
.work-process {
  padding: 100px 0;
  background: var(--gradient-secondary);
  color: var(--white);
}

.work-process .section-title h2,
.work-process .section-title p {
  color: var(--white);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 64px;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 auto 24px;
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.step-content p {
  opacity: 0.9;
  line-height: 1.6;
}

/* CTA Guarantees */
.cta-guarantees {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 48px;
  flex-wrap: wrap;
}

.guarantee {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 500;
}

.guarantee i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

/* Footer Mejorado */
.footer {
  background: var(--dark-color);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--accent-color);
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom a {
  color: var(--accent-color);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .services-hero {
    min-height: 60vh;
    padding-top: 120px;
    margin-top: -120px;
  }

  .hero-stats {
    gap: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-card {
    margin: 0 16px;
  }

  .filter-tabs {
    gap: 12px;
    padding: 0 16px;
  }

  .filter-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .process-timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-guarantees {
    gap: 1.5rem;
    flex-direction: column;
    align-items: center;
  }

  .guarantee {
    justify-content: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .service-card {
    margin: 0 8px;
    padding: 24px;
  }

  .service-header {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
  }

  .service-footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Filter Animation */
.service-card.hidden {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.service-card.visible {
  opacity: 1;
  transform: scale(1);
}