/* Puntos · Moxen -> OCB "Projekte" showcase.
   Stacked project sheets (the new one slides in on top, the old one sinks
   and darkens), drag/swipe, and the gooey stretching dot pagination.
   Everything is scoped under .mx-puntos. Colours map to the site tokens
   (--ink, --ink-2, --line, --bone, --muted, --violet, --plasma ...) with
   fallbacks, so the component also works on a page without them. */
.mx-puntos {
  --pt-ink: var(--ink, #0A0A12);
  --pt-ink-2: var(--ink-2, #14141F);
  --pt-line: var(--line, #262636);
  --pt-bone: var(--bone, #F2EFE8);
  --pt-muted: var(--muted, #9B98A8);
  --pt-violet: var(--violet, #6B4BFF);
  --pt-plasma: var(--plasma, #FF5B2E);
  --pt-filo: rgba(255, 255, 255, .07);
  --pt-velo-max: .66;
  --pt-luz: rgba(107, 75, 255, .10);
  /* the dots (solid colours: with transparency the goo filter eats them) */
  --pt-punto: #4a4763;
  --pt-activo: var(--pt-violet);
  --pt-tam: 10px;
  --pt-sep: 34px;
  --pt-largo: 40px;
  --pt-grueso: 12px;
  --pt-curva: cubic-bezier(.22, 1, .36, 1);
  --pt-rebote: cubic-bezier(.34, 1.56, .64, 1);
  --pt-display: "Unbounded", system-ui, sans-serif;
  --pt-body: "Manrope", system-ui, sans-serif;
  --pt-mono: "JetBrains Mono", ui-monospace, monospace;

  position: relative; width: 100%; max-width: 1240px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 26px;
  color: var(--pt-bone); font-family: var(--pt-body); -webkit-font-smoothing: antialiased;
}
.mx-puntos *, .mx-puntos *::before, .mx-puntos *::after { box-sizing: border-box; }
.mx-puntos .pt-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.mx-puntos .pt-oculto { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── the viewport: a well the old sheets sink into ─────────────────── */
.mx-puntos .pt-visor {
  position: relative; width: 100%; height: 560px; border-radius: 28px; overflow: hidden; isolation: isolate;
  background: #06060b;
  box-shadow: inset 0 0 0 1px var(--pt-line), 0 30px 80px -30px rgba(0, 0, 0, .8), 0 60px 120px -60px rgba(107, 75, 255, .25);
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.mx-puntos .pt-visor.is-arrastrando { cursor: grabbing; }

.mx-puntos .pt-diapo {
  position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); border-radius: inherit;
  background:
    radial-gradient(70% 60% at 0% 0%, color-mix(in srgb, var(--c1, #6B4BFF) 16%, transparent), transparent 70%),
    linear-gradient(155deg, #191927, var(--pt-ink-2) 45%, #0e0e18);
  box-shadow: inset 0 1px 0 var(--pt-filo), inset 0 0 0 1px var(--pt-line), -26px 0 60px -14px rgba(0, 0, 0, .75);
  transform-origin: 50% 50%; will-change: transform; backface-visibility: hidden;
}
.mx-puntos .pt-velo { position: absolute; inset: 0; border-radius: inherit; background: #000; opacity: 0; pointer-events: none; z-index: 3; }

/* ── left: the text ──────────────────────────────────────────────── */
.mx-puntos .pt-texto {
  position: relative; display: flex; flex-direction: column; gap: 22px; min-width: 0;
  padding: 44px 28px 44px 48px; will-change: transform, opacity;
}
.mx-puntos .pt-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mx-puntos .pt-paso { font: 500 12px/1 var(--pt-mono); letter-spacing: .16em; color: var(--pt-muted); font-variant-numeric: tabular-nums; }
.mx-puntos .pt-paso b { font-weight: 500; color: var(--pt-bone); }
.mx-puntos .pt-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 999px;
  font: 500 11px/1 var(--pt-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--pt-bone);
  background: rgba(242, 239, 232, .06); box-shadow: inset 0 0 0 1px var(--pt-line);
}
.mx-puntos .pt-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c1, #6B4BFF); box-shadow: 0 0 10px var(--c1, #6B4BFF); }
.mx-puntos .pt-cuerpo { margin-top: auto; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mx-puntos .pt-titulo {
  margin: 0; font-family: var(--pt-display); font-weight: 700; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.05;
  letter-spacing: -.02em; text-transform: uppercase; overflow-wrap: break-word; hyphens: manual;
}
.mx-puntos .pt-desc {
  margin: 0; max-width: 40ch; color: var(--pt-muted); font-size: 16px; line-height: 1.55;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.mx-puntos .pt-stack { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.mx-puntos .pt-stack li {
  font: 500 11px/1 var(--pt-mono); color: var(--pt-muted); padding: 6px 8px; border-radius: 6px;
  border: 1px solid var(--pt-line); background: rgba(10, 10, 18, .4); white-space: nowrap;
}
.mx-puntos .pt-pie { margin-top: auto; display: flex; align-items: center; min-height: 46px; }
.mx-puntos .pt-live {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 20px; border-radius: 999px;
  font: 700 14px/1 var(--pt-body); letter-spacing: .01em; color: var(--pt-ink); background: var(--pt-plasma); text-decoration: none;
  box-shadow: 0 14px 30px -12px rgba(255, 91, 46, .7); transition: transform .4s var(--pt-rebote), box-shadow .3s, background-color .3s;
}
.mx-puntos .pt-live svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--pt-rebote); }
.mx-puntos .pt-live:hover { background: #ff6d44; box-shadow: 0 18px 36px -12px rgba(255, 91, 46, .85); }
.mx-puntos .pt-live:hover svg { transform: translate(2px, -2px); }
.mx-puntos .pt-live:active { transform: scale(.96); transition-duration: .1s; }
.mx-puntos .pt-live:focus-visible { outline: 2px solid var(--pt-bone); outline-offset: 3px; }

/* ── right: the screenshot ───────────────────────────────────────── */
.mx-puntos .pt-arte {
  position: relative; margin: 14px 14px 14px 0; border-radius: 20px; overflow: hidden; will-change: transform;
  background:
    radial-gradient(90% 80% at 85% 0%, color-mix(in srgb, var(--c1, #6B4BFF) 38%, transparent), transparent 65%),
    radial-gradient(80% 70% at 0% 100%, color-mix(in srgb, var(--c2, #B39CFF) 22%, transparent), transparent 60%),
    #0d0d16;
  box-shadow: inset 0 0 0 1px var(--pt-line), inset 0 18px 40px -24px rgba(0, 0, 0, .6);
  --px: 0; --py: 0;
}
.mx-puntos .pt-browser {
  position: absolute; inset: 30px 30px 30px 30px; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden;
  background: #0b0b13; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -20px rgba(0, 0, 0, .8), 0 10px 20px -10px rgba(0, 0, 0, .6);
  transform: translate3d(calc(var(--px) * -7px), calc(var(--py) * -7px), 0);
  transition: transform .7s var(--pt-curva);
}
.mx-puntos .pt-bar {
  flex: none; display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px;
  background: linear-gradient(180deg, #1b1b28, #15151f); border-bottom: 1px solid var(--pt-line);
}
.mx-puntos .pt-bar > i { width: 10px; height: 10px; border-radius: 50%; background: #34324a; flex: none; }
.mx-puntos .pt-bar > i:nth-child(1) { background: var(--pt-plasma); }
.mx-puntos .pt-bar > i:nth-child(2) { background: var(--amber, #FFB547); }
.mx-puntos .pt-bar > i:nth-child(3) { background: var(--pt-violet); }
.mx-puntos .pt-url {
  flex: 0 1 auto; min-width: 0; margin: 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 12px;
  border-radius: 7px; background: rgba(242, 239, 232, .06); color: var(--pt-muted);
  font: 500 11px/1 var(--pt-mono); white-space: nowrap; transform: translateX(-17px);
}
.mx-puntos .pt-url span { overflow: hidden; text-overflow: ellipsis; }
.mx-puntos .pt-url svg { flex: none; width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mx-puntos .pt-shot { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #0d0d16; }
.mx-puntos .pt-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block;
  opacity: 0; transform: scale(1.001) translate3d(0, 0, 0);
  transition: opacity .5s ease, transform .9s var(--pt-curva);
  -webkit-user-drag: none; user-select: none; pointer-events: none;
}
.mx-puntos .is-cargada > .pt-img { opacity: 1; }
/* fallback while the screenshot is missing (404) or loading */
.mx-puntos .pt-fallback {
  position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 0%, var(--c1, #6B4BFF), transparent 60%),
    radial-gradient(90% 80% at 100% 100%, color-mix(in srgb, var(--c2, #B39CFF) 55%, transparent), transparent 60%),
    #15151f;
}
.mx-puntos .pt-fallback::after {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.mx-puntos .pt-mono {
  position: relative; z-index: 1; font-family: var(--pt-display); font-weight: 900; font-size: clamp(48px, 7vw, 110px); line-height: 1;
  color: rgba(255, 255, 255, .9); mix-blend-mode: overlay; letter-spacing: -.03em;
}
.mx-puntos .is-cargada > .pt-fallback { visibility: hidden; transition: visibility 0s .5s; }

/* hover: the window floats against the pointer and the shot zooms a little */
@media (hover: hover) and (pointer: fine) {
  .mx-puntos .pt-arte:hover .pt-img { transform: scale(1.06) translate3d(calc(var(--px) * -10px), calc(var(--py) * -8px), 0); }
}

/* the phone frame: only on small screens, only if <slug>-m.jpg exists */
.mx-puntos .pt-phone { display: none; }

/* the soft light that follows the pointer (moved by JS) */
.mx-puntos .pt-luz {
  position: absolute; left: 0; top: 0; width: 620px; height: 620px; margin: -310px 0 0 -310px; border-radius: 50%;
  pointer-events: none; z-index: 50; opacity: 0; transition: opacity .5s;
  background: radial-gradient(circle, var(--pt-luz), transparent 62%); mix-blend-mode: screen;
}
.mx-puntos .pt-visor:hover .pt-luz { opacity: 1; }

/* ── the controls: a glass capsule with arrows and dots ─────────── */
.mx-puntos .pt-control {
  position: relative; display: flex; align-items: center; gap: .8rem; padding: 6px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  box-shadow: inset 0 1px 0 var(--pt-filo), inset 0 0 0 1px var(--pt-line), 0 10px 30px rgba(0, 0, 0, .35);
}
.mx-puntos .pt-flecha {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; padding: 0; margin: 0;
  border: 0; background: transparent; color: var(--pt-muted); cursor: pointer; font: inherit;
  transition: background-color .25s, color .25s, transform .4s var(--pt-rebote);
}
.mx-puntos .pt-flecha:hover { background: rgba(242, 239, 232, .07); color: var(--pt-bone); }
.mx-puntos .pt-flecha:active { transform: scale(.88); transition-duration: .1s; }
.mx-puntos .pt-flecha:focus-visible { outline: 2px solid var(--pt-violet); outline-offset: 2px; }
.mx-puntos .pt-flecha[disabled] { opacity: .35; cursor: default; }
.mx-puntos .pt-flecha svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.mx-puntos .pt-puntos {
  position: relative; display: flex; align-items: center; gap: calc(var(--pt-sep) - var(--pt-tam));
  height: 44px; padding: 0 calc(var(--pt-largo) / 2 - var(--pt-tam) / 2);
}
.mx-puntos .pt-punto {
  position: relative; flex: none; width: var(--pt-tam); height: var(--pt-tam); padding: 0; margin: 0; border: 0; border-radius: 50%;
  background: var(--pt-punto); cursor: pointer; outline: none; will-change: transform;
}
.mx-puntos .pt-punto::after { content: ""; position: absolute; inset: -14px -10px; }
.mx-puntos .pt-gusano {
  position: absolute; left: 0; top: 50%; width: 1px; height: var(--pt-grueso); border-radius: 99px; pointer-events: none;
  background: var(--pt-activo); transform-origin: 0 50%; will-change: transform;
}
.mx-puntos .pt-aro {
  position: absolute; left: 0; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 99px;
  border: 1.5px solid var(--pt-bone); opacity: 0; pointer-events: none; translate: -50% 0; transition: opacity .2s;
}
.mx-puntos .pt-aro.is-visible { opacity: 1; }

/* ── tablet ──────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .mx-puntos .pt-visor { height: 520px; }
  .mx-puntos .pt-texto { padding: 36px 22px 36px 34px; }
  .mx-puntos .pt-browser { inset: 22px; }
  .mx-puntos .pt-diapo { grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); }
}

/* ── phone: image on top, text below ─────────────────────────────── */
@media (max-width: 720px) {
  .mx-puntos { gap: 18px; --pt-tam: 9px; --pt-sep: 26px; --pt-largo: 32px; --pt-grueso: 11px; }
  .mx-puntos .pt-visor { height: 610px; border-radius: 24px; }
  .mx-puntos .pt-diapo { grid-template-columns: minmax(0, 1fr); grid-template-rows: 280px minmax(0, 1fr); }
  .mx-puntos .pt-arte { order: -1; margin: 10px 10px 0; border-radius: 18px; }
  .mx-puntos .pt-texto { padding: 20px 22px 22px; gap: 14px; }
  .mx-puntos .pt-cuerpo { margin-top: 0; gap: 10px; }
  .mx-puntos .pt-titulo { font-size: clamp(22px, 6.6vw, 28px); }
  .mx-puntos .pt-desc { font-size: 14.5px; }
  .mx-puntos .pt-browser { inset: 16px; border-radius: 12px; }
  .mx-puntos .pt-bar { height: 28px; gap: 5px; padding: 0 9px; }
  .mx-puntos .pt-bar > i { width: 7px; height: 7px; }
  .mx-puntos .pt-url { height: 18px; font-size: 10px; padding: 0 8px; transform: translateX(-12px); }

  .mx-puntos .pt-phone {
    display: block; position: absolute; top: 16px; bottom: 16px; left: 50%; aspect-ratio: 9 / 19; translate: -50% 0;
    padding: 6px; border-radius: 30px; background: linear-gradient(145deg, #2b2a3c, #11111a 45%, #2b2a3c);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 26px 50px -18px rgba(0, 0, 0, .85);
  }
  .mx-puntos .pt-phone::before {
    content: ""; position: absolute; z-index: 2; top: 11px; left: 50%; width: 34%; height: 13px; border-radius: 99px; translate: -50% 0; background: #000;
  }
  .mx-puntos .pt-phone-scr { position: relative; width: 100%; height: 100%; border-radius: 24px; overflow: hidden; background: #0d0d16; }
  .mx-puntos .pt-phone .pt-mono { font-size: 26px; }
  .mx-puntos .pt-phone ~ .pt-browser { display: none; }
  .mx-puntos .no-m .pt-phone { display: none; }
  .mx-puntos .no-m .pt-phone ~ .pt-browser { display: flex; }
  .mx-puntos { --pt-sep: 18px; --pt-largo: 24px; --pt-tam: 7px; }
  .mx-puntos .pt-control { gap: .3rem; padding: 4px; max-width: 100%; }
  .mx-puntos .pt-flecha { width: 40px; height: 40px; }
  .mx-puntos .pt-luz { display: none; }
}
@media (max-width: 380px) {
  .mx-puntos { --pt-sep: 16px; --pt-largo: 22px; --pt-tam: 6px; }
  .mx-puntos .pt-visor { height: 590px; }
  .mx-puntos .pt-diapo { grid-template-rows: 260px minmax(0, 1fr); }
  .mx-puntos .pt-texto { padding: 18px 18px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .mx-puntos .pt-luz { display: none; }
  .mx-puntos .pt-browser, .mx-puntos .pt-img, .mx-puntos .pt-live, .mx-puntos .pt-live svg { transition: opacity .2s; }
  .mx-puntos .pt-arte:hover .pt-img { transform: none; }
}
