.studio-header {
  max-width: 1440px;
  padding: 0 5%;
  justify-content: space-between;
  gap: 24px;
}
.studio-header nav {
  display: flex;
  align-items: stretch;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
}
.studio-header nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink);
  white-space: nowrap;
  border-left: 1px solid var(--line);
}
.studio-header nav a:first-child {
  border-left: 0;
}
.studio-header nav a:hover {
  background: var(--paper);
  color: var(--blue);
}
.studio-header nav a.active {
  color: var(--blue);
  font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--blue);
}
.studio-header nav a:last-child {
  margin-left: 8px;
  padding: 0 19px;
  background: var(--blue);
  border: 0;
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 700;
}
.studio-header nav a:last-child:hover {
  background: var(--blue-deep);
  color: var(--white);
}
.studio-header nav a:last-child.active {
  box-shadow: inset 0 -3px 0 var(--lime);
}
.studio-page {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}
.studio-page main {
  max-width: 1320px;
  padding: 0 40px;
  margin: auto;
}
.studio-page .eyebrow {
  margin: 0 0 16px;
}
.hero {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  align-items: center;
  gap: 56px;
  padding: 54px 0 60px;
}
.hero .eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--blue);
}
.hero .eyebrow::before {
  content: '// ';
  color: var(--ink-soft);
}
.studio-page h1 {
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.06;
  letter-spacing: -2.8px;
  margin: 0;
  font-weight: 900;
}
.studio-page .hero h1 {
  font-size: clamp(40px, 5.8vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.studio-page h1 em {
  font-style: normal;
  color: var(--blue);
}
.hero h1 em {
  background: linear-gradient(
    transparent 58%,
    var(--lime) 58%,
    var(--lime) 92%,
    transparent 92%
  );
}
.hero-description {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 30em;
  margin: 26px 0;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  min-height: 48px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    background-color 120ms linear,
    color 120ms linear,
    border-color 120ms linear;
}
.button:active {
  transform: translateY(1px);
}
.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.primary:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}
.primary:disabled {
  background: var(--paper);
  border: 1.5px dashed var(--ink-soft);
  color: var(--ink-soft);
  cursor: not-allowed;
  transition: none;
}
.button.secondary {
  background: var(--white);
  border-color: var(--line-strong);
  color: var(--ink);
}
.button.secondary:hover {
  background: var(--lime);
  border-color: var(--lime);
}
.button.secondary:disabled {
  background: var(--paper);
  border: 1.5px dashed var(--ink-soft);
  color: var(--ink-soft);
  cursor: not-allowed;
  transition: none;
}
.button.sm {
  min-height: 44px;
  padding: 0 16px;
}
/* Enlaces con apariencia de botón deshabilitado mientras cargan datos (no
   pueden usar :disabled, que solo existe para <button>/<input>). */
a.button[aria-disabled='true'] {
  background: var(--paper);
  border: 1.5px dashed var(--ink-soft);
  color: var(--ink-soft);
  cursor: not-allowed;
  pointer-events: none;
  transition: none;
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  border: 0;
  border-bottom: 2px solid var(--blue);
  background: none;
  padding: 0;
  cursor: pointer;
  transition: background-color 120ms linear;
}
.text-link:hover {
  background: var(--lime);
}
.hero-note {
  margin-top: 32px;
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-note span {
  font-size: 24px;
  color: var(--blue);
}
.specs {
  display: flex;
  margin: 32px 0 0;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
.specs > div {
  padding: 10px 16px;
  border-left: 1px solid var(--line);
}
.specs > div:first-child {
  border-left: 0;
}
.specs dt {
  margin: 0 0 2px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.specs dd {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  color: var(--ink);
}
.print-bed {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 540px;
  margin: 0 auto;
  background-color: var(--blue);
  background-image:
    linear-gradient(rgb(255 255 255 / 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  border: 1px solid var(--ink);
}
.bed-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--lime);
}
.bed-corner--tl {
  top: 12px;
  left: 12px;
  border-right: 0;
  border-bottom: 0;
}
.bed-corner--tr {
  top: 12px;
  right: 12px;
  border-left: 0;
  border-bottom: 0;
}
.bed-corner--bl {
  bottom: 12px;
  left: 12px;
  border-right: 0;
  border-top: 0;
}
.bed-corner--br {
  bottom: 12px;
  right: 12px;
  border-left: 0;
  border-top: 0;
}
.bed-mascot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: auto;
  transform: translate(-50%, -50%);
}
.bed-label {
  position: absolute;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
}
.bed-label--top {
  top: 40px;
  left: 16px;
  color: var(--white);
}
.bed-label--top span {
  color: var(--lime);
}
.bed-label--bottom {
  bottom: 40px;
  right: 16px;
  color: var(--on-blue-soft);
  text-align: right;
}
.ticker {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--ink);
  color: var(--white);
  padding: 23px 0;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
}
.ticker i {
  font-style: normal;
  color: var(--lime);
}
.studio-section {
  padding: 58px 0;
}
.studio-page .section-heading {
  margin-bottom: 24px;
}
.studio-page .section-heading h2 {
  font-size: 30px;
  max-width: 530px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.category-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
}
.category-card:hover .category-info {
  background: var(--lime-tint);
}
.card-meta {
  margin: 0;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.card-meta span {
  color: var(--blue);
  font-weight: 700;
}
.product-image {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background-color: var(--stage);
  border-bottom: 1px solid var(--line-strong);
  position: relative;
}
.product-image img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}
.category-card .product-image {
  aspect-ratio: 4 / 3;
}
.category-card .product-image img {
  width: auto;
  max-width: 70%;
}
.category-info {
  padding: 20px;
  transition: background-color 120ms linear;
}
.category-spec {
  margin: 10px 0 0;
}
.category-spec div {
  display: flex;
  gap: 6px;
}
.category-spec dt {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-soft);
}
.category-spec dd {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  color: var(--ink);
}
.category-info h3 {
  font-size: 20px;
  margin: 0 0 8px;
  display: flex;
  justify-content: space-between;
}
.category-info h3 span {
  font-size: 18px;
  color: var(--blue);
}
.category-info p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}
.image-disclaimer {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 17px 0 0;
}
.creative-callout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background-color: var(--blue);
  background-image:
    linear-gradient(rgb(255 255 255 / 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.08) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  border-radius: var(--radius);
  padding: 48px;
  color: white;
}
.creative-callout .eyebrow {
  color: var(--lime);
}
.creative-callout h2 {
  font-size: 38px;
  line-height: 1.16;
  letter-spacing: -1px;
}
.creative-callout p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.7;
  max-width: 420px;
  color: var(--on-blue-soft);
  margin: 20px 0 24px;
}
.light {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}
.light:hover {
  background: var(--white);
  border-color: var(--white);
}
.type-play {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  padding: 20px 0;
  overflow: hidden;
}
.type-play > span {
  display: block;
  line-height: 1.3;
}
.script-word {
  font-family: Pacifico;
  font-size: 46px;
  color: var(--white);
  transform: rotate(-7deg);
}
.pixel-word {
  font-family: Monocraft;
  font-weight: 900;
  font-size: 39px;
  color: var(--lime);
  transform: rotate(4deg);
}
.block-word {
  font-family: 'Lilita One';
  font-style: italic;
  font-size: 61px;
  color: var(--white);
  transform: rotate(-5deg);
}
.type-play small {
  font-size: 10px;
  letter-spacing: 2px;
  margin-top: 14px;
  color: var(--on-blue-soft);
}
.color-callout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 65px 0;
  align-items: center;
}
.color-callout h2 {
  font-size: 34px;
  letter-spacing: -1px;
}
.color-callout p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 400px;
}
.color-spools {
  display: block;
  justify-self: center;
  width: 300px;
  max-width: 100%;
  height: auto;
}
.studio-footer {
  width: 100%;
  background-color: var(--blue);
  background-image:
    linear-gradient(rgb(255 255 255 / 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.08) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  padding: 40px 5% 24px;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: start;
  gap: 26px;
}
.studio-footer .brand-chile {
  height: 56px;
}
.studio-footer p {
  margin: 0;
  text-align: left;
  font-size: 14px;
  color: var(--on-blue-soft);
}
.studio-footer nav {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
}
.studio-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--white);
}
.studio-footer nav a::before {
  content: '→ ';
  color: var(--lime);
}
.studio-footer nav a:hover {
  color: var(--lime);
}
.studio-footer a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  box-shadow: none;
}
.studio-footer small {
  grid-column: 1/-1;
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / 0.3);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--on-blue-soft);
}
.studio-content {
  padding-top: 46px !important;
  padding-bottom: 64px !important;
}
.page-intro {
  margin-bottom: 30px;
  max-width: 720px;
}
.page-intro p:last-child {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.studio-page .page-intro h1 {
  font-size: 52px;
}
.catalog-note {
  background: var(--blue-tint);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 17px 21px;
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 14px;
  line-height: 1.6;
}
.catalog-note b {
  white-space: nowrap;
  color: var(--ink);
}
.catalog-note span {
  color: var(--ink-soft);
}
.catalog-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 28px 0 18px;
}
.catalog-filters button {
  border: 1px solid var(--line-strong);
  padding: 11px 21px;
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  min-height: 44px;
  color: var(--ink);
}
.catalog-filters button.selected {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--lime);
}
.catalog-filters[aria-disabled='true'] button {
  pointer-events: none;
}
.catalog-filters[aria-disabled='true'] button:not(.selected) {
  border-style: dashed;
  color: var(--ink-soft);
}
.catalog-count {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}
.catalog-card {
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background: white;
}
.catalog-card[hidden] {
  display: none;
}
.catalog-card .product-image {
  aspect-ratio: 1.35;
}
.catalog-card .product-image {
  background-size: 200% auto;
}
.catalog-card .product-image > span {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--white);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 900;
}
.catalog-card-body {
  padding: 26px;
}
.catalog-card h2 {
  font-size: 25px;
}
.catalog-card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
  max-width: 440px;
  margin: 12px 0 18px;
}
.color-workspace {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 35px;
  align-items: start;
}
.color-workspace .catalog-note {
  display: block;
}
.color-workspace .catalog-note b {
  display: block;
  margin-bottom: 5px;
}
.palette-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.palette-card {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  text-align: left;
  color: var(--ink);
}
.palette-card.selected {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
.palette-sample {
  display: block;
  height: 112px;
  border-bottom: 1px solid var(--line);
}
.palette-card > span:last-child {
  display: block;
  padding: 13px;
  font-size: 14px;
  font-weight: 800;
}
.palette-card small {
  display: block;
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 600;
  margin-top: 4px;
}

/* Estados de datos en vivo: skeleton, barra indeterminada y bloque de
   error/vacío (design-system/3dimensional/pages/estados-datos.md,
   MASTER §6.16-6.17). Compartidos por las páginas que leen datos de Supabase. */
.skeleton {
  background: var(--stage);
  border-radius: var(--radius-sm);
}
@media (prefers-reduced-motion: no-preference) {
  .skeleton {
    animation: skeleton-pulse 1.2s ease-in-out infinite alternate;
  }
}
@keyframes skeleton-pulse {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.55;
  }
}
.skeleton-line {
  display: inline-block;
  height: 1em;
  vertical-align: middle;
}
.skeleton-w-2ch {
  width: 2ch;
}
.skeleton-w-6ch {
  width: 6ch;
}
.skeleton-w-8ch {
  width: 8ch;
}
.skeleton-w-9ch {
  width: 9ch;
}
.skeleton-w-10ch {
  width: 10ch;
}
.skeleton-w-14ch {
  width: 14ch;
}
.skeleton-w-20ch {
  width: 20ch;
}
.skeleton-chip {
  display: inline-block;
  width: 90px;
  min-height: 44px;
}
.skeleton-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px;
}
.progress-indeterminate {
  position: relative;
  height: 4px;
  background: var(--stage);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.progress-indeterminate::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 30%;
  background: var(--blue);
}
@media (prefers-reduced-motion: no-preference) {
  .progress-indeterminate::after {
    animation: progress-slide 1.2s linear infinite;
  }
}
@keyframes progress-slide {
  from {
    left: -30%;
  }
  to {
    left: 100%;
  }
}
.data-error,
.data-empty {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.data-error {
  border-left: 4px solid var(--danger-text);
}
.data-error-label {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--danger-text);
}
.data-error h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.data-error p:not(.data-error-label),
.data-empty p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 16px;
}
.data-error .button:last-child,
.data-empty .button:last-child {
  margin-bottom: 0;
}
.data-empty p:last-child {
  margin-bottom: 0;
}
.color-workspace > .data-error,
.color-workspace > .data-empty {
  grid-column: 1 / -1;
}
.data-error p.data-error-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.stage-error {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 360px;
  max-height: 100%;
  overflow: auto;
}
.combination {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 25px;
  position: sticky;
  top: 20px;
}
.combination-preview {
  height: 160px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--stage);
}
.combination-preview > span {
  font-family: Pacifico;
  font-size: 48px;
  line-height: 1.3;
  padding: 8px 25px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  transform: rotate(-5deg);
}
.combination dl {
  font-size: 14px;
  margin: 24px 0;
}
.combination dl > div {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
}
.combination dt {
  color: var(--ink-soft);
}
.combination dd {
  margin: 0;
  font-weight: 800;
}
.combination .button {
  width: 100%;
  font-size: 13px;
  padding: 15px;
}
.personalizer-page main {
  padding-top: 24px;
}
@media (max-width: 1000px) {
  .hero {
    gap: 30px;
  }
  .hero-actions {
    gap: 16px;
  }
  .studio-page h1 {
    font-size: 48px;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-card .product-image {
    aspect-ratio: 1;
  }
  .category-card .product-image img {
    width: 70%;
  }
  .studio-footer {
    padding: 32px 40px 20px;
  }
  .color-workspace {
    grid-template-columns: 1fr 300px;
    gap: 20px;
  }
  .creative-callout {
    gap: 25px;
    padding: 35px;
  }
  .creative-callout h2 {
    font-size: 32px;
  }
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .print-bed {
    max-width: 420px;
    aspect-ratio: 4 / 3;
  }
  .bed-label {
    font-size: 11px;
  }
  .bed-label--top {
    top: 16px;
  }
  .bed-label--bottom {
    bottom: 16px;
  }
}
/* 681-760px: marca (233px) + nav (418px) + paddings no caben en una fila; la nav baja a su
   propia fila (MASTER §6.1). Desde 761px la fila única cabe. */
@media (min-width: 681px) and (max-width: 760px) {
  .studio-header,
  .personalizer-page .studio-header {
    height: auto;
    min-height: 72px;
    padding: 12px 5%;
    flex-wrap: wrap;
    gap: 8px 24px;
  }
  .studio-header nav {
    width: 100%;
  }
}
@media (max-width: 680px) {
  .studio-header,
  .personalizer-page .studio-header {
    height: auto;
    min-height: 110px;
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 16px;
  }
  .studio-header nav {
    width: 100%;
    flex-wrap: wrap;
    font-size: 13px;
  }
  .studio-header nav a {
    flex: 1 1 50%;
    min-width: 0;
    justify-content: center;
    padding: 0 10px;
    border-left: 0;
  }
  .studio-header nav a:last-child {
    margin-left: 0;
    padding: 0 14px;
  }
  .studio-page main {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero {
    padding: 32px 0 36px;
    gap: 36px;
  }
  .studio-page h1 {
    font-size: 47px;
    letter-spacing: -1.8px;
  }
  .hero-description {
    font-size: 16px;
    line-height: 1.65;
    margin: 20px 0;
  }
  .hero-note {
    margin-top: 20px;
  }
  .hero-actions .button {
    padding: 14px 17px;
    font-size: 14px;
  }
  .ticker {
    font-size: 11px;
    gap: 13px;
    letter-spacing: 1px;
    padding: 18px 0;
  }
  .ticker {
    justify-content: center;
    row-gap: 8px;
  }
  .ticker span:last-child,
  .ticker i:last-of-type {
    display: none;
  }
  .studio-section {
    padding: 35px 0;
  }
  .studio-page .section-heading {
    display: block;
  }
  .studio-page .section-heading h2 {
    font-size: 26px;
    margin-bottom: 16px;
  }
  .category-grid {
    gap: 12px;
  }
  .category-info {
    padding: 14px;
  }
  .category-info h3 {
    font-size: 18px;
  }
  .category-info p {
    font-size: 12px;
  }
  .creative-callout {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 18px;
  }
  .creative-callout h2 {
    font-size: 31px;
  }
  .type-play {
    gap: 9px;
    padding: 12px 0;
  }
  .script-word {
    font-size: 37px;
  }
  .pixel-word {
    font-size: 34px;
  }
  .block-word {
    font-size: 49px;
  }
  .color-callout {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 38px 0;
  }
  .color-callout h2 {
    font-size: 28px;
  }
  .color-spools {
    width: 220px;
  }
  .studio-footer {
    grid-template-columns: 1fr 1fr;
    gap: 23px;
    padding: 24px 20px 18px;
  }
  .studio-footer .brand-chile {
    height: 44px;
  }
  .studio-footer p {
    width: auto;
    font-size: 12px;
  }
  .studio-footer nav {
    grid-column: 1/-1;
    justify-content: flex-start;
  }
  .studio-footer small {
    font-size: 11px;
  }
  .studio-content {
    padding-top: 30px !important;
    padding-bottom: 38px !important;
  }
  .studio-page .page-intro h1 {
    font-size: 39px;
  }
  .page-intro p:last-child {
    font-size: 15px;
  }
  .catalog-note {
    display: block;
    padding: 15px;
    font-size: 13px;
  }
  .catalog-note b {
    display: block;
    margin-bottom: 5px;
  }
  .catalog-filters {
    gap: 8px;
    margin-top: 22px;
  }
  .catalog-filters button {
    font-size: 13px;
    padding: 10px 16px;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .catalog-card-body {
    padding: 21px;
  }
  .color-workspace {
    display: flex;
    flex-direction: column;
  }
  .color-workspace > section {
    width: 100%;
  }
  .color-workspace > .data-error,
  .color-workspace > .data-empty {
    width: 100%;
  }
  .palette-grid {
    gap: 12px;
  }
  .palette-sample {
    height: 88px;
  }
  .palette-card > span:last-child {
    font-size: 13px;
    padding: 11px;
  }
  .combination {
    position: static;
    width: 100%;
    margin-top: 10px;
  }
  .personalizer-page .viewer {
    height: 300px;
  }
  .personalizer-page main {
    padding-top: 20px;
  }
  .card-meta,
  .category-spec {
    display: none;
  }
}
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }
  .specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .specs > div {
    border-top: 1px solid var(--line);
  }
  .specs > div:first-child {
    grid-column: 1 / -1;
    border-top: 0;
  }
  .specs > div:nth-child(2) {
    border-left: 0;
  }
}
.catalog-card .product-image {
  aspect-ratio: 1;
  background-size: 200% 200%;
}

.palette-card[hidden] {
  display: none;
}
.family-filters {
  gap: 7px;
  margin: 14px 0;
}
.family-filters button {
  font-size: 12px;
  padding: 8px 12px;
  min-height: 44px;
}
.palette-card:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.combination dd {
  text-align: right;
  max-width: 70%;
}
.combination-preview #color-word b {
  font-weight: 400;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  color: transparent;
}
.personalizer-page .swatches {
  flex-wrap: wrap;
  gap: 10px;
}
.personalizer-page .swatch {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  text-shadow: var(--shadow-text);
  color: var(--check);
  min-width: 44px;
  min-height: 44px;
}
.personalizer-page .swatch.selected::after {
  content: none;
}
.personalizer-page .swatch.selected {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
@media (max-width: 680px) {
  .palette-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .color-workspace .combination {
    order: -1;
    padding: 18px;
    margin: 0 0 12px;
  }
  .combination-preview {
    height: 95px;
  }
  .combination-preview > span {
    font-size: 35px;
  }
  .combination dl {
    margin: 14px 0;
  }
  .combination .eyebrow {
    margin-bottom: 6px;
  }
  .palette-sample {
    height: 100px;
  }
}
/* Individual product gallery */
.catalog-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.studio-page .catalog-intro h1 {
  font-size: 44px;
  letter-spacing: -1.5px;
}
.catalog-intro p:not(.eyebrow) {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 15px 0 0;
}
.reference-label {
  font-size: 12px;
  white-space: nowrap;
  padding: 9px 13px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
}
.product-catalog .catalog-filters {
  margin-top: 28px;
}
.catalog-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.catalog-meta p {
  margin: 0;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.products-grid[hidden] {
  display: none;
}
.piece-card {
  border: 1px solid var(--line-strong);
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}
.piece-card[hidden] {
  display: none;
}
.category-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-soft);
}
.category-empty p {
  margin: 0 0 10px;
}
.piece-open {
  width: 100%;
  display: block;
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.piece-open:hover .piece-link {
  color: var(--blue);
  text-decoration: underline;
}
.piece-open:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -4px;
  border-radius: var(--radius);
}
.piece-image {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
}
.piece-visual {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  background-color: var(--stage);
}
.photo-visual {
  object-fit: cover;
}
.tag-visual {
  object-fit: contain;
}
.piece-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 800;
}
.piece-copy {
  padding: 22px;
}
.piece-copy h2 {
  font-size: 20px;
  line-height: 1.25;
  margin: 0;
}
.piece-copy p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 10px 0 17px;
  min-height: 44px;
}
.piece-link {
  font-size: 14px;
  font-weight: 900;
  color: var(--blue);
}
.dialog-open {
  overflow: hidden;
}
#product-dialog {
  max-width: 980px;
  width: calc(100% - 48px);
  max-height: 90dvh;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  box-shadow: var(--shadow-dialog);
}
#product-dialog::backdrop {
  background: var(--scrim);
  backdrop-filter: blur(5px);
}
.dialog-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  z-index: 1;
  font-size: 28px;
  cursor: pointer;
}
.dialog-close:hover {
  background: var(--lime);
}
.dialog-close:active {
  transform: translateY(1px);
}
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.detail-copy {
  padding: 45px 32px 30px;
}
.detail-copy h2 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.7px;
  margin: 12px 0 18px;
}
.detail-copy > p:not(.eyebrow):not(.image-disclaimer) {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.detail-copy h3 {
  font-size: 16px;
  margin: 24px 0 10px;
}
.detail-copy ul {
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.detail-palette {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 20px;
}
.detail-palette p {
  font-size: 14px;
}
.detail-palette #detail-colors {
  display: flex;
  gap: 9px;
  margin-bottom: 12px;
}
.detail-palette span {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.detail-copy > .button {
  margin-top: 25px;
  width: 100%;
  font-size: 14px;
}
#detail-visual {
  position: sticky;
  top: 0;
  background: var(--stage);
}
#detail-visual .piece-visual {
  aspect-ratio: 1;
}
@media (max-width: 950px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalog-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  .detail-copy {
    padding: 42px 24px 24px;
  }
}
@media (max-width: 680px) {
  .studio-page .catalog-intro h1 {
    font-size: 35px;
    letter-spacing: -1px;
  }
  .catalog-intro .eyebrow {
    font-size: 12px;
  }
  .catalog-intro {
    gap: 14px;
  }
  .catalog-meta p:last-child {
    display: none;
  }
  .products-grid {
    gap: 14px;
  }
  .piece-copy {
    padding: 14px;
  }
  .piece-copy h2 {
    font-size: 17px;
  }
  .piece-copy p {
    font-size: 14px;
    min-height: 66px;
    margin: 8px 0 12px;
  }
  .piece-badge {
    font-size: 12px;
    top: 9px;
    left: 9px;
    padding: 5px 9px;
  }
  .piece-link {
    font-size: 14px;
  }
  .product-catalog .catalog-filters {
    gap: 6px;
  }
  .product-catalog .catalog-filters button {
    padding: 10px 13px;
    min-height: 44px;
  }
  .product-detail {
    grid-template-columns: 1fr;
  }
  #product-dialog {
    width: calc(100% - 24px);
    max-height: 92dvh;
  }
  #detail-visual {
    position: static;
  }
  #detail-visual .piece-visual {
    max-height: 340px;
    aspect-ratio: 1;
  }
  .detail-copy {
    padding: 24px;
  }
  .detail-copy h2 {
    font-size: 27px;
  }
}
@media (max-width: 360px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .piece-copy p {
    min-height: 0;
  }
}

