/* Capa de efectos común de las demos inmobiliarias (Leomak.Soft). Toma los colores de --fx-acento, --fx-oscuro y --fx-claro. */
.fx-progreso { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9999; background: var(--fx-acento, #c00); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* Luz que sigue al puntero sobre las tarjetas (solo mouse). */
.fx-luz { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--fx-x, 50%) var(--fx-y, 50%), color-mix(in srgb, var(--fx-acento, #fff) 22%, transparent), transparent 70%); }
.fx-luz-on:hover > .fx-luz { opacity: 1; }

/* Títulos que se descubren como una cortina al entrar en pantalla (los oculta el JS, nunca el CSS sin JS). */
.fx-on .fx-titulo { clip-path: inset(0 100% 0 0); transition: clip-path 1s cubic-bezier(.7, 0, .2, 1); }
.fx-on .fx-titulo.fx-visto { clip-path: inset(0 0 0 0); }

/* Recorrido 360° de ejemplo. */
.fx-360 { max-width: 1180px; margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem) 0; }
.fx-360-cab { max-width: 44rem; margin-bottom: 1.6rem; }
.fx-kicker { margin: 0 0 .7rem; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--fx-acento); }
.fx-360-cab p:not(.fx-kicker) { opacity: .82; }
.fx-360-marco {
  position: relative; height: clamp(300px, 52vw, 480px); overflow: hidden; border-radius: 14px; cursor: grab; touch-action: pan-y;
  background: var(--fx-oscuro, #222); box-shadow: 0 24px 48px rgba(0, 0, 0, .2); outline-offset: 4px;
}
.fx-360-marco:focus-visible { outline: 3px solid var(--fx-acento); }
.fx-360-marco.fx-arrastrando { cursor: grabbing; }
.fx-360-marco canvas { display: block; width: 100%; height: 100%; }
/* Plan B sin WebGL: la foto se panea de costado; se recorta arriba y abajo, donde la equirectangular se deforma más. */
.fx-360-tira { position: absolute; top: -30%; left: 0; height: 160%; display: flex; will-change: transform; }
.fx-360-tira img { height: 100%; width: auto; display: block; flex: none; user-select: none; -webkit-user-drag: none; }
.fx-360-credito { font-size: .8rem; opacity: .7; }

/* Mapa de Google Maps con la lista de lugares. */
.fx-mapa { max-width: 1180px; margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem) 0; }
.fx-mapa-grid { display: grid; gap: 1rem; }
.fx-mapa-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; align-content: start; }
.fx-mapa-lista a { display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: .6rem .9rem; border-radius: 10px; text-decoration: none; color: inherit;
  border: 1px solid color-mix(in srgb, var(--fx-oscuro) 18%, transparent); background: color-mix(in srgb, var(--fx-claro) 70%, #fff); }
.fx-mapa-lista a::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--fx-acento); }
.fx-mapa-lista a[aria-current="true"], .fx-mapa-lista a:hover { border-color: var(--fx-acento); box-shadow: inset 4px 0 0 var(--fx-acento); }
.fx-mapa-frame { width: 100%; height: clamp(300px, 55vw, 460px); border: 0; border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .14); background: var(--fx-claro); }
@media (min-width: 860px) { .fx-mapa-grid { grid-template-columns: 300px 1fr; } }
/* Viñeta y curvatura: las orillas se oscurecen y se achican como en una foto esférica. */
.fx-360-marco::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 75% 95% at 50% 50%, transparent 55%, rgba(0, 0, 0, .45) 100%); }
.fx-360-sinjs { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--fx-claro, #fff); padding: 1rem; text-align: center; }
.fx-360-ayuda { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: .8rem 0 0; font-size: .9rem; opacity: .8; }
.fx-360-rumbo { font-weight: 700; color: var(--fx-acento); min-width: 4ch; text-align: right; }

/* Cursor propio (solo con mouse y si la demo lo pide). */
.fx-cursor { position: fixed; top: 0; left: 0; z-index: 9998; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 2px solid var(--fx-acento); pointer-events: none; transition: width .25s, height .25s, margin .25s, background-color .25s; mix-blend-mode: normal; }
.fx-cursor.fx-sobre { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: color-mix(in srgb, var(--fx-acento) 18%, transparent); }
.fx-cursor-punto { position: fixed; top: 0; left: 0; z-index: 9998; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--fx-acento); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .fx-on .fx-titulo { clip-path: none; transition: none; }
  .fx-luz, .fx-cursor, .fx-cursor-punto, .fx-progreso { display: none; }
}

/* El parallax del hero nunca genera scroll horizontal. */
.hero { overflow-x: clip; }
