:root {
  --nubia-pine: #17372f;
  --nubia-pine-light: #31584c;
  --nubia-chalk: #fbf8f1;
  /* Ritmo vertical. Móvil. La sección que termina posee la pausa
     (padding-block-end). La siguiente solo guarda un inset corto. */
  --section-space-compact: 48px;
  --section-space-standard: 72px;
  --section-space-generous: 80px;
  --section-heading-gap: 36px;
  --section-content-gap: 36px;
  --section-action-gap: 32px;
  --section-inset: 16px;
}

@media (min-width: 720px) {
  :root {
    --section-space-compact: 56px;
    --section-space-standard: 88px;
    --section-space-generous: 104px;
    --section-heading-gap: 46px;
    --section-content-gap: 44px;
    --section-action-gap: 36px;
    --section-inset: 12px;
  }
}

@media (min-width: 1100px) {
  :root {
    --section-space-compact: 64px;
    --section-space-standard: 112px;
    --section-space-generous: 128px;
    --section-heading-gap: 56px;
    --section-content-gap: 52px;
    --section-action-gap: 40px;
    --section-inset: 16px;
  }
}

/* Commercial proposal: preserve the photographic hero and make the offer explicit. */
.hero__copy .cta-row {
  align-items: stretch;
}

.hero__copy > .lede {
  position: relative;
  z-index: 1;
  margin: 0 0 0.8rem;
  max-width: 36rem;
  padding: 0.75rem 0.9rem;
  color: #241f1a;
  background: rgba(255, 253, 248, 0.92);
  font-size: 0.98rem;
  line-height: 1.45;
  text-shadow: none;
}

.hero__copy > p:last-child {
  width: fit-content;
  margin: 0.75rem auto 0;
  padding: 0.35rem 0.65rem;
  color: rgba(0, 0, 0, 0.78);
  background: rgba(255, 253, 248, 0.78);
  backdrop-filter: blur(8px);
  font-size: 0.74rem;
}

.hero__copy > p:last-child a {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.commercial-proof {
  display: grid;
  grid-template-columns: minmax(12rem, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
  padding: clamp(1.8rem, 4vw, 3.2rem) clamp(1.25rem, 4vw, 3.5rem);
  color: var(--nubia-chalk);
  background: var(--nubia-pine);
}

.commercial-proof__intro {
  max-width: 11em;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 1.05;
}

.commercial-proof__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.commercial-proof__facts li {
  display: grid;
  gap: 0.2rem;
  min-height: 4.5rem;
  padding: 0.2rem clamp(1rem, 2.5vw, 2.25rem);
  border-left: 1px solid rgba(251, 248, 241, 0.28);
}

.commercial-proof__facts strong {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 500;
  line-height: 1.05;
}

.commercial-proof__facts span {
  max-width: 19ch;
  color: rgba(251, 248, 241, 0.72);
  font-size: 0.76rem;
  line-height: 1.45;
}

.collection-editorial {
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1.25rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
}

.collection-editorial__intro {
  display: grid;
  grid-template-columns: minmax(9rem, 0.4fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 6vw, 6.5rem);
  align-items: start;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.collection-editorial__index {
  margin: 0;
  padding-top: 0.4em;
  color: var(--nubia-pine);
  font-family: var(--serif);
  font-size: clamp(6rem, 14vw, 13rem);
  line-height: 0.82;
  letter-spacing: -0.08em;
}

.collection-editorial__intro h2 {
  max-width: 18ch;
}

.collection-editorial__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.8rem, 2vw, 1.6rem);
  align-items: start;
}

.collection-editorial__card:nth-child(1) { grid-column: 1 / 4; }
.collection-editorial__card:nth-child(2) { grid-column: 4 / 7; margin-top: clamp(2rem, 5vw, 5rem); }
.collection-editorial__card:nth-child(3) { grid-column: 7 / 10; }
.collection-editorial__card:nth-child(4) { grid-column: 10 / 13; margin-top: clamp(3rem, 7vw, 7rem); }

.collection-editorial__card a {
  display: block;
}

.collection-editorial__card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--ivory-deep);
  transition: filter 0.4s ease;
}

