/* ============================================================
   SinergIA · landing (Fase 3)
   Orden: base · botones · header · hero · secciones · pie · móvil
   El hero y su lenguaje vienen del laboratorio aprobado (Fase 2).
   ============================================================ */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--cell) * 4); }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--font-text); font-size: var(--fs-body); line-height: var(--lh-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, h4, h5, ol, ul { margin: 0; }
h1, h2, h3, h4, h5 { font-weight: 700; }
button { font: inherit; color: inherit; }
:focus-visible { outline: var(--focus); outline-offset: var(--focus-offset); }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 100; background: var(--ivory); color: var(--ink); padding: var(--s-1) var(--s-2); font-weight: 600; }
.skip:focus { top: var(--s-1); }

/* ---------- Tipografía de sección ---------- */
/* Sin línea gris entre secciones (5-nov-2026, a pedido): el borde de 1 px se conserva transparente para no mover
   la maqueta; las costuras animadas del fondo se calculan desde la posición de cada sección, no desde este borde. */
.sec { padding: var(--section-y) 0; border-top: 1px solid transparent; position: relative; }
.sec__head { max-width: 780px; margin-bottom: var(--s-8); }
.kicker { display: inline-flex; align-items: center; gap: var(--s-1); font-size: var(--fs-small); font-weight: 600; color: var(--violet-soft); margin-bottom: var(--s-2); }
.kicker::before { content: ''; width: 9px; height: 9px; background: var(--violet); box-shadow: 9px 0 0 var(--violet-soft); margin-right: 9px; }
.h2 { font-family: var(--font-display); font-size: var(--fs-h2); line-height: var(--lh-head); letter-spacing: var(--track-display); text-wrap: balance; }
.lead { margin-top: var(--s-3); font-size: var(--fs-lead); line-height: 1.45; color: var(--text-muted); max-width: 56ch; }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1);
  min-height: calc(var(--cell) * 6); padding: 0 var(--s-3);
  font-family: var(--font-text); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border-radius: var(--radius-site); border: 0; cursor: pointer;
  transition: background-color var(--dur-ui) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
