:root {
  /* ========================================================================= */
  /* DESIGN TOKENS - SISTEMA BASE                                              */
  /* ========================================================================= */

  /* Tipografía */
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;

  /* Paleta de Color */
  --color-bg: #ffffff;
  --color-bg-dark: #0a0a14;
  --color-primary: #4c1d95; /* Morado oscuro institucional exacto del proyecto */
  --color-primary-light: #a855f7;
  --color-text: #0a1b33;
  --color-text-muted: #64748b;

  /* Curvas y líneas finas */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --hairline: rgba(15, 23, 42, 0.08);
  --hairline-dark: rgba(255, 255, 255, 0.1);
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  text-rendering: optimizeLegibility;
}

/* Evita scroll horizontal por elementos que entran desde los lados (clip no rompe position: sticky) */
section {
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
}

:focus-visible {
  outline: 2px solid #8b5cf6;
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(76, 29, 149, 0.14);
  color: var(--color-primary);
}

/* Scrollbar con acento morado institucional */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fbfbfe; }
::-webkit-scrollbar-thumb { background: #c4b5fd; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #7c3aed; }

/* ========================================================================= */
/* SISTEMA "ORDEN DE SERVICIO": EYEBROWS NUMERADOS Y TITULARES               */
/* ========================================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.eyebrow__num {
  font-weight: 600;
}

.eyebrow__rule {
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}

.eyebrow--dark {
  color: #c4b5fd;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.5rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.032em;
  color: var(--color-text);
  text-wrap: balance;
}

/* Resaltado tipo marcador que se "dibuja" al revelarse el bloque */
.text-highlight {
  background-image: linear-gradient(transparent 62%, #ede9fe 62%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  padding: 0 0.08em;
  color: var(--color-primary);
  transition: background-size 1.1s var(--ease-out) 0.5s;
}

.is-visible .text-highlight {
  background-size: 100% 100%;
}

/* ========================================================================= */
/* BOTONES                                                                   */
/* ========================================================================= */
.btn-primary,
.btn-outline,
.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease,
              box-shadow 250ms var(--ease-out), transform 250ms var(--ease-out);
}

.btn-primary .material-symbols-outlined,
.btn-outline .material-symbols-outlined,
.btn-ghost-dark .material-symbols-outlined {
  font-size: 18px;
  transition: transform 250ms var(--ease-out);
}

.btn-primary:hover .material-symbols-outlined,
.btn-outline:hover .material-symbols-outlined,
.btn-ghost-dark:hover .material-symbols-outlined {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 10px 24px -10px rgba(76, 29, 149, 0.65);
}

.btn-primary:hover {
  background: #5b21b6;
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 16px 32px -12px rgba(76, 29, 149, 0.75);
}

/* Destello que cruza el botón: al pasar el mouse (.btn-primary, .shine) o en bucle (.shine--loop) */
.btn-primary,
.shine {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-primary::after,
.shine::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-20deg);
  opacity: 0;
  pointer-events: none;
}

.btn-primary:hover::after,
.shine:hover::after {
  animation: shineSweep 0.9s var(--ease-out);
}

.shine--loop::after {
  animation: shineLoop 5.5s ease-in-out 2.5s infinite;
}

@keyframes shineSweep {
  from { opacity: 1; transform: skewX(-20deg) translateX(0); }
  to { opacity: 1; transform: skewX(-20deg) translateX(420%); }
}

@keyframes shineLoop {
  0% { opacity: 1; transform: skewX(-20deg) translateX(0); }
  18%, 100% { opacity: 1; transform: skewX(-20deg) translateX(420%); }
}

.btn-outline {
  padding: 0.75rem 1.4rem;
  font-size: 0.875rem;
  color: var(--color-primary);
  background: #fff;
  border: 1px solid rgba(76, 29, 149, 0.22);
}

