/* OWNLY hero: capas independientes para apertura y scroll. */
.hero-stage{position:relative;height:170vh;background:var(--color-ivory);color:var(--color-graphite)}
[data-theme="dark"] .hero-stage{background:var(--color-graphite);color:var(--color-ivory)}
.hero-pin{position:sticky;top:0;height:100svh;overflow:hidden}
.hero-inner{display:grid;grid-template-columns:minmax(0,42fr) minmax(0,58fr);align-items:center;gap:clamp(1rem,2vw,2rem);height:100%;padding-top:5rem}
.hero-copy{position:relative;z-index:3;transform:translateY(var(--hero-text-y,0px));opacity:var(--hero-text-opacity,1)}
.hero-eyebrow{display:inline-flex;align-items:center;gap:.75rem;margin-bottom:var(--space-2);animation:hl-fade .45s both}
.hero-eyebrow::before{content:"";width:2.5rem;height:2px;background:var(--color-copper);transform:scaleX(0);transform-origin:left;animation:hl-line .65s var(--ease) forwards}
#hero-title{max-width:11ch;margin:0 0 var(--space-3);font-size:clamp(2.9rem,6vw,6.3rem);line-height:1.08}
.hero-mask{display:inline-block;overflow:hidden;vertical-align:bottom}
.hero-title-line,.hero-title-line__text{display:contents}
.hero-word{display:inline-block;animation:hl-word .9s cubic-bezier(.2,.8,.2,1) both}
.hero-mask:nth-child(2) .hero-word{animation-delay:.22s}
.hero-mask:nth-child(3) .hero-word{animation-delay:.34s}
.hero-mask:nth-child(4) .hero-word{animation-delay:.46s}
.hero-word--copper{color:var(--color-deep-copper)}
[data-theme="dark"] .hero-word--copper{color:var(--color-copper)}
.hero-lede{max-width:36ch;animation:hl-up .7s var(--ease) .7s both}
.hero-actions{animation:hl-up .7s var(--ease) .82s both}
.hero-visual{position:relative;width:100%;aspect-ratio:1512/1040;perspective:1600px;isolation:isolate}
.hl-tilt{position:absolute;inset:0;transform:rotateX(var(--hx,0deg)) rotateY(var(--hy,0deg)) scale(var(--hs,1));transform-style:preserve-3d}
.hl-lid{position:absolute;top:0;left:0;width:100%;height:73.076923%;transform-origin:50% 100%;z-index:1;animation:hl-open 1.3s cubic-bezier(.22,1,.36,1) .55s both}
.hl-lid__art,.hl-base img,.hl-phone img{display:block;width:100%;height:100%}
.hl-lid__art{position:relative;z-index:1;object-fit:fill}
.hl-base{position:absolute;top:72.884615%;left:0;width:100%;height:27.115385%;z-index:2;animation:hl-base .8s var(--ease) .3s both}
.hl-screen{position:absolute;z-index:2;left:13.36%;top:11.71%;width:74.21%;height:83.29%;overflow:hidden;background:var(--color-graphite);animation:hl-power .5s ease 1.5s both}
.hl-slide{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:top;animation:hl-cycle 13.5s linear infinite}
.hl-slide--2{animation-delay:-9s}
.hl-slide--3{animation-delay:-4.5s}
.hl-screen__flash{position:absolute;z-index:3;inset:0;background:white;opacity:0;pointer-events:none;animation:hl-flash .45s ease-out 1.5s both}
.hl-phone-motion{position:absolute;z-index:4;right:1%;bottom:0;width:24%;aspect-ratio:887/1774;transform:translateY(var(--hero-phone-y,0px))}
.hl-phone-enter{width:100%;height:100%;animation:hl-phone-in .9s cubic-bezier(.3,1.4,.5,1) 1.3s both}
.hl-phone-bob{width:100%;height:100%;animation:hl-bob 5s ease-in-out 2.2s infinite alternate}
.hl-phone{position:relative;width:100%;height:100%;transform:rotateY(-18deg) rotateZ(4deg)}
.hl-phone>img{position:relative;z-index:1}
.hl-phone__screen{position:absolute;z-index:2;left:9.13%;top:6.09%;width:81.62%;height:86.58%;overflow:hidden;border-radius:9% / 4.5%;background:var(--color-graphite)}
.hl-phone__screen .hl-slide{object-fit:cover;object-position:top}
.hero-stage.is-paused .hl-slide,.hero-stage.is-paused .hl-phone-bob{animation-play-state:paused}
.hero-stage.is-moving .hl-tilt,.hero-stage.is-moving .hero-copy,.hero-stage.is-moving .hl-phone-motion,.hero-stage.is-entering .hl-lid,.hero-stage.is-entering .hl-phone-enter{will-change:transform}
@keyframes hl-line{to{transform:scaleX(1)}}
@keyframes hl-fade{from{opacity:0}to{opacity:1}}
@keyframes hl-word{from{transform:translateY(105%)}to{transform:translateY(0)}}
@keyframes hl-up{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}
@keyframes hl-base{from{opacity:0;transform:translateY(36px)}to{opacity:1;transform:translateY(0)}}
@keyframes hl-open{from{transform:rotateX(-96deg)}to{transform:rotateX(0)}}
@keyframes hl-power{from{opacity:0}to{opacity:1}}
@keyframes hl-flash{0%{opacity:.35}100%{opacity:0}}
@keyframes hl-phone-in{from{opacity:0;transform:translateY(60px) rotateY(-30deg)}to{opacity:1;transform:translateY(0) rotateY(0)}}
@keyframes hl-bob{from{transform:translateY(-8px)}to{transform:translateY(8px)}}
@keyframes hl-cycle{0%,100%{opacity:0}4%,31%{opacity:1}37%{opacity:0}}
@media(max-width:820px){
  .hero-stage{height:130vh}
  .hero-inner{grid-template-columns:1fr;align-content:center;gap:.4rem;padding-top:5rem}
  #hero-title{font-size:clamp(2.5rem,9vw,5rem);margin-bottom:.6rem}
  .hero-eyebrow{margin-bottom:.5rem}
  .hero-lede{font-size:clamp(.9rem,3vw,1.15rem);line-height:1.4}
  .hero-actions{margin-top:.75rem;gap:.5rem}
  .hero-visual{width:100%;max-width:35rem;margin:auto}
  .hl-phone-motion{width:30%;right:1%;bottom:-2%}
}
@media(max-width:1199px){.hl-tilt{transform:scale(var(--hs,1))}}
@media(max-width:359px){
  #hero-title{font-size:2.35rem}
  .hero-actions .button{font-size:.8rem;padding:.4rem .7rem}
}
@media(max-width:820px) and (max-height:650px){
  .hero-inner{align-content:start;gap:0}
  .hero-visual{max-width:18rem}
  .hero-lede{margin-bottom:.3rem}
  .hero-actions{margin-top:.25rem}
}
@media(prefers-reduced-motion:reduce){
  .hero-eyebrow,.hero-eyebrow::before,.hero-word,.hero-lede,.hero-actions,.hl-lid,.hl-base,.hl-screen,.hl-screen__flash,.hl-phone-enter,.hl-phone-bob{animation:none!important}
  .hero-eyebrow::before{transform:scaleX(1)!important}
  .hero-word,.hl-lid,.hl-base,.hl-phone-enter{transform:none!important;opacity:1!important}
  .hl-screen,.hero-lede,.hero-actions{opacity:1!important;transform:none!important}
  .hl-screen__flash{display:none!important}
  .hl-tilt{transform:none!important}
  .hl-phone-motion,.hero-copy{transform:none!important;opacity:1!important}
  .hl-slide{animation:none!important;opacity:0!important}
  .hl-slide--1{opacity:1!important}
}

