.progreso {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  transform-origin: 0 50%;
  transform: scaleX(var(--sp, 0));
  background: linear-gradient(90deg, var(--brand), var(--sun));
  pointer-events: none;
}
.recorrido {
  position: relative;
  height: 420vh;
}
.escenario {
  position: sticky;
  top: 68px;
  height: calc(100svh - 68px);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}
.capa {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.fachada {
  transform-origin: 50% 62%;
  transform: scale(calc(1 + var(--p, 0) * 5));
  opacity: calc(1 - max(0, (var(--p, 0) - 0.5)) * 3);
  will-change: transform;
}
.fachada svg {
  width: 100%;
  height: 100%;
}
.puerta-h,
.puerta-d {
  transition: transform 0.2s linear;
}
.puerta-h {
  transform: translateX(calc(var(--p, 0) * -70px));
}
.puerta-d {
  transform: translateX(calc(var(--p, 0) * 70px));
}

.interior {
  background: var(--bg);
  opacity: clamp(0, calc((var(--p, 0) - 0.42) * 3), 1);
}
.colgantes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.colgante {
  --k: min(1, max(0, (var(--p, 0) - 0.5) / 0.3));
  position: absolute;
  top: 0;
  left: var(--x);
  width: calc(6% * var(--s, 1));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.colgante i {
  display: block;
  width: 3px;
  height: calc(3svh + var(--k) * var(--c, 14));
  background: linear-gradient(#0d0d0d, #2a2a2a);
  border-radius: 2px;
}
.colgante img {
  width: 100%;
  height: auto;
  opacity: var(--k);
  filter: drop-shadow(0 18px 22px rgba(60, 30, 0, 0.45));
}
.salon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  transform: scale(calc(1.12 - var(--p, 0) * 0.12));
}
.interior .piso {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 0;
  height: 42%;
  background: repeating-linear-gradient(90deg, var(--line) 0 2px, transparent 2px 120px),
    linear-gradient(var(--chip), var(--bg));
  transform: perspective(600px) rotateX(55deg);
  transform-origin: 50% 100%;
  opacity: 0.7;
}
.mesa {
  position: absolute;
  border-radius: 50%;
  background: var(--chip);
  border: 1px solid var(--line);
  box-shadow: 0 30px 40px -24px var(--glow);
  transform: scale(calc(0.6 + var(--p, 0) * 0.4));
}
.mesa.a {
  width: 18vw;
  height: 7vw;
  left: 6%;
  top: 62%;
}
.mesa.b {
  width: 18vw;
  height: 7vw;
  right: 6%;
  top: 64%;
}
.mesa.c {
  width: 14vw;
  height: 5.5vw;
  left: 22%;
  top: 20%;
  opacity: 0.55;
}
.mesa.d {
  width: 14vw;
  height: 5.5vw;
  right: 22%;
  top: 18%;
  opacity: 0.55;
}
.celular {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  height: calc(100svh - 68px - 170px);
  min-height: 300px;
  max-height: 620px;
  width: auto;
  aspect-ratio: 9/19.5;
  padding: 10px;
  border-radius: 40px;
  background: #0b0b0d;
  box-shadow:
    0 50px 90px -30px rgba(0, 0, 0, 0.6),
    inset 0 0 0 2px #2a2a30;
  opacity: clamp(0, calc((var(--p, 0) - 0.6) * 3), 1);
}
.celular:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  width: 30%;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
  z-index: 2;
}
.pantalla {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 31px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #f5f5f5;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pantalla::-webkit-scrollbar {
  display: none;
}
.pantalla img {
  display: block;
  width: 100%;
  height: auto;
}
.editor-card {
  position: absolute;
  left: 77%;
  top: 20%;
  width: 19%;
  padding: 16px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 40px 70px -36px var(--glow);
  opacity: clamp(0, calc((var(--p, 0) - 0.6) * 3), 1);
  transform: translateY(calc((1 - var(--p, 0)) * 40px));
}
.editor-card h4 {
  margin: 10px 0 8px;
  font:
    800 clamp(15px, 1.4vw, 19px) / 1.2 "Inter",
    sans-serif;
  color: var(--ink);
}
.editor-card {
  width: 21%;
}
.ed-btns {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.ed-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--ink);
  font:
    700 13px/1.25 "Inter",
    sans-serif;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}