.btn--primary { background: var(--violet); color: var(--ivory); }
.btn--primary:hover { background: var(--violet-deep); }
.btn--primary:active { transform: translateY(1px); }
.btn--primary:focus-visible { outline-color: var(--ivory); }
.btn--sm { min-height: calc(var(--cell) * 5); padding: 0 var(--s-2); font-size: var(--fs-small); }
.btn--lg { min-height: calc(var(--cell) * 7); padding: 0 var(--s-4); font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn__icon { width: 18px; height: 18px; flex: none; }
.cta { display: inline-flex; flex-direction: column; gap: var(--s-1); }
.cta__hint { display: flex; align-items: center; gap: var(--s-1); font-size: var(--fs-micro); color: var(--text-muted); }
.cta__dot { width: 7px; height: 7px; background: var(--state-closed); flex: none; }
.link-quiet {
  color: var(--text); font-weight: 500; text-decoration: underline; text-decoration-color: var(--rule-strong);
  text-underline-offset: 5px; text-decoration-thickness: 1px; min-height: 44px; display: inline-flex; align-items: center;
}
.link-quiet:hover { text-decoration-color: var(--violet-soft); }

/* ---------- Header ---------- */
.site { position: absolute; left: 0; right: 0; top: 0; z-index: 20; }
.site__in { display: flex; align-items: center; gap: var(--s-3); min-height: calc(var(--cell) * 10); }
.brand { margin-right: auto; min-height: 44px; display: inline-flex; align-items: center; }
.brand img { height: 28px; width: auto; }
.site__links { display: flex; gap: var(--s-3); }
.site__links a { font-size: var(--fs-small); color: var(--text-muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site__links a:hover { color: var(--text); }
.site__menu { display: none; }
@media (max-width: 1023px) { .site__links { gap: var(--s-2); } }
@media (max-width: 899px) {
  .site__cta { display: none; }
  .js .site__menu { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-2); background: transparent; border: 1px solid var(--rule-control); border-radius: var(--radius-site); cursor: pointer; }
  .site__links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: var(--s-1) var(--gutter) var(--s-2); background: var(--ink-2); border-bottom: 1px solid var(--rule); }
  .js .site__links { display: none; }
  .js .site__links.is-open { display: flex; }
  .site__links a { color: var(--text); font-size: var(--fs-body); border-bottom: 1px solid var(--rule); }
  .site__links a:last-child { border-bottom: 0; }
  .site__in { gap: var(--s-2); }
  html:not(.js) .site__links { position: static; flex-direction: row; flex-wrap: wrap; gap: 0 var(--s-2); background: none; border: 0; padding: 0; }
  html:not(.js) .site__links a { border: 0; font-size: var(--fs-small); }
}

/* ---------- Hero (aprobado en la Fase 2) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-top: calc(var(--cell) * 14); padding-bottom: calc(var(--cell) * 10); }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(to right, rgba(248, 246, 244, 0.035) 1px, transparent 1px), linear-gradient(to bottom, rgba(248, 246, 244, 0.035) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 72% 50%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 72% 50%, #000 0%, transparent 75%);
}
.hero__field { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-3); align-items: center; min-height: min(calc(100svh - var(--cell) * 26), 680px); }
.hero__copy { grid-column: 1 / span 6; position: relative; }
.hero__stage { grid-column: 7 / span 6; align-self: stretch; min-height: calc(var(--cell) * 52); }
.hero__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--track-display); text-wrap: balance; }
.hero__title span { display: block; }
.hero__title span + span { margin-top: 0.08em; }
.hero__lead { margin-top: var(--s-4); max-width: 44ch; font-size: var(--fs-lead); line-height: 1.45; color: var(--text-muted); }
.hero__actions { margin-top: var(--s-6); display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s-2) var(--s-4); }
@media (max-width: 899px) {
  .hero { padding-top: calc(var(--cell) * 12); padding-bottom: var(--s-6); }
  .hero__grid { min-height: 0; }
  .hero__copy, .hero__stage { grid-column: 1 / -1; }
  .hero__stage { min-height: 0; height: calc(var(--cell) * 34); margin-top: var(--s-6); }
}
@media (max-width: 420px) {
  .hero { padding-top: calc(var(--cell) * 10); }
  .hero__title { font-size: clamp(2rem, 1.1rem + 4.6vw, 2.5rem); }
  .hero__lead { margin-top: var(--s-2); font-size: 1.0625rem; }
  .hero__actions { margin-top: var(--s-3); flex-direction: column; gap: var(--s-1); }
  .hero__stage { height: calc(var(--cell) * 30); }
}

/* ---------- Especialidad ---------- */
.spec__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-8); align-items: start; }
.spec__note { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--text-muted); max-width: 52ch; }
.spec__copy .link-quiet { margin-top: var(--s-3); }
.rail { list-style: none; padding: 0; position: relative; display: grid; gap: var(--s-4); }
.rail::before {   /* conector de celdas entre los tres puntos */
  content: ''; position: absolute; left: 13px; top: 30px; bottom: 30px; width: 3px;
  background: repeating-linear-gradient(to bottom, var(--violet) 0 6px, transparent 6px 9px);
}
.rail__item { position: relative; padding-left: calc(var(--cell) * 6); }
.rail__node { position: absolute; left: 0; top: 2px; width: 30px; height: 30px; display: grid; grid-template-columns: repeat(2, 12px); gap: 2px; place-content: center; background: var(--ink); }
.rail__node i { width: 12px; height: 12px; background: var(--violet); }
.rail__node i:nth-child(2), .rail__node i:nth-child(3) { background: var(--violet-soft); }
.rail__item:last-child .rail__node i:nth-child(4) { background: var(--ivory); }
.rail__item h3 { font-size: var(--fs-h3); font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.015em; }
.rail__item p { margin-top: var(--s-1); color: var(--text-muted); font-size: var(--fs-small); max-width: 46ch; }
@media (max-width: 899px) { .spec__grid { grid-template-columns: 1fr; gap: var(--s-6); } }

/* ---------- Soluciones ---------- */
.sol__groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.sol__group { border-top: 2px solid var(--violet); padding-top: var(--s-2); }
.sol__gt { font-size: var(--fs-small); font-weight: 600; color: var(--violet-soft); margin-bottom: var(--s-2); }
.sol__list { list-style: none; padding: 0; display: grid; gap: var(--s-4); }
.sol__item h4 { margin-top: var(--s-2); font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.015em; }
.sol__item p { margin-top: var(--s-1); font-size: var(--fs-small); color: var(--text-muted); }
.sol__link { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-small); font-weight: 600; color: var(--text); text-decoration: underline; text-decoration-color: var(--violet-soft); text-underline-offset: 5px; }
@media (max-width: 899px) { .sol__groups { grid-template-columns: 1fr; gap: var(--s-6); } }

