/* ═══════════════════════════════════════
   SERVICES.CSS
═══════════════════════════════════════ */

#services {
  background: var(--dark);
  padding: 9rem 0;
}

#services .section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 5vw 4rem;
  border-bottom: 1px solid var(--border);
}

#services .section-header h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  color: var(--white);
}

/* ── GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}

.service-item {
  padding: 3.5rem 2.5rem;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: background 0.45s ease, transform 0.4s cubic-bezier(.16,1,.3,1);
}
.service-item:last-child { border-right: none; }

/* Línea de acento desde abajo */
.service-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(.16,1,.3,1);
}
.service-item:hover::before { transform: scaleX(1); }

.service-item:hover {
  background: rgba(255,255,255,0.035);
  transform: translateY(-4px);
}

.service-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 400;
  color: rgba(255,255,255,0.10);
  line-height: 1;
  margin-bottom: 2rem;
  transition: color 0.4s ease;
}
.service-item:hover .service-num { color: rgba(201,185,154,0.18); }

.service-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1.2rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}
.service-item:hover .service-name { color: var(--accent); }

.service-desc {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--muted);
  transition: color 0.35s ease;
}
.service-item:hover .service-desc { color: var(--subtle); }

.service-line {
  width: 1.5rem;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
  margin-bottom: 1.8rem;
  transition: width 0.4s cubic-bezier(.16,1,.3,1), opacity 0.4s ease;
}
.service-item:hover .service-line {
  width: 3.5rem;
  opacity: 1;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-item:nth-child(2) { border-right: none; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-item { border-right: none; border-bottom: 1px solid var(--border); }
}
