/* ============================================================ */
/* BLOQUE: SERVICES v2.0 — "Segunda landing"                    */
/* Estilo diferenciado: fondo oscuro violeta/azul, scanlines    */
/* CRT y título con glitch VHS + degradado animado              */
/* ============================================================ */

.services {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99, 102, 241, 0.12), transparent),
    linear-gradient(180deg, #0B0614 0%, #0A0A14 50%, #0A0A0A 100%);
  overflow: hidden;
}

/* Scanlines estilo LCD/CRT */
.services__scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(255, 255, 255, 0.022) 3px,
    rgba(255, 255, 255, 0.022) 4px
  );
  mix-blend-mode: overlay;
}

.services .container { position: relative; z-index: 1; }

.services__eyebrow {
  color: #22D3EE; /* cian neón */
}

/* === TÍTULO VHS/LCD: degradado animado + glitch === */
.services__title {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-lg);
  background: linear-gradient(90deg, #22D3EE, #A855F7, #FF3B30, #FFB340, #22D3EE);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: services-gradient 8s linear infinite;
  text-wrap: balance;
}

@keyframes services-gradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* Capas glitch (usan el atributo data-text del H2) */
.services__title::before,
.services__title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: none;
  -webkit-text-fill-color: currentColor;
  pointer-events: none;
}

.services__title::before {
  color: rgba(34, 211, 238, 0.65);
  animation: services-glitch-a 3.4s infinite steps(1);
  z-index: -1;
}

.services__title::after {
  color: rgba(255, 59, 48, 0.65);
  animation: services-glitch-b 2.9s infinite steps(1);
  z-index: -2;
}

@keyframes services-glitch-a {
  0%, 91%, 100% { transform: translate(0); opacity: 0; }
  92% { transform: translate(-3px, 1px); opacity: 1; }
  94% { transform: translate(2px, -1px); opacity: 1; }
  96% { transform: translate(-2px, 0); opacity: 1; }
}

@keyframes services-glitch-b {
  0%, 88%, 100% { transform: translate(0); opacity: 0; }
  89% { transform: translate(3px, -1px); opacity: 1; }
  93% { transform: translate(-2px, 1px); opacity: 1; }
  97% { transform: translate(2px, 1px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .services__title { animation: none; }
  .services__title::before,
  .services__title::after { display: none; }
}

/* === TARJETAS DE SERVICIO === */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.services__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background: rgba(20, 16, 34, 0.7);
  border-color: rgba(168, 85, 247, 0.25);
  backdrop-filter: blur(8px);
}

.services__card:hover {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.12), var(--shadow-md);
}

.services__icon { font-size: 2.25rem; }

.services__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--text-primary);
  line-height: 1.3;
}

.services__price {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.services__price strong {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: #22D3EE;
}

.services__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.services__desc strong { color: var(--text-primary); }

.services__cta { align-self: stretch; min-width: 0; }

@media (max-width: 900px) {
  .services__grid { grid-template-columns: 1fr; }
}
