.services {
  padding: var(--spacing-xl) var(--spacing-sm);
  background: linear-gradient(180deg, var(--color-turquoise) 0%, var(--color-turquoise-dark) 100%);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: -25px;
  left: 0;
  right: 0;
  height: 100px;
  background: white;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.services::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 0;
  right: 0;
  height: 100px;
  background: white;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.services h2 {
  font-size: 48px;
  color: white;
  margin-bottom: var(--spacing-lg);
  font-weight: bold;
}

.parrot-decoration {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.parrot-decoration img {
  width: 100px;
  height: auto;
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}

.services-carousel {
  overflow: hidden;
  position: relative;
  touch-action: pan-y pinch-zoom;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: var(--spacing-md);
  transition: transform 0.5s ease;
}

.service-card {
  background: white;
  border-radius: 20px;
  padding: 30px 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 280px;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 20px;
  color: var(--color-text-dark);
  margin-bottom: 12px;
  font-weight: 700;
}

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

.service-btn {
  color: var(--color-pink);
  text-decoration: none;
  font-weight: bold;
  border: 2px solid var(--color-pink);
  padding: 10px 24px;
  border-radius: 25px;
  transition: all 0.3s ease;
  display: inline-block;
}

.service-btn:hover {
  background: var(--color-pink);
  color: white;
  transform: scale(1.05);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.dot.active {
  background: white;
  width: 40px;
  border-radius: 6px;
}

/* Ocultar dots en móviles */
@media (max-width: 768px) {
  .carousel-dots {
    display: none;
  }
}

/* Desktop - Carrusel con 3 cards visibles */
@media (min-width: 993px) {
  /* Slide 0: Mostrar cards 1, 2, 3 */
  .services-grid[data-slide="0"] .service-card:nth-child(4),
  .services-grid[data-slide="0"] .service-card:nth-child(5) {
    display: none;
  }
  
  /* Slide 1: Mostrar cards 3, 4, 5 */
  .services-grid[data-slide="1"] .service-card:nth-child(1),
  .services-grid[data-slide="1"] .service-card:nth-child(2) {
    display: none;
  }
}

/* Tablet */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .carousel-dots {
    display: flex;
  }
}

/* Mobile con swipe */
@media (max-width: 768px) {
  .services h2 {
    font-size: 36px;
  }
  
  .services-carousel {
    overflow-x: hidden;
  }
  
  .services-grid {
    display: flex;
    gap: 20px;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 20px;
  }
  
  .services-grid::-webkit-scrollbar {
    display: none;
  }
  
  .service-card {
    min-width: 280px;
    flex-shrink: 0;
    scroll-snap-align: center;
  }
}

@media (max-width: 600px) {
  .parrot-decoration {
    position: relative;
    top: 0;
    margin-bottom: 20px;
    transform: none;
  }
  
  .parrot-decoration img {
    width: 60px;
  }

  .services-grid {
    gap: 15px;
    padding: 0 20px 20px;
  }
  
  .service-card {
    min-width: 85vw;
    min-height: auto;
    padding: 25px 20px;
  }

  .service-icon {
    font-size: 40px;
  }

  .services h2 {
    font-size: 32px;
  }
}