.btn-outline:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.btn-ghost-dark {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ========================================================================= */
/* HERO: ENTRADA, INDICADORES DE VIDEO CON PROGRESO                          */
/* ========================================================================= */
@keyframes heroFadeSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroTitleReveal {
  from { opacity: 0; transform: translateY(28px); clip-path: inset(0 0 100% 0); }
  to { opacity: 1; transform: translateY(0); clip-path: inset(0 0 -10% 0); }
}

@keyframes heroProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hero-badge-anim {
  opacity: 0;
  animation: heroFadeSlideUp 0.7s var(--ease-out) 80ms forwards;
}

.hero-title {
  opacity: 0;
  animation: heroTitleReveal 1s var(--ease-out) 180ms forwards;
  text-wrap: balance;
}

.hero-subtitle-anim {
  opacity: 0;
  animation: heroFadeSlideUp 0.8s var(--ease-out) 420ms forwards;
}

.hero-buttons-anim {
  opacity: 0;
  animation: heroFadeSlideUp 0.8s var(--ease-out) 560ms forwards;
}

.hero-facts-anim {
  opacity: 0;
  animation: heroFadeSlideUp 0.8s var(--ease-out) 700ms forwards;
}

.hero-accent {
  background: linear-gradient(90deg, #c4b5fd 0%, #e9d5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Altura visible real: viewport menos el header sticky (5rem); crece si el contenido no cabe */
.hero-height {
  min-height: max(640px, calc(100vh - 5rem));
  min-height: max(640px, calc(100svh - 5rem));
}

.carousel-slide {
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Overlay en gradiente de --color-bg-dark a transparente */
.hero-gradient-overlay {
  background: linear-gradient(100deg, rgba(10, 10, 20, 0.86) 0%, rgba(10, 10, 20, 0.66) 45%, rgba(10, 10, 20, 0.2) 80%, transparent 100%);
}

.hero-vignette-overlay {
  background: linear-gradient(180deg, rgba(10, 10, 20, 0.55) 0%, rgba(10, 10, 20, 0.1) 40%, rgba(10, 10, 20, 0.88) 100%);
}

.hero-indicator {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  text-align: left;
  color: rgba(255, 255, 255, 0.5);
  transition: color 300ms ease;
}

.hero-indicator:hover,
.hero-indicator.is-active {
  color: #fff;
}

.hero-indicator__bar {
  position: relative;
  display: block;
  height: 2px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.hero-indicator__fill {
  position: absolute;
  inset: 0;
  background: #c4b5fd;
  transform: scaleX(0);
  transform-origin: left center;
}

.hero-indicator.is-active .hero-indicator__fill {
  animation: heroProgress 7s linear forwards;
}

.hero-indicator__label {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.hero-indicator__label .font-mono {
  font-size: 0.7rem;
  opacity: 0.7;
}

/* ========================================================================= */
/* SERVICIOS: BLOQUES EN ZIGZAG (REVEAL AL ENTRAR EN VIEWPORT)               */
/* ========================================================================= */
.service-photo-reveal {
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.service-block.is-visible .service-photo-reveal,
.service-photo-reveal.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.service-text-slide-left,
.service-text-slide-right {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.service-text-slide-left { transform: translateX(-28px); }
.service-text-slide-right { transform: translateX(28px); }

.service-block.is-visible .service-text-slide-left,
.service-block.is-visible .service-text-slide-right,
.service-text-slide-left.is-visible,
.service-text-slide-right.is-visible {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

/* Checklist: stagger de 80ms, fade + slide leve */
.feature-check-item {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.service-block.is-visible .feature-check-item {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

.service-block.is-visible .feature-check-item:nth-child(1) { transition-delay: 150ms; }
.service-block.is-visible .feature-check-item:nth-child(2) { transition-delay: 230ms; }
.service-block.is-visible .feature-check-item:nth-child(3) { transition-delay: 310ms; }
.service-block.is-visible .feature-check-item:nth-child(4) { transition-delay: 390ms; }
.service-block.is-visible .feature-check-item:nth-child(5) { transition-delay: 470ms; }
.service-block.is-visible .feature-check-item:nth-child(6) { transition-delay: 550ms; }

.svc-media {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #f4f2fa;
  box-shadow: 0 30px 60px -30px rgba(30, 10, 60, 0.35);
}

.svc-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
  pointer-events: none;
}

/* Foto con barrido (clip-path) al entrar + paralaje vertical vía --py (JS) */
@property --zoom {
  syntax: '<number>';
  inherits: false;
  initial-value: 1.12;
}

.svc-media img {
  --zoom: 1.12;
  transform: translate3d(0, var(--py, 0px), 0) scale(var(--zoom));
  transition: --zoom 1.2s var(--ease-out);
}

.svc-media:hover img,
.service-block.is-visible .svc-media:hover img {
  --zoom: 1.17;
}

.service-block .svc-media {
  clip-path: inset(10% 8% 10% 8% round 1.25rem);
  transition: clip-path 1.3s var(--ease-out);
}

.service-block.is-visible .svc-media {
  clip-path: inset(0 0 0 0 round 1.25rem);
}

.service-block .svc-media img {
  --zoom: 1.32;
}

.service-block.is-visible .svc-media img {
  --zoom: 1.12;
}

.svc-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.svc-meta__num {
  color: var(--color-primary);
  font-weight: 600;
}

.svc-meta__rule {
  width: 1.75rem;
  height: 1px;
  background: rgba(76, 29, 149, 0.3);
}

.svc-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.svc-title--xl {
  font-size: clamp(2rem, 1.5rem + 1.8vw, 2.9rem);
  line-height: 1.08;
}

.svc-lead {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.check-list {
  display: grid;
  gap: 0.7rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #334155;
}

.check-list__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.05rem;
  border-radius: 0.375rem;
  background: rgba(76, 29, 149, 0.08);
  color: var(--color-primary);
  font-size: 15px !important;
}

/* ========================================================================= */
/* SECCIÓN GAMER & WORKSTATIONS: BANCO DE PRUEBAS EN VIVO (MORADO)           */
/* ========================================================================= */
.tech-grid {
  background-image:
    linear-gradient(rgba(167, 139, 250, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 139, 250, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 100%);
}

@keyframes recBlink {
  to { visibility: hidden; }
}

/* Fondo morado propio de la sección */
.gamer {
  isolation: isolate;
  background:
    radial-gradient(ellipse 55% 65% at 78% 42%, rgba(168, 85, 247, 0.5), transparent 62%),
    radial-gradient(ellipse 45% 55% at 8% 95%, rgba(219, 39, 119, 0.2), transparent 60%),
    linear-gradient(160deg, #1a0833 0%, #2e1065 48%, #3b0764 100%);
}

.gamer__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.gamer__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  animation: orbFloat 14s ease-in-out infinite;
}

.gamer__orb--a {
  right: 6%;
  top: 10%;
  width: 26rem;
  height: 26rem;
  background: #7c3aed;
  opacity: 0.5;
}

.gamer__orb--b {
  left: -6%;
  bottom: -12%;
  width: 20rem;
  height: 20rem;
  background: #c026d3;
  opacity: 0.3;
  animation-delay: -6s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-30px, 24px, 0) scale(1.08); }
}

/* Anillos de telemetría que giran lento detrás del banco */
.gamer__rings {
  position: absolute;
  right: -14rem;
  top: 38%;
  width: 52rem;
  height: 52rem;
  color: rgba(196, 181, 253, 0.13);
  animation: ringsSpin 120s linear infinite;
}

@keyframes ringsSpin {
  to { transform: rotate(360deg); }
}

.gamer .section-title {
  font-size: clamp(2rem, 1.3rem + 2.2vw, 3.1rem);
}

.gamer-live {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(46, 16, 101, 0.6);
  border: 1px solid rgba(196, 181, 253, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e9d5ff;
}

.gamer-live__dot {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #c084fc;
}

/* ------------------------------------------------------------------------- */
/* Banco de pruebas: consola con la PC real y su telemetría                  */
/* El color de acento cambia entre "antes" (calor) y "después" (frío)        */
/* ------------------------------------------------------------------------- */
@property --rig-accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #fb7185;
}

@property --rig-accent-2 {
  syntax: "<color>";
  inherits: true;
  initial-value: #fdba74;
}

.rig {
  --rig-accent: #fb7185;
  --rig-accent-2: #fdba74;
  --rig-wipe: #67e8f9;
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(24, 8, 48, 0.86), rgba(14, 4, 30, 0.92));
  border: 1px solid rgba(196, 181, 253, 0.22);
  box-shadow: 0 60px 120px -50px rgba(5, 0, 20, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  /* Encendido tipo monitor CRT: una línea que se abre */
  clip-path: inset(49.5% 0 49.5% 0 round 1.5rem);
  opacity: 0;
  transition: clip-path 0.9s var(--ease-out) 0.1s, opacity 0.25s ease, --rig-accent 1s ease, --rig-accent-2 1s ease;
}

.rig[data-mode="after"] {
  --rig-accent: #67e8f9;
  --rig-accent-2: #c4b5fd;
}

.rig[data-wipe="before"] {
  --rig-wipe: #fb7185;
}

.rig.is-on {
  clip-path: inset(0 0 0 0 round 1.5rem);
  opacity: 1;
}

/* Al salir se apaga cerrándose en una línea */
.rig.is-exit {
  transition: clip-path 0.55s cubic-bezier(0.7, 0, 0.84, 0), opacity 0.3s ease 0.45s;
}

.rig::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 6;
  height: 2px;
  margin-top: -1px;
  background: #f5f3ff;
  box-shadow: 0 0 24px 6px rgba(192, 132, 252, 0.85);
  opacity: 0;
  pointer-events: none;
}

.rig.is-on::after {
  animation: crtFlash 0.9s ease-out;
}

@keyframes crtFlash {
  0% { opacity: 1; transform: scaleX(0.15); }
  35% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}

.rig__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1rem 1.25rem 1.15rem;
  border-bottom: 1px solid rgba(196, 181, 253, 0.14);
}

.rig__title,
.rig__clock {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rig__title {
  color: rgba(233, 213, 255, 0.88);
}

.rig__clock {
  color: rgba(233, 213, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

.rig__rec {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--rig-accent);
  box-shadow: 0 0 10px var(--rig-accent);
  animation: recBlink 1.2s steps(2, start) infinite;
}

/* Interruptor Antes / Después con barra que marca el cambio automático */
.rig-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.rig-switch__thumb {
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  left: 0.25rem;
  width: calc(50% - 0.25rem);
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--rig-accent), var(--rig-accent-2));
  box-shadow: 0 0 24px -4px var(--rig-accent);
  transition: transform 0.6s var(--ease-out);
}

.rig[data-mode="after"] .rig-switch__thumb {
  transform: translateX(100%);
}

.rig-switch__btn {
  position: relative;
  z-index: 1;
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.3s ease;
}

.rig-switch__btn:hover {
  color: #fff;
}

.rig-switch__btn[aria-pressed="true"] {
  color: #14061f;
}

.rig-switch__timer {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: -0.5rem;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rig-switch__timer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rig-accent);
  transform: scaleX(0);
  transform-origin: left;
}

.rig.is-auto .rig-switch__timer {
  opacity: 1;
}

.rig.is-auto .rig-switch__timer::before {
  animation: rigTimer var(--rig-dwell, 5s) linear forwards;
}

@keyframes rigTimer {
  to { transform: scaleX(1); }
}

.rig__body {
  display: grid;
  gap: 1.75rem;
  padding: 1.5rem 1.25rem 1.5rem;
}

@media (min-width: 1024px) {
  .rig__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    align-items: center;
    gap: 2.5rem;
    padding: 2rem 2.25rem 2.25rem;
  }
}

@media (max-width: 639px) {
  .rig__bar { padding: 0.9rem 1rem 1.25rem; }
  .rig-switch { order: 3; width: 100%; }
  .rig__body { padding: 1.25rem 1rem; }
}

/* PC real dentro del banco */
.rig-visual {
  position: relative;
  width: min(100%, 34rem);
  margin-inline: auto;
  aspect-ratio: 1300 / 1318;
  container-type: inline-size;
}

.rig-visual__halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--rig-accent) 30%, transparent) 0%, rgba(124, 58, 237, 0.18) 38%, transparent 66%);
  pointer-events: none;
}

/* Silueta del gabinete medida sobre la foto (quita la pared del fondo) */
.rig-visual__pc {
  position: absolute;
  inset: 0;
  clip-path: polygon(3.54% 16.51%, 65.9% 0.5%, 97.02% 13.13%, 99.55% 99%, 60.11% 99.56%, 55.62% 98.45%, 37.64% 97.23%, 0.45% 95.12%);
  transition: opacity 0.8s ease;
}

/* Hasta que la foto esté lista no se muestran ni la PC ni sus capas */
.rig-visual:not(.is-loaded) .rig-visual__pc,
.rig-visual:not(.is-loaded) .rig-reticle {
  opacity: 0;
}

.rig-visual__pc img {
  display: block;
  width: 100%;
  height: 100%;
}

/* RGB en tonos morados sobre la iluminación real (mezcla "hue") */
.rig-visual__tint {
  position: absolute;
  inset: 0;
  overflow: hidden;
  mix-blend-mode: hue;
  opacity: 0.7;
}

.rig-visual__tint::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 300%;
  background: linear-gradient(100deg, #8b5cf6 0%, #c026d3 16%, #7c3aed 33%, #8b5cf6 50%, #c026d3 66%, #7c3aed 83%, #8b5cf6 100%);
  animation: rgbFlow 16s linear infinite;
}

@keyframes rgbFlow {
  to { transform: translateX(-50%); }
}

/* Lectura de calor sobre GPU y bomba del CPU: caliente antes, fría después */
.rig-visual__heat {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  transition: opacity 1.2s ease;
}

.rig-visual__heat::before {
  content: "";
  position: absolute;
  inset: 0;
  animation: heatPulse 2.6s ease-in-out infinite;
}

.rig-visual__heat--hot::before {
  background:
    radial-gradient(ellipse 27% 13% at 37% 71%, rgba(255, 112, 67, 0.95), rgba(244, 63, 94, 0.5) 45%, transparent 75%),
    radial-gradient(ellipse 11% 13% at 32% 48%, rgba(255, 140, 70, 0.9), rgba(244, 63, 94, 0.4) 50%, transparent 78%);
}

.rig-visual__heat--cool {
  opacity: 0;
}

.rig-visual__heat--cool::before {
  background:
    radial-gradient(ellipse 27% 13% at 37% 71%, rgba(103, 232, 249, 0.55), rgba(139, 92, 246, 0.25) 50%, transparent 75%),
    radial-gradient(ellipse 11% 13% at 32% 48%, rgba(103, 232, 249, 0.5), transparent 78%);
  animation-duration: 4s;
}

.rig[data-mode="after"] .rig-visual__heat--hot { opacity: 0; }
.rig[data-mode="after"] .rig-visual__heat--cool { opacity: 1; }

@keyframes heatPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* La pantalla LCD real del AIO muestra la temperatura del banco */
.rig-visual__lcd {
  position: absolute;
  left: 29.4%;
  top: 43.6%;
  width: 5.6%;
  height: 5.2%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background: #120a2a;
  box-shadow: 0 0 4px 3px #120a2a;
  font-family: var(--font-display);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.rig-visual__lcd small {
  font-family: var(--font-mono);
  font-size: 1.05cqw;
  letter-spacing: 0.1em;
  color: rgba(233, 213, 255, 0.75);
}

.rig-visual__lcd b {
  margin-top: 0.3cqw;
  font-size: 2.9cqw;
  font-weight: 600;
  color: var(--rig-accent);
  text-shadow: 0 0 1.2cqw var(--rig-accent);
}

/* Barrido de escaneo que recorre el gabinete */
.rig-visual__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 18%;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--rig-accent) 28%, transparent) 85%, var(--rig-accent) 100%);
  mix-blend-mode: screen;
  opacity: 0.5;
  animation: rigScan 4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes rigScan {
  from { transform: translateY(-100%); }
  to { transform: translateY(560%); }
}

