/* ============================================================
   AUTOMATIZACION.CSS — Estilos específicos de automatizacion.html
   ============================================================ */


/* ── Hero de página ────────────────────────────────────────── */

.page-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background: var(--gradient-subtle);
  border-bottom: 1px solid var(--color-surface);
}

.page-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
  padding-block: var(--space-4xl);
}

.page-hero__title {
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 0;
}

.page-hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 0;
}


/* ── Layout alternado de servicios ────────────────────────── */

.service__grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: var(--space-4xl);
  align-items: center;
}

.service__grid--reverse {
  direction: rtl;
}

.service__grid--reverse > * {
  direction: ltr;
}

.service__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.service__badges {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.badge--success {
  background-color: rgba(0, 196, 140, 0.12);
  color: #00664A;
  border-color: rgba(0, 196, 140, 0.25);
}

.service__icon {
  width: 56px;
  height: 56px;
  color: var(--color-primary);
}

.service__icon svg {
  width: 100%;
  height: 100%;
}

.service__title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0;
  line-height: 1.2;
}

.service__problem {
  border-left: 3px solid var(--color-error);
  padding-left: var(--space-lg);
}

.service__problem p {
  font-style: italic;
  color: var(--color-text-secondary);
  margin-bottom: 0;
  line-height: 1.7;
}

.service__solution {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

.service__result {
  display: inline-flex;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-primary-ghost);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 102, 255, 0.15);
}

.service__result strong {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  color: var(--color-primary-dark);
  font-weight: 600;
}

.service__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ── Visual: lead flow animation (servicio 1) ──────────────── */

.lead-stage-wrap {
  width: 100%;
  max-width: 490px;
  position: relative;
  overflow: visible;
  height: 0;
  padding-bottom: 81.63%; /* 400/490 — fallback para Safari < 15 e iOS 14 */
}

@supports (aspect-ratio: 1) {
  .lead-stage-wrap {
    height: auto;
    padding-bottom: 0;
    aspect-ratio: 490 / 400;
  }
}

.stage {
  position: absolute;
  width: 490px;
  height: 400px;
  top: 0;
  left: 0;
  background: transparent;
  transform-origin: top left;
}

/* Elementos del tema oscuro: ocultos */
.lf-blob, .lf-scanline, .lf-corner { display: none; }

.lf-paths-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.lf-path-line {
  fill: none;
  stroke: rgba(0, 102, 255, .18);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
}

