/* ========================================
   SERVICES.CSS
======================================== */

#services {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Video fondo ── */
.services-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.services-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #000;
}
.services-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* ── Contenido ── */
.services-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 8rem var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

/* ── Header ── */
.services-header {
  text-align: center;
}
.services-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}
.services-label::before,
.services-label::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: rgba(255,255,255,0.2);
}
.services-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: #fff;
}
.services-title em {
  color: rgba(255,255,255,0.2);
  font-style: normal;
}

/* ── Cards grid ── */
.services-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 1200px;
}

/* ── Liquid glass card ── */
.svc-glass-card {
  position: relative;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);

  /* Liquid glass effect */
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -1px 0 rgba(255,255,255,0.05);
}

.svc-glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,255,255,0.4),
    transparent
  );
}

.svc-glass-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(255,255,255,0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.svc-glass-card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Card número */
.svc-glass-num {
  font-family: var(--font-display);
  font-size: 0.6rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
}

/* Card ícono */
.svc-glass-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.5rem;
  opacity: 0.75;
}

/* Card título */
.svc-glass-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
  line-height: 1.1;
}

/* Card descripción */
.svc-glass-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
  font-weight: 300;
}

/* Card flecha */
.svc-glass-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.8rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s, gap 0.3s;
}
.svc-glass-card:hover .svc-glass-arrow {
  color: #fff;
  gap: 0.7rem;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .services-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-cards {
    grid-template-columns: 1fr;
  }
  .services-content {
    padding: 6rem var(--pad-x-sm);
  }
}

@media (max-width: 600px) {
  .services-video-wrap {
    position: absolute;
  }
  .services-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}