/* /salud/ — efectos tipo Aceternity UI / Magic UI / React Bits, en CSS puro.
 * Reglas de oro: el contenido es HTML estático (SEO), las animaciones solo
 * corren cuando el bloque está a la vista (.sx-live) y todo se apaga con
 * prefers-reduced-motion. Sin JS la página se ve completa. */

@property --sx-a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

.sx { overflow-x: clip; }
.sx section { position: relative; }

/* ---------- Pausa de animaciones fuera de pantalla ---------- */
.sx-js [data-live]:not(.sx-live) *,
.sx-js [data-live]:not(.sx-live) *::before,
.sx-js [data-live]:not(.sx-live) *::after { animation-play-state: paused !important; }

/* ---------- Fondos: rejilla + aurora ---------- */
.sx-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(148, 184, 205, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 184, 205, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 0%, #000 22%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 0%, #000 22%, transparent 78%);
}
.sx-dots {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(148, 184, 205, 0.22) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 10%, transparent 75%);
}
.sx-aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sx-aurora i {
  position: absolute; border-radius: 50%; width: 60vmax; height: 60vmax; opacity: 0.55;
  background: radial-gradient(closest-side, rgba(23, 195, 178, 0.34), transparent);
  animation: sx-drift 18s ease-in-out infinite alternate;
}
.sx-aurora i:nth-child(1) { left: -18vmax; top: -26vmax; }
.sx-aurora i:nth-child(2) { right: -24vmax; top: -16vmax; animation-duration: 24s;
  background: radial-gradient(closest-side, rgba(124, 108, 240, 0.3), transparent); }
.sx-aurora i:nth-child(3) { left: 28%; bottom: -36vmax; width: 50vmax; height: 50vmax; animation-duration: 30s;
  background: radial-gradient(closest-side, rgba(45, 225, 210, 0.16), transparent); }
@keyframes sx-drift { to { transform: translate3d(7vmax, 4vmax, 0) scale(1.12); } }

/* ---------- Progreso de scroll ---------- */
.sx-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 80;
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--accent-bright), var(--violet));
  box-shadow: 0 0 12px rgba(45, 225, 210, 0.7);
}

