/* Types of Solutions, sideways (Alan, 2026-11-16, after the Lusion case pages: "tenés que ir para abajo con el
   scroll pero vas para el costado"). On big screens the block holds still while the scroll carries a row of large
   product screens to the left, one still screen per product ("tiene que ser 1 sola").
   Phones, small windows and reduced motion get the same row as a native swipe.
   Panels (.pn) are drawn at 520 × 325 and scaled with --k (set by ../js/tipos.js); each page draws its own screens
   in css/productos.css. Shared by the industry pages. */

/* ================= the block and its row ================= */
.tph { --fw: min(84vw, 620px); --fh: calc(var(--fw) / 1.6); --pad: max(var(--side), calc((100vw - var(--max)) / 2 + var(--side))); overflow: hidden; }
.tph-intro { max-width: var(--max); margin: 0 auto clamp(28px, 4vw, 48px); padding-inline: var(--side); }
.tph-cue { display: none; }
.tph-list {
  display: flex; gap: clamp(18px, 2vw, 28px); padding: 4px var(--pad) 12px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none;
}
.tph-list::-webkit-scrollbar { display: none; }
.tph-list::after { content: ""; flex: none; width: 1px; } /* Safari drops the end padding of a scrolling row */
.tph-item { flex: none; width: var(--fw); scroll-snap-align: start; }
.tph-frame {
  position: relative; width: var(--fw); height: var(--fh); border-radius: 16px; overflow: hidden; background: #121316;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 30px 60px -32px rgba(0,0,0,.55);
}
.tph-cap { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: baseline; padding-bottom: 16px; } /* the name sits above its screen (Alan: below it was easy to miss) */
.tph-i { font-family: var(--f-code); font-size: 12.5px; line-height: 1.75; color: var(--mute-l); }
.tph-name { font-family: var(--f-display); font-weight: 500; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.25; letter-spacing: -.015em; text-wrap: balance; }
.tph-prog { display: none; }