/* Retícula que enfoca cada componente (posición y tamaño desde JS) */
.rig-reticle {
  position: absolute;
  left: var(--rx, 37%);
  top: var(--ry, 71%);
  z-index: 2;
  width: var(--rw, 47%);
  height: var(--rh, 23%);
  transform: translate(-50%, -50%);
  transition: left 0.8s var(--ease-out), top 0.8s var(--ease-out), width 0.8s var(--ease-out), height 0.8s var(--ease-out), opacity 0.6s ease 0.3s;
  pointer-events: none;
}

.rig-reticle::before,
.rig-reticle::after {
  content: "";
  position: absolute;
  inset: 0;
}

.rig-reticle::before {
  background:
    linear-gradient(var(--rig-accent), var(--rig-accent)) top left / 14px 2px no-repeat,
    linear-gradient(var(--rig-accent), var(--rig-accent)) top left / 2px 14px no-repeat,
    linear-gradient(var(--rig-accent), var(--rig-accent)) top right / 14px 2px no-repeat,
    linear-gradient(var(--rig-accent), var(--rig-accent)) top right / 2px 14px no-repeat,
    linear-gradient(var(--rig-accent), var(--rig-accent)) bottom left / 14px 2px no-repeat,
    linear-gradient(var(--rig-accent), var(--rig-accent)) bottom left / 2px 14px no-repeat,
    linear-gradient(var(--rig-accent), var(--rig-accent)) bottom right / 14px 2px no-repeat,
    linear-gradient(var(--rig-accent), var(--rig-accent)) bottom right / 2px 14px no-repeat;
  filter: drop-shadow(0 0 6px var(--rig-accent));
}

