/* ==========================================================
   SUBPÁGINAS DE LA PLATAFORMA (plataforma-*.php)
   Usa los mismos tokens de styles.css; solo agrega piezas propias (prefijo sp-).
   ========================================================== */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sp-muted { color: var(--muted); }
.sp-h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 760; }
.sp-h2 em { font-style: normal; color: var(--violet-fg); }
.sp-h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
.pc-teal { background: var(--teal-50); color: var(--teal-ink); }

/* ---------- portada ---------- */
.sp-hero { position: relative; padding: calc(var(--bar-h) + 28px) 0 clamp(56px, 8vw, 96px); background: radial-gradient(55% 60% at 88% 18%, var(--violet-50), transparent 70%), radial-gradient(40% 40% at 0% 100%, var(--teal-50), transparent 70%), var(--bg); overflow: clip; }
.sp-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 0.86rem; font-weight: 600; color: var(--muted); }
.sp-crumbs li { display: inline-flex; align-items: center; gap: 4px; }
.sp-crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--line); color: color-mix(in srgb, var(--muted) 45%, transparent); }
.sp-crumbs a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 6px; border-radius: 8px; color: var(--muted); text-decoration: none; transition: color var(--quick) var(--ease-out), background-color var(--quick) var(--ease-out); }
.sp-crumbs a:hover { color: var(--violet-fg); background: var(--violet-50); }
.sp-crumbs [aria-current] { padding: 0 6px; color: var(--ink); }

.sp-hero-copy { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 72px); align-items: end; margin-top: clamp(20px, 3vw, 36px); }
.sp-title { display: grid; gap: 6px; }
.sp-title-main { display: block; font-size: clamp(3rem, 7.6vw, 6rem); line-height: 0.94; letter-spacing: -0.035em; font-weight: 790; padding-bottom: 0.04em; }
.sp-title-sub { display: block; font-size: clamp(1.55rem, 3.2vw, 2.5rem); line-height: 1.08; letter-spacing: -0.025em; font-weight: 680; color: var(--ink-2); }
.sp-title-sub em { font-style: normal; color: var(--violet-fg); }
.sp-line { display: inline-block; }
.sp-lead { font-size: clamp(1.04rem, 1.35vw, 1.16rem); color: var(--muted); max-width: 36em; }
.sp-badges { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; font-size: 0.92rem; font-weight: 650; color: var(--ink-2); }
.sp-badges li { display: inline-flex; align-items: center; gap: 8px; }
.sp-badges .ico { width: 1.15em; height: 1.15em; color: var(--violet-fg); }
.sp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn:hover .sp-ico-down { transform: translateY(3px); }

.sp-hero-stage { position: relative; margin-top: clamp(40px, 6vw, 72px); perspective: 1800px; }
.sp-hero-tilt { transform-origin: 50% 0; }
.sp-float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 16px; font-size: 0.82rem; white-space: nowrap; box-shadow: var(--e3); }
.sp-float small { display: block; color: var(--muted); font-size: 0.72rem; }
.sp-float strong { display: block; }
.sp-float-a { left: -14px; top: 26%; }
.sp-float-b { right: -14px; bottom: 16%; }
.sp-note { margin-top: 14px; font-size: 0.76rem; color: var(--muted); text-align: center; }

/* ---------- captura con marco de navegador ---------- */
.sp-shot { margin: 0; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--e3); overflow: hidden; }
.sp-shot-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #eceef6; }
.sp-shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d3d7e6; }
.sp-shot-bar span { margin-left: 10px; font-size: 0.76rem; font-weight: 650; color: #586381; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-shot img { display: block; width: 100%; height: auto; outline: 1px solid oklch(0 0 0 / 0.08); outline-offset: -1px; }
:root[data-theme="dark"] .sp-shot-bar { background: #222c57; }
:root[data-theme="dark"] .sp-shot-bar i { background: rgb(255 255 255 / 0.18); }
:root[data-theme="dark"] .sp-shot-bar span { color: var(--muted); }
:root[data-theme="dark"] .sp-shot img { outline-color: oklch(1 0 0 / 0.1); }

/* ---------- qué es y quién lo usa ---------- */
.sp-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.sp-about-copy p { margin-top: 18px; font-size: clamp(1.03rem, 1.3vw, 1.12rem); color: var(--muted); max-width: 34em; }
.sp-about-illus { margin-top: 32px; max-width: 420px; }
.sp-about-illus .lottie { max-width: 340px; }
.sp-roles > .sp-muted { margin-top: 8px; }
.sp-role-list { margin-top: 20px; padding: 6px; border-radius: var(--r-lg); background: var(--bg); }
.sp-role { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; row-gap: 12px; padding: 18px; border-radius: 18px; }
.sp-role + .sp-role { box-shadow: 0 -1px 0 var(--line); }
.sp-role:first-child { background: var(--surface); box-shadow: var(--e1); }
.sp-role-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--violet-50); color: var(--violet-fg); }
.sp-role strong { display: block; font-size: 1.04rem; }
.sp-role p { margin-top: 4px; font-size: 0.93rem; color: var(--muted); }
.sp-scope { grid-column: 2; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.sp-scope::before { content: "Alcance"; }
.sp-scope i { position: relative; display: block; height: 6px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.sp-scope i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--violet); transform-origin: left; transform: scaleX(var(--s)); }
.sp-role-note { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 0 8px; font-size: 0.95rem; font-weight: 600; color: var(--ink-2); }
.sp-role-note .ico { color: var(--violet-fg); }

/* ---------- recorrido ---------- */
.sp-tour-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.sp-tour-head p { margin-top: 16px; font-size: clamp(1.03rem, 1.3vw, 1.12rem); color: var(--muted); }
.sp-tour-grid { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }

.sp-rail { position: sticky; top: calc(var(--bar-h) + 32px); display: grid; gap: 2px; }
.sp-rail-mark { position: absolute; left: 0; top: 0; width: 100%; height: var(--mh, 0px); border-radius: 14px; background: var(--surface); box-shadow: var(--e2); transform: translateY(var(--my, 0px)); transition: transform 420ms var(--ease-out), height 420ms var(--ease-out); pointer-events: none; }
.sp-rail a { position: relative; z-index: 1; display: grid; gap: 1px; padding: 11px 16px; border-radius: 14px; font-weight: 650; font-size: 0.98rem; line-height: 1.25; color: var(--muted); text-decoration: none; transition: color var(--fast) var(--ease-out); }
.sp-rail a small { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; color: var(--muted); opacity: 0.8; transition: color var(--fast) var(--ease-out); }
.sp-rail a:hover { color: var(--ink); }
.sp-rail a.is-active { color: var(--ink); }
.sp-rail a.is-active small { color: var(--violet-fg); opacity: 1; }
.sp-rail a:focus-visible { outline-offset: -2px; }

.sp-chapters { display: grid; gap: clamp(80px, 10vw, 128px); min-width: 0; }
.sp-chapter { scroll-margin-top: calc(var(--bar-h) + 24px); min-width: 0; }
.sp-ch-head { display: flex; flex-direction: column; }
.sp-ch-title { font-size: clamp(1.65rem, 2.7vw, 2.35rem); line-height: 1.1; letter-spacing: -0.025em; font-weight: 740; max-width: 22em; }
.sp-ch-head > p:not(.sp-screens) { margin-top: 14px; font-size: 1.05rem; color: var(--muted); max-width: 64ch; }
.sp-screens { order: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; font-size: 0.8rem; font-weight: 650; }
.sp-screens::before { content: "En el menú"; margin-right: 4px; color: var(--muted); font-weight: 600; }
.sp-screens span { padding: 4px 10px; border-radius: 999px; background: var(--surface); box-shadow: var(--e1); color: var(--ink-2); }
.sp-visual { margin-top: 28px; }
.sp-ch-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: clamp(20px, 3vw, 36px); align-items: start; margin-top: 28px; }
.sp-ch-side { display: grid; gap: 12px; }

