/* Host MZO — ficha técnica compartida. Cada propuesta define sus variables --sp-* */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--sp-bg);
  color: var(--sp-ink);
  font-family: var(--sp-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html.is-loading body {
  overflow: hidden;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
::selection {
  background: var(--sp-accent);
  color: var(--sp-accent-ink);
}
:focus-visible {
  outline: 2px solid var(--sp-accent);
  outline-offset: 3px;
}

.specs {
  min-height: 100vh;
}

/* ---------- barra ---------- */
.sp-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: color-mix(in srgb, var(--sp-bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--sp-line);
}
.sp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.sp-brand-mark {
  width: 44px;
  display: block;
}
.sp-brand-txt {
  font-family: var(--sp-body);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
}
.sp-brand-txt em {
  font-style: normal;
  color: var(--sp-muted);
}
.sp-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.sp-nav a {
  text-decoration: none;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--sp-muted);
  transition: color 0.2s, background 0.2s;
}
.sp-nav a:hover {
  color: var(--sp-ink);
  background: var(--sp-surface);
}
.sp-actions {
  display: flex;
  gap: 8px;
}
.sp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--sp-accent);
  background: var(--sp-accent);
  color: var(--sp-accent-ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s, color 0.2s;
}
.sp-btn svg {
  width: 16px;
  height: 16px;
}
.sp-btn:hover {
  transform: translateY(-1px);
}
.sp-btn-ghost {
  background: transparent;
  color: var(--sp-ink);
  border-color: var(--sp-line-strong, var(--sp-line));
}
.sp-btn-ghost:hover {
  background: var(--sp-surface);
}

/* ---------- hero ---------- */
.sp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding: clamp(56px, 9vw, 128px) clamp(20px, 4vw, 56px) clamp(48px, 7vw, 96px);
  max-width: 1360px;
  margin: 0 auto;
}
.sp-kicker {
  margin: 0 0 20px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sp-accent-text, var(--sp-accent));
  font-weight: 500;
}
.sp-title {
  margin: 0;
  font-family: var(--sp-display);
  font-size: var(--sp-title-size, clamp(64px, 11vw, 160px));
  line-height: 0.92;
  font-weight: var(--sp-title-weight, 400);
  font-style: var(--sp-title-style, normal);
  letter-spacing: var(--sp-title-tracking, -0.02em);
  text-transform: var(--sp-title-transform, none);
  font-stretch: var(--sp-title-stretch, 100%);
}
.sp-lead {
  margin: 28px 0 0;
  max-width: 54ch;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.65;
  color: var(--sp-muted);
}
.sp-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 40px;
  background: var(--sp-line);
  border: 1px solid var(--sp-line);
  border-radius: 14px;
  overflow: hidden;
  max-width: 560px;
}
.sp-facts div {
  background: var(--sp-bg);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sp-facts span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sp-muted);
}
.sp-facts strong {
  font-weight: 500;
  font-size: 15px;
}
.sp-hero-art {
  padding: clamp(28px, 4vw, 56px);
  border-radius: 24px;
  background: var(--sp-hero-bg, var(--sp-surface));
  border: 1px solid var(--sp-line);
  aspect-ratio: 1 / 0.92;
  display: grid;
  place-items: center;
}
.sp-hero-art .hm-svg {
  max-width: 420px;
}

/* entrada de la ficha al terminar el preloader */
.sp-in {
  opacity: 0;
  transform: translateY(26px);
}
html.is-ready .sp-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms);
}
.sp-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.sp-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- secciones ---------- */
.sp-sec {
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 112px) clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--sp-line);
}
.sp-sec-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.sp-sec-head span {
  font-family: var(--sp-mono, var(--sp-body));
  font-size: 13px;
  color: var(--sp-accent-text, var(--sp-accent));
  letter-spacing: 0.08em;
}
.sp-sec-head h2 {
  margin: 0;
  font-family: var(--sp-display);
  font-weight: var(--sp-h2-weight, 400);
  font-style: var(--sp-h2-style, normal);
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: var(--sp-h2-tracking, -0.01em);
  text-transform: var(--sp-h2-transform, none);
  font-stretch: var(--sp-title-stretch, 100%);
}
.sp-sec-head p {
  margin: 0;
  color: var(--sp-muted);
  max-width: 48ch;
}
.sp-sub {
  margin: clamp(48px, 6vw, 80px) 0 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sp-muted);
}