.ed-btn:hover,
.ed-btn:focus-visible {
  transform: translateX(5px);
  background: var(--sun-soft);
  box-shadow: 0 10px 22px -14px var(--glow);
  outline: none;
}
.ed-btn:active {
  transform: scale(0.98);
}
@media (prefers-reduced-motion: reduce) {
  .ed-btn {
    transition: none;
  }
}
.pr-intro {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 72px) 16px 8px;
  text-align: center;
}
.pr-intro h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.pr-intro p {
  margin: 0;
  color: var(--ink-2);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.6;
}
.rc-grid {
  perspective: 1200px;
}
.rc {
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(36px);
  transform-style: preserve-3d;
  will-change: transform;
}
.rc.visto {
  opacity: 1;
  animation: rcIn 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  animation-delay: calc(var(--i, 0) * 85ms);
}
.rc:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.rc:hover:after {
  opacity: 1;
}
.rc {
  transition:
    transform 0.35s ease,
    box-shadow 0.45s ease,
    border-color 0.3s ease;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(0);
}
.rc:hover {
  box-shadow: 0 24px 48px -30px var(--glow);
  border-color: var(--sun);
}
.rc:hover .rc-ico {
  transform: translateY(-2px);
}
.rc-ico {
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes rcIn {
  from {
    opacity: 0;
    transform: translateY(36px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    filter: none;
  }
}
.barrido {
  color: var(--brand);
}
@media (prefers-reduced-motion: reduce) {
  .rc,
  .rc.visto,
  .barrido {
    color: var(--brand);
  }
}
.rep-scene {
  position: relative;
  height: 280vh;
}
.rep-stage {
  position: sticky;
  top: 68px;
  height: calc(100svh - 68px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.4vh, 26px);
  padding: 0 16px;
  --p: 0;
}
.rep-eye {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--brand);
}
.rep-title {
  margin: 0;
  font-size: clamp(28px, 5vw, 58px);
  letter-spacing: -0.025em;
  text-align: center;
  text-wrap: balance;
  opacity: clamp(0, calc(var(--p) * 4), 1);
  transform: translateY(calc((1 - var(--p)) * 40px));
}
.rep-cloud {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  width: min(1000px, 100%);
  perspective: 1000px;
}
.rep-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 14px;
  min-width: 0;
  opacity: clamp(0, calc((var(--p) - var(--i) * 0.035) * 4), 1);
  transform: translate3d(calc((1 - var(--p)) * var(--dx)), calc((1 - var(--p)) * var(--dy)), 0)
    rotate(calc((1 - var(--p)) * var(--dr) * 0.25)) scale(calc(0.86 + var(--p) * 0.14));
  filter: blur(calc((1 - var(--p)) * 6px));
  will-change: transform, opacity, filter;
}
.rep-item span {
  font-size: 20px;
}
.rep-item b {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rep-foot {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  opacity: clamp(0, calc((var(--p) - 0.85) * 6), 1);
}
@media (max-width: 820px) {
  .rep-cloud {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 460px) {
  .rep-cloud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  .rep-scene {
    height: auto;
  }
  .rep-stage {
    position: static;
    height: auto;
    padding: 48px 16px;
  }
  .rep-item,
  .rep-title,
  .rep-foot {
    opacity: 1 !important;
    transform: none !important;
  }
}
.ven-scene {
  position: relative;
  height: 260vh;
}
.ven-stage {
  position: sticky;
  top: 68px;
  height: calc(100svh - 68px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  --p: 0;
}
.ven-eye {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--brand);
}
.ven-title {
  margin: 14px 0 16px;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  opacity: clamp(0, calc(var(--p) * 4), 1);
  transform: translateY(calc((1 - var(--p)) * 50px));
}
.ven-lead {
  margin: 0;
  color: var(--ink-2);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.6;
  max-width: 44ch;
  opacity: clamp(0, calc((var(--p) - 0.2) * 4), 1);
}
.ven-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(18px, 3vw, 30px);
  box-shadow: 0 40px 80px -40px var(--glow);
  transform: perspective(1200px) rotateY(calc((1 - var(--p)) * -8deg)) translateX(calc((1 - var(--p)) * 40px));
  opacity: clamp(0, calc(var(--p) * 2.4), 1);
}
.ven-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ven-kpi {
  background: var(--chip);
  border-radius: 16px;
  padding: 14px;
  min-width: 0;
}
.ven-kpi small {
  display: block;
  color: var(--ink-2);
  font-size: 12px;
  margin-bottom: 6px;
}
.ven-kpi b {
  font-size: clamp(18px, 2.4vw, 26px);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.ven-chart {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: clamp(6px, 1.4vw, 14px);
  height: clamp(180px, 30vh, 260px);
  margin-top: 22px;
  padding-top: 24px;
}
.ven-bar {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}
.ven-bar span {
  display: block;
  width: 100%;
  height: calc(clamp(0, (var(--p) - var(--i) * 0.07) * 2.2, 1) * var(--h));
  border-radius: 10px 10px 4px 4px;
  background: var(--brand);
  opacity: 0.88;
}
.ven-bar:nth-child(6) span {
  background: var(--sun);
  opacity: 1;
}
.ven-bar small {
  margin-top: 8px;
  font-size: 11px;
  color: var(--ink-2);
}
.ven-note {
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: 12px;
}
@media (max-width: 820px) {
  .ven-stage {
    grid-template-columns: 1fr;
    align-content: center;
  }
  .ven-copy {
    text-align: center;
  }
  .ven-lead {
    margin: 0 auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ven-scene {
    height: auto;
  }
  .ven-stage {
    position: static;
    height: auto;
    padding: 48px 16px;
  }
  .ven-title,
  .ven-lead,
  .ven-panel,
  .ven-bar span {
    opacity: 1 !important;
    transform: none !important;
  }
}
#mpanel {
  display: none;
}
.rc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}
@media (max-width: 980px) {
  .rc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .rc-grid {
    grid-template-columns: 1fr;
  }
}
.rc {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  min-width: 0;
}
.rc-ico {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: var(--chip);
}
.rc b {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}
.rc p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.5;
}
.entrada-productos {
  scroll-margin-top: 68px;
  position: relative;
  z-index: 3;
  background: var(--bg);
  overflow: clip;
  opacity: clamp(0, calc(var(--q, 0) * 1.4), 1);
  clip-path: inset(
    calc((1 - var(--q, 0)) * 22%) calc((1 - var(--q, 0)) * 4%) 0 calc((1 - var(--q, 0)) * 4%) round
      calc((1 - var(--q, 0)) * 36px)
  );
  filter: blur(calc((1 - var(--q, 0)) * 8px));
  transform: translateY(calc((1 - var(--q, 0)) * 140px)) scale(calc(0.94 + var(--q, 0) * 0.06));
  will-change: transform, opacity, clip-path, filter;
}
.entrada-productos::after {
  display: none;
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(105deg, transparent 35%, var(--sun-soft) 50%, transparent 65%);
  opacity: calc(1 - var(--q, 0));
  transform: translateX(calc(var(--q, 0) * 120% - 60%));
}
.tarjeta {
  position: absolute;
  left: 5%;
  top: 11%;
  width: clamp(200px, 20vw, 280px);
  display: grid;
  justify-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(18px, 3vw, 30px);
  box-shadow: 0 50px 90px -40px var(--glow);
  text-align: center;
  transform: translateY(calc((1 - var(--p, 0)) * 80px)) scale(calc(0.55 + var(--p, 0) * 0.45))
    rotate(calc((1 - var(--p, 0)) * -8deg));
  opacity: clamp(0, calc((var(--p, 0) - 0.6) * 3), 1);
}
.tarjeta .mesa-n {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  text-transform: uppercase;
}
.tarjeta h3 {
  font-size: clamp(20px, 2.4vw, 28px);
}
.qr {
  width: clamp(180px, 22vw, 260px);
  aspect-ratio: 1;
  padding: 14px;
  background: #fff;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}
.qr svg {
  width: 100%;
  height: 100%;
  display: block;
}
.qr.imgqr {
  width: 100%;
  padding: 0;
  background: none;
  aspect-ratio: auto;
  border-radius: 14px;
}
.qr.imgqr img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}
.qr:after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  height: 3px;
  top: 12%;
  background: var(--sun);
  box-shadow: 0 0 16px var(--sun);
  animation: escanea 2.6s ease-in-out infinite;
}
@keyframes escanea {
  0%,
  100% {
    top: 12%;
    opacity: 0.4;
  }
  50% {
    top: 86%;
    opacity: 1;
  }
}
.tarjeta .btn {
  margin-top: 4px;
}

