/* Presentación del lab. Los tokens son los de staging/shaders/shaders.css, copiados (no importados):
   la sección se despliega sola y no debe depender de que otra exista. Chrome neutro; el rosa del
   acento sólo aparece en el foco y en el candado Pro, siempre sobre blanco. */

:root {
  --bg: #ffffff;
  --canvas: #f7f7f7;
  --fg: #202020;
  --fg-strong: #000000;
  --muted: #858585;
  --faint: #b3b3b3;
  --chip: rgba(0, 0, 0, 0.06);
  --chip-hover: rgba(0, 0, 0, 0.09);
  --hairline: rgba(0, 0, 0, 0.08);
  --accent: #e0489a;
  --radius-s: 8px;
  --radius-m: 12px;
  --font: "Inter Variable", Inter, -apple-system, "system-ui", "SF Pro Text", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  }


* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); }
body { font-family: var(--font); font-size: 14px; line-height: 1.55; color: var(--fg); -webkit-font-smoothing: antialiased; background: var(--bg); }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--fg-strong); }
.brand span { font-weight: 450; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.brand-logo img { width: 22px; height: 22px; object-fit: contain; }

.plan { display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--chip); flex: none; }
.plan button { padding: 4px 10px; border-radius: 999px; color: var(--muted); font-size: 12px; }
.plan button:hover { background: var(--chip-hover); color: var(--fg); }
.plan button.on, .plan button.on:hover { background: var(--fg-strong); color: #fff; }

.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 28px; background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--hairline); }
.topbar mp-secciones { flex: 1 1 auto; min-width: 0; margin-left: 8px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: var(--radius-s); font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background 0.15s, color 0.15s; }
.btn-primary { background: var(--fg-strong); color: #fff; }
.btn-primary:hover { background: #2b2b2b; }
.btn-ghost { color: var(--fg); border: 1px solid var(--hairline); }
.btn-ghost:hover { background: var(--chip); }

main { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.lab-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding: 72px 0 56px; }
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; color: var(--fg-strong); margin-bottom: 18px; }
.lede { font-size: 17px; line-height: 1.5; color: var(--muted); max-width: 44ch; margin-bottom: 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pro-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); min-height: 1.5em; }
.pro-note .lock { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 600; }
.pro-note .lock svg { width: 9px; height: 11px; fill: currentColor; }

.stage { position: relative; aspect-ratio: 4 / 3; background: #0b0b0d; border-radius: var(--radius-m); overflow: hidden; }
.stage .piece { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease; }
.stage .piece.on { opacity: 1; }
.piece img, .piece video { width: 100%; height: 100%; object-fit: cover; }

.efectos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding: 24px 0 64px; }
.efecto button { text-align: left; width: 100%; }
.efecto .thumb { aspect-ratio: 1 / 1; background: #0b0b0d; border-radius: var(--radius-s); overflow: hidden; margin-bottom: 12px; border: 1px solid transparent; }
.efecto .thumb img, .efecto .thumb video { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: opacity 0.2s; }
.efecto button:hover .thumb img, .efecto button:hover .thumb video, .efecto.on .thumb img, .efecto.on .thumb video { opacity: 1; }
.efecto.on .thumb { border-color: var(--fg-strong); }
.efecto strong { display: block; font-size: 14px; font-weight: 600; color: var(--fg-strong); }
.efecto span { font-size: 13px; color: var(--muted); }

.probado { padding: 8px 0 72px; }
.probado-cab { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: end; margin-bottom: 24px; }
.probado-cab p { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 52ch; }
.probado-rejilla { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.probado-rejilla li { position: relative; aspect-ratio: 1 / 1; background: #0b0b0d; border-radius: var(--radius-s); overflow: hidden; }
.probado-rejilla figure { margin: 0; height: 100%; }
.probado-rejilla img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.probado-rejilla li:hover img { transform: scale(1.04); }
.probado-rejilla figcaption { position: absolute; left: 12px; bottom: 10px; font-size: 12px; color: rgba(255,255,255,.86); letter-spacing: .01em; }
.probado-rejilla figcaption span { color: rgba(255,255,255,.5); }
@media (max-width: 860px) {
  .probado-cab { grid-template-columns: 1fr; gap: 10px; }
  .probado-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .efectos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

.pasos { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; padding: 56px 0 96px; border-top: 1px solid var(--hairline); }
h2 { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; color: var(--fg-strong); }
.pasos p { font-size: 16px; line-height: 1.65; color: var(--fg); max-width: 60ch; }
.pasos p + p { margin-top: 14px; }
.pasos b { font-weight: 600; color: var(--fg-strong); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 8px); padding: 9px 14px; border-radius: var(--radius-s); background: var(--fg-strong); color: #fff; font-size: 12.5px; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .lab-hero, .pasos { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .lab-hero { padding: 40px 0 32px; }
  .efectos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .pasos { padding: 40px 0 72px; }
}
@media (max-width: 640px) {
  .topbar { padding: 12px 16px; }
  .topbar mp-secciones { order: 3; flex-basis: 100%; margin-left: 0; }
  main { padding: 0 16px; }
  .plan { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .stage .piece, .toast { transition: none; } }