.collection-editorial__card img.is-night { object-position: center 32%; }
.collection-editorial__card img.is-botanica { object-position: center 46%; }
.collection-editorial__card img.is-coast { object-position: 62% 42%; }
.collection-editorial__card img.is-spread { object-position: center 30%; }

.collection-editorial__card a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.collection-editorial__card a:hover img {
  filter: contrast(1.03) saturate(0.92);
}

.collection-editorial__card h3 {
  margin-top: 0.85rem;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  font-weight: 500;
  line-height: 1.1;
}

.collection-editorial__card p {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.collection-editorial__footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  margin-top: clamp(3rem, 7vw, 6rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink);
}

.collection-editorial__footer p {
  color: var(--muted);
}

.studio-sampler {
  --sampler-accent: #4d6252;
  --sampler-wash: rgba(85, 112, 91, 0.3);
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1.25rem, 4vw, 3.5rem);
  color: var(--nubia-chalk);
  background: var(--graphite);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.studio-sampler[data-sampler-palette="vino"] {
  --sampler-accent: #75404a;
  --sampler-wash: rgba(116, 47, 62, 0.32);
}

.studio-sampler[data-sampler-palette="azul"] {
  --sampler-accent: #3d6070;
  --sampler-wash: rgba(46, 83, 101, 0.34);
}

.studio-sampler[data-sampler-palette="grafito"] {
  --sampler-accent: #282b2d;
  --sampler-wash: rgba(25, 28, 30, 0.4);
}

.studio-sampler .eyebrow,
.studio-sampler .lede {
  color: rgba(251, 248, 241, 0.67);
}

.studio-sampler__intro {
  display: grid;
  grid-template-columns: minmax(15rem, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.studio-sampler__intro .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -1rem;
}

.studio-sampler__intro h2 {
  max-width: 13ch;
}

.studio-sampler__intro .lede {
  align-self: end;
  margin: 0;
}

.studio-sampler__workspace {
  display: grid;
  grid-template-columns: minmax(15rem, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.studio-sampler__controls {
  border-top: 1px solid rgba(251, 248, 241, 0.5);
}

.studio-sampler__controls fieldset {
  margin: 0;
  padding: 1.4rem 0 1.5rem;
  border: 0;
  border-bottom: 1px solid rgba(251, 248, 241, 0.18);
}

.studio-sampler__controls legend {
  margin-bottom: 0.8rem;
  color: rgba(251, 248, 241, 0.58);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
}

.studio-sampler__choice-list,
.studio-sampler__type-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.studio-sampler__choice-list button,
.studio-sampler__type-list button {
  padding: 0.55rem 0.75rem;
  color: rgba(251, 248, 241, 0.66);
  border: 1px solid rgba(251, 248, 241, 0.2);
  font-size: 0.78rem;
}

.studio-sampler__choice-list button[aria-pressed="true"],
.studio-sampler__type-list button[aria-pressed="true"] {
  color: var(--graphite);
  background: var(--nubia-chalk);
  border-color: var(--nubia-chalk);
}

.studio-sampler__swatches {
  display: flex;
  gap: 0.7rem;
}

.studio-sampler__swatches button {
  width: 2.3rem;
  height: 2.3rem;
  padding: 0.25rem;
  border: 1px solid rgba(251, 248, 241, 0.25);
  border-radius: 50%;
}

.studio-sampler__swatches span {
  display: block;
  width: 100%;
  height: 100%;
  background: #4d6252;
  border-radius: inherit;
}

.studio-sampler__faces {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.studio-sampler__faces button {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(251, 248, 241, 0.28);
  border-radius: 50%;
  color: #fbf8f1;
  background: transparent;
  font-size: 1.05rem;
  line-height: 1;
}

.studio-sampler__faces button[aria-pressed="true"] {
  color: #1c1917;
  background: #fbf8f1;
  border-color: #fbf8f1;
  box-shadow: 0 0 0 2px #24312b, 0 0 0 3px #fbf8f1;
}

.studio-sampler__swatches button[aria-pressed="true"] {
  border-color: var(--nubia-chalk);
  box-shadow: 0 0 0 2px var(--graphite), 0 0 0 3px var(--nubia-chalk);
}

.studio-sampler__note {
  margin-top: 1.2rem;
  color: rgba(251, 248, 241, 0.54);
  font-size: 0.76rem;
}

.studio-sampler__preview {
  min-width: 0;
  border: 1px solid rgba(251, 248, 241, 0.23);
}

.studio-sampler__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  padding: 0.8rem 1rem;
  color: rgba(251, 248, 241, 0.62);
  border-bottom: 1px solid rgba(251, 248, 241, 0.18);
  font-size: 0.66rem;
}

.studio-sampler__views {
  display: flex;
  gap: 0.35rem;
}

.studio-sampler__views button {
  min-height: 36px;
  padding: 0 0.75rem;
  border: 1px solid rgba(251, 248, 241, 0.28);
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.studio-sampler__views button[aria-pressed="true"] {
  background: rgba(251, 248, 241, 0.92);
  color: #1c1a17;
}

@media (min-width: 721px) {
  .studio-sampler__frame[data-view="movil"] {
    width: min(390px, 100%);
    margin-inline: auto;
  }

  .studio-sampler__frame[data-view="tablet"] {
    width: min(768px, 100%);
    margin-inline: auto;
  }

  .studio-sampler__frame[data-view="escritorio"] {
    width: 100%;
  }
}

.studio-sampler__frame {
  min-height: clamp(28rem, 58vw, 40rem);
  background: #f3efe4;
}

.studio-sampler__frame iframe {
  display: block;
  width: 100%;
  height: clamp(28rem, 58vw, 40rem);
  border: 0;
  background: #f3efe4;
}

.studio-sampler__canvas {
  position: relative;
  min-height: clamp(30rem, 62vw, 47rem);
  overflow: hidden;
  background: #ded5c6;
}

.studio-sampler__canvas > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.25s ease;
}

.studio-sampler__wash {
  position: absolute;
  inset: 0;
  background: var(--sampler-wash);
  mix-blend-mode: color;
  transition: background 0.3s ease;
}

.studio-sampler__canvas::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(180deg, transparent, rgba(15, 17, 16, 0.78));
}

.studio-sampler__invitation {
  position: absolute;
  right: clamp(1.5rem, 5vw, 5rem);
  bottom: clamp(1.5rem, 5vw, 4.5rem);
  left: clamp(1.5rem, 5vw, 5rem);
  z-index: 1;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.5);
}

.studio-sampler__invitation > p:first-child {
  margin-bottom: 0.8rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
}

.studio-sampler__invitation h3 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 8vw, 6.8rem);
  font-weight: 400;
  line-height: 0.9;
}

