/* Caso ToyoXpress (prefijo ctx-). Se carga después de caso.css. */
.ctx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Resultados: 7 de cada 10 clics llegan por código OEM */
.ctx-waffle { display: grid; align-content: center; gap: 16px; }
.ctx-waffle-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ctx-waffle-grid span { aspect-ratio: 1; border-radius: 12px; background: rgba(255, 255, 255, .14); }
.ctx-waffle-grid span.is-oem { background: var(--lime); }
.ctx-waffle-key { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: .875rem; color: #c8d1dc; }
.ctx-waffle-key li { display: flex; align-items: center; gap: 8px; }
.ctx-waffle-key b { width: 14px; height: 14px; border-radius: 4px; background: rgba(255, 255, 255, .22); }
.ctx-waffle-key li.is-oem b { background: var(--lime); }
.ctx-speed .rings { align-items: center; }

/* El desafío: cada empresa ve su precio */
.ctx-b2b { width: min(100%, 460px); padding: 20px 22px; font-size: 1rem; }
.ctx-b2b-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ctx-acct { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--navy); color: #ffffff; font-weight: 600; font-size: .9375rem; }
.ctx-acct svg { width: 18px; height: 18px; color: var(--lime); }
.ctx-prod { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.ctx-prod-ico, .ctx-hit-ico, .ctx-thumb { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--ui-line); }
.ctx-prod-ico svg, .ctx-hit-ico svg, .ctx-thumb svg { width: 22px; height: 22px; }
.ctx-prod b, .ctx-hit b { display: block; font-weight: 600; }
.ctx-prod small, .ctx-hit small { display: block; font-size: .875rem; color: var(--ui-soft); }
.ctx-price { position: relative; display: grid; margin-top: 14px; min-height: 64px; }
.ctx-price > span { grid-area: 1 / 1; display: flex; align-items: center; border-radius: 14px; padding: 10px 16px; }
.ctx-lock { gap: 10px; background: var(--ui-line); color: var(--ui-soft); font-size: .9375rem; visibility: hidden; }
.ctx-lock svg { width: 18px; height: 18px; flex: none; }
.ctx-val { justify-content: space-between; gap: 12px; background: var(--lime); color: var(--on-lime); }
.ctx-val small { font-size: .875rem; font-weight: 500; }
.ctx-val b { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ctx-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.ctx-tiers li { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 6px; border-radius: 12px; background: var(--ui-line); color: var(--ui-soft); font-size: .875rem; font-weight: 500; transition: background-color .3s ease, color .3s ease; }
.ctx-tiers svg { width: 16px; height: 16px; flex: none; }
.ctx-tiers li.is-on { background: var(--navy); color: #ffffff; }
.ctx-tiers li.is-on svg { color: var(--lime); }
.ctx-rows { margin-top: 14px; }

/* Catálogo técnico: búsqueda por código */
.ctx-search { width: 100%; padding: 16px; font-size: 1rem; }
.ctx-sbar { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: 999px; background: var(--ui-line); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.ctx-sbar svg { width: 18px; height: 18px; color: var(--ui-soft); }
.ctx-caret { width: 2px; height: 1.15em; margin-left: -6px; background: var(--ui-ink); opacity: 0; }
.ctx-hits { display: grid; gap: 6px; margin-top: 10px; }
.ctx-hit { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: var(--ui-line); }
.ctx-hit > span:nth-child(2) { flex: 1; min-width: 0; }
.ctx-hit-ico { width: 38px; height: 38px; background: var(--ui-bg); }
.ctx-ok { flex: none; padding: 3px 10px; border-radius: 999px; background: #e3f5ea; color: #13703a; font-size: .8125rem; font-weight: 600; }
.ctx-eg-row { margin-top: 8px; text-align: right; font-size: .8125rem; font-weight: 600; color: var(--ui-soft); }

/* SEO técnico: el resultado en Google */
.ctx-serp { width: 100%; display: grid; gap: 4px; padding: 16px 18px; font-size: 1rem; }
.ctx-serp-url { font-size: .8125rem; color: var(--ui-soft); }
.ctx-serp-t { font-size: 1.125rem; font-weight: 600; color: #1a3fb0; line-height: 1.25; }
.ctx-serp-d { font-size: .9375rem; color: var(--ui-soft); line-height: 1.3; }
.ctx-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ctx-tags span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--lime); color: var(--on-lime); font-size: .8125rem; font-weight: 600; }
.ctx-tags span.is-off { background: var(--ui-line); color: var(--ui-soft); }
.ctx-tags svg { width: 14px; height: 14px; }
.ctx-serp-eg { justify-self: end; margin-top: 4px; font-size: .8125rem; font-weight: 600; color: var(--ui-soft); }

/* Meta y WhatsApp */
.ctx-meta { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; width: 100%; align-items: center; }
.ctx-cat { padding: 14px; }
.ctx-cat-h { display: flex; align-items: center; gap: 10px; }
.ctx-cat-h b { flex: 1; font-weight: 600; font-size: .9375rem; }
.ctx-wa-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #1f9d55; color: #ffffff; }
.ctx-wa-ico svg { width: 17px; height: 17px; }
.ctx-cat-list { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.ctx-cat-list li { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 12px; background: var(--ui-line); font-size: .8125rem; color: var(--ui-soft); line-height: 1.25; }
.ctx-cat-list b { display: block; font-size: .9375rem; color: var(--ui-ink); font-weight: 600; }
.ctx-thumb { width: 38px; height: 38px; background: var(--ui-bg); }
.ctx-thumb svg { width: 18px; height: 18px; }
.ctx-dedup { display: grid; gap: 10px; padding: 16px; }
.ctx-dedup-h { font-weight: 600; }
.ctx-dedup-row { display: grid; gap: 6px; }
.ctx-dedup-row span { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--ui-line); font-size: .875rem; }
.ctx-dedup-row svg { width: 16px; height: 16px; color: var(--ui-soft); }
.ctx-dedup-ok { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--lime); color: var(--on-lime); font-size: .875rem; font-weight: 600; }
.ctx-dedup-ok svg { width: 18px; height: 18px; }

/* La app de gestión */
.ctx-app { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 4vw, 64px); padding-inline: clamp(8px, 2vw, 28px); }
.ctx-shot { position: relative; margin: 0; padding-bottom: clamp(40px, 4vw, 56px); }
.ctx-shot-win { padding: 0 8px 8px; border-radius: 16px; background: #101722; box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08); overflow: hidden; }
.ctx-shot-win .dv-bar { height: 30px; }
.ctx-shot-win img { width: 100%; height: auto; border-radius: 6px; }
.ctx-shot-cap { margin-top: 14px; font-size: .875rem; color: #aeb9c7; }
.ctx-sync { position: absolute; z-index: 3; left: clamp(-24px, -1.6vw, -10px); bottom: clamp(52px, 5vw, 72px); width: min(78%, 340px); padding: 14px 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.ctx-sync-h { display: flex; align-items: center; gap: 8px; }
.ctx-sync-h svg { width: 18px; height: 18px; color: #178a45; }
.ctx-sync-h b { flex: 1; font-weight: 600; }
.ctx-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.ctx-steps li { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: .8125rem; color: var(--ui-soft); line-height: 1.2; }
.ctx-steps svg { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--ui-line); transition: background-color .25s ease, color .25s ease; }
.ctx-steps li.is-done svg { background: var(--lime); color: var(--on-lime); }
.ctx-sync-ok { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 10px; border-radius: 10px; background: #e3f5ea; color: #13703a; font-weight: 600; font-size: .875rem; }
.ctx-sync-ok svg { width: 18px; height: 18px; }
.ctx-shield { position: absolute; z-index: 3; right: clamp(-20px, -1.4vw, -8px); top: clamp(44px, 5vw, 70px); display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 18px 10px 10px; border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.ctx-shield b { display: block; font-size: 1rem; font-weight: 600; }
.ctx-shield span:last-child { color: var(--ui-soft); font-size: .875rem; line-height: 1.25; }
.ctx-shield-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: var(--lime); }
.ctx-shield-ico svg { width: 20px; height: 20px; }
.ctx-mods { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
.ctx-mods b { font-size: 1.125rem; }
.ctx-mods span { font-size: var(--t-body); }
.bg-navy .ctx-mods li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .16); }

/* Testimonio */
.ctx-quote { margin: 0; padding-right: clamp(var(--tile-pad), 14vw, 220px); }
.ctx-quote .tile-copy { max-width: 46em; }
.ctx-quote blockquote { font-size: var(--t-lead); line-height: 1.3; letter-spacing: -0.018em; font-weight: 500; }
.ctx-quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: var(--t-small); color: var(--soft); line-height: 1.3; }
.ctx-quote figcaption b { display: block; color: var(--ink); font-weight: 600; }
.ctx-av { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--lime); color: var(--on-lime); font-weight: 600; }
.ctx-quote-3d { width: clamp(90px, 10vw, 160px); right: clamp(16px, 3vw, 48px); top: 50%; margin-top: clamp(-80px, -5vw, -45px); }

/* Ajustes tras la primera revisión */
@media (min-width: 1024px) { .ctx-challenge { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
#cs-hicimos .sec-head > div { max-width: 66rem; }
.ctx-go strong { font-size: clamp(1.375rem, 1.9vw, 2rem); overflow-wrap: anywhere; }
@media (min-width: 721px) { .ctx-shot-cap { text-align: right; } }

/* Modo oscuro */
html.dark .t-white .ctx-ok, html.dark .ctx-sync-ok { background: rgba(127, 227, 174, .14); color: #7fe3ae; }
html.dark .t-white .ctx-acct { background: var(--surface); }
html.dark .t-white .ctx-tiers li.is-on { background: var(--lime); color: var(--on-lime); }
html.dark .t-white .ctx-tiers li.is-on svg { color: var(--on-lime); }
html.dark .t-white .ctx-rows svg { color: var(--lime); }

@media (max-width: 1023px) {
  .ctx-app { grid-template-columns: minmax(0, 1fr); }
  .ctx-meta { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .ctx-waffle-grid { gap: 6px; }
  .ctx-waffle-grid span { border-radius: 8px; }
  .ctx-b2b { padding: 16px; }
  .ctx-tiers li { font-size: .8125rem; }
  .ctx-tiers svg { display: none; }
  .ctx-sync { position: relative; left: auto; bottom: auto; width: 100%; margin-top: -24px; }
  .ctx-shield { right: 8px; top: 40px; padding: 6px 12px 6px 6px; gap: 8px; }
  .ctx-shield b { font-size: .875rem; }
  .ctx-shield span:last-child { font-size: .8125rem; }
  .ctx-shield-ico { width: 30px; height: 30px; }
  .ctx-shot { padding-bottom: 0; }
  .ctx-quote { padding-right: var(--tile-pad); padding-top: calc(var(--tile-pad) + 88px); }
  .ctx-quote-3d { width: 72px; top: 6px; margin-top: 0; }
  .ctx-x > svg { position: static; margin-bottom: 10px; }
  .ctx-go strong { font-size: 1.125rem; }
}