.rig-reticle::after {
  inset: 5px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: color-mix(in srgb, var(--rig-accent) 7%, transparent);
}

.rig-reticle__tag {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem;
  border-radius: 0.5rem;
  background: rgba(14, 4, 30, 0.88);
  border: 1px solid color-mix(in srgb, var(--rig-accent) 50%, transparent);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rig-reticle.is-right .rig-reticle__tag {
  left: auto;
  right: 0;
}

.rig-reticle__tag b {
  font-weight: 600;
  color: #fff;
}

.rig-reticle__tag span {
  color: var(--rig-accent);
  font-variant-numeric: tabular-nums;
}

/* Telemetría */
.rig-data {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
}

.rig-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(216, 180, 254, 0.72);
}

.rig-fps {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.rig-fps__value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.6rem;
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 2.4rem + 3.4vw, 5.5rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 0 44px color-mix(in srgb, var(--rig-accent) 55%, transparent);
}

.rig-fps__value small {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
  text-shadow: none;
}

.rig-fps__side {
  display: grid;
  gap: 0.75rem;
  text-align: right;
}

.rig-fps__side dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(216, 180, 254, 0.65);
}

.rig-fps__side dd {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

/* Diferencia contra "antes": aparece cuando terminan de cambiar las lecturas */
.rig-delta {
  align-self: center;
  flex-shrink: 0;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--rig-accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--rig-accent) 40%, transparent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--rig-accent);
  text-shadow: none;
  opacity: 0;
  transform: translateY(6px) scale(0.9);
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out);
}

.rig-delta.is-shown {
  opacity: 1;
  transform: none;
}

.rig-chart {
  display: block;
  width: 100%;
  height: 7.5rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rig-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .rig-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.rig-tile {
  padding: 0.85rem 0.95rem 0.95rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: border-color 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}

.rig-tile.is-focus {
  border-color: color-mix(in srgb, var(--rig-accent) 60%, transparent);
  background-color: color-mix(in srgb, var(--rig-accent) 8%, transparent);
  box-shadow: 0 0 30px -12px var(--rig-accent);
}

.rig-tile__value {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-top: 0.45rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.rig-tile__value small {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
}

.rig-tile__foot {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.rig-tile__foot .rig-delta {
  padding: 0.1rem 0.4rem;
  font-size: 10px;
}

.rig-tile__bar {
  flex: 1;
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.rig-tile__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rig-accent-2), var(--rig-accent));
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

.rig-tile__fan {
  font-size: 17px !important;
  color: var(--rig-accent);
  animation: fanSpin var(--spin, 0.4s) linear infinite;
}

@keyframes fanSpin {
  to { transform: rotate(360deg); }
}

.rig-status {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  background: color-mix(in srgb, var(--rig-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--rig-accent) 35%, transparent);
  font-size: 0.875rem;
  line-height: 1.4;
}

.rig-status .material-symbols-outlined {
  flex-shrink: 0;
  font-size: 20px;
  color: var(--rig-accent);
}

/* Arranque: registro de encendido antes de mostrar las lecturas */
.rig__boot {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 2rem 1.5rem;
  background: #0e0420;
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 0.68rem + 0.35vw, 0.95rem);
  letter-spacing: 0.08em;
  color: #d8b4fe;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
  pointer-events: none;
}

.rig.is-booting .rig__boot {
  opacity: 1;
  visibility: visible;
  transition: none;
}

.rig__boot p {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  width: min(100%, 34rem);
  opacity: 0;
}

.rig__boot p:first-child {
  margin-bottom: 0.4rem;
  color: #fff;
}

.rig__boot i {
  flex: 1;
  border-bottom: 1px dotted rgba(216, 180, 254, 0.35);
}

.rig.is-booting .rig__boot p {
  animation: bootLine 0.01s linear forwards;
  animation-delay: calc(var(--i) * 230ms + 250ms);
}

@keyframes bootLine {
  to { opacity: 1; }
}

/* Barrido de mantenimiento al cambiar de modo */
.rig__wipe {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

.rig__wipe::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 30%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--rig-wipe) 22%, transparent) 75%, var(--rig-wipe) 99%, transparent);
  transform: translateX(-110%);
}

.rig__wipe span {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: calc(100% - 2rem);
  padding: 0.6rem 1.1rem;
  border-radius: 9999px;
  background: rgba(14, 4, 30, 0.9);
  border: 1px solid var(--rig-wipe);
  box-shadow: 0 0 40px -8px var(--rig-wipe);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
}

.rig.is-wiping .rig__wipe::before {
  animation: rigWipe 1.2s cubic-bezier(0.6, 0, 0.3, 1) forwards;
}

.rig.is-wiping .rig__wipe span {
  animation: wipeLabel 1.7s ease forwards;
}

@keyframes rigWipe {
  to { transform: translateX(450%); }
}

@keyframes wipeLabel {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.92); }
  20%, 70% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.02); }
}

