/* =====================================================================
   estilos.css — Residencial Las Lomas (demo)
   Mobile-first. Los colores de marca llegan desde data.json como
   variables --marca-base, --acento-base, --fondo-base y --texto-base.
   ===================================================================== */

/* ---------- 1. Tipografías (autoalojadas: cargan rápido y sin depender de Google) ---------- */
@font-face {
  font-family: "Cormorant";
  src: url("../assets/fuentes/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url("../assets/fuentes/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fuentes/manrope.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

/* ---------- 2. Variables de diseño ---------- */
:root {
  /* Valores por defecto (data.json los reemplaza) */
  --marca-base: #1E3A2F;
  --acento-base: #B4844F;
  --fondo-base: #FAF8F4;
  --texto-base: #1B201D;
  --marca-texto: #fff;
  --acento-texto: #1d1a12;
  --disponible: #3A9A68; --disponible-texto: #fff;
  --apartado: #E2B13C;   --apartado-texto: #1d1a12;
  --vendido: #C4564C;    --vendido-texto: #fff;

  --f-titulo: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-texto: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --alto-encabezado: 64px;
  --radio: 12px;
  --radio-lg: 18px;
  --radio-xl: 26px;
  --curva: cubic-bezier(.22, 1, .36, 1);
  --wa: #1DAA55;
  --wa-hover: #168C45;

  /* Tema claro */
  color-scheme: light;
  --marca: var(--marca-base);
  --acento: var(--acento-base);
  --fondo: var(--fondo-base);
  --texto: var(--texto-base);
  --superficie: #FFFFFF;
  --superficie-2: color-mix(in oklab, var(--fondo-base) 94%, var(--texto-base));
  --texto-2: color-mix(in oklab, var(--texto-base) 66%, var(--fondo-base));
  --borde: color-mix(in oklab, var(--texto-base) 11%, var(--fondo-base));
  --borde-fuerte: color-mix(in oklab, var(--texto-base) 22%, var(--fondo-base));
  --marca-suave: color-mix(in oklab, var(--marca-base) 9%, var(--fondo-base));
  --marca-fuerte: var(--marca-base);
  --acento-suave: color-mix(in oklab, var(--acento-base) 14%, var(--fondo-base));
  --acento-fuerte: color-mix(in oklab, var(--acento-base) 76%, #000);
  --acento-claro: color-mix(in oklab, var(--acento-base) 65%, #fff);
  --boton-bg: var(--marca-base);
  --boton-bg-hover: color-mix(in oklab, var(--marca-base) 86%, #000);
  --boton-texto: var(--marca-texto);
  --resaltado: #111;
  --sombra-1: 0 1px 2px rgb(20 30 25 / .05), 0 10px 30px -14px rgb(20 30 25 / .16);
  --sombra-2: 0 22px 50px -20px rgb(20 30 25 / .32);
  --sombra-3: 0 30px 90px -20px rgb(10 20 15 / .45);

  /* Banda oscura del recorrido y papel de la planta */
  --banda-fondo: var(--marca-base);
  --banda-texto: #F3F1EA;
  --papel: #F7F4EC;
  --papel-texto: #232824;
  --papel-texto-2: #6F746E;
  --planta-piso: #FFFFFF;
  --planta-muro: #2A2F2B;
  --planta-exterior: #ECE7DB;
  --planta-jardin: #DCE6CF;
  --planta-paso: #F2EFE7;
  --planta-hover: #FBF4EA;
  --planta-activo: color-mix(in oklab, var(--acento-base) 24%, #fff);

  /* Pie de página */
  --pie-fondo: color-mix(in oklab, var(--marca-base) 80%, #000);
  --pie-texto: #EEF0EA;

  /* Plano del fraccionamiento */
  --m-terreno: #E6E2D3;
  --m-interior: #F2EFE6;
  --m-barda: #CDC5B3;
  --m-verde: #D3E0C2;
  --m-verde-borde: #BACDA6;
  --m-arbol: #8EAF7B;
  --m-arbol-luz: #B4CDA2;
  --m-sombra: rgb(48 60 36 / .14);
  --m-banqueta: #E5DFD3;
  --m-calle: #D6D1C6;
  --m-linea: #FFFFFF;
  --m-sendero: #E8DCC4;
  --m-edificio: #FBF9F4;
  --m-edificio-borde: #C4BAA7;
  --m-terraza: #DCC6A6;
  --m-arena: #EEE3CB;
  --m-arena-borde: #D2C29E;
  --m-juego: #C08B5C;
  --m-plaza: #ECE5D6;
  --m-agua: #B9D6DB;
  --m-pluma: #C4564C;
  --m-texto: #8D8A7E;
  --m-etiqueta: #4B4D45;
  --m-halo: rgb(242 239 230 / .92);
  --m-lote-borde: #F7F5EE;

  /* Portada ilustrada */
  --h-cielo-1: #EDE5D6;
  --h-cielo-2: #F5E2CB;
  --h-sol: #F2C98F;
  --h-astro: #F7DDB4;
  --h-nube: #FFFFFF;
  --h-loma-1: #DCD9C6;
  --h-loma-2: #BFC8AD;
  --h-loma-3: #86A083;
  --h-loma-4: var(--marca-base);
  --h-casa: #FBF8F1;
  --h-techo: #3C443F;
  --h-ventana: #8C9A96;
  --h-arbol: color-mix(in oklab, var(--marca-base) 78%, #5d8a68);

  /* Fachadas ilustradas */
  --f-cielo: #ECEDE5;
  --f-sol: #F3DDB5;
  --f-pasto: #C8D6B4;
  --f-banqueta: #E3DED3;
  --f-muro: #FBFAF6;
  --f-muro-2: #E6E1D6;
  --f-piedra: #D9D1C2;
  --f-losa: #2F3431;
  --f-losa-2: #DED8CB;
  --f-vidrio: #53635F;
  --f-reflejo: rgb(255 255 255 / .16);
  --f-marco: #2A2F2C;
  --f-porton: #EAE6DD;
  --f-linea: rgb(0 0 0 / .12);
  --f-copa: #8DAA7C;
  --f-copa-2: #A6C094;
  --f-tronco: #6B5A49;
  --f-arbusto: #7E9B6E;
  --f-oscuro: #3A403C;
}

/* Tema oscuro (se calcula a partir de los mismos colores de marca) */
[data-tema="oscuro"] {
  color-scheme: dark;
  --fondo: color-mix(in oklab, var(--marca-base) 16%, #0A0C0B);
  --texto: #ECEFEA;
  --superficie: color-mix(in oklab, var(--marca-base) 20%, #121513);
  --superficie-2: color-mix(in oklab, var(--marca-base) 24%, #181C19);
  --texto-2: #A3ACA5;
  --borde: rgb(255 255 255 / .09);
  --borde-fuerte: rgb(255 255 255 / .2);
  --marca: color-mix(in oklab, var(--marca-base) 40%, #DDE8E0);
  --marca-suave: color-mix(in oklab, var(--marca-base) 45%, #121513);
  --marca-fuerte: color-mix(in oklab, var(--marca-base) 35%, #E6EFE8);
  --acento-suave: color-mix(in oklab, var(--acento-base) 18%, #121513);
  --acento-fuerte: color-mix(in oklab, var(--acento-base) 72%, #fff);
  --boton-bg: var(--acento-base);
  --boton-bg-hover: color-mix(in oklab, var(--acento-base) 85%, #fff);
  --boton-texto: var(--acento-texto);
  --resaltado: #fff;
  --sombra-1: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px -14px rgb(0 0 0 / .6);
  --sombra-2: 0 22px 50px -20px rgb(0 0 0 / .7);
  --sombra-3: 0 30px 90px -20px rgb(0 0 0 / .8);

  --banda-fondo: color-mix(in oklab, var(--marca-base) 32%, #0D100E);
  --papel: color-mix(in oklab, var(--marca-base) 18%, #131614);
  --papel-texto: #E7EAE5;
  --papel-texto-2: #9AA39C;
  --planta-piso: #1D2320;
  --planta-muro: #C9CFC9;
  --planta-exterior: #171C19;
  --planta-jardin: #1D2B21;
  --planta-paso: #191E1B;
  --planta-hover: #252C27;
  --planta-activo: color-mix(in oklab, var(--acento-base) 34%, #1D2320);
  --pie-fondo: color-mix(in oklab, var(--marca-base) 22%, #070908);

  --m-terreno: #111613;
  --m-interior: #19201C;
  --m-barda: #2E3832;
  --m-verde: #213428;
  --m-verde-borde: #2B4333;
  --m-arbol: #2F5139;
  --m-arbol-luz: #3F6849;
  --m-sombra: rgb(0 0 0 / .35);
  --m-banqueta: #222A25;
  --m-calle: #2C3530;
  --m-linea: #4A554E;
  --m-sendero: #36372C;
  --m-edificio: #2B332E;
  --m-edificio-borde: #46514A;
  --m-terraza: #4B4232;
  --m-arena: #3A3528;
  --m-arena-borde: #4F4836;
  --m-juego: #B98A5E;
  --m-plaza: #2A2F2A;
  --m-agua: #2E5258;
  --m-texto: #7F8A82;
  --m-etiqueta: #C9D0CA;
  --m-halo: rgb(25 32 28 / .9);
  --m-lote-borde: #19201C;

  --h-cielo-1: #0A1310;
  --h-cielo-2: #1A2823;
  --h-sol: #CFD8C9;
  --h-astro: #E8E6D8;
  --h-nube: #2A3833;
  --h-loma-1: #17221E;
  --h-loma-2: #1C2B25;
  --h-loma-3: #21352D;
  --h-loma-4: #0C1612;
  --h-casa: #2E3D36;
  --h-techo: #0E1412;
  --h-ventana: #F2C57C;
  --h-arbol: #11201A;

  --f-cielo: #1A231F;
  --f-sol: #D9D2BE;
  --f-pasto: #233629;
  --f-banqueta: #2B332E;
  --f-muro: #D8D6CE;
  --f-muro-2: #B5B0A6;
  --f-piedra: #9E978A;
  --f-losa: #101412;
  --f-losa-2: #8F8A80;
  --f-vidrio: #F0C27A;
  --f-reflejo: rgb(255 255 255 / .12);
  --f-marco: #2A2F2C;
  --f-porton: #A9A59C;
  --f-linea: rgb(0 0 0 / .2);
  --f-copa: #2F4F38;
  --f-copa-2: #3B5F44;
  --f-tronco: #3D352C;
  --f-arbusto: #2B4632;
  --f-oscuro: #2A302C;
}

@media (min-width: 960px) {
  :root { --alto-encabezado: 76px; }
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--alto-encabezado) + 12px);
  background: var(--fondo);
}
html.sin-scroll { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--f-texto);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.menu-abierto { overflow: hidden; }
main { transition: opacity .5s ease; }
body:not(.listo) main, body:not(.listo) .pie { opacity: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
img, video { display: block; max-width: 100%; }
svg { display: block; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }
::selection { background: var(--acento-suave); }

.icono { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.contenedor { width: min(100% - 2.5rem, 1240px); margin-inline: auto; }
.saltar { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--texto); color: var(--fondo); font-weight: 700; }
.saltar:focus { left: 12px; }

.solo-compu { display: none !important; }
@media (min-width: 960px) {
  .solo-compu { display: revert !important; }
  .boton.solo-compu { display: inline-flex !important; }
  .solo-celular { display: none !important; }
}

/* ---------- 4. Componentes básicos ---------- */
.etiqueta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--acento-fuerte);
}
.etiqueta::before { content: ""; width: 22px; height: 1px; background: currentColor; }

/* Botones */
.boton {
  --alto: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: var(--alto); padding: 0 20px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .94rem; line-height: 1.15; text-align: center; white-space: nowrap;
  transition: transform .2s var(--curva), background-color .2s, border-color .2s, color .2s, box-shadow .2s;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
}
.boton .icono { width: 18px; height: 18px; }
.boton:active { transform: scale(.97); }
.boton--primario { background: var(--boton-bg); color: var(--boton-texto); }
.boton--primario:hover { background: var(--boton-bg-hover); }
.boton--contorno { border-color: var(--borde-fuerte); color: var(--texto); background: transparent; }
.boton--contorno:hover { border-color: var(--texto); }
.boton--whatsapp { background: var(--wa); color: #fff; }
.boton--whatsapp:hover { background: var(--wa-hover); }
.boton--whatsapp .icono { width: 20px; height: 20px; }
.boton--claro { background: #fff; color: #17211C; }
.boton--claro:hover { background: #ECEFEA; }
.boton--fantasma { background: transparent; color: inherit; border-color: rgb(255 255 255 / .28); }
.boton--fantasma:hover { border-color: #fff; }
.boton--grande { --alto: 54px; padding: 0 26px; font-size: 1rem; }
.boton--chico { --alto: 40px; padding: 0 16px; font-size: .86rem; }
.boton--bloque { width: 100%; white-space: normal; }

.boton-icono {
  width: 44px; height: 44px; flex-shrink: 0;
  display: inline-grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--borde); color: var(--texto); background: transparent;
  transition: background-color .2s, border-color .2s, transform .2s;
}
.boton-icono .icono { width: 20px; height: 20px; }
.boton-icono:hover { background: var(--superficie-2); }
.boton-icono:active { transform: scale(.94); }
.boton-icono--claro { color: #fff; border-color: rgb(255 255 255 / .24); }
.boton-icono--claro:hover { background: rgb(255 255 255 / .1); }
.boton-icono--wa { width: 48px; height: 48px; background: var(--wa); color: #fff; border: 0; }
.boton-icono--wa:hover { background: var(--wa-hover); }
.boton-icono--wa .icono { width: 22px; height: 22px; }

/* Chips (filtros) */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 3px; margin: -3px; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  min-height: 40px; padding: 0 15px;
  border-radius: 999px; border: 1px solid var(--borde-fuerte);
  background: var(--superficie); color: var(--texto);
  font-size: .86rem; font-weight: 600; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.chip:active { transform: scale(.96); }
.chip:hover { border-color: var(--texto-2); }
.chip[aria-pressed="true"] { background: var(--texto); color: var(--fondo); border-color: var(--texto); }
.chip-cuenta { font-size: .74rem; font-weight: 700; opacity: .55; font-variant-numeric: tabular-nums; }
.chip--chico { min-height: 34px; padding: 0 12px; font-size: .8rem; }
.chip--oscuro { background: rgb(255 255 255 / .07); color: rgb(255 255 255 / .82); border-color: rgb(255 255 255 / .14); }
.chip--oscuro:hover { border-color: rgb(255 255 255 / .4); }
.chip--oscuro[aria-current="true"] { background: #fff; color: #17211C; border-color: #fff; }
.chip b { font-variant-numeric: tabular-nums; opacity: .55; font-weight: 700; }

/* Indicadores de estado */
.estado-punto { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; background: var(--disponible); }
.estado-punto--apartado { background: var(--apartado); }
.estado-punto--vendido { background: var(--vendido); }
.estado-fondo--disponible { background: var(--disponible); color: var(--disponible-texto); }
.estado-fondo--apartado { background: var(--apartado); color: var(--apartado-texto); }
.estado-fondo--vendido { background: var(--vendido); color: var(--vendido-texto); }
.estado-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px 6px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700;
  background: color-mix(in oklab, var(--disponible) 15%, var(--superficie));
  color: color-mix(in oklab, var(--disponible) 70%, var(--texto));
}
.estado-chip--apartado { background: color-mix(in oklab, var(--apartado) 20%, var(--superficie)); color: color-mix(in oklab, var(--apartado) 45%, var(--texto)); }
.estado-chip--vendido { background: color-mix(in oklab, var(--vendido) 15%, var(--superficie)); color: color-mix(in oklab, var(--vendido) 70%, var(--texto)); }

/* Encabezados de sección */
.seccion { padding-block: clamp(64px, 10vw, 120px); }
.seccion-cabecera { max-width: 720px; }
.seccion-cabecera--centro { margin-inline: auto; text-align: center; }
.seccion-cabecera--centro .etiqueta::after { content: ""; width: 22px; height: 1px; background: currentColor; }
.seccion-titulo {
  font-family: var(--f-titulo); font-weight: 500;
  font-size: clamp(2.3rem, 6.4vw, 3.9rem); line-height: 1.02; letter-spacing: -.01em;
  margin-top: 14px; text-wrap: balance;
}
.seccion-intro { font-size: clamp(1rem, 2.2vw, 1.1rem); color: var(--texto-2); margin-top: 16px; text-wrap: pretty; }

/* ---------- 5. Encabezado fijo ---------- */
.encabezado {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--alto-encabezado);
  border-bottom: 1px solid transparent;
  transition: background-color .35s, border-color .35s, backdrop-filter .35s;
}
.encabezado.con-fondo, body.menu-abierto .encabezado {
  background: color-mix(in oklab, var(--fondo) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-bottom-color: var(--borde);
}
/* Con el menú abierto el encabezado no lleva desenfoque: un backdrop-filter
   convertiría al encabezado en el contenedor del menú fijo y lo dejaría sin alto. */
body.menu-abierto .encabezado { background: var(--fondo); -webkit-backdrop-filter: none; backdrop-filter: none; }
.encabezado-fila { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 11px; color: var(--texto); min-width: 0; }
.logo-marca {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--marca-base); color: var(--marca-texto);
  font-family: var(--f-titulo); font-weight: 700; font-size: 1.15rem; letter-spacing: .03em;
}
[data-tema="oscuro"] .logo-marca { background: var(--acento-base); color: var(--acento-texto); }
.logo-texto { display: flex; flex-direction: column; font-weight: 800; font-size: .95rem; line-height: 1.15; letter-spacing: -.005em; white-space: nowrap; }
.logo-texto small { font-weight: 500; font-size: .72rem; color: var(--texto-2); letter-spacing: 0; }
.logo-imagen { height: 40px; width: auto; }
.nav { display: none; }
.encabezado-acciones { display: flex; align-items: center; gap: 8px; }
.tema-boton .icono-sol, [data-tema="oscuro"] .tema-boton .icono-luna { display: none; }
[data-tema="oscuro"] .tema-boton .icono-sol { display: block; }
@media (min-width: 960px) {
  .nav { display: flex; gap: 2px; }
  .nav a { padding: 8px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--texto-2); transition: color .2s, background-color .2s; }
  .nav a:hover, .nav a.activo { color: var(--texto); background: var(--superficie-2); }
}

/* Menú del celular */
.menu-movil {
  position: fixed; inset: var(--alto-encabezado) 0 0; z-index: 49;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 12px 20px calc(24px + env(safe-area-inset-bottom));
  background: var(--fondo); overflow-y: auto;
}
.menu-movil[hidden] { display: none; }
.menu-movil nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 2px; border-bottom: 1px solid var(--borde);
  font-family: var(--f-titulo); font-size: 2rem; font-weight: 600; line-height: 1.1;
  animation: entrar .5s var(--curva) both; animation-delay: calc(var(--i) * 45ms);
}
.menu-movil nav a .icono { width: 22px; height: 22px; color: var(--acento-fuerte); }
.menu-movil-acciones { display: grid; gap: 10px; }

/* ---------- 6. Portada (hero) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: calc(var(--alto-encabezado) + 24px);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 220px; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, color-mix(in oklab, var(--h-loma-4) 75%, transparent), transparent);
}
.hero-fondo { position: absolute; inset: 0; z-index: -2; }
.hero-ilustracion { width: 100%; height: 100%; }
.hero-media { width: 100%; height: 100%; object-fit: cover; }
.hero--media { color: #fff; }
.hero--media .hero-fondo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(0 0 0 / .5), rgb(0 0 0 / .12) 45%, rgb(0 0 0 / .55)); }
.hero--media .hero-frase { color: rgb(255 255 255 / .86); }
.hero--media .etiqueta, .hero--media .hero-titulo em { color: #fff; }
.hero--media .boton--contorno { color: #fff; border-color: rgb(255 255 255 / .6); }

.hero-contenido { padding-top: clamp(4px, 3vh, 48px); }
/* Etiqueta "Demo" dentro de la portada (la flotante aparece al bajar) */
.hero-demo {
  display: flex; width: fit-content; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 12px; border-radius: 999px;
  background: color-mix(in oklab, var(--fondo) 72%, transparent); border: 1px solid var(--borde);
  color: var(--texto-2); font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: aparecer .8s ease both;
}
.hero--media .hero-demo { background: rgb(0 0 0 / .35); border-color: rgb(255 255 255 / .25); color: #fff; }
.hero-etiqueta { animation: entrar .9s var(--curva) both .05s; }
.hero-titulo {
  font-family: var(--f-titulo); font-weight: 500;
  font-size: clamp(3.1rem, 12.5vw, 7rem); line-height: .9; letter-spacing: -.02em;
  margin-top: 14px; animation: entrar 1s var(--curva) both .12s;
}
.hero-titulo em { display: block; font-style: italic; font-weight: 500; color: var(--marca); }
[data-tema="oscuro"] .hero-titulo em { color: var(--acento-claro); }
.hero-frase { max-width: 36rem; font-size: clamp(1rem, 2.6vw, 1.18rem); color: var(--texto-2); margin-top: 20px; animation: entrar 1s var(--curva) both .2s; }
.hero-botones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; animation: entrar 1s var(--curva) both .28s; }
.hero-botones .boton { flex: 1 1 auto; }
.hero-datos {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  padding-block: 18px 22px; color: #fff; animation: aparecer 1.2s ease both .45s;
}
.hero-datos div { display: flex; flex-direction: column; min-width: 0; }
.hero-datos strong { font-family: var(--f-titulo); font-size: clamp(1.7rem, 5.4vw, 2.6rem); font-weight: 600; line-height: 1; }
.hero-datos span { font-size: .74rem; opacity: .82; margin-top: 5px; line-height: 1.3; }
/* El botón de contorno lleva un fondo translúcido para leerse sobre la ilustración */
.hero .boton--contorno {
  background: color-mix(in oklab, var(--fondo) 72%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero--media .boton--contorno { background: rgb(0 0 0 / .22); }
@media (max-width: 959px) {
  /* En celular la portada es un poco más alta que la pantalla: así las casitas quedan
     debajo de los botones y las cifras no quedan tapadas por los botones flotantes. */
  .hero { min-height: calc(100svh + 96px); }
}
@media (min-width: 640px) {
  .hero-botones .boton { flex: 0 0 auto; }
}
@media (min-width: 960px) {
  /* En compu la portada deja asomar la siguiente sección: así la etiqueta "Demo" y el
     botón de WhatsApp (fijos abajo) no tapan las cifras. */
  .hero { min-height: max(660px, calc(100svh - 88px)); padding-top: calc(var(--alto-encabezado) + 40px); }
  .hero-contenido { padding-top: clamp(16px, 6vh, 80px); }
  .hero-datos { grid-template-columns: repeat(4, auto); justify-content: start; gap: 64px; padding-block: 24px 34px; }
  .hero-datos .solo-compu { display: flex !important; }
}

/* Ilustración de la portada */
.h-astro { fill: var(--h-astro); }
.h-nubes path { fill: var(--h-nube); opacity: .55; animation: nubes 60s linear infinite alternate; }
.h-nubes path:nth-child(2) { animation-duration: 80s; animation-direction: alternate-reverse; }
.h-loma-1 { fill: var(--h-loma-1); }
.h-loma-2 { fill: var(--h-loma-2); }
.h-loma-3 { fill: var(--h-loma-3); }
.h-loma-4 { fill: var(--h-loma-4); }
.h-casa { fill: var(--h-casa); }
.h-techo { fill: var(--h-techo); }
.h-ventana { fill: var(--h-ventana); }
.h-arbol { fill: var(--h-arbol); }
[data-tema="oscuro"] .h-ventana rect { animation: ventanas 4s ease-in-out infinite alternate; }

/* ---------- 7. Amenidades ---------- */
.amenidades { background: var(--superficie); padding-block: clamp(56px, 8vw, 100px); }
.amenidades-lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.amenidad { padding: 20px 16px 22px; border-radius: var(--radio-lg); border: 1px solid var(--borde); background: var(--fondo); }
.amenidad-icono { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--marca-suave); color: var(--marca-fuerte); }
.amenidad-icono .icono { width: 24px; height: 24px; }
.amenidad h3 { font-family: var(--f-titulo); font-size: 1.4rem; font-weight: 600; line-height: 1.1; margin-top: 16px; }
.amenidad p { font-size: .86rem; color: var(--texto-2); margin-top: 6px; line-height: 1.5; }
@media (min-width: 900px) {
  .amenidades-lista { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .amenidad { padding: 26px 24px 28px; }
}

/* ---------- 8. Plano de lotes ---------- */
.filtros { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.filtro-grupo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.filtro-titulo { width: 58px; flex-shrink: 0; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--texto-2); }
.filtro-grupo .chips { mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); padding-right: 28px; }
@media (min-width: 760px) {
  .filtros { flex-direction: row; flex-wrap: wrap; gap: 14px 36px; }
  .filtro-titulo { width: auto; }
  .filtro-grupo .chips { mask-image: none; padding-right: 3px; }
}

.mapa-layout { display: grid; gap: 14px; margin-top: 22px; }
.mapa-marco {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: var(--proporcion, 760 / 1000); max-height: 78svh; width: 100%;
  border-radius: var(--radio-xl); border: 1px solid var(--borde);
  background: var(--m-terreno); box-shadow: var(--sombra-1);
}
@media (min-width: 960px) {
  .mapa-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 20px; }
  .mapa-marco { aspect-ratio: auto; height: min(84svh, 900px); min-height: 560px; max-height: none; }
}
.mapa-svg { width: 100%; height: 100%; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.con-zoom .mapa-svg { cursor: grab; }
.arrastrando .mapa-svg { cursor: grabbing; }
.modo-editor .mapa-svg { cursor: crosshair; }

/* Dibujo del plano */
.m-interior { fill: var(--m-interior); stroke: var(--m-barda); stroke-width: 3; stroke-linejoin: round; }
.m-banqueta, .m-calle { fill: none; stroke-linecap: square; stroke-linejoin: round; }
.m-banqueta { stroke: var(--m-banqueta); }
.m-calle { stroke: var(--m-calle); }
.m-linea-central { fill: none; stroke: var(--m-linea); stroke-width: 1.6; stroke-dasharray: 12 10; }
.m-verde { fill: var(--m-verde); }
.m-verde--chico { stroke: var(--m-verde-borde); stroke-width: 1; }
.m-sendero { fill: none; stroke: var(--m-sendero); stroke-width: 7; stroke-linecap: round; }
.m-arbol-sombra { fill: var(--m-sombra); }
.m-arbol { fill: var(--m-arbol); }
.m-arbol-luz { fill: var(--m-arbol-luz); opacity: .75; }
.m-edificio { fill: var(--m-edificio); stroke: var(--m-edificio-borde); stroke-width: 1.5; }
.m-edificio-sombra { fill: var(--m-sombra); }
.m-edificio-techo { fill: none; stroke: var(--m-edificio-borde); stroke-width: 1; stroke-dasharray: 3 3; }
.m-terraza { fill: var(--m-terraza); }
.m-arena { fill: var(--m-arena); stroke: var(--m-arena-borde); stroke-width: 1.5; stroke-dasharray: 5 4; }
.m-juego, .m-juego-linea { fill: none; stroke: var(--m-juego); stroke-width: 2.4; stroke-linecap: round; }
.m-plaza { fill: var(--m-plaza); stroke: var(--m-edificio-borde); stroke-width: 1.2; }
.m-plaza-anillo { fill: none; stroke: var(--m-edificio-borde); stroke-dasharray: 2 4; }
.m-agua { fill: var(--m-agua); }
.m-pluma { fill: var(--m-pluma); }
.m-pluma-base { fill: var(--m-edificio-borde); }
.m-nombre-calle {
  font-family: var(--f-texto); font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  fill: var(--m-texto); text-anchor: middle; dominant-baseline: central; pointer-events: none;
}
.m-etiqueta {
  font-family: var(--f-texto); font-size: 13px; font-weight: 700; letter-spacing: .02em;
  fill: var(--m-etiqueta); text-anchor: middle; pointer-events: none;
  paint-order: stroke; stroke: var(--m-halo); stroke-width: 4px; stroke-linejoin: round;
}
.m-etiqueta--parque { font-family: var(--f-titulo); font-style: italic; font-size: 21px; font-weight: 600; letter-spacing: 0; }
.m-etiqueta--caseta { font-size: 11px; }
.m-acceso rect { fill: var(--marca-base); }
[data-tema="oscuro"] .m-acceso rect { fill: var(--acento-base); }
.m-acceso text { fill: var(--marca-texto); font-family: var(--f-texto); font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; text-anchor: middle; }
[data-tema="oscuro"] .m-acceso text { fill: var(--acento-texto); }

/* Lotes */
.lote { cursor: pointer; outline: none; transition: opacity .35s ease; }
.lote-forma { fill: var(--disponible); stroke: var(--m-lote-borde); stroke-width: 2.5; stroke-linejoin: round; transition: filter .2s, fill .3s; }
.lote[data-estado="apartado"] .lote-forma { fill: var(--apartado); }
.lote[data-estado="vendido"] .lote-forma { fill: var(--vendido); }
.lote-rayado { pointer-events: none; }
.lote-num, .lote-modelo {
  font-family: var(--f-texto); text-anchor: middle; dominant-baseline: central; pointer-events: none;
  fill: var(--disponible-texto); transition: transform .35s var(--curva), opacity .35s;
}
.lote-num { font-weight: 800; letter-spacing: -.01em; }
.lote-modelo { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: 0; }
.lote[data-estado="apartado"] :is(.lote-num, .lote-modelo) { fill: var(--apartado-texto); }
.lote[data-estado="vendido"] :is(.lote-num, .lote-modelo) { fill: var(--vendido-texto); }
.zoom-cerca .lote-num { transform: translateY(-.32em); }
.zoom-cerca .lote-modelo { opacity: .9; }
@media (hover: hover) {
  .lote:hover .lote-forma { filter: brightness(1.08) saturate(1.12); }
}
.lote:focus-visible .lote-forma { stroke: var(--resaltado); stroke-width: 4; }
.lote.atenuado { opacity: .2; }
.lote.atenuado .lote-forma { filter: grayscale(.9); }
.resaltado-borde { fill: none; stroke: var(--resaltado); stroke-width: 4; stroke-linejoin: round; pointer-events: none; }
.resaltado-pulso {
  fill: none; stroke: var(--resaltado); stroke-width: 3; pointer-events: none;
  transform-box: fill-box; transform-origin: center; animation: pulso-lote 1.8s ease-out infinite;
}

/* Controles sobre el mapa */
.mapa-controles { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.mapa-boton {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--superficie); color: var(--texto); border: 1px solid var(--borde); box-shadow: var(--sombra-1);
  transition: transform .2s, background-color .2s;
}
.mapa-boton:hover { background: var(--superficie-2); }
.mapa-boton:active { transform: scale(.93); }
.mapa-boton .icono { width: 20px; height: 20px; }
.mapa-norte {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--superficie); border: 1px solid var(--borde); box-shadow: var(--sombra-1);
  font-family: var(--f-titulo); font-weight: 700; font-size: 1.05rem; transform: rotate(var(--giro, 0deg));
}
.mapa-norte::before { content: ""; position: absolute; top: 3px; border: 4px solid transparent; border-bottom: 6px solid var(--vendido); border-top: 0; }
.mapa-pista {
  position: absolute; left: 50%; bottom: 14px; z-index: 2; transform: translateX(-50%);
  padding: 8px 16px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  background: rgb(17 22 19 / .82); color: #fff; font-size: .8rem; font-weight: 600;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity .5s, transform .5s var(--curva);
}
.mapa-pista.oculta { opacity: 0; transform: translate(-50%, 8px); }
.mapa-tooltip {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none;
  padding: 9px 13px; border-radius: 12px; background: var(--superficie); color: var(--texto);
  box-shadow: var(--sombra-2); font-size: .82rem; line-height: 1.45; white-space: nowrap;
  opacity: 0; transition: opacity .15s;
}
.mapa-tooltip.visible { opacity: 1; }
.mapa-tooltip .estado-punto { width: 8px; height: 8px; margin-right: 6px; }

/* Lista de lotes */
.lotes-panel { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio-lg); overflow: hidden; }
.lotes-panel-cabecera {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 14px 18px; cursor: pointer; list-style: none; font-size: .92rem;
}
.lotes-panel-cabecera::-webkit-details-marker { display: none; }
.lotes-panel-cabecera > span { display: inline-flex; align-items: center; gap: 9px; }
.lotes-panel-ver { color: var(--texto-2); font-size: .85rem; font-weight: 600; }
.lotes-panel-ver .icono { transition: transform .3s var(--curva); }
.lotes-panel[open] .lotes-panel-ver .icono { transform: rotate(180deg); }
.lotes-lista { max-height: 56svh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.lote-item {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  width: 100%; padding: 10px 18px; text-align: left; border-top: 1px solid var(--borde);
  transition: background-color .2s;
}
.lote-item:hover { background: var(--superficie-2); }
.lote-item-num { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: .95rem; }
.lote-item-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.lote-item-info strong { font-size: .92rem; }
.lote-item-info small { font-size: .78rem; color: var(--texto-2); }
.lote-item-precio { font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; }
.lote-item-precio em { font-style: normal; color: var(--texto-2); font-weight: 600; font-size: .82rem; }
.lotes-vacio { padding: 24px 18px; color: var(--texto-2); font-size: .9rem; border-top: 1px solid var(--borde); }
@media (min-width: 960px) {
  .lotes-panel-cabecera { cursor: default; pointer-events: none; border-bottom: 1px solid var(--borde); }
  .lotes-panel-ver { display: none; }
  .lotes-lista { max-height: calc(min(84svh, 900px) - 54px); }
  .lotes-lista li:first-child .lote-item { border-top: 0; }
}

.mapa-leyenda { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 14px; font-size: .86rem; color: var(--texto-2); }
.mapa-leyenda > span { display: inline-flex; align-items: center; gap: 7px; }
.mapa-leyenda-nota { flex-basis: 100%; font-size: .76rem; }
@media (min-width: 960px) { .mapa-leyenda-nota { flex-basis: auto; margin-left: auto; } }

/* ---------- 9. Ficha del lote ---------- */
.ficha {
  position: fixed; z-index: 70;
  display: flex; flex-direction: column;
  background: var(--superficie); color: var(--texto); box-shadow: var(--sombra-3);
  visibility: hidden;
  transition: transform .5s var(--curva), visibility 0s linear .5s;
}
.ficha.abierta { visibility: visible; transition: transform .5s var(--curva); }
.ficha.arrastrando { transition: none; }
.ficha-contenido { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.ficha-asa { padding: 10px 0 2px; touch-action: none; }
.ficha-asa span { display: block; width: 42px; height: 5px; margin: 0 auto; border-radius: 3px; background: var(--borde-fuerte); }
.ficha-cabecera { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 6px 20px 12px; }
.ficha-sub { font-size: .78rem; color: var(--texto-2); letter-spacing: .02em; }
.ficha-titulo { font-family: var(--f-titulo); font-size: 2.5rem; font-weight: 600; line-height: 1; margin-top: 2px; outline: none; }
.ficha-cuerpo { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 18px; }
.ficha-estado-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ficha-entrega { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--texto-2); }
.ficha-entrega .icono { width: 16px; height: 16px; }
.ficha-precio { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--superficie-2); }
.ficha-precio-etiqueta { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--texto-2); }
.ficha-precio strong { font-family: var(--f-titulo); font-size: 2.3rem; font-weight: 600; line-height: 1.05; font-variant-numeric: lining-nums; }
.ficha-precio-nota { font-size: .72rem; color: var(--texto-2); }
.ficha-precio--vendido strong { font-size: 1.6rem; }
.ficha-precio--vendido span { font-size: .86rem; color: var(--texto-2); }
.ficha-datos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.ficha-dato { display: flex; flex-direction: column; gap: 1px; padding: 11px 12px; border: 1px solid var(--borde); border-radius: 14px; min-width: 0; }
.ficha-dato .icono { width: 19px; height: 19px; color: var(--acento-fuerte); margin-bottom: 4px; }
.ficha-dato dt { font-size: .7rem; color: var(--texto-2); line-height: 1.25; }
.ficha-dato dd { font-weight: 800; font-size: .98rem; white-space: nowrap; }
.ficha-etiquetas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ficha-etiquetas li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--acento-suave); color: var(--acento-fuerte); }
.ficha-etiquetas .icono { width: 14px; height: 14px; }
.ficha-modelo {
  display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  width: 100%; margin-top: 14px; padding: 8px 12px 8px 8px; text-align: left;
  border: 1px solid var(--borde); border-radius: 18px; background: var(--superficie);
  transition: border-color .2s, transform .2s;
}
.ficha-modelo:hover { border-color: var(--borde-fuerte); }
.ficha-modelo:active { transform: scale(.99); }
.ficha-modelo-img { display: block; aspect-ratio: 4 / 3; border-radius: 11px; overflow: hidden; }
.ficha-modelo-img svg, .ficha-modelo-img img { width: 100%; height: 100%; object-fit: cover; }
.ficha-modelo-texto { display: flex; flex-direction: column; min-width: 0; }
.ficha-modelo-etiqueta { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--texto-2); }
.ficha-modelo-nombre { font-family: var(--f-titulo); font-size: 1.45rem; font-weight: 600; line-height: 1.1; }
.ficha-modelo-frase { font-size: .8rem; color: var(--texto-2); line-height: 1.35; }
.ficha-modelo-flecha { width: 20px; height: 20px; color: var(--texto-2); }
.ficha-terreno { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--superficie-2); font-size: .88rem; line-height: 1.5; }
.ficha-terreno .icono { width: 22px; height: 22px; color: var(--acento-fuerte); margin-top: 2px; }
.ficha-similares { margin-top: 16px; font-size: .86rem; color: var(--texto-2); }
.ficha-similares div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ficha-acciones { display: grid; gap: 8px; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--borde); background: var(--superficie); }
.ficha-acciones-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ficha-acciones-fila .boton { padding: 0 12px; font-size: .88rem; }

@media (max-width: 959px) {
  .ficha {
    left: 0; right: 0; bottom: 0; max-height: 80svh;
    border-radius: 24px 24px 0 0;
    transform: translateY(104%);
  }
  .ficha.abierta { transform: translateY(0); }
  .ficha-cabecera { touch-action: none; }
}
@media (min-width: 960px) {
  .ficha {
    top: calc(var(--alto-encabezado) + 12px); right: 14px; bottom: 14px; width: 400px;
    border-radius: 24px; border: 1px solid var(--borde);
    transform: translateX(calc(100% + 30px));
  }
  .ficha.abierta { transform: none; }
  .ficha-asa { display: none; }
  .ficha-cabecera { padding-top: 22px; }
}

/* ---------- 10. Modelos ---------- */
.modelos { background: var(--superficie-2); }
.modelos-lista { display: grid; gap: 22px; margin-top: 40px; }
.modelo {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio-xl);
  box-shadow: var(--sombra-1);
  transition: transform .5s var(--curva), box-shadow .5s var(--curva), opacity .8s var(--curva);
}
@media (hover: hover) { .modelo.visible:hover { transform: translateY(-5px); box-shadow: var(--sombra-2); } }
.modelo-imagen { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--f-cielo); }
.modelo-imagen > svg, .modelo-imagen > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--curva); }
@media (hover: hover) { .modelo:hover .modelo-imagen > :first-child { transform: scale(1.035); } }
.modelo-precio {
  position: absolute; left: 14px; bottom: 14px; display: flex; flex-direction: column;
  padding: 8px 14px; border-radius: 13px; background: var(--superficie); box-shadow: var(--sombra-1);
  font-weight: 800; font-size: 1.05rem; line-height: 1.2; font-variant-numeric: tabular-nums;
}
.modelo-precio small { font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--texto-2); }
.modelo-cuerpo { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 22px 22px 24px; }
.modelo-nombre { font-family: var(--f-titulo); font-size: 2.1rem; font-weight: 600; line-height: 1; }
.modelo-frase { font-family: var(--f-titulo); font-style: italic; font-size: 1.22rem; color: var(--acento-fuerte); margin-top: -6px; }
.modelo-datos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 12px; border-block: 1px solid var(--borde); }
.modelo-datos li { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .76rem; color: var(--texto-2); text-align: center; }
.modelo-datos li + li { border-left: 1px solid var(--borde); }
.modelo-datos .icono { width: 21px; height: 21px; color: var(--acento-fuerte); }
.modelo-datos strong { font-size: 1.08rem; color: var(--texto); }
.modelo-desc { font-size: .92rem; color: var(--texto-2); line-height: 1.55; }
.modelo-caracteristicas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; font-size: .84rem; }
.modelo-caracteristicas li { display: flex; gap: 7px; line-height: 1.35; }
.modelo-caracteristicas .icono { width: 16px; height: 16px; color: var(--acento-fuerte); margin-top: 1px; }
.modelo-disponibles { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 700; }
.modelo-botones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.modelo-botones .boton { flex: 1 1 auto; padding: 0 16px; font-size: .9rem; }
@media (min-width: 900px) { .modelos-lista { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }

/* Fachadas ilustradas */
.fachada { width: 100%; height: 100%; }
.f-cielo { fill: var(--f-cielo); }
.f-sol { fill: var(--f-sol); }
.f-pasto { fill: var(--f-pasto); }
.f-banqueta { fill: var(--f-banqueta); }
.f-muro { fill: var(--f-muro); stroke: rgb(0 0 0 / .08); }
.f-muro-2 { fill: var(--f-muro-2); }
.f-piedra { fill: var(--f-piedra); }
.f-losa { fill: var(--f-losa); }
.f-losa-2 { fill: var(--f-losa-2); }
.f-vidrio { fill: var(--f-vidrio); }
.f-reflejo { fill: var(--f-reflejo); }
.f-marco { stroke: var(--f-marco); stroke-width: 2; }
.f-marco-ext { fill: none; stroke: var(--f-marco); stroke-width: 3; }
.f-madera { fill: var(--acento-base); }
.f-puerta { fill: color-mix(in oklab, var(--acento-base) 78%, #000); }
.f-porton { fill: var(--f-porton); stroke: rgb(0 0 0 / .1); }
.f-linea { fill: none; stroke: var(--f-linea); stroke-width: 1.4; }
.f-pergola { fill: none; stroke: var(--f-losa); stroke-width: 3; }
.f-columna { fill: var(--f-losa); }
.f-oscuro { fill: var(--f-oscuro); }
.f-tronco { stroke: var(--f-tronco); stroke-width: 4; stroke-linecap: round; fill: none; }
.f-copa { fill: var(--f-copa); }
.f-copa--2 { fill: var(--f-copa-2); }
.f-arbusto { fill: var(--f-arbusto); }

/* ---------- 11. Recorrido por cuartos ---------- */
.recorrido-seccion { background: var(--banda-fondo); color: var(--banda-texto); }
.recorrido-seccion .etiqueta { color: var(--acento-claro); }
.recorrido-seccion .seccion-intro { color: rgb(255 255 255 / .72); }

.segmentado { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .12); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segmentado [role="tab"] { padding: 10px 18px; border-radius: 999px; font-size: .92rem; font-weight: 700; color: rgb(255 255 255 / .74); white-space: nowrap; transition: background-color .25s, color .25s; }
.segmentado [role="tab"]:hover { color: #fff; }
.segmentado [role="tab"][aria-selected="true"] { background: #fff; color: #17211C; }
.segmentado--modelos { margin-top: 30px; }
.segmentado--modelos [role="tab"] { padding: 11px 22px; font-family: var(--f-titulo); font-size: 1.2rem; font-weight: 600; }

.recorrido-grid { display: grid; gap: 22px; margin-top: 20px; }
@media (min-width: 960px) {
  .recorrido-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .recorrido-visor { position: sticky; top: calc(var(--alto-encabezado) + 20px); }
}
.recorrido-visor { min-width: 0; }
.visor-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 22px; background: rgb(255 255 255 / .06); touch-action: pan-y; }
@media (min-width: 960px) { .visor-media { aspect-ratio: 16 / 11; } }
.visor-capa { position: absolute; inset: 0; transition: opacity .55s ease, transform 1s var(--curva); }
.visor-capa.entrando { opacity: 0; transform: scale(1.035); }
.visor-capa.saliendo { opacity: 0; }
.visor-capa > img, .visor-capa > video { width: 100%; height: 100%; object-fit: cover; }
.visor-pie { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-top: 18px; }
.visor-info { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.visor-num { font-family: var(--f-titulo); font-size: 2.8rem; font-weight: 500; line-height: .85; color: var(--acento-claro); font-variant-numeric: lining-nums; }
.visor-nombre { font-family: var(--f-titulo); font-size: 1.8rem; font-weight: 600; line-height: 1.05; }
.visor-desc { font-size: .93rem; color: rgb(255 255 255 / .78); margin-top: 5px; line-height: 1.5; }
.visor-medidas { font-size: .76rem; color: rgb(255 255 255 / .55); margin-top: 6px; letter-spacing: .04em; }
.visor-nav { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.visor-contador { min-width: 46px; text-align: center; font-size: .8rem; color: rgb(255 255 255 / .7); font-variant-numeric: tabular-nums; }
.visor-cuartos { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 18px; padding: 2px 28px 2px 2px; mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.visor-cuartos::-webkit-scrollbar { display: none; }
@media (max-width: 599px) {
  .visor-pie { flex-direction: column; }
  .visor-nav { align-self: stretch; justify-content: space-between; }
}

/* "Foto" de ejemplo de cada cuarto */
.placeholder-cuarto { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; color: #fff; background: linear-gradient(140deg, var(--p1), var(--p2)); }
.ph-boceto { position: absolute; inset: 0; width: 100%; height: 100%; animation: kenburns 14s ease-out both; }
.ph-contenido { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px; text-align: center; }
.ph-icono { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .2); border: 1px solid rgb(255 255 255 / .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ph-icono .icono { width: 30px; height: 30px; stroke-width: 1.4; }
.ph-nombre { font-family: var(--f-titulo); font-size: clamp(2.1rem, 6.5vw, 3.6rem); font-weight: 600; line-height: 1; text-shadow: 0 2px 22px rgb(0 0 0 / .18); }
.ph-nota { position: absolute; top: 14px; right: 14px; padding: 5px 11px; border-radius: 999px; background: rgb(0 0 0 / .22); font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
[data-tema="oscuro"] .placeholder-cuarto { filter: brightness(.82) saturate(.9); }

/* Planta arquitectónica */
.recorrido-plano { padding: 16px; border-radius: 22px; background: var(--papel); color: var(--papel-texto); }
.planta-cabecera { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; }
.recorrido-plano .segmentado { background: color-mix(in oklab, var(--papel-texto) 6%, transparent); border-color: transparent; }
.recorrido-plano .segmentado [role="tab"] { color: var(--papel-texto-2); padding: 8px 15px; font-size: .86rem; }
.recorrido-plano .segmentado [role="tab"]:hover { color: var(--papel-texto); }
.recorrido-plano .segmentado [role="tab"][aria-selected="true"] { background: var(--papel-texto); color: var(--papel); }
.planta-resumen { font-size: .8rem; font-weight: 600; color: var(--papel-texto-2); }
.planta-marco { margin-top: 14px; display: flex; justify-content: center; }
.planta-svg { width: 100%; height: auto; max-height: 62vh; overflow: visible; }
.planta-marco.es-horizontal .planta-svg { max-height: none; }
.planta-piso { fill: var(--planta-piso); stroke: var(--planta-muro); stroke-width: calc(var(--trazo) * 2); transition: fill .25s; }
.es-exterior .planta-piso { fill: var(--planta-exterior); stroke-dasharray: calc(var(--trazo) * 6) calc(var(--trazo) * 4); stroke-width: calc(var(--trazo) * 1.2); }
.planta-cuarto--jardin.es-exterior .planta-piso { fill: var(--planta-jardin); }
.sin-punto .planta-piso { fill: var(--planta-paso); }
.planta-escalon { stroke: var(--planta-muro); opacity: .45; fill: none; }
.planta-muro { fill: none; stroke: var(--planta-muro); pointer-events: none; }
.planta-fantasma { fill: none; stroke: var(--planta-muro); stroke-width: var(--trazo); stroke-dasharray: calc(var(--trazo) * 4) calc(var(--trazo) * 4); opacity: .28; }
.planta-nombre { fill: var(--papel-texto); font-family: var(--f-texto); font-weight: 700; text-anchor: middle; pointer-events: none; }
.sin-punto .planta-nombre { fill: var(--papel-texto-2); font-weight: 600; }
.planta-medidas { fill: var(--papel-texto-2); font-family: var(--f-texto); font-weight: 500; text-anchor: middle; pointer-events: none; }
.planta-calle { fill: var(--papel-texto-2); font-family: var(--f-texto); font-weight: 700; letter-spacing: .25em; text-anchor: middle; }
.planta-cuarto[tabindex] { cursor: pointer; outline: none; }
@media (hover: hover) { .planta-cuarto[tabindex]:hover .planta-piso { fill: var(--planta-hover); } }
.planta-cuarto.activo .planta-piso { fill: var(--planta-activo); }
.planta-punto-fondo { fill: var(--planta-piso); stroke: var(--acento-base); stroke-width: calc(var(--trazo) * 2.2); transition: fill .25s; }
.planta-punto-num { fill: var(--papel-texto); font-family: var(--f-texto); font-weight: 800; text-anchor: middle; pointer-events: none; }
.planta-cuarto.activo .planta-punto-fondo { fill: var(--acento-base); }
.planta-cuarto.activo .planta-punto-num { fill: var(--acento-texto); }
.planta-punto-pulso { fill: var(--acento-base); opacity: 0; transform-box: fill-box; transform-origin: center; }
.planta-cuarto.activo .planta-punto-pulso { animation: pulso-punto 1.9s ease-out infinite; }
.planta-cuarto:focus-visible .planta-punto-fondo { stroke: var(--papel-texto); stroke-width: calc(var(--trazo) * 3); }
.planta-ayuda { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font-size: .78rem; color: var(--papel-texto-2); }
.planta-ayuda .icono { width: 16px; height: 16px; }

.recorrido-acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.recorrido-acciones .boton { flex: 1 1 auto; }
@media (min-width: 960px) { .recorrido-acciones .boton { flex: 0 0 auto; } }

/* ---------- 12. Diálogos ---------- */
.dialogo { border: 0; padding: 0; max-width: none; max-height: none; color: inherit; background: transparent; }
.dialogo::backdrop { background: rgb(8 12 10 / .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dialogo[open] { animation: subir .45s var(--curva); }

/* Recorrido completo (pantalla completa) */
.dialogo--completo { width: 100vw; height: 100dvh; margin: 0; background: #0B0F0D; color: #fff; }
.dialogo--completo::backdrop { background: #000; }
.dialogo--completo[open] { animation: aparecer .35s ease; }
.completo { position: relative; display: flex; flex-direction: column; height: 100%; }
.completo-cabecera { position: relative; z-index: 4; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 18px 10px; }
.completo-etiqueta { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.completo-cabecera strong { font-family: var(--f-titulo); font-size: 1.45rem; font-weight: 600; }
.completo-video { flex: 1; display: grid; place-items: center; padding: 0 12px 20px; }
.completo-video iframe, .completo-video video { width: 100%; max-width: 1200px; max-height: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; background: #000; }

.historia { position: relative; flex: 1; min-height: 0; --margen-x: 12px; }
@media (min-width: 960px) { .historia { --margen-x: max(28px, calc((100vw - 1240px) / 2)); } }
.historia-barras { position: absolute; top: 0; left: var(--margen-x); right: var(--margen-x); z-index: 3; display: flex; gap: 4px; }
.historia-barras span { flex: 1; height: 3px; border-radius: 2px; overflow: hidden; background: rgb(255 255 255 / .25); }
.historia-barras i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.historia-escena { position: absolute; inset: 14px var(--margen-x) calc(14px + env(safe-area-inset-bottom)); overflow: hidden; border-radius: 18px; background: #171C19; }
.historia-capa { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.historia-capa.activa { opacity: 1; }
.historia-capa > img, .historia-capa > video { width: 100%; height: 100%; object-fit: cover; animation: kenburns 6s ease-out both; }
.historia-texto {
  position: absolute; left: var(--margen-x); right: var(--margen-x); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 2;
  display: flex; align-items: flex-end; gap: 14px; padding: 80px 22px 56px; border-radius: 0 0 18px 18px; pointer-events: none;
  background: linear-gradient(to top, rgb(0 0 0 / .66), transparent);
}
.historia-texto h3 { font-family: var(--f-titulo); font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 600; line-height: 1; }
.historia-texto p { font-size: .9rem; opacity: .85; margin-top: 6px; max-width: 40rem; }
.historia-zona { position: absolute; top: 40px; bottom: 140px; z-index: 2; width: 38%; cursor: pointer; }
.historia-zona--prev { left: 0; }
.historia-zona--next { right: 0; }
.historia.en-final .historia-zona { display: none; }
.historia-nota { position: absolute; left: 0; right: 0; bottom: calc(26px + env(safe-area-inset-bottom)); z-index: 3; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 20px; font-size: .72rem; opacity: .7; text-align: center; pointer-events: none; }
.historia-nota .icono { width: 16px; height: 16px; }
.historia.en-final .historia-nota { display: none; }
.historia-final {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 28px; text-align: center;
  background: radial-gradient(circle at 50% 35%, color-mix(in oklab, var(--marca-base) 75%, #000), #0B0F0D 75%);
}
.historia-final .etiqueta { color: var(--acento-claro); }
.historia-final h3 { font-family: var(--f-titulo); font-size: clamp(2.4rem, 8vw, 4rem); font-weight: 500; line-height: 1; }
.historia-final p:not(.etiqueta) { opacity: .8; max-width: 26rem; }
.historia-final-botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }

/* Agendar visita */
.dialogo--visita { width: min(100% - 24px, 540px); margin: auto; max-height: calc(100dvh - 24px); overflow-y: auto; border-radius: 26px; background: var(--superficie); color: var(--texto); box-shadow: var(--sombra-3); }
@media (max-width: 599px) {
  .dialogo--visita { width: 100%; max-width: 100%; margin: auto 0 0; max-height: 94dvh; border-radius: 24px 24px 0 0; }
}
.visita { display: flex; flex-direction: column; gap: 18px; padding: 22px 22px calc(22px + env(safe-area-inset-bottom)); }
.visita-cabecera { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.visita-cabecera h2 { font-family: var(--f-titulo); font-size: 2.2rem; font-weight: 600; line-height: 1; margin-top: 8px; }
.visita-intro { color: var(--texto-2); font-size: .94rem; margin-top: -6px; }
.visita fieldset { border: 0; padding: 0; min-width: 0; }
.visita legend { padding: 0; margin-bottom: 9px; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--texto-2); }
.visita-dias { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 3px; margin: -3px; }
.visita-dias::-webkit-scrollbar { display: none; }
.dia, .horario { position: relative; flex-shrink: 0; }
.dia input, .horario input { position: absolute; opacity: 0; pointer-events: none; }
.dia span { display: flex; flex-direction: column; align-items: center; width: 64px; padding: 10px 0 9px; border: 1.5px solid var(--borde); border-radius: 15px; cursor: pointer; line-height: 1.2; transition: background-color .2s, border-color .2s, color .2s; }
.dia small { font-size: .7rem; color: var(--texto-2); font-weight: 600; }
.dia strong { font-family: var(--f-titulo); font-size: 1.55rem; font-weight: 600; line-height: 1.1; }
.visita-horarios { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.horario span { display: block; padding: 13px 10px; border: 1.5px solid var(--borde); border-radius: 15px; text-align: center; font-size: .88rem; font-weight: 700; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.dia input:checked + span, .horario input:checked + span { background: var(--marca); border-color: var(--marca); color: var(--fondo); }
[data-tema="oscuro"] .dia input:checked + span, [data-tema="oscuro"] .horario input:checked + span { background: var(--acento-base); border-color: var(--acento-base); color: var(--acento-texto); }
.dia input:checked + span small { color: inherit; opacity: .8; }
.dia input:focus-visible + span, .horario input:focus-visible + span { outline: 2px solid var(--acento); outline-offset: 2px; }
.visita-campos { display: grid; gap: 12px; }
@media (min-width: 480px) { .visita-campos { grid-template-columns: 1fr 1fr; } }
.campo > span { display: block; margin-bottom: 6px; font-size: .8rem; font-weight: 700; }
.campo small { color: var(--texto-2); font-weight: 500; }
.campo input, .campo select {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 13px;
  border: 1.5px solid var(--borde); background: var(--superficie); color: var(--texto);
  font: inherit; font-size: 16px; /* 16px evita el zoom automático en iPhone */
}
.campo input:focus, .campo select:focus { border-color: var(--acento); outline: none; }

/* ---------- 13. Crédito ---------- */
.credito-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .credito-grid { grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; } }
.credito-requisitos { margin-top: 28px; padding: 20px 22px; border-radius: var(--radio-lg); background: var(--superficie-2); }
.credito-requisitos-titulo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .92rem; }
.credito-requisitos-titulo .icono { width: 20px; height: 20px; color: var(--acento-fuerte); }
.credito-requisitos ul { display: grid; gap: 8px; margin-top: 12px; }
.credito-requisitos li { display: flex; gap: 9px; font-size: .9rem; line-height: 1.45; }
.credito-requisitos li .icono { width: 17px; height: 17px; color: var(--disponible); margin-top: 2px; }
.credito-panel { padding: 24px 20px; border-radius: var(--radio-xl); border: 1px solid var(--borde); background: var(--superficie); box-shadow: var(--sombra-1); }
@media (min-width: 600px) { .credito-panel { padding: 30px; } }
.credito-pregunta { font-family: var(--f-titulo); font-size: 1.6rem; font-weight: 600; line-height: 1.15; }
.credito-opciones { display: grid; gap: 10px; margin: 18px 0; }
.credito-opcion {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 14px 16px; text-align: left; border-radius: 17px; border: 1.5px solid var(--borde); background: var(--superficie);
  transition: border-color .2s, background-color .2s, transform .2s;
}
.credito-opcion:hover { border-color: var(--borde-fuerte); }
.credito-opcion:active { transform: scale(.99); }
.credito-opcion[aria-checked="true"] { border-color: var(--marca); background: var(--marca-suave); }
.credito-opcion--simple { grid-template-columns: minmax(0, 1fr) auto; }
.credito-icono { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--acento-suave); color: var(--acento-fuerte); }
.credito-icono .icono { width: 23px; height: 23px; }
.credito-texto strong { display: block; font-size: 1rem; }
.credito-texto span { display: block; font-size: .84rem; color: var(--texto-2); line-height: 1.45; margin-top: 2px; }
.credito-marca { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--borde-fuerte); color: transparent; transition: background-color .2s, border-color .2s; }
.credito-marca .icono { width: 15px; height: 15px; stroke-width: 2.4; }
.credito-opcion[aria-checked="true"] .credito-marca { background: var(--marca); border-color: var(--marca); color: var(--fondo); }
.credito-nota { margin-top: 12px; font-size: .8rem; color: var(--texto-2); text-align: center; }

/* ---------- 14. Ubicación ---------- */
.ubicacion { background: var(--superficie); }
.ubicacion-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .ubicacion-grid { grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; } }
.ubicacion-direccion { display: flex; align-items: flex-start; gap: 8px; margin-top: 22px; font-weight: 700; }
.ubicacion-direccion .icono { width: 20px; height: 20px; color: var(--acento-fuerte); margin-top: 2px; }
.tiempos { margin-top: 16px; border-top: 1px solid var(--borde); }
.tiempos li { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--borde); }
.tiempos-icono { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--superficie-2); color: var(--acento-fuerte); }
.tiempos-icono .icono { width: 21px; height: 21px; }
.tiempos-nombre { font-size: .94rem; font-weight: 600; line-height: 1.35; }
.tiempos-min { font-family: var(--f-titulo); font-size: 1.45rem; font-weight: 600; white-space: nowrap; }
.tiempos-nota { margin: 10px 0 20px; font-size: .78rem; color: var(--texto-2); }
.ubicacion-mapa { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; border-radius: var(--radio-xl); border: 1px solid var(--borde); background: var(--superficie-2); }
.ubicacion-mapa iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; display: block; }
/* Se ve mientras carga el mapa (o si no hay internet) */
.mapa-cargando { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--texto-2); font-size: .9rem; text-align: center; padding: 20px; }
.mapa-cargando .icono { width: 30px; height: 30px; color: var(--acento-fuerte); }
[data-tema="oscuro"] .ubicacion-mapa iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6) brightness(.95); }

/* ---------- 15. Cierre ---------- */
.cierre-caja { position: relative; isolation: isolate; overflow: hidden; min-height: 640px; border-radius: var(--radio-xl); border: 1px solid var(--borde); }
.cierre-fondo { position: absolute; inset: 0; z-index: -1; }
.cierre-fondo svg { width: 100%; height: 100%; }
.cierre-contenido { max-width: 660px; padding: clamp(28px, 6vw, 64px); }
.cierre-contenido .seccion-intro { color: var(--texto-2); }
.cierre-botones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cierre-botones .boton { flex: 1 1 auto; }
.cierre-horario { display: flex; align-items: flex-start; gap: 8px; margin-top: 18px; font-size: .86rem; color: var(--texto-2); }
.cierre-horario .icono { width: 18px; height: 18px; margin-top: 2px; }
@media (min-width: 640px) {
  .cierre-caja { min-height: 560px; }
  .cierre-botones .boton { flex: 0 0 auto; }
}

/* ---------- 16. Pie de página ---------- */
/* Abajo se deja espacio para que los botones flotantes no tapen la última línea */
.pie { padding: 64px 0 calc(96px + env(safe-area-inset-bottom)); background: var(--pie-fondo); color: var(--pie-texto); }
.pie-grid { display: grid; gap: 34px; }
@media (min-width: 800px) { .pie-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.logo--claro { color: #fff; }
.logo--claro .logo-marca { background: #fff; color: var(--marca-base); }
.pie-marca > p { margin-top: 14px; color: rgb(255 255 255 / .72); font-size: .92rem; }
.pie-direccion { display: flex; gap: 8px; align-items: flex-start; }
.pie-direccion .icono { width: 18px; height: 18px; margin-top: 2px; }
.pie-redes { display: flex; gap: 8px; margin-top: 16px; }
.pie-redes a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgb(255 255 255 / .2); }
.pie-redes .icono { width: 19px; height: 19px; }
.pie-titulo { margin-bottom: 12px; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .55; }
.pie-lista { display: grid; gap: 10px; font-size: .92rem; color: rgb(255 255 255 / .82); }
.pie-lista li, .pie-lista a { display: inline-flex; align-items: flex-start; gap: 9px; }
.pie-lista a:hover { color: #fff; }
.pie-lista .icono { width: 18px; height: 18px; opacity: .7; margin-top: 2px; }
.pie-legal { display: flex; flex-direction: column; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .12); font-size: .78rem; color: rgb(255 255 255 / .6); }
.pie-legal p:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pie-legal a { display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-underline-offset: 3px; }
.pie-legal a .icono { width: 16px; height: 16px; }
.pie-demo { padding: 3px 10px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .3); }
@media (min-width: 800px) { .pie-legal { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ---------- 17. Flotantes ---------- */
.wa-flotante {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 58px; height: 58px; border-radius: 999px;
  background: #25D366; color: #fff; font-weight: 800; font-size: .92rem;
  box-shadow: 0 12px 30px -10px rgb(18 140 70 / .65);
  transition: transform .45s var(--curva), opacity .3s;
}
.wa-flotante::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25D366; animation: onda 2.8s ease-out 1.5s 3; pointer-events: none; }
.wa-flotante .icono { width: 30px; height: 30px; }
.wa-flotante:hover { transform: translateY(-2px); }
.wa-flotante-texto { display: none; }
@media (min-width: 960px) {
  .wa-flotante { right: 24px; bottom: 24px; padding: 0 22px 0 16px; }
  .wa-flotante-texto { display: inline; }
}
body.ficha-abierta .wa-flotante, body.menu-abierto .wa-flotante { transform: translateY(140%); opacity: 0; pointer-events: none; }

.demo-etiqueta {
  position: fixed; left: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 55;
  display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
  background: rgb(17 22 19 / .8); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .02em;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none;
  transition: opacity .3s;
}
.demo-etiqueta[hidden] { display: none; }
.demo-punto { width: 7px; height: 7px; border-radius: 50%; background: #F2B544; box-shadow: 0 0 0 3px rgb(242 181 68 / .25); }
body.ficha-abierta .demo-etiqueta, body.menu-abierto .demo-etiqueta, body.en-portada .demo-etiqueta { opacity: 0; }
@media (min-width: 960px) { .demo-etiqueta { left: 20px; bottom: 24px; } }

.aviso {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 95;
  padding: 11px 20px; border-radius: 999px; background: var(--texto); color: var(--fondo);
  font-size: .88rem; font-weight: 700; pointer-events: none; white-space: nowrap;
  opacity: 0; transform: translate(-50%, 16px); transition: opacity .3s, transform .4s var(--curva);
}
.aviso.visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 18. Editor del plano (?editor) ---------- */
.editor-panel {
  position: fixed; right: 16px; bottom: 16px; z-index: 96; width: min(360px, calc(100% - 32px));
  display: grid; gap: 10px; padding: 16px; border-radius: 18px;
  background: #111613; color: #fff; font-size: .82rem; box-shadow: var(--sombra-3);
}
.editor-panel p { color: rgb(255 255 255 / .75); }
.editor-salida { display: block; padding: 10px; border-radius: 10px; background: rgb(255 255 255 / .08); word-break: break-all; color: #F2C57C; }
.editor-botones { display: flex; flex-wrap: wrap; gap: 6px; }
.editor-botones button { padding: 8px 12px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .25); font-weight: 700; }
.editor-botones .editor-copiar { background: #F2C57C; color: #111; border-color: #F2C57C; }
.editor-nota { font-size: .72rem; }
.editor-forma { fill: rgb(242 197 124 / .35); stroke: #E39B2D; stroke-width: 2; }
.editor-linea { fill: none; stroke: #E39B2D; stroke-width: 2; stroke-dasharray: 5 4; }
.editor-punto { fill: #E39B2D; stroke: #fff; stroke-width: 1.5; }
.editor-texto { font: 700 12px var(--f-texto); fill: #111; paint-order: stroke; stroke: #fff; stroke-width: 3px; }

/* ---------- 19. Error de carga ---------- */
.error-carga { padding: 120px 0; max-width: 640px; }
.error-carga h1 { font-family: var(--f-titulo); font-size: 2.6rem; font-weight: 600; line-height: 1.1; }
.error-carga p { margin-top: 14px; color: var(--texto-2); }

/* ---------- 20. Animaciones ---------- */
.revelar { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--curva), transform .9s var(--curva); transition-delay: var(--retraso, 0ms); }
.revelar.visible { opacity: 1; transform: none; }
.modelo.revelar.visible { transition-delay: 0ms; }

@keyframes entrar { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
@keyframes subir { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes pulso-lote { from { transform: scale(1); opacity: .75; } to { transform: scale(1.3); opacity: 0; } }
@keyframes pulso-punto { from { transform: scale(1); opacity: .5; } to { transform: scale(2.5); opacity: 0; } }
@keyframes onda { from { transform: scale(1); opacity: .8; } to { transform: scale(1.5); opacity: 0; } }
@keyframes nubes { from { transform: translateX(-40px); } to { transform: translateX(60px); } }
@keyframes ventanas { from { opacity: .7; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .revelar { opacity: 1; transform: none; }
}
