/* Caso ToyoEnLinea (prefijo cte-). Se suma a caso.css; las escenas están en caso-toyoenlinea.js. */

/* Resultados: los tres módulos se unen en una plataforma */
.cte-mods { display: grid; align-content: center; gap: 8px; }
.cte-mod { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 14px; background: rgba(255, 255, 255, .08); font-weight: 500; transition: background-color .3s ease, color .3s ease; }
.cte-mod.is-on { background: var(--lime); color: var(--on-lime); }
.cte-mod-ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .12); color: var(--lime); }
.cte-mod.is-on .cte-mod-ico { background: var(--navy); }
.cte-mod-ico svg { width: 18px; height: 18px; }
.cte-mod-join { justify-self: center; width: 2px; height: 22px; background: var(--lime); transform-origin: 50% 0; }
.cte-mod-all { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 14px; border-radius: 14px; background: #ffffff; color: #1d2a3d; font-weight: 600; }
.cte-mod-all svg { width: 18px; height: 18px; color: #5f6800; }
.cte-weeks { background: var(--navy); color: #f2f5f8; }
.stat.cte-weeks { background: var(--navy); }
.cte-weeks strong { color: var(--lime); }
.cte-weeks .stat-l { color: #c8d1dc; }

/* El contexto: buscar una pieza antes */
.cs-challenge .tile-p b { font-weight: 600; }
.cte-hunt { width: min(100%, 460px); padding: 18px 20px; font-size: 1rem; }
.cte-hunt-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cte-hunt-h b { display: block; font-weight: 600; }
.cte-hunt-h > span:first-child { font-size: .875rem; color: var(--ui-soft); line-height: 1.3; }
.cte-hunt-list { display: grid; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.cte-hunt-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 12px; background: var(--ui-line); }
.cte-hunt-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ui-bg); color: var(--ui-soft); }
.cte-hunt-ico svg { width: 17px; height: 17px; }
.cte-hunt-list b { font-size: .875rem; font-weight: 600; color: #c2362f; }
html.dark .cte-hunt-list b { color: #ff8a80; }
.cte-hunt-now { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--lime); color: var(--on-lime); line-height: 1.25; }
.cte-hunt-now b { display: block; font-weight: 600; }
.cte-hunt-now svg { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--navy); color: var(--lime); }

/* Los módulos */
.cte-n { display: inline-grid; place-items: center; min-width: 34px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--navy); color: var(--lime); font-size: .875rem; font-weight: 600; }
.t-navy .cte-n, .t-lime .cte-n { background: var(--lime); color: var(--on-lime); }
.t-lime .cte-n { background: var(--navy); color: var(--lime); }
.cs-work .tile-copy .tile-p { margin-top: 12px; }
.t-navy.cs-work .tile-p { color: #dbe2ea; }

/* 01: el buscador ordena por distancia */
.cte-search { width: min(100%, 520px); padding: 16px 18px; font-size: 1rem; }
.cte-q { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: 999px; background: var(--ui-line); font-weight: 500; }
.cte-q svg { width: 18px; height: 18px; color: var(--ui-soft); }
.cte-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.cte-filters > span:not(.cs-eg) { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--navy); color: #ffffff; font-size: .875rem; font-weight: 500; }
.cte-filters svg { width: 14px; height: 14px; color: var(--lime); }
.cte-filters .cs-eg { margin-left: auto; }
.cte-res { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.cte-res li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border-radius: 12px; background: var(--ui-line); }
.cte-res li:first-child { box-shadow: inset 0 0 0 2px var(--lime); }
.cte-res-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--lime); color: var(--on-lime); }
.cte-res-ico svg { width: 18px; height: 18px; }
.cte-res-t { font-size: .875rem; color: var(--ui-soft); line-height: 1.25; }
.cte-res-t b { display: block; font-size: .9375rem; font-weight: 600; color: var(--ui-ink); }
.cte-call { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #157a3f; color: #ffffff; font-size: .8125rem; font-weight: 600; }
.cte-call svg { width: 14px; height: 14px; }

/* 02 y 03: fichas */
.cte-card { width: min(100%, 420px); padding: 16px 18px; font-size: 1rem; }
.cte-card-h { display: flex; align-items: center; gap: 12px; line-height: 1.25; }
.cte-card-h > span:nth-child(2) { flex: 1; min-width: 0; font-size: .875rem; color: var(--ui-soft); }
.cte-card-h b { display: block; font-size: 1rem; font-weight: 600; color: var(--ui-ink); }
.cte-card-ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--navy); color: var(--lime); }
.cte-card-ico svg { width: 20px; height: 20px; }
.cte-card-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.cte-card-rows li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--ui-line); font-size: .875rem; font-weight: 500; line-height: 1.2; }
.cte-card-rows svg { flex: none; width: 17px; height: 17px; color: #5f6800; }
.cte-shop-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cte-shop-tags span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--ui-line); font-size: .875rem; font-weight: 500; }
.cte-shop-tags svg { width: 15px; height: 15px; color: #5f6800; }
.cte-shop-btn { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding: 11px 16px; border-radius: 999px; background: var(--lime); color: var(--on-lime); font-weight: 600; }
.cte-shop-btn svg { width: 18px; height: 18px; }
.cte-shop-btn.is-done { background: #157a3f; color: #ffffff; }

/* 04: panel del proveedor */
.cte-panel { width: min(100%, 560px); padding: 16px 18px; font-size: 1rem; }
.cte-panel-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.cte-panel-h b { font-weight: 600; }
.cte-fee { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--lime); color: var(--on-lime); font-size: .875rem; font-weight: 600; }
.cte-fee svg { width: 14px; height: 14px; }
.cte-panel-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 16px; margin-top: 12px; }
.cte-panel-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cte-panel-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--ui-line); font-size: .9375rem; font-weight: 500; }
.cte-panel-list svg { flex: none; width: 18px; height: 18px; color: var(--brand); }
.cte-panel .bar-row { height: 112px; }
html.dark .t-white #bars .bar-row span { background: #8fa0bb; }
html.dark .t-white #bars .bar-row span:last-child { background: var(--lime); }

