/* ===========================================================================
   Sidemex — sistema visual para /funciones/
   Acento #1d65f8 · Inter · blanco minimalista · data-theme oscuro
   Creado 2026-09-11 · 1.28

   SIN FRAMEWORK, A PROPÓSITO
   Estas páginas existen para posicionar. Cargar un framework CSS completo por
   CDN para usar el 4% de sus clases cuesta render-blocking y LCP, que es
   exactamente lo que penaliza el objetivo. Todo aquí es propio y va con
   prefijo smx-fn-, así que no puede colisionar con el navbar ni con el footer
   del sitio, que traen sus propias clases smx-legal-auje__*.
   =========================================================================== */

/* --- tokens --------------------------------------------------------------- */
:root {
  --fn-accent: #1d65f8;
  --fn-accent-ink: #ffffff;
  --fn-accent-soft: rgba(29, 101, 248, .09);
  --fn-accent-line: rgba(29, 101, 248, .22);

  --fn-bg: #ffffff;
  --fn-bg-alt: #f7f9fc;
  --fn-surface: #ffffff;
  --fn-border: #e3e8f0;
  --fn-border-strong: #cdd6e4;

  --fn-text: #0b1524;
  --fn-muted: #5a6b83;
  --fn-faint: #8794a8;

  --fn-ok: #15803d;
  --fn-ok-soft: rgba(21, 128, 61, .10);
  --fn-warn: #b45309;
  --fn-warn-soft: rgba(180, 83, 9, .10);
  --fn-bad: #b91c1c;
  --fn-bad-soft: rgba(185, 28, 28, .09);

  --fn-radius: 16px;
  --fn-radius-sm: 10px;
  --fn-shadow: 0 1px 2px rgba(11, 21, 36, .04), 0 8px 28px rgba(11, 21, 36, .06);
  --fn-shadow-lift: 0 2px 6px rgba(11, 21, 36, .06), 0 18px 48px rgba(11, 21, 36, .10);

  --fn-max: 1120px;
  --fn-gutter: clamp(20px, 5vw, 40px);
  --fn-section: clamp(72px, 11vw, 136px);

  --fn-ease: cubic-bezier(.22, .68, .26, 1);
}

[data-theme="dark"] {
  --fn-accent: #5b8dff;
  --fn-accent-ink: #06101f;
  --fn-accent-soft: rgba(91, 141, 255, .13);
  --fn-accent-line: rgba(91, 141, 255, .26);

  --fn-bg: #070c15;
  --fn-bg-alt: #0c1423;
  --fn-surface: #0f1828;
  --fn-border: #1e2b40;
  --fn-border-strong: #2c3d57;

  --fn-text: #eef3fb;
  --fn-muted: #9cabc2;
  --fn-faint: #6f8098;

  --fn-ok: #4ade80;
  --fn-ok-soft: rgba(74, 222, 128, .12);
  --fn-warn: #fbbf24;
  --fn-warn-soft: rgba(251, 191, 36, .12);
  --fn-bad: #f87171;
  --fn-bad-soft: rgba(248, 113, 113, .12);

  --fn-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 34px rgba(0, 0, 0, .34);
  --fn-shadow-lift: 0 2px 8px rgba(0, 0, 0, .45), 0 22px 60px rgba(0, 0, 0, .42);
}

/* --- base ----------------------------------------------------------------- */
.smx-fn-body {
  margin: 0;
  background: var(--fn-bg);
  color: var(--fn-text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.smx-fn-body *, .smx-fn-body *::before, .smx-fn-body *::after { box-sizing: border-box; }

.smx-fn-skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--fn-accent); color: var(--fn-accent-ink);
  padding: 12px 20px; border-radius: 0 0 var(--fn-radius-sm) 0; font-weight: 600;
}
.smx-fn-skip:focus { left: 0; }

.smx-fn :where(h1, h2, h3, h4, p, ul, ol, figure, dl) { margin: 0; }
.smx-fn ul, .smx-fn ol { padding: 0; list-style: none; }
.smx-fn a { color: inherit; }