/* ---------- Animación de entrada (hero, solo CSS) ---------- */
.sx-in { animation: sx-blur-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(var(--d, 0) * 110ms); }
@keyframes sx-blur-in {
  from { opacity: 0; filter: blur(14px); transform: translateY(14px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}

/* ---------- Reveal al hacer scroll ---------- */
.sx-js .sx-rv {
  opacity: 0; transform: translateY(26px); filter: blur(6px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s;
  transition-delay: calc(var(--d, 0) * 90ms);
}
.sx-js .sx-rv.in { opacity: 1; transform: none; filter: none; }

/* Texto que se genera palabra por palabra */
.sx-js .sx-split .w {
  display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(10px);
  transition: opacity 0.6s, filter 0.6s, transform 0.6s; transition-delay: calc(var(--i) * 45ms);
}
.sx-js .sx-split.in .w { opacity: 1; filter: none; transform: none; }

/* ---------- Tipografía ---------- */
.sx-title { font-size: clamp(2.3rem, 4.8vw, 4.1rem); font-weight: 700; line-height: 1.06; color: #fff; letter-spacing: -0.02em; }
.sx-h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 700; line-height: 1.1; color: #fff; letter-spacing: -0.015em; }
.sx-lead { color: var(--text-dim); font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.65; }
.sx-grad {
  background: linear-gradient(100deg, var(--accent-bright) 10%, #6ee7f5 50%, var(--violet) 95%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.sx-split .sx-grad { background: none; -webkit-text-fill-color: unset; color: inherit; }
.sx-split .sx-grad .w {
  background: linear-gradient(100deg, var(--accent-bright) 10%, #6ee7f5 50%, var(--violet) 95%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}

/* Palabra rotativa (Word Rotate) */
.sx-rotor { display: inline-grid; vertical-align: bottom; overflow: hidden; padding: 0.1em 0.04em; margin: -0.1em -0.04em; }
.sx-rotor > span {
  grid-area: 1 / 1; opacity: 0; transform: translateY(60%); filter: blur(8px);
  background: linear-gradient(100deg, var(--accent-bright), #6ee7f5 55%, var(--violet));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: sx-rot 9s infinite;
}
.sx-rotor > span:nth-child(2) { animation-delay: 3s; }
.sx-rotor > span:nth-child(3) { animation-delay: 6s; }
@keyframes sx-rot {
  0% { opacity: 0; transform: translateY(60%); filter: blur(8px); }
  6%, 30% { opacity: 1; transform: none; filter: blur(0); }
  36%, 100% { opacity: 0; transform: translateY(-60%); filter: blur(8px); }
}

/* ---------- Botones ---------- */
.sx-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.7rem; border-radius: 999px; font-weight: 700; color: #03201d; cursor: pointer; border: 0;
  background: linear-gradient(120deg, var(--accent-bright), var(--accent)); overflow: hidden; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset, 0 10px 40px rgba(23, 195, 178, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.sx-btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 16px 56px rgba(23, 195, 178, 0.55); }
.sx-btn::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  animation: sx-shimmer 3.4s ease-in-out infinite;
}
@keyframes sx-shimmer { 55%, 100% { transform: translateX(120%); } }
.sx-btn[disabled] { opacity: 0.7; cursor: wait; }

/* ---------- Tarjeta con spotlight que sigue al cursor ---------- */
.sx-card {
  position: relative; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line); transition: border-color 0.3s, transform 0.3s;
}
.sx-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(45, 225, 210, 0.16), transparent 60%);
}
.sx-card:hover { border-color: rgba(45, 225, 210, 0.38); }
.sx-card:hover::before { opacity: 1; }

/* ---------- Border Beam (haz que recorre el borde) ---------- */
.sx-beam {
  position: relative; border-radius: 24px; background: rgba(8, 16, 28, 0.86);
  border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 40px 100px rgba(2, 8, 18, 0.7), 0 0 80px rgba(23, 195, 178, 0.1);
}
.sx-beam::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--sx-a), transparent 0 62%, var(--accent-bright) 80%, var(--violet) 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: sx-spin 6s linear infinite;
}
@keyframes sx-spin { to { --sx-a: 360deg; } }

/* ---------- Hero ---------- */
.sx-hero { position: relative; isolation: isolate; padding: 9rem 0 4.5rem; overflow: hidden; }
.sx-checks { list-style: none; padding: 0; display: grid; gap: 0.75rem; color: var(--text-on-dark); font-size: 1.05rem; }
.sx-checks li { padding-left: 2rem; position: relative; }
.sx-checks li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: rgba(23, 195, 178, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%232de1d2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  box-shadow: 0 0 0 1px rgba(45, 225, 210, 0.35) inset;
}
.sx-partners { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.sx-partners img { height: 1.7rem; width: auto; filter: brightness(0) invert(1); opacity: 0.5; }

/* Toasts flotantes (Animated List) */
.sx-toasts { position: absolute; right: 24px; top: -46px; width: 280px; height: 66px; z-index: 5; pointer-events: none; display: none; }
@media (min-width: 1100px) { .sx-toasts { display: block; } }
.sx-toast {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 1rem; border-radius: 16px;
  background: rgba(10, 20, 34, 0.92); border: 1px solid rgba(45, 225, 210, 0.3); color: #e8f1f5; font-size: 0.85rem;
  box-shadow: 0 18px 50px rgba(2, 8, 18, 0.6); opacity: 0; animation: sx-toast 9s infinite;
}
.sx-toast b { display: block; font-weight: 600; }
.sx-toast small { color: var(--text-dim); font-size: 0.74rem; }
.sx-toast .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(23, 195, 178, 0.16); color: var(--accent-bright); flex: none; }
.sx-toast:nth-child(2) { animation-delay: 3s; }
.sx-toast:nth-child(3) { animation-delay: 6s; }
@keyframes sx-toast {
  0% { opacity: 0; transform: translate(-24px, 14px) scale(0.94); }
  6%, 28% { opacity: 1; transform: none; }
  36%, 100% { opacity: 0; transform: translate(0, -16px) scale(0.97); }
}

@media (min-width: 1024px) { .sx-m-only { display: none !important; } }

/* Formulario */
.sx-form-card { padding: 1.6rem; }
@media (min-width: 768px) { .sx-form-card { padding: 2rem; } }
.lead-form { display: grid; gap: 14px; }
.lead-form label { display: grid; gap: 6px; font-size: 0.82rem; color: var(--text-dim); }
.lead-form input[type=text], .lead-form input[type=tel], .lead-form input[type=email], .lead-form select {
  width: 100%; padding: 12px 13px; border-radius: 12px; font-size: 1rem;
  background: rgba(255, 255, 255, 0.04); color: var(--text-on-dark); border: 1px solid var(--line);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.lead-form select option { background: #0b1322; }
.lead-form input:focus, .lead-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(23, 195, 178, 0.18); background: rgba(255, 255, 255, 0.06); }
.lead-form label.check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-size: 0.76rem; line-height: 1.45; }
.lead-form label.check input { margin-top: 3px; accent-color: var(--accent); }

.sx-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Prueba bajo el CTA del hero ---------- */
.sx-proof { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1.2rem 2.2rem; margin-top: 2.4rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.sx-proof > div { display: flex; align-items: center; gap: 0.8rem; }
.sx-proof b { font-family: var(--font-display); font-size: 2rem; line-height: 1; background: linear-gradient(120deg, #fff 20%, var(--accent-bright)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sx-proof span { color: var(--text-dim); font-size: 0.82rem; line-height: 1.3; }
.sx-proof small { display: block; font-size: 0.72rem; opacity: 0.75; }
@media (max-width: 639px) { .sx-proof { grid-template-columns: 1fr; } }

/* ---------- Banda de CTA, enlaces y píldoras ---------- */
.sx-band { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; padding: 1.5rem 2rem; }
.sx-band p { color: #fff; font-size: 1.15rem; font-weight: 600; }
.sx-link { color: var(--accent-bright); font-weight: 600; font-size: 0.95rem; }
.sx-link:hover { text-decoration: underline; }
.sx-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; }
.sx-pills span { padding: 0.5rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: #e8f1f5; font-size: 0.9rem; font-weight: 600; }
.sx-feat { padding: 1.6rem; }
.sx-feat .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(23, 195, 178, 0.14); color: var(--accent-bright); margin-bottom: 1rem; }
.sx-feat h3 { color: #fff; font-weight: 600; margin-bottom: 0.3rem; }
.sx-feat p { color: var(--text-dim); font-size: 0.92rem; line-height: 1.55; }

/* ---------- Marquee ---------- */
.sx-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.sx-track { display: flex; width: max-content; gap: 4.5rem; padding-right: 4.5rem; animation: sx-marquee 38s linear infinite; }
.sx-marquee:hover .sx-track { animation-play-state: paused !important; }
.sx-track img { height: 46px; width: auto; max-width: 170px; object-fit: contain; opacity: 0.85; }
@keyframes sx-marquee { to { transform: translateX(-50%); } }

/* ---------- Resultados ---------- */
.sx-result { padding: 2rem; }
.sx-ring { position: relative; width: 132px; height: 132px; margin-bottom: 1.4rem; }
.sx-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.sx-ring .bg { fill: none; stroke: rgba(148, 184, 205, 0.14); stroke-width: 8; }
.sx-ring .fg { fill: none; stroke: url(#sx-grad); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 264; stroke-dashoffset: 264;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s; filter: drop-shadow(0 0 8px rgba(45, 225, 210, 0.6)); }
.sx-in-view .sx-ring .fg, .in .sx-ring .fg { stroke-dashoffset: calc(264 * (1 - var(--p))); }
.sx-ring .num { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: #fff; }
.sx-spark { width: 132px; height: 132px; margin-bottom: 1.4rem; overflow: visible; }
.sx-spark .area { fill: url(#sx-area); opacity: 0; transition: opacity 1.2s 0.8s; }
.sx-spark path.ln { fill: none; stroke: url(#sx-grad); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s; filter: drop-shadow(0 0 6px rgba(45, 225, 210, 0.6)); }
.in .sx-spark path.ln { stroke-dashoffset: 0; }
.in .sx-spark .area { opacity: 1; }
.sx-big { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 700; line-height: 1; background: linear-gradient(120deg, #fff 20%, var(--accent-bright)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Problema + teléfono ---------- */
.sx-pain { display: grid; gap: 1.1rem; }
.sx-pain-item { display: flex; gap: 1rem; padding: 1.1rem 1.2rem; align-items: flex-start; }
.sx-pain-item .ic { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; background: rgba(124, 108, 240, 0.14); color: #a99bff; font-size: 1.05rem; }
.sx-pain-item h3 { color: #fff; font-weight: 600; margin-bottom: 0.15rem; }
.sx-pain-item p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.55; }

.sx-phone-wrap { position: relative; display: grid; place-items: center; padding: 1.5rem 0; }
.sx-phone-wrap::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(23, 195, 178, 0.28), transparent); filter: blur(10px); }
.sx-phone {
  position: relative; width: min(330px, 86vw); border-radius: 44px; padding: 11px; background: linear-gradient(160deg, #2a3948, #0d151f);
  box-shadow: 0 50px 100px rgba(2, 8, 18, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08) inset; animation: sx-float 7s ease-in-out infinite;
}
@keyframes sx-float { 50% { transform: translateY(-10px); } }
.sx-screen { border-radius: 34px; overflow: hidden; background: #0b141a; height: 560px; display: flex; flex-direction: column; position: relative; }
.sx-screen::before { content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 96px; height: 24px; border-radius: 14px; background: #05090d; z-index: 3; }
.sx-chat-head { display: flex; align-items: center; gap: 11px; padding: 44px 16px 12px; background: #202c33; color: #e9edef; }
.sx-chat-head small { display: block; color: #8696a0; font-size: 0.72rem; }
.sx-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(120deg, var(--accent), var(--primary-color)); display: grid; place-items: center; font-weight: 700; color: #fff; }
.sx-chat-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 14px 12px; overflow: hidden;
  background: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1.2px) 0 0 / 18px 18px, #0b141a; }
.sx-msg { max-width: 84%; padding: 8px 11px 6px; border-radius: 12px; font-size: 0.88rem; line-height: 1.38; color: #e9edef; animation: sx-pop 0.35s cubic-bezier(0.22, 1, 0.36, 1) both; }
.sx-msg i { display: block; text-align: right; font-style: normal; font-size: 0.64rem; color: #8aa0ab; margin-top: 2px; }
.sx-msg.in { align-self: flex-end; background: #005c4b; border-bottom-right-radius: 3px; }
.sx-msg.out { align-self: flex-start; background: #202c33; border-bottom-left-radius: 3px; }
.sx-chips { align-self: flex-start; display: flex; gap: 6px; flex-wrap: wrap; animation: sx-pop 0.35s both; }
.sx-chips span { font-size: 0.78rem; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(45, 225, 210, 0.5); color: var(--accent-bright); background: rgba(23, 195, 178, 0.08); }
.sx-note { align-self: center; font-size: 0.72rem; padding: 5px 12px; border-radius: 8px; background: rgba(23, 195, 178, 0.14); color: var(--accent-bright); animation: sx-pop 0.35s both; }
.sx-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; border-radius: 12px; background: #202c33; }
.sx-typing i { width: 6px; height: 6px; border-radius: 50%; background: #8aa0ab; animation: sx-dot 1s infinite; }
.sx-typing i:nth-child(2) { animation-delay: 0.15s; }
.sx-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes sx-dot { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes sx-pop { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }
.sx-phone-note { text-align: center; font-size: 0.74rem; color: var(--text-dim); margin-top: 1rem; }
.sx-tag {
  position: absolute; padding: 0.55rem 0.9rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: #e8f1f5; white-space: nowrap;
  background: rgba(10, 20, 34, 0.9); border: 1px solid rgba(45, 225, 210, 0.3); box-shadow: 0 14px 40px rgba(2, 8, 18, 0.6);
  animation: sx-float 6s ease-in-out infinite; display: none;
}
@media (min-width: 1100px) { .sx-tag { display: block; } }
.sx-tag i { color: var(--accent-bright); margin-right: 0.45rem; }
.sx-tag.a { left: -4%; top: 22%; }
.sx-tag.b { right: -6%; top: 46%; animation-delay: -2s; }
.sx-tag.c { left: 0; bottom: 14%; animation-delay: -4s; }

/* ---------- Flujo de integración (Animated Beam) ---------- */
.sx-flow { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: center; padding: 2.5rem 1.5rem; border-radius: 28px; }
.sx-flow-col { display: grid; gap: 1.1rem; position: relative; z-index: 2; }
.sx-flow-col.l { justify-items: start; }
.sx-flow-col.r { justify-items: end; }
.sx-node {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 0.8rem; padding: 0.8rem 1.1rem; border-radius: 16px; color: #e8f1f5; font-weight: 600; font-size: 0.95rem;
  background: #0d1828; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(2, 8, 18, 0.5);
}
.sx-node .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(23, 195, 178, 0.14); color: var(--accent-bright); }
.sx-node small { display: block; color: var(--text-dim); font-weight: 400; font-size: 0.74rem; }
.sx-core { padding: 1.4rem 1.8rem; border-radius: 24px; text-align: center; background: #0d1828; border: 1px solid rgba(45, 225, 210, 0.45); box-shadow: 0 0 0 8px rgba(23, 195, 178, 0.06), 0 0 70px rgba(23, 195, 178, 0.28); z-index: 2; position: relative; }
.sx-core img { filter: brightness(0) invert(1); height: 30px; width: auto; margin: 0 auto 0.5rem; }
.sx-core small { color: var(--text-dim); font-size: 0.78rem; }
.sx-flow svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; pointer-events: none; }
.sx-flow svg .base { fill: none; stroke: rgba(148, 184, 205, 0.2); stroke-width: 1.5; }
.sx-flow svg .pulse { fill: none; stroke: var(--accent-bright); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 46 520; stroke-dashoffset: 0; filter: drop-shadow(0 0 6px var(--accent-bright)); animation: sx-pulse 3.2s linear infinite; }
@keyframes sx-pulse { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -566; } }
@media (max-width: 767px) {
  .sx-flow { grid-template-columns: 1fr; gap: 2.6rem; padding: 2rem 1rem; }
  .sx-flow-col.l, .sx-flow-col.r { justify-items: center; grid-template-columns: 1fr; }
  .sx-node { width: 100%; max-width: 320px; }
}

/* ---------- Pasos ---------- */
.sx-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.sx-steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 2px; background: var(--line); }
.sx-steps::after { content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 2px; background: linear-gradient(90deg, var(--accent-bright), var(--violet)); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s; box-shadow: 0 0 12px rgba(45, 225, 210, 0.6); }
.sx-steps.in::after { transform: scaleX(1); }
.sx-step { position: relative; text-align: center; padding: 0 0.5rem; }
.sx-dot { position: relative; z-index: 1; width: 56px; height: 56px; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--text-dim); background: var(--ink); border: 1px solid var(--line); transition: all 0.5s; transition-delay: calc(0.35s + var(--k) * 0.4s); }
.sx-steps.in .sx-dot { color: #03201d; background: linear-gradient(120deg, var(--accent-bright), var(--accent)); border-color: transparent; box-shadow: 0 0 30px rgba(23, 195, 178, 0.5); }
.sx-step h3 { color: #fff; font-size: 1.2rem; font-weight: 700; margin-bottom: 0.4rem; }
.sx-step p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.55; }
@media (max-width: 767px) {
  .sx-steps { grid-template-columns: 1fr; gap: 2rem; }
  .sx-steps::before, .sx-steps::after { left: 27px; right: auto; top: 27px; bottom: 27px; width: 2px; height: auto; transform-origin: 50% 0; }
  .sx-steps::after { transform: scaleY(0); }
  .sx-steps.in::after { transform: scaleY(1); }
  .sx-step { text-align: left; padding-left: 4.6rem; }
  .sx-dot { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------- Bento ---------- */
.sx-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.sx-b { grid-column: span 2; padding: 1.6rem; display: flex; flex-direction: column; min-height: 340px; }
.sx-b.w3 { grid-column: span 3; }
.sx-b .vis { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 160px; margin-bottom: 1.2rem; position: relative; }
.sx-b h3 { color: #fff; font-size: 1.15rem; font-weight: 700; margin-bottom: 0.3rem; }
.sx-b p { color: var(--text-dim); font-size: 0.93rem; line-height: 1.55; }
.sx-badge { display: inline-block; font-size: 0.68rem; padding: 2px 9px; margin-left: 8px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent-bright); vertical-align: middle; font-weight: 700; letter-spacing: 0.04em; }
.sx-badge.soon { border-color: var(--violet); color: #a99bff; }
@media (max-width: 1023px) { .sx-bento { grid-template-columns: repeat(2, 1fr); } .sx-b, .sx-b.w3 { grid-column: span 1; } }
@media (max-width: 640px) { .sx-bento { grid-template-columns: 1fr; } }

.sx-mini { width: 100%; max-width: 330px; border-radius: 16px; padding: 14px; background: rgba(6, 11, 20, 0.75); border: 1px solid var(--line); font-size: 0.82rem; color: #e8f1f5; }
.sx-mini .hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: var(--text-dim); font-size: 0.74rem; }
.sx-mini .hd b { color: #e8f1f5; font-weight: 600; font-size: 0.8rem; }
.sx-live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; margin-right: 6px; animation: pulse 1.6s infinite; }

/* Voz */
.sx-wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 64px; margin: 6px 0 10px; }
.sx-wave i { width: 3px; height: var(--h); border-radius: 3px; background: linear-gradient(var(--accent-bright), var(--violet)); transform: scaleY(0.25); animation: sx-bar 1.2s ease-in-out infinite; animation-delay: calc(var(--i) * -70ms); }
@keyframes sx-bar { 50% { transform: scaleY(1); } }
.sx-quote { color: var(--text-dim); font-size: 0.8rem; font-style: italic; text-align: center; }

/* Transcripción */
.sx-field { padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.045); margin-top: 7px; opacity: 0; animation: sx-field 9s infinite; animation-delay: calc(var(--k) * 0.9s); }
.sx-field small { display: block; color: var(--accent-bright); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; }
@keyframes sx-field { 0% { opacity: 0; transform: translateY(8px); } 8%, 78% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; } }
.sx-wave.sm { height: 30px; margin: 0 0 4px; }

/* Agenda */
.sx-cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.sx-cal .d { text-align: center; color: var(--text-dim); font-size: 0.66rem; padding-bottom: 3px; }
.sx-slot { height: 24px; border-radius: 7px; background: rgba(255, 255, 255, 0.075); }
.sx-slot.free { background: transparent; border: 1px dashed rgba(148, 184, 205, 0.28); }
.sx-slot.pop { animation: sx-book 7s infinite; animation-delay: var(--dl); }
@keyframes sx-book { 0%, 8% { background: transparent; border: 1px dashed rgba(148, 184, 205, 0.28); box-shadow: none; } 14%, 78% { background: linear-gradient(120deg, var(--accent-bright), var(--accent)); border: 1px solid transparent; box-shadow: 0 0 16px rgba(45, 225, 210, 0.6); } 92%, 100% { background: transparent; border: 1px dashed rgba(148, 184, 205, 0.28); box-shadow: none; } }

/* Cotización */
.sx-line { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); color: var(--text-dim); }
.sx-line b { color: #e8f1f5; font-weight: 600; }
.sx-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; color: var(--text-dim); }
.sx-total b { font-family: var(--font-display); font-size: 1.25rem; color: var(--accent-bright); }
.sx-stamp { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; color: #34d399; border: 1px solid rgba(52, 211, 153, 0.5); background: rgba(52, 211, 153, 0.1); animation: sx-field 9s infinite; animation-delay: 3s; }

/* CRM */
.sx-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-top: 7px; border-radius: 10px; background: rgba(255, 255, 255, 0.045); opacity: 0; animation: sx-field 10s infinite; animation-delay: calc(var(--k) * 1.1s); }
.sx-row .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 0.68rem; font-weight: 700; color: #03201d; background: linear-gradient(120deg, var(--accent-bright), var(--accent)); flex: none; }
.sx-row span { flex: 1; min-width: 0; }
.sx-row small { display: block; color: var(--text-dim); font-size: 0.7rem; }
.sx-row em { font-style: normal; font-size: 0.66rem; padding: 2px 8px; border-radius: 999px; background: rgba(124, 108, 240, 0.18); color: #b6abff; white-space: nowrap; }

/* Historia clínica */
.sx-skel { height: 9px; border-radius: 6px; margin-top: 9px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 25%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0.06) 75%) 0 0 / 200% 100%; animation: sx-skel 2.2s linear infinite; }
@keyframes sx-skel { to { background-position: -200% 0; } }
.sx-chip-row { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.sx-chip-row span { font-size: 0.68rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-dim); }

/* ---------- FAQ ---------- */
.sx-faq details[open] .faq-answer { animation: sx-blur-in 0.5s both; }

/* ---------- CTA final (Background Beams) ---------- */
.sx-cta { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 7rem 0; }
.sx-beams { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sx-beams::before { content: ""; position: absolute; left: 50%; top: -30%; width: 90vmin; height: 90vmin; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(23, 195, 178, 0.28), transparent); }
.sx-beams i { position: absolute; top: -40%; width: 1px; height: 55%; background: linear-gradient(transparent, var(--accent-bright), transparent); opacity: 0.55; animation: sx-fall 6s linear infinite; }
.sx-beams i:nth-child(1) { left: 12%; animation-delay: -1s; }
.sx-beams i:nth-child(2) { left: 24%; animation-delay: -3.5s; animation-duration: 8s; }
.sx-beams i:nth-child(3) { left: 38%; animation-delay: -2s; }
.sx-beams i:nth-child(4) { left: 52%; animation-delay: -5s; animation-duration: 7s; }
.sx-beams i:nth-child(5) { left: 66%; animation-delay: -0.5s; }
.sx-beams i:nth-child(6) { left: 78%; animation-delay: -4s; animation-duration: 9s; }
.sx-beams i:nth-child(7) { left: 90%; animation-delay: -2.5s; }
@keyframes sx-fall { to { transform: translateY(260%); } }

/* ---------- Barra fija en móvil ---------- */
.sx-bar { display: none; }
@media (max-width: 1023px) {
  .sx-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; align-items: center; justify-content: space-between; gap: 0.8rem;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom)); background: rgba(6, 11, 20, 0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); transform: translateY(110%); transition: transform 0.35s;
  }
  .sx-bar.show { transform: none; }
  .sx-bar span { color: #e8f1f5; font-size: 0.85rem; line-height: 1.25; font-weight: 600; }
  .sx-bar .sx-btn { padding: 0.7rem 1.2rem; }
  .sx-bar-on .wa-fab { bottom: 5.6rem; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .sx *, .sx *::before, .sx *::after { animation: none !important; transition: none !important; }
  .sx-js .sx-rv, .sx-js .sx-split .w { opacity: 1; transform: none; filter: none; }
  .sx-rotor > span:first-child { opacity: 1; transform: none; filter: none; }
  .sx-field, .sx-row, .sx-toast:first-child { opacity: 1; }
  .sx-ring .fg { stroke-dashoffset: calc(264 * (1 - var(--p))); }
  .sx-spark path.ln { stroke-dashoffset: 0; }
  .sx-steps::after { transform: none; }
}