.sp-list { display: grid; gap: 12px; }
.sp-list li { position: relative; padding-left: 34px; color: var(--ink-2); }
.sp-list li::before { content: ""; position: absolute; left: 0; top: 0.1em; width: 22px; height: 22px; border-radius: 7px; background: var(--violet-50); }
.sp-list li::after { content: ""; position: absolute; left: 4px; top: calc(0.1em + 4px); width: 14px; height: 14px; background: var(--violet-fg); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.sp-plan-tag { display: inline-flex; margin-left: 4px; padding: 1px 9px; border-radius: 999px; background: var(--amber-50); color: var(--orange-ink); font-size: 0.74rem; font-weight: 700; white-space: nowrap; vertical-align: 1px; }
.sp-why { padding: 18px 20px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--e2); font-size: 1rem; font-weight: 600; line-height: 1.45; color: var(--ink); }
.sp-why b { display: block; margin-bottom: 4px; font-size: 0.78rem; font-weight: 700; color: var(--teal-ink); }
.sp-plan-note { display: flex; gap: 10px; padding: 0 4px; font-size: 0.88rem; color: var(--muted); }
.sp-plan-note .ico { margin-top: 2px; color: var(--orange-ink); }

/* cadena de herencia de reglas */
.sp-chain { display: flex; flex-wrap: wrap; gap: 12px 30px; margin-top: 24px; }
.sp-chain li { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 10px 18px 10px 10px; border-radius: 14px; background: var(--surface); box-shadow: var(--e1); }
.sp-chain li + li::before { content: ""; position: absolute; left: -24px; top: 50%; width: 18px; height: 2px; border-radius: 2px; background: var(--violet-100); }
.sp-chain li + li::after { content: ""; position: absolute; left: -8px; top: calc(50% - 5px); width: 7px; height: 10px; background: var(--violet-100); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.sp-chain-ico { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--violet-50); color: var(--violet-fg); }
.sp-chain b { font-size: 0.95rem; line-height: 1.2; }
.sp-chain small { font-size: 0.78rem; line-height: 1.2; color: var(--muted); }
.sp-chain .is-final { background: var(--violet); color: #fff; box-shadow: 0 10px 22px -12px rgb(74 53 201 / 0.6); }
.sp-chain .is-final b { color: #fff; }
.sp-chain .is-final small { color: rgb(255 255 255 / 0.86); }
.sp-chain .is-final .sp-chain-ico { background: rgb(255 255 255 / 0.18); color: #fff; }

/* pestañas de capturas */
.sp-tabs-row { justify-content: flex-start; margin-bottom: 16px; }
.sp-tabpanels { display: grid; }
.sp-tabpanel { grid-area: 1 / 1; min-width: 0; }
.sp-tabpanel[hidden] { display: none; }
.sp-tabpanel.is-entering { animation: sp-panel-in 420ms var(--ease-out) both; }
@keyframes sp-panel-in { from { opacity: 0; transform: translateY(10px); filter: blur(3px); } }

/* resumen de ejemplo */
.sp-dash { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.sp-dash-card { padding: 20px; border-radius: 20px; font-size: 0.88rem; }
.sp-dash-today { grid-row: span 2; display: flex; flex-direction: column; }
.sp-today-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 14px; box-shadow: 0 -1px 0 var(--line); color: var(--muted); font-variant-numeric: tabular-nums; }
.sp-today-foot strong { font-family: var(--display); font-size: 1.5rem; letter-spacing: -0.02em; color: var(--ink); }
.sp-today-foot strong small { font-family: var(--body); font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.sp-dash-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.sp-dash-h b { font-size: 0.98rem; }
.sp-dash-h span { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.sp-today-row { display: grid; grid-template-columns: 1.25fr 1.35fr 0.55fr 0.45fr; align-items: center; gap: 10px; padding: 12px 0; box-shadow: 0 -1px 0 var(--line); font-variant-numeric: tabular-nums; }
.sp-today-row > :nth-child(n + 3) { justify-self: center; }
.sp-today-th { padding: 4px 0 8px; box-shadow: none; font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.sp-today-row b { font-size: 0.86rem; line-height: 1.25; }
.sp-progress { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; column-gap: 2px; row-gap: 6px; }
.sp-progress em { font-style: normal; font-weight: 750; font-size: 1rem; }
.sp-progress small { color: var(--muted); }
.sp-progress i { grid-column: 1 / -1; grid-row: 2; position: relative; display: block; height: 6px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.sp-progress i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--teal); transform-origin: left; transform: scaleX(var(--p)); }
.sp-zero { color: var(--muted); font-weight: 650; }
.sp-meter { display: grid; grid-template-columns: 1fr auto; row-gap: 6px; margin-top: 14px; font-variant-numeric: tabular-nums; }
.sp-meter span { color: var(--ink-2); font-weight: 600; }
.sp-meter em { font-style: normal; color: var(--muted); }
.sp-meter em b { color: var(--ink); }
.sp-meter i { grid-column: 1 / -1; position: relative; display: block; height: 8px; border-radius: 8px; background: var(--bg-2); overflow: hidden; }
.sp-meter i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--violet); transform-origin: left; transform: scaleX(var(--p)); }
.sp-pend { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-weight: 600; }
.sp-pend b { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--violet-fg); }
.sp-pend-ico { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--amber-50); color: var(--orange-ink); }
.sp-pend-go { width: 1em; height: 1em; color: var(--muted); }

/* ---------- beneficios ---------- */
.sp-gains-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.sp-gains-head p { margin-top: 18px; font-size: clamp(1.03rem, 1.3vw, 1.12rem); color: var(--muted); max-width: 30em; }
.sp-gains-list { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 36px; }
.sp-gains-list li { padding-top: 22px; box-shadow: 0 -1px 0 var(--violet-100); }
.sp-gains-list h3 { margin-top: 14px; font-family: var(--body); font-size: 1.12rem; letter-spacing: -0.01em; }
.sp-gains-list p { margin-top: 6px; color: var(--muted); }

/* ---------- disponibilidad ---------- */
.sp-avail-head { max-width: 720px; margin: 0 auto clamp(28px, 4vw, 40px); text-align: center; }
.sp-avail-head p { margin-top: 16px; font-size: clamp(1.03rem, 1.3vw, 1.12rem); color: var(--muted); }
.sp-table-wrap { overflow-x: auto; }
.sp-table { width: 100%; min-width: 620px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sp-table th, .sp-table td { padding: 16px 20px; text-align: center; }
.sp-table thead th { background: var(--th-bg); color: var(--th-fg); font-size: 0.84rem; font-weight: 700; }
.sp-table thead th:first-child { text-align: left; }
.sp-table thead th.is-hot { background: var(--violet); color: #fff; }
.sp-table tbody th { text-align: left; font-weight: 650; }
.sp-table tbody tr { box-shadow: 0 -1px 0 var(--line); transition: background-color var(--quick) var(--ease-out); }
.sp-table tbody tr:hover { background: var(--bg); }
.sp-table td { font-weight: 650; }
.sp-table td.no { color: var(--muted); font-weight: 500; }
.sp-table td.is-hot { background: var(--violet-50); color: var(--violet-fg); font-weight: 750; }
.sp-avail-foot { margin-top: 18px; text-align: center; color: var(--muted); font-size: 0.95rem; }
.sp-avail-foot a { font-weight: 700; color: var(--violet-fg); }

/* ---------- preguntas ---------- */
.sp-faq .faq-grid > div:first-child p { margin-top: 14px; }

/* ---------- otros módulos ---------- */
.sp-more { padding: clamp(56px, 7vw, 80px) 0 0; }
.sp-more-inner { display: grid; justify-items: center; gap: 22px; text-align: center; }
.sp-more-title { font-size: clamp(1.4rem, 2.4vw, 1.8rem); letter-spacing: -0.02em; }
.sp-more-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sp-more-link { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 14px; background: var(--bg); color: var(--ink); font-weight: 650; font-size: 0.95rem; text-decoration: none; transition: background-color var(--quick) var(--ease-out), color var(--quick) var(--ease-out), transform var(--quick) var(--ease-out); }
.sp-more-link .ico { color: var(--violet-fg); }
.sp-more-link .sp-more-arrow { width: 1em; height: 1em; opacity: 0.55; transform: translateX(-2px); transition: transform var(--fast) var(--ease-out), opacity var(--fast) var(--ease-out); }
.sp-more-link:hover { background: var(--violet-50); color: var(--violet-fg); }
.sp-more-link:hover .sp-more-arrow { opacity: 1; transform: translateX(3px); }
.sp-more-link:active { transform: scale(0.96); }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .sp-tour-grid { grid-template-columns: 1fr; gap: 28px; }
  .sp-rail { top: var(--bar-h); z-index: 20; display: flex; gap: 6px; margin-inline: -16px; padding: 10px 16px; overflow-x: auto; scrollbar-width: none; background: var(--bg); box-shadow: 0 10px 16px -14px rgb(20 33 66 / 0.35); }
  .sp-rail::-webkit-scrollbar { display: none; }
  .sp-rail-mark { display: none; }
  .sp-rail a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--e1); font-size: 0.88rem; white-space: nowrap; transition: color var(--fast) var(--ease-out), background-color var(--fast) var(--ease-out); }
  .sp-rail a small { display: none; }
  .sp-rail a.is-active { background: var(--violet); color: #fff; }
  .sp-chapter { scroll-margin-top: calc(var(--bar-h) + 76px); }
}
@media (max-width: 960px) {
  .sp-hero-copy, .sp-about-grid, .sp-gains-grid { grid-template-columns: 1fr; }
  .sp-hero-copy { text-align: center; justify-items: center; }
  .sp-crumbs ol { justify-content: center; }
  .sp-lead { margin-inline: auto; }
  .sp-badges, .sp-actions { justify-content: center; }
  .sp-about-copy, .sp-gains-head, .sp-tour-head { text-align: center; margin-inline: auto; }
  .sp-about-copy p, .sp-gains-head p { margin-inline: auto; }
  .sp-about-illus { margin-inline: auto; }
  .sp-roles { max-width: 640px; width: 100%; margin-inline: auto; }
  .sp-roles > .sp-h3, .sp-roles > .sp-muted { text-align: center; }
}
@media (max-width: 760px) {
  .sp-ch-body { grid-template-columns: 1fr; }
  .sp-dash { grid-template-columns: 1fr; }
  .sp-dash-today { grid-row: auto; }
  .sp-float { display: none; }
  .sp-table th[scope="row"], .sp-table thead th:first-child { position: sticky; left: 0; z-index: 1; }
  .sp-table tbody th[scope="row"] { background: var(--surface); box-shadow: 1px 0 0 var(--line); }
  .sp-table thead th:first-child { background: var(--th-bg); }
}
@media (max-width: 600px) {
  .sp-title-main { font-size: clamp(2.7rem, 13vw, 3.4rem); }
  .sp-gains-list { grid-template-columns: 1fr; gap: 24px; }
  .sp-gains-list li { text-align: center; }
  .sp-gains-list .f-ico { margin-inline: auto; }
  .sp-chain { gap: 10px; flex-direction: column; align-items: stretch; }
  .sp-chain li + li::before { left: 26px; top: -10px; width: 2px; height: 10px; }
  .sp-chain li + li::after { display: none; }
  .sp-today-row { grid-template-columns: 1fr 1.2fr 0.55fr 0.45fr; gap: 8px; font-size: 0.82rem; }
  .sp-dash-card { padding: 16px; }
  .sp-role { padding: 16px 12px; column-gap: 12px; }
  .sp-shot-bar { height: 28px; }
  .sp-shot-bar i { width: 8px; height: 8px; }
  .sp-more-link { font-size: 0.9rem; }
}

/* ---------- textos justificados: los párrafos ocupan todo su espacio y se ven en bloque ---------- */
.sp-tour-head, .sp-ch-title { max-width: none; }
.sp-lead, .sp-about-copy p, .sp-ch-head > p:not(.sp-screens), .sp-gains-head p { max-width: none; }
.sp-faq .t-acc-panel-inner p { max-width: none; }
/* en teléfono (≤600 px) la línea es tan corta que el justificado abre huecos entre palabras: ahí se conserva la alineación normal */
@media (min-width: 601px) {
  /* solo párrafos con renglón largo; en tarjetas angostas (roles, «Por qué importa», beneficios) el justificado abre huecos */
  .sp-lead, .sp-about-copy p, .sp-roles > .sp-muted, .sp-tour-head p, .sp-ch-head > p:not(.sp-screens),
  .sp-list li, .sp-plan-note, .sp-gains-head p, .sp-avail-head p, .sp-faq .t-acc-panel-inner p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    hyphenate-limit-chars: 7 3 3;
    text-wrap: wrap;
  }
  /* donde el bloque va centrado, la última línea también se centra */
  .sp-avail-head p { text-align-last: center; }
}
@media (min-width: 601px) and (max-width: 960px) {
  .sp-lead, .sp-about-copy p, .sp-roles > .sp-muted, .sp-tour-head p, .sp-gains-head p { text-align-last: center; }
}

