/* ─────────────────────────────────────────────────────────────────────────────
   Escala Digital — services.css
   Sección de servicios: 4 cards en grid, scroll-reveal con perspective tilt
───────────────────────────────────────────────────────────────────────────── */

/* ─── Sección principal ─── */
.services-section {
  position: relative;
  z-index: 10;
  width: 100%;
  margin-top: -60px;
  padding: 110px 60px 100px;
  /* sombra negra hacia arriba: cubre el corte con el hero sin añadir elementos */
  box-shadow: 0 -40px 60px 20px #000000;
  background: linear-gradient(
    to bottom,
    #000000 0%,
    #06101F 22%,
    #0A1A33 50%,
    #06101F 78%,
    #000000 100%
  );
  overflow: hidden;
}

/* Top fade — refuerza el negro del overlap antes de revelar el contenido */
.services-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(
    to bottom,
    #000000 0%,
    #000000 20%,
    rgba(0,0,0,0.7) 55%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Bottom fade — prepara la siguiente sección */
.services-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, #000000 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* ─── Beams canvas heredado de hero-beams.js ─── */
.services-section .hero-beams-canvas {
  z-index: 1; /* encima del fondo, debajo de fades (z2) y contenido (z3) */
}

/* ─── Texto decorativo de fondo ─── */
.services-bg-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(100px, 18vw, 280px);
  letter-spacing: -0.04em;
  color: rgba(41, 168, 255, 0.03);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  filter: blur(3px);
  z-index: 0;
}

/* ─── Header ─── */
.services-header {
  position: relative;
  z-index: 3;
  text-align: center;
  margin-bottom: 80px;
}

.services-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(41, 168, 255, 0.08);
  border: 1px solid rgba(41, 168, 255, 0.2);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 24px;
  opacity: 0; /* GSAP */
}

.services-eyebrow::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--blue-light);
  border-radius: 50%;
  flex-shrink: 0;
  animation: blink 2.4s ease-in-out infinite;
}

.services-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 20px;
  opacity: 0; /* GSAP */
}

.services-title .accent {
  color: var(--blue-light);
}

.services-sub {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.60);
  max-width: 560px;
  margin: 0 auto;
  opacity: 0; /* GSAP */
}

/* ─── Grid de cards ─── */
.services-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
}

/* ─── Card individual ─── */
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 32px 28px 28px;
  border-radius: 20px;
  background: linear-gradient(
    145deg,
    rgba(20, 100, 255, 0.16) 0%,
    rgba(10, 26, 51, 0.62) 50%,
    rgba(20, 100, 255, 0.09) 100%
  );
  border: 1px solid rgba(41, 168, 255, 0.22);
  box-shadow:
    0 8px 48px rgba(20, 100, 255, 0.14),
    0 2px 12px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: default;
  transition:
    border-color 0.32s cubic-bezier(0.32, 0.72, 0, 1),
    box-shadow 0.32s cubic-bezier(0.32, 0.72, 0, 1),
    transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  opacity: 0; /* GSAP */
  overflow: hidden;
  will-change: opacity, transform, filter;
}

/* Línea accent superior */
.svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #1464FF 30%, #29A8FF 70%, transparent 100%);
  opacity: 0.75;
  transition: opacity 0.32s;
}

.svc-card:hover {
  border-color: rgba(41, 168, 255, 0.38);
  box-shadow:
    0 16px 64px rgba(20, 100, 255, 0.22),
    0 4px 20px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transform: translateY(-4px);
}

.svc-card:active {
  transform: scale(0.97) translateY(0);
  border-color: rgba(41, 168, 255, 0.45);
  transition: transform 0.1s ease;
}

.svc-card:hover::before {
  opacity: 1;
}

/* ─── Icono ─── */
.svc-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(20, 100, 255, 0.18);
  border: 1px solid rgba(41, 168, 255, 0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue-light);
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s;
}

.svc-card:hover .svc-icon-wrap {
  background: rgba(20, 100, 255, 0.28);
  border-color: rgba(41, 168, 255, 0.45);
}

.svc-icon-wrap svg {
  width: 24px;
  height: 24px;
}

/* ─── Nombre del servicio ─── */
.svc-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.2;
}

/* ─── Descripción ─── */
.svc-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 24px;
  flex-grow: 1;
}

/* ─── Bullets ─── */
.svc-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 28px;
}

.svc-features li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 450;
  color: rgba(255, 255, 255, 0.70);
}

.svc-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(20, 100, 255, 0.7);
}

/* ─── CTA link ─── */
.svc-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-light);
  text-decoration: none;
  transition: gap 0.22s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.22s;
  opacity: 0.75;
  margin-top: auto;
}

.svc-cta:hover {
  gap: 10px;
  opacity: 1;
}

.svc-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}

.svc-cta:hover svg {
  transform: translateX(3px);
}

/* ─── Separador horizontal entre bullets y CTA ─── */
.svc-divider {
  width: 100%;
  height: 1px;
  background: rgba(41, 168, 255, 0.1);
  margin-bottom: 20px;
}

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .services-section { padding: 80px 40px 90px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

@media (max-width: 640px) {
  .services-section { padding: 64px 20px 80px; }
  .services-header { margin-bottom: 52px; }
  .services-grid { grid-template-columns: 1fr; }
  .services-title { font-size: clamp(34px, 9vw, 52px); }
  .services-sub { font-size: 14px; max-width: 100%; }
}

/* ─── 480px — teléfonos estándar ─── */
@media (max-width: 480px) {
  .services-header { margin-bottom: 40px; }
  .svc-card { padding: 24px 20px 22px; }
  .svc-name { font-size: 18px; }
  .svc-desc { font-size: 13px; }
}

/* ─── 320px — teléfonos muy pequeños ─── */
@media (max-width: 320px) {
  .services-section { padding: 56px 14px 72px; }
  .services-header { margin-bottom: 32px; }
  .svc-card { padding: 20px 16px 18px; }
}
