/* Services Section */
.services {
  padding: 8rem 2rem;
  background: var(--bg);
}

/* Responsivo */
@media (max-width: 968px) {
  .showcase-card {
    padding: 2rem;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

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

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* ============ SLIDER ============ */
.before-after {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: ew-resize;
}

.before-after img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-after {
  clip-path: inset(0 0 0 50%);
}

.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: 4px;
  background: white;
  transform: translateX(-50%);
  box-shadow: var(--shadow);
}

.ba-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  color: var(--primary);
  padding: 0.4rem 0.7rem;
  border-radius: 50%;
  box-shadow: var(--shadow);
  font-weight: 700;
}
/* Slider controls */
.before-after {
  position: relative;
}

.ba-controls {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 8px 10px;
  box-shadow: var(--shadow);
}

[data-theme="dark"] .ba-controls {
  background: rgba(36, 37, 38, 0.85);
}

.ba-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow);
}

[data-theme="dark"] .ba-btn {
  background: var(--bg-light);
  color: var(--text);
}

.ba-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ba-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

[data-theme="dark"] .ba-dot {
  background: rgba(255, 255, 255, 0.25);
}

.ba-dot.active {
  background: var(--accent);
}
