/* APHC Desarrolladora — estilos
   Paleta: hormigón / grafito / óxido. Tipos: Archivo (variable, ancho) + IBM Plex Mono. */
:root {
  --ink: #151515;
  --concrete: #ECEAE5;
  --stone: #E2DFD8;
  --paper: #F7F6F3;
  --line: #C9C5BC;
  --muted: #5E5B55;
  --muted-d: #A8A49C;
  --oxide: #A4441F;
  --oxide-l: #D8693E;
  --white: #F4F2EE;
  --pad: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --hdr: 72px;
  --sans: 'Archivo', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--hdr);
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--concrete);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--oxide-l);
  outline-offset: 3px;
}
.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.mono {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.dark .muted {
  color: var(--muted-d);
}
.accent {
  color: var(--oxide);
}
.accent-2 {
  color: var(--oxide-l);
}
.light {
  color: var(--concrete);
}
.dark {
  background: var(--ink);
  color: var(--concrete);
}
.light-bg {
  background: var(--concrete);
}
.stone-bg {
  background: var(--stone);
}
.section {
  padding-block: clamp(96px, 10vw, 160px);
}
.section--top {
  padding-top: clamp(96px, 10vw, 150px);
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  background: var(--white);
  padding: 10px 14px;
}
.skip:focus {
  left: 8px;
}


/* type */
.display {
  font-weight: 300;
  font-stretch: 72%;
  font-size: clamp(36px, 6.4vw, 100px);
  line-height: .9;
  letter-spacing: -.02em;
  text-transform: uppercase;
  max-width: 12ch;
}
.display strong,
.h-xl strong,
.h-l strong,
.h-giant strong {
  font-weight: 750;
  font-stretch: 100%;
}
.h-giant {
  font-weight: 300;
  font-stretch: 62%;
  font-size: clamp(46px, 9vw, 140px);
  line-height: .84;
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.h-giant strong {
  font-weight: 800;
}
.h-xl {
  font-weight: 300;
  font-stretch: 70%;
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.h-l {
  font-weight: 300;
  font-stretch: 70%;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: .95;
  text-transform: uppercase;
}
.lead {
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.3;
  font-weight: 500;
}
.label {
  margin-bottom: 20px;
}


/* links / buttons */
.lnk {
  text-decoration: none;
  transition: color .25s;
}
.lnk:hover {
  color: var(--oxide);
}
.dark .lnk:hover {
  color: var(--oxide-l);
}
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .12em;
  text-decoration: none;
  border: 1px solid;
  background: transparent;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn--light {
  border-color: rgba(236, 234, 229, .5);
  color: var(--concrete);
}
.btn--dark {
  border-color: var(--ink);
  color: var(--ink);
  min-height: 48px;
}
.btn:hover {
  background: var(--oxide);
  border-color: var(--oxide);
  color: var(--white);
}
.icon-btn {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border: 1px solid rgba(236, 234, 229, .4);
  background: transparent;
  color: var(--concrete);
  cursor: pointer;
  font-size: 20px;
  transition: background .25s;
}
.icon-btn:hover {
  background: var(--oxide);
}


/* progress */
.prog {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--oxide);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 90;
}


/* header */
.header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(21, 21, 21, .78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(236, 234, 229, .12);
}
.header__in {
  height: var(--hdr);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.header__logo img {
  height: 30px;
  width: auto;
}
.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(2px, 1vw, 14px);
  color: var(--concrete);
}
.nav__a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  text-decoration: none;
  color: rgba(236, 234, 229, .72);
  transition: color .3s;
}
.nav__a:hover,
.nav__a[aria-current="true"] {
  color: var(--concrete);
}
.nav__ind {
  position: absolute;
  left: 0;
  top: 50%;
  height: 44px;
  width: var(--w, 0);
  border: 1px solid rgba(236, 234, 229, .6);
  transform: translate(var(--x, 0), -50%);
  opacity: 0;
  pointer-events: none;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1), width .55s cubic-bezier(.2, .7, .2, 1), opacity .3s;
}
.nav.has-active .nav__ind {
  opacity: 1;
}