.lf-path-glow {
  fill: none;
  stroke-width: 2;
  stroke-dasharray: 80 1000;
  stroke-dashoffset: 0;
  opacity: 0;
}
.lf-path-h  { stroke: url(#lfGradH); }
.lf-path-v1 { stroke: url(#lfGradV); }
.lf-path-v2 { stroke: url(#lfGradV2); }

.lf-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translate(-50%, -50%);
}

.lf-node-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-surface);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 130px;
  position: relative;
  transition: border-color .3s, background .3s, box-shadow .3s;
}

.lf-node-card.lf-active {
  border-color: var(--color-primary);
  background: var(--color-primary-ghost);
  box-shadow: var(--shadow-card-hover);
}

.lf-node-card.lf-active-green {
  border-color: rgba(0, 196, 140, .5);
  background: rgba(0, 196, 140, .06);
  box-shadow: 0 8px 32px rgba(0, 196, 140, .12);
}

.lf-node-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary-ghost);
  border-radius: 6px;
  flex-shrink: 0;
}
.lf-node-icon svg { width: 16px; height: 16px; stroke: var(--color-primary); }

.lf-node-icon--green { background: rgba(37, 211, 102, .1); }
.lf-node-icon--green svg { stroke: #16a34a; }

.lf-node-icon--cyan { background: var(--color-primary-ghost); }
.lf-node-icon--cyan svg { stroke: var(--color-primary-dark); }

.lf-node-label {
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: .3px;
}

.lf-node-sublabel {
  font-size: .64rem;
  color: var(--color-text-muted);
  margin-top: 1px;
}

.lf-badge-new {
  position: absolute;
  top: -10px; right: -10px;
  background: var(--gradient-hero);
  color: #fff;
  font-family: var(--font-heading);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 3px 7px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  opacity: 0;
  transform: scale(.8) translateY(4px);
  transition: opacity .3s, transform .3s;
}
.lf-badge-new.lf-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.lf-ping-ring {
  position: absolute;
  top: -10px; right: -10px;
  width: 10px; height: 10px;
  opacity: 0;
}
.lf-ping-ring.lf-visible::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1.5px solid var(--color-primary);
  border-radius: 50%;
  animation: lfPingRing 1s ease-out forwards;
}
@keyframes lfPingRing {
  0%   { transform: scale(.5); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

.lf-packet {
  position: absolute;
  width: 8px; height: 8px;
  background: linear-gradient(135deg, #0066FF, #00D4FF);
  box-shadow: 0 0 10px rgba(0, 102, 255, .6), 0 0 20px rgba(0, 102, 255, .3);
  opacity: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.lf-packet--green {
  background: linear-gradient(135deg, #25D366, #00c48c);
  box-shadow: 0 0 10px rgba(37, 211, 102, .6), 0 0 20px rgba(37, 211, 102, .3);
}
.lf-packet--cyan {
  background: linear-gradient(135deg, #00D4FF, #0066FF);
  box-shadow: 0 0 10px rgba(0, 212, 255, .6), 0 0 20px rgba(0, 212, 255, .3);
}

.lf-notif {
  position: absolute;
  top: -8px; right: -8px;
  width: 20px; height: 20px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: .6rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: opacity .25s, transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.lf-notif.lf-show { opacity: 1; transform: scale(1); }
.lf-notif--green  { background: #16a34a; }

.lf-timer {
  position: absolute;
  bottom: 16px; right: 16px;
  background: rgba(0, 196, 140, .08);
  border: 1.5px solid rgba(0, 196, 140, .4);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.lf-timer-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-success);
  line-height: 1;
  min-width: 54px;
  text-align: center;
  transition: color .3s;
}
.lf-timer-label {
  font-family: var(--font-heading);
  font-size: .58rem;
  font-weight: 600;
  color: rgba(0, 196, 140, .7);
  letter-spacing: .5px;
  text-transform: uppercase;
}
.lf-timer.lf-fast { border-color: rgba(0, 102, 255, .35); background: var(--color-primary-ghost); }
.lf-timer.lf-fast .lf-timer-value { color: var(--color-primary); }

.lf-status-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 4px;
  gap: 6px;
}
.lf-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  animation: lfStatusBlink 2s ease-in-out infinite;
}
@keyframes lfStatusBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}
.lf-status-text {
  font-family: var(--font-heading);
  font-size: .65rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: .4px;
  text-transform: uppercase;
}
.lf-status-label {
  font-family: var(--font-heading);
  font-size: .65rem;
  font-weight: 600;
  color: var(--color-success);
  letter-spacing: .4px;
  margin-left: auto;
  opacity: 0;
  transition: opacity .3s;
}

.lf-log {
  position: absolute;
  top: 44px; left: 4px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.lf-log-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: .62rem;
  font-weight: 500;
  color: var(--color-text-muted);
  opacity: .5;
  transition: opacity .3s, color .3s;
}
.lf-log-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-surface);
  flex-shrink: 0;
  transition: background .3s, box-shadow .3s;
}
.lf-log-item.lf-lit {
  color: var(--color-text-secondary);
  opacity: 1;
}
.lf-log-item.lf-lit .lf-log-dot {
  background: var(--color-primary);
  box-shadow: 0 0 6px rgba(0, 102, 255, .5);
}
.lf-log-item.lf-lit-green {
  color: var(--color-text-secondary);
  opacity: 1;
}
.lf-log-item.lf-lit-green .lf-log-dot {
  background: #16a34a;
  box-shadow: 0 0 6px rgba(22, 163, 74, .5);
}

@media (prefers-reduced-motion: reduce) {
  .lf-status-dot { animation: none; }
}


/* ── Visual: agente de voz (servicio 2) ────────────────────── */

.voice-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
}

.voice-phone {
  width: 80px;
  height: 80px;
  color: var(--color-primary);
}

.voice-phone svg {
  width: 100%;
  height: 100%;
}

.voice-waves {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
}

.wave {
  display: block;
  width: 4px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  opacity: 0.7;
  animation: waveBar 1.2s ease-in-out infinite;
}

.wave--1 { height: 16px; animation-delay: 0s; }
.wave--2 { height: 32px; animation-delay: 0.15s; }
.wave--3 { height: 20px; animation-delay: 0.3s; }

@keyframes waveBar {
  0%, 100% { transform: scaleY(1); }
  50%       { transform: scaleY(0.35); }
}

.voice-tags {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.voice-tag {
  padding: 6px 14px;
  background: var(--color-primary-ghost);
  color: var(--color-primary);
  border: 1px solid rgba(0, 102, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-heading);
}


/* ── Visual: onboarding (servicio 3) ───────────────────────── */

.onboarding-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
}

.onboarding-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-card);
  border: 1px solid var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--color-text);
}