.smx-fn :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--fn-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --- layout --------------------------------------------------------------- */
.smx-fn-wrap { width: 100%; max-width: var(--fn-max); margin-inline: auto; padding-inline: var(--fn-gutter); }
.smx-fn-section { padding-block: var(--fn-section); }
.smx-fn-section--alt { background: var(--fn-bg-alt); }
.smx-fn-section--tight { padding-block: clamp(48px, 7vw, 84px); }

/* --- tipografía ----------------------------------------------------------- */
.smx-fn-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fn-accent);
  padding: 6px 13px; border-radius: 999px;
  background: var(--fn-accent-soft); border: 1px solid var(--fn-accent-line);
}
.smx-fn-h1 {
  font-size: clamp(34px, 6.2vw, 62px);
  line-height: 1.04; letter-spacing: -.035em; font-weight: 800;
  text-wrap: balance;
}
.smx-fn-h2 {
  font-size: clamp(27px, 4.2vw, 42px);
  line-height: 1.12; letter-spacing: -.028em; font-weight: 750;
  text-wrap: balance;
}
.smx-fn-h3 { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.3; letter-spacing: -.015em; font-weight: 650; }
.smx-fn-lede { font-size: clamp(17px, 2.1vw, 20px); line-height: 1.62; color: var(--fn-muted); max-width: 62ch; text-wrap: pretty; }
.smx-fn-body-text { font-size: 15.5px; line-height: 1.68; color: var(--fn-muted); max-width: 68ch; text-wrap: pretty; }
.smx-fn-small { font-size: 13px; line-height: 1.55; color: var(--fn-faint); }

/* La definición de apertura. Va primero en cada página porque es la frase que
   un motor generativo cita: se sostiene sola, sin contexto previo. */
.smx-fn-definition {
  font-size: clamp(17px, 2.2vw, 19.5px);
  line-height: 1.62;
  color: var(--fn-text);
  max-width: 68ch;
  padding-left: 18px;
  border-left: 3px solid var(--fn-accent);
}
.smx-fn-definition strong { font-weight: 700; }

/* --- botones -------------------------------------------------------------- */
.smx-fn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 11px;
  font-size: 15px; font-weight: 650; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s var(--fn-ease), box-shadow .18s var(--fn-ease), background .18s var(--fn-ease);
  min-height: 48px; /* objetivo táctil cómodo en móvil */
}
.smx-fn-btn--primary { background: var(--fn-accent); color: var(--fn-accent-ink); box-shadow: 0 6px 18px rgba(29, 101, 248, .26); }
.smx-fn-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(29, 101, 248, .34); }
.smx-fn-btn--ghost { background: transparent; color: var(--fn-text); border-color: var(--fn-border-strong); }
.smx-fn-btn--ghost:hover { border-color: var(--fn-accent); color: var(--fn-accent); transform: translateY(-2px); }
.smx-fn-btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- superficies ---------------------------------------------------------- */
.smx-fn-card {
  background: var(--fn-surface);
  border: 1px solid var(--fn-border);
  border-radius: var(--fn-radius);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--fn-shadow);
  transition: transform .28s var(--fn-ease), box-shadow .28s var(--fn-ease), border-color .28s var(--fn-ease);
}
.smx-fn-card--link:hover { transform: translateY(-4px); box-shadow: var(--fn-shadow-lift); border-color: var(--fn-accent-line); }

.smx-fn-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 650; line-height: 1.5;
  background: var(--fn-bg-alt); color: var(--fn-muted); border: 1px solid var(--fn-border);
}
.smx-fn-pill--ok   { background: var(--fn-ok-soft);   color: var(--fn-ok);   border-color: transparent; }
.smx-fn-pill--warn { background: var(--fn-warn-soft); color: var(--fn-warn); border-color: transparent; }
.smx-fn-pill--bad  { background: var(--fn-bad-soft);  color: var(--fn-bad);  border-color: transparent; }
.smx-fn-pill--accent { background: var(--fn-accent-soft); color: var(--fn-accent); border-color: transparent; }