.rig-note {
  max-width: 46rem;
  margin: 1.1rem auto 0;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

/* Cinta con el hardware que atendemos */
.rig-ticker {
  position: relative;
  margin-top: 3.5rem;
  padding: 0.95rem 0;
  overflow: hidden;
  border-block: 1px solid rgba(196, 181, 253, 0.18);
  background: rgba(14, 4, 30, 0.35);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.rig-ticker__group {
  gap: 1.75rem;
  padding-right: 1.75rem;
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 0.7rem + 0.3vw, 0.95rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(233, 213, 255, 0.82);
}

.rig-ticker__group i {
  flex-shrink: 0;
  width: 0.4rem;
  height: 0.4rem;
  background: #c084fc;
  box-shadow: 0 0 10px #c084fc;
  transform: rotate(45deg);
}

/* ------------------------------------------------------------------------- */
/* Tarjetas de servicio con borde RGB al pasar el mouse                      */
/* ------------------------------------------------------------------------- */
@property --rgb-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.rig-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.3s ease, box-shadow 0.4s ease;
}

.rig-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--rgb-angle), #a855f7, #ec4899, #67e8f9, #8b5cf6, #a855f7);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: rgbSpin 3.5s linear infinite paused;
  pointer-events: none;
}

.rig-card:hover {
  border-color: transparent;
  box-shadow: 0 30px 60px -30px rgba(10, 0, 30, 0.8), 0 0 46px -16px rgba(192, 132, 252, 0.7);
}

.rig-card:hover::after {
  opacity: 1;
  animation-play-state: running;
}

@keyframes rgbSpin {
  to { --rgb-angle: 360deg; }
}

.rig-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.rig-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.35), rgba(124, 58, 237, 0.15));
  border: 1px solid rgba(216, 180, 254, 0.3);
  color: #f5f3ff;
  font-size: 24px !important;
  transition: transform 0.4s var(--ease-out);
}

.rig-card:hover .rig-card__icon {
  transform: rotate(-8deg) scale(1.08);
}

.rig-card__num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(216, 180, 254, 0.65);
}

.rig-card__title {
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.rig-card__text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.rig-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1.4rem;
}

.rig-card__tags li {
  padding: 0.3rem 0.65rem;
  border-radius: 0.4rem;
  background: rgba(46, 16, 101, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.32);
  font-family: var(--font-mono);
  font-size: 11px;
  color: #e9d5ff;
}

.btn-gamer {
  background: linear-gradient(90deg, #7c3aed 0%, #6d28d9 50%, #4f46e5 100%);
  color: #fff;
  border: 1px solid rgba(196, 181, 253, 0.35);
  box-shadow: 0 18px 40px -16px rgba(124, 58, 237, 0.8);
}

.btn-gamer:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 46px -14px rgba(139, 92, 246, 0.95);
}

/* Baliza / Beacon de telemetría pulsante */
@keyframes beacon-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(168, 85, 247, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

.beacon-active {
  animation: beacon-pulse 2.2s infinite;
}

/* ========================================================================= */
/* SERVICIOS DIGITALES: TARJETAS DE OFERTA                                   */
/* ========================================================================= */
.offer-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 250ms ease, background-color 250ms ease, transform 300ms var(--ease-out);
}

.offer-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(196, 181, 253, 0.45);
  transform: translateY(-3px);
}

.offer-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(196, 181, 253, 0.25);
  color: #ddd6fe;
}

.offer-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.offer-card__cta .material-symbols-outlined {
  font-size: 18px;
  transition: transform 250ms var(--ease-out);
}

.offer-card:hover .offer-card__cta .material-symbols-outlined {
  transform: translateX(4px);
}

/* ========================================================================= */
/* MARQUEE DE MARCAS (MASK-IMAGE + LOOP PERFECTO)                            */
/* ========================================================================= */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-scroller {
  position: relative;
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
  will-change: transform;
}

.marquee-track--fast {
  animation-duration: 26s;
}

.marquee-scroller:hover .marquee-track {
  animation-play-state: paused;
}

.brand-word {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: #a3acba;
  transition: color 250ms ease;
}

.brand-word:hover {
  color: var(--color-text);
}

.brand-word--sm {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

/* ========================================================================= */
/* FAQ: ACORDEÓN CON ALTURA FLUIDA                                           */
/* ========================================================================= */
.faq-trigger {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.4rem 0;
  text-align: left;
}

.faq-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: #a78bfa;
}

.faq-q {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  transition: color 200ms ease;
}

.faq-trigger:hover .faq-q {
  color: var(--color-primary);
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid rgba(76, 29, 149, 0.18);
  color: var(--color-primary);
  font-size: 18px !important;
  transition: transform 350ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 400ms var(--ease-out);
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel__inner {
  overflow: hidden;
}

/* ========================================================================= */
/* SISTEMA DE ANIMACIONES DE ENTRADA (GPU ACCELERATED, UNA SOLA VEZ)         */
/* ========================================================================= */
.anim-trigger {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.anim-fade-up { transform: translate3d(0, 22px, 0); }
.anim-fade-down { transform: translate3d(0, -16px, 0); }
.anim-slide-left { transform: translate3d(-28px, 0, 0); }
.anim-slide-right { transform: translate3d(28px, 0, 0); }
.anim-scale-up { transform: translate3d(0, 14px, 0) scale(0.97); }

.anim-trigger.is-visible {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
}

.stagger-1 { transition-delay: 90ms; }
.stagger-2 { transition-delay: 180ms; }
.stagger-3 { transition-delay: 280ms; }
.stagger-4 { transition-delay: 400ms; }

@media (max-width: 768px) {
  .anim-fade-up { transform: translate3d(0, 14px, 0); }
  .anim-fade-down { transform: translate3d(0, -10px, 0); }
  .anim-slide-left { transform: translate3d(-14px, 0, 0); }
  .anim-slide-right { transform: translate3d(14px, 0, 0); }
  .anim-scale-up { transform: translate3d(0, 10px, 0) scale(0.98); }

  .stagger-1 { transition-delay: 50ms; }
  .stagger-2 { transition-delay: 100ms; }
  .stagger-3 { transition-delay: 160ms; }
  .stagger-4 { transition-delay: 220ms; }
}

/* ========================================================================= */
/* HEADER                                                                    */
/* ========================================================================= */
.nav-link.active {
  color: #4c1d95 !important;
  background-color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 3px rgba(76, 29, 149, 0.12), 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Elevación dinámica del header sticky al hacer scroll */
.header-scrolled {
  background-color: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 4px 20px -2px rgba(10, 10, 20, 0.08), 0 2px 6px -1px rgba(76, 29, 149, 0.05) !important;
  border-color: rgba(233, 229, 255, 0.9) !important;
}

/* ========================================================================= */
/* EFECTOS: PROGRESO DE SCROLL, PALABRA GIRATORIA, BANDA CINÉTICA, ETC.      */
/* ========================================================================= */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, #7c3aed, #c084fc 60%, #22d3ee);
  transform: scaleX(var(--scroll, 0));
  transform-origin: left center;
  pointer-events: none;
}

/* Palabra giratoria del titular */
.word-rotator {
  position: relative;
  display: inline-flex;
  vertical-align: bottom;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
  white-space: nowrap;
  transition: width 0.6s var(--ease-out);
}

.word-rotator__word {
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(90deg, #c4b5fd 0%, #f0abfc 55%, #e9d5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(85%);
  filter: blur(8px);
  transition: transform 0.7s var(--ease-out), opacity 0.5s ease, filter 0.6s ease;
}

.word-rotator__word.is-in {
  position: relative;
  opacity: 1;
  transform: none;
  filter: none;
}

.word-rotator__word.is-out {
  opacity: 0;
  transform: translateY(-85%);
  filter: blur(8px);
}

/* Banda cinética cruzada (se acelera y cambia de sentido con el scroll) */
.kinetic-wrap {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0;
  background: #fff;
}

.kinetic-band {
  position: relative;
  padding: 1.1rem 0;
  white-space: nowrap;
}

.kinetic-band--front {
  z-index: 2;
  transform: rotate(-2.5deg) scale(1.05);
  background: linear-gradient(90deg, #2e1065, #4c1d95 45%, #6d28d9);
  box-shadow: 0 24px 50px -24px rgba(76, 29, 149, 0.7);
}

.kinetic-band--back {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%) rotate(2.5deg) scale(1.05);
  background: #f3efff;
}

.kinetic-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.kinetic-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2.25rem;
  padding-right: 2.25rem;
}

.kinetic-word {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}

.kinetic-word--outline {
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.75);
}

.kinetic-band--back .kinetic-word {
  color: rgba(76, 29, 149, 0.85);
}

.kinetic-band--back .kinetic-word--outline {
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(76, 29, 149, 0.45);
}

.kinetic-star {
  font-size: 1.5rem;
  color: #c4b5fd;
}

.kinetic-band--back .kinetic-star {
  color: #a78bfa;
}

/* Cintas de taller cruzadas (transición hacia la sección gamer) */
.tape-wrap {
  position: relative;
  z-index: 3;
  height: 10rem;
  margin: -5rem 0;
  overflow: hidden;
  pointer-events: none;
}

.tape {
  position: absolute;
  left: -4%;
  right: -4%;
  top: 50%;
  padding: 0.95rem 0;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.55);
}