.onboarding-trigger svg {
  width: 20px;
  height: 20px;
  color: var(--color-success);
  flex-shrink: 0;
}

.onboarding-arrow {
  font-size: var(--text-2xl);
  color: var(--color-primary);
  opacity: 0.4;
}

.onboarding-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
}

.onboarding-action {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-card);
  border: 1px solid var(--color-surface);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 10px var(--space-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-sm);
}

.onboarding-action svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  flex-shrink: 0;
}


/* ── Visual: chatbot (servicio 4) ──────────────────────────── */

.chat-visual {
  width: 100%;
  max-width: 360px;
}

.chat-window {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-surface);
  overflow: hidden;
}

.chat-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px var(--space-md);
  background: var(--color-primary);
  color: #ffffff;
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-heading);
}

.chat-bar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.chat-bar__sector {
  flex: 1;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 500;
  opacity: 0.9;
  letter-spacing: 0.02em;
}

.chat-bar__status {
  font-weight: 400;
  opacity: 0.85;
  font-size: 0.65rem;
}

.chat-messages {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  height: 280px;
  overflow: hidden;
  transition: opacity 0.4s ease;
}

.chat-msg {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  line-height: 1.5;
}

.chat-msg--user {
  align-self: flex-end;
  background: var(--color-primary);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-msg--bot {
  align-self: flex-start;
  background: var(--color-bg-alt);
  color: var(--color-text);
  border-bottom-left-radius: 4px;
}

.chat-typing {
  padding: var(--space-md);
  padding-top: 0;
  display: flex;
  gap: 4px;
  align-items: center;
}

.chat-typing span {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-muted);
  animation: typingDot 1.2s ease-in-out infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%       { transform: translateY(-4px); opacity: 1; }
}

.chat-msg--appear {
  animation: msgAppear 0.22s ease-out both;
}

@keyframes msgAppear {
  from { opacity: 0; transform: translateY(6px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .chat-msg--appear { animation: none; }
}


/* ── Visual: procesos a medida — hub-and-spoke ──────────────── */

.custom-visual {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ch-wrap {
  width: 100%;
  max-width: 400px;
  position: relative;
  overflow: visible;
  height: 0;
  padding-bottom: 90%; /* 360/400 — fallback para Safari < 15 e iOS 14 */
}

@supports (aspect-ratio: 1) {
  .ch-wrap {
    height: auto;
    padding-bottom: 0;
    aspect-ratio: 400 / 360;
  }
}

.ch-stage {
  position: absolute;
  width: 400px;
  height: 360px;
  top: 0;
  left: 0;
  transform-origin: top left;
}

.ch-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ch-ln {
  stroke: rgba(0, 102, 255, .14);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
}

/* App nodes */
.ch-node {
  position: absolute;
  transform: translate(-50%, -50%);
}

.ch-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 68px;
  transition: border-color .3s, box-shadow .3s;
}

.ch-card:hover {
  border-color: rgba(0, 102, 255, .3);
  box-shadow: var(--shadow-card-hover);
}

.ch-card--green {
  border-color: rgba(0, 196, 140, .2);
  background: linear-gradient(rgba(0, 196, 140, .03), rgba(0, 196, 140, .03)) var(--color-bg-card);
}

.ch-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-ghost);
  border-radius: 7px;
  color: var(--color-primary);
}

.ch-icon svg {
  width: 13px;
  height: 13px;
}

.ch-icon--green {
  background: rgba(0, 196, 140, .1);
  color: var(--color-success);
}

.ch-label {
  font-family: var(--font-heading);
  font-size: .63rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: .3px;
  white-space: nowrap;
}

/* Centro: hub Motor IA */
.ch-hub {
  position: absolute;
  transform: translate(-50%, -50%);
}

.ch-hub-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 102, 255, .2);
  transform: translate(-50%, -50%);
  animation: ch-ring-pulse 3.5s ease-out infinite;
}

.ch-hub-ring--inner {
  width: 84px;
  height: 84px;
  animation-delay: 0s;
}

.ch-hub-ring--outer {
  width: 110px;
  height: 110px;
  animation-delay: 1.75s;
}

@keyframes ch-ring-pulse {
  0%   { opacity: .6; transform: translate(-50%, -50%) scale(.85); }
  100% { opacity: 0;  transform: translate(-50%, -50%) scale(1.3); }
}

.ch-hub-card {
  position: relative;
  z-index: 2;
  width: 70px;
  height: 70px;
  background: var(--gradient-hero);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow: 0 4px 24px rgba(0, 102, 255, .4), 0 0 0 4px rgba(0, 102, 255, .1);
}

.ch-hub-icon {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, .9);
}