/* --- rejillas ------------------------------------------------------------- */
.smx-fn-grid { display: grid; gap: clamp(16px, 2.4vw, 24px); }
.smx-fn-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.smx-fn-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.smx-fn-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.smx-fn-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.smx-fn-split--reverse > :first-child { order: 2; }

@media (max-width: 900px) {
  .smx-fn-grid--3, .smx-fn-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .smx-fn-split { grid-template-columns: 1fr; gap: 32px; }
  .smx-fn-split--reverse > :first-child { order: 0; }
}
@media (max-width: 560px) {
  .smx-fn-grid--2, .smx-fn-grid--3, .smx-fn-grid--4 { grid-template-columns: 1fr; }
}

/* --- ilustraciones -------------------------------------------------------- */
.smx-fn-art { display: block; width: 100%; height: auto; border-radius: var(--fn-radius); overflow: hidden; }
.smx-fn-art-frame {
  background: var(--fn-surface);
  border: 1px solid var(--fn-border);
  border-radius: var(--fn-radius);
  box-shadow: var(--fn-shadow-lift);
  overflow: hidden;
}
.smx-fn-art-frame__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; border-bottom: 1px solid var(--fn-border); background: var(--fn-bg-alt);
}
.smx-fn-art-frame__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--fn-border-strong); }
.smx-fn-art-frame__label { margin-left: 6px; font-size: 11.5px; font-weight: 600; color: var(--fn-faint); letter-spacing: .02em; }
.smx-fn-art-frame__body { padding: 0; }

/* --- revelado al hacer scroll --------------------------------------------- */
.smx-fn-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--fn-ease), transform .7s var(--fn-ease); }
.smx-fn-reveal.is-in { opacity: 1; transform: none; }
.smx-fn-reveal[data-delay="1"] { transition-delay: .08s; }
.smx-fn-reveal[data-delay="2"] { transition-delay: .16s; }
.smx-fn-reveal[data-delay="3"] { transition-delay: .24s; }
.smx-fn-reveal[data-delay="4"] { transition-delay: .32s; }
.smx-fn-reveal[data-delay="5"] { transition-delay: .40s; }

/* --- barra de progreso de lectura ----------------------------------------- */
.smx-fn-progress {
  position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 90;
  background: var(--fn-accent); transform-origin: 0 50%; transform: scaleX(0);
  transition: transform .1s linear; pointer-events: none;
}

/* --- FAQ ------------------------------------------------------------------ */
.smx-fn-faq { display: grid; gap: 10px; max-width: 860px; }
.smx-fn-faq details {
  background: var(--fn-surface); border: 1px solid var(--fn-border);
  border-radius: var(--fn-radius-sm); overflow: hidden;
  transition: border-color .2s var(--fn-ease);
}
.smx-fn-faq details[open] { border-color: var(--fn-accent-line); }
.smx-fn-faq summary {
  cursor: pointer; list-style: none; padding: 17px 20px;
  font-size: 16px; font-weight: 650; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.smx-fn-faq summary::-webkit-details-marker { display: none; }
.smx-fn-faq summary::after {
  content: "+"; font-size: 21px; font-weight: 400; color: var(--fn-accent);
  transition: transform .22s var(--fn-ease); flex: none; line-height: 1;
}
.smx-fn-faq details[open] summary::after { transform: rotate(45deg); }
.smx-fn-faq .smx-fn-faq__a { padding: 0 20px 19px; color: var(--fn-muted); font-size: 15px; line-height: 1.68; }

/* --- tabla ---------------------------------------------------------------- */
.smx-fn-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--fn-radius); border: 1px solid var(--fn-border); }
.smx-fn-table { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--fn-surface); }
.smx-fn-table th, .smx-fn-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--fn-border); font-size: 14.5px; }
.smx-fn-table thead th { background: var(--fn-bg-alt); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--fn-faint); font-weight: 700; }
.smx-fn-table tbody tr:last-child td { border-bottom: none; }
.smx-fn-table td:first-child { font-weight: 600; color: var(--fn-text); }