/* Detalles técnicos: lista en dos columnas */
.cte-tech { padding: clamp(14px, 1.8vw, 26px) var(--tile-pad); }
.cte-tech-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(20px, 3vw, 48px); margin: 0; padding: 0; list-style: none; }
.cte-tech-list li { display: grid; grid-template-columns: 28px 42px minmax(0, 1fr); align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); line-height: 1.35; }
.cte-tech-list li:nth-child(-n+2) { border-top: 0; }
.cte-tech-n { font-size: .875rem; font-weight: 600; color: var(--soft); font-variant-numeric: tabular-nums; }
.cte-tech-list .ico-box { background: var(--lime); color: var(--on-lime); }
.cte-badge { display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 999px; background: var(--navy); color: var(--lime); font-size: .8125rem; font-weight: 600; vertical-align: 1px; }
html.dark .cte-badge { background: var(--lime); color: var(--on-lime); }

/* Testimonio */
#cs-testimonio .quote-main { max-width: 34em; margin: 0; padding-inline: clamp(8px, 2vw, 28px); text-align: left; font-size: clamp(1.5rem, 2.4vw, 2.25rem); }
#cs-testimonio .quote-main blockquote { line-height: 1.15; letter-spacing: -0.028em; }
.cte-quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 22px; line-height: 1.3; }
.cte-quote figcaption b { display: block; color: var(--ink); font-weight: 600; }
.cte-av { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--lime); font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; }

/* Titular vigente largo en el contexto: más ancho para que quepa en dos líneas */
@media (min-width: 1024px) { .cs-challenge.split { grid-template-columns: 6fr 5fr; } }

@media (max-width: 1023px) {
  .cte-tech-list { grid-template-columns: minmax(0, 1fr); }
  .cte-tech-list li:nth-child(2) { border-top: 1px solid var(--border); }
}
@media (max-width: 720px) {
  .cte-hunt, .cte-search, .cte-card, .cte-panel { padding: 14px; }
  .cte-hunt-list li { grid-template-columns: 34px minmax(0, 1fr); }
  .cte-hunt-list b { grid-column: 2; margin-top: -6px; }
  .cte-res li { grid-template-columns: 38px minmax(0, 1fr); }
  .cte-call { grid-column: 2; justify-self: start; }
  .cte-card-rows { grid-template-columns: minmax(0, 1fr); }
  .cte-panel-in { grid-template-columns: minmax(0, 1fr); }
  .cte-tech-list li { grid-template-columns: 42px minmax(0, 1fr); gap: 4px 14px; }
  .cte-tech-n { grid-column: 2; }
  .cte-tech-list .ico-box { grid-row: 1 / span 2; grid-column: 1; }
}

/* Leyenda de la captura: a la izquierda, para que el sello de la derecha no la tape */
.cs-stage .cs-cap { align-self: stretch; max-width: min(54%, 22em); text-align: left; }