/* Glifos de píxeles por capacidad (4 × 4 celdas, estáticos) */
.glyph { --g1: var(--violet); --g2: var(--violet-soft); --g3: var(--ivory); --g0: var(--ink-4);
  display: block; width: 36px; height: 36px; flex: none;
  background:
    conic-gradient(from 90deg at 2px 2px, transparent 25%, var(--ink) 0) 0 0 / 9px 9px,
    var(--glyph);
}
.glyph--panel { --glyph: linear-gradient(var(--g1) 0 0) 0 0 / 9px 36px no-repeat, linear-gradient(var(--g2) 0 0) 9px 0 / 27px 9px no-repeat, linear-gradient(var(--g0) 0 0) 9px 9px / 27px 27px no-repeat, linear-gradient(var(--g3) 0 0) 18px 18px / 9px 9px no-repeat; }
.glyph--flow { --glyph: linear-gradient(var(--g1) 0 0) 0 0 / 9px 9px no-repeat, linear-gradient(var(--g2) 0 0) 9px 9px / 9px 9px no-repeat, linear-gradient(var(--g2) 0 0) 18px 18px / 9px 9px no-repeat, linear-gradient(var(--g3) 0 0) 27px 27px / 9px 9px no-repeat, linear-gradient(var(--g0) 0 0) 0 27px / 9px 9px no-repeat, linear-gradient(var(--g0) 0 0) 27px 0 / 9px 9px no-repeat; }
.glyph--web { --glyph: linear-gradient(var(--g1) 0 0) 0 0 / 36px 9px no-repeat, linear-gradient(var(--g0) 0 0) 0 9px / 36px 27px no-repeat, linear-gradient(var(--g3) 0 0) 9px 18px / 18px 9px no-repeat; }
.glyph--plan { --glyph: linear-gradient(var(--g0) 0 0) 0 0 / 36px 36px no-repeat, linear-gradient(var(--g1) 0 0) 0 0 / 36px 9px no-repeat, linear-gradient(var(--g2) 0 0) 9px 18px / 9px 9px no-repeat, linear-gradient(var(--g3) 0 0) 27px 27px / 9px 9px no-repeat; }
.glyph--video { --glyph: linear-gradient(var(--g0) 0 0) 0 0 / 36px 36px no-repeat, linear-gradient(var(--g1) 0 0) 9px 9px / 9px 18px no-repeat, linear-gradient(var(--g2) 0 0) 18px 18px / 9px 9px no-repeat; }
.glyph--chat { --glyph: linear-gradient(var(--g1) 0 0) 0 0 / 36px 18px no-repeat, linear-gradient(var(--g1) 0 0) 0 18px / 9px 9px no-repeat, linear-gradient(var(--g3) 0 0) 9px 9px / 18px 9px no-repeat, linear-gradient(var(--g2) 0 0) 18px 27px / 18px 9px no-repeat; }
.glyph--task { --glyph: linear-gradient(var(--g0) 0 0) 0 0 / 36px 36px no-repeat, linear-gradient(var(--g2) 0 0) 0 27px / 36px 9px no-repeat, linear-gradient(var(--g3) 0 0) 9px 9px / 9px 9px no-repeat, linear-gradient(var(--g1) 0 0) 18px 18px / 9px 9px no-repeat; }

/* ---------- Proceso ---------- */
.proc__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-3); }
.proc__item { border-top: 1px solid var(--rule-strong); padding-top: var(--s-2); }
.proc__bar { display: flex; gap: 2px; margin-bottom: var(--s-2); }
.proc__bar i { width: 9px; height: 9px; background: var(--ink-4); }
.proc__item:nth-child(n) .proc__bar i:nth-child(-n+1) { background: var(--violet); }
.proc__item:nth-child(n+2) .proc__bar i:nth-child(-n+2) { background: var(--violet); }
.proc__item:nth-child(n+3) .proc__bar i:nth-child(-n+3) { background: var(--violet); }
.proc__item:nth-child(n+4) .proc__bar i:nth-child(-n+4) { background: var(--violet); }
.proc__item:nth-child(5) .proc__bar i { background: var(--violet); }
.proc__item:nth-child(5) .proc__bar i:last-child { background: var(--ivory); }
.proc__num { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--violet-soft); line-height: 1; }
.proc__item h3 { margin-top: var(--s-1); font-family: var(--font-display); font-size: 1.25rem; line-height: 1.15; letter-spacing: -0.01em; }
.proc__item p { margin-top: var(--s-1); font-size: var(--fs-small); color: var(--text-muted); }
@media (max-width: 1023px) { .proc__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-4); } }
@media (max-width: 599px) { .proc__list { grid-template-columns: 1fr; } }

