/* La vista base queda visible hasta que se activa cada efecto. */
html.fx-on .public .site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(255 255 255 / 93%);
  backdrop-filter: blur(12px);
  transition: background-color .24s ease, color .24s ease, transform .29s cubic-bezier(.22,.7,.24,1);
}
html.fx-on .public .site-header.fx-over-hero {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
  color: #fff;
}
html.fx-on .public .site-header.fx-header-away:not(:focus-within) {
  transform: translateY(-102%);
}
html.fx-on .public .hero {
  margin-top: calc(-1 * var(--fx-header-height, 0px));
  padding-top: var(--fx-header-height, 0px);
  overflow: hidden;
}
html.fx-on .public .hero-inner:focus-within {
  opacity: 1 !important;
  transform: none !important;
}
html.fx-on .public .fx-word {
  display: inline-block;
  max-width: 100%;
}
html.fx-on .public .fx-rise {
  animation: fx-rise .6s cubic-bezier(.22,.7,.24,1) var(--fx-delay, 0s) backwards;
}
html.fx-on .public .fx-mask {
  animation: fx-mask .72s cubic-bezier(.22,.7,.24,1) var(--fx-delay, 0s) backwards;
}
html.fx-on .public .fx-rise:focus-within,
html.fx-on .public .fx-mask:focus-within {
  animation: none;
}
html.fx-on .public .hero-img { transform: translateY(var(--fx-parallax, 0%)); }
html.fx-on .public .fx-ken-burns {
  animation: fx-ken-burns 9s cubic-bezier(.24,.64,.31,1) backwards;
}
html.fx-on .public .fx-scroll-cue {
  position: absolute;
  right: clamp(1rem, 4vw, 2.5rem);
  bottom: .55rem;
  display: flex;
  align-items: center;
  gap: .45rem;
  pointer-events: none;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
html.fx-on .public .fx-scroll-cue::after {
  content: "";
  width: .42rem;
  height: .42rem;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
  animation: fx-cue 2.4s ease-in-out infinite;
}
html.fx-on .public .card-photo { overflow: hidden; }
html.fx-on .public .fx-photo-zoom {
  animation: fx-photo-zoom .85s cubic-bezier(.22,.7,.24,1) var(--fx-delay, 0s) backwards;
}
html.fx-on .public .fx-draw {
  animation: fx-draw .82s ease-out var(--fx-delay, 0s) backwards;
}

html.fx-on .public .fx-counting {
  position: relative;
}
html.fx-on .public .fx-counting .fx-price-original { opacity: 0; }
html.fx-on .public .fx-price-counter {
  position: absolute;
  inset: 0 auto auto 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

/* La franja usa el espacio inicial de la primera sección para mantener el flujo. */
html.fx-on .public .fx-home-marquee {
  position: relative;
  height: clamp(1.6rem, 4.6vw, 3.65rem);
  margin-bottom: calc(-1 * clamp(1.6rem, 4.6vw, 3.65rem));
  z-index: 1;
  background: #f2f6f3;
}
html.fx-on .public .fx-home-marquee .fx-marquee-track {
  font: 800 clamp(1.24rem, 3.6vw, 2.65rem) / clamp(1.6rem, 4.6vw, 3.65rem) Raleway, system-ui, sans-serif;
  color: #315246;
  -webkit-text-stroke: 1px #315246;
  -webkit-text-fill-color: transparent;
}
html.fx-on .public [data-fx="marquee"] { overflow: hidden; }
html.fx-on .public .fx-marquee-track {
  display: flex;
  width: max-content;
  animation: fx-marquee var(--fx-marquee-time, 24s) linear infinite;
}
html.fx-on .public .fx-marquee-group,
html.fx-on .public .fx-marquee-extra {
  display: flex;
  flex: none;
  white-space: pre;
}
html.fx-on .public [data-fx="marquee"]:hover .fx-marquee-track,
html.fx-on .public [data-fx="marquee"]:focus-within .fx-marquee-track {
  animation-play-state: paused;
}
html.fx-on .public [data-fx="marquee"]:focus-within {
  overflow-x: auto;
}
html.fx-on .public [data-fx="marquee"]:focus-within .fx-marquee-track {
  animation: none;
}

@media (hover: hover) and (pointer: fine) {
  html.fx-on .public .listing-card,
  html.fx-on .public .btn,
  html.fx-on .public .floating .wa {
    transform: var(--fx-pointer-transform, none);
    transition: transform .22s cubic-bezier(.22,.7,.24,1);
  }
  html.fx-on .public .card-photo img {
    transition: scale .42s cubic-bezier(.22,.7,.24,1);
  }
  html.fx-on .public .listing-card:hover .card-photo img { scale: 1.06; }
}

html.fx-on .public .gallery-main { position: relative; }
html.fx-on .public .gallery-main > img,
html.fx-on .public .fx-gallery-previous {
  transform: translateY(var(--fx-parallax, 0%));
  scale: 1.08;
}
html.fx-on .public .fx-gallery-previous {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}
html.fx-on .public .contact-band {
  background: linear-gradient(110deg, #18352b, color-mix(in srgb, var(--accent) 24%, #122b24), #18352b);
  background-size: 200% 100%;
}
html.fx-on .public .contact-band.fx-cta-active { animation: fx-cta 12s ease-in-out infinite; }
html.fx-on .public .contact-band.fx-cta-active .btn:not(:hover, :focus-visible) {
  animation: fx-pulse 5s ease-in-out infinite;
}
html.fx-on .public .fx-progress,
html.fx-on .public .fx-page-panel {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  pointer-events: none;
  background: var(--accent);
}
html.fx-on .public .fx-progress {
  z-index: 51;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
}
html.fx-on .public .fx-page-panel {
  bottom: 0;
  z-index: 50;
  transform: translateY(101%);
}
html.fx-on .public .fx-page-leave {
  transform: translateY(0);
  transition: transform .24s cubic-bezier(.56,.08,.28,1);
}
html.fx-on .public .fx-page-arrive {
  transform: translateY(-101%);
  animation: fx-uncover .45s cubic-bezier(.62,.04,.27,1) backwards;
}

@keyframes fx-rise { from { opacity: 0; translate: 0 15px; } }
@keyframes fx-mask {
  from { clip-path: inset(100% -3% -8%); opacity: 0; }
  to { clip-path: inset(-8% -3% -8%); opacity: 1; }
}
@keyframes fx-ken-burns { from { scale: 1.15; } to { scale: 1; } }
@keyframes fx-photo-zoom { from { scale: 1.085; } }
@keyframes fx-cue { 50% { translate: 0 4px; opacity: .55; } }
@keyframes fx-draw {
  from { stroke-dasharray: var(--fx-length); stroke-dashoffset: var(--fx-length); }
  to { stroke-dasharray: var(--fx-length); stroke-dashoffset: 0; }
}
@keyframes fx-marquee { to { transform: translateX(-50%); } }
@keyframes fx-cta { 50% { background-position: 100% 50%; } }
@keyframes fx-pulse { 0%, 76%, 100% { scale: 1; } 87% { scale: 1.025; } }
@keyframes fx-uncover { from { transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  html.fx-on .public .fx-progress,
  html.fx-on .public .fx-page-panel,
  html.fx-on .public .fx-scroll-cue,
  html.fx-on .public .fx-home-marquee { display: none; }
  html.fx-on .public .fx-rise,
  html.fx-on .public .fx-mask,
  html.fx-on .public .fx-marquee-track { animation: none; }
}