/* --- cinta de métricas ---------------------------------------------------- */
.smx-fn-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--fn-border); border: 1px solid var(--fn-border); border-radius: var(--fn-radius); overflow: hidden; }
.smx-fn-stat { background: var(--fn-surface); padding: 24px 22px; }
.smx-fn-stat__n { font-size: clamp(26px, 3.6vw, 34px); font-weight: 780; letter-spacing: -.03em; line-height: 1; color: var(--fn-text); }
.smx-fn-stat__l { margin-top: 8px; font-size: 13px; color: var(--fn-muted); line-height: 1.5; }

/* --- CTA final ------------------------------------------------------------ */
.smx-fn-cta {
  border-radius: clamp(18px, 3vw, 26px);
  background: linear-gradient(135deg, var(--fn-accent) 0%, #0f3fae 100%);
  color: #fff; padding: clamp(36px, 6vw, 66px); text-align: center;
  position: relative; overflow: hidden;
}
.smx-fn-cta::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 120% at 80% 0%, rgba(255,255,255,.20), transparent 60%);
  pointer-events: none;
}
.smx-fn-cta > * { position: relative; }
.smx-fn-cta h2 { font-size: clamp(26px, 4vw, 40px); line-height: 1.12; letter-spacing: -.028em; font-weight: 780; text-wrap: balance; }
.smx-fn-cta p { margin-top: 14px; font-size: clamp(15.5px, 1.9vw, 18px); line-height: 1.6; color: rgba(255,255,255,.9); max-width: 56ch; margin-inline: auto; }
.smx-fn-cta .smx-fn-btn-row { justify-content: center; margin-top: 28px; }
.smx-fn-cta .smx-fn-btn--primary { background: #fff; color: #0f3fae; box-shadow: 0 8px 26px rgba(0,0,0,.22); }
.smx-fn-cta .smx-fn-btn--ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.smx-fn-cta .smx-fn-btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.10); }

/* --- accesibilidad de movimiento ------------------------------------------
   Respetar esto no es un extra: el mareo por movimiento es real y estas
   páginas se apoyan mucho en scroll. Con la preferencia activada, todo
   aparece ya colocado. */
@media (prefers-reduced-motion: reduce) {
  .smx-fn-body *, .smx-fn-body *::before, .smx-fn-body *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .smx-fn-reveal { opacity: 1 !important; transform: none !important; }
}

/* ===========================================================================
   Diseños de scroll únicos por página
   Cada página tiene su propia arquitectura de desplazamiento. Repetir el mismo
   layout cuatro veces las haría competir entre sí en resultados y aburriría a
   quien visite más de una.
   =========================================================================== */

/* --- 1. HUB: rejilla escalonada con línea que se dibuja ------------------- */
.smx-fn-loops { position: relative; display: grid; gap: clamp(20px, 3vw, 30px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.smx-fn-loops__item { position: relative; display: flex; }
.smx-fn-loops__item:nth-child(2) { transform: translateY(clamp(20px, 4vw, 46px)); }
.smx-fn-loops__item:nth-child(3) { transform: translateY(clamp(40px, 8vw, 92px)); }
.smx-fn-loops__card { display: flex; flex-direction: column; gap: 14px; width: 100%; text-decoration: none; }
.smx-fn-loops__n {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--fn-accent-soft); color: var(--fn-accent);
  font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums;
}
.smx-fn-loops__go { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--fn-border); color: var(--fn-accent); font-weight: 650; font-size: 14px; display: flex; align-items: center; gap: 7px; }
.smx-fn-loops__go svg { transition: transform .22s var(--fn-ease); }
.smx-fn-loops__card:hover .smx-fn-loops__go svg { transform: translateX(4px); }

.smx-fn-thread { display: block; width: 100%; height: auto; margin-block: clamp(26px, 4vw, 44px); overflow: visible; }
.smx-fn-thread path { stroke-dasharray: var(--len, 1400); stroke-dashoffset: var(--len, 1400); transition: stroke-dashoffset 1.5s var(--fn-ease); }
.smx-fn-thread.is-in path { stroke-dashoffset: 0; }

@media (max-width: 900px) {
  .smx-fn-loops { grid-template-columns: 1fr; }
  .smx-fn-loops__item:nth-child(2), .smx-fn-loops__item:nth-child(3) { transform: none; }
  .smx-fn-thread { display: none; }
}