/* big screens: the block is pinned and the whole row, title first, moves sideways with the scroll */
.tph.is-pin { --fh: clamp(320px, 64svh, 680px); --fw: calc(var(--fh) * 1.6); padding-block: 0; }
.tph.is-pin .tph-pin { position: relative; height: 100vh; display: flex; align-items: center; padding-top: var(--nav-h); padding-bottom: 72px; } /* the bottom keeps clear of the progress line */
.tph.is-pin .tph-track { display: flex; align-items: center; gap: clamp(40px, 5vw, 96px); width: max-content; padding-inline: var(--pad) 8vw; will-change: transform; }
.tph.is-pin .tph-intro { flex: none; width: min(420px, 30vw); margin: 0 0 calc(var(--fh) * .12); padding: 0; }
.tph.is-pin .tph-intro .sh-t { max-width: 11ch; }
.tph.is-pin .tph-cue { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-family: var(--f-code); font-size: 12.5px; letter-spacing: .04em; color: var(--mute-l); }
.tph.is-pin .tph-cue svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tph.is-pin .tph-list::after { display: none; }
.tph.is-pin .tph-list { overflow: visible; padding: 0; gap: clamp(40px, 4.4vw, 80px); scroll-snap-type: none; }
.tph.is-pin .tph-prog { display: block; position: absolute; left: var(--side); right: var(--side); bottom: clamp(18px, 3svh, 32px); height: 2px; border-radius: 1px; background: var(--line-l); }
.tph.is-pin .tph-prog i { display: block; width: 100%; height: 100%; border-radius: 1px; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ================= a panel: one screen of a product on the dark canvas ================= */
.pn {
  position: absolute; left: 0; top: 0; width: 520px; height: 325px; overflow: hidden;
  transform-origin: 0 0; scale: var(--k, .6);
  background: radial-gradient(95% 85% at 50% 0%, #2a2d35 0%, #17181c 55%, #101114 100%);
  color: var(--ink); font-size: 11px; line-height: 1.3;
}
.pn-in { position: absolute; inset: 0; transform-origin: 50% 100%; transition: transform 1s var(--ease-out); }
/* a desktop window rising from the bottom edge (its .dk-app is 520 wide, scaled to 452) */
.pn-win {
  position: absolute; left: 34px; right: 34px; bottom: -1px; height: 284px; overflow: hidden;
  border-radius: 9px 9px 0 0; background: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px -20px rgba(0,0,0,.7);
  --dk-k: .8692;
}
.pn-win.is-dark { background: #0d0e11; }
/* app screens, drawn at 200 × 413 like the phones, shown at 70% with no phone around them */
.pn-apps { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-start; gap: 26px; padding-top: 40px; }
.ap-w { flex: none; width: 140px; height: 289px; }
.ap-w + .ap-w { margin-top: 22px; }
.ap {
  position: relative; width: 200px; height: 413px; scale: .7; transform-origin: 0 0;
  border-radius: 30px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 40px 60px -24px rgba(0,0,0,.8);
}
.ap > .ph-scr { border-radius: 0; padding-top: 38px; }
.ap-top { position: absolute; z-index: 2; left: 22px; top: 14px; font-size: 10.5px; font-weight: 600; color: #1a1a1a; }

/* app atoms, shared by the pages' screens */
.ap-h { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 12.5px; }
.ap-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #eceef1; }
.ap-card { display: grid; gap: 6px; padding: 10px; border-radius: 12px; background: #f4f5f7; }
.ap-big { font-size: 20px; font-weight: 600; letter-spacing: -.03em; }
.ap-btn { margin-top: auto; padding: 10px; border-radius: 999px; text-align: center; font-weight: 600; background: var(--ink); color: #fff; }
.ap-btn.is-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #dfe2e7; }
.ap-btn + .ap-btn { margin-top: 0; }
.ap-bar { display: block; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--blue) calc(var(--v) * 100%), #dfe3ea 0); }
.ap-tog { position: relative; flex: none; width: 30px; height: 18px; border-radius: 999px; background: #dfe2e7; }
.ap-tog::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.ap-tog.is-on { background: var(--run); }
.ap-tog.is-on::after { left: 14px; }
.ap-ok { display: grid; place-items: center; width: 54px; height: 54px; margin: 18px auto 6px; border-radius: 50%; background: #e5f6ee; }
.ap-ok::after { content: ""; width: 11px; height: 21px; margin-top: -5px; border: solid #1f9a5f; border-width: 0 3px 3px 0; transform: rotate(45deg); }
/* a padlock instead of the check */
.ap-ok.is-lock { background: #fdeceb; }
.ap-ok.is-lock::after { content: none; }
.ap-ok.is-lock svg { width: 26px; height: 26px; }
.ap-ok.is-lock rect { fill: #c2410c; }
.ap-ok.is-lock path { fill: none; stroke: #c2410c; stroke-width: 2.2; stroke-linecap: round; }
.ap-c { text-align: center; }
.ap-list { display: grid; }
.ap-li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid #eceef1; }
.ap-li > span { display: grid; min-width: 0; }
.ap-li > span > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-ic { position: relative; width: 26px; height: 26px; border-radius: 50%; background: var(--c, #e8f0fe); }
.ap-ic.is-done { background: #e5f6ee; }
.ap-ic.is-done::after { content: ""; position: absolute; left: 10px; top: 7px; width: 5px; height: 10px; border: solid #1f9a5f; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ap-ic.is-now { background: #fff; box-shadow: inset 0 0 0 2px var(--blue); }
.ap-ic.is-now::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--blue); }
.ap-pos { color: #1f9a5f; }
.ap-chips { display: flex; gap: 5px; }
.ap-chips i { flex: 1; font-style: normal; text-align: center; padding: 6px 0; border-radius: 8px; background: #f1f2f5; font-weight: 600; font-size: 10.5px; }
.ap-chips i.is-on { background: var(--ink); color: #fff; }
.ap-step { font-size: 10px; font-weight: 600; letter-spacing: .02em; color: var(--blue); }


/* ================= prototype only: switch between this version and the phones and laptops ================= */
.tp-pick {
  position: fixed; z-index: 60; left: 50%; bottom: 18px; transform: translate(-50%, calc(100% + 120px));
  display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px; font-size: 13px;
  background: rgba(20, 20, 22, .84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 20px 40px -20px #000; transition: transform .5s var(--ease-out);
}
.tp-pick.is-on { transform: translate(-50%, 0); }
.tp-pick span { padding: 0 10px 0 12px; color: var(--mute-d); }
.tp-pick a { white-space: nowrap; padding: 7px 14px; border-radius: 999px; color: #d6d9de; transition: background-color .25s, color .25s; }
.tp-pick a:hover { background: rgba(255,255,255,.1); }
.tp-pick a[aria-current] { background: #fff; color: #000; }
@media (max-width: 760px) { .tp-pick { bottom: 80px; } .tp-pick span { display: none; } }