/* ---------- Qué incluye ---------- */
.inc__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-8); align-items: start; }
.inc__note { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--text-muted); max-width: 50ch; }
.inc__note a { color: var(--text); text-underline-offset: 4px; }
.inc__list { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.inc__list li { position: relative; padding: var(--s-2) 0 var(--s-2) calc(var(--cell) * 4); border-bottom: 1px solid var(--rule); }
.inc__list li::before { content: ''; position: absolute; left: 0; top: calc(var(--s-2) + 0.45em); width: 9px; height: 9px; background: var(--violet); box-shadow: 9px 9px 0 var(--violet-soft); }
@media (max-width: 899px) { .inc__grid { grid-template-columns: 1fr; gap: var(--s-4); } }

/* ---------- Preguntas ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-8); align-items: start; }
.faq__list { border-top: 1px solid var(--rule); }
.faq__list details { border-bottom: 1px solid var(--rule); }
.faq__list summary {
  list-style: none; cursor: pointer; min-height: 56px; padding: var(--s-2) var(--s-6) var(--s-2) 0; position: relative;
  font-weight: 600; font-size: 1.0625rem; display: flex; align-items: center;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--violet-soft) 0 0) center / 14px 4px no-repeat, linear-gradient(var(--violet-soft) 0 0) center / 4px 14px no-repeat;
}
.faq__list details[open] summary::after { background: linear-gradient(var(--violet-soft) 0 0) center / 14px 4px no-repeat; }
.faq__list details p { padding: 0 var(--s-6) var(--s-3) 0; color: var(--text-muted); max-width: 64ch; }
.faq__list a { color: var(--text); text-underline-offset: 4px; }
@media (max-width: 899px) { .faq__grid { grid-template-columns: 1fr; gap: var(--s-4); } }

/* ---------- Contacto ---------- */
.contact { overflow: hidden; }
.contact::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(248, 246, 244, 0.035) 1px, transparent 1px), linear-gradient(to bottom, rgba(248, 246, 244, 0.035) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  -webkit-mask-image: radial-gradient(ellipse 50% 70% at 80% 50%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 50% 70% at 80% 50%, #000 0%, transparent 75%);
}
.contact__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--s-6); align-items: center; position: relative; }
.contact__title { max-width: 14ch; }
.contact__cta { margin-top: var(--s-6); }
.contact__micro { font-size: var(--fs-micro); color: var(--text-faint); }
.contact__art { justify-self: center; }
.contact__art img { width: clamp(120px, 16vw, 210px); height: auto; }
@media (max-width: 899px) { .contact__grid { grid-template-columns: 1fr; } .contact__art { display: none; } }

