/* ==========================================================================
   EXPLICADORES SVG — diagramas animados que muestran qué hace cada servicio
   --------------------------------------------------------------------------
   Estado por defecto (sin JS o con movimiento reducido): una foto fija y
   completa del diagrama. js/explainers.js agrega .is-armed y, cuando la
   figura entra en pantalla, .is-playing. Fuera de pantalla todo se pausa.
   ========================================================================== */

.xp-figure { margin: 0; }
.xp { display: block; width: 100%; height: auto; overflow: visible; }
.xp text { font-family: var(--font-body); }

.xp-label { fill: var(--color-text-muted); font-size: 12px; font-weight: 500; }
.xp-title { fill: var(--color-text); font-size: 13.5px; font-weight: 600; }

.xp-track {
  fill: none;
  stroke: var(--color-border-strong);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 2 6;
}
.xp-node {
  fill: var(--color-surface-2);
  stroke: var(--color-border-strong);
  stroke-width: 1.5;
}
.xp-node--hit { fill: hsla(var(--primary-hsl), 0.14); stroke: var(--color-primary); }
.xp-node--me { stroke: var(--color-primary); fill: hsla(var(--primary-hsl), 0.1); }
.xp-icon {
  fill: none;
  stroke: var(--color-text);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.xp-icon--me { stroke: var(--color-primary); }

/* Fuera de pantalla, todo quieto (gana sobre los shorthands de abajo) */
.is-armed:not(.is-playing) *,
.is-armed:not(.is-playing)::before,
.is-armed:not(.is-playing)::after { animation-play-state: paused !important; }

/* ---------- Síntomas (El problema) ---------- */
.xp-figure--symptom {
  margin: calc(var(--space-sm) * -0.25) 0 var(--space-sm);
  padding: 0.75rem 0.5rem 0.25rem;
  border-radius: var(--radius-md);
  background: var(--color-bg-deep);
  border: 1px solid var(--color-border);
}

/* 1 · Visitas que no compran */
.xp-leak__cart path,
.xp-leak__cart circle {
  fill: none;
  stroke: var(--color-text-muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.xp-leak__dot { fill: var(--color-text); }
.xp-leak__dot--win { fill: var(--color-primary); }
/* foto fija: cuatro se cayeron, una llega */
.xp-leak__dot--1 { transform: translate(72px, 24px); opacity: 0.3; }
.xp-leak__dot--2 { transform: translate(107px, 24px); opacity: 0.3; }
.xp-leak__dot--3 { transform: translate(142px, 24px); opacity: 0.3; }
.xp-leak__dot--4 { transform: translate(118px, 0); }
.xp-leak__dot--win { transform: translate(172px, 0); }

.is-armed .xp-leak__dot { animation: 4.5s linear infinite both; }
.is-armed .xp-leak__dot--1 { animation-name: xpDrop1; }
.is-armed .xp-leak__dot--2 { animation-name: xpDrop2; animation-delay: 0.35s; }
.is-armed .xp-leak__dot--3 { animation-name: xpDrop3; animation-delay: 0.7s; }
.is-armed .xp-leak__dot--4 { animation-name: xpDrop4; animation-delay: 1.05s; }
.is-armed .xp-leak__dot--win { animation-name: xpReach; animation-delay: 1.4s; }
.is-armed .xp-leak__cart { animation: xpCart 4.5s 1.4s infinite both; }
.is-armed .xp-leak__cart path,
.is-armed .xp-leak__cart circle { animation: xpCartInk 4.5s 1.4s infinite both; }

@keyframes xpDrop1 {
  0% { transform: translate(0, 0); opacity: 0; }
  6% { opacity: 1; }
  30% { transform: translate(60px, 0); opacity: 1; animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.5); }
  42%, 100% { transform: translate(72px, 24px); opacity: 0; }
}
@keyframes xpDrop2 {
  0% { transform: translate(0, 0); opacity: 0; }
  6% { opacity: 1; }
  40% { transform: translate(95px, 0); opacity: 1; animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.5); }
  52%, 100% { transform: translate(107px, 24px); opacity: 0; }
}
@keyframes xpDrop3 {
  0% { transform: translate(0, 0); opacity: 0; }
  6% { opacity: 1; }
  50% { transform: translate(130px, 0); opacity: 1; animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.5); }
  62%, 100% { transform: translate(142px, 24px); opacity: 0; }
}
@keyframes xpDrop4 {
  0% { transform: translate(0, 0); opacity: 0; }
  6% { opacity: 1; }
  56% { transform: translate(152px, 0); opacity: 1; animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.5); }
  68%, 100% { transform: translate(162px, 24px); opacity: 0; }
}
@keyframes xpReach {
  0% { transform: translate(0, 0); opacity: 0; }
  6% { opacity: 1; }
  66% { transform: translate(178px, 0); opacity: 1; }
  72%, 100% { transform: translate(186px, 0); opacity: 0; }
}
@keyframes xpCart {
  0%, 68% { transform: translate(200px, 41px); }
  73% { transform: translate(200px, 38px); }
  80%, 100% { transform: translate(200px, 41px); }
}
@keyframes xpCartInk {
  0%, 68% { stroke: var(--color-text-muted); }
  72%, 86% { stroke: var(--color-primary); }
  100% { stroke: var(--color-text-muted); }
}