.studio-sampler[data-sampler-type="editorial"] .studio-sampler__invitation h3 {
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: -0.06em;
}

.studio-sampler[data-sampler-type="moderna"] .studio-sampler__invitation h3 {
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: -0.055em;
}

.studio-sampler__invitation h3 i {
  color: color-mix(in srgb, var(--sampler-accent), white 45%);
  font-weight: 400;
}

.studio-sampler__invitation > span,
.studio-sampler__invitation > p:last-of-type {
  display: block;
  margin-top: 0.85rem;
}

.studio-sampler__invitation > p:last-of-type {
  font-family: var(--serif);
  font-size: 1rem;
}

.studio-sampler__rsvp {
  width: fit-content;
  margin: 1.2rem auto 0;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

.studio-sampler__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem;
}

.studio-sampler__all {
  color: rgba(251, 248, 241, 0.72);
  font-size: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.journey__steps--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.journey__note {
  max-width: 38rem;
  margin: 2.2rem 0 1.2rem;
  color: var(--muted);
}

.offer-ledger__price .btn {
  flex: 0 0 auto;
}

.offer-ledger__price-note {
  color: var(--muted);
  font-size: 0.82rem;
}

body[data-analytics-page="home"] .catalog-rail__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

body[data-analytics-page="home"] .catalog-rail__card[data-analytics-collection="monograma"] .catalog-rail__visual img {
  object-fit: cover;
  object-position: center;
  mix-blend-mode: normal;
  filter: none;
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
    margin-left: 0;
  }

  .site-nav.is-open {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 39;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: calc(100svh - var(--header-h));
    padding: 0.5rem 1.25rem 1.25rem;
    overflow-y: auto;
    background: rgba(244, 240, 232, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open > a:not(.nav-cta):not(.nav-access) {
    display: block;
  }

  .site-nav.is-open a,
  .site-nav.is-open .nav-cta,
  .site-nav.is-open .nav-access {
    margin: 0;
    padding: 0.82rem 0;
    border-width: 0 0 1px;
    border-style: solid;
    border-color: var(--line);
    background: transparent;
    color: var(--ink-soft);
  }

  .site-nav.is-open .nav-cta::after {
    display: none;
  }

  .lang-switch {
    margin: 1rem 0 0;
  }
}

@media (max-width: 980px) {
  .commercial-proof {
    grid-template-columns: 1fr;
    gap: 1.7rem;
  }

  .commercial-proof__intro {
    max-width: none;
  }

  .collection-editorial__intro {
    grid-template-columns: minmax(7rem, 0.35fr) minmax(0, 1.65fr);
  }

  .studio-sampler__workspace {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .studio-sampler__preview {
    order: 1;
  }

  .studio-sampler__controls {
    order: 2;
  }

  .journey__steps--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hero__copy .cta-row {
    margin-top: 0.75rem;
  }

  .hero__copy > p:last-child {
    text-align: center;
  }

  .commercial-proof {
    padding-block: 2.4rem;
  }

  .commercial-proof__facts {
    grid-template-columns: 1fr;
  }

  .commercial-proof__facts li {
    min-height: 0;
    padding: 1rem 0;
    border-left: 0;
    border-top: 1px solid rgba(251, 248, 241, 0.25);
  }

  .commercial-proof__facts span {
    max-width: none;
  }

  .collection-editorial__intro {
    display: block;
  }

  .collection-editorial__index {
    margin-bottom: 2rem;
    font-size: 7rem;
  }

  .collection-editorial__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .collection-editorial__footer .btn {
    width: 100%;
  }

  .studio-sampler {
    padding: calc(1.15rem + env(safe-area-inset-top)) 0 calc(1.15rem + env(safe-area-inset-bottom));
    scroll-margin-top: calc(var(--header-h) + 12px + env(safe-area-inset-top));
  }

  .studio-sampler__intro {
    display: block;
  }

  .studio-sampler__workspace {
    display: flex;
    flex-direction: column;
  }

  .studio-sampler__preview {
    order: 1;
  }

  .studio-sampler__controls {
    order: 2;
  }

  .studio-sampler__intro {
    padding: 0 1.1rem;
  }

  .studio-sampler__intro .eyebrow {
    margin-bottom: 0.35rem;
  }

  .studio-sampler__intro h2 {
    max-width: none;
    margin: 0;
    font-size: 1.35rem;
  }

  .studio-sampler__intro .lede {
    display: none;
  }

  .studio-sampler__controls {
    margin: 0.9rem 0 0.35rem;
    padding: 0 1.1rem;
    border-top: 0;
  }

  .studio-sampler__controls fieldset {
    padding: 0.2rem 0 0.35rem;
    border-bottom: 0;
  }

  .studio-sampler__controls legend {
    margin-bottom: 0.4rem;
  }

  .studio-sampler__choice-list,
  .studio-sampler__faces,
  .studio-sampler__swatches {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
    padding-bottom: 0.15rem;
  }

  .studio-sampler__choice-list button,
  .studio-sampler__faces button,
  .studio-sampler__swatches button {
    flex: 0 0 auto;
  }

  .studio-sampler__swatches button,
  .studio-sampler__faces button {
    width: 2.75rem;
    height: 2.75rem;
  }

  .studio-sampler__note {
    margin-top: 0.35rem;
  }

  .studio-sampler__preview {
    border: 0;
    background: transparent;
  }

  .studio-sampler__bar {
    display: none;
  }

  .studio-sampler__frame {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: calc(100% - 4.5rem);
    max-width: 280px;
    height: min(52dvh, 460px);
    min-height: 280px;
    margin: 1.15rem auto;
    padding: 0;
    overflow: hidden;
    border-radius: 36px;
    background: #1a1a1c;
    box-shadow:
      inset 0 0 0 2px #4a4a4e,
      inset 0 0 0 5px #0c0c0e,
      0 16px 28px rgba(0, 0, 0, 0.28);
  }

  .studio-sampler__frame::before {
    content: "";
    position: absolute;
    z-index: 3;
    top: 14px;
    left: 50%;
    width: 28%;
    height: 16px;
    border-radius: 16px;
    background: #0a0a0a;
    transform: translateX(-50%);
    pointer-events: none;
  }

  .studio-sampler__frame iframe {
    position: absolute;
    top: 10px;
    left: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 20px);
    min-height: 0;
    margin: 0;
    border-radius: 28px;
    background: #f3efe6;
    overscroll-behavior: auto;
  }

  .studio-sampler__actions {
    align-items: center;
    flex-direction: row;
    gap: 0.85rem;
    width: calc(100% - 4.5rem);
    max-width: 420px;
    margin: 0.85rem auto 0;
  }

  .studio-sampler__actions .btn {
    width: auto;
  }

  .journey__steps--three {
    grid-template-columns: 1fr;
  }

  .offer-ledger__price {
    align-items: stretch;
  }
}

@media (min-width: 1100px) {
  :root {
    --screen-section: calc(100dvh - var(--header-h));
  }

  body:has(.cookie-bar) {
    --screen-section: calc(100dvh - var(--header-h) - 6rem);
  }

  .collection-editorial {
    box-sizing: border-box;
    height: var(--screen-section);
    max-height: var(--screen-section);
    scroll-margin-top: calc(var(--header-h) + 12px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1rem, 2.2vh, 2rem) clamp(1.5rem, 3vw, 3.5rem);
    overflow: hidden;
  }

  .collection-editorial__intro {
    flex: 0 0 auto;
    margin-bottom: clamp(0.65rem, 1.6vh, 1.25rem);
    gap: clamp(1rem, 2vw, 2.5rem);
  }

  .collection-editorial__index {
    font-size: clamp(4rem, 10vh, 7rem);
  }

  .collection-editorial__grid {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
  }

  .collection-editorial__card {
    min-width: 0;
    min-height: 0;
  }

  .collection-editorial__card:nth-child(2) { margin-top: 2.5vh; }
  .collection-editorial__card:nth-child(4) { margin-top: 5vh; }

  .collection-editorial__card a {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
    align-content: end;
    height: 100%;
    min-height: 0;
  }

  .collection-editorial__card img {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .collection-editorial__card h3 {
    margin-top: 0.55rem;
    font-size: clamp(1.05rem, 1.6vh, 1.35rem);
  }

  .collection-editorial__footer {
    flex: 0 0 auto;
    margin-top: clamp(0.65rem, 1.6vh, 1.15rem);
    padding-top: 0.75rem;
  }

  .studio-sampler,
  #como-funciona,
  #que-incluye,
  #experiencia,
  #vision,
  #atelier-experiencias {
    box-sizing: border-box;
    height: var(--screen-section);
    max-height: var(--screen-section);
    scroll-margin-top: calc(var(--header-h) + 12px);
  }

  .studio-sampler {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1rem, 2.4vh, 2rem) clamp(1.5rem, 3vw, 3.5rem);
    overflow: hidden;
  }

  .studio-sampler__intro {
    flex: 0 0 auto;
    margin-bottom: clamp(0.6rem, 1.8vh, 1.4rem);
    gap: clamp(1rem, 3vw, 3rem);
  }

  .studio-sampler__intro .eyebrow {
    margin-bottom: 0;
  }

  .studio-sampler__intro h2 {
    font-size: clamp(1.7rem, 4.2vh, 3.1rem);
  }

  .studio-sampler__workspace {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
    gap: clamp(1.25rem, 3vw, 3.5rem);
  }

  .studio-sampler__controls {
    min-height: 0;
    overflow: auto;
  }

  .studio-sampler__controls fieldset {
    padding: clamp(0.55rem, 1.4vh, 1rem) 0;
  }

  .studio-sampler__preview {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
  }

  .studio-sampler__frame {
    flex: 1 1 auto;
    min-height: 0;
  }

  .studio-sampler__frame iframe {
    height: 100%;
    min-height: 0;
  }

  .studio-sampler__canvas {
    flex: 1 1 auto;
    min-height: 0;
  }

  .studio-sampler__invitation h3 {
    font-size: clamp(2rem, 5.5vh, 4.6rem);
  }

  #como-funciona,
  #experiencia,
  #vision {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.25rem, 3vh, 2.5rem) clamp(1.5rem, 3vw, 3.5rem);
  }

  #como-funciona {
    overflow: hidden;
  }

  #como-funciona h2,
  #experiencia h2,
  #vision h2 {
    margin-bottom: clamp(1.2rem, 3vh, 2.4rem);
    font-size: clamp(2rem, 5vh, 3.6rem);
  }

  #que-incluye {
    --offer-pad-x: clamp(1.5rem, 3vw, 3.5rem);
    --offer-pad-y: clamp(1.1rem, 2.6vh, 2.2rem);
    --offer-gap: clamp(1.25rem, 3vw, 3rem);
    align-items: center;
    padding: var(--offer-pad-y) var(--offer-pad-x);
    gap: var(--offer-gap);
    overflow: hidden;
  }

  #que-incluye .platform__intro h2 {
    font-size: clamp(2.05rem, 4.4vh, 3.05rem);
    line-height: 1.02;
  }

  #que-incluye .platform__intro > p:last-child {
    margin-top: 0.65rem;
    font-size: 0.92rem;
    line-height: 1.5;
  }

  #que-incluye .nubia-lista__stage { margin-top: 0.4rem; }
  #que-incluye .nubia-lista__open { margin-top: 0.35rem; }

  #que-incluye .offer-ledger {
    min-height: 0;
    overflow: hidden;
  }

  #que-incluye .offer-ledger__entry {
    padding: clamp(0.65rem, 1.5vh, 1.25rem) 0;
  }

  #atelier-experiencias {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1rem, 2.4vh, 2rem) clamp(1.5rem, 3vw, 3.5rem);
    overflow: hidden;
  }

  #atelier-experiencias .experiencias-home__intro {
    flex: 0 0 auto;
    margin-bottom: clamp(0.6rem, 1.6vh, 1.25rem);
  }

  #atelier-experiencias .experiencias-home__intro h2 {
    font-size: clamp(1.8rem, 4vh, 3rem);
  }

  #atelier-experiencias .experiencias-home__anchors {
    flex: 1 1 auto;
    min-height: 0;
    margin-bottom: clamp(0.6rem, 1.4vh, 1.2rem);
    padding-top: clamp(0.7rem, 1.6vh, 1.2rem);
    align-items: start;
  }

  #atelier-experiencias .experiencias-home__visual {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    max-height: none;
  }

  #atelier-experiencias .experiencias-home__close {
    margin-bottom: 0.8rem;
  }
}