/* hero */
.hero {
  position: relative;
  height: max(640px, 100svh);
  margin-top: calc(var(--hdr) * -1);
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}
.hero__in {
  position: absolute;
  inset: 0;
  overflow: hidden;
  animation: heroin 2.8s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes heroin {
  from {
    transform: scale(1.22);
    filter: blur(8px);
  }
  to {
    transform: none;
    filter: none;
  }
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.72);
}
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 21, 21, .55) 0%, rgba(21, 21, 21, 0) 30%, rgba(21, 21, 21, 0) 55%, rgba(21, 21, 21, .75) 100%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  pointer-events: none;
}
.hero__grid span {
  border-left: 1px solid rgba(244, 242, 238, .14);
}
.hero__grid span:last-child {
  border-right: 1px solid rgba(244, 242, 238, .14);
}
.hero__txt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: 72px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  letter-spacing: .16em;
}
.rule {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: currentColor;
}
.hero__arrow {
  position: absolute;
  right: var(--pad);
  bottom: 56px;
  width: 56px;
  filter: invert(1) brightness(1.6);
  opacity: .8;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob {
  50% {
    transform: translateY(10px);
  }
}


/* manifesto */
.manifesto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 48px;
  align-items: start;
}
.manifesto__side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.dots {
  width: 14px;
}
.manifesto__body {
  grid-column: span 2;
  min-width: 0;
}
.manifesto__text {
  font-size: clamp(21px, 2.3vw, 34px);
  line-height: 1.25;
  letter-spacing: -.012em;
}
.manifesto__text em {
  font-style: normal;
  color: var(--oxide);
}
.line {
  height: 1px;
  background: var(--ink);
  margin: 64px 0 28px;
  transform-origin: left;
}
.tagline {
  font-stretch: 75%;
  font-weight: 700;
  font-size: clamp(17px, 1.5vw, 22px);
  text-transform: uppercase;
  letter-spacing: .01em;
}


/* doors */
.doors-sec {
  padding-bottom: clamp(96px, 10vw, 160px);
}
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
}
.door {
  position: relative;
  display: block;
  height: clamp(440px, 48vw, 660px);
  color: var(--white);
  text-decoration: none;
  background: var(--ink);
  overflow: hidden;
}
.door img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.78);
}
.door__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  background: linear-gradient(0deg, rgba(21, 21, 21, .85), rgba(21, 21, 21, 0));
}
.door__cap .mono {
  margin-bottom: 10px;
}
.door__t {
  font-weight: 700;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.2;
  max-width: 22ch;
}
.door__more {
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  white-space: nowrap;
  margin: 0;
}


/* photo container */
.ph {
  overflow: hidden;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  background: #222;
  display: block;
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1);
}
.no-sda .ph:hover img {
  transform: scale(1.045);
}


/* en ejecución */
.status {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  letter-spacing: .14em;
  color: var(--muted-d);
  border-bottom: 1px solid rgba(236, 234, 229, .18);
  padding-bottom: 20px;
}
.status--light {
  color: var(--muted);
  border-color: var(--ink);
}
.status span:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--oxide-l);
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 6px rgba(216, 105, 62, .25);
  }
}
.nunez-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 40px;
  align-items: end;
  padding-top: 48px;
}
.nunez-head__side {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 12px;
}
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chips span {
  border: 1px solid rgba(236, 234, 229, .45);
  padding: 10px 14px;
  letter-spacing: .1em;
}
.feature {
  width: 100%;
  height: clamp(360px, 52vw, 760px);
}
.amen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 48px;
}
.amen__list {
  grid-column: span 2;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.amen__list li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid rgba(236, 234, 229, .18);
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 500;
  letter-spacing: .02em;
}
.num {
  color: var(--muted-d);
}