/* Fase 12: entrada de escritorio; las propiedades individuales preservan el tilt del scroll. */
@media(min-width:1200px) and (prefers-reduced-motion:no-preference){
  .hero-title-line{display:block;overflow:hidden;white-space:nowrap}
  .hero-title-line__text{display:inline-block;animation:hero12-line .7s cubic-bezier(.16,1,.3,1) .1s backwards}
  .hero-title-line:nth-child(2) .hero-title-line__text{animation-delay:.22s}
  #hero-title .hero-word{animation:none}
  #hero-title .hero-word--copper{animation:hero12-wipe .45s cubic-bezier(.16,1,.3,1) .5s backwards}
  .hero-eyebrow{animation:hero12-eyebrow .45s cubic-bezier(.16,1,.3,1) backwards}
  .hero-eyebrow::before{animation:hero12-rule .45s cubic-bezier(.16,1,.3,1) backwards;transform:scaleX(1)}
  .hero-lede{animation:hero12-lede .6s cubic-bezier(.16,1,.3,1) .45s backwards}
  .hero-actions{animation:none}
  .hero-actions .button{animation:hero12-button .55s cubic-bezier(.16,1,.3,1) .6s backwards}
  .hero-actions .button:nth-child(2){animation-delay:.68s}
  .hl-tilt{animation:hero12-laptop .9s cubic-bezier(.16,1,.3,1) .15s backwards}
  .hl-lid{animation-duration:.95s;animation-delay:.5s;animation-fill-mode:backwards}
  .hl-base{animation-duration:.75s;animation-delay:.15s;animation-fill-mode:backwards}
  .hl-screen{animation-duration:.35s;animation-delay:1.12s;animation-fill-mode:backwards}
  .hl-screen__flash{animation-duration:.3s;animation-delay:1.12s;animation-fill-mode:backwards}
  .hl-phone-enter{animation:hero12-phone .8s cubic-bezier(.34,1.56,.64,1) .55s backwards}
  .hl-phone-bob{animation-duration:6s;animation-delay:1.35s}
}
@keyframes hero12-rule{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes hero12-eyebrow{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}
@keyframes hero12-line{from{translate:0 105%}to{translate:0 0}}
@keyframes hero12-wipe{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes hero12-lede{from{opacity:0;translate:0 16px}to{opacity:1;translate:0 0}}
@keyframes hero12-button{from{opacity:0;scale:.96}to{opacity:1;scale:1}}
@keyframes hero12-laptop{from{opacity:0;translate:90px 0;rotate:y -10deg}to{opacity:1;translate:0 0;rotate:y 0deg}}
@keyframes hero12-phone{from{opacity:0;translate:0 60px;rotate:6deg}to{opacity:1;translate:0 0;rotate:0deg}}
@media(min-width:1200px) and (prefers-reduced-motion:reduce){
  .hero-title-line{display:block;white-space:nowrap}
  .hero-title-line__text{display:inline-block}
}


