.gallery-intro { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 3rem; margin-bottom: 2.3rem; }
.gallery-intro h2 { max-width: 15ch; font-size: clamp(2.55rem, 5.4vw, 5rem); line-height: .98; letter-spacing: -.068em; }
.gallery-intro h2 span { color: #567e48; }
.gallery-intro > p { max-width: 33ch; }
.gallery-group { min-width: 0; }
.gallery-bar { display: flex; align-items: center; justify-content: space-between; gap: .85rem; margin: 0 0 .65rem; }
.gallery-bar h3 { font-size: clamp(1.14rem, 2.2vw, 1.65rem); line-height: 1.2; letter-spacing: -.045em; }
.gallery-nav { display: flex; align-items: center; gap: .35rem; flex: none; }
.gallery-index { font: 600 .8rem ui-monospace, Consolas, monospace; letter-spacing: .04em; color: #4a594e; margin-right: .4rem; }
.gallery-nav button { border: 1px solid #acb8a9; width: 44px; height: 44px; color: #20462d; background: #fafbf5; border-radius: 50%; font-size: 1.15rem; line-height: 1; }
.gallery-nav button:hover:enabled { background: #deedcc; border-color: #7e987e; }
.gallery-nav button:disabled { opacity: .39; cursor: default; }
.gallery-nav .gallery-rotation { display:grid; place-items:center; color:#294a39; background:#e4ecdb; }
.gallery-rotation::before { content:''; width:10px; height:12px; border-inline:3px solid currentColor; box-sizing:border-box; }
.gallery-rotation[data-paused="true"]::before { width:0; height:0; border:0; border-left:10px solid currentColor; border-block:6px solid transparent; margin-left:2px; }
.gallery-nav .gallery-rotation[hidden] { display:none; }
.product-picker { display: flex; gap: .35rem; flex-wrap: wrap; border-bottom: 1px solid #c9d2c5; padding-bottom: .65rem; margin-bottom: .75rem; }
.product-picker button { border: 1px solid transparent; padding: .57rem .78rem; min-height: 44px; background: transparent; border-radius: 2rem; font-size: .91rem; line-height: 1.13; font-weight: 630; color: #4c6054; white-space: nowrap; }
.product-picker button:hover { background: #e5eade; }
.product-picker [aria-pressed="true"] { background: #233e2f; border-color: #233e2f; color: #f3f6ec; }
.product-picker [aria-pressed="true"]:hover { background: #34533d; }
.gallery-track { display: grid; grid-auto-flow: column; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; gap: 1rem; scrollbar-width: thin; scrollbar-color: #9daf9d #e6ebdf; }
.gallery-track > article { scroll-snap-align: start; min-width: 0; }
.tools-track { grid-auto-columns: 100%; border-radius: 1.4rem; scrollbar-width: none; }
.tools-track::-webkit-scrollbar { display: none; }
.tool-card { --signal: #cdeaa7; --signal-ink: #294629; --plate: #203a32; --plate-rgb: 32,58,50; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0,1.05fr); align-items: center; position: relative; isolation: isolate; padding: clamp(1.3rem,3.4vw,3.8rem); gap: clamp(1.25rem,4vw,5rem); background: radial-gradient(ellipse at 90% 55%,var(--plate) 0%,#122820 68%); color: #f5f7ef; border-radius: 1.4rem; overflow: hidden; }
.tool-card[data-scene="dte"] { --signal: #f4d596; --signal-ink:#65471d; --plate:#504932; --plate-rgb:80,73,50; }
.tool-card[data-scene="costos"] { --signal:#f1c9aa; --signal-ink:#6d432a; --plate:#644c39; --plate-rgb:100,76,57; }
.tool-card[data-scene="facturas"] { --signal:#dccce7; --signal-ink:#593d67; --plate:#484153; --plate-rgb:72,65,83; }
.tool-card[data-scene="compras"] { --signal:#bcdfdf; --signal-ink:#2c5159; --plate:#315055; --plate-rgb:49,80,85; }
.tool-card[data-scene="conocimiento"] { --signal:#d7d3f3; --signal-ink:#474268; --plate:#41475e; --plate-rgb:65,71,94; }
.tool-copy { max-width: 30rem; }
.tool-copy > p { color: var(--signal); font-size: .82rem; font-weight: 660; }
.tool-copy h4 { margin: .55rem 0 .85rem; font-size: clamp(2.1rem,4.25vw,4.15rem); font-weight: 680; letter-spacing: -.06em; line-height: 1; text-wrap: balance; }
.tool-desc { max-width: 38ch; color: #dbe3d9; font-size: 1rem; line-height: 1.55; }
.tool-copy button { min-height: 46px; margin-top: 1.45rem; padding: .7rem 1rem; display: inline-flex; gap: 1rem; align-items: center; border: 0; border-radius: .65rem; background: var(--signal); color: #17251e; font-weight: 740; }
.tool-copy button:hover { filter: brightness(1.08); }
.demo-desk { position: relative; isolation: isolate; min-width: 0; margin: 0; width: 100%; padding: clamp(.85rem,2.5vw,2rem); background-image: radial-gradient(circle,#e1e9d32b 1px,transparent 1px); background-size: 15px 15px; }
.intake-strip { position: relative; display: flex; align-items:center; gap: .7rem; background: #1d2b26; border: 1px solid #879b87; padding: .65rem .9rem; width: 91%; min-width: 0; border-radius: .75rem .75rem .75rem .2rem; box-shadow: 0 .45rem 1rem #06140e30; }
.intake-strip small { color: var(--signal); font: 650 .65rem/1.15 ui-monospace,Consolas,monospace; letter-spacing: .04em; text-transform: uppercase; }
.intake-strip p { margin-top: .2rem; font-size: .86rem; line-height: 1.35; }
.intake-mark { display: inline-block; width: .85rem; height: .67rem; border: 1.6px solid var(--signal); border-radius: .22rem .22rem .22rem 0; flex: none; }
.desk-route { width: 35%; height: 2.7rem; position: relative; margin: 0 0 0 19%; color: var(--signal); }
.desk-route::before,.desk-route::after { content: ''; display: block; position: absolute; height: 50%; width: 100%; border-color: #a6b69a; border-style: dashed; }
.desk-route::before { left: 0; top: 0; border-width: 0 0 1px 1px; border-bottom-left-radius: 8px; }
.desk-route::after { top: 50%; border-width: 0 1px 0 0; }
.desk-route i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px var(--signal); }
.desk-route i:first-child { top: 0; left: -3px; }
.desk-route i:last-child { right: -3px; bottom: -2px; }
.output-paper { position: relative; margin-left: auto; width: min(89%, 27rem); padding: 1rem 1.15rem .95rem; color: #192d22; background: #fffef5; border: 1px solid #eeeede; border-radius: .8rem; box-shadow: 0 13px 26px #0817113b, 4px 4px 0 #c6c7af; }
.paper-title { display: flex; align-items: center; justify-content: space-between; font-size: 1.08rem; font-weight: 750; letter-spacing: -.03em; padding-bottom: .65rem; border-bottom: 1px solid #d0d6c6; }
.paper-icon { width: .77rem; height: .93rem; border: 1.4px solid #7d8a77; border-radius: .13rem; background: repeating-linear-gradient(to bottom, transparent 0 3px, #b2bda660 3px 4px); }
.output-paper dl { margin: .65rem 0 .7rem; }
.output-paper dl > div { display: flex; justify-content: space-between; gap: .6rem; margin-top: .3rem; align-items: baseline; }
.output-paper dt { color: #556554; font-size: .82rem; }.output-paper dd { margin: 0; font: 570 .82rem/1.4 ui-monospace,Consolas,monospace; text-align: right; }
.paper-comparison > div { position: relative; padding-bottom: .3rem; }
.paper-comparison > div::after { content: ''; height: 2px; inset: auto 0 0; position: absolute; background: linear-gradient(90deg,var(--signal-ink),var(--signal)); transform: scaleX(var(--fraction)); transform-origin: 0 50%; opacity: .65; }
.tool-card[data-scene="conocimiento"] .output-paper { border-left: .3rem solid var(--signal); border-radius: .2rem .8rem .8rem .2rem; }
.tool-card[data-scene="conocimiento"] .paper-title::after { content:''; width:.7rem; height:1.2rem; clip-path: polygon(0 0,100% 0,100% 100%,50% 73%,0 100%); background: var(--signal-ink); }
.tool-card[data-scene="conocimiento"] .paper-icon { display:none; }
.paper-total { display: flex; align-items: center; justify-content: space-between; gap: .6rem; background: var(--signal); color: var(--signal-ink); padding: .5rem .6rem; border-radius: .35rem; }
.paper-total small { font-size: .74rem; font-weight: 650; line-height: 1.2; }.paper-total strong { font: 760 clamp(1.05rem,2.3vw,1.65rem)/1 ui-monospace,Consolas,monospace; letter-spacing: -.055em; white-space: nowrap; }
.studio-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; color: #566658; font-size: .8rem; padding: .2rem .1rem; }
.scene-replay { min-height: 44px; border: none; background: transparent; color: #35533e; font-weight: 650; }
.scene-replay span { display: inline-block; font-size: 1.1rem; margin-right: .2rem; }
.customer-group { margin-top: clamp(2rem, 4vw, 3.6rem); }
.customer-track { grid-auto-columns: 32%; padding-bottom: .9rem; }
.lodging-story .product-scene { background: linear-gradient(135deg,#d3dfbb,#93af8a); }
.lodging-story .sample-sheet { transform: rotate(3deg); border-left: .3rem solid #647b52; }
@media (max-width:860px) {
  .customer-track { grid-auto-columns: 47%; }
  .tool-card { gap: 1.2rem; padding: 1.45rem; }
  .demo-desk { padding: .55rem; }
  .output-paper { width: 94%; }
}
@media(max-width:620px) {
  .gallery-intro { margin-bottom: 1.45rem; gap: .7rem; }
  .gallery-intro > p { font-size: .98rem; line-height: 1.45; }
  .gallery-track { gap: .65rem; }
  .customer-track { grid-auto-columns: 89%; }
  .product-picker { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: .45rem; }
  .product-picker button { padding-inline: .7rem; flex-shrink:0; font-size: .86rem; }
  .tools-group .gallery-bar { position:sticky; top:0; z-index:2; gap:.36rem; min-height:48px; padding-block:2px; background:#f7f7f0; }
  .tools-group .gallery-bar h3 { min-width:0; font-size:1.05rem; }
  .tools-group .gallery-nav { gap:.15rem; }
  .tool-card { grid-template-columns: minmax(0,1fr); gap: .65rem; padding: 1rem; }
  .tool-copy { max-width: 100%; }.tool-copy h4 { font-size: clamp(1.87rem,7vw,2.5rem); margin: .35rem 0 .5rem; }
  .tool-copy > p { font-size: .75rem; }
  .tool-desc { font-size: .93rem; line-height: 1.4; }
  .tool-copy button { margin-top: .65rem; }
  .demo-desk { padding: .35rem .1rem; }
  .intake-strip { width: 96%; padding: .5rem .65rem; }
  .desk-route { height: 1.6rem; }
  .output-paper { padding: .65rem .75rem; width: 91%; }
  .output-paper dl { margin: .45rem 0; }
  .paper-title { font-size: .94rem; padding-bottom: .45rem; }
  .gallery-index { margin-right:.05rem; }
}
@media (prefers-reduced-motion:no-preference) {
  .tool-card[data-running] .intake-strip { animation: scene-source .45s ease-out both; }
  .tool-card[data-running] .desk-route i:first-child { animation: scene-traverse 1.1s .32s ease-in-out both; }
  .tool-card[data-running] .output-paper { animation: scene-paper .5s .95s ease-out both; }
  .tool-card[data-running] .paper-total { animation: scene-sum .68s 1.3s ease-out both; }
  .tool-card[data-running] .paper-comparison > div::after { animation: scene-measure .65s 1.15s ease-out backwards; }
  .customer-track .product-story[data-running] .sample-sheet { animation: customer-sheet .55s ease-out both; }
}
@keyframes scene-source { from { opacity:.25; transform:translateY(.45rem); } }
@keyframes scene-traverse { 0% {left:0;top:0;opacity:0;} 12% {opacity:1;} 25% {left:0;top:46%;} 76% {left:99%;top:46%;} 100% {left:99%;top:90%;opacity:0;} }
@keyframes scene-paper { from { opacity:.35; transform:translateY(.6rem); } }
@keyframes scene-sum { from { background:#f3f2e9; transform:translateY(.22rem); } }
@keyframes scene-measure { from { transform:scaleX(0); } }
@keyframes customer-sheet { from { opacity:.5; translate:0 .45rem; } }