@media (max-width: 900px) {
  .collection-editorial {
    height: auto;
    max-height: none;
    overflow: visible;
    padding-inline: clamp(1.15rem, 4.5vw, 1.5rem);
  }

  .collection-editorial__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
    row-gap: 1.25rem;
    align-items: start;
  }

  .collection-editorial__card:nth-child(n) {
    grid-column: auto;
    margin-top: 0;
  }

  .collection-editorial__card:nth-child(2),
  .collection-editorial__card:nth-child(4) {
    margin-top: 36px;
  }

  .collection-editorial__card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }

  .collection-editorial__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .collection-editorial__footer .btn {
    width: 100%;
  }
}

@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  html.motion-ready .collection-editorial__card:nth-child(-n+2) {
    animation: collection-pair-in 0.7s var(--nubia-ease, cubic-bezier(.22, 1, .36, 1)) both;
  }

  html.motion-ready .collection-editorial__card:nth-child(n+3) {
    animation: collection-pair-in 0.7s var(--nubia-ease, cubic-bezier(.22, 1, .36, 1)) 80ms both;
  }
}

@keyframes collection-pair-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .collection-editorial__card img {
    transition: none;
  }

  .collection-editorial__card {
    animation: none;
    opacity: 1;
  }
}

/* En escritorio cada sección cabe en la pantalla. El botón queda dentro del bloque oscuro. */
@media (min-width: 1100px) {
  .studio-sampler,
  .collection-editorial,
  #como-funciona,
  #que-incluye,
  #experiencia,
  #vision,
  #atelier-experiencias,
  #colecciones {
    box-sizing: border-box;
    max-height: calc(100svh - var(--header-h));
    overflow: hidden;
  }
}