/* 2 · Procesos que se hacen a mano */
.xp-sheet { fill: var(--color-surface); stroke: var(--color-border-strong); stroke-width: 1.5; }
.xp-sheet__lines { stroke: var(--color-border-strong); stroke-width: 1.5; }
.xp-manual__row { fill: hsla(var(--text-hsl), 0.22); }
.xp-manual__done { fill: hsla(var(--text-hsl), 0.55); }
.xp-manual__copy { fill: var(--color-accent); opacity: 0; }
.xp-manual__clock { fill: none; stroke: var(--color-accent); stroke-width: 2; }
.xp-manual__ticks { stroke: var(--color-accent); stroke-width: 1.5; stroke-linecap: round; opacity: 0.6; }
.xp-manual__hand {
  stroke: var(--color-accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  transform-origin: 120px 30px;
  transform: rotate(130deg);
}
.xp-manual__pin { fill: var(--color-accent); }

.is-armed .xp-manual__hand { animation: xpSpin 3.6s linear infinite; }
.is-armed .xp-manual__copy { animation: xpCopy 3.6s cubic-bezier(0.65, 0, 0.35, 1) infinite both; }
.is-armed .xp-manual__done { animation: xpPasted 3.6s linear infinite both; }
.is-armed .xp-manual__copy--2,
.is-armed .xp-manual__done--2 { animation-delay: 1.2s; }
.is-armed .xp-manual__copy--3,
.is-armed .xp-manual__done--3 { animation-delay: 2.4s; }

@keyframes xpSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes xpCopy {
  0% { transform: translateX(0); opacity: 0; }
  8% { transform: translateX(0); opacity: 1; }
  40% { transform: translateX(140px); opacity: 1; }
  48%, 100% { transform: translateX(140px); opacity: 0; }
}
@keyframes xpPasted {
  0%, 40% { opacity: 0; }
  44%, 92% { opacity: 1; }
  100% { opacity: 0; }
}

/* 3 · Una tienda que nadie cuida */
.xp-neglect__pulse {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
}
.xp-neglect__flat {
  fill: none;
  stroke: var(--color-accent);
  stroke-opacity: 0.55;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
}
.xp-neglect__alert circle:first-child { fill: hsla(33, 85%, 62%, 0.12); stroke: var(--color-accent); stroke-width: 2; }
.xp-neglect__alert path { stroke: var(--color-accent); stroke-width: 2.2; stroke-linecap: round; }
.xp-neglect__alert-dot { fill: var(--color-accent); }

.is-armed .xp-neglect__pulse { animation: xpDrawA 5s cubic-bezier(0.16, 1, 0.3, 1) infinite both; }
.is-armed .xp-neglect__flat { animation: xpDrawB 5s linear infinite both; }
.is-armed .xp-neglect__alert { animation: xpAlert 5s ease-out infinite both; }

@keyframes xpDrawA {
  0% { stroke-dashoffset: 1; }
  25%, 92% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes xpDrawB {
  0%, 22% { stroke-dashoffset: 1; }
  62%, 92% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes xpAlert {
  0%, 60% { opacity: 0; }
  64% { opacity: 1; }
  70% { opacity: 0.35; }
  76%, 92% { opacity: 1; }
  100% { opacity: 0; }
}

/* ---------- Lo que hago: tarjetas con diagrama ---------- */
.case-card--explained {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  column-gap: var(--space-lg);
  align-items: center;
}
.case-card--explained > .case-card__header,
.case-card--explained > .case-card__row { grid-column: 1; }
.case-card--explained > .xp-figure {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  background: var(--color-bg-deep);
  border: 1px solid var(--color-border);
}

/* Optimizar: embudo antes / después */
.xp-funnel__track,
.xp-funnel__bar {
  fill: none;
  stroke-width: 20;
  stroke-linecap: round;
}
.xp-funnel__track { stroke: var(--color-surface-2); }
.xp-funnel__bar--visits { stroke: hsla(var(--text-hsl), 0.28); stroke-dasharray: 100 200; }
.xp-funnel__bar--cart { stroke: hsla(var(--text-hsl), 0.6); stroke-dasharray: 55 200; }
.xp-funnel__bar--buy { stroke: var(--color-primary); stroke-dasharray: 26 200; }
.xp-funnel__state { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.xp-funnel__state--before { fill: var(--color-text-muted); opacity: 0; }
.xp-funnel__state--after { fill: var(--color-primary); }
.xp-funnel__badge path {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.xp-funnel__badge text { fill: var(--color-primary); font-size: 12.5px; font-weight: 600; }
.xp-chip rect { fill: hsla(var(--primary-hsl), 0.14); stroke: var(--color-primary); stroke-width: 1.2; }
.xp-chip text { fill: var(--color-text); font-size: 11.5px; font-weight: 600; }

.is-armed .xp-funnel__bar--cart { animation: xpCartBar 6s cubic-bezier(0.16, 1, 0.3, 1) infinite both; }
.is-armed .xp-funnel__bar--buy { animation: xpBuyBar 6s cubic-bezier(0.16, 1, 0.3, 1) infinite both; }
.is-armed .xp-funnel__state--before { animation: xpBefore 6s linear infinite both; }
.is-armed .xp-funnel__state--after { animation: xpAfter 6s linear infinite both; }
.is-armed .xp-funnel__badge { animation: xpBadge 6s cubic-bezier(0.16, 1, 0.3, 1) infinite both; }
.is-armed .xp-chip rect { animation: xpChipBox 6s linear infinite both; }
.is-armed .xp-chip text { animation: xpChipText 6s linear infinite both; }
.is-armed .xp-chip--2 rect, .is-armed .xp-chip--2 text { animation-delay: 0.22s; }
.is-armed .xp-chip--3 rect, .is-armed .xp-chip--3 text { animation-delay: 0.44s; }
.is-armed .xp-chip--4 rect, .is-armed .xp-chip--4 text { animation-delay: 0.66s; }
.is-armed .xp-chip--5 rect, .is-armed .xp-chip--5 text { animation-delay: 0.88s; }

@keyframes xpCartBar {
  0%, 24% { stroke-dasharray: 38 200; }
  46%, 88% { stroke-dasharray: 55 200; }
  100% { stroke-dasharray: 38 200; }
}
@keyframes xpBuyBar {
  0%, 30% { stroke-dasharray: 10 200; }
  52%, 88% { stroke-dasharray: 26 200; }
  100% { stroke-dasharray: 10 200; }
}
@keyframes xpBefore { 0%, 22% { opacity: 1; } 27%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes xpAfter { 0%, 22% { opacity: 0; } 27%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes xpBadge {
  0%, 46% { opacity: 0; transform: translateY(6px); }
  56%, 88% { opacity: 1; transform: translateY(0); }
  95%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes xpChipBox {
  0%, 16% { fill: transparent; stroke: var(--color-border-strong); }
  22%, 88% { fill: hsla(var(--primary-hsl), 0.14); stroke: var(--color-primary); }
  96%, 100% { fill: transparent; stroke: var(--color-border-strong); }
}
@keyframes xpChipText {
  0%, 16% { fill: var(--color-text-muted); }
  22%, 88% { fill: var(--color-text); }
  96%, 100% { fill: var(--color-text-muted); }
}

/* Automatizar: flujo con IA (SMIL, pausado por JS fuera de pantalla) */
.xp-flow__wire { fill: none; stroke: var(--color-border-strong); stroke-width: 2; stroke-linecap: round; }
.xp-flow__ai { fill: hsla(var(--primary-hsl), 0.14); stroke: var(--color-primary); stroke-width: 2; }
.xp-flow__ring { fill: none; stroke: var(--color-primary); stroke-width: 1.5; opacity: 0; }
.xp-flow__ai-label { fill: var(--color-primary); font-family: var(--font-display) !important; font-size: 20px; font-weight: 700; }
.xp-flow__pulse { fill: var(--color-primary); }

/* Mantener: monitor de salud */
.xp-pill rect { fill: var(--color-surface-2); stroke: var(--color-border-strong); stroke-width: 1.2; }
.xp-pill circle { fill: var(--color-primary); }
.xp-pill text { fill: var(--color-text); font-size: 11.5px; font-weight: 600; }
.xp-health__screen { fill: var(--color-bg); stroke: var(--color-border); stroke-width: 1.2; }
.xp-health__base {
  fill: none;
  stroke: hsla(var(--primary-hsl), 0.22);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.xp-health__scan {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 16 200;
  stroke-dashoffset: -42;
}
.xp-month { fill: hsla(var(--primary-hsl), 0.75); }

.is-armed .xp-health__scan { animation: xpScan 3.4s linear infinite; }
.is-armed .xp-pill circle { animation: xpPillDot 6s linear infinite both; }
.is-armed .xp-pill--2 circle { animation-delay: 0.5s; }
.is-armed .xp-pill--3 circle { animation-delay: 1s; }
.is-armed .xp-pill--4 circle { animation-delay: 1.5s; }
.is-armed .xp-month { animation: xpMonth 6s linear infinite both; }
.is-armed .xp-month--2 { animation-delay: 0.22s; }
.is-armed .xp-month--3 { animation-delay: 0.44s; }
.is-armed .xp-month--4 { animation-delay: 0.66s; }
.is-armed .xp-month--5 { animation-delay: 0.88s; }
.is-armed .xp-month--6 { animation-delay: 1.1s; }
.is-armed .xp-month--7 { animation-delay: 1.32s; }
.is-armed .xp-month--8 { animation-delay: 1.54s; }
.is-armed .xp-month--9 { animation-delay: 1.76s; }
.is-armed .xp-month--10 { animation-delay: 1.98s; }
.is-armed .xp-month--11 { animation-delay: 2.2s; }
.is-armed .xp-month--12 { animation-delay: 2.42s; }

@keyframes xpScan { from { stroke-dashoffset: 16; } to { stroke-dashoffset: -100; } }
@keyframes xpPillDot {
  0%, 4% { fill: var(--color-text-faint); }
  8%, 86% { fill: var(--color-primary); }
  94%, 100% { fill: var(--color-text-faint); }
}
@keyframes xpMonth {
  0%, 2% { fill: var(--color-surface-2); }
  6%, 84% { fill: hsla(var(--primary-hsl), 0.75); }
  92%, 100% { fill: var(--color-surface-2); }
}

/* ---------- Cómo trabajo: línea de tiempo ---------- */
.process { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; }
.process > .service-block__content {
  position: sticky;
  top: 7.5rem;
}
.process__steps {
  position: relative;
  border-top: 0;
  margin: 0;
  --node: 3rem;
}
/* riel y avance */
.process__steps::before,
.process__steps::after {
  content: '';
  position: absolute;
  left: calc(var(--node) / 2 - 1px);
  top: calc(var(--node) / 2);
  bottom: calc(var(--node) / 2 + var(--space-md));
  width: 2px;
  border-radius: 2px;
}
.process__steps::before { background: var(--color-border-strong); }
.process__steps::after {
  background: var(--color-primary);
  transform-origin: top;
  transform: scaleY(1);
}
.process__steps > li.process-step {
  position: relative;
  display: grid;
  grid-template-columns: var(--node) minmax(0, 1fr);
  column-gap: var(--space-sm);
  align-items: start;
  padding: 0 0 var(--space-md);
  border-bottom: 0;
  flex-direction: initial;
}
.process__steps .process-step__node {
  position: relative;
  padding: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--node);
  height: var(--node);
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}
.process-step__node svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.process-step__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 0.2rem;
}
.process__steps .process-step__when {
  padding-left: 0;
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.process__steps > li.process-step strong::before { content: none; }
.process__steps > li.process-step > .process-step__body > span:not(.process-step__when) { padding-left: 0; }
.xp-weeks, .xp-grow { max-width: 300px; margin-top: 0.75rem; }
.xp-week { fill: var(--color-primary); }
.xp-grow__line {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
}
.xp-grow__head {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* gráfico de crecimiento: barras que suben + tendencia que se dibuja */
.xp-grow { overflow: visible; }
.xp-grow__axis { fill: none; stroke: var(--color-border-strong); stroke-width: 1.5; stroke-linecap: round; }
.xp-grow__bar {
  fill: var(--color-primary);
  fill-opacity: 0.22;
  stroke: var(--color-primary);
  stroke-opacity: 0.55;
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.xp-grow__bar--6 { fill-opacity: 0.45; stroke-opacity: 1; }
.xp-grow__ping { fill: none; stroke: var(--color-primary); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; }

/* secuencia: el riel avanza y cada paso se enciende al llegar */
.is-armed.process__steps::after { animation: xpRail 3.6s cubic-bezier(0.45, 0, 0.25, 1) both; }
.is-armed .process-step__node { animation: xpNode 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
.is-armed .process-step--2 .process-step__node { animation-delay: 1s; }
.is-armed .process-step--3 .process-step__node { animation-delay: 2.1s; }
.is-armed .process-step--4 .process-step__node { animation-delay: 3.1s; }
.is-armed .process-step--1 .process-step__node svg { animation: xpLook 1.6s 0.4s ease-in-out both; }
.is-armed .xp-week { animation: xpWeek 0.35s cubic-bezier(0.16, 1, 0.3, 1) both; }
.is-armed .xp-week--1 { animation-delay: 1.2s; }
.is-armed .xp-week--2 { animation-delay: 1.35s; }
.is-armed .xp-week--3 { animation-delay: 1.5s; }
.is-armed .xp-week--4 { animation-delay: 1.65s; }
.is-armed .xp-week--5 { animation-delay: 1.8s; }
.is-armed .xp-week--6 { animation-delay: 1.95s; }
.is-armed .process-step--3 .process-step__node svg { animation: xpSpin 7s 2.4s linear infinite; }
.is-armed .xp-grow__bar { animation: xpBar 0.6s cubic-bezier(0.34, 1.4, 0.64, 1) both; }
.is-armed .xp-grow__bar--1 { animation-delay: 3.3s; }
.is-armed .xp-grow__bar--2 { animation-delay: 3.42s; }
.is-armed .xp-grow__bar--3 { animation-delay: 3.54s; }
.is-armed .xp-grow__bar--4 { animation-delay: 3.66s; }
.is-armed .xp-grow__bar--5 { animation-delay: 3.78s; }
.is-armed .xp-grow__bar--6 { animation-delay: 3.9s; }
.is-armed .xp-grow__line { animation: xpGrow 1.1s 4.1s cubic-bezier(0.45, 0, 0.25, 1) both; }
.is-armed .xp-grow__head { animation: xpFadeIn 0.3s 5.1s both; }
.is-armed .xp-grow__ping { animation: xpFadeIn 0.3s 5.1s both, xpPing 2.2s 5.4s ease-out infinite; }

@keyframes xpRail { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes xpNode {
  from { border-color: var(--color-border-strong); color: var(--color-text-faint); transform: scale(0.86); }
  to { border-color: var(--color-primary); color: var(--color-primary); transform: scale(1); }
}
@keyframes xpLook {
  0%, 100% { transform: translate(0, 0); }
  30% { transform: translate(-2px, 1px); }
  65% { transform: translate(2px, -1px); }
}
@keyframes xpWeek {
  from { fill: var(--color-surface-2); }
  to { fill: var(--color-primary); }
}
@keyframes xpGrow { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes xpFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes xpBar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes xpPing {
  0% { transform: scale(1); opacity: 0.9; }
  70%, 100% { transform: scale(3.2); opacity: 0; }
}

/* ---------- Para agencias ---------- */
#agencias .service-block__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.xp-figure--agency { width: 100%; max-width: 480px; justify-self: end; }
.xp-agency__role { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; }
.xp-agency__back {
  fill: none;
  stroke: hsla(var(--primary-hsl), 0.45);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
  stroke-linecap: round;
}
.xp-agency__visit { fill: var(--color-text); }
.xp-agency__sale { fill: var(--color-primary); }
.xp-agency__doc rect { fill: var(--color-bg); stroke: var(--color-primary); stroke-width: 1.5; }
.xp-agency__doc path { stroke: var(--color-primary); stroke-width: 1.2; stroke-linecap: round; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .case-card--explained { grid-template-columns: 1fr; }
  .case-card--explained > .xp-figure {
    grid-column: 1;
    grid-row: auto;
    margin-top: var(--space-md);
    max-width: 520px;
  }
  .process { grid-template-columns: 1fr; }
  .process > .service-block__content { position: static; }
  #agencias .service-block__grid { grid-template-columns: 1fr; }
  .xp-figure--agency { justify-self: start; margin-top: var(--space-md); }
}
@media (max-width: 480px) {
  .process__steps { --node: 2.5rem; }
  .process-step__node svg { width: 1.15rem; height: 1.15rem; }
}

/* ---------- Movimiento reducido: el JS no arma nada; por las dudas ---------- */
@media (prefers-reduced-motion: reduce) {
  .is-armed .xp *, .is-armed * { animation: none !important; }
}
