/* ============================================================
   Team Ruscitti · sistema visual de la versión 2 (14 fichas, home y 5 desarrolladoras)
   Sale de la identidad de la marca, no de un molde: navy #001941 y rojo #D01718, el papel arrugado de
   recursos/fondotextura.jpg, FinalSix en Thin y Black, el asterisco del logo (cinco "ladrillos") y las
   flechas ">>>" del banner de números. Hojas blancas apoyadas sobre el papel; nada de píldoras con punto,
   sombras de color ni esquinas de app.
   Prefijo .fx- para no chocar con tailwind-output.css, que sigue cargado por el menú y el pie compartidos.
   REGLA: nada que anime GSAP lleva transición CSS sobre `transform` (se pisan y el elemento queda a mitad de
   camino). Los efectos al pasar el mouse usan las propiedades sueltas `translate` y `scale`.
   ============================================================ */

html { background: #e2dfd3; }

.fx-body {
  --tinta: #001941;
  --tinta-2: #0b2a5b;
  --tinta-3: #06214d;
  --ladrillo: #d01718;
  --ladrillo-2: #ad1213;
  --coral: #ee4b4b;
  --papel: #e2dfd3;
  --hoja: #fffdf8;
  --linea: rgba(0, 25, 65, 0.16);
  --linea-clara: rgba(255, 255, 255, 0.2);
  --texto-2: rgba(0, 25, 65, 0.74);
  --ambar-bg: #f7e3a3;
  --ambar-tx: #5c4300;
  --f: "FinalSix", system-ui, -apple-system, "Segoe UI", sans-serif;
  --curva: cubic-bezier(0.2, 0.8, 0.2, 1);
  --radio: 6px;
  --sombra-hoja: 0 1px 0 rgba(0, 25, 65, 0.05), 0 22px 40px -30px rgba(0, 25, 65, 0.45);
  background: transparent;
  color: var(--tinta);
  font-family: var(--f);
  -webkit-font-smoothing: antialiased;
}
/* el papel de la marca queda fijo detrás de todo (no con background-attachment: fixed, que iOS ignora) */
/* alto fijo de pantalla (no inset: 0): en iPhone, al esconderse la barra de direcciones, el papel no se reescala */
.fx-body::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: 100vh; z-index: -1; background: #e2dfd3 url("../recursos/fondotextura.jpg") center / cover no-repeat; pointer-events: none; }
@media (max-width: 700px) { .fx-body::before { background-image: url("../recursos/fondotextura-mobile.jpg"); } }

.fx { font-family: var(--f); }
.fx :focus-visible, .fx-barra :focus-visible, .fx-visor :focus-visible { outline: 3px solid var(--ladrillo); outline-offset: 3px; border-radius: 4px; }
.fx-saltar { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--tinta); color: #fff; padding: 0.7rem 1rem; border-radius: 4px; font-weight: 700; }
.fx-saltar:focus { top: 1rem; }

.fx-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: 1.25rem; }
@media (min-width: 768px) { .fx-wrap { padding-inline: 2rem; } }

/* botón "Contacto" del menú compartido (su estilo original está en style.css, que estas páginas no cargan) */
#main-nav .cta-primary { background: var(--ladrillo); color: #fff; font-weight: 600; border-radius: 9999px; transition: background-color 0.2s; }
#main-nav .cta-primary:hover { background: var(--ladrillo-2); }