.tape::before,
.tape::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 7px;
  background: repeating-linear-gradient(-45deg, var(--stripe-a) 0 10px, var(--stripe-b) 10px 20px);
}

.tape::before { top: 0; }
.tape::after { bottom: 0; }

.tape--front {
  --stripe-a: #a855f7;
  --stripe-b: #0b0614;
  z-index: 2;
  background: #0b0614;
  color: #f5f3ff;
  transform: translateY(-50%) rotate(-4deg);
}

.tape--back {
  --stripe-a: #0b0614;
  --stripe-b: #c4b5fd;
  z-index: 1;
  background: #a855f7;
  color: #12051f;
  transform: translateY(-50%) rotate(3deg);
}

.tape__group {
  gap: 1.4rem;
  padding-right: 1.4rem;
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 0.68rem + 0.5vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tape__group .material-symbols-outlined {
  font-size: 1.3em;
  letter-spacing: 0;
}

/* Texto gigante de fondo que se desliza con el scroll */
.has-ghost {
  position: relative;
  isolation: isolate;
}

.ghost-text {
  position: absolute;
  top: var(--ghost-top, 2.5rem);
  left: 0;
  z-index: -1;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 17vw, 17rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.045em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(76, 29, 149, 0.1);
  transform: translate3d(var(--gx, 0px), 0, 0);
  pointer-events: none;
  user-select: none;
}

.ghost-text--dark {
  -webkit-text-stroke-color: rgba(196, 181, 253, 0.12);
}

/* Sello circular con texto que gira (más rápido al hacer scroll) */
.spin-badge {
  position: absolute;
  width: 8.5rem;
  height: 8.5rem;
  pointer-events: none;
}

.spin-badge svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.spin-badge text {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  fill: rgba(255, 255, 255, 0.85);
}

.spin-badge__ring {
  fill: none;
  stroke: rgba(196, 181, 253, 0.35);
  stroke-width: 1;
}

.spin-badge__core {
  position: absolute;
  inset: 31%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
  box-shadow: 0 10px 30px -8px rgba(124, 58, 237, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.5rem !important;
}

/* Efecto VHS sobre la foto de digitalización */
.vhs-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  font-family: var(--font-mono);
  color: #fff;
  text-shadow: 1px 0 rgba(255, 0, 80, 0.55), -1px 0 rgba(0, 220, 255, 0.55);
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.14) 0 1px, transparent 1px 3px);
}

.vhs-rec,
.vhs-mode,
.vhs-time {
  position: absolute;
  font-size: clamp(0.8rem, 0.7rem + 0.4vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.vhs-rec {
  top: 1rem;
  left: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.vhs-rec i {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: #ff2d55;
  box-shadow: 0 0 10px #ff2d55;
  animation: recBlink 1.4s steps(2, start) infinite;
}

.vhs-mode { top: 1rem; right: 1.1rem; }
.vhs-time { bottom: 1rem; right: 1.1rem; }

.vhs-overlay::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -15%;
  height: 12%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.09) 40%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0.09) 60%, transparent);
  mix-blend-mode: overlay;
  animation: vhsTracking 6s linear infinite;
}

@keyframes vhsTracking {
  from { transform: translateY(0); }
  to { transform: translateY(1150%); }
}

.svc-media:hover .vhs-overlay {
  animation: vhsJitter 0.25s steps(2) infinite;
}

@keyframes vhsJitter {
  50% { transform: translateX(2px); filter: hue-rotate(20deg); }
}

/* Barrido de escáner sobre las fotos al revelarse */
.svc-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, transparent 0%, rgba(233, 213, 255, 0) 44%, rgba(233, 213, 255, 0.55) 50%, transparent 52%);
  background-size: 100% 260%;
  background-position: 0 100%;
  opacity: 0;
  pointer-events: none;
}

.service-block.is-visible .svc-media::before {
  animation: photoScan 1.5s var(--ease-out) 0.35s 1;
}

@keyframes photoScan {
  0% { opacity: 1; background-position: 0 100%; }
  85% { opacity: 1; }
  100% { opacity: 0; background-position: 0 -40%; }
}

/* Sección que se expande de tarjeta a pantalla completa al entrar */
.expand-section {
  --gap: calc(1 - var(--expand, 1));
  clip-path: inset(calc(var(--gap) * 7%) calc(var(--gap) * 5%) round calc(var(--gap) * 3rem));
}

