/* ==========================================================================
   StarPlast v4 — capa de MARCA ORIGINAL sobre el diseño moderno v3
   Recupera los colores y estilos de starplast.app (índigo → violeta, lavanda,
   Space Grotesk, insignias, íconos en degradado, contacto violeta, pie oscuro)
   con contraste WCAG AA corregido.
   Cargar DESPUÉS de starplast-theme.css.
   --------------------------------------------------------------------------
   Contraste (WCAG 2.1, texto normal ≥ 4.5:1):
     #4f46e5 sobre blanco ............ 6.29  (antes #6366f1 = 4.47 ✗)
     blanco sobre #4f46e5 / #7c3aed .. 6.29 / 5.70 (antes 4.47 / 4.23 ✗)
     #4b5563 sobre lavanda #f5f0ff ... 6.76
     placeholders #6b7280 ............ 4.83 (antes #9ca3af = 2.54 ✗)
   ARSEC PE SAC · 2026-11
   ========================================================================== */

:root {
  /* marca original */
  --brand-500: #6366f1;          /* índigo de marca: solo superficies grandes y decoración */
  --brand-600: #4f46e5;          /* índigo AA: texto, enlaces, bordes activos */
  --brand-violet: #7c3aed;       /* violeta AA */
  --brand-violet-soft: #8b5cf6;  /* decoración */
  --brand-grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --brand-grad-soft: linear-gradient(135deg, #f5f0ff 0%, #ede8ff 50%, #f8f5ff 100%);
  --brand-tint: rgba(99, 102, 241, .10);
  --brand-tint-line: rgba(99, 102, 241, .22);

  /* re-mapeo de los tokens del tema moderno a la marca */
  --sh-ink: #111827;
  --sh-ink-2: #1f2937;
  --sh-muted: #4b5563;
  --sh-faint: #6b7280;
  --sh-blue: #4f46e5;
  --sh-soft: #f6f4ff;
  --sh-line: #e7e5f4;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #7c3aed;
  --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

/* ---------- tipografía de marca: Space Grotesk en titulares ---------- */
h1, h2, h3, .sh-h1, .sh-h2, .sh-h3, .sh-final h2, .sh-faq h2, .section-title, .hero-title,
body.seo-subpage .sp-hero-subpage h1, body.seo-subpage .seo-section h2, .sp2-h2, .sh-giant {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif !important;
}
.sh-h1 { font-weight: 700; letter-spacing: -.03em !important; }
.sh-h2, .sh-h3 { font-weight: 700; }
.sh-grad, .gradient-text {
  background: var(--brand-grad) !important; -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important; color: var(--brand-600) !important;
}
.sh-h2 em, .sh-h3 em { color: #7a8291; }           /* ≥ 3:1 en titulares grandes */
.sh-h2.lit em, .sh-h3.lit em { color: #6b7280; }

/* ---------- foco visible y accesibilidad ---------- */
:focus-visible { outline: 3px solid rgba(79, 70, 229, .45) !important; outline-offset: 2px; border-radius: 6px; }
::placeholder { color: #6b7280 !important; opacity: 1; }
::selection { background: #e0e7ff; }
a.skip { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: #111827; color: #fff; padding: 10px 14px; border-radius: 8px; }
a.skip:focus { left: 8px; }

/* ---------- menú ---------- */
#header .sp-nav-cta, #header .btn-primary {
  background: var(--brand-grad) !important; border-radius: 999px !important; padding: 0 20px !important;
  box-shadow: 0 8px 20px -8px rgba(79, 70, 229, .55) !important;
}
#header .sp-nav-cta:hover { filter: brightness(1.06); }
#header .dropdown-item:hover { background: var(--brand-tint); color: var(--brand-600); }
#header .dropdown-item:hover i { color: var(--brand-600); }

/* ---------- botones ---------- */
.sh-btn { border-radius: 999px; height: 46px; padding: 0 22px; font-weight: 600; }
.sh-dark { background: var(--brand-grad); color: #fff !important; box-shadow: 0 10px 24px -10px rgba(79, 70, 229, .6); }
.sh-dark:hover { background: var(--brand-grad); filter: brightness(1.07); color: #fff; }
.sh-ghost { background: rgba(255, 255, 255, .92); border: 2px solid #e5e7eb; color: #374151 !important; }
.sh-ghost:hover { border-color: var(--brand-tint-line); background: #fff; color: var(--brand-600) !important; }
body.seo-subpage .btn-primary, .sp2-btn--dark, .sp2-btn--scale, .btn-submit, .seo-cta-final .btn {
  background: var(--brand-grad) !important; border-radius: 999px !important;
  box-shadow: 0 10px 24px -10px rgba(79, 70, 229, .6) !important; font-weight: 600 !important;
}
.sp2-btn { border-radius: 999px; }
.sp2-btn--ghost { border: 2px solid #e5e7eb; }

/* ---------- insignias / eyebrows (section-badge original) ---------- */
.sh-eyebrow, .sp2-eyebrow, .sp2-eyebrow--scale {
  display: inline-flex; align-items: center; width: auto; padding: 6px 14px; border-radius: 999px;
  background: var(--brand-tint); color: var(--brand-600) !important; font-size: 13px; font-weight: 600; letter-spacing: 0;
}
.sh-pill { border-color: var(--brand-tint-line); background: rgba(255, 255, 255, .85); }
.sh-pill b { background: var(--brand-grad); }
.sh-badge { background: var(--brand-grad); }

/* ---------- hero con el fondo lavanda original ---------- */
.sh-home main > .sh-frame:first-child { border-left: 0; border-right: 0; max-width: none; }
.sh-home .sh-hero { background: var(--brand-grad-soft); margin: 0; padding-bottom: 72px; }
.sh-home .sh-hero + div { background: linear-gradient(#f8f5ff, #fff 60%); padding-bottom: 8px; }
.sh-home main > .sh-frame:first-child > section:not(.sh-hero),
.sh-home main > .sh-frame:first-child > .sh-rule { max-width: var(--sh-w); margin-left: auto; margin-right: auto; }
.sh-home main > .sh-frame:first-child > div[style] { max-width: calc(var(--sh-w) + 48px); margin: 0 auto; }

/* escenarios y paneles en la gama índigo / violeta / lavanda */
.sh-stage, .sp2-device {
  background:
    radial-gradient(60% 80% at 12% 18%, #c7d2fe 0%, transparent 60%),
    radial-gradient(70% 90% at 88% 28%, #ddd6fe 0%, transparent 65%),
    linear-gradient(160deg, #e0e7ff, #f3e8ff) !important;
}
.sh-panel.sky { background: radial-gradient(60% 70% at 30% 30%, #fff 0%, transparent 60%), linear-gradient(160deg, #c7d2fe, #e0e7ff); }
.sh-panel.aura, .sp2-frame { background: radial-gradient(40% 50% at 20% 30%, #fbcfe8, transparent), radial-gradient(40% 50% at 70% 40%, #ddd6fe, transparent), radial-gradient(50% 50% at 50% 90%, #c7d2fe, transparent), #f5f3ff !important; }
.sh-panel.sand { background: linear-gradient(135deg, #f5f3ff, #ede9fe); }
.sh-panel.mint { background: radial-gradient(50% 60% at 25% 30%, #dcfce7, transparent), linear-gradient(160deg, #e0e7ff, #f5f3ff); }
.sh-split .art { background: radial-gradient(45% 45% at 25% 25%, #fbcfe8, transparent), radial-gradient(45% 45% at 75% 35%, #ddd6fe, transparent), radial-gradient(55% 55% at 55% 85%, #c7d2fe, transparent), #f8f5ff; }
.sh-window { box-shadow: 0 30px 80px -24px rgba(67, 56, 202, .35); }
.sh-float { box-shadow: 0 20px 50px -12px rgba(67, 56, 202, .35); }

/* tarjetas: íconos en degradado (feature-icon original), sombra suave */
.sh-ic { background: var(--brand-grad); color: #fff !important; border: 0; width: 40px; height: 40px; border-radius: 12px; font-size: 16px; }
.sh-feat > div { grid-template-columns: 40px 1fr; }
.sh-box, .sh-card, .sh-pc, .sp2-card { border-color: #eceaf6; border-radius: 20px; box-shadow: 0 4px 14px -6px rgba(17, 24, 39, .08); }
a.sh-box:hover, .sh-card:hover, a.sp2-card:hover { border-color: var(--brand-tint-line); box-shadow: 0 18px 40px -16px rgba(79, 70, 229, .28); }
.sh-box .go, .sh-card .go { color: var(--brand-600); font-weight: 600; }
.sh-box .chips span { background: var(--brand-tint); border-color: transparent; color: var(--brand-600); }
.sh-pc.best { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--brand-grad) border-box; }
.sh-pc li::before { color: var(--brand-600); }
.sh-p1 { background: linear-gradient(160deg, #818cf8, #c4b5fd); }
.sh-p2 { background: linear-gradient(160deg, #34d399, #818cf8); }
.sh-p3 { background: linear-gradient(160deg, #a78bfa, #f0abfc); }
.sh-p4 { background: linear-gradient(160deg, #312e81, #6d28d9); }
.sh-proc .cod, .sp2-proc .cod { background: var(--brand-grad) !important; }
.sh-chain.c8 .sh-proc .cod, .sp2-chain--env .sp2-proc .cod { background: #15803d !important; }
.sh-fl .n { background: var(--brand-grad); }
.sh-tag::before { background: var(--brand-600); }
.sh-toc a.on, .sh-toc a:hover { color: var(--brand-600); border-color: var(--brand-600); }
.sh-tabs { background: #f3f0ff; }
.sh-tabs .nav-link.active { color: var(--brand-600) !important; }
.sh-faq summary::after, .sp2-faq summary::after { border-color: var(--brand-tint-line); color: var(--brand-600); }
.sh-faq details[open] summary, .sp2-faq details[open] summary { color: var(--brand-600); }
.sp2-answer { background: #f5f3ff; border-left: 4px solid var(--brand-600); border-radius: 0 18px 18px 0; }
.sp2-ic, .sp2-ic--scale, .sp2-ic--amber, .sp2-ic--violet { background: var(--brand-grad); color: #fff; border: 0; width: 40px; height: 40px; border-radius: 12px; }
.sp2-steps li::before, .sp2-checks li::before { background-color: var(--brand-600); }
.sp2-badge100 { background: var(--brand-tint); color: var(--brand-600); border-color: transparent; }

/* CTA final y contacto: degradado violeta original, texto blanco (AA) */
.sh-final, .sp2-section--dark, body.seo-subpage .seo-cta-final {
  background: radial-gradient(60% 80% at 15% 10%, rgba(255, 255, 255, .14), transparent 60%), linear-gradient(135deg, #4338ca 0%, #6d28d9 100%) !important;
  color: #fff !important;
}
.sh-final h2, .sh-final p, .sp2-section--dark h2, .sp2-section--dark p, .sp2-final p,
body.seo-subpage .seo-cta-final h2, body.seo-subpage .seo-cta-final p { color: #fff !important; }
.sh-final .sh-dark, .sp2-section--dark .sp2-btn--scale, body.seo-subpage .seo-cta-final .btn-primary { background: #fff !important; color: #4338ca !important; box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .45) !important; }
.sh-final .sh-ghost { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff !important; }
.sh-final .sh-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff !important; }
.sh-contact .frm { background: #f8f5ff; }
.sh-form input:focus, .sh-form textarea:focus { border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(79, 70, 229, .15); }

/* pie de página oscuro (footer original gray-900) */
.sh-footer { background: #111827; border-top: 0; color: #d1d5db; }
.sh-footer .brand, .sh-footer h6 { color: #fff !important; }
.sh-footer p, .sh-footer .col a, .sh-footer .sh-ft-contact a, .sh-footer .sh-ft-contact span, .sh-legal, .sh-legal a { color: #9ca3af !important; }
.sh-footer .col a:hover, .sh-footer .sh-ft-contact a:hover, .sh-seo a:hover { color: #fff !important; }
.sh-footer .sh-frame { border-color: #1f2937; }
.sh-status { border-color: #374151; color: #d1d5db; }
.sh-seo { border-top-color: #1f2937; color: #6b7280; }
.sh-seo span { color: #c7d2fe; }
.sh-seo a, .sh-seo p { color: #9ca3af !important; }
.sh-giant { background: linear-gradient(180deg, #312e81, #111827); -webkit-background-clip: text; background-clip: text; }
.sh-legal { border-top-color: #1f2937; }

/* subpáginas: hero lavanda como el original */
body.seo-subpage .sp-hero-subpage { background: var(--brand-grad-soft) !important; border-bottom: 0; }
body.seo-subpage .seo-section-alt { background: #faf8ff !important; }
body.seo-subpage .seo-identity-box { background: #f5f3ff !important; }
body.seo-subpage .seo-section a:not(.btn):not(.sp2-btn):not(.sp2-card):not(.sh-btn):not(.sh-box) { color: var(--brand-600); }
body.seo-subpage .sp-price-card--featured { border-color: var(--brand-600) !important; }
body.seo-subpage .sp-price-card__ribbon, body.seo-subpage .sp-badge-hot { background: var(--brand-grad) !important; }

/* WhatsApp flotante con etiqueta en escritorio (más amigable) */
@media (min-width: 992px) {
  .sp2-wa { width: auto !important; padding: 0 18px 0 14px; border-radius: 999px !important; gap: 8px; display: inline-flex !important; align-items: center; font-size: 15px !important; font-weight: 600; }
  .sp2-wa::after { content: "¿Hablamos?"; font-family: 'Inter', system-ui, sans-serif; }
  .sp2-wa i { font-size: 1.5rem; }
}

/* hero → escenario: degradado lavanda continuo a todo el ancho */
.sh-home main > .sh-frame:first-child { background: linear-gradient(180deg, #f3eeff 0px, #f5f0ff 520px, #faf8ff 900px, #ffffff 1250px) no-repeat; }
.sh-home .sh-hero { background: transparent; }
.sh-home .sh-hero + div { background: transparent; }

/* ---------- carrusel del hero (Dashboard KPI / Seguimiento de OP) ---------- */
.sh-carousel { padding-top: 56px; }
.sh-cap { text-align: center; margin-bottom: 22px; }
.sh-cap span { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; color: #1e1b4b; letter-spacing: -.02em; }
.sh-slides { position: relative; aspect-ratio: 932 / 572; background: #f0f4fa; }
.sh-slide { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease; }
.sh-slide.on { opacity: 1; position: relative; }
.sh-dots { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.sh-dots button { border: 0; border-radius: 999px; padding: 8px 16px; font: 600 14px 'Inter', sans-serif; background: rgba(255, 255, 255, .7); color: #4338ca; cursor: pointer; transition: .2s; }
.sh-dots button.on { background: #fff; color: #111827; box-shadow: 0 6px 16px -8px rgba(67, 56, 202, .5); }
.sh-dots button:hover { background: #fff; }
@media (max-width: 900px) { .sh-carousel { padding-top: 24px; } .sh-dots { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .sh-slide { transition: none; } }
.sh-carousel .sh-float { transition: opacity .4s, transform .4s; }
.sh-carousel[data-s="1"] .sh-float { opacity: 0; transform: translateY(12px); pointer-events: none; }

/* ---------- laptop tipo MacBook para las capturas del sistema ---------- */
.sh-mac { position: relative; max-width: 1180px; margin: 0 auto; }
.sh-mac-lid {
  position: relative; background: #0d0d10; border-radius: 26px 26px 14px 14px; padding: 2.2% 2.2% 2.6%;
  box-shadow: inset 0 0 0 2px #2b2b31, inset 0 0 0 7px #0d0d10, 0 40px 90px -30px rgba(30, 27, 75, .55);
}
.sh-mac-cam { position: absolute; top: .9%; left: 50%; transform: translateX(-50%); width: 7px; height: 7px; border-radius: 50%; background: #1f2937; box-shadow: inset 0 0 0 2px #111; z-index: 2; }
.sh-mac .sh-slides { border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 10; background: #f4f6f9; }
.sh-mac .sh-slide { object-fit: cover; object-position: top left; }
.sh-mac-base {
  position: relative; height: 18px; margin: 0 -6.5%; border-radius: 2px 2px 18px 18px;
  background: linear-gradient(180deg, #d9dbe1 0%, #b8bbc4 45%, #8d9099 100%);
  box-shadow: 0 18px 30px -14px rgba(17, 24, 39, .55);
}
.sh-mac-base span { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 15%; height: 7px; border-radius: 0 0 8px 8px; background: #a3a6ae; }
.sh-carousel .sh-float { bottom: 10%; right: 2%; }
@media (max-width: 900px) {
  .sh-mac-lid { border-radius: 14px 14px 8px 8px; padding: 2.4%; }
  .sh-mac-base { height: 10px; margin: 0 -4%; }
  .sh-carousel .sh-float { position: relative; left: auto; right: auto; bottom: auto; margin: 18px auto 0; width: 100%; }
}
.sh-stage.sh-carousel { padding: 48px 5% 64px; }
@media (max-width: 900px) { .sh-stage.sh-carousel { padding: 24px 12px 24px; } }
.sh-carousel .sh-float { width: 250px; padding: 12px 14px; }
.sh-carousel .sh-float .kg { font-size: 26px; }
.sh-carousel .sh-float p { font-size: 12px; }

/* ---------- menú v4.1: megamenús con ayuda por opción ---------- */
#header .dropdown-menu.sp-mm { left: 50%; transform: translateX(-50%); width: min(900px, 96vw); padding: 18px; border-radius: 18px; }
.sp-mm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 18px; }
.sp-mm-h { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; margin: 4px 0 6px 10px; }
#header .sp-mm-item { display: flex !important; gap: 10px; align-items: flex-start; white-space: normal; padding: 9px 10px !important; }
#header .sp-mm-item i { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; background: var(--brand-tint); color: var(--brand-600) !important; display: grid; place-items: center; font-size: 13px; margin-top: 1px; }
#header .sp-mm-item b { display: block; font-size: 14px; font-weight: 600; color: #111827; }
#header .sp-mm-item small { display: block; font-size: 12.5px; color: #4b5563; line-height: 1.35; }
#header .sp-mm-item:hover b { color: var(--brand-600); }
.sp-mm-compact .dropdown-item { padding: 6px 10px !important; font-size: 14px; }
.sp-mm-all { display: inline-block; margin: 8px 0 0 10px; font-size: 13.5px; font-weight: 600; color: var(--brand-600); text-decoration: none; }
.sp-mm-all:hover { text-decoration: underline; }
.sp-mm-promo { background: var(--brand-grad-soft); border-radius: 14px; padding: 18px; align-self: start; }
.sp-mm-promo i { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-grad); color: #fff; display: grid; place-items: center; margin-bottom: 10px; }
.sp-mm-promo b { display: block; color: #111827; font-size: 15px; }
.sp-mm-promo p { font-size: 13px; color: #4b5563; margin: 6px 0 10px; line-height: 1.45; }
.sp-mm-promo a { font-size: 13.5px; font-weight: 600; color: var(--brand-600); text-decoration: none; }
#header .sp-nav-demos i { color: var(--brand-600); }
@media (max-width: 991px) {
  #header .dropdown-menu.sp-mm { transform: none; width: 100%; left: 0; box-shadow: none; border: 0; padding: 4px 0 10px; }
  .sp-mm-grid { grid-template-columns: 1fr; }
  #header .navbar-collapse { max-height: calc(100vh - 70px); overflow-y: auto; }
}
@media (min-width: 992px) { #header .dropdown-menu.sp-mm { position: absolute; top: 100%; margin-top: 0 !important; } }

/* ---------- QA axe (WCAG 2.1 AA) ---------- */
.sh-float h4 small { color: #15803d !important; }                       /* 5.0:1 */
.sp2-meta, body.seo-subpage .sp-price-card__hint, body.seo-subpage .sp-pen-footnote { color: #4b5563 !important; }
/* 1.4.1: enlaces dentro de texto corrido, no solo por color */
body.seo-subpage .seo-section p a:not(.btn):not(.sp2-btn):not(.sh-btn),
body.seo-subpage .seo-section li a:not(.btn):not(.sp2-btn):not(.sh-btn),
body.seo-subpage .sp-hero-subpage .lead a,
body.seo-subpage .sp-pricing-note a,
body.seo-subpage .article-prose a,
.sh-p a, .sp2-answer a {
  text-decoration: underline !important; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.text-secondary, .text-muted { color: #4b5563 !important; }              /* Bootstrap #6c757d → AA sobre fondos claros */
.sp2-table td a, .sh-tbl td a, body.seo-subpage .comparison-table td a { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   v4.1 — IMÁGENES UNIFORMES EN TODO EL SITIO
   Un solo escenario (fondo, radio, relleno, sombra) para todas las imágenes.
   Capturas del sistema (.webp) y demos (iframe): ventana con barra de 3 puntos.
   Diagramas (.svg): tarjeta limpia, sin barra.
   ========================================================================== */
:root {
  --shot-bg: radial-gradient(60% 80% at 12% 18%, #c7d2fe 0%, transparent 60%), radial-gradient(70% 90% at 88% 28%, #ddd6fe 0%, transparent 65%), linear-gradient(160deg, #e0e7ff, #f3e8ff);
  --shot-pad: 32px;
  --shot-radius: 24px;
  --shot-shadow: 0 28px 70px -28px rgba(67, 56, 202, .45);
}
.sh-panel, .sh-panel.sky, .sh-panel.aura, .sh-panel.sand, .sh-panel.mint,
.sp2-frame, .sp2-device, .sh-split .art, .sh-stage {
  background: var(--shot-bg) !important;
  border-radius: var(--shot-radius) !important;
}
.sh-panel, .sp2-frame, .sp2-device { padding: var(--shot-pad) !important; position: relative; }
.sh-window, .sp2-frame > img, .sp2-device > iframe, .sh-panel > img, .sh-split .art > img, .sp-shot-fig img {
  border-radius: 12px !important; box-shadow: var(--shot-shadow) !important; background: #fff;
}
/* barra de ventana para capturas e iframes sueltos (los .sh-window ya la traen) */
.sp2-frame > img[src$=".webp"], .sp2-frame > img[src$=".png"], .sp2-device > iframe, .sh-split .art > img[src$=".webp"] {
  border-top: 30px solid #eef0f6 !important; border-radius: 12px !important;
}
.sp2-frame:has(> img[src$=".webp"])::before, .sp2-frame:has(> img[src$=".png"])::before, .sp2-device::before {
  content: ""; position: absolute; z-index: 1; top: calc(var(--shot-pad) + 11px); left: calc(var(--shot-pad) + 14px);
  width: 8px; height: 8px; border-radius: 50%; background: #d1d5db; box-shadow: 13px 0 #d1d5db, 26px 0 #d1d5db;
}
.sh-split .art { position: relative; }
.sh-split .art:has(> img[src$=".webp"])::before {
  content: ""; position: absolute; z-index: 1; width: 8px; height: 8px; border-radius: 50%; background: #d1d5db; box-shadow: 13px 0 #d1d5db, 26px 0 #d1d5db;
  top: 50%; left: 56px; transform: translateY(calc(-50% - var(--art-h, 0px)));
}
.sh-split .art > img { width: 100%; height: auto; }
/* galería de demos: mismo marco */
.sp-shot-fig { background: var(--shot-bg) !important; padding: 16px 16px 0; border: 0 !important; border-radius: 20px !important; }
.sp-shot-fig figcaption { background: transparent; padding: 14px 4px 16px !important; }
@media (max-width: 900px) { :root { --shot-pad: 12px; --shot-radius: 18px; } }
.sh-split .art:has(> img[src$=".webp"])::before { content: none; }

.sp2-table td a, .sh-tbl td a, body.seo-subpage .comparison-table td a, body.seo-subpage .seo-section td a { text-decoration: underline !important; text-underline-offset: 3px; }

/* variable de subpáginas al índigo AA (antes #6366f1 = 4.47:1) */
body.seo-subpage { --sp-primary: #4f46e5; }
body.seo-subpage .seo-benefit-card h2, body.seo-subpage .seo-benefit-card h3, .highlight { color: #4f46e5 !important; }

/* ==========================================================================
   FIX imágenes estiradas: los atributos width/height se usan solo para la
   proporción (evita saltos de diseño); el alto real siempre es automático.
   ========================================================================== */
img:not(.sh-slide) { max-width: 100%; height: auto !important; }
.sp2-frame > img, .sh-panel > img, .sh-window > img, .sh-split .art img, .sp-shot-fig img, .dm-gal img {
  width: 100% !important; height: auto !important; object-fit: contain;
}
.sh-mac .sh-slide { height: 100% !important; }

/* fix desborde horizontal en escritorio: la columna de contenido puede encoger */
.sh-steps { grid-template-columns: 300px minmax(0, 1fr); }
.sh-steps > div, .sh-split > div, .sh-faq > div { min-width: 0; }
@media (max-width: 900px) { .sh-steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- tarjetas por rubro ---------- */
.sh-rubros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.sh-rubro { display: grid; grid-template-columns: 220px minmax(0, 1fr); border: 1px solid #eceaf6; border-radius: 22px; overflow: hidden; background: #fff; text-decoration: none; color: inherit; box-shadow: 0 4px 14px -6px rgba(17, 24, 39, .08); transition: transform .25s, box-shadow .25s, border-color .25s; }
.sh-rubro:hover { transform: translateY(-3px); border-color: var(--brand-tint-line); box-shadow: 0 18px 40px -16px rgba(79, 70, 229, .28); color: inherit; }
.sh-rubro-ph { position: relative; display: grid; place-items: center; padding: 18px; min-height: 100%; }
.sh-rubro-ph svg { width: 100%; max-width: 190px; height: auto; filter: drop-shadow(0 6px 14px rgba(17, 24, 39, .18)); }
.sh-rubro-tag { position: absolute; top: 14px; left: 14px; font-size: 11.5px; font-weight: 700; border-radius: 99px; padding: 3px 10px; background: rgba(255, 255, 255, .92); }
.sh-rubro-tag.ok { color: #15803d; }
.sh-rubro-tag.med { color: #4338ca; }
.sh-rubro-bd { padding: 22px 24px; display: flex; flex-direction: column; }
.sh-rubro-bd h3 { font-size: 21px !important; margin: 0; font-weight: 700; }
.sh-rubro-prod { color: #4b5563; font-size: 14.5px; margin: 6px 0 10px; line-height: 1.45; }
.sh-rubro-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.sh-rubro-chips span { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: #fff; background: var(--brand-grad); border-radius: 6px; padding: 2px 8px; }
.sh-rubro-dolor { font-size: 14px; color: #4b5563; background: #faf8ff; border-radius: 10px; padding: 8px 12px; margin: 0 0 12px; line-height: 1.45; }
.sh-rubro-dolor b { color: #111827; font-weight: 600; }
.sh-rubro ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 7px; font-size: 14.5px; color: #1f2937; }
.sh-rubro li { position: relative; padding-left: 22px; }
.sh-rubro li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand-600); font-weight: 700; }
.sh-rubro .go { margin-top: auto; color: var(--brand-600); font-weight: 600; font-size: 14.5px; }
@media (max-width: 1100px) { .sh-rubros { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .sh-rubro { grid-template-columns: minmax(0, 1fr); }
  .sh-rubro-ph { min-height: 150px; }
  .sh-rubro-ph svg { max-width: 170px; }
}

/* ---------- rubros v4.6: flexo ancho + 3 tarjetas ---------- */
.sh-rubro--wide { margin-top: 48px; grid-template-columns: 260px minmax(0, 1fr); }
.sh-rubro--wide:hover { transform: none; }
.sh-rubro--wide .sh-rubro-bd { padding: 26px 28px; gap: 18px; }
.sh-rubro-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.sh-rubro-head .sh-rubro-dolor { margin: 0; }
.sh-rubro-subs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sh-rubro-sub { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #eceaf6; border-radius: 14px; padding: 14px; text-decoration: none; color: #111827; background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.sh-rubro-sub:hover { border-color: #c7d2fe; box-shadow: 0 10px 24px -14px rgba(79, 70, 229, .45); transform: translateY(-2px); color: #111827; }
.sh-rubro-sub i { color: var(--brand-600); font-size: 18px; margin-top: 2px; }
.sh-rubro-sub b { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; }
.sh-rubro-sub small { display: block; color: #4b5563; font-size: 13px; line-height: 1.4; margin-top: 3px; }
.sh-rubro-sub em { display: block; font-style: normal; color: #4338ca; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; margin-top: 6px; }
.sh-rubro-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.sh-rubro-foot ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; }
.sh-rubro-foot .go { margin-top: 0; text-decoration: none; }
.sh-rubros3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.sh-rubro--v { grid-template-columns: minmax(0, 1fr); }
.sh-rubro--v .sh-rubro-ph { min-height: 150px; }
.sh-rubro--v .sh-rubro-ph svg { max-width: 170px; }
@media (max-width: 1100px) {
  .sh-rubro-subs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sh-rubro-head { grid-template-columns: minmax(0, 1fr); }
  .sh-rubros3 { grid-template-columns: minmax(0, 1fr); }
  .sh-rubro--v { grid-template-columns: 220px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .sh-rubro--wide { grid-template-columns: minmax(0, 1fr); }
  .sh-rubro--wide .sh-rubro-ph { min-height: 150px; }
  .sh-rubro--wide .sh-rubro-ph svg { max-width: 170px; }
}
@media (max-width: 560px) {
  .sh-rubro-subs { grid-template-columns: minmax(0, 1fr); }
  .sh-rubro--v { grid-template-columns: minmax(0, 1fr); }
  .sh-rubro--wide .sh-rubro-bd { padding: 22px 20px; }
}

/* ---------- páginas por producto (render-rubro-producto.php) ---------- */
.sp-rp-prod { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-rp-prod span { background: #eef2ff; color: #3730a3; border-radius: 99px; padding: 4px 12px; font-size: 14px; font-weight: 600; }
.sp-rp-ctl { display: flex; gap: 14px; margin-top: 18px; }
.sp-rp-ctl i { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--brand-grad); }
.sp-rp-ctl b { font-size: 16px; }
.sp-rp-ctl p { margin: 2px 0 0; color: #4b5563; }

/* ---------- pie de página v4.6 ---------- */
.sh-ftcta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin: 56px 64px 0; padding: 26px 30px; border-radius: 20px; background: linear-gradient(120deg, #312e81, #4f46e5 55%, #7c3aed); color: #fff; }
.sh-ftcta b { display: block; font-family: 'Space Grotesk', Inter, sans-serif; font-size: 22px; font-weight: 700; color: #fff; }
.sh-ftcta span { display: block; color: #e0e7ff; font-size: 15px; margin-top: 4px; }
.sh-ftcta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.sh-ftbtn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 99px; font-weight: 600; font-size: 15px; text-decoration: none; color: #fff !important; border: 1px solid rgba(255, 255, 255, .55); }
.sh-ftbtn:hover { background: rgba(255, 255, 255, .12); }
.sh-ftbtn--wa { background: #fff; color: #312e81 !important; border-color: #fff; }
.sh-ftbtn--wa:hover { background: #eef2ff; }
.sh-footer .top.sh-ft5 { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; padding-top: 56px; }
.sh-footer .sh-ft-contact a, .sh-footer .sh-ft-contact span { display: flex; align-items: center; gap: 8px; }
.sh-footer .sh-ft-contact i { color: #a5b4fc; }
.sh-footer h6 { color: #fff !important; font-weight: 600; text-transform: uppercase; font-size: 12.5px !important; letter-spacing: .08em; }
.sh-legal a { text-decoration: underline; }
@media (max-width: 1100px) { .sh-footer .top.sh-ft5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sh-footer .top.sh-ft5 > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 760px) { .sh-ftcta { margin: 40px 16px 0; padding: 22px 20px; } .sh-ftcta-btns, .sh-ftbtn { width: 100%; justify-content: center; } }
@media (max-width: 420px) { .sh-footer .top.sh-ft5 { grid-template-columns: minmax(0, 1fr); } }
.sh-footer .sh-status { white-space: nowrap; }

/* ===================== BLOG v4.9 ===================== */
.sp-post-cat { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: #4f46e5; border-radius: 6px; padding: 3px 9px; }
.sp-post-cat--tributario { background: #b45309; }
.sp-post-cat--gestion { background: #7c3aed; }
.sp-post-cat--produccion { background: #4f46e5; }
/* artículo */
.sp-post-hero { background: linear-gradient(180deg, #f5f0ff, #fff 85%); padding: 110px 0 0; }
.sp-post-wrap { max-width: 920px; }
.sp-post-wrap-wide { max-width: 1180px; }
.sp-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; color: #4b5563; font-size: 14.5px; }
.sp-post-hero h1 { font-size: clamp(32px, 4.4vw, 50px) !important; line-height: 1.08; letter-spacing: -.03em; margin: 14px 0 0; }
.sp-post-lead { font-size: 19px; color: #374151; line-height: 1.55; margin: 16px 0 0; }
.sp-post-author { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.sp-post-author img { border-radius: 10px; }
.sp-post-author b { display: block; font-size: 15px; color: #111827; }
.sp-post-author small { color: #4b5563; font-size: 13.5px; }
.sp-post-cover { margin: 28px 0 0; border-radius: 20px; overflow: hidden; border: 1px solid #e9e5f7; box-shadow: 0 24px 50px -28px rgba(49, 46, 129, .45); }
.sp-post-cover img { display: block; width: 100%; }
.sp-post-layout { display: grid; grid-template-columns: 250px minmax(0, 720px); gap: 56px; justify-content: center; padding-top: 48px; padding-bottom: 56px; }
.sp-post-side { position: relative; }
.sp-post-toc, .sp-post-share { position: sticky; top: 96px; }
.sp-post-toc p, .sp-post-share p { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #4b5563; margin: 0 0 10px; }
.sp-post-toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid #ede9fe; }
.sp-post-toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.35; color: #374151 !important; text-decoration: none !important; }
.sp-post-toc li a:hover, .sp-post-toc li a.on { color: #4338ca !important; border-left-color: #4f46e5; }
.sp-post-share { top: auto; margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sp-post-share p { width: 100%; }
.sp-post-share a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #e5e7eb; color: #4338ca !important; text-decoration: none !important; }
.sp-post-share a:hover { background: #eef2ff; }
.sp-post-answer { margin: 0 0 32px !important; max-width: none !important; }
.sp-post-answer h2 { font-size: 1.05rem !important; margin: 0 0 .4rem !important; }
.sp-post-body .article-prose { font-size: 18px; line-height: 1.75; color: #374151; }
.sp-post-body .article-prose h2 { font-size: 28px !important; margin: 2.2rem 0 .8rem; scroll-margin-top: 90px; color: #111827; }
.sp-post-body .article-prose h3 { font-size: 21px !important; margin: 1.6rem 0 .6rem; }
.sp-post-body .article-prose p { margin: 0 0 1.1rem; }
.sp-post-body .article-prose ul, .sp-post-body .article-prose ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.sp-post-body .article-prose li { margin-bottom: .4rem; }
.sp-post-body .article-prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 1rem 0 1.5rem; }
.sp-post-body .article-prose th, .sp-post-body .article-prose td { border: 1px solid #e5e7eb; padding: 8px 10px; text-align: left; }
.sp-post-body .article-prose th { background: #f5f3ff; }
.sp-post-fig { margin: 1.8rem 0 2rem; }
.sp-post-fig img { display: block; width: 100%; border-radius: 14px; border: 1px solid #e5e7eb; box-shadow: 0 18px 40px -24px rgba(17, 24, 39, .35); background: #fff; }
.sp-post-fig figcaption { font-size: 14px; color: #4b5563; margin-top: 10px; text-align: center; }
.sp-post-body .seo-cta-final { background: linear-gradient(120deg, #312e81, #4f46e5 60%, #7c3aed); color: #fff; border-radius: 18px; padding: 24px 26px; text-align: left; border: 0; }
.sp-post-body .seo-cta-final p, .sp-post-body .seo-cta-final strong { color: #fff !important; }
.sp-post-body .seo-cta-final .btn { background: #fff !important; color: #312e81 !important; border: 0; border-radius: 99px; font-weight: 600; text-decoration: none !important; }
.sp-post-product { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 18px 20px; border: 1px solid #e0e7ff; background: #f5f3ff; border-radius: 16px; text-decoration: none !important; color: #111827 !important; }
.sp-post-product:hover { border-color: #a5b4fc; }
.sp-post-product .ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--brand-grad); }
.sp-post-product small { display: block; color: #4b5563; font-size: 13px; }
.sp-post-product b { font-size: 17px; color: #3730a3; }
.sp-post-related { background: #faf8ff; border-top: 1px solid #ede9fe; padding: 56px 0; }
.sp-post-related h2 { font-size: 28px !important; margin: 0 0 22px; }
/* tarjetas e índice */
.sp-blog-grid2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.sp-bcard { display: flex; flex-direction: column; background: #fff; border: 1px solid #ece9f6; border-radius: 18px; overflow: hidden; text-decoration: none !important; color: #111827 !important; transition: transform .2s, box-shadow .2s, border-color .2s; }
.sp-bcard[hidden] { display: none; }
.sp-bcard:hover { transform: translateY(-3px); border-color: #c7d2fe; box-shadow: 0 18px 40px -20px rgba(79, 70, 229, .4); }
.sp-bcard img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-bottom: 1px solid #f0edf9; }
.sp-bcard-bd { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; align-items: flex-start; }
.sp-bcard-bd b { font-size: 18px; line-height: 1.3; }
.sp-bcard-bd small { color: #4b5563; font-size: 13.5px; }
.sp-bcard-bd small.ex { font-size: 14.5px; line-height: 1.5; color: #374151; }
.sp-bfeat { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; border: 1px solid #e0e7ff; border-radius: 22px; overflow: hidden; background: #fff; text-decoration: none !important; color: #111827 !important; box-shadow: 0 24px 50px -30px rgba(49, 46, 129, .45); }
.sp-bfeat img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sp-bfeat-bd { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 32px; align-items: flex-start; }
.sp-bfeat-bd b { font-family: 'Space Grotesk', Inter, sans-serif; font-size: 28px; line-height: 1.15; letter-spacing: -.02em; }
.sp-bfeat-bd small { color: #374151; font-size: 16px; line-height: 1.55; }
.sp-bfeat-bd .go { color: #4338ca; font-weight: 600; }
.sp-bfeat-tag { font-size: 12.5px; font-weight: 700; color: #15803d; background: #dcfce7; border-radius: 99px; padding: 3px 10px; }
.sp-bfilter { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 22px; }
.sp-bfilter button { border: 1px solid #ddd6fe; background: #fff; color: #3730a3; border-radius: 99px; padding: 8px 16px; font-weight: 600; font-size: 14.5px; cursor: pointer; }
.sp-bfilter button span { color: #4b5563; font-weight: 500; margin-left: 4px; }
.sp-bfilter button.on { background: #4f46e5; color: #fff; border-color: #4f46e5; }
.sp-bfilter button.on span { color: #e0e7ff; }
@media (max-width: 1100px) {
  .sp-post-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sp-post-toc, .sp-post-share { position: static; }
  .sp-post-toc { background: #faf8ff; border: 1px solid #ede9fe; border-radius: 14px; padding: 16px 18px; }
  .sp-blog-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sp-post-hero { padding-top: 92px; }
  .sp-bfeat { grid-template-columns: minmax(0, 1fr); }
  .sp-bfeat-bd { padding: 22px; }
  .sp-bfeat-bd b { font-size: 23px; }
  .sp-blog-grid2 { grid-template-columns: minmax(0, 1fr); }
  .sp-post-body .article-prose { font-size: 17px; }
  .sp-post-body .article-prose h2 { font-size: 24px !important; }
  .sp-post-body .article-prose table { display: block; overflow-x: auto; }
}

/* ---------- pantalla del sistema bajo el encabezado (sp-shot.php) ---------- */
.sp-shot { padding: 8px 0 28px; }
.sp-shot-fig { max-width: 1040px; margin: 0 auto; }
.sp-shot-fig img { display: block; width: 100%; }
.sp-shot-fig figcaption { font-size: 14.5px; color: #4b5563; text-align: center; padding: 12px 14px 4px; }

/* ---------- botones Bootstrap heredados = estilo de marca ---------- */
body.seo-subpage .btn.btn-primary, body.seo-subpage .btn.btn-outline-primary { border-radius: 99px !important; padding: .7rem 1.4rem !important; font-weight: 600 !important; text-decoration: none !important; transition: transform .15s, box-shadow .15s, background .15s; }
body.seo-subpage .btn.btn-primary { background: var(--brand-grad) !important; border: 0 !important; color: #fff !important; box-shadow: 0 10px 22px -12px rgba(79, 70, 229, .7); }
body.seo-subpage .btn.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -12px rgba(79, 70, 229, .8); }
body.seo-subpage .btn.btn-outline-primary { background: #fff !important; border: 1px solid #c7d2fe !important; color: #3730a3 !important; }
body.seo-subpage .btn.btn-outline-primary:hover { background: #eef2ff !important; }
body.seo-subpage .btn-lg { font-size: 1.05rem !important; }

/* ---------- menú superior v4.9: más aire y mejor distribución ---------- */
@media (min-width: 992px) {
  #header.sp-navbar { min-height: 72px; }
  #header .navbar-nav { gap: 4px; }
  #header .navbar-nav .nav-link { font-size: 15px !important; font-weight: 500; padding: 24px 14px 22px !important; color: #1f2937 !important; }
  #header .navbar-nav .nav-link:hover, #header .navbar-nav .nav-link.show { color: #4338ca !important; }
  #header .navbar-nav .nav-link.show::after { transform: rotate(180deg); }
  #header .sp-nav-cta { padding: 10px 20px !important; font-size: 15px !important; margin-left: 10px; }
  #header .dropdown-menu.sp-mm { width: min(1120px, 94vw); padding: 26px 28px 0; border: 1px solid #ece9f6; box-shadow: 0 30px 60px -24px rgba(31, 27, 75, .35); }
  .sp-mm-grid { gap: 8px 32px; padding-bottom: 20px; }
  .sp-mm-h { font-size: 12px; color: #4b5563; margin: 0 0 10px 12px; padding-bottom: 8px; border-bottom: 1px solid #f1eef9; }
  #header .sp-mm-item { gap: 14px; padding: 11px 12px !important; border-radius: 12px; }
  #header .sp-mm-item:hover { background: #f7f5ff; }
  #header .sp-mm-item i { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; font-size: 15px; }
  #header .sp-mm-item b { font-size: 15px; }
  #header .sp-mm-item small { font-size: 13.5px; margin-top: 2px; }
  .sp-mm-compact .dropdown-item { padding: 8px 12px !important; font-size: 14.5px; border-radius: 10px; }
  .sp-mm-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
  .sp-mm-promo { padding: 22px; }
  .sp-mm-promo b { font-size: 16px; }
  .sp-mm-promo p { font-size: 14px; }
  .sp-mm-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 -28px; padding: 14px 28px; background: #faf8ff; border-top: 1px solid #f1eef9; border-radius: 0 0 18px 18px; font-size: 14px; color: #4b5563; }
  .sp-mm-foot-links { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
  .sp-mm-foot a { color: #4338ca; font-weight: 600; text-decoration: none; }
  .sp-mm-foot a:hover { text-decoration: underline; }
  .sp-mm-foot .sp-mm-foot-cta { background: var(--brand-grad); color: #fff; padding: 8px 16px; border-radius: 99px; }
  .sp-mm-foot .sp-mm-foot-cta:hover { text-decoration: none; filter: brightness(1.06); }
  #header .dropdown-menu:not(.sp-mm) { padding: 10px; border-radius: 16px; min-width: 280px; border: 1px solid #ece9f6; box-shadow: 0 24px 48px -20px rgba(31, 27, 75, .3); }
  #header .dropdown-menu:not(.sp-mm) .dropdown-item { padding: 9px 12px; border-radius: 10px; font-size: 14.5px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  #header .navbar-nav .nav-link { padding-left: 10px !important; padding-right: 10px !important; }
}
@media (max-width: 991px) {
  .sp-mm-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 12px; font-size: 13.5px; }
  .sp-mm-foot-links { display: flex; gap: 14px; flex-wrap: wrap; }
  .sp-mm-foot a { font-weight: 600; color: #4338ca; }
  .sp-mm-2col { display: grid; grid-template-columns: 1fr 1fr; }
}

/* anclas: dejar espacio para la barra fija */
section[id], [id="contact"], .sh-steps [id], h2[id] { scroll-margin-top: 84px; }

/* ---------- CTA final de página (sp-cta.php) ---------- */
.sp-cta-sec { padding: 40px 0 56px; }
.sp-cta { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px 48px; align-items: center; padding: 44px 48px; border-radius: 28px; color: #fff; background: radial-gradient(600px 300px at 15% 0%, rgba(255, 255, 255, .14), transparent 60%), linear-gradient(125deg, #312e81 0%, #4338ca 45%, #7c3aed 100%); box-shadow: 0 30px 60px -30px rgba(49, 46, 129, .6); }
.sp-cta::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .06); pointer-events: none; }
.sp-cta-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #e0e7ff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); border-radius: 99px; padding: 5px 12px; }
body.seo-subpage .sp-cta h2, .sp-cta h2 { color: #fff !important; font-size: clamp(26px, 3.2vw, 38px) !important; line-height: 1.12; letter-spacing: -.02em; margin: 16px 0 10px !important; }
.sp-cta p { color: #e0e7ff !important; font-size: 17px; line-height: 1.55; margin: 0 0 18px; max-width: 560px; }
.sp-cta p a { color: #fff !important; }
.sp-cta-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: #c7d2fe; }
.sp-cta-trust li::before { content: "✓"; color: #86efac; font-weight: 700; margin-right: 6px; }
.sp-cta-act { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; align-items: stretch; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 20px; padding: 24px; }
.sp-cta-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 20px; border-radius: 99px; font-weight: 600; font-size: 16px; text-decoration: none !important; transition: transform .15s, background .15s; }
.sp-cta-btn--wa { background: #fff; color: #312e81 !important; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .45); }
.sp-cta-btn--wa i { color: #16a34a; font-size: 20px; }
.sp-cta-btn--wa:hover { transform: translateY(-1px); }
.sp-cta-btn--gh { color: #fff !important; border: 1px solid rgba(255, 255, 255, .55); }
.sp-cta-btn--gh:hover { background: rgba(255, 255, 255, .1); }
.sp-cta-act small { text-align: center; color: #c7d2fe; font-size: 13.5px; }
.sp-cta-act small a { color: #fff !important; text-decoration: underline; }
@media (max-width: 900px) {
  .sp-cta { grid-template-columns: minmax(0, 1fr); padding: 32px 22px; border-radius: 22px; }
  .sp-cta-act { padding: 18px; }
}

/* ---------- franja de demos antes del pie (site-footer.php) ---------- */
.sp-band { background: linear-gradient(180deg, #fff, #f5f2ff); border-top: 1px solid #f0edf9; padding: 56px 0 64px; }
.sp-band-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 24px; }
body.seo-subpage .sp-band-head h2, .sp-band-head h2 { font-size: clamp(24px, 2.6vw, 32px) !important; margin: 0 !important; letter-spacing: -.02em; }
.sp-band-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.sp-band-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; border: 1px solid #ebe7f7; border-radius: 20px; overflow: hidden; text-decoration: none !important; color: #111827 !important; transition: transform .2s, box-shadow .2s, border-color .2s; }
.sp-band-card:hover { transform: translateY(-3px); border-color: #c7d2fe; box-shadow: 0 20px 44px -22px rgba(79, 70, 229, .45); }
.sp-band-img { display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #eef2ff, #f5f3ff); padding: 16px; }
.sp-band-img img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 10px 24px -16px rgba(17, 24, 39, .45); background: #fff; }
.sp-band-bd { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 22px 20px; justify-content: center; }
.sp-band-bd .ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-grad); color: #fff; }
.sp-band-bd b { font-size: 18px; line-height: 1.3; }
.sp-band-bd small { color: #4b5563; font-size: 14.5px; line-height: 1.5; }
.sp-band-bd .go { color: #4338ca; font-weight: 600; font-size: 14.5px; margin-top: 4px; }
@media (max-width: 1100px) { .sp-band-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .sp-band-card { grid-template-columns: minmax(0, 1fr); } .sp-band { padding: 44px 0 48px; } }

/* selector del formulario de demo con el mismo estilo que los campos */
.sh-form select { width: 100%; appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234b5563' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center; border: 1px solid var(--sh-line, #e5e7eb); border-radius: 10px; padding: 12px 40px 12px 40px; font: inherit; font-size: 15px; color: #111827; }
.sh-form select:invalid { color: #6b7280; }
.sh-form select:focus { outline: 0; border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(79, 70, 229, .15); }
.sh-form .form-group.error select { border-color: #dc2626; }
.sp-form-btns { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px; }
.sp-form-btns .sh-btn { width: 100%; justify-content: center; display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 480px) { .sp-form-btns { grid-template-columns: minmax(0, 1fr); } }

/* ---------- formulario de demo (modelo SysHotel) ---------- */
.sp-dform .sp-dgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.sp-dform .form-group { margin-bottom: 14px; }
.sp-dform .form-group > label, .sp-dform legend { display: block; font-size: 13.5px; font-weight: 600; color: #1f2937; margin: 0 0 6px; }
.sp-dform .form-group > label small { font-weight: 500; color: #4b5563; }
.sp-dform .form-group > i { top: 43px; }
.sp-dform .form-group.error input, .sp-dform .form-group.error select { border-color: #dc2626; }
.sp-dradio { border: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sp-dradio legend { width: 100%; float: left; }
.sp-dradio label { cursor: pointer; margin: 0; }
.sp-dradio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sp-dradio span { display: inline-block; padding: 9px 14px; border: 1px solid #ddd6fe; border-radius: 99px; background: #fff; font-size: 14.5px; color: #3730a3; font-weight: 500; transition: background .15s, border-color .15s; }
.sp-dradio label:hover span { border-color: #a5b4fc; }
.sp-dradio input:checked + span { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.sp-dradio input:focus-visible + span { outline: 3px solid rgba(79, 70, 229, .35); outline-offset: 2px; }
.sp-dradio.error span { border-color: #dc2626; }
.sp-dsubmit { width: 100%; justify-content: center; display: inline-flex; align-items: center; gap: 8px; padding: 14px 18px !important; font-size: 16px !important; }
@media (max-width: 560px) { .sp-dform .sp-dgrid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- ventana "¿Hablamos?" (wa-float.php) ---------- */
html.sp-dmodal-open { overflow: hidden; }
.sp-dmodal { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 24px; background: #fff; color: #111827; box-shadow: 0 40px 80px -30px rgba(31, 27, 75, .55); overflow: hidden; }
.sp-dmodal[open] { display: flex; flex-direction: column; animation: spDmIn .22s ease-out; }
.sp-dmodal::backdrop { background: rgba(17, 24, 39, .55); backdrop-filter: blur(3px); }
@keyframes spDmIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.sp-dmodal-head { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 24px 56px 20px 26px; color: #fff; background: radial-gradient(500px 200px at 10% 0, rgba(255, 255, 255, .16), transparent 60%), linear-gradient(125deg, #312e81, #4f46e5 55%, #7c3aed); }
.sp-dmodal-ic { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: #25d366; color: #fff; font-size: 24px; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .5); }
.sp-dmodal-head h2 { color: #fff !important; font-size: 24px !important; margin: 2px 0 4px !important; letter-spacing: -.02em; font-family: 'Space Grotesk', Inter, sans-serif; }
.sp-dmodal-head p { color: #e0e7ff !important; margin: 0; font-size: 14.5px; line-height: 1.5; }
.sp-dmodal-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 17px; cursor: pointer; }
.sp-dmodal-x:hover { background: rgba(255, 255, 255, .28); }
.sp-dmodal-body { padding: 22px 26px 18px; overflow-y: auto; background: #faf8ff; }
.sp-dmodal .sp-dform .note { margin: 10px 0 0; font-size: 13px; color: #4b5563; text-align: center; }
.sp-dok { text-align: center; padding: 26px 8px; }
.sp-dok-ic { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #dcfce7; color: #16a34a; font-size: 30px; }
.sp-dok h3 { font-size: 22px !important; margin: 14px 0 6px; color: #111827; }
.sp-dok p { color: #4b5563; margin: 0; }
.sp-dok a { color: #4338ca; font-weight: 600; }
@media (max-width: 560px) {
  .sp-dmodal { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  .sp-dmodal-head { padding: 18px 52px 16px 18px; }
  .sp-dmodal-head h2 { font-size: 21px !important; }
  .sp-dmodal-body { padding: 18px 16px; flex: 1; }
}
.sp-dmodal { position: fixed; inset: 0; margin: auto !important; height: fit-content; }
@media (max-width: 560px) { .sp-dmodal { height: 100dvh; margin: 0 !important; } }
.sp-dform .form-group > i { top: auto !important; bottom: 0; height: 46px; display: flex; align-items: center; }
.sp-dform .form-group input, .sp-dform .form-group select { height: 46px; }
/* ícono centrado dentro de su campo, sin depender de la etiqueta */
.sp-dform .sp-dfield { position: relative; display: block; }
.sp-dform .sp-dfield > i { position: absolute; left: 14px; top: 50% !important; bottom: auto !important; height: auto !important; transform: translateY(-50%); margin: 0; color: #6b7280; font-size: 14px; pointer-events: none; }
.sp-dform .sp-dfield input, .sp-dform .sp-dfield select { margin: 0 !important; }
.sh-price-note { text-align: center; color: #4b5563; font-size: 14.5px; margin: 22px auto 0; max-width: 760px; } .sh-price-note a { color: #4338ca; font-weight: 600; }
.sp-zona-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; } .sp-zona-chips span { background: #fff; border: 1px solid #ddd6fe; color: #3730a3; border-radius: 99px; padding: 6px 12px; font-size: 14px; font-weight: 600; } .sp-zona-chips i { color: #7c3aed; }

/* ---------- planes y precios (/precios/) ---------- */
.sp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.sp-plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #e9e5f7; border-radius: 22px; padding: 28px 26px 24px; box-shadow: 0 10px 30px -22px rgba(31, 27, 75, .35); }
.sp-plan--best { border: 2px solid #4f46e5; box-shadow: 0 26px 50px -26px rgba(79, 70, 229, .55); }
.sp-plan-rib { position: absolute; top: -13px; left: 26px; background: var(--brand-grad); color: #fff; font-size: 12.5px; font-weight: 700; border-radius: 99px; padding: 4px 12px; }
body.seo-subpage .sp-plan h2 { font-size: 22px !important; margin: 0 0 4px !important; }
.sp-plan-for { color: #4b5563; font-size: 14.5px; min-height: 44px; margin: 0 0 14px; }
.sp-plan-price { display: flex; align-items: baseline; gap: 4px; margin: 0 0 6px; color: #111827; }
.sp-plan-price small { font-size: 18px; font-weight: 700; color: #4338ca; }
.sp-plan-price b { font-family: 'Space Grotesk', Inter, sans-serif; font-size: 48px; line-height: 1; letter-spacing: -.03em; }
.sp-plan-price b.q { font-size: 34px; }
.sp-plan-price span { color: #4b5563; font-size: 15px; margin-left: 4px; }
.sp-plan-proc { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: #eef2ff; color: #3730a3; font-weight: 600; font-size: 14px; border-radius: 99px; padding: 5px 12px; margin: 6px 0 16px; }
.sp-plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; font-size: 15px; color: #1f2937; }
.sp-plan li { position: relative; padding-left: 24px; }
.sp-plan li::before { content: "✓"; position: absolute; left: 0; color: #4f46e5; font-weight: 700; }
.sp-plan-btn { margin-top: auto; display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 13px 18px; border-radius: 99px; border: 1px solid #c7d2fe; color: #3730a3 !important; font-weight: 600; text-decoration: none !important; background: #fff; }
.sp-plan-btn:hover { background: #eef2ff; }
.sp-plan-btn--dark { background: var(--brand-grad); color: #fff !important; border: 0; box-shadow: 0 12px 24px -12px rgba(79, 70, 229, .7); }
.sp-plan-btn--dark:hover { background: var(--brand-grad); filter: brightness(1.06); }
.sp-plan-note { text-align: center; color: #4b5563; font-size: 14.5px; margin: 22px 0 0; }
.sp-plan-note i { color: #4f46e5; margin-right: 6px; }
@media (max-width: 991px) { .sp-plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; } .sp-plan-for { min-height: 0; } }

/* ---------- home: cadena de procesos por pestaña ---------- */
.sp-pchain { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; counter-reset: none; }
.sp-pchain--long { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sp-pchain li { position: relative; }
.sp-pchain li > a, .sp-pchain li > div { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 16px; border: 1px solid #ebe7f7; border-radius: 16px; background: #fff; text-decoration: none !important; color: #111827 !important; transition: border-color .2s, box-shadow .2s, transform .2s; }
.sp-pchain li > a:hover { border-color: #c7d2fe; box-shadow: 0 16px 34px -20px rgba(79, 70, 229, .45); transform: translateY(-2px); }
.sp-pchain li > a::after { content: "Ver proceso →"; margin-top: auto; padding-top: 6px; color: #4338ca; font-weight: 600; font-size: 13.5px; }
.sp-pchain .ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--brand-grad); color: #fff; font-size: 15px; }
.sp-pchain .cod { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #4338ca; }
.sp-pchain b { font-size: 16.5px; line-height: 1.25; }
.sp-pchain small { color: #4b5563; font-size: 13.5px; line-height: 1.45; }
.sp-pchain em { font-style: normal; align-self: flex-start; font-size: 12.5px; font-weight: 600; color: #92400e; background: #fef3c7; border-radius: 99px; padding: 2px 9px; }
.sp-pfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-top: 20px; padding: 16px 18px; background: #faf8ff; border: 1px solid #ede9fe; border-radius: 14px; }
.sp-pfoot p { margin: 0; font-size: 14.5px; color: #374151; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sp-pfoot p span { font-weight: 600; color: #111827; margin-right: 2px; }
.sp-ptag { font-style: normal; background: #fff; border: 1px solid #ddd6fe; color: #3730a3; border-radius: 99px; padding: 2px 10px; font-size: 13px; font-weight: 600; }
.sp-pfoot .go { color: #4338ca; font-weight: 600; text-decoration: none; white-space: nowrap; }
@media (max-width: 900px) { .sp-pchain, .sp-pchain--long { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .sp-pchain, .sp-pchain--long { grid-template-columns: minmax(0, 1fr); } }

/* ---------- selector mensual / anual ---------- */
.sp-billing { display: flex; justify-content: center; gap: 6px; width: max-content; max-width: 100%; margin: 0 auto 30px; padding: 5px; background: #f3f0ff; border: 1px solid #e4dcff; border-radius: 99px; }
.sp-billing button { border: 0; background: transparent; padding: 9px 18px; border-radius: 99px; font-weight: 600; font-size: 15px; color: #3730a3; cursor: pointer; }
.sp-billing button span { font-size: 12px; font-weight: 700; color: #15803d; background: #dcfce7; border-radius: 99px; padding: 2px 8px; margin-left: 6px; }
.sp-billing button.on { background: #fff; color: #111827; box-shadow: 0 4px 12px -6px rgba(31, 27, 75, .35); }
#spPlans[data-bill="mes"] .sp-bill-anio, #spPlans[data-bill="anio"] .sp-bill-mes { display: none !important; }
.sp-plan-annual { font-size: 13.5px; color: #4b5563; margin: 0 0 4px; }
.sp-plan-annual strong { color: #15803d; }
.sp-incl { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
@media (max-width: 1100px) { .sp-incl { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 560px) { .sp-incl { grid-template-columns: minmax(0, 1fr) !important; } }
.sp-incl.sp-incl--3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } @media (max-width: 1100px) { .sp-incl.sp-incl--3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } } @media (max-width: 560px) { .sp-incl.sp-incl--3 { grid-template-columns: minmax(0, 1fr) !important; } }
.sp-adapt { display: flex; align-items: center; gap: 18px 22px; flex-wrap: wrap; margin-top: 22px; padding: 22px 26px; border-radius: 18px; color: #fff; background: linear-gradient(120deg, #312e81, #4f46e5 60%, #7c3aed); }
.sp-adapt .ic { flex: none; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .16); font-size: 20px; }
.sp-adapt > div { flex: 1 1 420px; }
body.seo-subpage .sp-adapt h3 { color: #fff !important; font-size: 20px !important; margin: 0 0 4px !important; }
.sp-adapt p { color: #e0e7ff !important; margin: 0; font-size: 15px; line-height: 1.55; }
.sp-adapt a { flex: none; background: #fff; color: #312e81 !important; font-weight: 600; padding: 10px 18px; border-radius: 99px; text-decoration: none !important; }