.custom-design {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 38px 40px;
  margin: 0 0 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--lime-tint);
}
.custom-design h2 {
  font-size: 34px;
  line-height: 1.16;
  letter-spacing: -0.8px;
  margin: 0;
}
.custom-design h2 span {
  color: var(--blue);
}
.custom-design-copy > p:last-child {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 18px 0 0;
  max-width: 510px;
}
.custom-design-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.custom-design-steps li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.custom-step-number {
  flex: none;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--blue);
}
.custom-design-steps h3 {
  font-size: 16px;
  margin: 0 0 4px;
}
.custom-design-steps p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.custom-design .eyebrow {
  font-size: 12px;
}
@media (max-width: 900px) {
  .custom-design {
    gap: 30px;
    padding: 30px;
  }
  .custom-design h2 {
    font-size: 30px;
  }
}
@media (max-width: 680px) {
  .custom-design {
    grid-template-columns: 1fr;
    padding: 25px;
    gap: 25px;
    margin-bottom: 30px;
  }
  .custom-design h2 {
    font-size: 29px;
    letter-spacing: -0.6px;
  }
  .custom-design-steps {
    gap: 18px;
  }
}

/* Pestañas (MASTER §6.19) */
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 24px;
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
}
.tabs [role='tab'] {
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.tabs [role='tab']:not([aria-selected='true']):hover {
  background: var(--paper);
}
.tabs [role='tab'][aria-selected='true'] {
  background: var(--ink);
  color: var(--lime);
}
.tabs [role='tab']:active {
  transform: translateY(1px);
}
@media (max-width: 680px) {
  .tabs {
    display: flex;
  }
  .tabs [role='tab'] {
    flex: 1;
    text-align: center;
  }
}

/* Clickers (pages/clickers.md §3, §5) */
.clicker-workspace .viewer {
  height: clamp(300px, calc(100dvh - 240px), 440px);
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.clicker-workspace .controls > * {
  scroll-margin-top: 20px;
}
#clicker-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#clicker-empty {
  position: absolute;
  inset: 0;
  align-content: center;
  text-align: center;
  color: var(--ink-soft);
  padding: 30px;
}
#clicker-empty[hidden] {
  display: none;
}
#clicker-name {
  letter-spacing: 0.08em;
  font-weight: 500;
}
.clicker-quote {
  margin: 0;
}
.clicker-quote > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.clicker-quote > div + div {
  margin-top: 8px;
}
.clicker-quote dt {
  font-size: 14px;
  color: var(--ink-soft);
}
.clicker-quote dd {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.clicker-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.clicker-subtotal[hidden] {
  display: none;
}
.clicker-subtotal b {
  font-family: var(--font-mono);
  font-size: 20px;
}
.clicker-subtotal .currency,
.order-currency {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-soft);
}
#clicker-submit,
#clicker-download {
  width: 100%;
  justify-content: space-between;
}
#clicker-submit {
  margin-top: 24px;
}
#clicker-download {
  margin-top: 12px;
}
#clicker-cancel {
  display: flex;
  margin: 8px auto 0;
}
#clicker-cancel[hidden] {
  display: none;
}
.clicker-order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 26px;
  margin: 48px 0 48px;
  align-items: start;
}
.order-main {
  container-type: inline-size;
  min-width: 0;
}
.order-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.order-head h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}
.order-chip,
.editing-chip {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--ink);
}
.order-chip[hidden] {
  display: none;
}
.editing-chip {
  background: var(--lime);
  font-weight: 700;
}
.clicker-order .data-empty {
  max-width: none;
  margin: 0;
}
.data-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.order-list {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.order-list[hidden] {
  display: none;
}
.order-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  grid-template-areas:
    'thumb body price'
    'thumb actions actions';
  gap: 8px 16px;
  align-items: center;
  padding: 16px;
}
.order-row + .order-row {
  border-top: 1px solid var(--line);
}
.order-row.is-editing {
  background: var(--blue-tint);
}
.order-thumb {
  grid-area: thumb;
  display: block;
  width: 160px;
  height: 56px;
  background: var(--stage);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.order-body {
  grid-area: body;
  min-width: 0;
}
.order-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.order-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}
.order-colors .color-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  vertical-align: -1px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
.order-warning {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--danger-text);
}
.order-price {
  grid-area: price;
  align-self: start;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.order-actions {
  grid-area: actions;
  display: flex;
  gap: 16px;
}
@container (max-width: 519px) {
  .order-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'thumb thumb'
      'body price'
      'actions actions';
  }
  .order-thumb {
    width: 100%;
    height: 64px;
  }
  .order-actions {
    justify-content: space-between;
  }
}
.order-summary {
  position: sticky;
  top: 20px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.order-summary p {
  margin: 0;
}
.order-eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-soft);
}
.order-total {
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.order-total .order-currency {
  font-size: 14px;
  letter-spacing: 0;
}
.order-count,
.order-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.order-note {
  margin-top: 10px;
}
.clicker-unsaved {
  margin-top: 12px;
  padding: 12px;
  border-left: 4px solid var(--blue);
  background: var(--blue-tint);
  font-size: 13px;
  color: var(--ink);
}
.clicker-unsaved[hidden] {
  display: none;
}
.button.whatsapp {
  width: 100%;
  margin-top: 16px;
  justify-content: space-between;
  background: var(--whatsapp);
  border-color: var(--line-strong);
  color: var(--ink);
}
.button.whatsapp span:nth-child(2) {
  flex: 1;
  text-align: center;
}
.button.whatsapp:not([aria-disabled='true']):hover {
  background: var(--ink);
  color: var(--whatsapp);
}
/* Botón de imágenes del pedido (spec clickers §5.1): secundario, sin verde. */
.button.share-button {
  width: 100%;
  margin-top: 16px;
  justify-content: space-between;
}
.button.share-button[aria-disabled='true']:not([aria-busy='true']) {
  background: var(--paper);
  border: 1.5px dashed var(--ink-soft);
  color: var(--ink-soft);
  cursor: not-allowed;
  transition: none;
}
.button.share-button[aria-busy='true'] {
  cursor: progress;
}
.order-summary .order-note[hidden] {
  display: none;
}
.order-note.is-error {
  color: var(--danger-text);
}
.button.whatsapp svg {
  width: 20px;
  height: 20px;
  flex: none;
}
@media (max-width: 900px) {
  .clicker-order {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 16px;
  }
}
@media (max-width: 680px) {
  .clicker-workspace .viewer {
    position: sticky;
    top: 0;
    z-index: 5;
    height: auto;
    grid-template-rows: auto auto;
    background: var(--stage);
  }
  .clicker-workspace .viewer-top {
    display: none;
  }
  .clicker-workspace .canvas-wrap {
    height: auto;
    aspect-ratio: 3 / 1;
  }
  .clicker-workspace .preview-foot {
    white-space: nowrap;
  }
  .clicker-workspace .controls > * {
    scroll-margin-top: 180px;
  }
  .clicker-workspace .swatches {
    gap: 8px;
  }
  .clicker-order {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 32px;
  }
  .order-summary {
    position: static;
  }
}