/* Logotipo gigante del footer que se rellena al llegar al final */
.footer-wordmark {
  display: flex;
  justify-content: space-between;
  gap: 2vw;
  padding: 0 1.5rem;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 20vw, 19rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.05em;
  user-select: none;
}

.footer-wordmark span {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(76, 29, 149, 0.22);
  background: linear-gradient(90deg, #4c1d95 0%, #7c3aed 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: calc(100% - var(--fill, 0) * 100%) 0;
  -webkit-background-clip: text;
  background-clip: text;
  transform: translate3d(0, calc((1 - var(--fill, 0)) * 18%), 0);
}

.footer-wordmark span:last-child {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: -0.06em;
}

/* Títulos de sección: palabras que suben desde una máscara */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.split-word > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms);
}

.is-split.is-revealed .split-word > span {
  transform: none;
}

.is-split.is-exit .split-word > span {
  transform: translateY(-105%);
}

/* ========================================================================= */
/* SALIDAS: los elementos se van hacia arriba al dejar la pantalla           */
/* (al volver desde abajo regresan a su estado de entrada)                   */
/* ========================================================================= */
.anim-trigger.is-exit {
  opacity: 0;
  transform: translate3d(0, -22px, 0) scale(0.98);
}

.service-block.is-exit .service-photo-reveal {
  opacity: 0;
  transform: translateY(-40px);
}

.service-block.is-exit .service-text-slide-left,
.service-block.is-exit .service-text-slide-right {
  opacity: 0;
  transform: translateY(-24px);
}

.service-block.is-exit .feature-check-item {
  opacity: 0;
  transform: translateY(-6px);
}

.service-block.is-exit .svc-media {
  clip-path: inset(0 0 100% 0 round 1.25rem);
}

/* Luz que sigue al cursor dentro de tarjetas */
.spotlight {
  position: relative;
  isolation: isolate;
}

.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(196, 181, 253, 0.16), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.spotlight:hover::before {
  opacity: 1;
}

/* Burbuja de invitación y pulso del botón de WhatsApp */
.wa-bubble {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: max-content;
  max-width: 15.5rem;
  padding: 0.85rem 2.25rem 0.85rem 1rem;
  border-radius: 1rem 1rem 0.3rem 1rem;
  background: #fff;
  color: var(--color-text);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.28);
  font-size: 0.85rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out);
}

.wa-bubble.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.wa-bubble__close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  color: #94a3b8;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.wa-bubble__close:hover {
  background: #f1f5f9;
  color: var(--color-text);
}

.wa-pulse::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: waPulse 2.8s ease-out infinite;
  pointer-events: none;
}

@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ========================================================================= */
/* DIAGNÓSTICO EXPRESS: selección + pre-orden estilo ticket de taller        */
/* ========================================================================= */
.diag {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .diag {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 2rem;
  }
}

.diag__panel {
  padding: 1.75rem;
  border-radius: 1.5rem;
  background: #fbfaff;
  border: 1px solid rgba(76, 29, 149, 0.1);
}

@media (min-width: 640px) {
  .diag__panel { padding: 2.25rem; }
}