/* ---------- Pie ---------- */
.foot { border-top: 1px solid var(--rule); padding: var(--s-8) 0 var(--s-4); font-size: var(--fs-small); }
.foot:not(.foot--sub) { border-top-color: transparent; }   /* landing: sin línea entre «Contacto» y el pie (subpáginas sin cambios) */
.foot__grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: var(--s-4); }
.foot__brand img { height: 30px; width: auto; }
.foot__brand p { margin-top: var(--s-2); color: var(--text-muted); max-width: 30ch; }
.foot__col { display: flex; flex-direction: column; align-items: flex-start; }
.foot__h { font-size: var(--fs-micro); font-weight: 600; color: var(--text-faint); margin-bottom: var(--s-1); }
.foot__col a { color: var(--text-muted); text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.foot__col a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.foot__base { margin-top: var(--s-6); padding-top: var(--s-3); border-top: 1px solid var(--rule); color: var(--text-faint); font-size: var(--fs-micro); }
@media (max-width: 899px) { .foot { padding-bottom: calc(var(--s-4) + 96px); } .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot__grid { grid-template-columns: 1fr; } }

/* ---------- Barra de contacto móvil ---------- */
.mbar { display: none; }
@media (max-width: 899px) {
  .mbar {
    display: grid; gap: 4px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: var(--s-1) var(--gutter) calc(var(--s-1) + env(safe-area-inset-bottom));
    background: rgba(11, 11, 13, 0.94); border-top: 1px solid var(--rule);
    transition: transform var(--dur-ui) var(--ease-out), visibility 0s linear 0s;
  }
  .js .mbar:not(.is-on), .js .mbar.is-quiet { transform: translateY(110%); visibility: hidden; transition: transform var(--dur-ui) var(--ease-out), visibility 0s linear var(--dur-ui); }
  .mbar__hint { text-align: center; font-size: 0.75rem; color: var(--text-muted); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   Fase 3.1 · fondo ambiental, interacciones y revelados
   Curvas y duraciones según review-animations / emil-design-eng:
   hover ≤ 260 ms con --ease-out, revelados breves, escala de
   pulsación 0,97, escalonados de 40–60 ms. Solo transform/opacity
   (y clip-path una vez en el símbolo de contacto).
   ============================================================ */

/* Campo ambiental: fijo, del tamaño del viewport, debajo del contenido */
.ambient { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 600ms var(--ease-out); }
.ambient.is-on { opacity: 1; }

/* Pulsación */
.btn:active, .ctl:active, .fbtn:active, .tab:active, .steps__btn:active { transform: scale(0.97); transition-duration: 120ms; }

/* Enlaces discretos: el subrayado se enciende */
.link-quiet, .sol__link, .foot__col a, .inc__note a, .faq__list a { transition: text-decoration-color var(--dur-ui) var(--ease-out), text-underline-offset var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out); }
.link-quiet:hover, .link-quiet:focus-visible, .sol__link:hover, .sol__link:focus-visible { text-underline-offset: 7px; text-decoration-color: var(--violet-soft); }

/* Especialidad: el conector se dibuja y los nodos se ensamblan al entrar */
.rail::before { transform-origin: top; transition: transform 700ms var(--ease-out); }
.rail__node i { transition: transform 260ms var(--ease-out), opacity 260ms var(--ease-out), background-color var(--dur-ui) var(--ease-out); }
.js .rail:not(.is-in)::before { transform: scaleY(0); }
.js .rail:not(.is-in) .rail__node i { transform: scale(0.6); opacity: 0; }
.rail__node i:nth-child(2) { transition-delay: 40ms; } .rail__node i:nth-child(3) { transition-delay: 80ms; } .rail__node i:nth-child(4) { transition-delay: 120ms; }
.rail.is-in .rail__item:nth-child(2) .rail__node i { transition-delay: 200ms; }
.rail.is-in .rail__item:nth-child(3) .rail__node i { transition-delay: 360ms; }
.rail__item:hover .rail__node i:nth-child(1) { background: var(--violet-soft); }
.rail__item:hover .rail__node i:nth-child(4) { background: var(--ivory); }

/* Soluciones: borde de luz y glifo que se desplaza un paso de celda */
.sol__item { position: relative; padding-top: var(--s-1); }
.sol__item::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--violet-soft); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-ui) var(--ease-out); }
.sol__item:hover::before, .sol__item:focus-within::before { transform: scaleX(1); }
.sol__item .glyph { transition: transform var(--dur-ui) var(--ease-out), filter var(--dur-ui) var(--ease-out), opacity 300ms var(--ease-out); }
.sol__item:hover .glyph, .sol__item:focus-within .glyph { transform: translateX(9px); filter: brightness(1.18); }
.js .sol__groups:not(.is-in) .glyph { opacity: 0; transform: scale(0.94); }
.sol__groups.is-in .sol__group:nth-child(2) .glyph { transition-delay: 60ms; }
.sol__groups.is-in .sol__group:nth-child(3) .glyph { transition-delay: 120ms; }
.sol__groups.is-in .sol__item:hover .glyph, .sol__groups.is-in .sol__item:focus-within .glyph { transition-delay: 0ms; }

/* Explorador: pestañas con respuesta y subrayado que crece */
.tab { transition: background-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out), transform 120ms var(--ease-out); }
.tab__ic { transition: transform var(--dur-ui) var(--ease-out); }
.tab:hover .tab__ic, .tab:focus-visible .tab__ic { transform: scale(0.7) translateX(4px); }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--violet); transform: scaleX(0); transform-origin: left; transition: transform 260ms var(--ease-out); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.fbtn { transition: background-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out), transform 120ms var(--ease-out); }