/* botón flotante de WhatsApp (components/whatsapp-button.html): sin su CSS el ícono se estiraba a todo el ancho debajo del pie */
.whatsapp-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45); transition: background-color 0.2s, opacity 0.3s, scale 0.2s var(--curva); }
.whatsapp-float:hover { background: #1ebe5a; scale: 1.06; }
.whatsapp-float svg { width: 30px; height: 30px; fill: currentColor; }
@media (max-width: 720px) { .whatsapp-float { width: 50px; height: 50px; right: 12px; bottom: 14px; } .whatsapp-float svg { width: 26px; height: 26px; } }

/* los campos de color (navy y rojo) llevan el mismo papel arrugado de la marca, multiplicado: se ven impresos */
.pg-portada, .pg-formula, .pg-dolares, .pg-vision, .fx-cta { position: relative; isolation: isolate; }
.pg-portada::after, .pg-formula::after, .pg-dolares::after, .pg-vision::after, .fx-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../recursos/fondotextura.jpg") center / cover no-repeat; mix-blend-mode: multiply; opacity: 0.6; pointer-events: none; }
@media (max-width: 700px) { .pg-portada::after, .pg-formula::after, .pg-dolares::after, .pg-vision::after, .fx-cta::after { background-image: url("../recursos/fondotextura-mobile.jpg"); } }
.fx-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- piezas de la marca (paginas/marca.mjs) ---------- */
.fx-ast { display: inline-block; width: 1em; height: 1em; flex-shrink: 0; overflow: visible; }
.fx-ast__n { fill: currentColor; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; }
.fx-ast__r { fill: var(--ladrillo); stroke: var(--ladrillo); stroke-width: 1.2; stroke-linejoin: round; }
.fx-chev { width: 1.9em; height: 0.8em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.fx-chev path { transition: opacity 0.2s; }
@keyframes fx-chev { 0%, 100% { opacity: 0.3; } 45% { opacity: 1; } }
:is(a, button):hover > .fx-chev path, :is(a, button):hover .fx-ir .fx-chev path, .fx-ir:hover .fx-chev path { animation: fx-chev 0.9s var(--curva) infinite; }
:is(a, button):hover .fx-chev path:nth-child(2), .fx-ir:hover .fx-chev path:nth-child(2) { animation-delay: 0.12s; }
:is(a, button):hover .fx-chev path:nth-child(3), .fx-ir:hover .fx-chev path:nth-child(3) { animation-delay: 0.24s; }
.fx-sonrisa { display: block; overflow: visible; }
.fx-sonrisa .fx-ast__n { fill: currentColor; stroke: currentColor; }
.fx-sonrisa__trazo { fill: none; stroke: currentColor; stroke-width: 26; stroke-linecap: butt; stroke-linejoin: miter; }

/* enlace que lleva a algún lado: texto + las tres flechas rojas */
.fx-ir { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; color: inherit; text-decoration: none; }
.fx-ir .fx-chev { color: var(--ladrillo); }

/* ---------- tipografía ---------- */
/* arriba del título de la portada: quién lo desarrolla y dónde, en minúscula y sin espaciado de rótulo */
.fx-eyebrow { font-size: 0.98rem; font-weight: 600; display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; align-items: center; }
.fx-eyebrow a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.fx-eyebrow a:hover { text-decoration-color: var(--coral); }
.fx-eyebrow--claro { color: rgba(255, 255, 255, 0.86); }
.fx-eyebrow__sep { opacity: 0.55; }
/* en celular, desarrolladora y barrio van uno abajo del otro: si no entran en una línea, el punto quedaba colgando */
@media (max-width: 599px) { .fx-eyebrow { flex-direction: column; align-items: flex-start; gap: 0.2rem; } .fx-eyebrow__sep { display: none; } }
.fx-h2 { font-size: clamp(2.2rem, 5.6vw, 4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; text-wrap: balance; overflow-wrap: break-word; }
.fx-h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.015em; margin: 3.2rem 0 1.2rem; }
.fx-bajada { font-size: 1.08rem; line-height: 1.55; color: var(--texto-2); max-width: 40rem; margin-top: 1rem; }
.fx-texto { font-size: 1.06rem; line-height: 1.7; color: var(--texto-2); max-width: 38rem; margin-top: 1.1rem; }
.fx-rotulo { font-size: 0.95rem; font-weight: 700; color: var(--tinta); margin-bottom: 1rem; }
.fx-cabecera { margin-bottom: 2.4rem; }
.fx-cabecera--fila { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; }
.fx-enlace { color: var(--tinta); font-weight: 700; text-decoration: underline; text-decoration-color: var(--ladrillo); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }

.fx-sec { padding-block: clamp(4.5rem, 10vw, 8rem); }
/* dos secciones seguidas sobre el papel no suman los dos rellenos: las separa uno solo (las de color, .fx-sec--color, tienen el suyo) */
:where(.fx-sec:not(.fx-sec--color)) + .fx-sec:not(.fx-sec--color) { padding-top: 0; }

/* ---------- botones (píldoras, como en el sitio de la marca; sin brillo de color) ---------- */
.fx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3.25rem; padding: 0 1.6rem; border: 0; border-radius: 999px; font-family: var(--f); font-weight: 700; font-size: 1.02rem; line-height: 1.1; text-align: center; text-decoration: none; cursor: pointer; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, scale 0.15s var(--curva); }
.fx-btn:active { scale: 0.97; }
.fx-btn__icono { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.fx-btn--rojo { background: var(--ladrillo); color: #fff; }
.fx-btn--rojo:hover { background: var(--ladrillo-2); }
.fx-btn--linea { color: var(--tinta); background: transparent; box-shadow: inset 0 0 0 1.5px var(--tinta); }
.fx-btn--linea:hover { background: var(--tinta); color: #fff; }
.fx-btn--claro { color: #fff; background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6); }
.fx-btn--claro:hover { background: #fff; color: var(--tinta); box-shadow: inset 0 0 0 1.5px #fff; }
.fx-btn--chico { min-height: 2.75rem; padding: 0 1.1rem; font-size: 0.95rem; }
/* en celular los botones pesan menos (Lauti, 24-sep: "bajando el tamaño del CTA rojo quedaría más sutil"); 48 px de alto sigue siendo cómodo para el dedo */
@media (max-width: 599px) { .fx-btn { min-height: 3rem; padding: 0 1.3rem; font-size: 0.97rem; gap: 0.55rem; } .fx-btn__icono { width: 1.15rem; height: 1.15rem; } }

/* ---------- portada ---------- */
.fx-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--tinta); color: #fff; }
.fx-hero__media { position: absolute; inset: 0; }
.fx-hero__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-hero__velo { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 18, 48, 0.96) 0%, rgba(0, 18, 48, 0.8) 30%, rgba(0, 18, 48, 0.2) 64%, rgba(0, 18, 48, 0.45) 100%); }
.fx-hero__cont { position: relative; width: 100%; max-width: 1240px; margin: 0 auto; padding: 7rem 1.25rem 2.3rem; }
@media (min-width: 768px) { .fx-hero__cont { padding: 8rem 2rem 4rem; } }

/* el nombre como rótulo de plano: la calle en Black y el número en Thin, del mismo cuerpo */
.fx-titulo { font-size: clamp(3.4rem, 15.5vw, 9.6rem); line-height: 0.86; letter-spacing: -0.035em; margin: 0.9rem 0 1.2rem; }
.fx-titulo__linea { display: block; overflow: hidden; padding-bottom: 0.06em; }
.fx-titulo__linea > span { display: inline-block; }
.fx-titulo__calle { font-weight: 900; }
.fx-titulo__num { font-weight: 100; letter-spacing: -0.02em; }
.fx-hero__bajada { font-size: 1.06rem; line-height: 1.5; color: rgba(255, 255, 255, 0.86); max-width: 34rem; }

/* estado en vivo: el asterisco de la marca y la frase, sin píldora */
.fx-hero__fila { margin: 1.5rem 0 1.7rem; }
.fx-estado { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.08rem; }
.fx-estado .fx-ast { width: 1.15em; height: 1.15em; color: #fff; }
.fx-estado[data-fx-estado="Últimas unidades"] [data-fx-estado-texto], .fx-estado[data-fx-estado="Últimas unidades"] [data-pg-resumen] { color: #ffd166; }
.fx-estado[data-fx-estado="Vendido"] [data-fx-estado-texto], .fx-estado[data-fx-estado="Vendido"] [data-pg-resumen] { color: var(--coral); }
.fx-hero__datos { display: flex; flex-wrap: wrap; gap: 0.6rem 0; margin-top: 1rem; }
.fx-hero__datos > div { padding-right: 1.3rem; margin-right: 1.3rem; border-right: 1px solid var(--linea-clara); }
.fx-hero__datos > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.fx-hero__datos dt { font-size: 0.82rem; font-weight: 500; color: rgba(255, 255, 255, 0.66); }
.fx-hero__datos dd { font-size: 1.15rem; font-weight: 700; margin-top: 0.15rem; }

/* estado inicial de la entrada (solo si hay JS; si GSAP no carga, a los 2,6 s se muestra todo igual) */
.fx-anima .fx-hero [data-fx-in] { opacity: 0; transform: translateY(18px); }
.fx-anima .fx-titulo__linea > span { transform: translateY(105%); }

/* ---------- datos: cartel de obra ---------- */
.fx-datos { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.fx-obra { position: relative; background: var(--tinta); color: #fff; border-radius: var(--radio); padding: 1.9rem 1.25rem 1.2rem; overflow: hidden; }
.fx-obra::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--ladrillo); transform-origin: left; transform: scaleX(var(--faja, 1)); }
.fx-obra__cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; margin: 0 0.2rem 1.1rem; }
.fx-obra__t { font-size: 1rem; font-weight: 700; color: rgba(255, 255, 255, 0.78); }
.fx-obra__firma { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); }
.fx-obra__firma strong { color: #fff; font-weight: 700; }
.fx-obra__firma .fx-ast { width: 1.1rem; height: 1.1rem; color: #fff; }
.fx-obra__grilla { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--linea-clara); border-block: 1px solid var(--linea-clara); }
.fx-obra__grilla > div { background: var(--tinta); padding: 1rem 0.9rem 1.15rem; }
.fx-obra__grilla dt { font-size: 0.82rem; font-weight: 500; color: rgba(255, 255, 255, 0.62); }
.fx-obra__grilla dd { font-size: 1.14rem; font-weight: 700; line-height: 1.25; margin-top: 0.35rem; }
.fx-obra__grilla small { display: block; font-size: 0.84rem; font-weight: 400; color: rgba(255, 255, 255, 0.68); margin-top: 0.25rem; }
/* si los datos no completan la última fila, la última placa se estira: nunca queda un hueco */
.fx-obra__grilla > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.fx-obra__pie { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; font-size: 0.92rem; color: rgba(255, 255, 255, 0.78); padding: 1rem 0.2rem 0.2rem; }
.fx-obra__pie [data-fx-resumen] { font-weight: 700; color: #fff; }
@media (min-width: 900px) {
  .fx-obra { padding: 2.4rem 2.4rem 1.7rem; }
  .fx-obra__grilla { grid-template-columns: repeat(3, 1fr); }
  .fx-obra__grilla > div { padding: 1.3rem 1.3rem 1.5rem; }
  .fx-obra__grilla dd { font-size: 1.45rem; }
  .fx-obra__grilla > div:last-child:nth-child(odd) { grid-column: auto; }
  .fx-obra__grilla > div:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .fx-obra__grilla > div:last-child:nth-child(3n+2) { grid-column: span 2; }
}

/* ---------- galería ---------- */
.fx-galeria__marco { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 1.25rem 0.5rem; scroll-padding-inline: 1.25rem; }
.fx-galeria__marco::-webkit-scrollbar { display: none; }
.fx-galeria__pista { display: flex; gap: 0.9rem; width: max-content; }
.fx-foto { width: 84vw; max-width: 560px; scroll-snap-align: start; margin: 0; }
.fx-foto__btn { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radio); overflow: hidden; background: #cfcbbd; cursor: zoom-in; padding: 0; border: 0; }
.fx-foto__btn img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale 0.7s var(--curva); }
.fx-foto__btn:hover img { scale: 1.04; }
.fx-foto figcaption { padding: 0.85rem 0.1rem 0; }
.fx-foto figcaption strong { display: block; font-size: 1.08rem; font-weight: 700; }
.fx-foto figcaption span { display: block; font-size: 0.95rem; line-height: 1.5; color: var(--texto-2); margin-top: 0.25rem; }
@media (min-width: 768px) { .fx-galeria__marco { padding-inline: 2rem; scroll-padding-inline: 2rem; } .fx-foto { width: 46vw; } }
/* en compu la sección se fija y la pista avanza con el scroll (lo arma ficha.js) */
.fx-galeria.fx--fijada { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: 5.5rem 3rem; }
.fx-galeria.fx--fijada .fx-galeria__marco { overflow: visible; scroll-snap-type: none; }
.fx-galeria.fx--fijada .fx-foto { width: min(58vw, 900px); max-width: none; }
.fx-galeria.fx--fijada .fx-foto__btn { aspect-ratio: 16 / 10; }

/* ---------- disponibilidad por piso: el corte del edificio sobre una hoja ---------- */
.fx-disp__grilla { display: grid; gap: 1.1rem; }
@media (min-width: 1000px) { .fx-disp__grilla { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; } }
.fx-corte { position: relative; background: var(--hoja); border-radius: var(--radio); padding: 1rem 1rem 1.2rem; box-shadow: var(--sombra-hoja); }
.fx-corte__cargando { color: var(--texto-2); padding: 2rem 0; text-align: center; }
.fx-piso { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.55rem; align-items: center; padding: 0.85rem 0; border-bottom: 1px solid var(--linea); }
.fx-piso:last-of-type { border-bottom: 0; }
.fx-piso__rotulo { font-size: 0.95rem; font-weight: 800; }
.fx-piso__cuenta { display: inline; font-size: 0.84rem; font-weight: 500; color: var(--texto-2); margin-left: 0.5rem; }
@media (min-width: 768px) { .fx-piso__cuenta { display: block; margin: 0.2rem 0 0; } }
.fx-piso__unidades { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.fx-piso--cocheras { margin-top: 0.4rem; }
.fx-celda { width: 2.9rem; height: 2.9rem; border-radius: 4px; border: 0; font-family: var(--f); font-weight: 700; font-size: 0.92rem; font-variant-numeric: tabular-nums; display: grid; place-items: center; cursor: pointer; transition: translate 0.18s var(--curva), background-color 0.18s, color 0.18s; padding: 0; }
.fx-celda[data-estado="Disponible"] { background: #fff; color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--tinta); }
.fx-celda[data-estado="Disponible"]:hover { background: var(--tinta); color: #fff; }
.fx-celda[data-estado="Reservado"] { background: repeating-linear-gradient(-45deg, var(--ambar-bg) 0 4px, #fcf1cf 4px 8px); color: var(--ambar-tx); box-shadow: inset 0 0 0 1.5px rgba(92, 67, 0, 0.35); }
.fx-celda[data-estado="Vendido"] { background: var(--ladrillo); color: #fff; }
.fx-celda:hover { translate: 0 -3px; }
.fx-celda[aria-pressed="true"] { outline: 2.5px solid var(--tinta); outline-offset: 2px; translate: 0 -3px; }
.fx-celda[data-estado="Disponible"][aria-pressed="true"] { background: var(--tinta); color: #fff; }
/* con tipologías mezcladas: número arriba y dormitorios abajo, chiquito */
.fx-celda--dorm { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.12rem; line-height: 1; }
.fx-celda__d { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; opacity: 0.85; }
@media (min-width: 768px) { .fx-celda__d { font-size: 0.64rem; } }
/* línea de terreno con rayado, como en un corte de arquitectura */
.fx-suelo { height: 12px; margin: 0.6rem -0.2rem 0; border-top: 2px solid var(--tinta); background: repeating-linear-gradient(-45deg, rgba(0, 25, 65, 0.28) 0 1.5px, transparent 1.5px 7px); }
@media (min-width: 768px) { .fx-corte { padding: 1.4rem 1.6rem 1.6rem; } .fx-piso { grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.8rem; } .fx-celda { width: 3.3rem; height: 3.3rem; font-size: 1rem; } }

.fx-unidad { background: var(--tinta); color: #fff; border-radius: var(--radio); padding: 1.5rem 1.4rem; }
@media (min-width: 1000px) { .fx-unidad { position: sticky; top: 120px; } }
.fx-unidad__piso { font-size: 0.9rem; font-weight: 500; color: rgba(255, 255, 255, 0.66); }
.fx-unidad__nombre { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; margin: 0.25rem 0 0.8rem; }
.fx-unidad__sup { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--linea-clara); border-block: 1px solid var(--linea-clara); margin: 1rem 0; }
.fx-unidad__sup > div { background: var(--tinta); padding: 0.75rem 0.4rem 0.8rem 0; }
.fx-unidad__sup dt { font-size: 0.8rem; font-weight: 500; color: rgba(255, 255, 255, 0.62); }
.fx-unidad__sup dd { font-size: 1.05rem; font-weight: 700; margin-top: 0.25rem; }
.fx-unidad__precio { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.fx-unidad__precio small { display: block; font-size: 0.84rem; font-weight: 500; letter-spacing: 0; color: rgba(255, 255, 255, 0.64); margin-top: 0.2rem; }
.fx-unidad .fx-btn { width: 100%; margin-top: 1.2rem; }

/* estado como etiqueta de cartel (no como píldora de app) */
.fx-pildora { display: inline-flex; align-items: center; padding: 0.24rem 0.55rem; border-radius: 3px; font-size: 0.8rem; font-weight: 700; line-height: 1.2; }
.fx-pildora[data-estado="Disponible"] { background: rgba(0, 25, 65, 0.08); color: var(--tinta); }
.fx-pildora[data-estado="Reservado"], .fx-pildora[data-estado="Últimas unidades"] { background: var(--ambar-bg); color: var(--ambar-tx); }
.fx-pildora[data-estado="Vendido"] { background: var(--ladrillo); color: #fff; }
.fx-pildora[data-estado="No disponible"] { background: rgba(0, 25, 65, 0.1); color: var(--texto-2); }
.fx-unidad .fx-pildora[data-estado="Disponible"] { background: rgba(255, 255, 255, 0.14); color: #fff; }

.fx-leyenda { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; list-style: none; margin: 1.3rem 0 0; padding: 0; font-size: 0.94rem; color: var(--texto-2); }
.fx-leyenda li { display: flex; align-items: center; gap: 0.45rem; }
/* lo que el JS oculta con [hidden] queda oculto aunque su regla le ponga display */
.fx [hidden] { display: none !important; }
.fx-leyenda li::before { content: ""; width: 0.9rem; height: 0.9rem; border-radius: 2px; }
.fx-leyenda li[data-estado="Disponible"]::before { background: #fff; box-shadow: inset 0 0 0 1.5px var(--tinta); }
.fx-leyenda li[data-estado="Reservado"]::before { background: repeating-linear-gradient(-45deg, var(--ambar-bg) 0 3px, #fcf1cf 3px 6px); box-shadow: inset 0 0 0 1.5px rgba(92, 67, 0, 0.35); }
.fx-leyenda li[data-estado="Vendido"]::before { background: var(--ladrillo); }
.fx-leyenda b { color: var(--tinta); }
.fx-leyenda li.fx-leyenda__dorm { color: var(--tinta); font-weight: 600; }
.fx-leyenda li.fx-leyenda__dorm::before { display: none; }

.fx-lista { margin-top: 1.6rem; border-top: 1px solid var(--linea); }
.fx-lista summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 0; font-weight: 700; }
.fx-lista summary::-webkit-details-marker { display: none; }
.fx-lista summary::after { content: "+"; font-size: 1.5rem; font-weight: 300; transition: rotate 0.25s var(--curva); }
.fx-lista[open] summary::after { rotate: 45deg; }
.fx-tabla__marco { background: var(--hoja); border-radius: var(--radio); padding: 0.4rem 1rem; box-shadow: var(--sombra-hoja); }
.fx-tabla { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.fx-tabla th { text-align: left; font-size: 0.82rem; font-weight: 600; color: var(--texto-2); padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--linea); }
.fx-tabla td { padding: 0.75rem 0.6rem; border-bottom: 1px solid var(--linea); }
.fx-tabla tr:last-child td { border-bottom: 0; }
/* columnas por clase (no por posición): la de Dormitorios aparece solo en los desarrollos que tienen el dato */
.fx-tabla .fx-c-cub, .fx-tabla .fx-c-ext, .fx-tabla .fx-c-tot, .fx-tabla .fx-c-pre { text-align: right; font-variant-numeric: tabular-nums; }
.fx-tabla .fx-c-dor, .fx-tabla .fx-c-est { text-align: center; }
.fx-tabla td.fx-c-uni { font-weight: 600; }
.fx-tabla td.fx-c-dor { font-weight: 600; white-space: nowrap; }
.fx-tabla td.fx-c-pre { font-weight: 700; }
/* en celular cada unidad es un renglón de dos columnas: sin scroll para el costado */
@media (max-width: 640px) {
  .fx-tabla thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fx-tabla tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 0.8rem; padding: 0.85rem 0; border-bottom: 1px solid var(--linea); }
  .fx-tabla tr:last-child { border-bottom: 0; }
  .fx-tabla td { border: 0; padding: 0; text-align: left !important; }
  .fx-tabla td.fx-c-cub, .fx-tabla td.fx-c-ext, .fx-tabla td.fx-c-dor { display: none; }
  .fx-tabla td.fx-c-uni { grid-column: 1; grid-row: 1; }
  .fx-tabla td.fx-c-tot { grid-column: 1; grid-row: 2; color: var(--texto-2); font-size: 0.88rem; }
  .fx-tabla td.fx-c-tot::before { content: attr(data-pre); }
  .fx-tabla td.fx-c-pre { grid-column: 2; grid-row: 2; text-align: right !important; }
  .fx-tabla td.fx-c-est { grid-column: 2; grid-row: 1; text-align: right !important; }
}
.fx-nota { font-size: 0.92rem; line-height: 1.6; color: var(--texto-2); margin-top: 1.4rem; max-width: 46rem; }

/* ---------- plantas ---------- */
.fx-lamina { margin: 0 0 1.2rem; background: var(--hoja); border-radius: var(--radio); padding: 0.7rem; box-shadow: var(--sombra-hoja); }
.fx-lamina button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
/* las láminas verticales llegaban a 1.600 px de alto en compu: se ven enteras en una pantalla y el detalle, en el visor */
.fx-lamina img { width: auto; max-width: 100%; height: auto; max-height: min(88vh, 56rem); margin-inline: auto; border-radius: 3px; display: block; }
.fx-tresd { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.fx-tresd button { background: var(--hoja); border: 0; border-radius: var(--radio); aspect-ratio: 3 / 4; padding: 0.6rem; cursor: zoom-in; box-shadow: var(--sombra-hoja); transition: translate 0.25s var(--curva); }
.fx-tresd button:hover { translate: 0 -4px; }
.fx-tresd img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 900px) { .fx-tresd { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- sobre el proyecto ---------- */
.fx-sobre__grilla { display: grid; gap: 2.8rem; }
@media (min-width: 1000px) { .fx-sobre__grilla { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 5rem; } }
.fx-memoria { margin: 0; border-bottom: 1px solid var(--linea); }
.fx-memoria > div { display: grid; grid-template-columns: 7.4rem minmax(0, 1fr); gap: 1rem; padding: 0.95rem 0; border-top: 1px solid var(--linea); }
.fx-memoria dt { font-size: 0.9rem; font-weight: 700; color: var(--tinta); padding-top: 0.05rem; }
.fx-memoria dd { font-weight: 500; line-height: 1.45; color: var(--texto-2); }

/* ---------- ubicación ---------- */
.fx-ubic__grilla { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1000px) { .fx-ubic__grilla { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4rem; } }
.fx-ubic__dir { font-size: 1.35rem; font-weight: 700; margin-top: 1rem; }
.fx-ubic .fx-btn { margin-top: 1.6rem; }
.fx-mapa { border-radius: var(--radio); overflow: hidden; aspect-ratio: 4 / 3; background: #d3cfc1; box-shadow: var(--sombra-hoja); }
.fx-mapa iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.85) contrast(1.05); }
@media (min-width: 1000px) { .fx-mapa { aspect-ratio: 16 / 11; } }

/* ---------- otros desarrollos ---------- */
.fx-otros__grilla { display: grid; gap: 0.9rem; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -1.25rem; padding-inline: 1.25rem; scroll-padding-inline: 1.25rem; }
.fx-otros__grilla::-webkit-scrollbar { display: none; }
.fx-otros__grilla > * { scroll-snap-align: start; }
@media (min-width: 700px) { .fx-otros__grilla { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; } }
.fx-tarjeta { display: block; text-decoration: none; color: var(--tinta); }
.fx-tarjeta__img { display: block; aspect-ratio: 4 / 3; border-radius: var(--radio); overflow: hidden; background: #cfcbbd; }
.fx-tarjeta__img img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.7s var(--curva); }
.fx-tarjeta:hover .fx-tarjeta__img img { scale: 1.05; }
.fx-tarjeta__pie { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; padding: 0.8rem 0.1rem 0; }
.fx-tarjeta__nombre { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; }
.fx-tarjeta__estado:empty { display: none; }
.fx-tarjeta__estado .fx-pildora[data-estado="Últimas unidades"] { background: var(--ladrillo); color: #fff; }
.fx-tarjeta__estado .fx-pildora[data-estado="Vendido"] { background: var(--tinta); color: #fff; }

/* ---------- cierre: la carita de la marca firma cada página ---------- */
.fx-cta { position: relative; background: var(--tinta); color: #fff; text-align: center; padding-block: clamp(4.5rem, 10vw, 8rem); overflow: hidden; }
.fx-cta .fx-sonrisa { width: clamp(5.5rem, 14vw, 8.5rem); margin: 0 auto 1.8rem; color: #fff; }
.fx-cta__t { font-size: clamp(2.2rem, 6.2vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; text-wrap: balance; }
.fx-cta__p { font-size: 1.1rem; line-height: 1.55; color: rgba(255, 255, 255, 0.8); max-width: 36rem; margin: 1.1rem auto 2rem; }
.fx-cta__dev { font-size: 0.95rem; color: rgba(255, 255, 255, 0.62); margin-top: 2.4rem; }
.fx-cta__dev a { color: #fff; font-weight: 700; }

/* ---------- barra fija ---------- */
.fx-barra { position: fixed; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.45rem 0.45rem 0.45rem 1.1rem; background: var(--tinta); color: #fff; border-radius: 999px; box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.6); transform: translateY(150%); transition: transform 0.45s var(--curva); font-family: var(--f); }
.fx-barra.fx--visible { transform: translateY(0); }
.fx-barra__info { display: flex; align-items: center; gap: 0.6rem; min-width: 0; margin: 0; }
.fx-barra__info .fx-ast { width: 1.15rem; height: 1.15rem; color: #fff; }
.fx-barra__texto { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.fx-barra__texto strong { font-size: 0.95rem; font-weight: 700; }
.fx-barra__texto small { font-size: 0.8rem; font-weight: 500; color: rgba(255, 255, 255, 0.72); }
@media (min-width: 900px) { .fx-barra__texto { flex-direction: row; gap: 0.5rem; align-items: baseline; } .fx-barra__texto small::before { content: "· "; } }
@media (min-width: 900px) {
  .fx-barra { left: 50%; right: auto; width: min(640px, calc(100% - 2rem)); transform: translate(-50%, 150%); }
  .fx-barra.fx--visible { transform: translate(-50%, 0); }
}
/* con la barra a la vista, el botón flotante de WhatsApp sobra (y tapaba contenido) */
.fx--con-barra .whatsapp-float { opacity: 0; pointer-events: none; }
/* en la portada ya está el botón de WhatsApp: el flotante aparece recién al bajar (tapaba la portada en el celular) */
.fx--en-portada .whatsapp-float { opacity: 0; pointer-events: none; }

/* ---------- visor ---------- */
.fx-visor { position: fixed; inset: 0; z-index: 120; background: rgba(0, 12, 32, 0.96); display: grid; place-items: center; padding: 4rem 1rem 3rem; font-family: var(--f); }
.fx-visor[hidden] { display: none; }
.fx-visor__fig { margin: 0; text-align: center; }
.fx-visor__fig img { max-width: min(1400px, 92vw); max-height: 76vh; object-fit: contain; border-radius: 3px; margin: 0 auto; }
.fx-visor__fig figcaption { color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; margin-top: 1rem; }
.fx-visor__btn { position: absolute; width: 3rem; height: 3rem; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 1.9rem; line-height: 1; display: grid; place-items: center; cursor: pointer; border: 0; }
.fx-visor__btn:hover { background: rgba(255, 255, 255, 0.24); }
.fx-visor__cerrar { top: 1rem; right: 1rem; }
.fx-visor__prev { left: 1rem; top: 50%; margin-top: -1.5rem; }
.fx-visor__next { right: 1rem; top: 50%; margin-top: -1.5rem; }

/* ---------- videos ---------- */
/* videos verticales: en celular van de a dos lado a lado; en compu, al costado del título */
.fx-videos__grilla { display: grid; gap: 0.8rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fx-videos__grilla:has(> :only-child) { grid-template-columns: minmax(0, 20rem); }
.fx-video__marco:focus-visible { outline: 3px solid var(--ladrillo); outline-offset: 3px; }
/* el título va al costado de los videos solo cuando entra: con tres videos hacen falta unos 1.200 px (a 900 px, en una
   ventana a media pantalla, el título quedaba en una columna de 36 px y se cortaba). Antes, título arriba y videos abajo. */
@media (min-width: 900px) {
  .fx-videos__grilla { grid-template-columns: repeat(var(--n, 2), minmax(0, 15.5rem)); gap: 1.2rem; }
}
@media (min-width: 1200px) {
  .fx-videos__wrap { display: grid; grid-template-columns: minmax(18rem, 1fr) auto; gap: 4rem; align-items: center; }
  .fx-videos__wrap .fx-cabecera { margin-bottom: 0; }
  .fx-videos__grilla { grid-template-columns: repeat(var(--n, 2), 17rem); }
}
.fx-video { margin: 0; }
.fx-video__marco { position: relative; aspect-ratio: 9 / 16; border-radius: var(--radio); overflow: hidden; background: #000; cursor: pointer; }
.fx-video__marco img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.8s var(--curva); }
.fx-video__marco:hover img { scale: 1.04; }
.fx-video__play { position: absolute; left: 50%; top: 50%; width: 3.6rem; height: 3.6rem; margin: -1.8rem 0 0 -1.8rem; border-radius: 50%; background: var(--ladrillo); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.55); transition: scale 0.25s var(--curva); }
.fx-video__play::after { content: ""; position: absolute; left: 1.42rem; top: 1.1rem; border-left: 1.05rem solid #fff; border-top: 0.7rem solid transparent; border-bottom: 0.7rem solid transparent; }
.fx-video__marco:hover .fx-video__play { scale: 1.08; }
.fx-video figcaption { margin-top: 0.75rem; }
.fx-video figcaption strong { display: block; font-weight: 700; }
.fx-video figcaption span { display: block; font-size: 0.92rem; color: var(--texto-2); font-weight: 500; margin-top: 0.2rem; }

/* ---------- entradas con scroll (js/movimiento.js) ---------- */
/* Lo que entra al hacer scroll arranca oculto solo si el JS de movimiento está andando (clase fx-mov en <html>):
   así no se ve, desaparece y vuelve a aparecer. Si GSAP no carga, nada queda oculto. */
.fx-mov [data-fx-revela]:not(.fx-visto) { opacity: 0; }
.fx-mov [data-fx-img]:not(.fx-visto) { clip-path: inset(100% 0 0 0); }
.fx-mov [data-fx-titulo]:not(.fx-visto) { visibility: hidden; }
/* máscara de cada renglón de un título (SplitText la crea con overflow: clip): un poco más alta para no cortar la "g" ni la "y" */
.fx-linea-mask { padding-bottom: 0.14em; margin-bottom: -0.14em; }
/* piezas de la marca que se arman al entrar: arrancan ocultas mientras corre el JS */
.fx-anima [data-fx-armar] [data-brazo] { opacity: 0; }

/* ---------- movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .fx-btn, .fx-celda, .fx-foto__btn img, .fx-tarjeta__img img, .fx-tresd button, .fx-barra, .fx-video__marco img, .fx-video__play, .whatsapp-float { transition: none; }
  :is(a, button):hover .fx-chev path, .fx-ir:hover .fx-chev path { animation: none; }
  .fx-anima .fx-hero [data-fx-in], .fx-anima .fx-titulo__linea > span { opacity: 1; transform: none; }
}

/* ---------- variantes de la plantilla (las 14 fichas) ---------- */
/* el cuerpo del título se ajusta al largo del nombre: "Hernandarias" no entra a 15,5vw en un celular */
.fx-titulo { font-size: clamp(2.5rem, min(15.5vw, calc(145vw / var(--letras, 9))), 9.6rem); }
.fx-memoria > .fx-memoria__sola { grid-template-columns: minmax(0, 1fr); }
.fx-lamina__pie { font-size: 0.92rem; color: var(--texto-2); padding: 0.7rem 0.4rem 0.2rem; }
.fx-descargas { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
@media (min-width: 768px) { .fx-descargas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fx-descarga { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.2rem 1rem; padding: 1rem 1.1rem; background: var(--hoja); border-radius: var(--radio); text-decoration: none; color: var(--tinta); box-shadow: var(--sombra-hoja); transition: translate 0.2s var(--curva); }
.fx-descarga:hover { translate: 0 -2px; }
.fx-descarga__t { font-weight: 700; grid-column: 1; }
.fx-descarga__d { font-size: 0.88rem; color: var(--texto-2); grid-column: 1; }
.fx-descarga__tipo { grid-column: 2; grid-row: 1 / span 2; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; color: #fff; background: var(--ladrillo); border-radius: 3px; padding: 0.35rem 0.5rem; }
.fx-simple { background: var(--hoja); border-radius: var(--radio); padding: 2rem 1.4rem; box-shadow: var(--sombra-hoja); }
@media (min-width: 768px) { .fx-simple { padding: 2.6rem 2.6rem; } }
.fx-simple__estado { margin: 1.3rem 0 0.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; font-size: 1.35rem; font-weight: 800; }
.fx-simple__estado .fx-pildora { font-size: 0.95rem; padding: 0.35rem 0.7rem; }
.fx-simple .fx-btn { margin-top: 1.6rem; }