.diag__steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.diag__step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 2px solid rgba(76, 29, 149, 0.12);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.diag__step.is-done { color: #475569; border-color: rgba(76, 29, 149, 0.45); }
.diag__step.is-active { color: var(--color-primary); border-color: var(--color-primary); }

.diag__group {
  min-width: 0;
  margin: 0 0 1.75rem;
  padding: 0;
  border: 0;
  transition: opacity 0.4s ease;
}

.diag__group:last-child { margin-bottom: 0; }
.diag__group:disabled { opacity: 0.45; }

.diag__legend {
  margin-bottom: 0.9rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.diag__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.diag__hint {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.diag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.05rem;
  border-radius: 9999px;
  border: 1px solid rgba(76, 29, 149, 0.18);
  background: #fff;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
              transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.diag-chip .material-symbols-outlined {
  font-size: 20px;
  color: var(--color-primary);
  transition: color 0.2s ease;
}

.diag-chip:hover {
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -12px rgba(76, 29, 149, 0.5);
}

.diag-chip[aria-pressed="true"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(76, 29, 149, 0.8);
}

.diag-chip[aria-pressed="true"] .material-symbols-outlined { color: #ddd6fe; }

.diag-chip.is-new {
  animation: chipIn 0.45s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}

@keyframes chipIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.diag-ticket {
  position: relative;
  padding: 1.75rem 1.75rem 1.5rem;
  border-radius: 1rem;
  background: #faf8ff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: 0 30px 60px -35px rgba(30, 10, 60, 0.45);
  font-family: var(--font-mono);
}

@media (min-width: 1024px) {
  .diag-ticket {
    position: sticky;
    top: 7rem;
  }
}

.diag-ticket__head {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px dashed rgba(76, 29, 149, 0.2);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

/* Muescas laterales del ticket sobre la línea perforada */
.diag-ticket__head::before,
.diag-ticket__head::after {
  content: "";
  position: absolute;
  bottom: -12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.09);
}

.diag-ticket__head::before { left: calc(-1.75rem - 12px); clip-path: inset(0 0 0 50%); }
.diag-ticket__head::after { right: calc(-1.75rem - 12px); clip-path: inset(0 50% 0 0); }

.diag-ticket__rows > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dotted rgba(15, 23, 42, 0.14);
  font-size: 0.8rem;
}

.diag-ticket__rows dt {
  flex-shrink: 0;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

.diag-ticket__rows dd {
  text-align: right;
  font-weight: 600;
  color: var(--color-text);
}

.diag-ticket__rows dd.is-empty {
  font-weight: 400;
  color: #a0a7b4;
}

.diag-ticket__rows dd.is-updated {
  animation: ticketFlash 0.7s ease;
}

@keyframes ticketFlash {
  from { background: #ede9fe; }
  to { background: transparent; }
}

.diag-ticket__note {
  margin: 1.1rem 0 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.diag-ticket__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--font-sans);
}

.btn-primary.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  box-shadow: none;
}

.diag-ticket__barcode {
  height: 34px;
  margin-top: 1.5rem;
  border-radius: 2px;
  opacity: 0.75;
  background: repeating-linear-gradient(90deg,
      #1e1b2e 0 2px, transparent 2px 4px, #1e1b2e 4px 5px, transparent 5px 8px,
      #1e1b2e 8px 11px, transparent 11px 12px, #1e1b2e 12px 13px, transparent 13px 17px);
}

/* Sello de "lista para enviar" que se estampa al completar */
.diag-ticket__stamp {
  position: absolute;
  right: 1.25rem;
  bottom: 0.9rem;
  padding: 0.45rem 0.8rem;
  border: 2.5px solid #16a34a;
  border-radius: 0.5rem;
  background: rgba(250, 248, 255, 0.85);
  color: #16a34a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transform: rotate(-10deg) scale(1.8);
  pointer-events: none;
}

.diag-ticket.is-ready .diag-ticket__stamp {
  animation: stampIn 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}

@keyframes stampIn {
  0% { opacity: 0; transform: rotate(-10deg) scale(1.8); }
  60% { opacity: 0.95; transform: rotate(-10deg) scale(0.94); }
  100% { opacity: 0.9; transform: rotate(-10deg) scale(1); }
}

/* ========================================================================= */
/* CÓMO TRABAJAMOS: línea de tiempo que se dibuja con el scroll              */
/* ========================================================================= */
.process {
  position: relative;
}

.process__list {
  display: grid;
  gap: 2.25rem;
}

.process__track {
  position: absolute;
  left: 1.75rem;
  top: 1.75rem;
  bottom: 1.75rem;
  width: 2px;
  margin-left: -1px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(76, 29, 149, 0.12);
}

.process__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #7c3aed, #c084fc);
  transform: scaleY(var(--process, 0));
  transform-origin: top;
}

/* Chispa que recorre la línea al terminar la animación */
.process__spark {
  position: absolute;
  left: 0;
  top: -20%;
  width: 100%;
  height: 18%;
  background: linear-gradient(180deg, transparent, #fff, transparent);
  opacity: 0;
}

.process.is-horizontal .process__spark {
  left: -15%;
  top: 0;
  width: 14%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #fff, transparent);
}

.process.is-complete .process__spark {
  opacity: 1;
  animation: sparkY 2.6s ease-in-out infinite;
}

.process.is-complete.is-horizontal .process__spark {
  animation-name: sparkX;
}

@keyframes sparkY {
  from { top: -20%; }
  to { top: 100%; }
}

@keyframes sparkX {
  from { left: -15%; }
  to { left: 100%; }
}

.process__step {
  position: relative;
  padding-left: 4.75rem;
}

/* Pulso en cada nodo, sincronizado con el paso de la chispa */
.process__node::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 2px solid rgba(124, 58, 237, 0.55);
  opacity: 0;
  pointer-events: none;
}

.process.is-complete .process__node::after {
  animation: nodePing 2.6s ease-out infinite;
  animation-delay: calc(var(--n, 0) * 0.5s);
}

@keyframes nodePing {
  0% { opacity: 0.9; transform: scale(1); }
  35%, 100% { opacity: 0; transform: scale(1.55); }
}

.process__node {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(76, 29, 149, 0.18);
  color: #a1a1aa;
  transition: background-color 0.5s var(--ease-out), border-color 0.5s ease, color 0.4s ease,
              box-shadow 0.5s ease, transform 0.5s var(--ease-out);
}

.process__node .material-symbols-outlined { font-size: 24px; }

.process__num {
  display: block;
  margin: 0.2rem 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #a78bfa;
}

.process__title {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--color-text);
}

.process__text {
  margin-bottom: 0.9rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.process__tag {
  display: inline-flex;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  background: rgba(76, 29, 149, 0.07);
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.process__step > *:not(.process__node) {
  opacity: 0.3;
  transform: translateY(8px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.process__step.is-active > * {
  opacity: 1;
  transform: none;
}

.process__step.is-active .process__node {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.12), 0 14px 30px -12px rgba(76, 29, 149, 0.7);
  transform: scale(1.06);
}

@media (min-width: 1024px) {
  .process__list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .process__track {
    left: 10%;
    right: 10%;
    top: 1.75rem;
    bottom: auto;
    width: auto;
    height: 2px;
    margin: -1px 0 0;
  }

  .process__fill {
    background: linear-gradient(90deg, #7c3aed, #c084fc);
    transform: scaleX(var(--process, 0));
    transform-origin: left;
  }

  .process__step {
    padding-left: 0;
    text-align: center;
  }

  .process__node {
    position: relative;
    margin: 0 auto 1.25rem;
  }
}

/* ========================================================================= */
/* ESTADO DEL TALLER EN VIVO (abierto / cerrado según hora de CDMX)          */
/* ========================================================================= */
.shop-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.09);
  color: #047857;
  font-size: 0.78rem;
  font-weight: 600;
}

.shop-closed .shop-chip {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.shop-closed .shop-dot > span { background-color: #fbbf24 !important; }
.shop-closed .shop-dot > span:first-child { animation: none; opacity: 0; }
.shop-closed .shop-dot-single { background-color: #f59e0b !important; animation: none !important; }

.hours-row.is-today dt::after {
  content: "Hoy";
  margin-left: 0.5rem;
  padding: 0.1rem 0.4rem;
  border-radius: 0.3rem;
  background: rgba(76, 29, 149, 0.08);
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ========================================================================= */
/* ACCESIBILIDAD: REDUCCIÓN DE MOVIMIENTO                                    */
/* ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .anim-trigger,
  .service-photo-reveal,
  .service-text-slide-left,
  .service-text-slide-right,
  .feature-check-item,
  .gamer-card-reveal,
  .hero-badge-anim,
  .hero-title,
  .hero-subtitle-anim,
  .hero-buttons-anim,
  .hero-facts-anim {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
    animation: none !important;
  }

  .marquee-track,
  .beacon-active,
  .shine--loop::after,
  .wa-pulse::before,
  .gamer__orb,
  .gamer__rings,
  .rig__rec,
  .rig-visual__tint::before,
  .rig-visual__heat::before,
  .rig-visual__scan,
  .rig-tile__fan,
  .rig-card::after,
  .vhs-rec i,
  .vhs-overlay,
  .vhs-overlay::after,
  .svc-media::before {
    animation: none !important;
  }

  .expand-section { clip-path: none !important; }

  .rig {
    clip-path: none !important;
    opacity: 1 !important;
    transition: none !important;
  }

  .rig::after,
  .rig__boot,
  .rig__wipe,
  .rig-visual__scan { display: none; }

  .diag-chip.is-new,
  .diag-ticket.is-ready .diag-ticket__stamp,
  .diag-ticket__rows dd.is-updated {
    animation: none !important;
  }

  .diag-ticket.is-ready .diag-ticket__stamp {
    opacity: 0.9;
    transform: rotate(-10deg);
  }

  .split-word > span,
  .text-highlight,
  .service-block .svc-media,
  .svc-media img {
    transition: none !important;
  }

  .split-word > span { transform: none !important; }
  .text-highlight { background-size: 100% 100% !important; }
  .service-block .svc-media { clip-path: none !important; }

  .hero-indicator.is-active .hero-indicator__fill {
    animation: none;
    transform: scaleX(1);
  }
}