/* vistas: horizontal */
.hs-stick {
  padding: 24px 0 48px;
}
.hs-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding-bottom: 28px;
}
.hs {
  display: flex;
  gap: 20px;
  padding-inline: var(--pad);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hs::-webkit-scrollbar {
  display: none;
}
.vista {
  margin: 0;
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vista .ph {
  height: clamp(320px, 40vw, 560px);
  aspect-ratio: 16/11;
}
.vista--tall .ph {
  aspect-ratio: 3/4;
}
.vista figcaption {
  display: flex;
  gap: 14px;
  color: #CFCBC3;
  letter-spacing: .1em;
}


/* unidades */
.units {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: stretch;
}
.units__tabs {
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink);
}
.unit-tab {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 24px;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background .25s, color .25s;
}
.unit-tab:hover {
  background: var(--stone);
}
.unit-tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--concrete);
}
.unit-tab__txt {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.unit-tab__amb {
  font-size: 18px;
  font-weight: 700;
}
.unit-tab .muted {
  color: inherit;
  opacity: .7;
  font-weight: 400;
}
.units__panel {
  flex: 999 1 560px;
  min-width: 0;
  background: var(--paper);
  border: 1px solid #D5D1C9;
  display: flex;
  flex-direction: column;
}
.units__bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 24px;
  border-bottom: 1px solid #D5D1C9;
}
.units__plan {
  flex: 1;
  min-height: clamp(320px, 44vw, 620px);
  padding: 24px;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
}
.units__plan img {
  max-height: 640px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.swap {
  transition: opacity .35s ease, transform .5s cubic-bezier(.2, .7, .2, 1);
}
.swap.is-out {
  opacity: 0;
  transform: translateY(16px) scale(.98);
}


/* planos + ubicación */
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: clamp(48px, 6vw, 96px);
}
.col {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}
.seg {
  display: flex;
  border: 1px solid var(--ink);
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}
.seg__btn {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .25s, color .25s;
}
.seg__btn[aria-selected="true"] {
  background: var(--ink);
  color: var(--concrete);
}
.plan-box {
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: zoom-in;
  height: clamp(300px, 36vw, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.plan-box img {
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.spec-list,
.ubic {
  list-style: none;
  margin: 0;
  padding: 0;
}
.spec-list li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.map {
  height: clamp(320px, 36vw, 520px);
  border: 1px solid var(--line);
  background: #fff;
  cursor: default;
}
.map img {
  object-fit: contain;
}
.ubic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0 24px;
}
.ubic li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 16px;
}
.big-num {
  font-weight: 800;
  font-size: 30px;
  font-stretch: 75%;
  line-height: 1;
}


/* terminados */
#terminados .h-giant {
  margin-top: 48px;
}
.projects {
  padding-top: 64px;
  padding-bottom: clamp(96px, 10vw, 150px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.project {
  background: var(--concrete);
  border-top: 1px solid var(--ink);
  padding: 28px 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.project__info {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}
.project__info .mono {
  margin-bottom: 18px;
  letter-spacing: .14em;
}
.project__name {
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: .92;
  text-transform: uppercase;
}
.project__name span {
  font-weight: 300;
  color: var(--oxide);
}
.project__meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.project__meta .mono {
  margin: 0;
}
.mosaic {
  flex: 999 1 640px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: clamp(140px, 16vw, 230px) clamp(140px, 16vw, 230px);
  gap: 10px;
}
.cell {
  background: #D5D1C9;
  min-height: 0;
}
.cell--main {
  grid-column: span 2;
  grid-row: span 2;
}


/* contacto */
.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 0 32px;
}
.contact {
  border-top: 1px solid rgba(236, 234, 229, .25);
  padding: 28px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  font-size: 17px;
}
.contact__name {
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
}
.contact .lnk {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.contact .btn {
  margin-top: 8px;
}
.general {
  margin-top: 56px;
  border-top: 1px solid rgba(236, 234, 229, .25);
  padding-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 24px;
  font-size: 17px;
}
.general div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer {
  border-top: 1px solid rgba(236, 234, 229, .12);
}
.footer__in {
  padding-block: 48px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__in img {
  height: 44px;
  width: auto;
}
.footer .lnk {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}


/* whatsapp flotante */
.wa {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--concrete);
  border: 1px solid rgba(236, 234, 229, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transition: background .25s, transform .25s;
}
.wa:hover {
  background: var(--oxide);
  transform: translateY(-2px);
}


/* lightbox */
.lb {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(12, 12, 12, .96);
  color: var(--concrete);
}
.lb[open] {
  display: flex;
  flex-direction: column;
  animation: lbin .35s ease both;
}
@keyframes lbin {
  from {
    opacity: 0;
  }
}
.lb::backdrop {
  background: rgba(0, 0, 0, .5);
}
.lb__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px var(--pad);
}
.lb__right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lb__stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 clamp(8px, 2vw, 24px) 20px;
}
.lb__stage img {
  max-width: calc(100% - 140px);
  max-height: 100%;
  object-fit: contain;
  transition: opacity .25s;
}
.lb.is-plan .lb__stage img {
  background: var(--paper);
}
.lb__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 var(--pad) 20px;
  justify-content: safe center;
}
.lb__thumbs button {
  flex: 0 0 auto;
  width: 84px;
  height: 60px;
  padding: 0;
  border: 2px solid transparent;
  background: #222;
  cursor: pointer;
  opacity: .5;
  transition: opacity .2s;
}
.lb__thumbs button[aria-current="true"] {
  border-color: var(--oxide-l);
  opacity: 1;
}
.lb__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width:640px) {
  .lb__stage {
    position: relative;
  }
  .lb__stage img {
    max-width: 100%;
  }
  .lb__stage .icon-btn {
    position: absolute;
    bottom: 28px;
    background: rgba(21, 21, 21, .7);
  }
  #lb-prev {
    left: 16px;
  }
  #lb-next {
    right: 16px;
  }
  .nav {
    font-size: 10.5px;
    letter-spacing: .05em;
    gap: 0;
  }
  .nav__a {
    padding: 0 7px;
  }
  .header__logo img {
    height: 24px;
  }
  .nav__ind {
    height: 36px;
  }
  .hero__arrow {
    display: none;
  }
  .hero__txt {
    padding-bottom: 120px;
  }
  .mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 200px 120px 120px;
  }
  .cell--main {
    grid-column: span 2;
    grid-row: span 1;
  }
  .cell--last {
    display: none;
  }
}