/* ==========================================================
   PIEZAS DEL PORTAL COLABORADOR (también reutilizables en otras subpáginas)
   ========================================================== */

/* portada con teléfono: texto a la izquierda, teléfono a la derecha */
.sp-hero-split { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(20px, 3vw, 36px); }
.sp-hero-text .sp-lead { margin-top: 22px; }
.sp-phone-stage { margin-top: 0; display: grid; justify-items: center; padding: 28px 0 8px; perspective: 1600px; }
.sp-phone-plate { position: absolute; inset: 6% 0 12%; border-radius: var(--r-xl); background: radial-gradient(60% 55% at 50% 40%, rgb(255 255 255 / 0.9), transparent 70%), linear-gradient(150deg, var(--plate-violet), var(--plate-teal)); }
:root[data-theme="dark"] .sp-phone-plate { background: radial-gradient(60% 55% at 50% 40%, rgb(139 124 255 / 0.25), transparent 70%), linear-gradient(150deg, #1d2350, #12303a); }
.sp-phone-stage .sp-hero-tilt { position: relative; z-index: 1; }
.sp-phone { position: relative; width: min(300px, 74vw); margin: 0; padding: 10px; border-radius: 46px; background: #0e1530; box-shadow: 0 2px 4px rgb(20 33 66 / 0.08), 0 40px 70px -30px rgb(20 33 66 / 0.55), inset 0 0 0 1px rgb(255 255 255 / 0.08); }
.sp-phone img { display: block; width: 100%; height: auto; border-radius: 36px; }
.sp-press { position: absolute; left: calc(10px + (100% - 20px) * 0.5); top: calc(10px + (100% - 20px) * 0.935); width: 20%; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; box-shadow: 0 0 0 2px var(--teal), 0 0 24px 4px rgb(14 159 150 / 0.45); opacity: 0; pointer-events: none; }
/* el aviso baja dentro de la pantalla del teléfono, como una notificación */
.sp-toast { position: absolute; z-index: 3; left: 22px; right: 22px; top: 22px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: rgb(20 33 66 / 0.94); color: #fff; box-shadow: 0 12px 28px -10px rgb(0 0 0 / 0.5); backdrop-filter: blur(8px); }
.sp-toast strong { display: block; font-size: 0.82rem; line-height: 1.25; font-variant-numeric: tabular-nums; }
.sp-toast small { display: block; font-size: 0.72rem; line-height: 1.3; color: rgb(255 255 255 / 0.82); }
.sp-toast-ico { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff; transition: background-color 250ms var(--ease-out); }
.sp-toast-ico[data-tono="pausa"] { background: var(--orange-strong); }
.sp-toast-ico[data-tono="regreso"] { background: var(--violet); }
.sp-toast-ico[data-tono="salida"] { background: #2b3658; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.35); }
.sp-toast-ico .ico { stroke-width: 2.4; }
.sp-phone-stage .sp-float-a { left: 0; right: auto; top: auto; bottom: 22%; }
.sp-phone-stage .sp-float-b { right: 2%; left: auto; bottom: 6%; }
.sp-phone-stage .sp-note { position: relative; z-index: 1; }
.sp-note-left { text-align: left; }

/* demostración de los tres alcances */
.sp-scopes > .sp-muted { margin-top: 8px; }
.sp-scope-demo { margin-top: 20px; padding: 18px; }
.sp-scope-tabs { display: flex; width: 100%; box-shadow: none; background: var(--bg); }
.sp-scope-tabs .t-tab { flex: 1 1 0; justify-content: center; padding: 0 10px; }
.sp-scope-demo .sp-tabpanels { margin-top: 14px; }
.sp-scope-who { font-size: 0.8rem; font-weight: 700; color: var(--violet-fg); }
.sp-scope-rows { margin-top: 8px; }
.sp-scope-rows li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 12px 4px; box-shadow: 0 -1px 0 var(--line); font-variant-numeric: tabular-nums; }
.sp-scope-rows li:first-child { box-shadow: none; }
.sp-scope-rows b { font-size: 0.95rem; }
.sp-scope-rows span:not(.tag) { color: var(--muted); font-size: 0.9rem; }
.sp-scope-demo .sp-note { margin-top: 10px; }

/* jornada de ejemplo */
.sp-day, .sp-week { padding: clamp(18px, 2.4vw, 28px); }
.sp-day-head, .sp-week-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.sp-day-head > div > b, .sp-week-head > div > b { display: block; font-size: 1.02rem; }
.sp-day-head > div > span, .sp-week-head > div > span { font-size: 0.84rem; color: var(--muted); }
.sp-day-total strong b { font: inherit; }
.sp-day-total, .sp-week-total { text-align: right; font-variant-numeric: tabular-nums; }
.sp-day-total small, .sp-week-total small { display: block; font-size: 0.78rem; color: var(--muted); }
.sp-day-total strong, .sp-week-total strong { font-family: var(--display); font-size: 1.7rem; letter-spacing: -0.02em; line-height: 1.1; }
.sp-day-track { position: relative; height: 16px; margin-top: 26px; border-radius: 8px; background: var(--bg-2); }
.sp-seg { position: absolute; top: 0; bottom: 0; left: var(--a); width: calc(var(--b) - var(--a)); transform-origin: left; }
.sp-seg-work { background: var(--teal); border-radius: 8px; }
.sp-seg-pause { background: repeating-linear-gradient(135deg, var(--orange) 0 5px, rgb(255 122 47 / 0.45) 5px 10px); }
.sp-pin { position: absolute; top: -6px; bottom: -6px; left: var(--x); width: 3px; margin-left: -1.5px; border-radius: 3px; background: var(--ink); }
.sp-pin-pause { background: var(--orange-strong); }
.sp-day-scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: 0.74rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.sp-day-marks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.sp-day-marks li { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 4px; align-items: center; padding: 14px; border-radius: 14px; background: var(--bg); }
.sp-day-marks b { font-size: 0.92rem; }
.sp-day-marks em { grid-column: 2; font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.sp-day-marks .tag { grid-column: 2; justify-self: start; }
.sp-mk { grid-row: span 3; align-self: start; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; }
.sp-mk-in { background: var(--teal-50); color: var(--teal-ink); }
.sp-mk-pause { background: var(--amber-50); color: var(--orange-ink); }
.sp-mk-out { background: var(--violet-50); color: var(--violet-fg); }
.sp-day-proof { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sp-day-proof li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--bg); font-size: 0.82rem; font-weight: 650; color: var(--ink-2); }
.sp-day-proof .ico { color: var(--violet-fg); }

/* semana frente al máximo legal */
.sp-week-total strong b { font: inherit; }
.sp-week-bar { position: relative; display: flex; height: 44px; margin-top: 30px; border-radius: 12px; background: var(--bg-2); }
.sp-week-bar i { position: relative; width: var(--w); height: 100%; background: var(--teal); box-shadow: inset -2px 0 0 var(--surface); transform-origin: left; }
.sp-week-bar i:first-child { border-radius: 12px 0 0 12px; }
.sp-week-bar i:nth-child(even) { background: color-mix(in srgb, var(--teal) 78%, var(--surface)); }
.sp-week-bar i::after { content: attr(data-d); position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.78rem; font-weight: 700; color: #fff; font-style: normal; }
.sp-week-max { position: absolute; top: -10px; bottom: -10px; left: var(--x); width: 2px; margin-left: -1px; border-radius: 2px; background: var(--orange-strong); }
.sp-week-max small { position: absolute; bottom: 100%; left: 50%; translate: -50% -2px; padding: 1px 8px; border-radius: 999px; background: var(--orange-strong); color: #fff; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.sp-week-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.sp-week-days li { display: grid; justify-items: start; gap: 4px; padding: 12px; border-radius: 12px; background: var(--bg); font-variant-numeric: tabular-nums; }
.sp-week-days b { font-size: 0.86rem; }
.sp-week-days span:not(.tag) { font-weight: 700; }

@media (max-width: 960px) {
  .sp-hero-split { grid-template-columns: 1fr; }
  .sp-hero-text { text-align: center; }
  .sp-hero-text .sp-lead { margin-inline: auto; }
  .sp-phone-stage { max-width: 520px; width: 100%; margin-inline: auto; }
  .sp-scopes { max-width: 640px; width: 100%; margin-inline: auto; }
  .sp-scopes > .sp-h3, .sp-scopes > .sp-muted { text-align: center; text-align-last: center; }
}
@media (max-width: 760px) {
  .sp-day-marks, .sp-week-days { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .sp-phone { width: min(250px, 70vw); border-radius: 40px; }
  .sp-phone img { border-radius: 31px; }
  .sp-toast { left: 16px; right: 16px; top: 18px; padding: 8px 10px; border-radius: 14px; }
  .sp-toast strong { font-size: 0.74rem; }
  .sp-toast small { font-size: 0.66rem; }
  .sp-toast-ico { width: 26px; height: 26px; }
  .sp-day-marks { grid-template-columns: 1fr; }
  .sp-day-total, .sp-week-total { text-align: left; }
  .sp-scope-tabs .t-tab { font-size: 0.8rem; padding: 0 4px; }
  .sp-scope-tabs .t-tab .ico { display: none; }
}
@media (min-width: 601px) {
  .sp-scopes > .sp-muted { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
}

/* ==========================================================
   PIEZAS DEL MODO QUIOSCO
   ========================================================== */

/* tableta: marco con bisel, en la portada y en las pestañas */
.sp-tablet { position: relative; margin: 0; padding: clamp(10px, 1.4vw, 18px); border-radius: clamp(24px, 3vw, 38px); background: #0e1530; box-shadow: 0 2px 4px rgb(20 33 66 / 0.08), 0 40px 70px -34px rgb(20 33 66 / 0.55), inset 0 0 0 1px rgb(255 255 255 / 0.08); }
.sp-tablet img { display: block; width: 100%; height: auto; border-radius: clamp(12px, 1.6vw, 20px); }
.sp-tablet-stage .sp-hero-tilt { max-width: 1000px; margin-inline: auto; }
/* las etiquetas se apoyan en zonas sin contenido de la pantalla: el pie y el hueco bajo los tipos de desconexión */
.sp-tablet-stage .sp-float-a { left: 0; top: auto; bottom: 9%; }
.sp-tablet-stage .sp-float-b { right: 0; bottom: auto; top: 31%; }
.sp-tablet-sm { padding: 10px; border-radius: 26px; }
.sp-tablet-sm img { border-radius: 16px; }

/* tarjeta recortada de una pantalla del quiosco */
.sp-cardshot { margin: 0; justify-self: center; }
.sp-cardshot img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--e2); outline: 1px solid oklch(0 0 0 / 0.06); outline-offset: -1px; }
:root[data-theme="dark"] .sp-cardshot img { outline-color: oklch(1 0 0 / 0.1); }
.sp-cardshot figcaption { margin-top: 10px; text-align: center; font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.sp-cardshot-wide { max-width: 520px; width: 100%; }

/* cómo se pone en marcha */
.sp-steps { display: grid; gap: 14px; margin-top: 18px; }
.sp-steps li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.sp-steps strong { display: block; font-size: 1.02rem; }
.sp-steps p { margin-top: 2px; font-size: 0.93rem; color: var(--muted); }
.sp-step-n { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--violet); color: #fff; font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; }
.sp-steps-box .sp-cardshot { max-width: 360px; margin-top: 22px; }

/* métodos de identificación */
.sp-methods { padding: clamp(16px, 2vw, 22px); }
.sp-method-tabs { display: flex; width: 100%; box-shadow: none; background: var(--bg); }
.sp-method-tabs .t-tab { flex: 1 1 0; justify-content: center; padding: 0 10px; }
.sp-methods .sp-tabpanels { margin-top: 18px; }
.sp-method { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(18px, 3vw, 36px); align-items: center; }
.sp-method .sp-cardshot { max-width: 300px; }
.sp-method-copy h4 { margin: 0 0 12px; font-family: var(--display); font-size: 1.25rem; letter-spacing: -0.015em; }
.sp-method-art { display: grid; place-items: center; padding: 24px 0; }
.sp-scan { position: relative; display: grid; place-items: center; width: min(220px, 60vw); aspect-ratio: 1; border-radius: 32px; background: radial-gradient(circle at 50% 45%, var(--violet-50), transparent 70%), var(--bg); color: var(--violet-fg); overflow: hidden; }
.sp-scan .ico { width: 58%; height: 58%; stroke-width: 1.2; }
.sp-scan-line { position: absolute; left: 12%; right: 12%; top: 18%; height: 2px; border-radius: 2px; background: var(--teal); box-shadow: 0 0 14px 2px rgb(14 159 150 / 0.45); animation: sp-scan 2.2s ease-in-out infinite alternate; }
@keyframes sp-scan { to { top: 80%; } }
@media (prefers-reduced-motion: reduce) { .sp-scan-line { animation: none; top: 50%; } }
.sp-qr-steps { display: grid; gap: 12px; }
.sp-qr-steps li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: var(--bg); font-weight: 600; color: var(--ink-2); }

/* confirmar: dos pantallas seguidas */
.sp-pair { display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr); gap: clamp(12px, 2vw, 24px); align-items: center; }
.sp-pair .sp-cardshot { max-width: 100%; }
.sp-pair-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); box-shadow: var(--e1); color: var(--violet-fg); }

/* reconexión de ejemplo con cronómetros */
.sp-recon { padding: clamp(18px, 2.4vw, 26px); }
.sp-recon-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sp-recon-head b { font-size: 1.05rem; }
.sp-recon-n { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--surface); font-size: 0.78rem; font-weight: 700; }
.sp-recon-head small { margin-left: auto; font-size: 0.82rem; color: var(--muted); }
.sp-recon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.sp-recon-it { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 2px; padding: 14px; border-radius: 16px; background: var(--amber-50); box-shadow: inset 0 0 0 1.5px rgb(255 122 47 / 0.25); transition: background-color 400ms var(--ease-out), box-shadow 400ms var(--ease-out); }
.sp-recon-ic { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--orange); color: #fff; transition: background-color 400ms var(--ease-out); }
.sp-recon-it b { font-size: 0.95rem; line-height: 1.2; }
.sp-recon-it > span:not(.sp-recon-ic) { font-size: 0.78rem; color: var(--muted); }
.sp-recon-it time { grid-column: 1 / -1; margin-top: 8px; font-family: var(--display); font-size: 1.8rem; font-weight: 700; line-height: 1; letter-spacing: -0.01em; color: var(--orange-ink); font-variant-numeric: tabular-nums; }
.sp-recon-it small { grid-column: 1 / -1; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.sp-recon-it.is-over { background: rgb(220 38 38 / 0.08); box-shadow: inset 0 0 0 1.5px rgb(220 38 38 / 0.45); }
.sp-recon-it.is-over .sp-recon-ic { background: #dc2626; }
.sp-recon-it.is-over time, .sp-recon-it.is-over small { color: #c81e1e; }
:root[data-theme="dark"] .sp-recon-it.is-over time, :root[data-theme="dark"] .sp-recon-it.is-over small { color: #ff8a8a; }

/* avisos para la empresa */
.sp-alerts { padding: clamp(18px, 2.4vw, 26px); }
.sp-alerts-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sp-alerts-head b { font-size: 1.05rem; }
.sp-alerts-head span { font-size: 0.8rem; color: var(--muted); }
.sp-alerts ul { display: grid; gap: 10px; margin-top: 14px; }
.sp-alerts li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--bg); }
.sp-alerts li b { font-size: 0.94rem; }
.sp-alerts li p { margin-top: 2px; font-size: 0.86rem; color: var(--muted); }
.sp-alerts time { align-self: start; font-size: 0.78rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.sp-al-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--violet-50); color: var(--violet-fg); }
.sp-al-warn { background: var(--amber-50); color: var(--orange-ink); }

@media (max-width: 960px) {
  .sp-steps-box { max-width: 640px; width: 100%; margin-inline: auto; }
  .sp-steps-box > .sp-h3 { text-align: center; }
  .sp-steps-box .sp-cardshot { margin-inline: auto; }
}
@media (max-width: 760px) {
  .sp-method { grid-template-columns: 1fr; }
  .sp-method .sp-cardshot { max-width: 260px; }
  .sp-pair { grid-template-columns: 1fr; justify-items: center; }
  .sp-pair-arrow { rotate: 90deg; }
  .sp-recon-grid { grid-template-columns: 1fr; }
  .sp-recon-it { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ic n t" "ic s t" "ic l t"; align-items: center; column-gap: 12px; text-align: left; }
  .sp-recon-ic { grid-area: ic; align-self: start; }
  .sp-recon-it b { grid-area: n; }
  .sp-recon-it > span:not(.sp-recon-ic) { grid-area: s; }
  .sp-recon-it time { grid-area: t; margin-top: 0; font-size: 1.5rem; }
  .sp-recon-it small { grid-area: l; }
}
@media (max-width: 600px) {
  .sp-method-tabs .t-tab { font-size: 0.78rem; padding: 0 4px; }
  .sp-method-tabs .t-tab .ico { display: none; }
  .sp-recon-head small { margin-left: 0; flex-basis: 100%; }
  .sp-alerts li { grid-template-columns: auto 1fr; }
  .sp-alerts time { grid-column: 2; }
  .sp-tablet { padding: 7px; border-radius: 18px; }
  .sp-tablet img { border-radius: 11px; }
}

/* ==========================================================
   PIEZAS DE TICKETS DE ATENCIÓN
   ========================================================== */

/* portada: la bandeja del equipo con el portal del cliente en un teléfono encima */
.sp-duo { position: relative; padding-bottom: clamp(24px, 4vw, 56px); }
.sp-duo-main { width: 84%; }
.sp-duo-phone { position: absolute; right: 0; bottom: 0; z-index: 2; width: min(250px, 24%); padding: 8px; border-radius: 36px; }
.sp-duo-phone img { border-radius: 29px; }
.sp-duo .sp-float-a { left: -14px; right: auto; top: auto; bottom: 18%; }
.sp-duo .sp-note { text-align: left; width: 84%; }

/* los dos tipos de ticket */
.sp-kinds { display: grid; gap: 16px; }
.sp-kind { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 6px; padding: 22px; }
.sp-kind-ico { grid-row: span 3; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--violet-50); color: var(--violet-fg); }
.sp-kind-teal { background: var(--teal-50); color: var(--teal-ink); }
.sp-kind h3 { font-size: 1.2rem; letter-spacing: -0.015em; }
.sp-kind p { color: var(--muted); font-size: 0.95rem; }
.sp-kind-who { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sp-kind-who li { padding: 3px 10px; border-radius: 999px; background: var(--bg); font-size: 0.8rem; font-weight: 650; color: var(--ink-2); }

/* tiempos de atención de ejemplo */
.sp-sla { padding: clamp(18px, 2.4vw, 28px); }
.sp-sla-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.sp-sla-head b { display: block; font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.sp-sla-head span:not(.tag) { font-size: 0.86rem; color: var(--muted); }
.sp-sla-row { display: grid; grid-template-columns: 150px 1fr 130px; align-items: center; gap: 14px; padding: 14px 0; box-shadow: 0 -1px 0 var(--line); font-variant-numeric: tabular-nums; }
.sp-sla-lbl { font-weight: 650; color: var(--ink-2); font-size: 0.92rem; }
.sp-sla-row em { font-style: normal; text-align: right; color: var(--muted); font-size: 0.88rem; }
.sp-sla-row em b { font-family: var(--display); font-size: 1.3rem; color: var(--ink); }
.sp-sla-bar { position: relative; height: 12px; border-radius: 12px; background: var(--bg-2); overflow: hidden; }
.sp-sla-bar i { position: absolute; inset: 0; border-radius: inherit; background: var(--teal); transform-origin: left; transform: scaleX(var(--p)); }
.sp-sla-pausa { position: absolute; top: 0; bottom: 0; left: var(--x); width: var(--w); background: repeating-linear-gradient(135deg, var(--orange) 0 4px, rgb(255 122 47 / 0.4) 4px 8px); }
.sp-sla-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 14px; box-shadow: 0 -1px 0 var(--line); font-size: 0.84rem; color: var(--muted); }
.sp-sla-legend li { display: inline-flex; align-items: center; gap: 8px; }
.sp-sw { width: 14px; height: 10px; border-radius: 4px; }
.sp-sw-ok { background: var(--teal); }
.sp-sw-pausa { background: repeating-linear-gradient(135deg, var(--orange) 0 4px, rgb(255 122 47 / 0.4) 4px 8px); }

/* disponibilidad sin tabla */
.sp-avail-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; max-width: 860px; margin: 0 auto; padding: 22px 24px; }
.sp-avail-cta p { flex: 1 1 320px; color: var(--ink-2); }

@media (max-width: 960px) {
  .sp-kinds { max-width: 640px; width: 100%; margin-inline: auto; }
}
@media (max-width: 760px) {
  .sp-duo-main, .sp-duo .sp-note { width: 100%; }
  .sp-duo-phone { position: relative; width: min(220px, 60vw); margin: -60px 10px 0 auto; }
  .sp-sla-row { grid-template-columns: 1fr auto; }
  .sp-sla-bar { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 600px) {
  .sp-kind { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .sp-kind-ico { grid-row: auto; }
  .sp-kind-who { justify-content: center; }
  .sp-avail-cta { justify-content: center; text-align: center; }
}

/* ==========================================================
   PIEZAS DEL ROBOT MONITOR
   ========================================================== */

/* ventana de Windows: barra de título con el nombre de la aplicación y sus tres botones */
.sp-win { margin: 0; border-radius: 12px; background: var(--surface); box-shadow: var(--e3); overflow: hidden; }
.sp-win-bar { display: flex; align-items: center; gap: 8px; height: 34px; padding-left: 12px; background: #f3f4f1; font-size: 0.76rem; font-weight: 600; color: #3d4757; }
.sp-win-logo { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 5px; background: linear-gradient(135deg, #14b8a6, #0b766f); color: #fff; font: 700 0.66rem/1 var(--display); }
.sp-win-bar i { position: relative; display: block; width: 44px; height: 100%; }
.sp-win-bar i:first-of-type { margin-left: auto; }
.sp-win-bar i::before { content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.sp-win-min::before { width: 10px; height: 1.5px; background: #3d4757; }
.sp-win-max::before { width: 9px; height: 9px; border: 1.5px solid #3d4757; border-radius: 2px; }
.sp-win-x::before, .sp-win-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: #3d4757; }
.sp-win-x::before { translate: -50% -50%; rotate: 45deg; }
.sp-win-x::after { translate: -50% -50%; rotate: -45deg; }
.sp-win img { display: block; width: 100%; height: auto; }
:root[data-theme="dark"] .sp-win-bar { background: #222c57; color: var(--muted); }
:root[data-theme="dark"] .sp-win-min::before, :root[data-theme="dark"] .sp-win-x::before, :root[data-theme="dark"] .sp-win-x::after { background: var(--muted); }
:root[data-theme="dark"] .sp-win-max::before { border-color: var(--muted); }

/* portada: escritorio con la ventana del Robot y la barra de tareas con su ícono en la bandeja */
.sp-desk { position: relative; max-width: 1040px; margin-inline: auto; padding: clamp(18px, 3vw, 40px) clamp(18px, 4vw, 56px) 0; border-radius: var(--r-xl); background: radial-gradient(60% 55% at 50% 30%, rgb(255 255 255 / 0.85), transparent 70%), linear-gradient(150deg, var(--plate-teal), var(--plate-violet)); }
:root[data-theme="dark"] .sp-desk { background: radial-gradient(60% 55% at 50% 30%, rgb(139 124 255 / 0.2), transparent 70%), linear-gradient(150deg, #12303a, #1d2350); }
.sp-desk .sp-hero-tilt { position: relative; }
.sp-taskbar { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 14px; height: 46px; margin: 46px calc(-1 * clamp(18px, 4vw, 56px)) 0; padding: 0 18px; border-radius: 0 0 var(--r-xl) var(--r-xl); background: rgb(243 244 241 / 0.86); backdrop-filter: blur(10px); box-shadow: 0 -1px 0 rgb(20 33 66 / 0.08); font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .sp-taskbar { background: rgb(20 26 52 / 0.86); box-shadow: 0 -1px 0 rgb(255 255 255 / 0.08); }
.sp-tray-ico { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, #14b8a6, #0b766f); color: #fff; font: 700 0.78rem/1 var(--display); box-shadow: 0 0 0 4px rgb(14 159 150 / 0.14); }
.sp-taskbar-time { display: grid; justify-items: end; font-size: 0.72rem; line-height: 1.25; color: var(--ink-2); }
.sp-taskbar-time b { font-weight: 600; }
.sp-tray-tip { position: absolute; right: 72px; bottom: calc(100% + 6px); padding: 6px 10px; border-radius: 8px; background: var(--surface); box-shadow: var(--e2); font-size: 0.76rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
/* las etiquetas se apoyan en zonas sin contenido: la barra de tareas y el hueco junto a «Falla técnica» */
.sp-desk .sp-float-a { left: -18px; top: auto; bottom: 10px; }
.sp-desk .sp-float-b { right: -18px; top: 57.5%; bottom: auto; }

/* qué es: cómo vive en el equipo */
.sp-lives .sp-steps { margin-top: 20px; padding: 6px; border-radius: var(--r-lg); background: var(--bg); }
.sp-lives .sp-steps li { padding: 14px; border-radius: 16px; }
.sp-lives .sp-steps li:first-child { background: var(--surface); box-shadow: var(--e1); }

/* actividad observada de ejemplo */
.sp-obs { padding: clamp(18px, 2.4vw, 28px); }
.sp-obs-track { overflow: hidden; }
.sp-obs-track .sp-seg { border-radius: 0; }
.sp-obs-on { background: var(--teal); }
.sp-obs-off { background: color-mix(in srgb, var(--muted) 30%, var(--bg-2)); }
.sp-obs-lock { background: #2b3658; }
:root[data-theme="dark"] .sp-obs-lock { background: #8a94b8; }
.sp-obs-legend { margin-top: 18px; }

/* reglas y equipos de ejemplo */
.sp-fleet { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.sp-fleet-rules, .sp-fleet-list { padding: clamp(18px, 2.4vw, 24px); }
.sp-fleet-rules dl { display: grid; margin-top: 10px; }
.sp-fleet-rules dl > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; box-shadow: 0 -1px 0 var(--line); font-size: 0.9rem; }
.sp-fleet-rules dt { color: var(--ink-2); font-weight: 600; }
.sp-fleet-rules dd { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-fleet-rules dd b { color: var(--ink); font-size: 1rem; }
.sp-herit { font-size: 0.8rem; font-style: italic; }
.sp-fleet-list ul { display: grid; gap: 10px; margin-top: 14px; }
.sp-fleet-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--bg); }
.sp-fleet-list li b { font-size: 0.92rem; letter-spacing: 0.01em; }
.sp-fleet-list li p { margin-top: 2px; font-size: 0.84rem; color: var(--muted); }
.sp-st { padding: 3px 10px; border-radius: 999px; background: var(--bg-2); color: var(--muted); font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.sp-st-on { display: inline-flex; align-items: center; gap: 6px; background: var(--teal-50); color: var(--teal-ink); }
.sp-st-on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgb(14 159 150 / 0.2); }
.sp-st-wait { background: var(--amber-50); color: var(--orange-ink); }

@media (max-width: 960px) {
  .sp-lives { max-width: 640px; width: 100%; margin-inline: auto; }
  .sp-lives > .sp-h3 { text-align: center; }
}
@media (max-width: 760px) {
  .sp-fleet { grid-template-columns: 1fr; }
  .sp-tray-tip { display: none; }
}
@media (max-width: 600px) {
  .sp-win { border-radius: 8px; }
  .sp-win-bar { height: 26px; font-size: 0.68rem; }
  .sp-win-bar i { width: 30px; }
  .sp-taskbar { height: 38px; margin-top: 14px; }
  .sp-fleet-list li { grid-template-columns: auto 1fr; }
  .sp-fleet-list .sp-st { grid-column: 2; justify-self: start; }
}

/* ==========================================================
   PIEZAS DE NOTIFICACIONES PUSH
   ========================================================== */

/* pantalla de bloqueo del teléfono con notificaciones que llegan */
.sp-lock { position: relative; aspect-ratio: 390 / 844; border-radius: 36px; overflow: hidden; padding: 18% 7% 0; background: radial-gradient(70% 45% at 20% 15%, rgb(139 124 255 / 0.55), transparent 70%), radial-gradient(60% 50% at 90% 70%, rgb(20 184 166 / 0.45), transparent 70%), linear-gradient(170deg, #1d2350, #0e1530 70%); color: #fff; }
.sp-lock-time { display: grid; justify-items: center; text-align: center; }
.sp-lock-time small { font-size: 0.78rem; font-weight: 600; opacity: 0.85; }
.sp-lock-time b { font-family: var(--display); font-size: clamp(3.4rem, 9vw, 4.2rem); font-weight: 600; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sp-lock-list { display: grid; gap: 8px; margin-top: 18%; }
.sp-lock-list > li:nth-child(n + 4) { display: none; }
.sp-noti { display: grid; gap: 2px; padding: 10px 12px 11px; border-radius: 18px; background: rgb(255 255 255 / 0.86); color: #10162f; backdrop-filter: blur(14px); box-shadow: 0 8px 20px -12px rgb(0 0 0 / 0.5); text-align: left; }
.sp-noti b { font-size: 0.8rem; line-height: 1.25; }
.sp-noti > span:not(.sp-noti-app) { font-size: 0.74rem; line-height: 1.32; color: #3c4560; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-noti-app { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.02em; color: #5a6380; text-transform: uppercase; }
.sp-noti-app i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 5px; background: linear-gradient(135deg, #7b6cff, #4a35c9); color: #fff; font: 700 0.62rem/1 var(--display); font-style: normal; text-transform: none; }
.sp-noti-app time { margin-left: auto; font-weight: 600; text-transform: none; letter-spacing: 0; }
/* la misma notificación como tarjeta fuera del teléfono */
.sp-noti-card { padding: 14px 16px; border-radius: 18px; background: var(--surface); color: var(--ink); backdrop-filter: none; box-shadow: var(--e2); }
.sp-noti-card b { font-size: 0.95rem; }
.sp-noti-card > span:not(.sp-noti-app) { font-size: 0.88rem; color: var(--muted); -webkit-line-clamp: 3; }
.sp-noti-card .sp-noti-app { color: var(--muted); font-size: 0.7rem; }
.sp-noti-card .sp-noti-app i { width: 18px; height: 18px; font-size: 0.68rem; }

/* las etiquetas de la portada van en la mitad baja de la pantalla, libre de notificaciones */
.sp-phone-stage:has(.sp-lock) .sp-float-a { bottom: 17%; }
.sp-phone-stage:has(.sp-lock) .sp-float-b { bottom: 7%; }
.sp-phone-stage:has(.sp-lock) .sp-note { margin-top: 40px; }

/* qué es: los cuatro canales */
.sp-channels { grid-template-columns: 1fr 1fr; }
.sp-channel-on { box-shadow: 0 0 0 2px var(--teal), var(--e2); }

/* activar: invitación del portal → permiso del navegador → confirmación */
.sp-activate { display: grid; grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 0.9fr) auto minmax(0, 1fr); gap: clamp(10px, 1.6vw, 18px); align-items: center; }
.sp-invite { display: grid; justify-items: center; gap: 8px; padding: 22px 18px; border-radius: 22px; text-align: center; }
.sp-invite-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--violet-50); color: var(--violet-fg); }
.sp-invite b { font-family: var(--display); font-size: 1.05rem; letter-spacing: -0.01em; }
.sp-invite p { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.sp-invite-btn { width: 100%; padding: 9px 12px; border-radius: 12px; background: var(--violet); color: #fff; font-size: 0.8rem; font-weight: 700; }
.sp-invite-sec { background: var(--bg); color: var(--ink-2); }
.sp-perm { display: grid; gap: 10px; padding: 16px; border-radius: 16px; }
.sp-perm-site { display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 600; color: var(--muted); }
.sp-perm-site .ico { width: 0.95em; height: 0.95em; }
.sp-perm b { font-size: 0.92rem; }
.sp-perm-acc { display: flex; justify-content: flex-end; gap: 8px; }
.sp-perm-acc i { padding: 6px 12px; border-radius: 999px; background: var(--bg); font-size: 0.76rem; font-weight: 700; font-style: normal; color: var(--ink-2); }
.sp-perm-acc .is-on { background: #1f6feb; color: #fff; }

/* destinatarios: la ventana real junto al orden en que se decide */
.sp-dest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.sp-dest .sp-cardshot { max-width: 520px; width: 100%; }
.sp-chain-col { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 0; }
.sp-chain-col li + li::before { left: 26px; top: -14px; width: 2px; height: 14px; }
.sp-chain-col li + li::after { display: none; }

/* ejemplos de avisos agrupados por quién los recibe */
.sp-notigrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.sp-notigrid section { display: grid; gap: 10px; }
.sp-notigrid h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 0.92rem; color: var(--ink-2); }
.sp-notigrid h4 .ico { color: var(--violet-fg); }

@media (max-width: 960px) {
  .sp-channels { max-width: 640px; width: 100%; margin-inline: auto; }
  .sp-notigrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .sp-activate { grid-template-columns: 1fr; justify-items: center; }
  .sp-activate > .card { width: min(360px, 100%); }
  .sp-activate .sp-pair-arrow { rotate: 90deg; }
  .sp-dest { grid-template-columns: 1fr; justify-items: center; }
  .sp-dest .sp-chain-col { width: min(420px, 100%); }
  .sp-notigrid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sp-channels { grid-template-columns: 1fr; }
  .sp-lock { border-radius: 31px; }
  .sp-noti { padding: 8px 10px 9px; border-radius: 15px; }
  .sp-noti b { font-size: 0.72rem; }
  .sp-noti > span:not(.sp-noti-app) { font-size: 0.66rem; }
}

/* ==========================================================
   PIEZAS DEL REPORTEADOR EN EXCEL
   ========================================================== */

/* ventana de Excel: barra con el nombre del libro, cinta (solo en la portada), la hoja y sus pestañas */
.sp-xl { margin: 0; border-radius: 12px; background: var(--surface); box-shadow: var(--e3); overflow: hidden; }
.sp-xl-bar { display: flex; align-items: center; gap: 8px; height: 34px; padding-left: 12px; background: #107c41; color: #fff; font-size: 0.76rem; font-weight: 600; }
.sp-xl-logo { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; background: #fff; color: #107c41; font: 800 0.66rem/1 var(--body); }
.sp-xl-bar i { position: relative; display: block; width: 44px; height: 100%; }
.sp-xl-bar i:first-of-type { margin-left: auto; }
.sp-xl-bar i::before, .sp-xl-bar .sp-win-x::after { content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.sp-xl-bar .sp-win-min::before { width: 10px; height: 1.5px; background: #fff; }
.sp-xl-bar .sp-win-max::before { width: 9px; height: 9px; border: 1.5px solid #fff; border-radius: 2px; }
.sp-xl-bar .sp-win-x::before, .sp-xl-bar .sp-win-x::after { width: 12px; height: 1.5px; background: #fff; }
.sp-xl-bar .sp-win-x::before { rotate: 45deg; }
.sp-xl-bar .sp-win-x::after { rotate: -45deg; }
.sp-xl-ribbon { background: #f5f6f4; box-shadow: inset 0 -1px 0 #e1e3de; }
.sp-xl-ribtabs { display: flex; gap: 2px; padding: 4px 10px 0; font-size: 0.74rem; color: #3b4351; }
.sp-xl-ribtabs span { padding: 6px 12px; border-radius: 6px 6px 0 0; }
.sp-xl-ribtabs .is-on { background: #fff; color: #107c41; font-weight: 700; box-shadow: inset 0 -2px 0 #107c41; }
.sp-xl-ribbody { display: flex; align-items: stretch; gap: 0; padding: 6px 10px; background: #fff; overflow: hidden; }
.sp-xl-grp { position: relative; display: flex; align-items: flex-start; gap: 2px; padding: 0 10px 18px; box-shadow: 1px 0 0 #e7e9e4; }
.sp-xl-grp small { position: absolute; left: 0; right: 0; bottom: 2px; text-align: center; font-size: 0.66rem; color: #6a7280; white-space: nowrap; }
.sp-xl-btn { display: grid; justify-items: center; align-content: start; gap: 3px; width: 70px; padding: 4px 2px; border-radius: 6px; font-size: 0.68rem; line-height: 1.15; color: #2b3240; text-align: center; }
.sp-xl-btn img { width: 32px; height: 32px; }
.sp-xl-btn.is-on { background: #e6f2ea; box-shadow: inset 0 0 0 1px #b9dcc6; }
.sp-xl-caret { display: inline-block; width: 0; height: 0; margin-left: 2px; border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 4px solid currentColor; vertical-align: 2px; }
.sp-xl-sheet { background: #fff; }
.sp-xl-sheet img { display: block; width: 100%; height: auto; }
.sp-xl-tabs { display: flex; gap: 2px; padding: 0 10px; background: #f5f6f4; box-shadow: inset 0 1px 0 #e1e3de; font-size: 0.72rem; color: #4a5260; overflow: hidden; white-space: nowrap; }
.sp-xl-tabs span { padding: 6px 12px; }
.sp-xl-tabs .is-on { background: #fff; color: #107c41; font-weight: 700; box-shadow: inset 0 -2px 0 #107c41; }
:root[data-theme="dark"] .sp-xl-ribbon, :root[data-theme="dark"] .sp-xl-tabs { background: #222c57; box-shadow: none; color: var(--muted); }
:root[data-theme="dark"] .sp-xl-ribtabs { color: var(--muted); }
:root[data-theme="dark"] .sp-xl-ribbody { background: #1a2246; }
:root[data-theme="dark"] .sp-xl-btn { color: var(--ink-2); }
:root[data-theme="dark"] .sp-xl-btn.is-on { background: rgb(16 124 65 / 0.25); box-shadow: inset 0 0 0 1px rgb(16 124 65 / 0.6); }
:root[data-theme="dark"] .sp-xl-ribtabs .is-on, :root[data-theme="dark"] .sp-xl-tabs .is-on { background: #1a2246; color: #6fd39b; box-shadow: inset 0 -2px 0 #6fd39b; }
.sp-hero-stage > .sp-hero-tilt > .sp-xl { max-width: 1120px; margin-inline: auto; }

/* catálogo de reportes, como el menú desplegable de la cinta */
.sp-xl-tabico { width: 20px; height: 20px; }
.t-tab small { margin-left: 2px; padding: 0 7px; border-radius: 999px; background: var(--bg); font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.t-tab[aria-selected="true"] small { background: rgb(255 255 255 / 0.22); color: inherit; }
.sp-reports { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sp-reports li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 2px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--e1); }
.sp-reports img { grid-row: span 2; width: 44px; height: 44px; }
.sp-reports b { font-size: 0.98rem; line-height: 1.25; }
.sp-reports span { font-size: 0.86rem; line-height: 1.35; color: var(--muted); }
:root[data-theme="dark"] .sp-reports img { padding: 4px; border-radius: 10px; background: #f3f5f2; }

/* panel del reporte junto a «Acerca del reporte» */
.sp-pair-panel { grid-template-columns: minmax(0, 0.62fr) auto minmax(0, 1fr); }
.sp-cardshot-panel { max-width: 300px; }
.sp-cardshot-xwide { max-width: 640px; width: 100%; margin-inline: auto; }
/* las etiquetas de la portada se apoyan en el hueco a la derecha de las tarjetas de indicadores */
.sp-hero-stage:has(.sp-xl) .sp-float-a { left: auto; right: 3%; top: 35%; }
.sp-hero-stage:has(.sp-xl) .sp-float-b { right: 3%; bottom: auto; top: 48%; }

@media (max-width: 760px) {
  .sp-reports { grid-template-columns: 1fr; }
  .sp-pair-panel { grid-template-columns: 1fr; }
  .sp-cardshot-panel { max-width: 240px; }
}
@media (max-width: 600px) {
  .sp-xl-ribbon { display: none; }
  .sp-xl-bar { height: 26px; font-size: 0.68rem; }
  .sp-xl-bar i { width: 30px; }
  .sp-xl-tabs { font-size: 0.64rem; }
  .sp-xl-tabs span { padding: 4px 8px; }
  .sp-reports li { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .sp-rail-mark, .sp-rail a, .sp-more-link, .sp-more-arrow, .sp-crumbs a { transition: none !important; }
  .sp-tabpanel.is-entering { animation: none; }
  .sp-recon-it, .sp-recon-ic { transition: none; }
}

/* ==========================================================
   ESTRUCTURA Y RITMO DE LAS SUBPÁGINAS
   ========================================================== */

/* recorrido: cada sección es un bloque con su línea de separación; menos hueco suelto entre una y otra */
.sp-chapters { gap: clamp(48px, 6vw, 80px); }
.sp-chapter + .sp-chapter { padding-top: clamp(40px, 5vw, 64px); box-shadow: 0 -1px 0 var(--line); }
.sp-ch-head > p:not(.sp-screens) { margin-top: 12px; }
.sp-visual { margin-top: 24px; }
.sp-ch-body { margin-top: 24px; }

/* encabezados de cada banda: el mismo espacio hacia su contenido en todas las subpáginas */
.sp-tour-head { margin-bottom: var(--head-gap, clamp(36px, 5vw, 56px)); }
.sp-avail-head { margin-bottom: var(--head-gap, clamp(28px, 4vw, 40px)); }

/* portada de la subpágina: la captura principal arranca a la misma distancia del texto en todas */
.sp-hero-stage:not(.sp-phone-stage) { margin-top: clamp(36px, 5vw, 64px); }

@media (max-width: 760px) {
  .sp-chapters { gap: 44px; }
  .sp-chapter + .sp-chapter { padding-top: 40px; }
}

/* ==========================================================
   ACOMODO: columnas equilibradas y tablas completas
   ========================================================== */

/* en escritorio, la columna corta (título y texto) acompaña al bajar mientras la larga termina: sin huecos debajo */
@media (min-width: 961px) {
  .sp-gains-head { position: sticky; top: calc(var(--bar-h) + 32px); }
}
/* «Quién lo usa»: la que resulte más corta de las dos columnas se queda fija (la larga no se mueve porque llena la sección);
   solo con pantalla alta, para que una columna fija nunca esconda su final */
@media (min-width: 961px) and (min-height: 820px) {
  .sp-about-copy, .sp-roles { position: sticky; top: calc(var(--bar-h) + 32px); }
}

/* textos de tarjetas angostas: alineados a la izquierda, sin viudas */
.sp-role p, .sp-why, .sp-gains-list p { text-wrap: pretty; }

/* tabla de planes en teléfono: las cinco columnas a la vista, sin desplazamiento lateral escondido */
@media (max-width: 600px) {
  .sp-table { min-width: 0; table-layout: fixed; }
  .sp-table th, .sp-table td { padding: 12px 4px; font-size: 0.82rem; }
  .sp-table thead th { padding: 14px 2px; font-size: 0.7rem; letter-spacing: -0.02em; white-space: nowrap; }
  .sp-table thead th:first-child, .sp-table tbody th { width: 30%; padding-left: 12px; }
  .sp-table tbody th { font-size: 0.8rem; line-height: 1.3; }
  .sp-table th[scope="row"], .sp-table thead th:first-child { position: static; }
}

/* títulos de portada de las subpáginas: centrados en su columna, sin hueco a la derecha */
.sp-title { justify-items: center; text-align: center; }