.ch-hub-name {
  font-family: var(--font-heading);
  font-size: .58rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .3px;
  line-height: 1;
}

.ch-hub-sub {
  font-family: var(--font-heading);
  font-size: .48rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .7);
  letter-spacing: .5px;
  line-height: 1;
}

/* Partículas viajeras */
.ch-particle {
  position: absolute;
  width: 7px;
  height: 7px;
  background: linear-gradient(135deg, #0066FF, #00D4FF);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 102, 255, .6), 0 0 16px rgba(0, 102, 255, .3);
  opacity: 0;
  animation: ch-travel 3s ease-in-out infinite;
  --ch-tx: 0px;
  --ch-ty: 0px;
}

.ch-particle--green {
  background: linear-gradient(135deg, #00C48C, #00D4FF);
  box-shadow: 0 0 8px rgba(0, 196, 140, .6), 0 0 16px rgba(0, 196, 140, .3);
}

@keyframes ch-travel {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  8%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  88%  { opacity: 1; transform: translate(calc(-50% + var(--ch-tx)), calc(-50% + var(--ch-ty))) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--ch-tx)), calc(-50% + var(--ch-ty))) scale(.4); }
}

/* Indicador de estado */
.ch-status {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-surface);
  border-radius: var(--radius-full);
  padding: 5px 12px 5px 8px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.ch-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  flex-shrink: 0;
  animation: ch-blink 2s ease-in-out infinite;
}

.ch-status span {
  font-family: var(--font-heading);
  font-size: .62rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: .4px;
  text-transform: uppercase;
}

@keyframes ch-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

@media (prefers-reduced-motion: reduce) {
  .ch-hub-ring,
  .ch-particle,
  .ch-status-dot { animation: none; }
  .ch-particle   { opacity: 0; }
}


/* ── Sección herramientas / marquee ────────────────────────── */

.tools-section .section__header {
  margin-bottom: var(--space-2xl);
}

.marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg-alt), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg-alt), transparent);
}

@keyframes marquee-scroll-auto {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
  width: max-content;
  animation: marquee-scroll-auto 35s linear infinite;
}

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

.marquee__item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: default;
  color: #B0B8C9;
  filter: grayscale(100%) opacity(0.6);
  transition: color var(--transition-base), filter var(--transition-base);
  flex-shrink: 0;
}

.marquee__item svg {
  flex-shrink: 0;
  height: 28px;
  width: auto;
}

.marquee__item span {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
}

.marquee__item:hover {
  color: #026cd0;
  filter: grayscale(0%) opacity(1);
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
    overflow-x: auto;
    width: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .marquee__track::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 768px) {
  .marquee__track {
    animation-duration: 25s;
  }
}


/* ── CTA final ─────────────────────────────────────────────── */

.cta-final {
  position: relative;
  background: var(--gradient-hero);
  padding-block: var(--space-4xl);
  overflow: hidden;
}

.cta-final__pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.04) 0px,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 12px
  );
  pointer-events: none;
}

.cta-final__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
}

.cta-final__title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0;
}

.cta-final__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-bottom: 0;
}

.cta-final__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-sm);
}

.cta-final__btn-primary {
  background: #ffffff;
  color: var(--color-primary);
}

.cta-final__btn-primary:hover {
  background: var(--color-surface);
  color: var(--color-primary);
  transform: scale(1.03);
}

.cta-final__btn-whatsapp {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.cta-final__btn-whatsapp:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: scale(1.03);
}


/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .service__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .service__grid--reverse {
    direction: ltr;
  }

  .service__grid--reverse .service__visual {
    order: 2;
  }

  .service__grid--reverse .service__text {
    order: 1;
  }
}

@media (max-width: 768px) {
  .page-hero__title {
    font-size: var(--text-3xl);
  }

  .service__title {
    font-size: var(--text-2xl);
  }

  .custom-apps {
    max-width: 100%;
  }
}


/* ═══════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════ */

.faq__list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.faq__item {
  border-bottom: 1px solid var(--color-surface);
}

.faq__item:first-child {
  border-top: 1px solid var(--color-surface);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.faq__question::-webkit-details-marker { display: none; }

.faq__item[open] .faq__question {
  color: var(--color-primary);
}

.faq__icon {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: transform var(--transition-base), color var(--transition-fast);
}

.faq__icon svg {
  width: 100%;
  height: 100%;
}

.faq__item[open] .faq__icon {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.faq__answer {
  padding-bottom: var(--space-xl);
  padding-right: var(--space-3xl);
}

.faq__answer p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin: 0;
}

.faq__answer strong {
  color: var(--color-text);
  font-weight: 600;
}