/* ============ MOVIMIENTO LIGADO AL SCROLL (CSS scroll-driven animations) ============ */
@supports (animation-timeline: view()) {
  .prog {
    animation: prog linear both;
    animation-timeline: scroll(root);
  }
  @keyframes prog {
    to {
      transform: scaleX(1);
    }
  }
  .hero__img {
    animation: heroz linear both;
    animation-timeline: scroll(root);
    animation-range: 0 100svh;
  }
  @keyframes heroz {
    from {
      transform: scale(1.02);
    }
    to {
      transform: scale(1.2);
      filter: brightness(.45);
    }
  }
  .hero__txt {
    animation: herot linear both;
    animation-timeline: scroll(root);
    animation-range: 0 80svh;
  }
  @keyframes herot {
    to {
      transform: translateY(-140px);
      opacity: 0;
    }
  }

  .rv {
    animation: rv linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
  @keyframes rv {
    from {
      opacity: 0;
      transform: translateY(56px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  .wd {
    animation: wd linear both;
    animation-timeline: view();
    animation-range: cover 10% cover 42%;
  }
  @keyframes wd {
    from {
      opacity: .14;
    }
    to {
      opacity: 1;
    }
  }
  .line {
    animation: line linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }
  @keyframes line {
    from {
      transform: scaleX(0);
    }
  }

  .drift {
    animation: drift linear both;
    animation-timeline: view();
  }
  @keyframes drift {
    from {
      transform: translateX(9%);
    }
    to {
      transform: translateX(-7%);
    }
  }
  .drift-r {
    animation: driftr linear both;
    animation-timeline: view();
  }
  @keyframes driftr {
    from {
      transform: translateX(-8%);
    }
    to {
      transform: translateX(6%);
    }
  }

  .tilt {
    animation: tilt linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 50%;
  }
  @keyframes tilt {
    from {
      transform: perspective(1400px) rotateX(14deg) scale(.9);
      opacity: .3;
    }
    to {
      transform: none;
      opacity: 1;
    }
  }
  .par-strong {
    animation: pars linear both;
    animation-timeline: view();
  }
  @keyframes pars {
    from {
      transform: scale(1.34) translateY(-12%);
    }
    to {
      transform: scale(1.34) translateY(12%);
    }
  }

  .zoom {
    animation: zoom linear both;
    animation-timeline: view();
  }
  @keyframes zoom {
    from {
      transform: scale(1.02);
    }
    to {
      transform: scale(1.28);
    }
  }
  .zoom-s {
    animation: zooms linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 45%;
  }
  @keyframes zooms {
    from {
      transform: scale(.86) rotate(-1.5deg);
      opacity: .2;
    }
    to {
      transform: none;
      opacity: 1;
    }
  }

  .rvc {
    animation: rvc linear both;
    animation-timeline: view();
  }
  .rvc0 {
    animation-range: entry 0% cover 32%;
  }
  .rvc1 {
    animation-range: entry 15% cover 38%;
  }
  .rvc2 {
    animation-range: entry 25% cover 44%;
  }
  .rvc3 {
    animation-range: entry 35% cover 50%;
  }
  .rvc4 {
    animation-range: entry 45% cover 56%;
  }
  @keyframes rvc {
    from {
      clip-path: inset(100% 0 0 0);
    }
    to {
      clip-path: inset(0 0 0 0);
    }
  }
  .pz {
    animation: pza linear both;
    animation-timeline: view();
  }
  .pz--alt {
    animation-name: pzb;
  }
  @keyframes pza {
    from {
      transform: scale(1.3) translateY(-10%);
    }
    to {
      transform: scale(1.3) translateY(10%);
    }
  }
  @keyframes pzb {
    from {
      transform: scale(1.3) translateY(9%);
    }
    to {
      transform: scale(1.3) translateY(-9%);
    }
  }

  /* Vistas: el scroll vertical mueve la tira en horizontal */
  .hs-wrap {
    height: 300svh;
    view-timeline: --hs block;
  }
  .hs-stick {
    position: sticky;
    top: var(--hdr);
    overflow: hidden;
    container-type: inline-size;
  }
  .hs {
    overflow: visible;
    width: max-content;
    animation: hsx linear both;
    animation-timeline: --hs;
    animation-range: contain 0% contain 100%;
  }
  @keyframes hsx {
    to {
      transform: translateX(calc(-100% + 100cqw));
    }
  }
  .hs-img {
    animation: hsi linear both;
    animation-timeline: --hs;
    animation-range: contain 0% contain 100%;
  }
  @keyframes hsi {
    from {
      transform: scale(1.28) translateX(10%);
    }
    to {
      transform: scale(1.28) translateX(-10%);
    }
  }

  .stack {
    position: sticky;
    top: calc(var(--hdr) + var(--i) * 28px);
  }
}


/* Fallback (Firefox y otros): revelado con IntersectionObserver + parallax con JS */
.no-sda .rv,
.no-sda .tilt,
.no-sda .zoom-s,
.no-sda .rvc {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.2, .7, .2, 1);
}
.no-sda .in {
  opacity: 1 !important;
  transform: none !important;
}
.no-sda .par-strong,
.no-sda .pz,
.no-sda .zoom {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  .hs-wrap {
    height: auto !important;
  }
  .hs-stick {
    position: static !important;
  }
  .hs {
    overflow-x: auto !important;
    width: auto !important;
    transform: none !important;
  }
  .prog {
    display: none;
  }
  .no-sda .rv,
  .no-sda .tilt,
  .no-sda .zoom-s,
  .no-sda .rvc {
    opacity: 1;
    transform: none;
  }
}
