.hero.hero-home {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  border-radius: 0;
}
.hero-home .eyebrow { display: inline-block; }
.hero-home .hero-title-mask {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  vertical-align: bottom;
}
.hero-home .hero-title-content { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .hero-intro-pending .hero-home [data-hero-step]:not(.hero-title-content) { opacity: 0; }
  .hero-intro-pending .hero-home .hero-title-content { transform: translateY(112%); }

  .hero-intro-playing .hero-home .hero-media picture {
    animation: hero-camera 1.06s cubic-bezier(.16,1,.3,1) both;
  }
  .hero-intro-playing .hero-home .hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(150deg, #261f18c9, #372d2290);
    animation: hero-curtain 1s cubic-bezier(.65,0,.24,1) both;
  }
  .hero-intro-playing .hero-home .hero-title-content {
    animation: hero-title-reveal .72s cubic-bezier(.16,1,.3,1) var(--hero-delay,.36s) both;
  }
  .hero-intro-playing .hero-home [data-hero-step]:not(.hero-title-content) {
    animation: hero-detail-reveal .58s cubic-bezier(.16,1,.3,1) var(--hero-delay,.24s) both;
  }
  .hero-home [data-hero-step="second"] { --hero-delay: .60s; }
  .hero-home [data-hero-step="tagline"] { --hero-delay: .84s; }
  .hero-home [data-hero-step="description"] { --hero-delay: 1.18s; --hero-rise: 40px; }
  .hero-home [data-hero-step="action"] { --hero-delay: 1.42s; }
  .hero-home [data-hero-step="last"] { --hero-delay: 1.57s; }
}
@keyframes hero-camera {
  from { transform: translate3d(0, 2%, 0) scale(1.10); }
  to { transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes hero-curtain {
  from { clip-path: inset(0 0 0 0); }
  to { clip-path: inset(0 0 100% 0); }
}
@keyframes hero-title-reveal {
  from { transform: translate3d(0, 112%, 0); }
  to { transform: translate3d(0, 0, 0); }
}
@keyframes hero-detail-reveal {
  from { opacity: 0; transform: translate3d(0, var(--hero-rise, 24px), 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.ambientes-scene{
  --split: 84%;
  --handle-y: 70%;
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1560 / 877;
  overflow: hidden;
  background: #7a6552;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
}
.ambientes-scene + .catalog { margin-top: 0; }
.ambientes-scene picture { display: contents; }
.ambientes-scene:not(.is-ready) > :not(picture),
.ambientes-scene:not(.is-ready) img { visibility: hidden; }
.ambientes-scene.is-static > :is(.divider, .handle, .range, .swatches) { display: none; }
.ambientes-scene .finish, .ambientes-scene .room, .ambientes-scene .room img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% center;
  pointer-events: none;
}
.ambientes-scene .is-left{ z-index: 1; }
.ambientes-scene .is-right{ z-index: 2; clip-path: inset(0 0 0 var(--split)); }
.ambientes-scene .room{ z-index: 4; mask-image: linear-gradient(#000 44%, transparent 53%); }
.ambientes-scene .divider, .ambientes-scene .handle{ position: absolute; z-index: 5; pointer-events: none; }
.ambientes-scene .divider{
  inset-block: 0;
  left: clamp(1px, var(--split), calc(100% - 1px));
  width: 2px;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 0 6px #211d1a85;
}
.ambientes-scene .handle{
  top: var(--handle-y);
  left: clamp(23px, var(--split), calc(100% - 23px));
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fffdf8;
  color: #211b17;
  box-shadow: 0 2px 10px #211d1a70;
}
.ambientes-scene .handle i{
  width: 7px;
  height: 7px;
  border-top: 1px solid;
  border-right: 1px solid;
  transform: rotate(45deg);
}
.ambientes-scene .handle i:first-child{ transform: rotate(-135deg); }
.ambientes-scene .range{
  position: absolute;
  z-index: 6;
  left: 0;
  top: calc(var(--handle-y) - 22px);
  width: 100%;
  height: 44px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.ambientes-scene:has(.range:focus-visible) .handle{ outline: 2px solid #fff; outline-offset: 3px; }
.ambientes-scene .swatches{
  position: absolute;
  z-index: 7;
  bottom: clamp(12px, 2.5vw, 36px);
  left: max(74px, 3vw);
  display: flex;
  gap: 4px;
}
.ambientes-scene .swatch{
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ambientes-scene .swatch::before{
  content: "";
  width: 32px;
  height: 32px;
  border: 1px solid #fff9;
  border-radius: 50%;
  background: var(--sample);
  box-shadow: 0 1px 7px #1e120bd9;
}
.ambientes-scene .swatch[data-select="blanco"]{ --sample: #e8e3dd; }
.ambientes-scene .swatch[data-select="negro"]{ --sample: #272322; }
.ambientes-scene .swatch[aria-pressed="true"]::before{
  outline: 2px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px #21150fa8, 0 1px 8px #1e120ba6;
}
.ambientes-scene .swatch:focus-visible{ outline: 2px dashed #fff; outline-offset: 1px; }
@media (hover: hover) {
  .ambientes-scene .swatch:hover::before{ transform: scale(1.12); }
}
@media (prefers-reduced-motion: no-preference) {
  .ambientes-scene .swatch::before{ transition: transform 160ms ease; }
}
@media (max-width: 600px) {
  .hero.hero-home {
    min-height: 90vh;
    min-height: 90svh;
  }
  .hero-home h1 {
    margin-block: 24px;
    line-height: 1.24;
    letter-spacing: -.02em;
  }
  .hero-home .hero-title-mask:last-child { margin-top: .22em; }
  .ambientes-scene { --handle-y: 64%; aspect-ratio: 10 / 11; }
  .ambientes-scene .finish, .ambientes-scene .room img { object-position: 12% center; }
  .ambientes-scene .swatches { left: 66px; }
}