/* --- navegación pegajosa entre secciones (hub) --------------------------- */
.smx-fn-subnav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--fn-bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--fn-border); }
.smx-fn-subnav__row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 11px; }
.smx-fn-subnav__row::-webkit-scrollbar { display: none; }
.smx-fn-subnav a { flex: none; padding: 8px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 620; color: var(--fn-muted); text-decoration: none; white-space: nowrap; transition: background .18s var(--fn-ease), color .18s var(--fn-ease); }
.smx-fn-subnav a:hover { color: var(--fn-text); background: var(--fn-bg-alt); }
.smx-fn-subnav a.is-active { color: var(--fn-accent); background: var(--fn-accent-soft); }

/* --- 2. FORMULARIOS: recorrido horizontal anclado ------------------------- */
.smx-fn-journey { position: relative; }
.smx-fn-journey__sticky { position: sticky; top: 0; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.smx-fn-journey__track { display: flex; gap: clamp(18px, 3vw, 34px); will-change: transform; padding-inline: var(--fn-gutter); }
.smx-fn-journey__step { flex: none; width: min(400px, 78vw); display: flex; flex-direction: column; gap: 14px; }
.smx-fn-journey__badge { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fn-faint); }
.smx-fn-journey__badge b { color: var(--fn-accent); font-variant-numeric: tabular-nums; }
.smx-fn-journey__rail { position: absolute; inset-inline: var(--fn-gutter); bottom: clamp(28px, 6vh, 54px); height: 3px; border-radius: 2px; background: var(--fn-border); }
.smx-fn-journey__rail i { display: block; height: 100%; border-radius: 2px; background: var(--fn-accent); transform-origin: 0 50%; transform: scaleX(0); }

@media (max-width: 900px) {
  /* En móvil el anclaje horizontal secuestra el scroll y confunde. Se vuelve
     una pila vertical normal, que además es más fácil de leer con una mano. */
  .smx-fn-journey { height: auto !important; }
  .smx-fn-journey__sticky { position: static; min-height: 0; display: block; }
  .smx-fn-journey__track { flex-direction: column; transform: none !important; padding-inline: 0; }
  .smx-fn-journey__step { width: 100%; }
  .smx-fn-journey__rail { display: none; }
}

/* --- 3. CATÁLOGO: comparación deslizante y cinta -------------------------- */
.smx-fn-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 22px); }
.smx-fn-compare__col { border-radius: var(--fn-radius); border: 1px solid var(--fn-border); overflow: hidden; background: var(--fn-surface); }
.smx-fn-compare__head { padding: 15px 20px; font-size: 13.5px; font-weight: 700; border-bottom: 1px solid var(--fn-border); display: flex; align-items: center; gap: 9px; }
.smx-fn-compare__col--no .smx-fn-compare__head { background: var(--fn-bad-soft); color: var(--fn-bad); }
.smx-fn-compare__col--si .smx-fn-compare__head { background: var(--fn-ok-soft); color: var(--fn-ok); }
.smx-fn-compare__list { padding: 8px 0; }
.smx-fn-compare__list li { display: flex; gap: 11px; padding: 11px 20px; font-size: 14.5px; line-height: 1.55; color: var(--fn-muted); align-items: flex-start; }
.smx-fn-compare__list li svg { flex: none; margin-top: 3px; }

.smx-fn-belt { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.smx-fn-belt__track { display: flex; gap: 16px; width: max-content; animation: smx-fn-belt 42s linear infinite; }
.smx-fn-belt:hover .smx-fn-belt__track { animation-play-state: paused; }
@keyframes smx-fn-belt { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.smx-fn-belt__card { flex: none; width: 250px; background: var(--fn-surface); border: 1px solid var(--fn-border); border-radius: var(--fn-radius-sm); overflow: hidden; box-shadow: var(--fn-shadow); }
.smx-fn-belt__media { height: 132px; background: var(--fn-accent-soft); border-bottom: 1px solid var(--fn-border); overflow: hidden; }
.smx-fn-belt__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.01); }
.smx-fn-belt__meta { padding: 13px 15px; display: flex; flex-direction: column; gap: 7px; }
.smx-fn-belt__meta strong { font-size: 14px; font-weight: 650; }
.smx-fn-belt__meta span { font-size: 12.5px; color: var(--fn-faint); }
.smx-fn-belt__cta { margin-top: 3px; font-size: 12px; font-weight: 700; color: var(--fn-accent); }