/* ---------- tipografía ---------- */
.sp-fonts {
  display: grid;
  gap: 20px;
}
.sp-font {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  border: 1px solid var(--sp-line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--sp-surface);
}
.sp-font-hero {
  position: relative;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
  background: var(--sp-surface-2);
  border-right: 1px solid var(--sp-line);
}
.sp-font-idx {
  font-family: var(--sp-mono, var(--sp-body));
  font-size: 12px;
  color: var(--sp-muted);
}
.sp-aa {
  font-size: clamp(120px, 15vw, 220px);
  line-height: 0.9;
  color: var(--sp-aa, var(--sp-ink));
}
.sp-role {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sp-accent-text, var(--sp-accent));
  font-weight: 500;
}
.sp-font-body {
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.sp-font-name {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.05;
  font-weight: 500;
}
.sp-font-why {
  margin: -8px 0 0;
  color: var(--sp-muted);
  max-width: 60ch;
}
.sp-dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 0;
}
.sp-dl div {
  border-top: 1px solid var(--sp-line);
  padding-top: 10px;
}
.sp-dl dt {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sp-muted);
}
.sp-dl dd {
  margin: 2px 0 0;
  font-size: 14px;
}
.sp-weights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sp-weight {
  flex: 1 1 160px;
  border: 1px solid var(--sp-line);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.sp-weight span {
  font-size: 26px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-weight small {
  font-family: var(--sp-mono, var(--sp-body));
  font-size: 11px;
  color: var(--sp-muted);
  letter-spacing: 0.04em;
}
.sp-glyphs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.35;
  color: var(--sp-muted);
  word-break: break-all;
}

.sp-scale {
  border-top: 1px solid var(--sp-line);
}
.sp-scale-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--sp-line);
}
.sp-scale-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sp-scale-meta strong {
  font-weight: 500;
  font-size: 14px;
}
.sp-scale-meta span {
  font-family: var(--sp-mono, var(--sp-body));
  font-size: 11.5px;
  color: var(--sp-muted);
  line-height: 1.5;
}
.sp-scale-sample {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ---------- color ---------- */
.sp-ratio {
  margin-bottom: 28px;
}
.sp-ratio-bar {
  display: flex;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--sp-line);
}
.sp-ratio-bar span {
  position: relative;
  min-width: 6px;
}
.sp-ratio-bar em {
  position: absolute;
  left: 10px;
  bottom: 8px;
  font-style: normal;
  font-size: 11px;
  font-family: var(--sp-mono, var(--sp-body));
  mix-blend-mode: difference;
  color: #fff;
}
.sp-ratio p {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--sp-muted);
}
.sp-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.sp-swatch {
  border: 1px solid var(--sp-line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--sp-surface);
  display: flex;
  flex-direction: column;
}
.sp-chip {
  all: unset;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  min-height: 170px;
  padding: 18px;
  position: relative;
  box-shadow: inset 0 -1px 0 var(--sp-line);
  transition: filter 0.2s;
}
.sp-chip:hover {
  filter: brightness(1.05);
}
.sp-chip:focus-visible {
  outline: 2px solid var(--sp-accent);
  outline-offset: -4px;
}
.sp-chip-name {
  font-family: var(--sp-display);
  font-size: 26px;
  line-height: 1.1;
  font-stretch: var(--sp-title-stretch, 100%);
  font-weight: var(--sp-chip-weight, 500);
}
.sp-chip-hex {
  font-family: var(--sp-mono, var(--sp-body));
  font-size: 13px;
  opacity: 0.85;
}
.sp-chip-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: 0.75;
}
.sp-swatch-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.sp-swatch-role {
  margin: 0;
  font-size: 14px;
  color: var(--sp-muted);
}
.sp-codes {
  margin: 0;
  display: grid;
  gap: 4px;
}
.sp-codes div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
}
.sp-codes dt {
  color: var(--sp-muted);
  font-size: 11px;
  letter-spacing: 0.1em;
}
.sp-codes dd {
  margin: 0;
  font-family: var(--sp-mono, var(--sp-body));
  cursor: pointer;
}
.sp-codes dd[data-copy]:hover {
  color: var(--sp-accent-text, var(--sp-accent));
}
.sp-contrast {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.sp-contrast span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-family: var(--sp-mono, var(--sp-body));
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--sp-surface-2);
  color: var(--sp-muted);
}
.sp-contrast i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--sp-line);
}
.sp-contrast b {
  color: var(--sp-ink);
  font-weight: 600;
}
.sp-note {
  font-size: 12px;
  color: var(--sp-muted);
  margin: 18px 0 0;
}
.sp-pairs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.sp-pair {
  border-radius: 20px;
  padding: 28px 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 180px;
  justify-content: space-between;
  border: 1px solid var(--sp-line);
}
.sp-pair-sample {
  font-family: var(--sp-display);
  font-size: 34px;
  line-height: 1.05;
}
.sp-pair-meta {
  font-family: var(--sp-mono, var(--sp-body));
  font-size: 11.5px;
  opacity: 0.8;
}