.studio-sampler__choice-list button,
.studio-sampler__faces button,
.studio-sampler__swatches button,
.studio-sampler__views button {
  min-height: 44px;
  min-width: 44px;
}

.studio-sampler__actions {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  margin-top: 0.75rem;
  background: var(--graphite);
}

.experiencias-home__visual,
#atelier-experiencias .experiencias-home__visual {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
}

/* El visor arranca a la altura del título. Móvil y tableta llevan carcasa; escritorio ocupa la columna. */
@media (min-width: 1100px) {
  .studio-sampler {
    display: grid;
    grid-template-columns: minmax(17.5rem, 22.5rem) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    column-gap: clamp(1.25rem, 2.4vw, 2.75rem);
    align-items: stretch;
  }

  .studio-sampler__intro {
    grid-column: 1;
    grid-row: 1;
    display: block;
    margin-bottom: 0.85rem;
  }

  .studio-sampler__intro p {
    margin-top: 0.7rem;
  }

  .studio-sampler__workspace {
    display: contents;
  }

  .studio-sampler__controls {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
  }

  .studio-sampler__preview {
    grid-column: 2;
    grid-row: 1 / span 2;
    height: auto;
    align-self: stretch;
  }

  .studio-sampler__preview:has([data-view="movil"]),
  .studio-sampler__preview:has([data-view="tablet"]) {
    align-items: center;
    justify-content: flex-start;
  }

  .studio-sampler__preview:has([data-view="movil"]) .studio-sampler__bar,
  .studio-sampler__preview:has([data-view="tablet"]) .studio-sampler__bar {
    flex: 0 0 auto;
    width: 100%;
  }

  .studio-sampler__frame {
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 0;
    background: transparent;
  }

  .studio-sampler__frame[data-view="escritorio"] {
    width: 100%;
    background: #f4f0e6;
  }

  .studio-sampler__frame[data-view="escritorio"] iframe {
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 0;
  }

  .studio-sampler__frame[data-view="movil"] {
    position: relative;
    display: block;
    flex: 0 0 auto;
    align-self: center;
    box-sizing: border-box;
    width: auto;
    height: min(62dvh, 580px);
    max-height: none;
    min-height: 0;
    aspect-ratio: 390 / 844;
    margin-top: auto;
    margin-bottom: auto;
    padding: 0;
    overflow: hidden;
    border-radius: 46px;
    background: #1a1a1c;
    box-shadow:
      inset 0 0 0 2px #4a4a4e,
      inset 0 0 0 6px #0c0c0e,
      0 18px 28px rgba(21, 16, 11, 0.28);
  }

  .studio-sampler__frame[data-view="movil"]::before {
    content: "";
    position: absolute;
    z-index: 3;
    top: 18px;
    left: 50%;
    width: 28%;
    height: 20px;
    transform: translateX(-50%);
    border-radius: 20px;
    background: #0a0a0a;
    pointer-events: none;
  }

  .studio-sampler__frame[data-view="movil"] iframe {
    position: absolute;
    top: 14px;
    left: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 28px);
    min-height: 0;
    margin: 0;
    border-radius: 36px;
    background: #f3efe6;
  }

  .studio-sampler__frame[data-view="tablet"] {
    position: relative;
    display: block;
    flex: 0 0 auto;
    align-self: center;
    box-sizing: border-box;
    width: auto;
    height: min(62dvh, 580px);
    max-height: none;
    min-height: 0;
    aspect-ratio: 834 / 1210;
    margin-top: auto;
    margin-bottom: auto;
    padding: 0;
    overflow: hidden;
    border-radius: 28px;
    background: #1a1a1c;
    box-shadow:
      inset 0 0 0 2px #4a4a4e,
      inset 0 0 0 6px #0c0c0e,
      0 18px 28px rgba(21, 16, 11, 0.28);
  }

  .studio-sampler__frame[data-view="tablet"]::before {
    content: "";
    position: absolute;
    z-index: 3;
    top: 16px;
    left: 50%;
    width: 7px;
    height: 7px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #0a0a0a;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
    pointer-events: none;
  }

  .studio-sampler__frame[data-view="tablet"] iframe {
    position: absolute;
    top: 14px;
    left: 14px;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
    min-height: 0;
    margin: 0;
    border-radius: 18px;
    background: #f3efe6;
  }
}