.paso-txt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(40px, 8vh, 90px);
  text-align: center;
  pointer-events: none;
  padding: 0 16px;
}
.paso-txt div {
  position: absolute;
  inset: auto 0 0 0;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.paso-txt div.on {
  opacity: 1;
  transform: none;
}
.paso-txt b {
  display: block;
  font-size: clamp(28px, 4.6vw, 60px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}
.paso-txt b,
.paso-txt span {
  text-shadow:
    0 2px 14px var(--bg),
    0 0 4px var(--bg);
}
.paso-txt span {
  display: block;
  margin-top: 10px;
  color: var(--ink-2);
  font-size: clamp(16px, 1.8vw, 20px);
}
.mono-top {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  text-transform: uppercase;
  z-index: 3;
}
.progreso-pasos {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  display: flex;
  gap: 8px;
  z-index: 3;
}
.progreso-pasos i {
  width: 28px;
  height: 4px;
  border-radius: 9px;
  background: var(--line);
  transition:
    background 0.4s ease,
    width 0.4s ease;
}
.progreso-pasos i.on {
  background: var(--brand);
  width: 44px;
}
@media (max-width: 700px) {
  .puerta-h,
  .puerta-d {
    transform: none;
  }
  .mesa.c,
  .mesa.d {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .qr:after {
    animation: none;
  }
}
.pared {
  position: absolute;
  inset: 0 0 34% 0;
  background: linear-gradient(180deg, #f7e3b0, #f1d28a 60%, #e8c47a);
}
.pared:after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 118px, rgba(120, 80, 20, 0.08) 118px 120px);
}
.lamparas {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 46%;
  display: flex;
  justify-content: space-around;
  padding: 0 12%;
  pointer-events: none;
}
.lamparas span {
  position: relative;
  width: 2px;
  height: calc(100% * (0.25 + var(--p, 0) * 0.4));
  background: linear-gradient(#7a5a16, #c7a24a);
}
.lamparas span:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 38px;
  height: 38px;
  transform: translateX(-50%);
  border-radius: 50% 50% 14px 14px;
  background: radial-gradient(circle at 50% 30%, #fff9db, #fdc307 70%);
  box-shadow: 0 0 60px 26px rgba(255, 214, 90, 0.55);
}
.interior .piso {
  background: repeating-linear-gradient(90deg, rgba(120, 70, 20, 0.22) 0 2px, transparent 2px 140px),
    repeating-linear-gradient(0deg, rgba(120, 70, 20, 0.12) 0 2px, transparent 2px 70px),
    linear-gradient(#c98e4b, #a86b35) !important;
  opacity: 1 !important;
}
.interior .mesa {
  background: radial-gradient(ellipse at 50% 35%, #e7b982, #b9793f 70%, #8a5226) !important;
  border: none !important;
  box-shadow: 0 40px 46px -22px rgba(60, 30, 0, 0.55) !important;
  overflow: visible;
}
.interior .mesa i {
  position: absolute;
  left: 50%;
  top: 78%;
  width: 52%;
  height: 110%;
  transform: translateX(-50%);
  border-radius: 0 0 14px 14px;
  background: linear-gradient(#3a2514, #22150a);
  z-index: -1;
}

.fachada {
  transform: none !important;
  opacity: 1 !important;
  overflow: hidden;
}
.fotofrente {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100%, calc((100svh - 68px) * 1.7917));
  aspect-ratio: 1376/768;
  transform-origin: 49.3% 57.8%;
  transform: translate(-50%, -50%)
    scale(
      calc(1 + min(1, max(0, var(--p, 0) / 0.45)) * 1.1 + min(1, max(0, (var(--p, 0) - 0.45) / 0.25)) * 6)
    );
  will-change: transform;
}
.fotofrente img {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
}
.ff-plantas {
  position: absolute;
  left: 0;
  bottom: -9%;
  width: 100%;
  height: 25%;
  pointer-events: none;
  transform: translate3d(calc(var(--p, 0) * 14%), calc(var(--p, 0) * -95%), 0);
  opacity: calc(1 - min(1, max(0, (var(--p, 0) - 0.25) / 0.4)));
  background-image: url("../img/plantas-fachada.webp");
  background-repeat: repeat-x;
  background-position: left bottom;
  background-size: auto 100%;
}
.ff-in {
  inset: 0;
  width: 100%;
  height: 100%;
  filter: saturate(1.05) blur(calc(min(1, max(0, (var(--p, 0) - 0.1) / 0.35)) * 7px));
  transform: scale(1.04);
}
.ff-base {
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: calc(1 - min(1, max(0, (var(--p, 0) - 0.72) / 0.14)));
}
.fotofrente {
  perspective: 1400px;
}
.ff-hoja {
  transition: none;
  backface-visibility: hidden;
}
.ff-hoja.izq {
  transform: translateX(calc(min(1, max(0, (var(--p, 0) - 0.06) / 0.4)) * -12%));
}
.ff-hoja.der {
  transform: translateX(calc(min(1, max(0, (var(--p, 0) - 0.06) / 0.4)) * 12%));
}

.letrero {
  position: absolute;
  left: 31.7%;
  top: 11.5%;
  width: 34.4%;
  height: 12%;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(14px, 2.6vw, 40px);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  opacity: calc(1 - min(1, max(0, (var(--p, 0) - 0.3) / 0.15)));
}
@media (max-width: 700px) {
  .ff-hoja {
    display: block;
  }
}

.recorrido {
  --t: 0;
}
.ff-base {
  position: absolute;
  inset: 0;
}
.fotofrente .ff-base img.tod,
.fotofrente .ff-hoja img.tod {
  inset: 0;
  width: 100%;
  height: 100%;
}
.ff-hoja {
  position: absolute;
}
.fotofrente img.tarde {
  opacity: min(1, calc(var(--t, 0) * 2));
}
.fotofrente img.noche {
  opacity: max(0, calc(var(--t, 0) * 2 - 1));
}
.letrero {
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.25),
    0 0 calc(var(--t, 0) * 18px) rgba(253, 195, 7, calc(var(--t, 0) * 0.28));
}
.ff-luces {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: calc(max(0, var(--t, 0) * 2 - 1) * (1 - min(1, var(--p, 0) / 0.22)));
}
.ff-luces i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #ffe7a0;
  box-shadow:
    0 0 6px 1px rgba(253, 195, 7, 0.55),
    0 0 14px 3px rgba(253, 195, 7, 0.18);
  opacity: 0;
  animation:
    luzVuela var(--d) ease-in-out var(--r) infinite,
    luzBrilla var(--b) ease-in-out var(--r) infinite;
}
@keyframes luzVuela {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(var(--dx), calc(var(--dy) * -0.6));
  }
  50% {
    transform: translate(calc(var(--dx) * 0.4), var(--dy));
  }
  75% {
    transform: translate(calc(var(--dx) * -0.5), calc(var(--dy) * 0.3));
  }
  100% {
    transform: translate(0, 0);
  }
}
@keyframes luzBrilla {
  0%,
  100% {
    opacity: 0;
  }
  35% {
    opacity: 0.85;
  }
  55% {
    opacity: 0.25;
  }
  70% {
    opacity: 0.9;
  }
}
html.tema-lento body,
html.tema-lento header.top {
  transition:
    background-color 2.4s ease,
    color 2.4s ease,
    border-color 2.4s ease;
}
@media (prefers-reduced-motion: reduce) {
  .ff-luces i {
    animation: none;
    opacity: 0.6;
  }
}
.noche-in {
  opacity: var(--t, 0);
}
.ff-plantas {
  filter: brightness(calc(1 - var(--t, 0) * 0.55)) saturate(calc(1 - var(--t, 0) * 0.35));
}