/* Proceso: la barra de celdas se construye al entrar y se enciende al pasar */
.proc__bar i { transition: transform 260ms var(--ease-out), background-color var(--dur-ui) var(--ease-out); transform-origin: bottom; }
.js .proc__list:not(.is-in) .proc__bar i { transform: scaleY(0.2); }
.proc__bar i:nth-child(2) { transition-delay: 40ms; } .proc__bar i:nth-child(3) { transition-delay: 80ms; } .proc__bar i:nth-child(4) { transition-delay: 120ms; } .proc__bar i:nth-child(5) { transition-delay: 160ms; }
.proc__list.is-in .proc__item:nth-child(2) .proc__bar { transition-delay: 80ms; }
.proc__item { transition: border-color var(--dur-ui) var(--ease-out); }
.proc__item:hover { border-top-color: var(--violet-soft); }
.proc__item:hover .proc__bar i { background: var(--violet-soft); }

/* Qué incluye: viñetas de celdas que se ensamblan en cascada */
.inc__list li::before { transition: transform 260ms var(--ease-out), opacity 260ms var(--ease-out); }
.js .inc__list:not(.is-in) li::before { transform: translate(-6px, -6px) scale(0.7); opacity: 0; }
.inc__list.is-in li:nth-child(2)::before { transition-delay: 50ms; } .inc__list.is-in li:nth-child(3)::before { transition-delay: 100ms; }
.inc__list.is-in li:nth-child(4)::before { transition-delay: 150ms; } .inc__list.is-in li:nth-child(5)::before { transition-delay: 200ms; }
.inc__list.is-in li:nth-child(6)::before { transition-delay: 250ms; } .inc__list.is-in li:nth-child(7)::before { transition-delay: 300ms; }

/* Preguntas: fila con respuesta suave */
.faq__list summary { transition: background-color var(--dur-ui) var(--ease-out); }
.faq__list summary:hover, .faq__list summary:focus-visible { background: var(--ink-2); }
.faq__list summary::after { transition: transform var(--dur-ui) var(--ease-out); }
.faq__list details[open] summary::after { transform: rotate(180deg); }

/* Contacto: el símbolo se ensambla por hileras (pasos de celda) */
.contact__art img { transition: clip-path 900ms steps(10, end), transform 900ms var(--ease-out); clip-path: inset(0 0 0 0); }
.js .contact__art:not(.is-in) img { clip-path: inset(100% 0 0 0); transform: translateY(18px); }

/* Sin JS no hay nada que pausar: el control no se muestra (sin salto de diseño con JS). */
html:not(.js) .fx { display: none; }
/* Control de pausa de efectos: icono en el header (con etiqueta flotante que no
   desplaza nada) y botón con texto en el pie. Ambos sincronizados. */
.fx {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1);
  min-height: 40px; min-width: 40px; padding: 0 11px; border: 1px solid var(--rule-control); border-radius: var(--radius-pill);
  background: transparent; color: var(--text-muted); font-size: var(--fs-micro); font-weight: 600; cursor: pointer;
  transition: color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out), transform 120ms var(--ease-out);
}
.fx:hover, .fx:focus-visible { color: var(--text); border-color: var(--violet-soft); }
.fx:active { transform: scale(0.97); }
.fx__ic { display: grid; grid-template-columns: repeat(2, 6px); gap: 2px; flex: none; }
.fx__ic i { width: 6px; height: 6px; background: var(--violet-soft); transition: opacity var(--dur-ui) var(--ease-out); }
.fx[aria-pressed="true"] { border-color: var(--violet-soft); background: var(--violet-wash); color: var(--text); }
.fx[aria-pressed="true"] .fx__ic i:nth-child(2), .fx[aria-pressed="true"] .fx__ic i:nth-child(3) { opacity: 0.25; }
.fx__tip {
  position: absolute; top: calc(100% + 8px); right: 0; padding: 6px 10px; white-space: nowrap; pointer-events: none;
  background: var(--ink-3); border: 1px solid var(--rule-strong); color: var(--text); font-size: var(--fs-micro);
  opacity: 0; transform: translateY(-4px); transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.fx:hover .fx__tip, .fx:focus-visible .fx__tip { opacity: 1; transform: translateY(0); }
.fx--text { margin-left: auto; }
.foot__base { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
@media (prefers-reduced-motion: reduce) { .fx { display: none; } }