@media (max-width: 700px) { .smx-fn-compare { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .smx-fn-belt__track { animation: none; } .smx-fn-belt { mask-image: none; overflow-x: auto; } }

/* --- 4. AGENDA: calendario que se llena al hacer scroll ------------------- */
.smx-fn-agenda { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(30px, 5vw, 60px); align-items: start; }
.smx-fn-agenda__sticky { position: sticky; top: clamp(72px, 12vh, 104px); }
.smx-fn-agenda__steps { display: grid; gap: clamp(44px, 8vh, 90px); }
.smx-fn-agenda__step { display: flex; flex-direction: column; gap: 12px; }
.smx-fn-agenda__step h3 { display: flex; align-items: center; gap: 11px; }
.smx-fn-agenda__marker {
  width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 750; font-variant-numeric: tabular-nums;
  background: var(--fn-bg-alt); color: var(--fn-faint);
  border: 1px solid var(--fn-border);
  transition: background .3s var(--fn-ease), color .3s var(--fn-ease), border-color .3s var(--fn-ease);
}
.smx-fn-agenda__step.is-active .smx-fn-agenda__marker { background: var(--fn-accent); color: var(--fn-accent-ink); border-color: transparent; }

.smx-fn-slotgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; padding: 16px; }
.smx-fn-slot {
  padding: 9px 4px; border-radius: 8px; text-align: center;
  font-size: 12.5px; font-weight: 640; font-variant-numeric: tabular-nums;
  background: var(--fn-bg-alt); color: var(--fn-muted); border: 1px solid var(--fn-border);
  transition: background .35s var(--fn-ease), color .35s var(--fn-ease), border-color .35s var(--fn-ease), transform .35s var(--fn-ease);
}
.smx-fn-slot.is-free  { background: var(--fn-accent-soft); color: var(--fn-accent); border-color: var(--fn-accent-line); }
.smx-fn-slot.is-taken { background: var(--fn-bg-alt); color: var(--fn-faint); border-color: var(--fn-border); text-decoration: line-through; opacity: .62; }
.smx-fn-slot.is-picked { background: var(--fn-accent); color: var(--fn-accent-ink); border-color: transparent; transform: scale(1.06); }

@media (max-width: 900px) {
  .smx-fn-agenda { grid-template-columns: 1fr; }
  .smx-fn-agenda__sticky { position: static; }
  .smx-fn-agenda__steps { gap: 34px; }
}

/* --- notas al pie de sección --------------------------------------------- */
.smx-fn-note { display: flex; gap: 11px; padding: 15px 18px; border-radius: var(--fn-radius-sm); background: var(--fn-bg-alt); border: 1px solid var(--fn-border); font-size: 14px; line-height: 1.6; color: var(--fn-muted); }
.smx-fn-note svg { flex: none; margin-top: 2px; color: var(--fn-accent); }
.smx-fn-note strong { color: var(--fn-text); font-weight: 650; }

/* --- raster generated art + SVG wireframe fallback ------------------------ */
.smx-fn-art-media { position: relative; width: 100%; }
.smx-fn-art-picture { display: block; }
.smx-fn-art--raster {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #f6f9fd;
}
.smx-fn-art-wireframe { display: none; }
.smx-fn-art-media.is-fallback .smx-fn-art-picture { display: none; }
.smx-fn-art-media.is-fallback .smx-fn-art-wireframe { display: block; }

/* Generated artwork already contains the Medusa chrome; avoid a second
   browser bar around it while retaining the existing frame component. */
.smx-fn-art-frame:has(.smx-fn-art-media) .smx-fn-art-frame__bar { display: none; }
.smx-fn-art-frame:has(.smx-fn-art-media) {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