/* ---------- movimiento ---------- */
.sp-timeline {
  border: 1px solid var(--sp-line);
  border-radius: 22px;
  padding: 28px clamp(16px, 3vw, 32px) 20px;
  background: var(--sp-surface);
  overflow-x: auto;
}
.sp-tl-axis {
  position: relative;
  height: 22px;
  margin-left: 240px;
  border-bottom: 1px solid var(--sp-line);
  margin-bottom: 8px;
  min-width: 480px;
}
.sp-tl-axis span {
  position: absolute;
  bottom: 6px;
  transform: translateX(-50%);
  font-family: var(--sp-mono, var(--sp-body));
  font-size: 11px;
  color: var(--sp-muted);
}
.sp-tl-axis span:first-child {
  transform: none;
}
.sp-tl-axis span:last-child {
  transform: translateX(-100%);
}
.sp-tl-row {
  display: grid;
  grid-template-columns: 240px minmax(480px, 1fr);
  align-items: center;
  min-height: 46px;
  border-bottom: 1px dashed var(--sp-line);
}
.sp-tl-row:last-child {
  border-bottom: 0;
}
.sp-tl-label {
  display: flex;
  flex-direction: column;
  padding-right: 16px;
  line-height: 1.3;
}
.sp-tl-label strong {
  font-weight: 500;
  font-size: 14px;
}
.sp-tl-label span {
  font-size: 12px;
  color: var(--sp-muted);
}
.sp-tl-track {
  position: relative;
  height: 26px;
  background-image: linear-gradient(90deg, var(--sp-line) 1px, transparent 1px);
  background-size: calc(100% / (var(--total) / 500)) 100%;
}
.sp-tl-bar {
  position: absolute;
  top: 3px;
  bottom: 3px;
  border-radius: 999px;
  background: var(--bar, var(--sp-accent));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1) var(--d);
  display: flex;
  align-items: center;
  overflow: visible;
}
.sp-tl-bar.is-end em {
  left: auto;
  right: calc(100% + 8px);
}
.sp-timeline.is-visible .sp-tl-bar {
  transform: scaleX(1);
}
.sp-tl-bar em {
  position: absolute;
  left: calc(100% + 8px);
  white-space: nowrap;
  font-style: normal;
  font-family: var(--sp-mono, var(--sp-body));
  font-size: 10.5px;
  color: var(--sp-muted);
}
.sp-eases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.sp-ease {
  border: 1px solid var(--sp-line);
  border-radius: 20px;
  padding: 18px 20px 20px;
  background: var(--sp-surface);
}
.sp-ease h4 {
  margin: 10px 0 4px;
  font-size: 18px;
  font-weight: 500;
}
.sp-ease code {
  font-family: var(--sp-mono, var(--sp-body));
  font-size: 12px;
  color: var(--sp-accent-text, var(--sp-accent));
  cursor: pointer;
}
.sp-ease p {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--sp-muted);
}
.sp-curve {
  width: 100%;
  height: auto;
  display: block;
}
.sp-curve-box {
  fill: none;
  stroke: var(--sp-line);
  stroke-dasharray: 3 4;
}
.sp-curve-h {
  stroke: var(--sp-muted);
  stroke-width: 1;
  opacity: 0.6;
}
.sp-curve-p {
  fill: var(--sp-bg);
  stroke: var(--sp-muted);
}
.sp-curve-line {
  fill: none;
  stroke: var(--sp-accent);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.sp-curve-end {
  fill: var(--sp-accent);
}

/* ---------- logo ---------- */
.sp-logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.sp-logo-tile {
  margin: 0;
  border-radius: 22px;
  border: 1px solid var(--sp-line);
  aspect-ratio: 4 / 3.2;
  display: flex;
  flex-direction: column;
  padding: 24px;
}
.sp-logo-art {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 6% 12%;
}
.sp-logo-art .hm-svg {
  max-height: 100%;
}
.sp-logo-tile figcaption {
  font-size: 12px;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

/* ---------- tokens ---------- */
.sp-code {
  position: relative;
  border: 1px solid var(--sp-line);
  border-radius: 22px;
  background: var(--sp-surface);
  overflow: hidden;
}
.sp-code pre {
  margin: 0;
  padding: 28px;
  overflow-x: auto;
  font-family: var(--sp-mono, ui-monospace, monospace);
  font-size: 13px;
  line-height: 1.7;
}
.sp-copy-tokens {
  position: absolute;
  top: 16px;
  right: 16px;
}

/* ---------- pie ---------- */
.sp-foot {
  max-width: 1360px;
  margin: 0 auto;
  padding: 40px clamp(20px, 4vw, 56px) 56px;
  border-top: 1px solid var(--sp-line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--sp-muted);
}
.sp-foot a {
  color: var(--sp-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--sp-accent);
  padding-bottom: 2px;
}

.sp-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  opacity: 0;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--sp-ink);
  color: var(--sp-bg);
  font-size: 13px;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.sp-toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- vista previa (iframe del selector) ---------- */
html.is-preview body {
  overflow: hidden;
  pointer-events: none;
}
html.is-preview .sp-bar {
  position: relative;
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .sp-nav {
    display: none;
  }
}
@media (max-width: 900px) {
  .sp-hero {
    grid-template-columns: 1fr;
  }
  .sp-hero-art {
    aspect-ratio: auto;
    min-height: 280px;
  }
  .sp-sec-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .sp-font {
    grid-template-columns: 1fr;
  }
  .sp-font-hero {
    min-height: 0;
    gap: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--sp-line);
  }
  .sp-dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sp-scale-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
@media (max-width: 640px) {
  .sp-actions .sp-btn-ghost {
    display: none;
  }
  .sp-brand-txt em {
    display: none;
  }
  .sp-facts {
    grid-template-columns: 1fr;
  }
  .sp-tl-axis {
    margin-left: 160px;
  }
  .sp-tl-row {
    grid-template-columns: 160px minmax(480px, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .sp-in,
  .sp-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
