/* =============================================================
   Fundos Inmobiliaria — propuesta de sitio
   Tokens tomados del Manual de Marca Fundos 360° (sept. 2026)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
/* Tipografías del manual, servidas desde el propio sitio (sin esperar a Google Fonts).
   Los "Fallback" imitan sus medidas con fuentes del sistema: el texto no salta al cargar. */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("assets/fonts/cormorant-garamond.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("assets/fonts/cormorant-garamond-italic.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("assets/fonts/mulish.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Fallback"; src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"); size-adjust: 96.55%; ascent-override: 95.7%; descent-override: 29.73%; line-gap-override: 0%; }
@font-face { font-family: "Mulish Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica"); size-adjust: 103.38%; ascent-override: 97.21%; descent-override: 24.18%; line-gap-override: 0%; }

:root {
  /* Verdes — superficies oscuras y acciones primarias */
  --g900: #0A140E;
  --g800: #0F1F16;
  --g700: #16301F;
  /* Dorado tierra */
  --gold: #C8A165;
  --gold-2: #D8B982;            /* hover del dorado */
  --gold-ink: #7A5D33;          /* dorado para texto pequeño sobre claro (AA) */
  /* Neutros */
  --n800: #2B2B2B;
  --n600: #5E584E;              /* texto secundario sobre claro (AA) */
  --n500: #7D766A;
  --n200: #E4DED2;
  --n100: #EFEBE2;
  --n050: #F7F5F0;
  --white: #FFFFFF;
  --danger: #9A4432;
  --offer: #93300F;             /* 'Precio oferta' de los masterplan */

  --cream-80: rgba(247, 245, 240, .82);
  --cream-70: rgba(247, 245, 240, .72);
  --cream-55: rgba(247, 245, 240, .58);
  --line-dark: rgba(247, 245, 240, .14);
  --line-light: rgba(10, 20, 14, .12);

  --serif: "Cormorant Garamond", "Cormorant Fallback", Garamond, "Times New Roman", serif;
  --sans: "Mulish", "Mulish Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.25, .46, .45, .94);

  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 16px;

  --nav-h: 76px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --shadow-card: 0 1px 2px rgba(10, 20, 14, .05), 0 18px 40px -22px rgba(10, 20, 14, .35);
}

/* =============================================================
   2. Reset y base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 74px;
  overflow-x: clip;
}
body {
  background: var(--g900);
  color: var(--g900);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; font-variant-numeric: lining-nums; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--g900); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
.light :focus-visible, .cream :focus-visible, .visit-form :focus-visible, .sim :focus-visible, .plan-cats :focus-visible, .plan-legend :focus-visible, .plan-list :focus-visible, .plan-zoom :focus-visible { outline-color: var(--gold-ink); }

[hidden] { display: none !important; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* =============================================================
   3. Utilidades
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 999;
  padding: .7rem 1.1rem; background: var(--gold); color: var(--g900);
  font-weight: 700; border-radius: var(--r-sm);
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.i { width: 1.25em; height: 1.25em; flex: none; }

/* =============================================================
   4. Tipografía
   ============================================================= */
.kicker {
  font-family: var(--sans); font-size: .74rem; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase; color: var(--gold-ink);
  margin-bottom: 1rem;
}
.dark .kicker, .hero .kicker, .lot-panel .kicker, .sim-result .kicker, .plan-preventa .kicker { color: var(--gold); }
h2 { font-size: clamp(2.35rem, 5.2vw, 4.3rem); }
h2 em, h1 em, .footer-claim em { font-style: italic; color: var(--gold-ink); }
.dark h2 em, .hero h1 em, .footer-claim em { color: var(--gold); }
.lead { font-size: clamp(1.04rem, 1.35vw, 1.2rem); line-height: 1.6; color: var(--n600); max-width: 60ch; }
.dark .lead { color: var(--cream-70); }

/* =============================================================
   5. Componentes
   ============================================================= */
/* --- Botones: al pasar el cursor aparece un marco dorado, como el del isotipo --- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .8em 1.35em;
  font: 700 .93rem/1.1 var(--sans); letter-spacing: .01em; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--r-sm);
  transition: background-color .3s var(--ease-soft), color .3s var(--ease-soft), border-color .3s var(--ease-soft), transform .35s var(--ease-out);
}
.btn .i { width: 1.15em; height: 1.15em; transition: transform .35s var(--ease-out); }
.btn::after {
  content: ""; position: absolute; inset: -5px; pointer-events: none;
  border: 1px solid var(--gold); border-radius: calc(var(--r-sm) + 3px);
  opacity: 0; transform: scale(.94);
  transition: opacity .3s var(--ease-soft), transform .45s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
@media (hover: hover) {
  .btn:hover::after { opacity: .85; transform: scale(1); }
  .btn:hover .i-go { transform: translateX(3px); }
}
.btn-gold { background: var(--gold); color: var(--g900); }
.btn-gold:hover { background: var(--gold-2); }
.btn-dark { background: var(--g900); color: var(--n050); }
.btn-dark:hover { background: var(--g700); }
.btn-ghost { background: transparent; color: inherit; border-color: rgba(247, 245, 240, .38); }
.btn-ghost:hover { background: rgba(247, 245, 240, .08); border-color: rgba(247, 245, 240, .6); }
.btn-line { background: transparent; color: var(--g900); border-color: rgba(10, 20, 14, .22); }
.btn-line:hover { background: var(--n100); border-color: rgba(10, 20, 14, .38); }
.btn-lg { min-height: 56px; padding: 1em 1.6em; font-size: 1rem; }
.btn-sm { min-height: 40px; padding: .55em 1.05em; font-size: .86rem; }
.btn-sm::after { inset: -4px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: inherit; border: 1px solid currentColor; border-color: rgba(128, 128, 128, .35);
  transition: background-color .25s, border-color .25s;
}
.icon-btn:hover { background: rgba(200, 161, 101, .14); border-color: var(--gold); }

.badge {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  padding: .42rem .8rem; border-radius: 999px;
  font: 700 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  background: rgba(10, 20, 14, .72); color: var(--n050);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.badge-gold { background: var(--gold); color: var(--g900); }

.pill {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .38rem .7rem; border-radius: 999px;
  font: 700 .68rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  background: rgba(200, 161, 101, .18); color: var(--gold);
}
.pill[data-estado="reservada"] { background: rgba(228, 222, 210, .14); color: var(--n200); }
.pill[data-estado="vendida"] { background: rgba(247, 245, 240, .08); color: var(--cream-55); }

.ticks { display: grid; gap: .7rem; }
.ticks li { display: flex; gap: .7rem; align-items: flex-start; }
.ticks .i { color: var(--gold); margin-top: .12em; }

/* --- Formularios --- */
.field { display: grid; gap: .45rem; min-width: 0; }
.field label, .field .label { font-size: .86rem; font-weight: 700; color: var(--g900); display: flex; justify-content: space-between; gap: 1rem; }
.field label small, .field .label small { font-weight: 400; color: var(--n600); }
.field output { font-weight: 700; color: var(--g900); font-variant-numeric: tabular-nums; }
.field-head, .range-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.field-head output { font-size: .86rem; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="date"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7rem .9rem;
  background-color: var(--white); color: var(--g900);
  border: 1px solid #8C8474; border-radius: var(--r-sm);
  font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-ink); box-shadow: 0 0 0 3px rgba(200, 161, 101, .3);
}
select {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%237A5D33' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px;
  padding-right: 2.6rem !important; cursor: pointer;
}
.error { display: none; font-size: .8rem; font-weight: 600; color: var(--danger); }
.has-error .error, .error.is-shown { display: block; }
.has-error input, .has-error select { border-color: var(--danger); }

/* Segmentado (radios) */
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid #8C8474; border-radius: 999px; background: var(--white); width: fit-content; max-width: 100%; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: .55rem 1rem; border-radius: 999px; font-size: .88rem; font-weight: 700; color: var(--n600); transition: background-color .25s, color .25s; }
.seg input:checked + span { background: var(--g900); color: var(--n050); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.field .seg label { display: block; }
.seg-4 { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; }
.seg-4 span { text-align: center; padding-inline: .4rem; }
.visit-form .seg { flex-wrap: nowrap; width: 100%; }
.visit-form .seg label { flex: 1 1 auto; min-width: 0; }
.visit-form .seg span { padding-inline: .5rem; text-align: center; }

/* Rango personalizado */
input[type="range"] {
  --p: 50%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--track-fill, var(--g700)) var(--p), var(--track, #B9B1A2) var(--p));
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--track, #B9B1A2); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--track-fill, var(--g700)); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%;
  background: var(--thumb, var(--g900)); border: 3px solid var(--gold); box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--thumb, var(--g900)); border: 3px solid var(--gold); box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
input[type="range"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* =============================================================
   6. Secciones
   ============================================================= */
.section { position: relative; padding-block: var(--section-y); }
.light { background: var(--n050); color: var(--g900); }
.cream { background: var(--n100); color: var(--g900); }
.dark { background: var(--g900); color: var(--n050); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 780px; }
.section-head h2 { margin-bottom: 1.2rem; }

/* ---------------- NAV ---------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 80; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-inline: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))); color: var(--n050);
  transition: background-color .4s var(--ease-soft), box-shadow .4s var(--ease-soft), height .4s var(--ease-out);
}
.nav::before {
  content: ""; position: absolute; inset: 0 0 -30px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 13, 9, .75), rgba(6, 13, 9, 0));
  transition: opacity .4s;
}
.nav.is-solid { background: rgba(10, 20, 14, .94); box-shadow: 0 1px 0 var(--line-dark); height: 66px; }
@supports (backdrop-filter: blur(10px)) {
  .nav.is-solid { background: rgba(10, 20, 14, .82); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
}
.nav.is-solid::before { opacity: 0; }
.nav-left { display: flex; align-items: center; gap: .9rem; min-width: 0; flex: none; }
.proposal-tag {
  padding: .42rem .7rem; border: 1px solid rgba(200, 161, 101, .55); border-radius: 999px;
  font: 700 .64rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); white-space: nowrap;
}
.pt-long { display: none; }
.brand { display: flex; align-items: center; gap: .75rem; flex: none; }
.brand img { width: 52px; height: auto; }
.brand-word { display: none; font-family: var(--serif); font-size: 1.55rem; font-weight: 600; line-height: .9; letter-spacing: .01em; }
.brand-word small { display: block; margin-top: .3rem; font: 700 .5rem/1 var(--sans); letter-spacing: .38em; text-transform: uppercase; color: var(--gold); }
.nav-links { display: none; gap: clamp(1.1rem, 2vw, 2rem); }
.nav-links a { position: relative; white-space: nowrap; font-size: .9rem; font-weight: 600; color: var(--cream-80); padding-block: .4rem; transition: color .25s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav-links a:hover, .nav-links a.is-current { color: var(--n050); }
.nav-links a:hover::after, .nav-links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.nav-portal { display: none; align-items: center; gap: .45rem; white-space: nowrap; font-size: .88rem; font-weight: 700; color: var(--cream-80); padding: .5rem .2rem; }
.nav-portal:hover { color: var(--gold); }
/* "Mi compra" aún no está disponible (pedido del cliente): etiqueta "Próximamente" */
.pronto { display: inline-block; margin-left: .45rem; padding: .16rem .45rem; border: 1px solid currentColor; border-radius: 999px; font: 800 .56rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; vertical-align: .14em; opacity: .8; }
.kicker .pronto { margin-left: .6rem; color: var(--gold); opacity: 1; }
.nav-portal .pronto { margin-left: .1rem; }
.phone-pronto { position: absolute; top: 18%; left: 50%; z-index: 3; transform: translateX(-50%) rotate(-6deg); padding: .45rem 1rem; border-radius: 999px; background: var(--gold); color: var(--g900); font: 800 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6); white-space: nowrap; }
.nav-portal .i { color: var(--gold); width: 1.1em; height: 1.1em; }
.nav .btn-sm { display: none; }
.nav-toggle { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(247, 245, 240, .3); color: var(--n050); }
.nav-toggle .i { width: 22px; height: 22px; }

/* ---------------- MENÚ MÓVIL ---------------- */
.menu {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0;
  background: var(--g900); color: var(--n050);
}
.menu::backdrop { background: rgba(6, 13, 9, .6); }
.menu[open] { animation: menuIn .45s var(--ease-out); }
.menu-inner { min-height: 100%; display: flex; flex-direction: column; padding: 14px var(--gutter) calc(28px + env(safe-area-inset-bottom)); }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: 62px; margin-bottom: 2rem; }
.menu-top img { width: 50px; }
.menu-links { display: grid; gap: .2rem; margin-bottom: auto; }
.menu-links a {
  font-variant-numeric: lining-nums;
  font-family: var(--serif); font-size: clamp(2rem, 9vw, 2.6rem); font-weight: 500; line-height: 1.25;
  padding-block: .2rem; border-bottom: 1px solid var(--line-dark);
}
.menu[open] .menu-links a { animation: menuLink .6s var(--ease-out) both; }
.menu[open] .menu-links a:nth-child(2) { animation-delay: .04s; }
.menu[open] .menu-links a:nth-child(3) { animation-delay: .08s; }
.menu[open] .menu-links a:nth-child(4) { animation-delay: .12s; }
.menu[open] .menu-links a:nth-child(5) { animation-delay: .16s; }
.menu[open] .menu-links a:nth-child(6) { animation-delay: .2s; }
.menu[open] .menu-links a:nth-child(7) { animation-delay: .24s; }
.menu-cta { display: grid; gap: .7rem; margin-top: 2rem; }

/* ---------------- HERO ---------------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 2.5rem) var(--gutter) clamp(9rem, 22vh, 13rem);
  color: var(--n050); background: var(--g900);
}
.hero-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; }

/* En pantallas verticales el paisaje baja y el volcán queda junto a los botones */
@media (max-aspect-ratio: 1/1) {
  .hero {
    background: radial-gradient(90% 45% at 85% 78%, rgba(200, 161, 101, .1), transparent 70%), #060D09;
    padding-bottom: calc(clamp(440px, 58vh, 600px) * .52);
    padding-bottom: calc(clamp(440px, 58svh, 600px) * .52);
  }
}
.hero-grain {
  position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 13, 9, .55) 0%, rgba(6, 13, 9, .1) 38%, rgba(6, 13, 9, 0) 60%),
    linear-gradient(0deg, var(--g900) 0%, var(--g900) 7%, rgba(10, 20, 14, 0) 32%);
}
.hero-inner { width: 100%; max-width: 1240px; margin-inline: auto; }
.hero-kicker { margin-bottom: 1.4rem; animation: fadeUp .9s var(--ease-out) .15s both; }
.hero-title { font-size: clamp(2.85rem, 8.4vw, 7.2rem); font-weight: 500; line-height: .93; letter-spacing: -.02em; max-width: 13ch; }
.hero-title .line { display: block; overflow: hidden; padding: 0 .08em .09em 0; margin-bottom: -.09em; }
.hero-title .line > span { display: inline-block; animation: lineUp 1.2s var(--ease-out) .25s both; }
.hero-title .line + .line > span { animation-delay: .38s; }
.hero-sub { margin-top: 1.6rem; max-width: 52ch; font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--cream-80); animation: fadeUp 1s var(--ease-out) .6s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; animation: fadeUp 1s var(--ease-out) .78s both; }

/* Capas del paisaje */

.stars { fill: var(--n050); }
.stars .tw { animation: twinkle 4.8s ease-in-out infinite alternate; }
.stars .tw:nth-child(3n) { animation-duration: 6.2s; animation-delay: 1.2s; }
.hero .furrow { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s var(--ease-out) forwards; }
.hero .furrow:nth-child(1) { animation-delay: .9s; }
.hero .furrow:nth-child(2) { animation-delay: 1.02s; }
.hero .furrow:nth-child(3) { animation-delay: 1.14s; }
.hero .furrow:nth-child(4) { animation-delay: 1s; }
.hero .furrow:nth-child(5) { animation-delay: 1.12s; }
.hero .furrow:nth-child(6) { animation-delay: 1.24s; }

.trust {
  max-width: 1120px; margin: 1.6rem auto 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem;
  color: var(--cream-70); font-size: .88rem; font-weight: 600;
}
.trust li { display: flex; align-items: center; gap: .5rem; }
.trust .i { color: var(--gold); width: 1.05em; height: 1.05em; }

/* ---------------- PLANO ---------------- */
.plan-section { background: radial-gradient(120% 70% at 85% 0%, rgba(200, 161, 101, .09), transparent 60%), var(--g900); }
.plan { background: var(--g800); border: 1px solid var(--line-dark); border-radius: var(--r-lg); padding: clamp(.8rem, 1.6vw, 1.4rem); }
.plan-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; }
.plan-bar-end { display: flex; align-items: center; gap: .6rem; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(247, 245, 240, .06); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem 1.05rem; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--cream-70); white-space: nowrap; transition: background-color .3s, color .3s; }
.tab small { font: 700 .66rem/1 var(--sans); letter-spacing: .04em; color: var(--gold); }
.tab:hover { color: var(--n050); }
.tab[aria-selected="true"] { background: var(--n050); color: var(--g900); }
.tab[aria-selected="true"] small { color: var(--gold-ink); }
.view-toggle { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(247, 245, 240, .06); }
.view-toggle button { display: flex; align-items: center; gap: .4rem; min-height: 40px; padding: .5rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 700; color: var(--cream-70); }
.view-toggle button .i { width: 1.05em; height: 1.05em; }
.view-toggle button.is-on { background: rgba(200, 161, 101, .2); color: var(--gold-2); }
.plan-360 { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .5rem .95rem; border-radius: 999px; border: 1px solid rgba(200, 161, 101, .45); font-size: .85rem; font-weight: 700; color: var(--gold); transition: background-color .3s; }
.plan-360 .i { width: 1.15em; height: 1.15em; }
.plan-360:hover { background: rgba(200, 161, 101, .14); }
.link-btn { font: inherit; font-weight: 700; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; padding: 0; }

/* Filtros */
.plan-filters { display: grid; gap: .8rem; margin-block: 1rem; color: var(--n050); }
.plan-filters-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.plan-summary { font-size: .9rem; color: var(--cream-80); }
.plan-summary .link-btn { margin-left: .35rem; font-size: .86rem; }
.filters-toggle { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--line-dark); font-size: .86rem; font-weight: 700; color: var(--n050); flex: none; }
.filters-toggle .i { width: 1.1em; height: 1.1em; color: var(--gold); }
.filters-toggle [data-filter-count] { color: var(--gold); }
.filters-toggle[aria-expanded="true"] { background: rgba(247, 245, 240, .08); }
.filter-fields { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; }
.js .plan-filters:not(.is-open) .filter-fields { display: none; }
.status-filter { display: flex; flex-wrap: wrap; gap: .4rem; border: 0; padding: 0; }
.st { position: relative; cursor: pointer; }
.st input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.st span {
  display: flex; align-items: center; gap: .45rem; min-height: 44px; padding: .45rem .85rem; border-radius: 999px;
  border: 1px solid var(--line-dark); font-size: .82rem; font-weight: 700; color: var(--cream-55);
  transition: border-color .25s, color .25s, background-color .25s;
}
.st span::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--sw); box-shadow: var(--sws, none); opacity: .45; transition: opacity .25s; }
.st input:checked + span { color: var(--n050); border-color: rgba(247, 245, 240, .35); background: rgba(247, 245, 240, .06); }
.st input:checked + span::before { opacity: 1; }
.st input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.st-disponible { --sw: #FFFFFF; --sws: inset 0 0 0 3px var(--gold); }
.st-reservada { --sw: repeating-linear-gradient(135deg, #CFC7B8 0 2px, #EFEBE2 2px 4px); }
.st-vendida { --sw: #A8A8A8; }
.range { display: grid; gap: .1rem; min-width: 210px; flex: 1 1 210px; max-width: 340px; }
.range label { font-size: .8rem; font-weight: 700; color: var(--cream-70); }
.range output { font-size: .8rem; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.plan .range input { --track: rgba(247, 245, 240, .16); --track-fill: var(--gold); --thumb: var(--g900); }

/* Escenario del plano */
.plan-body { display: grid; gap: 1rem; }
.plan-stage { position: relative; align-self: start; background: #1A2317; border-radius: var(--r-md); overflow: hidden; overflow: clip; min-width: 0; color: var(--g900); }
.plan-view { position: relative; overflow: hidden; overflow: clip; min-width: 0; }
.plan-canvas { position: relative; overflow: hidden; overflow: clip; min-width: 0; touch-action: pan-y; -webkit-user-select: none; user-select: none; min-height: 200px; }
/* Terreno: una textura que se dibuja una sola vez, no en cada cuadro de zoom */
.plan-canvas { background: #1A2317 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.014' numOctaves='4' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.12  0 0 0 0 0.17  0 0 0 0 0.09  1.4 0 0 0 -0.45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' fill='%231A2317'/%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E") 0 0 / 420px 420px; }
.pl-halo { fill: none; stroke: #000; vector-effect: non-scaling-stroke; stroke-linejoin: round; transform: translateY(2px); pointer-events: none; }
.pl-halo-a { stroke-width: 14; stroke-opacity: .12; }
.pl-halo-b { stroke-width: 6; stroke-opacity: .22; }
.plan-canvas svg { display: block; width: 100%; height: 100%; }
.plan-canvas.is-zoomed { cursor: grab; }
.plan-canvas.is-dragging { cursor: grabbing; }
.plan-canvas.is-dragging .lot { pointer-events: none; }
.skip-plan { position: absolute; left: .75rem; top: 4.2rem; z-index: 6; padding: .5rem .8rem; border-radius: var(--r-md); background: var(--gold); color: var(--g900); font-weight: 700; font-size: .85rem; transform: translateY(-200%); opacity: 0; }
.skip-plan:focus { transform: none; opacity: 1; }

/* Barra de precios (filtra por categoría) */
.plan-cats { display: flex; align-items: center; gap: .6rem .9rem; padding: .7rem .8rem; background: #EFEBE2; border-bottom: 1px solid rgba(10, 20, 14, .12); overflow-x: auto; scrollbar-width: none; }
.plan-cats::-webkit-scrollbar { display: none; }
.plan-cats .pl-title { flex: none; display: inline-block; padding: .38rem .7rem; border-radius: var(--r-sm); background: var(--offer); color: #FFFFFF; font: 700 .86rem/1 var(--serif); letter-spacing: .06em; text-transform: uppercase; }
.pl-cats { display: flex; gap: .45rem; }
.pl-cat {
  flex: none; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .35rem .8rem .35rem .55rem;
  border-radius: 999px; background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(10, 20, 14, .1); color: var(--n600);
  font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; transition: box-shadow .2s, background-color .2s;
}
.pl-cat .sw { width: 16px; height: 16px; border-radius: 50%; background: var(--c); flex: none; }
.pl-cat .pl-price { display: inline-flex; align-items: baseline; gap: .3rem; white-space: nowrap; }
.pl-cat s { color: #6B665D; font-size: .74rem; }
.pl-cat b { color: var(--offer); font-weight: 800; font-size: .92rem; }
.pl-cat small { font-size: .72rem; font-weight: 700; color: var(--n600); white-space: nowrap; }
.pl-cat:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--c); }
.pl-cat[aria-pressed="true"] { background: var(--g900); box-shadow: inset 0 0 0 2px var(--c); color: var(--cream-80); }
.pl-cat[aria-pressed="true"] b { color: #FFFFFF; }
.pl-cat[aria-pressed="true"] s, .pl-cat[aria-pressed="true"] small { color: var(--cream-70); }
.pl-cat:disabled { opacity: .55; cursor: default; }
.pl-cat:disabled small { padding: .1rem .4rem; border-radius: 3px; background: rgba(10, 20, 14, .08); letter-spacing: .06em; text-transform: uppercase; font-size: .62rem; }
.pl-cat:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 2px; }

/* Controles de zoom, aviso y estado vacío */
.plan-zoom {
  position: absolute; right: .75rem; bottom: .75rem; z-index: 3;
  display: grid; grid-auto-flow: column; overflow: hidden; border-radius: 10px;
  background: rgba(247, 245, 240, .9); box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .6), 0 0 0 1px rgba(10, 20, 14, .08);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
html:not(.js) .plan-zoom { display: none; }
.plan-zoom button { display: grid; place-items: center; width: 40px; height: 40px; color: var(--g900); transition: background-color .2s, opacity .2s; }
.plan-zoom button + button { border-left: 1px solid rgba(10, 20, 14, .1); }
.plan-zoom button:hover:not(:disabled) { background: rgba(200, 161, 101, .22); }
.plan-zoom button:disabled { opacity: .32; cursor: default; }
.plan-zoom button:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: -3px; }
.plan-zoom .i { width: 20px; height: 20px; }
@media (pointer: coarse) { .plan-zoom button { width: 44px; height: 44px; } }
.plan-hint {
  position: absolute; left: 50%; top: .75rem; z-index: 3; transform: translateX(-50%); white-space: nowrap;
  padding: .45rem .8rem; border-radius: 999px; background: rgba(10, 20, 14, .8); color: var(--n050);
  font-size: .76rem; font-weight: 700; line-height: 1.3; pointer-events: none;
}
.plan-hint { transition: opacity .4s; }
.plan-hint.is-fading { opacity: 0; }
.plan-empty {
  position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: .8rem;
  background: rgba(10, 20, 14, .55); color: var(--n050); text-align: center; font-weight: 700;
}
.plan-tip {
  position: absolute; z-index: 4; pointer-events: none;
  padding: .5rem .7rem; border-radius: var(--r-md); background: var(--g900); color: var(--n050);
  font-size: .8rem; font-weight: 700; white-space: nowrap; line-height: 1.35;
  transform: translate(-50%, calc(-100% - 12px)); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5);
}
.plan-tip small { display: block; font-weight: 600; color: var(--cream-70); }
.plan-tip::after { content: ""; position: absolute; left: calc(50% + var(--ax, 0px)); bottom: -5px; width: 10px; height: 10px; background: var(--g900); transform: translateX(-50%) rotate(45deg); }
.plan-tip.is-below { transform: translate(-50%, 12px); }
.plan-tip.is-below::after { top: -5px; bottom: auto; }
.noscript { padding: 3rem 1.5rem; text-align: center; color: var(--cream-70); }

/* Plano SVG: lotes */
.lot {
  cursor: pointer; fill: var(--c); fill-opacity: .8; stroke: rgba(255, 255, 255, .85); stroke-width: 1.2; stroke-linejoin: miter; stroke-miterlimit: 8;
  vector-effect: non-scaling-stroke; transition: fill-opacity .3s var(--ease-soft), opacity .35s var(--ease-soft);
}
.lot.st-vendida { fill-opacity: .7; }
.lot:hover { fill-opacity: 1; stroke: #FFFFFF; stroke-width: 2.4; }
.lot:focus { outline: none; }
.lot:focus-visible { fill-opacity: 1; }
.lot-focus { fill: none; pointer-events: none; vector-effect: non-scaling-stroke; stroke-linejoin: miter; }
.lot-focus-o { stroke: #0A140E; stroke-width: 6; }
.lot-focus-i { stroke: #FFFFFF; stroke-width: 2.5; }
.pin .pin-p { font-size: 9.5px; font-weight: 800; fill: #0A140E; paint-order: stroke; stroke: rgba(255, 255, 255, .92); stroke-width: 3px; display: none; }
.is-roomy .pin .pin-p { display: inline; }
.lot.is-active { fill-opacity: 1; stroke: #FFFFFF; stroke-width: 3; }
.lot.is-dim { opacity: .22; pointer-events: none; }
.lot-ring { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-dasharray: 7 5; vector-effect: non-scaling-stroke; pointer-events: none; animation: ants 1.2s linear infinite; }
/* Pins de tamaño fijo en pantalla (la escala --u la fija el zoom) */
.pin { pointer-events: none; transform-box: view-box; transform-origin: 0 0; transition: opacity .3s var(--ease-soft); }
.pin text { font-family: var(--sans); font-weight: 800; text-anchor: middle; dominant-baseline: central; }
.pin .pin-sh { fill: rgba(0, 0, 0, .28); }
.pin .pin-b { fill: #FFFFFF; stroke: var(--c, #C8A165); stroke-width: 3; }
.pin .pin-t { font-size: 12px; fill: #0A140E; }
.pin-reservada .pin-b { stroke: #8C8474; stroke-dasharray: 3 2; }
.pin-reservada .pin-t { fill: #5E584E; }
.pin-vendida .pin-b { fill: rgba(40, 44, 40, .55); stroke: rgba(255, 255, 255, .8); stroke-width: 1; }
.pin-vendida .pin-v { font-size: 10px; fill: #FFFFFF; }
.pin-vendida .pin-t { font-size: 10.5px; font-weight: 700; fill: #FFFFFF; }
.pin.is-active .pin-b { stroke: var(--gold); stroke-width: 3.5; }
.pin-vendida.is-active .pin-b { fill: rgba(10, 20, 14, .75); stroke: var(--gold); stroke-width: 2; }
.pin.is-dim { opacity: .25; }
.pin-fav { opacity: 0; transition: opacity .25s; }
.pin-fav circle { fill: var(--gold); stroke: #0A140E; stroke-width: 1.2; }
.pin-fav path { fill: #0A140E; }
.pin.is-fav .pin-fav { opacity: 1; }
.is-dense .pin-vendida { display: none; }
/* Formato estándar de planos: mismas piezas en todos los proyectos */
.pl-predio { fill: #A2A3A1; }
.pl-limite { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.pl-servidumbre { fill: #F3D3AE; stroke: #5E4E3C; stroke-width: 1; stroke-dasharray: 3 2; vector-effect: non-scaling-stroke; stroke-linejoin: miter; }
.pl-via-borde { fill: none; stroke: #5E4E3C; stroke-width: 9; stroke-dasharray: calc(var(--u, 1) * 4) calc(var(--u, 1) * 3); stroke-linejoin: round; }
.pl-via { fill: none; stroke: #F3D3AE; stroke-width: 7; stroke-linejoin: round; stroke-linecap: square; }
.pl-principal-borde { fill: none; stroke: #5E4E3C; stroke-width: 15; stroke-dasharray: calc(var(--u, 1) * 5) calc(var(--u, 1) * 3); }
.pl-principal { fill: none; stroke: #EFE6D2; stroke-width: 12.5; }
.pl-agua { stroke: rgba(255, 255, 255, .55); stroke-width: .8; }

/* Leyenda estándar bajo el plano */
.plan-legend { display: grid; gap: .8rem; padding: .9rem 1rem 1rem; background: #EFEBE2; color: var(--g900); border-top: 1px solid rgba(10, 20, 14, .12); }
.pl-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .6rem 1rem; }
.pl-kicker { font: 700 .64rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); }
.pl-name { margin-top: .3rem; font: 600 1.4rem/1.05 var(--serif); color: var(--g900); }
.pl-stats { display: flex; flex-wrap: wrap; gap: .35rem; }
.pl-stats span { padding: .3rem .65rem; border-radius: 999px; background: #FFFFFF; font-size: .75rem; font-weight: 600; color: var(--n600); box-shadow: inset 0 0 0 1px rgba(10, 20, 14, .08); }
.pl-stats b { color: var(--g900); font-weight: 800; }
.pl-symbols { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; padding-top: .75rem; border-top: 1px solid rgba(10, 20, 14, .12); }
.pl-symbols li { display: flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 600; color: var(--n600); }
.plan-legend .sw { width: 16px; height: 16px; border-radius: 50%; background: var(--c); flex: none; }
.plan-legend .sw-reservada { border-radius: 3px; background: repeating-linear-gradient(135deg, #8C8474 0 2px, #E9E3D7 2px 5px); }
.plan-legend .sw-servidumbre { width: 24px; height: 9px; border-radius: 2px; background: #F3D3AE; border: 1px dashed #5E4E3C; }
.plan-legend .sw-principal { width: 24px; height: 11px; border-radius: 2px; background: #EFE6D2; border: 1px dashed #5E4E3C; }
.plan-legend .sw-agua { width: 24px; height: 7px; border-radius: 4px; background: #3E9FD6; }
.sym { display: inline-grid; place-items: center; flex: none; font: 800 .62rem/1 var(--sans); font-style: normal; }
.sym-disp { width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; color: var(--g900); box-shadow: inset 0 0 0 2.5px var(--gold), 0 1px 2px rgba(0, 0, 0, .25); }
.sym-v { height: 18px; padding: 0 .45rem; border-radius: 9px; background: #5F615E; color: #FFFFFF; font-size: .7rem; letter-spacing: .04em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8); }
.sym-fav { width: 16px; height: 16px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px #0A140E; }
.sym-fav svg { width: 11px; height: 11px; fill: #0A140E; }

/* Lista */
.plan-list { background: var(--n050); max-height: 560px; overflow: auto; }
.lot-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.lot-table th {
  position: sticky; top: 0; z-index: 1; background: var(--n100); text-align: left;
  font: 700 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--n600);
  padding: 0 .9rem;
}
.lot-table th button { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; padding: 0; white-space: nowrap; }
.lot-table th button:hover { color: var(--g900); }
.lot-table td { padding: .55rem .9rem; border-top: 1px solid var(--n200); font-variant-numeric: tabular-nums; }
.lot-table tr { cursor: pointer; transition: background-color .2s; }
.lot-table tbody tr:hover, .lot-table tr.is-active { background: rgba(200, 161, 101, .14); }
.lot-table .t-num { font-weight: 700; white-space: nowrap; }
.lot-table .t-price { font-weight: 700; white-space: nowrap; }
.lot-table .t-sector { color: var(--n600); }
.lot-table .t-sector s { color: var(--n600); }
.lot-table .t-muted { color: var(--n600); font-weight: 600; }
.lot-table .t-cat { display: inline-block; width: 10px; height: 10px; margin-right: .45rem; border-radius: 50%; background: var(--c); vertical-align: 0; }
.lot-table .dot { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .82rem; }
.lot-table .dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--sw, #C8A165); }
.lot-table .dot.st-disponible { --sw: #C8A165; }
.lot-table .dot.st-reservada { --sw: #BDB4A4; }
.lot-table .dot.st-vendida { --sw: #A8A8A8; }
.lot-table .t-sel { text-align: right; }
.lot-table .t-sel button { min-width: 44px; min-height: 44px; font-weight: 700; font-size: .84rem; color: var(--gold-ink); padding: .3rem .4rem; }
.lot-table .t-fav { color: var(--gold-ink); }
.lot-table .t-fav .i { --heart-fill: var(--gold); width: 1em; height: 1em; display: inline-block; vertical-align: -2px; }
.list-empty { padding: 2.5rem 1rem; text-align: center; color: var(--n600); }
.list-empty .link-btn { color: var(--gold-ink); }

/* Panel de detalle (en móvil, hoja inferior) */
.sheet-backdrop { position: fixed; inset: 0; z-index: 94; background: rgba(5, 10, 7, .28); }
.lot-panel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  max-height: 52vh; overflow: auto; overscroll-behavior: contain; padding: 1.6rem var(--gutter) calc(1.2rem + env(safe-area-inset-bottom));
  background: var(--g900); color: var(--n050); border-top: 1px solid rgba(200, 161, 101, .4);
  border-radius: 20px 20px 0 0; box-shadow: 0 -30px 60px -20px rgba(0, 0, 0, .6);
  transform: translateY(105%); transition: transform .45s var(--ease-out), max-height .35s var(--ease-out), visibility 0s .45s; visibility: hidden;
}
.lot-panel.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease-out), max-height .35s var(--ease-out); }
.lot-panel.is-expanded { max-height: 86vh; }
.lot-panel:not(.is-expanded) .lot-facts, .lot-panel:not(.is-expanded) .lot-sim, .lot-panel:not(.is-expanded) .lot-pago { display: none; }
.lot-panel:focus { outline: none; }
.sheet-grab { position: absolute; top: -1.35rem; left: 50%; width: 88px; height: 26px; transform: translateX(-50%); touch-action: none; cursor: grab; }
.sheet-grab::before { content: ""; position: absolute; left: 50%; top: 9px; width: 40px; height: 5px; border-radius: 3px; background: rgba(247, 245, 240, .35); transform: translateX(-50%); }
.lot-panel .lot-empty { display: none; }
.lot-empty { text-align: left; }
.lot-empty-icon { width: 34px; height: 34px; color: var(--gold); margin-bottom: 1rem; }
.lot-empty h3 { font-size: 2rem; margin-bottom: .6rem; }
.lot-empty p { color: var(--cream-70); font-size: .95rem; }
.lot-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1.4rem; }
.lot-stats div { padding: .9rem 1rem; border: 1px solid var(--line-dark); border-radius: var(--r-md); }
.lot-stats dt { font: 700 .64rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--cream-55); }
.lot-stats dd { margin-top: .45rem; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; line-height: 1; color: var(--gold); font-variant-numeric: lining-nums; }
.lot-short { margin-top: 1.4rem; }
.lot-empty .lot-short-title { font: 700 .64rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--cream-55); margin-bottom: .6rem; }
.lot-short-list, .lot-alts { display: grid; gap: .4rem; }
.lot-pick {
  display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 44px; padding: .45rem .8rem;
  border-radius: 10px; border: 1px solid var(--line-dark); color: var(--n050); font-size: .9rem; font-weight: 700; text-align: left;
  transition: border-color .2s, background-color .2s;
}
.lot-pick .sw { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); flex: none; }
.lot-pick b { margin-left: auto; color: var(--gold); font-variant-numeric: tabular-nums; }
.lot-pick:hover { border-color: rgba(200, 161, 101, .6); background: rgba(200, 161, 101, .08); }
.lot-alts { margin-top: .9rem; }
.lot-help { display: grid; gap: .8rem; justify-items: start; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line-dark); }
.lot-help p { color: var(--cream-70); font-size: .92rem; }
.lot-help .i { color: var(--gold); }
.lot-detail { position: relative; }
.lot-close { position: absolute; top: -.3rem; right: 0; color: var(--n050); }
.lot-detail .kicker { margin-bottom: .45rem; }
.lot-title { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .9rem; padding-right: 3.2rem; }
.lot-title h3 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 600; }
.lot-sector { color: var(--cream-70); font-size: .92rem; margin-top: .3rem; }
.lot-sector s { color: var(--cream-55); }
.lot-price { margin-top: .7rem; font-size: clamp(1.8rem, 3.2vw, 2.2rem); font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--n050); line-height: 1.1; }
.lot-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1.1rem; }
.lot-actions .btn-gold { grid-column: 1 / -1; }
.lot-actions .btn { padding-inline: .9rem; }
.lot-detail.is-sold .lot-actions .btn:not([hidden]) { grid-column: 1 / -1; }
.lot-toast { margin-top: .7rem; font-size: .86rem; color: var(--cream-80); }
.lot-toast a { color: var(--gold); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.lot-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; margin-top: 1.2rem; padding-block: 1.1rem; border-block: 1px solid var(--line-dark); }
.lot-facts dt { font: 700 .62rem/1.25 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--cream-55); }
.lot-facts dd { margin-top: .3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.fav-btn[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); --heart-fill: var(--gold); }
.lot-detail.is-closed .btn-gold { background: rgba(247, 245, 240, .1); color: var(--n050); }
.lot-sim { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; min-height: 44px; font-size: .88rem; font-weight: 700; color: var(--gold); }
.lot-sim .i { width: 1em; height: 1em; transition: transform .3s var(--ease-out); }
.lot-sim:hover .i { transform: translateX(3px); }

/* Favoritos */
.favs {
  margin-top: 1rem; padding: .8rem 1rem; border-radius: var(--r-md); scroll-margin-top: calc(var(--nav-h) + 1rem);
  background: rgba(200, 161, 101, .1); border: 1px solid rgba(200, 161, 101, .35); color: var(--n050);
}
.favs-main { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; }
.favs-main p { display: flex; align-items: center; gap: .45rem; font-size: .92rem; }
.favs-main p .i { color: var(--gold); --heart-fill: var(--gold); }
.favs-list { display: flex; flex-wrap: wrap; gap: .35rem; flex: 1 1 200px; }
.fav-chip { min-height: 36px; padding: .3rem .75rem; border-radius: 999px; border: 1px solid rgba(200, 161, 101, .45); font-size: .82rem; font-weight: 700; color: var(--n050); }
.fav-chip:hover { background: rgba(200, 161, 101, .16); }
.favs-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.favs-undo { font-size: .9rem; color: var(--cream-80); }
.plan-note { margin-top: .9rem; font-size: .78rem; color: var(--cream-55); }

@media (max-width: 719px) {
  .plan-bar { gap: .6rem; }
  .plan-bar-end { width: 100%; justify-content: space-between; }
  .view-toggle button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .view-toggle button { min-width: 44px; min-height: 44px; justify-content: center; padding: .5rem .8rem; }
  .plan-list { max-height: none; overflow: visible; }
  .lot-table th { top: var(--nav-h); }
  body.sheet-open, html.sheet-lock { overflow: hidden; }
}
@media (max-width: 1279px) {
  .plan-cats { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 2rem; }
}
@media (max-width: 719px) {
  .plan-cats .pl-title { display: none; }
}
@media (min-width: 1280px) {
  .plan-cats { flex-wrap: wrap; overflow: visible; }
  .pl-cats { flex-wrap: wrap; }
}
@media (min-width: 720px) {
  .filters-toggle { display: none; }
  .js .plan-filters:not(.is-open) .filter-fields { display: flex; }
  .plan-filters { grid-template-columns: 1fr auto; align-items: center; }
  .plan-filters-head { order: 2; }
  .filter-fields { order: 1; }
  .plan-summary { text-align: right; }
}
@media (min-width: 960px) {
  .sheet-backdrop { display: none; }
  .sheet-grab { display: none; }
  .lot-panel:not(.is-expanded) .lot-facts, .lot-panel:not(.is-expanded) .lot-sim { display: revert; }
  .lot-panel:not(.is-expanded) .lot-facts { display: grid; }
  .lot-panel:not(.is-expanded) .lot-sim { display: inline-flex; }
  .lot-panel:not(.is-expanded) .lot-pago { display: block; }
  .plan-body { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; }
  .lot-panel {
    position: sticky; inset: auto; top: calc(var(--nav-h) + 1rem); z-index: auto; max-height: calc(100vh - var(--nav-h) - 2rem);
    transform: none; visibility: visible; border: 1px solid var(--line-dark); border-radius: var(--r-md); box-shadow: none; padding: 1.5rem;
    transition: none;
  }
  .lot-panel .lot-empty { display: block; }
  .lot-close { display: none; }
  /* Planos muy anchos (Puerto Varas): también con el detalle a la derecha; el plano baja de alto (layoutPlan) */
}
@media (min-width: 1280px) {
  .plan-body { grid-template-columns: minmax(0, 1fr) 360px; }
}

/* ---------------- PASOS ---------------- */
.steps { display: grid; gap: 2.2rem 1.8rem; counter-reset: s; }
.step { position: relative; align-content: start; padding-top: 1.5rem; border-top: 1px solid var(--n200); display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: start; }
.step::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out);
}
.step.is-visible::before, html:not(.js) .step::before { transform: scaleX(1); }
.step-n { grid-row: 1; font-family: var(--serif); font-size: 3.1rem; font-weight: 600; line-height: .8; color: var(--gold-ink); font-variant-numeric: lining-nums; }
.step-icon { grid-row: 1; justify-self: end; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--n200); color: var(--g700); background: var(--white); }
.step-icon .i { width: 22px; height: 22px; }
.step h3 { grid-column: 1 / -1; margin-top: 1.2rem; font-size: 1.7rem; font-weight: 600; }
.step p { grid-column: 1 / -1; margin-top: .5rem; color: var(--n600); max-width: 38ch; }

/* ---------------- PORTAL ---------------- */
.portal { overflow: clip; background: radial-gradient(60% 60% at 78% 55%, rgba(200, 161, 101, .14), transparent 70%), var(--g900); }
.portal-grid { display: grid; gap: 3.5rem; align-items: center; }
.portal-copy .lead { margin-block: 1.3rem 1.8rem; }
.portal-copy .ticks li { color: var(--cream-80); }
.portal-note { margin-top: 1.6rem; font-size: .84rem; color: var(--cream-55); }
.phone {
  position: relative; width: min(330px, 84vw); aspect-ratio: 9 / 18.6; margin-inline: auto;
  border-radius: 46px; padding: 11px; background: #121C15;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(247, 245, 240, .1), inset 0 0 0 1px rgba(200, 161, 101, .25);
  animation: float 8s ease-in-out infinite;
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 88px; height: 22px; border-radius: 20px; background: #121C15; transform: translateX(-50%); z-index: 2; }
.phone-screen {
  height: 100%; border-radius: 36px; overflow: hidden; background: var(--n050); color: var(--g900);
  padding: 3.2rem 1rem 1rem; display: flex; flex-direction: column; gap: .7rem; font-size: .76rem;
}
.ph-top { display: flex; align-items: center; gap: .5rem; }
.ph-top img { width: 36px; padding: 4px; border-radius: var(--r-md); background: var(--g900); }
.ph-top span { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.ph-card { background: var(--white); border-radius: 16px; padding: .9rem; box-shadow: 0 8px 20px -12px rgba(10, 20, 14, .35); }
.ph-label { font-weight: 700; font-size: .84rem; }
.ph-stage { color: var(--n600); margin-top: .1rem; }
.ph-bar { height: 6px; border-radius: 6px; background: var(--n100); margin-block: .6rem .7rem; overflow: hidden; }
.ph-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--g700), var(--gold)); }
.ph-steps { display: grid; gap: .32rem; }
.ph-steps li { display: flex; align-items: center; gap: .5rem; color: var(--n500); font-weight: 600; }
.ph-steps li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--n200); flex: none; }
.ph-steps li.done { color: var(--g900); }
.ph-steps li.done::before { background: var(--g700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%23F7F5F0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; border-color: var(--g700); }
.ph-steps li.now { color: var(--g900); font-weight: 700; }
.ph-steps li.now::before { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 3px rgba(200, 161, 101, .28); }
.ph-next { display: flex; gap: .6rem; align-items: center; padding: .75rem .8rem; border-radius: var(--r-md); background: var(--g900); color: var(--n050); }
.ph-next .i { color: var(--gold); width: 20px; height: 20px; }
.ph-next p { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-55); font-weight: 700; }
.ph-next strong { font-size: .8rem; }
.ph-docs li { display: flex; align-items: center; gap: .5rem; padding-block: .5rem; border-bottom: 1px solid var(--n200); font-weight: 700; }
.ph-docs .i { color: var(--gold-ink); width: 16px; height: 16px; }
.ph-btn { margin-top: auto; text-align: center; padding: .8rem; border-radius: var(--r-md); background: var(--g900); color: var(--n050); font-weight: 700; }

/* ---------------- SIMULADOR ---------------- */
.sim-grid > *, .visit-grid > *, .contact-list li > div { min-width: 0; }
.bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--n100); }
.bar span { flex: 0 0 0%; height: 100%; transition: flex-basis .6s var(--ease-out); }
.bar span + span { box-shadow: -2px 0 0 var(--white); }
.b-res { background: var(--gold); }
.b-pie { background: var(--gold-ink); }
.b-rest { background: var(--g700); }
.bar-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .8rem; font-weight: 700; color: var(--n600); }
.bar-legend li { display: flex; align-items: center; gap: .4rem; }
.bar-legend i { width: 10px; height: 10px; border-radius: 3px; }

/* ---------------- NOSOTROS ---------------- */
.about { overflow: clip; }
.about-mark { position: absolute; left: -8%; bottom: 4%; width: min(460px, 60vw); opacity: .045; pointer-events: none; }
.about-grid { position: relative; display: grid; gap: 3rem; }
.about-copy h2 { margin-bottom: 1.5rem; }
.about-copy p:not(.kicker) { color: var(--n600); font-size: 1.06rem; max-width: 56ch; }
.about-copy p + p { margin-top: 1rem; }
.values { display: grid; gap: 1.6rem 1.8rem; }
.value { padding-top: 1.3rem; border-top: 1px solid var(--n200); }
.value-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--g900); color: var(--gold); margin-bottom: 1rem; }
.value-icon .i { width: 22px; height: 22px; }
.value h3 { font-size: 1.75rem; font-weight: 600; margin-bottom: .4rem; }
.value p { color: var(--n600); }

/* ---------------- PREGUNTAS ---------------- */
.faq-grid { display: grid; gap: 2.5rem; }
.faq-head { margin-bottom: 0; }
.faq-head .lead { margin-bottom: 1.6rem; }
.faq details { border-bottom: 1px solid rgba(10, 20, 14, .14); }
.faq details:first-child { border-top: 1px solid rgba(10, 20, 14, .14); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.2rem;
  padding-block: 1.25rem; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.55rem); font-weight: 600; line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(10, 20, 14, .2);
  background:
    linear-gradient(var(--g900), var(--g900)) center / 12px 1.6px no-repeat,
    linear-gradient(var(--g900), var(--g900)) center / 1.6px 12px no-repeat;
  transition: transform .4s var(--ease-out), background-color .3s, border-color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--gold); border-color: var(--gold); }
.faq summary:hover::after { border-color: var(--gold-ink); }
.faq details p { padding: 0 3rem 1.4rem 0; color: var(--n600); max-width: 62ch; }
.faq details[open] p { animation: fadeUp .5s var(--ease-out); }

/* ---------------- VISITA ---------------- */
.visit { overflow: clip; }
.visit-lines { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 55%; opacity: .5; pointer-events: none; }
.js .visit .furrow { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .visit.is-drawn .furrow { animation: draw 2.8s var(--ease-out) forwards; }
.visit.is-drawn .furrow:nth-child(2) { animation-delay: .15s; }
.visit.is-drawn .furrow:nth-child(3) { animation-delay: .3s; }
.visit.is-drawn .furrow:nth-child(4) { animation-delay: .45s; }
.visit-form { grid-template-columns: minmax(0, 1fr); }
.visit-form .btn { white-space: normal; text-align: center; line-height: 1.25; }
.visit-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: start; }
.visit-copy .lead { margin-block: 1.3rem 2rem; }
.contact-list { display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: center; }
.contact-list .i { width: 44px; height: 44px; padding: 11px; border-radius: 50%; border: 1px solid var(--line-dark); color: var(--gold); }
.contact-list span { display: block; font: 700 .66rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--cream-55); margin-bottom: .3rem; }
.contact-list a, .contact-list p { font-weight: 700; font-size: 1.02rem; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--gold); }
.visit-form {
  position: relative; display: grid; gap: 1.1rem; padding: clamp(1.3rem, 3vw, 2.2rem);
  background: var(--n050); color: var(--g900); border-radius: var(--r-lg);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(200, 161, 101, .3);
}
.visit-form.is-prefilled { animation: prefill 1.6s var(--ease-out); }
.form-row { display: grid; gap: 1.1rem; }
.visit-form .seg { width: 100%; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--n600); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: .1rem; accent-color: var(--g900); flex: none; }
.visit-form .btn { width: 100%; }
.form-note { font-size: .8rem; color: var(--n600); text-align: center; margin-top: -.3rem; }
.form-ok {
  position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: .8rem;
  padding: 2rem; text-align: center; background: var(--n050); border-radius: inherit;
  animation: fadeUp .6s var(--ease-out);
}
.form-ok:focus { outline: none; }
.ok-check { width: 64px; height: 64px; color: var(--gold-ink); }
.ok-check circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: drawPx 1s var(--ease-out) .1s forwards; }
.ok-check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: drawPx .6s var(--ease-out) .7s forwards; }
.form-ok h3 { font-size: 2rem; font-weight: 600; }
.form-ok p { color: var(--n600); max-width: 36ch; font-size: .92rem; }
.ok-msg { max-width: 44ch; margin: 0; padding: .9rem 1rem; border-left: 2px solid var(--gold); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--white); color: var(--g900); font-size: .92rem; line-height: 1.55; text-align: left; }
.form-ok a:not(.btn) { color: var(--gold-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.visit-form .form-ok .btn { width: auto; margin-top: .4rem; }

/* ---------------- FOOTER ---------------- */
.footer { background: #070F0A; color: var(--cream-70); padding: clamp(3.5rem, 7vw, 5.5rem) 0 calc(6rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; gap: 2.4rem; }
.footer-brand img { width: 92px; margin-bottom: 1.2rem; }
/* Tablet: la marca arriba y las cuatro columnas debajo, para que el correo quepa */
@media (min-width: 720px) and (max-width: 1023px) {
  .footer-grid.footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
.footer-claim { font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; color: var(--n050); max-width: 14ch; }
.footer-col { display: grid; gap: .6rem; align-content: start; min-width: 0; font-size: .94rem; }
.footer-col h2 { font: 700 .7rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.footer-col a { width: fit-content; max-width: 100%; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; margin-top: 3rem; padding-top: 1.5rem; font-size: .78rem; color: var(--cream-55); }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line-dark); }
.footer-credit a { color: var(--cream-70); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- BARRA MÓVIL + FLOTANTE ---------------- */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; grid-template-columns: auto 1fr; gap: .6rem;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(10, 20, 14, .96); border-top: 1px solid var(--line-dark);
  transform: translateY(110%); visibility: hidden; transition: transform .45s var(--ease-out), visibility 0s .45s;
}
@supports (backdrop-filter: blur(10px)) {
  .mbar { background: rgba(10, 20, 14, .85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}
.mbar.is-visible { transform: none; visibility: visible; transition: transform .45s var(--ease-out); }
.mbar-wa { display: flex; align-items: center; gap: .5rem; padding: 0 1rem; min-height: 48px; border-radius: var(--r-sm); border: 1px solid rgba(247, 245, 240, .3); color: var(--n050); font-weight: 700; font-size: .92rem; }
.mbar-wa .i { color: var(--gold); }
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 70; display: none; place-items: center;
  width: 58px; height: 58px; border-radius: 50%; background: var(--g700); color: var(--gold);
  box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .6), 0 0 0 1px rgba(200, 161, 101, .45);
  transition: transform .35s var(--ease-out), background-color .3s;
}
.wa-float .i { width: 26px; height: 26px; }
.wa-float { transition: transform .35s var(--ease-out), background-color .3s, opacity .3s; }
.wa-float:hover { transform: translateY(-3px) scale(1.04); background: var(--g800); }

/* =============================================================
   7. Efectos
   ============================================================= */
.reveal { transition: transform 1.1s var(--ease-out); }
.js .reveal:not(.is-visible) { transform: translateY(22px); }
.reveal[data-split] { opacity: 1; transform: none; }
.values .reveal:nth-child(2) { transition-delay: .1s; }
.values .reveal:nth-child(3) { transition-delay: .2s; }
.values .reveal:nth-child(4) { transition-delay: .3s; }
.steps .reveal:nth-child(2) { transition-delay: .08s; }
.steps .reveal:nth-child(3) { transition-delay: .16s; }
.steps .reveal:nth-child(4) { transition-delay: .24s; }
.steps .reveal:nth-child(5) { transition-delay: .32s; }
.steps .reveal:nth-child(6) { transition-delay: .4s; }
.steps .reveal:nth-child(2)::before { transition-delay: .2s; }
.steps .reveal:nth-child(3)::before { transition-delay: .4s; }
.steps .reveal:nth-child(4)::before { transition-delay: .6s; }
.steps .reveal:nth-child(5)::before { transition-delay: .8s; }
.steps .reveal:nth-child(6)::before { transition-delay: 1s; }

@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(70px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drawPx { to { stroke-dashoffset: 0; } }
@keyframes twinkle { from { opacity: .15; } to { opacity: .85; } }
@keyframes bob { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes ants { to { stroke-dashoffset: -22; } }
@keyframes prefill { 0% { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(200, 161, 101, .3); } 25% { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 5px rgba(200, 161, 101, .75); } 100% { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(200, 161, 101, .3); } }
@keyframes menuIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes menuLink { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }

/* =============================================================
   8. Responsive (mobile-first)
   ============================================================= */
/* ---------------- RECORRIDO 360° ---------------- */

.tour { display: grid; gap: 1rem; }

/* El recorrido aparece desde la lente, como un portal */

/* Pantalla completa (nativa o, si no se puede, a toda la ventana) */

@media (min-width: 960px) {
  .tour { grid-template-columns: 280px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 1.2rem; }
}

@keyframes tourSpin { to { transform: rotate(360deg); } }
@keyframes tourDrift { from { transform: scale(1.04); } to { transform: scale(1.14) translateX(-2%); } }
@keyframes tourPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: .65; } }
@keyframes tourLive { 0% { box-shadow: 0 0 0 0 rgba(111, 211, 148, .6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(111, 211, 148, 0); } }
@keyframes tourHint { 0% { opacity: 0; transform: translate(-50%, 8px); } 14%, 82% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); } }
@keyframes tourSway { from { transform: translateX(-4px); } to { transform: translateX(4px); } }

/* ---------------- VIDEOS ---------------- */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s var(--ease-soft); }
.hero.has-video .hero-video { opacity: 1; }
.hero-video-toggle {
  position: absolute; left: var(--gutter); bottom: 1.4rem; z-index: 2;
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(247, 245, 240, .35); background: rgba(10, 20, 14, .5); color: var(--n050);
}
.hero-video-toggle:hover { border-color: var(--gold); color: var(--gold); }
.hero-video-toggle .i { width: 18px; height: 18px; }

.vdialog {
  width: min(1100px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0;
  border-radius: var(--r-lg); background: var(--g900); color: var(--n050); overflow: hidden;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .8);
}
.vdialog::backdrop { background: rgba(6, 13, 9, .82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.vdialog[open] { animation: dialogIn .55s var(--ease-out); }
.vd-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .7rem .7rem 1.3rem; }
.vd-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.vd-frame { aspect-ratio: 16 / 9; max-height: calc(100dvh - 120px); background: #000; }
.vd-frame iframe, .vd-frame video { display: block; width: 100%; height: 100%; border: 0; }
.vd-blocked { padding: .4rem 1.3rem 1.6rem; color: var(--cream-80); font-size: .92rem; }
.vd-blocked a { color: var(--gold); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- NOSOTROS: foto y equipo ---------------- */
.about-photo { position: relative; }
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 943 / 646; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.about-photo figcaption {
  position: relative; margin: -2.4rem 1rem 0; padding: 1.1rem 1.3rem; border-radius: var(--r-md);
  background: var(--g900); color: var(--n050); font: italic 500 1.25rem/1.3 var(--serif);
  box-shadow: 0 20px 40px -24px rgba(10, 20, 14, .6);
}
.about .values { margin-top: clamp(3rem, 6vw, 4.5rem); }
.team { margin-top: clamp(4rem, 8vw, 6.5rem); display: grid; gap: 2rem; }
.team-head { max-width: 640px; }
.team-title { font-size: clamp(2.2rem, 4.2vw, 3.3rem); font-weight: 500; line-height: 1.05; margin-bottom: 1rem; }
.team-title em { color: var(--gold-ink); }
.team-head p:not(.kicker) { color: var(--n600); font-size: 1.04rem; }
.team-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.member { display: grid; align-content: start; gap: .9rem; }
.member-photo { display: block; width: 100%; height: auto; aspect-ratio: 402 / 495; object-fit: cover; border-radius: 999px 999px 18px 18px; background: var(--n100); }
.member h4 { font: 600 1.45rem/1.1 var(--serif); }
.member-body p { margin-top: .25rem; font-size: .84rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.member-wa { display: inline-flex; align-items: center; gap: .4rem; margin-top: .7rem; font-weight: 700; font-size: .9rem; color: var(--g900); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.member-wa .i { width: 1.1em; height: 1.1em; color: var(--gold-ink); }
.member-cta {
  grid-column: 1 / -1; align-content: end; gap: 1rem; padding: clamp(1.5rem, 3vw, 2.2rem); border-radius: var(--r-lg);
  background: radial-gradient(120% 80% at 100% 0%, rgba(200, 161, 101, .22), transparent 60%), var(--g900); color: var(--n050);
}
.member-cta-icon { width: 34px; height: 34px; color: var(--gold); }
.member.member-cta h4 { font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 500; line-height: 1.05; }
.member-cta h4 em { display: block; color: var(--gold); }
.member-cta p { color: var(--cream-70); }
.member-cta .btn { justify-self: start; }

@media (min-width: 960px) {
  .about-photo figcaption { position: absolute; left: -1.5rem; bottom: -2rem; max-width: 330px; margin: 0; }
}
@media (min-width: 960px) {
  .about .values { grid-template-columns: repeat(4, 1fr); }
  .team-list { grid-template-columns: 1fr 1fr 1.05fr; gap: 1.4rem; }
  .member-cta { grid-column: auto; min-height: 100%; }
}

@media (max-width: 539px) {
  .lot-table th, .lot-table td { padding-inline: .6rem; }
  .tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; border-radius: 14px; }
  .tab { flex-direction: column; justify-content: center; gap: .2rem; padding: .55rem .35rem; border-radius: 10px; font-size: .84rem; line-height: 1.15; white-space: normal; text-align: center; }
  .status-filter { gap: .3rem; }
  .st span { padding: .38rem .6rem; font-size: .78rem; gap: .35rem; }
  .range { max-width: none; }
}

@media (min-width: 540px) {
  .brand-word { display: block; }
  .form-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  .pt-long { display: inline; }
  .steps { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr; }
}

@media (min-width: 960px) {
  :root { --nav-h: 84px; }
  .nav .btn-sm { display: inline-flex; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .portal-grid { grid-template-columns: 1.05fr .95fr; }
  .about-grid { grid-template-columns: .95fr 1.05fr; align-items: center; }
  .faq-grid { grid-template-columns: .8fr 1.2fr; align-items: start; }
  .faq-head { position: sticky; top: calc(var(--nav-h) + 2rem); }
  .visit-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}

@media (min-width: 1280px) {
  .nav-links { display: flex; }
  .nav-portal { display: inline-flex; }
  .nav-toggle { display: none; }
}

@media (min-width: 1600px) {
  .hero-title { font-size: 8rem; }
}

/* =============================================================
   9. Movimiento reducido: solo se apagan los efectos intrusivos
   ============================================================= */
/* ---------------- Ajustes de flujo (auditoría) ---------------- */

.plan-others { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; font-size: .84rem; color: var(--cream-70); grid-column: 1 / -1; }
.plan-others button { min-height: 36px; padding: .3rem .8rem; border-radius: 999px; border: 1px solid rgba(200, 161, 101, .45); color: var(--gold); font-weight: 700; font-size: .82rem; }
.plan-others button:hover { background: rgba(200, 161, 101, .14); }
.steps-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.2rem; margin-top: clamp(2rem, 4vw, 3rem); }
.steps-sim { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 700; color: var(--gold-ink); }
.steps-sim .i { width: 1em; height: 1em; transition: transform .3s var(--ease-out); }
.steps-sim:hover .i { transform: translateX(3px); }
.portal-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.portal .portal-note { margin-top: .9rem; }
@media (hover: none) { .on-mouse { display: none; } }

/* ---------------- Pulido visual (auditoría) ---------------- */

@media (min-width: 960px) {
  /* Los selectores nunca se achican bajo su texto; el resultado tiene un ancho tope y su desglose se reparte en líneas */

}

/* Laptops chicos: buscador en dos filas (campos arriba, resultado y botón abajo), como en tablet */

.lot-facts div { display: grid; grid-template-rows: 1fr auto; align-items: end; }
.about-photo img, .member-photo { filter: saturate(.8) contrast(1.03) sepia(.08); }
.member-photo { box-shadow: 0 0 0 6px var(--n050), 0 0 0 7px rgba(200, 161, 101, .55); }
@media (min-width: 1280px) {
  .plan-section .section-head { margin-left: max(0px, calc((100% - 1160px) / 2)); }
}
@media (max-width: 539px) {
  .trust { flex-direction: column; align-items: flex-start; width: fit-content; margin-inline: auto; gap: .55rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .lot-table .t-sector, .lot-table .t-sel { display: none; }
}
.nw { white-space: nowrap; }

/* ---------------- Accesibilidad (auditoría) ---------------- */
@media (max-width: 1359px) { html { scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom)); } }
.contact-list a, .footer-col a, .footer-credit a, .member-wa { display: inline-flex; align-items: center; min-height: 44px; }

.seg span { padding-block: .7rem; }
.brand { min-height: 44px; }
@media (max-width: 959px) {
  .btn-sm { min-height: 44px; }
  .sheet-grab { height: 44px; top: -1.9rem; }
  .sheet-grab::before { top: 18px; }
  .lot-actions { position: sticky; bottom: 0; z-index: 1; background: var(--g900); padding-block: .6rem; margin-bottom: -.6rem; }
}
@media (max-height: 500px) {
  .nav { position: absolute; }
  html { scroll-padding-top: 8px; }
  .mbar { display: none; }
  .lot-panel, .lot-panel.is-expanded { max-height: calc(100dvh - 12px); }
}
.st input:checked + span::after { content: ""; width: 14px; height: 14px; margin-left: .1rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.st input:not(:checked) + span { border-style: dashed; text-decoration: line-through; text-decoration-color: rgba(247, 245, 240, .45); }
.plan-cats { scroll-padding-inline: .8rem 3rem; }

/* ---------------- Rendimiento (auditoría) ---------------- */
.is-offscreen, .is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }
/* Con el recorrido abierto, los adornos del portal quedan quietos detrás del visor */

.plan-canvas.is-switching svg { opacity: .55; transition: opacity .12s; }

/* ---------------- Sin JavaScript ---------------- */
/* Navegación visible y sin controles que no responden */
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .nav { background: rgba(10, 20, 14, .97); }
@media (max-width: 1279px) {
  html:not(.js) .nav-links { display: flex; position: absolute; left: 0; right: 0; top: 100%; overflow-x: auto; gap: 1.3rem; padding: .55rem var(--gutter); background: rgba(10, 20, 14, .96); border-bottom: 1px solid var(--line-dark); }
}
html:not(.js) .plan-bar .tabs, html:not(.js) .view-toggle, html:not(.js) .plan-filters, html:not(.js) .plan-cats, html:not(.js) .lot-panel, html:not(.js) .plan-legend, html:not(.js) .skip-plan, html:not(.js) .sim-controls, html:not(.js) .sim-bar, html:not(.js) .sim-result dl, html:not(.js) .sim-note, html:not(.js) [data-s-send] { display: none; }
html:not(.js) .plan-body { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1279px) { html:not(.js) .hero-inner { padding-top: 3rem; } html:not(.js) { scroll-padding-top: calc(var(--nav-h) + 3.2rem); } }

/* ---------------- QA final ---------------- */
main > section[id], #buscador { scroll-margin-top: -8px; }
@media (max-width: 719px) {
  /* Resumen y "Filtros" comparten la primera fila; "También en tu presupuesto" baja a una fila propia */
  .plan-filters-head { flex-wrap: wrap; }
  .plan-summary { flex: 1 1 12rem; min-width: 0; }
  .plan-others { flex: 1 0 100%; order: 3; }
}
@media (max-width: 340px) { .lot-table th, .lot-table td { padding-inline: .4rem; } }
.footer-col { gap: 0; }
.footer-col h2 { margin-bottom: .6rem; }
.footer-col p { min-height: 44px; display: flex; align-items: center; }
.footer-bottom { align-items: baseline; }
.member-wa { transition: color .2s, border-color .2s; }
.member-wa:hover { color: var(--gold-ink); border-bottom-color: var(--gold-ink); }
html:not(.js) [data-tour-share] { display: none; }
/* Pines apiñados (plano completo en pantallas chicas): puntos de color en vez de números que se pisan */
.is-crowded .pin:not(.is-active) .pin-t, .is-crowded .pin .pin-p, .is-crowded .pin:not(.is-active) .pin-sh, .is-crowded .pin-vendida { display: none; }
.is-crowded .pin:not(.is-active) .pin-b { transform: scale(.42); }
/* Reserva en curso en el formulario de visita */
.visit-intent { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .7rem; padding: .75rem .9rem; border-radius: var(--r-md); background: rgba(200, 161, 101, .16); border: 1px solid rgba(200, 161, 101, .45); color: var(--g900); font-weight: 700; font-size: .92rem; }
.visit-intent[hidden] { display: none; }
.visit-intent .i { color: var(--gold-ink); flex: none; }
.visit-intent span { flex: 1 1 12rem; }
.visit-intent .link-btn { color: var(--gold-ink); }
.noscript a, .sim-noscript a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- Anchos límite (QA) ---------------- */

@media (max-width: 379px) {
  .btn-lg { padding-inline: 1.1em; font-size: .95rem; }
  .hero-actions .btn { white-space: normal; text-align: center; }
  .mbar { grid-template-columns: auto minmax(0, 1fr); }
  .mbar-wa { font-size: 0; gap: 0; padding: 0; width: 48px; justify-content: center; }
  .mbar-wa .i { width: 22px; height: 22px; }
}
/* Pestañas de proyecto: siempre las tres enteras, sin cortar nombres */
@media (max-width: 719px) {
  .tabs { display: grid; grid-template-columns: auto auto auto; width: 100%; border-radius: 14px; overflow: visible; }
  .tab { flex-direction: column; justify-content: center; gap: .2rem; padding: .55rem .35rem; border-radius: 10px; font-size: clamp(.72rem, 3.4vw, .9rem); line-height: 1.15; white-space: normal; text-align: center; }
  .plan-360 { white-space: nowrap; }
}
@media (max-width: 379px) {
  .plan { padding-inline: .5rem; }
  .tabs { gap: 2px; padding: 3px; }
  .tab { font-size: .7rem; padding-inline: .2rem; letter-spacing: -.01em; }
  .plan-360 { font-size: .8rem; padding-inline: .7rem; }
}
/* 1280–1439: los enlaces del menú caben sin la etiqueta de propuesta */
@media (min-width: 1280px) and (max-width: 1439px) {
  .proposal-tag { display: none; }
  .nav-links { gap: .95rem; }
}

/* ---------------- Ajustes responsivos (auditoría) ---------------- */
.faq summary { text-wrap: balance; }
h2 em { text-wrap: balance; }
@media (min-width: 1360px) {
  .footer-bottom { padding-right: 84px; }
  .wa-float.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(12px); transition: opacity .3s, transform .35s, visibility 0s .3s; }
}
@media (min-width: 1200px) {
  .team { grid-template-columns: .8fr 2fr; align-items: end; gap: 3rem; }
}
@media (min-width: 960px) and (max-width: 1199px) {
  .team-list { grid-template-columns: 1fr 1fr 1.2fr; }
}
.member-body p { letter-spacing: .04em; font-size: .74rem; }
.member h4 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); }
@media (min-width: 1280px) {
  .pt-long { display: none; }
  .nav-links { gap: 1.1rem; }
}
@media (min-width: 1280px) {
  .plan-section .container { max-width: 1440px; }
}

@media (max-width: 359px) {
  .hero-kicker { letter-spacing: .16em; font-size: .66rem; }
  .hero-sub { font-size: .98rem; margin-top: 1.1rem; }
  .hero-actions { margin-top: 1.5rem; }
}
/* Pantallas bajas (teléfono horizontal): el hero muestra la acción sin desplazarse */
@media (max-height: 520px) {
  :root { --nav-h: 60px; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 1.5rem); padding-bottom: 4rem; }
  .hero-title { font-size: clamp(2.4rem, 12vh, 4rem); }
  .hero-sub { display: none; }
}
@media (max-height: 700px) {
  .menu-links a { font-size: clamp(1.45rem, 5.2vh, 2rem); line-height: 1.15; }
  .menu-top { margin-bottom: 1rem; }
}
.menu-cta { position: sticky; bottom: 0; padding-top: 1rem; background: linear-gradient(transparent, var(--g900) 30%); }
/* Menú como panel lateral en tablet y escritorio */
@media (min-width: 720px) {
  .menu { width: min(440px, 100%); max-width: 440px; margin: 0 0 0 auto; box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .7); }
  .menu-links a { font-size: clamp(1.6rem, 3vw, 2.1rem); }
}
/* Tablets: barras y hoja inferior con ancho cómodo */
@media (min-width: 600px) and (max-width: 959px) {
  .lot-panel { max-width: 560px; margin-inline: auto; }
}
@media (min-width: 600px) and (max-width: 1359px) {
  .mbar { grid-template-columns: auto minmax(0, 320px); justify-content: end; }
}
@media (min-width: 1360px) {
  .mbar { display: none; }
  .wa-float { display: grid; }
  .footer { padding-bottom: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stars .tw, .phone, .lot-ring { animation: none; }
  .hero-video { transition: none; }
  .faq details[open] p { animation: none; }
  .hero-title .line > span, .hero-kicker, .hero-sub, .hero-actions, .menu[open], .menu[open] .menu-links a, .vdialog[open], .form-ok { animation: none; }
  .reveal, .step::before { transition: none; }
  .hero .furrow, .js .visit.is-drawn .furrow, .ok-check circle, .ok-check path { animation: none; stroke-dashoffset: 0; }
  .js .reveal:not(.is-visible) { transform: none; }
}

/* Teléfono horizontal: los botones del menú van al final de la lista, no encima de los enlaces */
@media (max-height: 500px) { .menu .menu-cta { position: static; background: none; } }

/* =============================================================
   Portada y sección con el equipo real de Fundos
   ============================================================= */
.hero { background: var(--g900); padding-bottom: clamp(9rem, 22vh, 13rem); justify-content: flex-end; padding-top: calc(52vh - 5.5rem); padding-top: calc(52svh - 5.5rem); }
.hero-photo { position: absolute; inset: 0 0 auto 0; height: 58vh; height: 58svh; margin: 0; overflow: hidden; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; transform: scale(1.04); animation: heroPhoto 1.8s var(--ease-out) both; will-change: transform; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 13, 9, .62) 0%, rgba(6, 13, 9, 0) 24%, rgba(10, 20, 14, 0) 46%, rgba(10, 20, 14, .72) 78%, var(--g900) 100%);
}
.hero-shade { background: linear-gradient(0deg, var(--g900) 0%, var(--g900) 7%, rgba(10, 20, 14, 0) 30%); }
.hero-grain { opacity: .05; }
@keyframes heroPhoto { from { opacity: 0; transform: scale(1.1); } to { opacity: 1; transform: scale(1.04); } }

@media (min-width: 960px), (min-width: 600px) and (max-height: 520px) {
  .hero { justify-content: center; padding-top: calc(var(--nav-h) + 2.5rem); }
  .hero-photo { inset: 0 0 0 auto; width: 58%; height: 100%; }
  .hero-photo img { object-position: 50% 30%; }
  .hero-photo::after {
    background:
      linear-gradient(90deg, var(--g900) 0%, rgba(10, 20, 14, .6) 16%, rgba(10, 20, 14, 0) 42%),
      linear-gradient(180deg, rgba(6, 13, 9, .55) 0%, rgba(6, 13, 9, 0) 20%, rgba(10, 20, 14, 0) 66%, var(--g900) 100%);
  }
  .hero-inner > * { max-width: min(600px, 44vw); }
  .hero-title { font-size: clamp(3.1rem, 5.5vw, 6rem); max-width: none; }
}

/* Caras del equipo (avatares superpuestos) */
.faces { display: inline-flex; flex: none; }
.faces img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--n050); background: var(--n100); }
.faces img + img { margin-left: -10px; }

.faces-lg img { width: 52px; height: 52px; border-width: 3px; }
.faces-lg img + img { margin-left: -14px; }
.faces-cta img { width: 44px; height: 44px; border-color: var(--g900); }
.faces-cta img + img { margin-left: -12px; }

/* Sección equipo */
.team { grid-template-columns: minmax(0, 1fr); align-items: start; gap: clamp(1.8rem, 3.4vw, 2.8rem); }
.team-top { display: grid; gap: 1.8rem; align-items: center; }
.team-head { max-width: 560px; }
.team-faces { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1rem; margin-top: 1.4rem; font-size: .98rem; color: var(--n600); }
.team-faces strong { color: var(--g900); }
.team-photo { position: relative; margin: 0; }
.team-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
/* Mosaico del equipo actual (reemplaza la foto grupal: ya no corresponde al equipo) */
.team-mosaic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 4 / 3.4; }
.team-mosaic-grid li { position: relative; min-height: 0; overflow: hidden; background: var(--g800); }
.team-photo .team-mosaic-grid img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 12%; border-radius: 0; box-shadow: none; transition: transform .8s var(--ease-out); }
.team-mosaic-grid li:hover img { transform: scale(1.05); }
.team-mosaic-brand { grid-column: span 2; }   /* 6 fotos + la marca en dos celdas = 4 × 2 */
.team-mosaic-brand a { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: .6rem; background: var(--g900); color: var(--n050); text-align: center; font: 600 .82rem/1.3 var(--sans); text-decoration: none; }
.team-photo .team-mosaic-brand img { position: static; width: 52px; height: auto; object-fit: contain; }
.team-mosaic-brand a:hover span { color: var(--gold); }
.team-mosaic-brand a:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.team-mosaic-brand strong { display: block; margin-bottom: .2rem; font: 500 1.15rem/1.15 var(--serif); color: var(--gold); }
.team-photo figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: .45rem .95rem; border-radius: 999px; background: rgba(10, 20, 14, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--n050); font-size: .82rem; font-weight: 700; }
.team-list { grid-template-columns: 1fr 1fr; }
.member-media { position: relative; display: block; border-radius: 999px 999px 18px 18px; }
.member-video .member-photo { aspect-ratio: 402 / 495; object-position: 50% 30%; }
.member-play { position: absolute; left: 50%; top: 58%; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; transform: translate(-50%, -50%); background: rgba(10, 20, 14, .72); border: 1px solid rgba(200, 161, 101, .7); color: var(--gold); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: transform .3s var(--ease-out), background-color .3s; }
.member-play .i { width: 22px; height: 22px; margin-left: 3px; }
.member-video:hover .member-play { transform: translate(-50%, -50%) scale(1.08); background: var(--gold); color: var(--g900); }
.member-video:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 6px; }
.member img.member-photo[src*="retrato"] { object-position: 50% 22%; }
.member-cta .faces { margin-bottom: .2rem; }
.member-cta { grid-column: 1 / -1; }
@media (min-width: 960px) {
  .team-top { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 3.2rem; }
  .team-list { grid-template-columns: minmax(0, .82fr) minmax(0, .82fr) minmax(0, 1.36fr); gap: 1.6rem; align-items: stretch; }
  .member-cta { grid-column: auto; align-content: center; }
}

/* Contacto con caras */
.visit-people { display: flex; align-items: center; gap: .9rem; margin: -.4rem 0 2rem; color: var(--cream-80); font-weight: 600; font-size: .95rem; line-height: 1.35; }
.visit-people .faces img { width: 40px; height: 40px; border-color: var(--g900); }
.lot-help .faces { margin-bottom: -.2rem; }
.lot-help .faces img { width: 32px; height: 32px; border-color: var(--g800); }
.ph-btn { display: flex; align-items: center; justify-content: center; gap: .5rem; }
.ph-btn img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; border: 1.5px solid rgba(247, 245, 240, .7); }

/* Visor de video vertical (saludo del equipo) */
.vdialog.is-vertical { width: fit-content; min-width: min(320px, calc(100vw - 24px)); }
.vdialog.is-vertical .vd-frame { aspect-ratio: 9 / 16; height: min(78dvh, 760px); width: auto; max-width: calc(100vw - 24px); margin-inline: auto; }
.vdialog.is-vertical .vd-head h2 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }

@media (prefers-reduced-motion: reduce) {
  .hero-photo img { animation: none; }
  .member-play { transition: none; }
}

/* ---------------- Equipo: una tarjeta y una ventana por persona ---------------- */
.sellers-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .5rem 2rem; margin-top: .6rem; }
.sellers-title { font: 500 clamp(1.7rem, 3vw, 2.4rem)/1.05 var(--serif); }
.sellers-title em { color: var(--gold-ink); }
.sellers-head p { max-width: 44ch; color: var(--n600); }
.sellers { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.sellers .member-cta { grid-column: 1 / -1; }
@media (min-width: 720px) and (max-width: 959px) {
  .sellers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .sellers .member-cta { grid-column: span 2; align-content: center; }
}
@media (min-width: 960px) {
  .sellers { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
  .sellers .member-cta { grid-column: auto; align-content: end; }
  .sellers .member-cta h4 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
  .sellers .member-cta p { font-size: .9rem; }
}
.seller-card {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--r-lg); background: var(--g800); color: var(--n050); text-align: left; box-shadow: var(--shadow-card);
}
.seller-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: saturate(.92); transition: transform .7s var(--ease-out); }
.seller-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 20, 14, 0) 62%, rgba(10, 20, 14, .55) 80%, rgba(10, 20, 14, .9) 100%); }
.seller-info strong, .seller-info > span { text-shadow: 0 1px 8px rgba(0, 0, 0, .55); }
.seller-card:hover img { transform: scale(1.04); }
/* Saludo al pasar el cursor: el video (recortado como la foto) aparece sobre ella */
.seller-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; opacity: 0; transition: opacity .35s var(--ease-out); pointer-events: none; }
.seller-card.is-playing .seller-vid { opacity: 1; }
.seller-card.is-playing .seller-badge { opacity: 0; }
.seller-badge { transition: opacity .25s; }
.seller-snd { position: absolute; z-index: 2; top: .7rem; left: .7rem; right: .7rem; display: flex; align-items: center; gap: .4rem; width: fit-content; padding: .35rem .7rem; border-radius: 999px; background: rgba(10, 20, 14, .8); font-size: .72rem; font-weight: 700; opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s; pointer-events: none; }
.seller-snd .i { width: .9em; height: .9em; color: var(--gold); }
.seller-card.is-muted .seller-snd { opacity: 1; transform: none; }
.seller-card:focus-visible { outline: 3px solid var(--gold-ink); outline-offset: 3px; }
.seller-info { position: absolute; z-index: 1; left: .95rem; right: .95rem; bottom: .85rem; display: grid; gap: .15rem; }
.seller-info strong { font: 600 clamp(1.1rem, 1.6vw, 1.3rem)/1.1 var(--serif); }
.seller-info > span:not(.seller-more) { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.seller-more { display: inline-flex; align-items: center; gap: .35rem; margin-top: .4rem; font-size: .84rem; font-weight: 700; color: var(--n050); }
.seller-more .i { width: 1em; height: 1em; transition: transform .3s var(--ease-out); }
.seller-card:hover .seller-more .i { transform: translateX(3px); }
.seller-badge { position: absolute; z-index: 2; top: .7rem; left: .7rem; display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .7rem; border-radius: 999px; background: rgba(10, 20, 14, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); font-size: .74rem; font-weight: 700; }
.seller-badge .i { width: .9em; height: .9em; color: var(--gold); }

.sdialog {
  width: min(940px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0;
  border-radius: var(--r-lg); background: var(--n050); color: var(--g900); overflow: auto; overscroll-behavior: contain;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .8);
}
.sdialog[open] { display: grid; animation: dialogIn .5s var(--ease-out); }
.sdialog::backdrop { background: rgba(6, 13, 9, .82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sd-close { position: absolute; top: .7rem; right: .7rem; z-index: 3; background: rgba(10, 20, 14, .72); color: var(--n050); }
.sd-media { position: relative; aspect-ratio: 1; background: var(--g800); overflow: hidden; }
.sd-media img, .sd-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.sd-media video { object-fit: contain; background: #000; }
.sd-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 26%; background: linear-gradient(180deg, transparent, rgba(10, 20, 14, .55)); pointer-events: none; }
.sd-media:has(video)::after { display: none; }
.sd-play { position: absolute; z-index: 2; left: 1rem; bottom: 1rem; display: inline-grid; grid-template-columns: auto auto; align-items: center; column-gap: .7rem; padding: .45rem 1.1rem .45rem .45rem; border: 1px solid rgba(247, 245, 240, .25); border-radius: 999px; background: rgba(10, 20, 14, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--n050); font-weight: 700; text-align: left; cursor: pointer; }
.sd-play small { grid-column: 2; font-size: .74rem; font-weight: 600; color: var(--cream-70); }
.sd-play-dot { grid-row: 1 / span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: var(--g900); }
.sd-play-dot .i { width: 16px; height: 16px; margin-left: 2px; }
.sd-play:hover { border-color: var(--gold); }
.sd-body { display: grid; align-content: start; gap: .9rem; padding: clamp(1.3rem, 3vw, 2.3rem); }
.sd-body .kicker { margin: 0; }
.sd-count { letter-spacing: .08em; color: var(--n600); }
.sd-body h2 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; }
.sd-role { margin-top: -.4rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.sd-text { color: var(--n600); }
.sd-list { display: grid; gap: .45rem; }
.sd-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .3rem; }
.sd-nav { display: flex; align-items: center; gap: .6rem; margin-top: .6rem; padding-top: 1rem; border-top: 1px solid var(--line-light); }
.sd-arrow { flex: none; }
.sd-arrow[data-sd-prev] .i { transform: scaleX(-1); }
.sd-faces { flex: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: .15rem; }
.sd-face { width: 42px; height: 42px; padding: 3px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.sd-face img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 18%; opacity: .6; transition: opacity .2s; }
.sd-face:hover img, .sd-face[aria-current="true"] img { opacity: 1; }
.sd-face[aria-current="true"] { box-shadow: 0 0 0 2px var(--gold-ink); }
@media (min-width: 720px) {
  .sdialog[open] { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
  .sd-media { aspect-ratio: auto; min-height: min(620px, calc(100dvh - 24px)); }
  .sd-close { background: var(--n100); color: var(--g900); }
}
@media (max-width: 719px) {
  .sdialog[open] { display: block; }
  .sd-nav { flex-wrap: wrap; justify-content: space-between; }
  .sd-faces { order: 3; width: 100%; justify-content: center; }
  .sd-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .sdialog[open] { animation: none; }
  .seller-card img, .seller-more .i { transition: none; }
}
.sd-list .i { color: var(--gold-ink); }

.sd-text { display: grid; gap: .7rem; }
.sd-text.is-own p:first-child { font-family: var(--serif); font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.3; color: var(--g900); }
@media (min-width: 720px) { .sd-body { max-height: min(720px, calc(100dvh - 24px)); overflow-y: auto; } .sdialog[open] { overflow: hidden; } }

/* Video de portada dentro del marco de la foto: los degradados de .hero-photo lo cubren igual */
.hero-photo .hero-video { z-index: 0; object-position: 50% 40%; }
.hero-photo::after { z-index: 1; }
.hero.has-video .hero-photo img { opacity: 0; transition: opacity 1.4s var(--ease-soft); }

/* Computador: chips de precio compactos para que el plano quepa entero en la pantalla */
@media (min-width: 960px) and (hover: hover) and (pointer: fine) {
  .plan-cats { gap: .45rem .6rem; padding: .55rem .7rem; }
  .plan-cats .pl-title { padding: .32rem .6rem; font-size: .76rem; }
  .pl-cats { gap: .35rem; }
  .pl-cat { min-height: 36px; gap: .4rem; padding: .25rem .7rem .25rem .45rem; font-size: .74rem; }
  .pl-cat .sw { width: 13px; height: 13px; }
  .pl-cat s { font-size: .68rem; }
  .pl-cat b { font-size: .86rem; }
  .pl-cat small { font-size: .68rem; }
}

/* ---------------- Cotizador compacto: la cotización completa a la vista ---------------- */

/* Franja con la cifra clave (solo celular) */
@media (max-width: 719px) {
  .sim-peek {
    position: sticky; z-index: 5; bottom: calc(80px + env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: .6rem; margin: .2rem -.2rem 0; padding: .65rem .9rem;
    border-radius: var(--r-md); background: var(--g900); color: var(--cream-80); font-size: .82rem; font-weight: 700;
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .55);
  }
}

/* =============================================================
   Página más corta: pestañas "Tu compra", equipo compacto y carruseles
   ============================================================= */
/* Tu compra: una sección con pestañas (Cómo comprar · Simulador · Preguntas · Mi compra) */
/* Pestañas livianas (pedido del cliente: la barra fija oscura congestionaba): fila de texto con subrayado dorado, no fija */
.tc-bar { position: relative; z-index: 2; background: var(--n050); color: var(--g900); border-bottom: 1px solid var(--n200); }
.tc-bar-in { display: flex; align-items: center; padding-block: 0; }
.tc-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tc-tabs { display: flex; gap: clamp(.4rem, 2vw, 1.6rem); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tc-tabs::-webkit-scrollbar { display: none; }
.tc-tab { position: relative; flex: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 48px; padding: .4rem .2rem; color: var(--n600); font-size: .88rem; font-weight: 700; transition: color .2s; }
.tc-tab .i { width: 1em; height: 1em; color: var(--gold-ink); opacity: .8; }
.tc-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s var(--ease-out); }
.tc-tab:hover { color: var(--g900); }
.tc-tab[aria-selected="true"] { color: var(--g900); }
.tc-tab[aria-selected="true"]::after { transform: scaleX(1); }
.tc-tab:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: -2px; }
.tc-panel { scroll-margin-top: 80px; }
.js .tu-compra .tc-panel[hidden] { display: none; }
html:not(.js) .tc-tabs { display: none; }
.tu-compra { scroll-margin-top: 66px; }
@media (max-width: 719px) {
  .tc-tab { font-size: .82rem; gap: .3rem; }
  .tc-tabs { gap: .9rem; }
}

/* Nosotros compacto: historia + valores junto a la foto del equipo */
.about-copy h2 { margin-bottom: 1rem; }
.about .values-mini { list-style: none; display: grid; grid-template-columns: 1fr; gap: .9rem 1.4rem; margin-top: 1.6rem; }
.about .values-mini li { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; padding-top: .9rem; border-top: 1px solid var(--n200); }
.about .values-mini .value-icon { width: 38px; height: 38px; margin: 0; }
.about .values-mini .value-icon .i { width: 18px; height: 18px; }
.about .values-mini h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: .15rem; }
.about .values-mini p { font-size: .88rem; line-height: 1.45; color: var(--n600); }
@media (min-width: 600px) { .about .values-mini { grid-template-columns: 1fr 1fr; } }
.about .team-photo img { aspect-ratio: 4 / 3.4; }
.team { margin-top: clamp(2.5rem, 5vw, 4rem); }
.sellers-head { align-items: end; margin-top: 0; }
.sellers-head .kicker { margin-bottom: .4rem; }
.sellers-head .team-faces { margin: 0; font-size: .92rem; }
.sellers-head .faces-lg img { width: 38px; height: 38px; border-width: 2px; }
.sellers-head .faces-lg img + img { margin-left: -10px; }

/* Proyectos en carrusel en el celular (antes 3 tarjetas apiladas) */

/* Dónde estoy: sección actual junto al logo (celular y tablet) y barra de avance bajo el menú */
.nav-where { display: none; }
@media (max-width: 1279px) {
  .nav.is-solid .nav-where:not(:empty) { display: inline-flex; align-items: center; min-height: 28px; padding: 0 .75rem; border-radius: 999px; background: rgba(200, 161, 101, .14); color: var(--gold); font: 700 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
  .nav.is-solid:has(.nav-where:not(:empty)) .proposal-tag { display: none; }
}
.nav::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--avance, 0) * 100%); background: var(--gold); opacity: 0; transition: opacity .3s; pointer-events: none; }
.nav.is-solid::after { opacity: .9; }

/* Computador: leyenda del plano en una franja baja para que la herramienta completa quepa en la pantalla */
@media (min-width: 960px) {
  .plan-legend { gap: .45rem; padding: .55rem .9rem .6rem; }
  .pl-head { align-items: center; }
  .pl-kicker { display: none; }
  .pl-name { margin-top: 0; font-size: 1.15rem; }
  .pl-stats span { padding: .22rem .6rem; font-size: .72rem; }
  .pl-symbols { gap: .35rem 1rem; padding-top: .45rem; }
  .pl-symbols li { font-size: .74rem; }
  .plan-legend .sym-disp { width: 18px; height: 18px; }
  /* el detalle del lote acompaña al plano con el mismo alto */
  .plan .lot-panel { max-height: min(calc(100vh - var(--nav-h) - 2rem), var(--stage-h, 100vh)); overflow-y: auto; scrollbar-width: thin; }
  .plan.is-wide .lot-empty .lot-help { display: none; }
  .plan.is-wide .lot-panel { padding: 1.2rem 1.3rem; }
}

/* Chips de precio: versión corta en el celular y el tablet no se usa ("3 disponibles") */
.pl-cat .pl-ds { display: none; }
/* Computador: chips de precio en una sola fila (precio arriba; precio lista y disponibles abajo),
   así el plano sube en la pantalla */
@media (min-width: 960px) and (hover: hover) and (pointer: fine) {
  .plan-cats, .pl-cats { flex-wrap: nowrap; }
  .plan-cats { overflow-x: auto; gap: .6rem; padding: .45rem .7rem; }
  .plan-cats .pl-title { padding: .3rem .5rem; font-size: .66rem; line-height: 1.1; max-width: 5.6em; white-space: normal; text-align: center; }
  .pl-cat { display: grid; grid-template-columns: auto auto auto; grid-template-rows: auto auto; column-gap: .35rem; row-gap: .05rem; align-items: center;
    min-height: 40px; padding: .28rem .8rem .28rem .5rem; border-radius: 14px; text-align: left; }
  .pl-cat .sw { grid-row: 1 / span 2; margin-right: .1rem; }
  .pl-cat .pl-price { display: contents; }
  .pl-cat b { grid-column: 2 / span 2; grid-row: 1; font-size: .88rem; line-height: 1.1; }
  .pl-cat s { grid-column: 2; grid-row: 2; font-size: .64rem; line-height: 1.1; }
  .pl-cat small { grid-column: 3; grid-row: 2; font-size: .64rem; line-height: 1.1; }
  .pl-cat:not(:has(s)) small { grid-column: 2 / span 2; }
  .pl-cat .pl-dl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pl-cat .pl-ds { display: inline; }
  .pl-cat:disabled small { padding: 0; background: none; font-size: .6rem; }
}

/* =============================================================
   Pestañas: la página se divide en vistas (Puerto Varas · Proyectos · Tu compra · Equipo)
   Cada sección declara en data-vista a qué vistas pertenece; sin JavaScript se ve todo seguido.
   ============================================================= */
html.js[data-vista="inicio"] [data-vista]:not([data-vista~="inicio"]),
html.js[data-vista="proyectos"] [data-vista]:not([data-vista~="proyectos"]),
html.js[data-vista="compra"] [data-vista]:not([data-vista~="compra"]),
html.js[data-vista="equipo"] [data-vista]:not([data-vista~="equipo"]) { display: none; }
.vista-ancla { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }
.nav-links a[aria-current="page"] { color: var(--n050); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.menu-links a[aria-current="page"] { color: var(--gold); }
.menu-sub { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; padding-top: .8rem; }
.menu-links .menu-sub a { border: 0; font: 700 .95rem/1.4 var(--sans); color: var(--cream-70); padding: .3rem 0; }
@media (min-width: 1024px) {
  .nav-links { display: flex; gap: clamp(1rem, 2vw, 1.8rem); }
}
@media (min-width: 1024px) and (max-width: 1279px) { .proposal-tag { display: none; } }
/* Celular y tablet: las pestañas van en una franja bajo la barra superior */
@media (max-width: 1023px) {
  :root { --tabs-h: 44px; }
  html.js .nav-links {
    display: flex; position: absolute; left: 0; right: 0; top: 100%; height: var(--tabs-h);
    align-items: stretch; gap: 0; overflow-x: auto; scrollbar-width: none; padding-inline: calc(var(--gutter) - .55rem);
    background: rgba(10, 20, 14, .96); border-bottom: 1px solid var(--line-dark);
  }
  html.js .nav-links::-webkit-scrollbar { display: none; }
  html.js .nav-links a { display: inline-flex; align-items: center; padding: 0 .55rem; font-size: .84rem; }
  html.js .nav-links a::after { left: .55rem; right: .55rem; height: 2px; }
  html.js .nav::before { bottom: calc(-1 * var(--tabs-h) - 20px); }
  html.js { scroll-padding-top: calc(var(--nav-h) + var(--tabs-h) + 8px); }
  html.js .hero { padding-top: calc(var(--nav-h) + var(--tabs-h) + 2rem); }
}

/* ---------------- Portada de Puerto Varas ---------------- */
.pv-hero { padding-bottom: clamp(10rem, 24vh, 13rem); }
.pv-hero .hero-photo { inset: 0; width: 100%; height: 100%; }
.pv-hero .hero-photo::after { display: none; }
.pv-hero .hero-photo img { object-position: 50% 50%; }
.pv-hero .hero-photo .hero-video { object-position: 50% 50%; }
.pv-hero .hero-shade {
  background:
    linear-gradient(90deg, rgba(6, 13, 9, .72) 0%, rgba(6, 13, 9, .35) 45%, rgba(6, 13, 9, 0) 75%),
    linear-gradient(180deg, rgba(6, 13, 9, .55) 0%, rgba(6, 13, 9, 0) 30%),
    linear-gradient(0deg, var(--g900) 0%, rgba(10, 20, 14, .6) 16%, rgba(10, 20, 14, 0) 42%);
}
.pv-hero .hero-title { max-width: none; }
.pv-hero .hero-sub { max-width: 46ch; }
.pv-badge { display: inline-block; margin-right: .6rem; padding: .32rem .6rem; border-radius: 999px; background: var(--gold); color: var(--g900); letter-spacing: .14em; }
/* Franja "Nuestros proyectos" al pie de la portada: deja claro desde el inicio que hay más de un proyecto */
.pv-proys {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  width: min(1240px, 100%); margin-inline: auto; padding: 0 var(--gutter) 1.6rem;
  animation: fadeUp 1s var(--ease-out) .9s both;
}
.pv-proys-k { margin-bottom: .6rem; font: 700 .66rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.pv-proys ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; margin: 0; padding: 0; list-style: none; }
.pv-proys a {
  display: flex; align-items: center; gap: .8rem; height: 100%; padding: .5rem .9rem .5rem .5rem;
  border: 1px solid rgba(247, 245, 240, .2); border-radius: var(--r-md, 14px); color: var(--n050); text-decoration: none;
  background: rgba(10, 20, 14, .38); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color .2s, background-color .2s, transform .25s var(--ease-out);
}
.pv-proys a:hover { border-color: var(--gold); background: rgba(10, 20, 14, .55); transform: translateY(-2px); }
.pv-proys a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pv-proys img { flex: none; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.pv-proys strong { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font: 500 1.28rem/1.15 var(--serif); }
.pv-proys strong .pv-badge { margin: 0; padding: .22rem .45rem; font: 800 .54rem/1 var(--sans); }
.pv-proys small { display: block; margin-top: .2rem; font-size: .76rem; line-height: 1.35; color: rgba(247, 245, 240, .74); }
.pv-proys small b { font-weight: 700; color: var(--n050); font-variant-numeric: lining-nums; }
@media (min-width: 720px) { .pv-proys ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pv-new { display: block; margin-top: .7rem; }
.pv-new .pv-badge { margin-right: .5rem; padding: .26rem .5rem; font: 800 .58rem/1 var(--sans); vertical-align: .15em; }
.pv-new strong { color: var(--n050); }
.pv-hero .hero-video-toggle { left: auto; right: var(--gutter); bottom: auto; top: calc(var(--nav-h) + 1rem); }
@media (max-width: 1023px) { .pv-hero .hero-video-toggle { top: calc(var(--nav-h) + var(--tabs-h) + .8rem); } }
/* Bajo 1100 px la pausa queda arriba a la derecha: el antetítulo no pasa por debajo */
@media (max-width: 1099px) { .pv-hero .hero-kicker { padding-right: 3.4rem; } }
/* Celular: los datos van debajo de los botones (abajo está la barra de WhatsApp) */
@media (max-width: 719px) {
  .pv-hero { min-height: 0; padding-bottom: 1.5rem; justify-content: flex-start; }
  .pv-proys { position: static; margin-top: 2rem; padding: 0; }
  .pv-hero .hero-inner { padding-top: 1rem; }
}
/* Pestañas sin portada: el contenido parte bajo la barra superior */
html.js[data-vista="compra"] main, html.js[data-vista="equipo"] main { padding-top: var(--nav-h); }
@media (max-width: 1023px) { html.js[data-vista="compra"] main, html.js[data-vista="equipo"] main { padding-top: calc(var(--nav-h) + var(--tabs-h)); } }

/* ---------------- Vitrina del entorno ---------------- */
.pv-entorno { overflow: clip; }
.pv-ent { display: grid; gap: clamp(1.8rem, 4vw, 3.2rem); align-items: center; }
@media (min-width: 960px) { .pv-ent { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.pv-ent-txt h2 { margin-top: .6rem; font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.pv-ent-txt h2 em { font-style: italic; color: var(--gold); }
.pv-ent-txt .lead { margin-top: 1rem; }
.pv-map { position: relative; display: block; aspect-ratio: 4 / 3.4; border-radius: var(--r-lg); overflow: hidden; background: #07100b; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(200, 161, 101, .28); }
.pv-map-in, .pv-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pv-map image { filter: saturate(.75) brightness(.8) contrast(1.05); }
.pv-map::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 45%, rgba(4, 9, 6, .55)); }
.pv-map .rt { fill: none; stroke: rgba(247, 245, 240, .32); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pv-map .rt.k { stroke: var(--gold); stroke-width: 2.6; }
.pv-map .rt.is-hi { stroke: var(--gold-2); stroke-width: 3.4; }
.pv-map .rt.draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.pv-map.is-in .rt.draw { animation: pvDraw 1.6s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
@keyframes pvDraw { to { stroke-dashoffset: 0; } }
.pv-lbl { position: absolute; z-index: 2; transform: translate(-50%, -50%); pointer-events: none; opacity: 0; transition: opacity .6s var(--ease-out); transition-delay: var(--d, 0s); }
.pv-map.is-in .pv-lbl { opacity: 1; }
.pv-dot { display: block; width: 10px; height: 10px; margin: 0 auto; border-radius: 50%; background: var(--g900); box-shadow: 0 0 0 2px var(--gold); }
.pv-lbl b { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -6px); padding: .22rem .5rem; border-radius: 999px; background: rgba(10, 20, 14, .9); color: var(--n050); font: 800 .66rem/1.2 var(--sans); white-space: nowrap; }
.pv-lbl b small { margin-left: .3rem; font: inherit; color: var(--gold-2); }
.pv-lbl.home { opacity: 1; }
.pv-lbl.al b { left: -6px; transform: translate(0, -6px); }
.pv-lbl.ar b { left: auto; right: -6px; transform: translate(0, -6px); }
.pv-map-cta .i { width: 16px; height: 16px; }
.pv-lbl.home img { width: 44px; height: 44px; padding: 6px; border-radius: 50%; background: var(--g900); box-shadow: 0 0 0 2px var(--gold), 0 0 0 9px rgba(200, 161, 101, .22); }
.pv-lbl.home b { bottom: auto; top: 100%; transform: translate(-50%, 6px); font-family: var(--serif); font-size: .9rem; font-weight: 600; }
.pv-map-cta { position: absolute; z-index: 3; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .95rem; border-radius: 999px; background: var(--gold); color: var(--g900); font-size: .82rem; font-weight: 800; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); transition: transform .3s var(--ease-out); }
.pv-map:hover .pv-map-cta, .pv-map:focus-visible .pv-map-cta { transform: translateY(-2px); }
.pv-times { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-top: 1.6rem; }
@media (min-width: 540px) { .pv-times { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pv-times a { display: block; height: 100%; padding: .75rem .85rem; border: 1px solid var(--line-dark); border-radius: var(--r-md); transition: border-color .2s, background-color .2s; }
.pv-times a:hover, .pv-times a:focus-visible { border-color: var(--gold); background: rgba(200, 161, 101, .08); }
.pv-times b { display: block; font: 300 2rem/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: lining-nums; color: var(--n050); }
.pv-times b small { margin-left: .2rem; font-size: .78rem; font-weight: 800; letter-spacing: 0; color: var(--gold); }
.pv-times span { display: block; margin-top: .35rem; font-size: .78rem; font-weight: 700; color: var(--cream-70); }
.pv-vids-t { margin-top: 1.6rem; font: 700 .68rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.pv-vids { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-top: .7rem; }
@media (min-width: 540px) { .pv-vids { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pv-vids a { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--g800); }
.pv-vids img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.pv-vids a:hover img, .pv-vids a:focus-visible img { transform: scale(1.06); }
.pv-vids a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 13, 9, .85), rgba(6, 13, 9, 0) 60%); }
.pv-vids span { position: absolute; z-index: 1; left: .55rem; right: .55rem; bottom: .5rem; font-size: .74rem; font-weight: 800; line-height: 1.2; color: var(--n050); }
.pv-vids span .i { width: 22px; height: 22px; padding: 6px 5px 6px 7px; margin-bottom: .35rem; border-radius: 50%; background: var(--gold); color: var(--g900); display: block; }
.pv-vids small { display: block; font-size: .66rem; font-weight: 700; color: var(--gold-2); }
.pv-ent-acts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
@media (prefers-reduced-motion: reduce) {
  .pv-map .rt.draw { stroke-dasharray: none; }
  .pv-lbl { transition: none; }
  .pv-proys { animation: none; }
}
@media (max-width: 1023px) {
  html.js .tu-compra { scroll-margin-top: calc(66px + var(--tabs-h)); }
}
@media (max-width: 1023px) {
  html.js .nav.is-solid { background: var(--g900); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (max-width: 559px) { .pv-lbl.home b { display: none; } }

/* ---------------- Puerto Varas: por qué elegirlo, infraestructura y postales ---------------- */
.pv-porque .section-head h2 em, .pv-postales .section-head h2 em { font-style: italic; color: var(--gold-ink); }
.pv-postales .section-head h2 em { color: var(--gold); }
.pv-why { list-style: none; display: grid; gap: 1.6rem 2rem; }
@media (min-width: 720px) { .pv-why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pv-why { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pv-why li { display: grid; gap: .9rem; align-content: start; padding-top: 1.2rem; border-top: 1px solid var(--gold); }
.pv-why li > .i { width: 34px; height: 34px; color: var(--gold-ink); }
.pv-why h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); }
.pv-why p { margin-top: .45rem; color: var(--n600); font-size: .92rem; line-height: 1.6; }
.pv-infra { margin-top: clamp(2.2rem, 5vw, 3.4rem); padding: clamp(1.2rem, 3vw, 1.8rem); border-radius: var(--r-lg); background: var(--n100); }
.pv-infra h3 { font: 700 .74rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); }
.pv-infra ul { list-style: none; display: grid; gap: 1rem 1.6rem; margin-top: 1.1rem; }
@media (min-width: 720px) { .pv-infra ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pv-infra ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pv-infra li { display: flex; gap: .75rem; align-items: flex-start; }
.pv-infra li > .i { flex: none; width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--g900); color: var(--gold); }
.pv-infra strong { display: block; font-size: .95rem; color: var(--g900); }
.pv-infra span { display: block; margin-top: .2rem; font-size: .84rem; line-height: 1.5; color: var(--n600); }
.pv-post { display: grid; gap: 1rem; }
@media (min-width: 720px) { .pv-post { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; } }
.pv-post figure { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--g800); }
.pv-post img { width: 100%; height: 100%; object-fit: cover; }
.pv-post figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 13, 9, .9) 0%, rgba(6, 13, 9, .2) 50%, rgba(6, 13, 9, 0) 70%); }
.pv-post figcaption { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 1.1rem 1.2rem 1.2rem; color: var(--cream-80); font-size: .86rem; line-height: 1.5; }
.pv-post figcaption span { display: block; font: 700 .66rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.pv-post figcaption strong { display: block; margin: .3rem 0 .35rem; font: 500 clamp(1.6rem, 2.6vw, 2.1rem)/1.05 var(--serif); color: var(--n050); }
.pv-lanz { display: grid; gap: 1.2rem; align-items: center; margin-top: clamp(2rem, 4vw, 3rem); padding: clamp(1.3rem, 3vw, 2rem); border-radius: var(--r-lg); background: rgba(200, 161, 101, .1); border: 1px solid rgba(200, 161, 101, .4); }
@media (min-width: 900px) { .pv-lanz { grid-template-columns: minmax(0, 1fr) auto; gap: 2.4rem; } }
.pv-lanz-t { margin-top: .5rem; font: 500 clamp(1.5rem, 2.6vw, 2.1rem)/1.15 var(--serif); color: var(--n050); }
.pv-lanz p:last-child { margin-top: .5rem; color: var(--cream-70); font-size: .92rem; max-width: 60ch; }
.pv-lanz .btn .i { width: 18px; height: 18px; }
.pv-ref { margin-top: .7rem; font-size: .74rem; color: var(--cream-55); }

/* ---------------- Otros proyectos: invitación a cotizar (pestaña Puerto Varas) ---------------- */
.pv-otros .section-head h2 em { font-style: italic; color: var(--gold-ink); }
.otros { display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .otros { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.otro { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border-radius: var(--r-lg); background: var(--n050); box-shadow: var(--shadow-card); }
@media (min-width: 560px) { .otro { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.otro-art { position: relative; min-height: 170px; background: var(--g800); overflow: hidden; }
.otro-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.otro-foto { margin: 0; min-height: 200px; }
.otro-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.otro-foto::after { content: ""; position: absolute; inset: auto 0 0; height: 55%; background: linear-gradient(to top, rgba(10, 18, 14, .78), transparent); pointer-events: none; }
.otro-foto figcaption { position: absolute; z-index: 1; left: .85rem; right: .85rem; bottom: .7rem; display: flex; flex-direction: column; gap: .15rem; color: #fff; }
.otro-foto figcaption span { font: 600 .78rem/1.3 var(--sans); text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.otro-foto figcaption a { width: fit-content; font: 500 .62rem/1.3 var(--sans); color: rgba(255, 255, 255, .78); text-decoration: none; }
.otro-foto figcaption a:hover, .otro-foto figcaption a:focus-visible { color: #fff; text-decoration: underline; }
.otro-b { display: flex; flex-direction: column; gap: .55rem; padding: 1.2rem 1.3rem 1.3rem; }
.otro-meta { font: 700 .66rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.otro h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.otro-txt { font-size: .88rem; line-height: 1.55; color: var(--n600); }
.otro-dl { display: flex; gap: 1.3rem; margin-top: .2rem; }
.otro-dl dt { font: 700 .62rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--n500); }
.otro-dl dd { margin-top: .15rem; font: 600 1.15rem/1.1 var(--serif); color: var(--g900); font-variant-numeric: lining-nums; }
.otro-acts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .6rem; }
.otro-acts .btn { padding: .7rem 1rem; font-size: .86rem; }
/* Enlace al mapa "Descubre tu entorno" del proyecto (entorno.html) */
.link-entorno { display: inline-flex; align-items: center; gap: .45rem; align-self: flex-start; min-height: 44px; margin-top: .15rem; color: inherit; font-size: .88rem; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(200, 161, 101, .6); text-underline-offset: .22em; }
.link-entorno:hover { text-decoration-color: currentColor; }
.link-entorno .i { width: 1.05em; height: 1.05em; flex: none; color: var(--gold-ink); }

/* ---------------- Conoce cada proyecto (pestaña Proyectos; se arma desde el manifiesto) ---------------- */

.py { overflow: hidden; border: 1px solid var(--line-dark); border-radius: var(--r-lg); background: rgba(247, 245, 240, .03); }
.py-hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(300px, 40vw, 460px); background: var(--g800); }
.py-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.py-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 18, 12, .9) 0%, rgba(8, 18, 12, .45) 45%, rgba(8, 18, 12, 0) 75%); pointer-events: none; }
.py-hero-in { position: relative; z-index: 1; max-width: 62ch; padding: clamp(1.2rem, 3.5vw, 2.4rem); }
.py-hero h3 { margin-top: .35rem; font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.02; color: var(--n050); }
.py-hero h3 em { font-style: italic; color: var(--gold); }
.py-desc { margin-top: .7rem; font-size: clamp(.92rem, 1.4vw, 1.02rem); line-height: 1.6; color: rgba(247, 245, 240, .86); }
.py-cred { position: absolute; z-index: 1; top: .7rem; right: .85rem; display: flex; flex-direction: column; align-items: flex-end; gap: .1rem; max-width: 60%; text-align: right; font-size: .66rem; line-height: 1.3; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.py-cred span { font-weight: 600; }
.py-cred a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.py-cred a:hover, .py-cred a:focus-visible { color: #fff; text-decoration: underline; }
.py-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line-dark); }
.py-stats > div { padding: .9rem clamp(1rem, 2.5vw, 1.5rem); border-top: 1px solid var(--line-dark); }
.py-stats > div:nth-child(odd) { border-right: 1px solid var(--line-dark); }
@media (min-width: 720px) {
  .py-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .py-stats > div { border-top: 0; }
  .py-stats > div + div { border-left: 1px solid var(--line-dark); }
  .py-stats > div:nth-child(odd) { border-right: 0; }
}
.py-stats dt { font: 700 .64rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.py-stats dd { margin-top: .3rem; font: 500 clamp(1.25rem, 2.2vw, 1.6rem)/1.1 var(--serif); color: var(--n050); font-variant-numeric: lining-nums; }
.py-stats dd small { font: 600 .78rem/1 var(--sans); color: var(--cream-70); }
.py-body { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); padding: clamp(1.2rem, 3.5vw, 2.2rem); }
@media (min-width: 1000px) { .py-body { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: start; } }
.py-why { list-style: none; display: grid; gap: 1.2rem 1.6rem; }
@media (min-width: 620px) { .py-why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.py-why li { display: flex; gap: .8rem; align-items: flex-start; padding-top: 1rem; border-top: 1px solid rgba(200, 161, 101, .5); }
.py-why li > .i { flex: none; width: 30px; height: 30px; color: var(--gold); }
.py-why h4 { font: 500 1.3rem/1.2 var(--serif); color: var(--n050); }
.py-why p { margin-top: .3rem; font-size: .88rem; line-height: 1.55; color: var(--cream-70); }
.py-near { padding: 1.1rem 1.2rem 1.2rem; border-radius: var(--r-md); background: rgba(247, 245, 240, .05); }
.py-near h4 { font: 700 .7rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.py-near ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem .8rem; margin-top: .9rem; }
.py-near li b { display: block; font: 300 1.55rem/1 var(--sans); letter-spacing: -.02em; color: var(--n050); font-variant-numeric: lining-nums; }
.py-near li small { display: block; margin-top: .15rem; font-size: .68rem; color: var(--cream-55); }
.py-near li span { display: block; margin-top: .25rem; font-size: .8rem; font-weight: 700; color: var(--cream-70); }
.py-near > p { margin-top: .9rem; font-size: .72rem; color: var(--cream-55); }
.py-near-map { display: inline-flex; align-items: center; gap: .45rem; margin-top: .8rem; font-size: .86rem; font-weight: 700; color: var(--gold); text-decoration: none; }
.py-near-map .i { width: 18px; height: 18px; }
.py-near-map:hover, .py-near-map:focus-visible { text-decoration: underline; }
.py-acts { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0 clamp(1.2rem, 3.5vw, 2.2rem) clamp(1.2rem, 3.5vw, 2.2rem); }
@media (max-width: 519px) { .py-acts .btn { flex: 1 1 100%; justify-content: center; } }
@media (max-width: 719px) {
  .py-hero { display: block; min-height: 0; }
  .py-hero > img { position: relative; display: block; height: 210px; }
  .py-hero::after { bottom: auto; height: 210px; background: linear-gradient(to bottom, rgba(8, 18, 12, .45), rgba(8, 18, 12, 0) 35%, rgba(8, 18, 12, 0) 70%, rgba(8, 18, 12, .55)); }
  .py-hero-in { padding-top: 1.1rem; padding-bottom: .4rem; }
}

/* ---------------- Portada de Puerto Varas: formulario translúcido ---------------- */
.pv-lead {
  position: relative; display: grid; gap: .85rem; width: 100%; max-width: 400px; margin-top: 2.2rem;
  padding: clamp(1.2rem, 2.2vw, 1.6rem); border: 1px solid rgba(247, 245, 240, .22); border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(10, 20, 14, .42), rgba(10, 20, 14, .3) 55%, rgba(10, 20, 14, .48));
  -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .12);
  color: var(--n050); animation: fadeUp 1s var(--ease-out) .7s both;
}
.pv-lead-k { font: 700 .66rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); }
.pv-lead-t { margin-top: -.45rem; font: 500 clamp(1.45rem, 2.2vw, 1.75rem)/1.15 var(--serif); color: var(--n050); }
.pv-lead-f { display: grid; gap: .3rem; }
.pv-lead-f label { font-size: .74rem; font-weight: 700; color: rgba(247, 245, 240, .82); }
.pv-lead-f label small { font-weight: 500; color: rgba(247, 245, 240, .6); }
.pv-lead input:not([type="checkbox"]), .pv-lead select {
  width: 100%; min-height: 44px; padding: .6rem .8rem; border: 1px solid rgba(247, 245, 240, .26); border-radius: var(--r-sm);
  background: rgba(6, 13, 9, .28); color: var(--n050); font: inherit; font-size: .95rem;
  transition: border-color .2s, background-color .2s;
}
.pv-lead input::placeholder { color: rgba(247, 245, 240, .5); }
.pv-lead select { appearance: none; padding-right: 2.2rem; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 1.15rem) 52%, calc(100% - .8rem) 52%; background-size: 6px 6px; background-repeat: no-repeat; cursor: pointer; }
.pv-lead select option { background: var(--g900); color: var(--n050); }
.pv-lead select:hover, .pv-lead input:not([type="checkbox"]):hover { border-color: rgba(247, 245, 240, .42); }
.pv-lead select:focus, .pv-lead input:not([type="checkbox"]):focus { outline: none; border-color: var(--gold); background: rgba(6, 13, 9, .42); }
.pv-lead :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pv-lead input[aria-invalid="true"] { border-color: #F0A08C; }
.pv-lead-ok-c { display: flex; gap: .55rem; align-items: flex-start; font-size: .76rem; line-height: 1.4; color: rgba(247, 245, 240, .78); cursor: pointer; }
.pv-lead-ok-c input { flex: none; width: 18px; height: 18px; margin-top: .05rem; accent-color: var(--gold); }
.pv-lead-err { display: none; margin-top: -.2rem; font-size: .74rem; font-weight: 700; color: #F4B4A4; }
.pv-lead-err.is-shown { display: block; }
.pv-lead .btn { justify-content: center; width: 100%; }
.pv-lead-done {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: .9rem;
  padding: inherit; border-radius: inherit; background: rgba(8, 17, 12, .9);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pv-lead-done:focus { outline: none; }
.pv-lead.is-done > :not(.pv-lead-done) { visibility: hidden; }
.pv-lead-done .pv-lead-t { margin: 0; }
.pv-lead-done blockquote { padding: .8rem .9rem; border-left: 2px solid var(--gold); border-radius: var(--r-sm); background: rgba(247, 245, 240, .07); font-size: .84rem; line-height: 1.5; color: rgba(247, 245, 240, .88); }
.pv-lead-done .link-btn { align-self: center; color: var(--gold); }
@media (min-width: 1100px) {
  .pv-hero .pv-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
  .pv-lead { margin-top: 0; justify-self: end; }
  /* El formulario ocupa la esquina derecha: la pausa del video pasa a la izquierda */
  .pv-hero .hero-video-toggle { left: var(--gutter); right: auto; }
}
/* Sin desenfoque disponible: el fondo se oscurece algo más para que se lea */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .pv-lead { background: rgba(10, 20, 14, .72); } }
@media (prefers-reduced-motion: reduce) { .pv-lead { animation: none; } }

/* ---------------- Equipo en galería ----------------
   Tarjetas grandes en filas (4 en computador, 3 en tablet, 2 en celular); el saludo se reproduce en la misma tarjeta. */
.sellers.sellers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.sellers > li { min-width: 0; }
.sellers.sellers .member-cta { grid-column: 1 / -1; }
.sellers .member-cta h4 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.sellers .member-cta p { font-size: .9rem; }
@media (min-width: 600px) { .sellers.sellers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 960px) {
  /* Computador: 4 por fila; la tarjeta "Conversemos" ocupa el último lugar de la segunda fila */
  .sellers.sellers { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
  .sellers.sellers .member-cta { grid-column: auto; align-content: end; }
  .seller .seller-card { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
  .seller .seller-card:hover, .seller .seller-card:focus-visible { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(10, 20, 14, .6); }
  .seller-info strong { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) { .seller .seller-card { transition: none; } }
@media (max-width: 599px) {
  .team-mosaic-grid { gap: 4px; }
  .team-mosaic-brand a { gap: .35rem; padding: .3rem; font-size: .68rem; }
  .team-mosaic-brand strong { font-size: .86rem; }
  .team-photo .team-mosaic-brand img { width: 36px; }
}

/* ---------------- Tu casa: dibuja tu casa a escala sobre el lote ---------------- */
.casa { display: grid; gap: 1.2rem; margin-top: 1.8rem; }
@media (min-width: 960px) { .casa { grid-template-columns: minmax(300px, 340px) minmax(0, 1fr); gap: 1.6rem; align-items: start; } }
.casa-side { display: grid; gap: 1rem; align-content: start; }
.casa-pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .7rem; }
.casa-meter { padding: 1rem 1.1rem; border-radius: var(--r-lg); background: var(--g900); color: var(--n050); }
.casa-meter-k { font: 700 .66rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.casa-meter-v { margin-top: .35rem; font-size: .9rem; color: rgba(247, 245, 240, .78); }
.casa-meter-v strong { font: 500 2rem/1 var(--serif); color: var(--n050); font-variant-numeric: lining-nums; margin-right: .2rem; }
.casa-meter-v b { color: var(--n050); }
.casa-bar { height: 8px; margin-top: .75rem; border-radius: 999px; background: rgba(247, 245, 240, .14); overflow: hidden; }
.casa-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--gold); transition: width .25s var(--ease-out), background-color .2s; }
.casa-meter.is-over .casa-bar span { background: #E07A5F; }
.casa-meter-msg { margin-top: .6rem; font-size: .82rem; line-height: 1.4; color: rgba(247, 245, 240, .82); }
.casa-meter-msg.is-warn { color: #F4B4A4; font-weight: 700; }
.casa-add-k { margin-bottom: .5rem; font-size: .86rem; font-weight: 700; color: var(--g900); }
.casa-add-b { display: flex; flex-wrap: wrap; gap: .4rem; }
.casa-chip {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: .4rem .75rem .4rem .55rem;
  border: 1px solid var(--n200); border-radius: 999px; background: var(--white, #fff); color: var(--g900);
  font: 700 .8rem/1.1 var(--sans); cursor: pointer; transition: border-color .2s, background-color .2s;
}
.casa-chip .i { width: 16px; height: 16px; color: var(--gold-ink); }
.casa-chip small { font-weight: 500; color: var(--n600); }
.casa-chip:hover { border-color: var(--gold); background: #FBF8F2; }
.casa-chip:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
.casa-sel { display: grid; gap: .7rem; padding: .9rem 1rem; border: 1px solid var(--n200); border-radius: var(--r-lg); background: var(--white, #fff); }
.casa-sel-t { font: 500 1.25rem/1.2 var(--serif); color: var(--g900); }
.casa-sel-t small { font: 700 .78rem/1 var(--sans); color: var(--gold-ink); margin-left: .3rem; }
.casa-sel-f { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.casa-sel-f input { width: 100%; min-height: 44px; padding: .55rem .7rem; border: 1px solid #8C8474; border-radius: var(--r-sm); background: var(--white, #fff); font: inherit; font-variant-numeric: tabular-nums; }
.casa-sel-f input:focus { outline: 2px solid var(--gold-ink); outline-offset: 1px; }
.casa-sel-b { display: flex; flex-wrap: wrap; gap: .5rem; }
.casa-sel-b .btn { color: var(--g900); border-color: var(--n200); }
.casa-wa { justify-content: center; }
.casa-stage { position: relative; margin: 0; border: 1px solid #CFC7B6; border-radius: var(--r-lg); background: #EDE6DA; overflow: hidden; box-shadow: var(--shadow-card); }
.casa-stage:fullscreen { display: flex; flex-direction: column; border-radius: 0; }
.casa-stage:fullscreen .casa-svg { flex: 1; height: auto; }
.casa-svg { display: block; width: 100%; height: clamp(380px, 66vh, 640px); user-select: none; -webkit-user-select: none; }
.casa-svg.is-zoom { touch-action: none; cursor: grab; }
@media (max-width: 959px) { .casa-svg { height: clamp(340px, 100vw, 540px); } }
@media (max-width: 599px) {
  .casa-ctrl { right: .5rem; bottom: .5rem; gap: .3rem; }
  .casa-ctrl button { width: 38px; height: 38px; }
  .casa-vista { top: .5rem; left: .5rem; }
  .casa-lbl { left: .7rem; bottom: .7rem; max-width: calc(100% - 4rem); }
}
.casa-fondo { fill: #EDE6DA; }
.casa-lote { fill: #D3DDBE; }
.casa-grid path { fill: none; }
.casa-grid .g5 { stroke: rgba(255, 255, 255, .45); stroke-width: calc(var(--cu) * .1); }
.casa-grid .g10 { stroke: rgba(255, 255, 255, .8); stroke-width: calc(var(--cu) * .16); }
.casa-borde { fill: none; stroke: #6B6457; stroke-width: calc(var(--cu) * .22); stroke-linejoin: round; pointer-events: none; }
.casa-deslindes text { fill: #4B463D; font-family: var(--sans); font-weight: 700; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.casa-sombra { fill: rgba(54, 46, 34, .2); pointer-events: none; }
.casa-it { cursor: grab; touch-action: none; outline: none; }
.casa-it polygon, .casa-it line { stroke-linejoin: round; }
.casa-techo { stroke: rgba(0, 0, 0, .25); stroke-width: calc(var(--cu) * .08); }
.casa-vidrio { fill: #D7E7EE; stroke: #23211D; stroke-width: calc(var(--cu) * .12); pointer-events: none; }
.casa-puerta { stroke: #3A2C1A; stroke-width: calc(var(--cu) * .1); pointer-events: none; }
.casa-planta { stroke: #2C2A26; stroke-width: calc(var(--cu) * .2); }
.casa-viga { stroke: rgba(0, 0, 0, .35); stroke-width: calc(var(--cu) * .18); pointer-events: none; }
.casa-it:focus-visible .casa-techo, .casa-it:focus-visible .casa-planta { stroke: var(--gold-ink); stroke-width: calc(var(--cu) * .5); }
.casa-arbol { pointer-events: none; }
.casa-tronco { stroke: #6E5537; stroke-width: calc(var(--cu) * .45); stroke-linecap: round; }
.casa-copa { fill: #7E9A67; stroke: rgba(40, 60, 30, .25); stroke-width: calc(var(--cu) * .12); }
.casa-copa-luz { fill: rgba(255, 255, 255, .14); }
.casa-sel-borde { fill: none; stroke: var(--gold); stroke-width: calc(var(--cu) * .4); pointer-events: none; }
.casa-cota { stroke: #4B463D; stroke-width: calc(var(--cu) * .12); }
.casa-cota-t { fill: #4B463D; font-family: var(--sans); font-weight: 600; text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: #EDE6DA; stroke-width: calc(var(--cu) * .5); }
.casa-selg { pointer-events: none; }
.casa-it-h { pointer-events: auto; cursor: grab; touch-action: none; }
.casa-h { fill: var(--gold); stroke: var(--g900); stroke-width: calc(var(--cu) * .18); }
.casa-h-size { cursor: nwse-resize; }
.casa-h-ico { color: var(--g900); }
.casa-it-t { fill: var(--g900); font-family: var(--sans); font-weight: 800; text-anchor: middle; paint-order: stroke; stroke: rgba(247, 245, 240, .9); stroke-width: calc(var(--cu) * .6); stroke-linejoin: round; }
.casa-vista { position: absolute; top: .8rem; left: .8rem; display: flex; padding: 3px; border: 1px solid #CFC7B6; border-radius: 999px; background: rgba(247, 245, 240, .92); }
.casa-vista button { min-width: 64px; min-height: 36px; padding: .3rem .8rem; border: 0; border-radius: 999px; background: none; color: var(--g900); font: 700 .78rem/1 var(--sans); cursor: pointer; }
.casa-vista button[aria-pressed="true"] { background: var(--g900); color: var(--n050); }
.casa-lienzo { position: relative; }
.casa-stage:fullscreen .casa-lienzo { flex: 1; display: flex; flex-direction: column; }
.casa-ctrl { position: absolute; right: .8rem; bottom: .8rem; display: grid; gap: .4rem; }
.casa-ctrl button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #B9B1A2; border-radius: 6px; background: rgba(250, 248, 243, .95); color: var(--g900); cursor: pointer; }
.casa-ctrl button:hover { border-color: var(--g900); }
.casa-ctrl .i { width: 18px; height: 18px; }
.casa-vista button:focus-visible, .casa-ctrl button:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
.casa-lbl { position: absolute; left: 1rem; bottom: .9rem; font: 700 .66rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #4B463D; pointer-events: none; }
.casa-help { padding: .6rem .9rem; border-top: 1px solid rgba(10, 20, 14, .1); background: rgba(247, 245, 240, .7); font-size: .78rem; color: var(--n600); }
.casa-legal { margin-top: 1rem; font-size: .76rem; color: var(--n600); max-width: 80ch; }
.casa-noscript { padding: 1rem; border-radius: var(--r-lg); background: var(--n050); }
/* Celular y tablet: el lote va justo bajo el medidor; los controles para agregar y editar, después */
@media (max-width: 959px) {
  .casa-side { display: contents; }
  .casa-pick { order: 1; }
  .casa-meter { order: 2; }
  .casa-stage { order: 3; }
  .casa-add { order: 4; }
  .casa-sel { order: 5; }
  .casa-wa { order: 6; }
  .casa-meter { padding: .8rem 1rem; }
  .casa-meter-v strong { font-size: 1.6rem; }
}
.casa-faja { stroke: none; }
.casa-pisc-borde { fill: #ECE6DA; stroke: #A79F8F; stroke-width: calc(var(--cu) * .1); }
.casa-pisc-borde.is-bad { fill: #F4C4B6; stroke: #B23A1E; }
.casa-pisc-muro { fill: #4F9FB8; }
.casa-agua { fill: #79C3D8; stroke: rgba(30, 90, 110, .35); stroke-width: calc(var(--cu) * .1); }
.casa-brillo { stroke: rgba(255, 255, 255, .7); stroke-width: calc(var(--cu) * .18); stroke-linecap: round; pointer-events: none; }

/* ---------------- Acceso visible a "Tu casa": menú y aviso con imagen ---------------- */
.nl-new { display: inline-block; margin-left: .4rem; padding: .18rem .42rem; border-radius: 999px; background: var(--gold); color: var(--g900); font: 800 .56rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; vertical-align: .14em; }
.nav-links a.nl-casa { display: inline-flex; align-items: center; gap: .35rem; color: var(--gold); }
.nav-links a.nl-casa .i { width: 16px; height: 16px; }
.nav-links a.nl-casa:hover { color: var(--gold-2, #E2C48F); }
.menu-links a.menu-casa { display: inline-flex; align-items: center; gap: .5rem; color: var(--gold); }
.menu-links a.menu-casa .i { width: .9em; height: .9em; }
.casa-promo-in { display: grid; gap: 1.6rem; align-items: center; }
@media (min-width: 960px) { .casa-promo-in { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem; } }
.casa-promo-txt .kicker .pv-badge { margin-right: .5rem; }
.casa-promo-txt h2 { margin-top: .6rem; }
.casa-promo-txt .lead { margin-top: .9rem; max-width: 46ch; }
.casa-promo-txt .btn { margin-top: 1.4rem; }
.casa-promo-img { position: relative; margin: 0; }
.casa-promo-img > a { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); background: #EDE6DA; }
.casa-promo-img > a > img { display: block; width: 100%; height: auto; transition: transform .8s var(--ease-out); }
.casa-promo-img > a:hover > img { transform: scale(1.03); }
/* Miniatura del diseño en 3D sobre la foto real */
.casa-promo-mini { position: absolute; left: 4%; top: 6%; width: 36%; border: 3px solid var(--n050); border-radius: 12px; overflow: hidden; background: #EDE6DA; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); }
.casa-promo-mini img { display: block; width: 100%; height: auto; }
.casa-promo-mini b { display: flex; align-items: center; gap: .35rem; padding: .4rem .55rem; background: var(--g900); color: var(--n050); font: 800 .72rem/1.1 var(--sans); }
.casa-promo-mini .i { width: 14px; height: 14px; color: var(--gold); }
.casa-promo-cred { margin-top: .5rem; font-size: .7rem; line-height: 1.4; color: var(--n600); }
.casa-promo-cred a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.nl-casa .nl-c { display: none; }
@media (max-width: 1023px) {
  .nl-casa .nl-l, .nl-casa .nl-new { display: none; }
  .nl-casa .nl-c { display: inline; }
  .nav-links a.nl-casa::before { content: ""; position: absolute; top: .55rem; right: .25rem; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
}
.casa-cumbrera { stroke: rgba(0, 0, 0, .35); stroke-width: calc(var(--cu) * .16); stroke-linecap: round; pointer-events: none; }
.casa-camino { pointer-events: none; }
.casa-camino-ripio { fill: #DCCFB4; }
.casa-camino-borde { stroke: #B9A887; stroke-width: calc(var(--cu) * .14); }
.casa-poste { stroke: #6E5537; stroke-width: calc(var(--cu) * .5); stroke-linecap: round; }
.casa-poste-p { fill: #6E5537; }
.casa-deslindes text.is-acceso { fill: #6E5537; }
.casa-techo-op { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.casa-techo-op[hidden] { display: none; }
.casa-techo-k { font-size: .86rem; font-weight: 700; color: var(--g900); }
.casa-seg { display: flex; padding: 3px; border: 1px solid #8C8474; border-radius: 999px; background: var(--white); }
.casa-seg button { min-height: 34px; padding: .25rem .8rem; border: 0; border-radius: 999px; background: none; color: var(--g900); font: 700 .78rem/1 var(--sans); cursor: pointer; }
.casa-seg button[aria-pressed="true"] { background: var(--g900); color: var(--n050); }
.casa-seg button:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
.casa-chip-tg { margin-top: .5rem; }
.casa-chip-tg[aria-pressed="true"] { border-color: var(--g900); background: #EEF1E6; }
.casa-chip-tg[aria-pressed="false"] { opacity: .75; }
.casa-chip-tg[aria-pressed="false"] .i { color: var(--n600); }
/* Guía "Diseña tu casa" en el plano */
.plan-guia { display: flex; align-items: center; gap: .8rem; margin: .8rem 0; padding: .7rem .8rem .7rem .7rem; border: 1px solid var(--gold); border-radius: var(--r-lg); background: rgba(200, 161, 101, .14); color: var(--n050); animation: fadeUp .5s var(--ease-out) both; }
.plan-guia[hidden] { display: none; }
.plan-guia-ico { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--g900); }
.plan-guia-ico .i { width: 20px; height: 20px; }
.plan-guia p { flex: 1; font-size: .9rem; line-height: 1.4; }
.plan-guia strong { display: inline-block; margin-right: .35rem; color: var(--gold); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.plan-guia-x { flex: none; color: var(--n050); }
.plan.is-guia .lot.st-disponible { animation: guiaLote 1.6s ease-in-out 2; }
@keyframes guiaLote { 50% { filter: brightness(1.25); } }
.lot-guia-btn { order: -1; grid-column: 1 / -1; justify-content: center; background: var(--n050); color: var(--g900); border-color: var(--n050); }
.lot-guia-btn:hover { background: #fff; }
.lot-guia-btn .i { color: var(--gold-ink); }
.lot-guia-btn[hidden] { display: none !important; }
.lot-sim.is-guia { color: var(--gold); font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .plan-guia, .plan.is-guia .lot { animation: none; } }
/* Aviso: pasos y alternativa */
.casa-promo-acts { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin-top: 1.4rem; }
.casa-promo-acts .btn { margin-top: 0; }
.casa-promo-alt { font-size: .86rem; font-weight: 700; color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; }
.casa-promo-pasos { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin: 1.3rem 0 0; padding: 0; list-style: none; font-size: .84rem; font-weight: 700; color: var(--g900); }
.casa-promo-pasos li { display: inline-flex; align-items: center; gap: .45rem; }
.casa-promo-pasos b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--g900); color: var(--gold); font-size: .74rem; }
.casa-al-plano { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: .4rem; font-size: .84rem; font-weight: 700; color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; }
.casa-al-plano .i { width: 16px; height: 16px; }
/* Sol según la hora: barra bajo el lote y brújula */
.casa-sol { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; padding: .65rem .9rem; border-top: 1px solid rgba(10, 20, 14, .1); background: #F6F1E7; }
.casa-sol-k { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 800; color: var(--g900); }
.casa-sol-k .i { width: 18px; height: 18px; color: #C98A2B; }
.casa-sol-h { min-width: 3.2em; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--g900); }
.casa-sol input[type="range"] { flex: 1 1 140px; min-width: 120px; accent-color: #C98A2B; }
.casa-sol-play { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #B9B1A2; border-radius: 50%; background: var(--white); color: var(--g900); cursor: pointer; }
.casa-sol-play .i { width: 14px; height: 14px; }
.casa-sol-play.is-on { background: var(--g900); color: var(--gold); }
.casa-sol-play:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
.casa-sol .casa-seg button { padding-inline: .65rem; }
.casa-brujula { position: absolute; top: .8rem; right: .8rem; width: 56px; height: 56px; border: 1px solid #CFC7B6; border-radius: 50%; background: rgba(250, 248, 243, .92); pointer-events: none; }
.casa-brujula > span { position: absolute; left: 50%; top: 50%; margin: -9px 0 0 -9px; width: 18px; height: 18px; }
.casa-n { display: grid; place-items: center; font: 800 .7rem/1 var(--sans); color: var(--g900); }
.casa-solp { border-radius: 50%; background: radial-gradient(circle, #FFD45E 0 45%, rgba(255, 196, 70, .35) 46% 100%); }
.casa-solp[hidden] { display: none; }
.casa-brujula.is-noche { background: rgba(30, 40, 70, .85); border-color: #3C4A70; }
.casa-brujula.is-noche .casa-n { color: #E8ECF5; }
.casa-stage[data-luz="noche"] .casa-grid path { opacity: .3; }
.casa-stage[data-luz="noche"] .casa-deslindes text, .casa-stage[data-luz="noche"] .casa-cota-t { fill: #E8ECF5; stroke: #20283E; }
.casa-stage[data-luz="noche"] .casa-cota { stroke: #C9D0E0; }
.casa-stage[data-luz="noche"] .casa-it-t { fill: #F7F5F0; stroke: rgba(20, 28, 50, .85); }
.casa-stage[data-luz="noche"] .casa-lbl { color: #E8ECF5; }
.casa-vidrio.is-luz { stroke: #6B4E1F; }
@media (max-width: 599px) {
  .casa-brujula { top: .5rem; right: .5rem; width: 48px; height: 48px; }
  .casa-sol { gap: .5rem; padding: .6rem .7rem; }
  .casa-sol .casa-seg { width: 100%; justify-content: space-between; }
  .casa-sol .casa-seg button { flex: 1; }
}
.casa-deco { pointer-events: none; }
/* Tu casa compacta en computador (pedido del cliente): encabezado en una franja y la herramienta completa en pantalla */
@media (min-width: 960px) {
  .casa-sec { padding-block: 1.4rem 2rem; }
  .casa-head { display: grid; grid-template-columns: auto minmax(0, 52ch); align-items: end; justify-content: space-between; gap: .3rem 2.5rem; margin-bottom: 0; }
  .casa-head .kicker { grid-column: 1 / -1; margin: 0; }
  .casa-head h2 { margin: 0; font-size: clamp(1.7rem, 2.3vw, 2.3rem); line-height: 1.05; }
  .casa-head .lead { margin: 0; font-size: .9rem; line-height: 1.45; }
  .casa { --casa-h: max(470px, calc(100vh - 262px)); margin-top: 1rem; grid-template-columns: 300px minmax(0, 1fr); gap: 1.2rem; }
  .casa-side { gap: .55rem; max-height: var(--casa-h); overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; scrollbar-width: thin; }
  .casa-svg { height: calc(var(--casa-h) - 84px); }
  .casa-pick { gap: .5rem; }
  .casa-pick .field { gap: .25rem; }
  .casa-pick label { font-size: .78rem; }
  .casa .field select { min-height: 40px; padding-block: .4rem; font-size: .9rem; }
  .casa-al-plano { font-size: .78rem; }
  .casa-meter { padding: .65rem .9rem; }
  .casa-meter-v { margin-top: .2rem; font-size: .82rem; }
  .casa-meter-v strong { font-size: 1.55rem; }
  .casa-bar { margin-top: .45rem; height: 6px; }
  .casa-meter-msg { margin-top: .4rem; font-size: .76rem; }
  .casa-add-k { margin-bottom: .35rem; font-size: .8rem; }
  .casa-add-b { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; }
  .casa-chip { min-height: 34px; padding: .3rem .5rem .3rem .4rem; gap: .25rem; font-size: .74rem; border-radius: 10px; }
  .casa-chip .i { width: 14px; height: 14px; }
  .casa-chip small { display: none; }
  .casa-chip-tg { width: calc(50% - .3rem); margin-top: .3rem; vertical-align: top; }
  .casa-sel { gap: .45rem; padding: .6rem .75rem; }
  .casa-sel-t { font-size: 1.05rem; }
  .casa-sel-f { gap: .5rem; }
  .casa-sel-f .field { gap: .2rem; }
  .casa-sel-f label { font-size: .76rem; }
  .casa-sel-f input { min-height: 36px; padding: .35rem .6rem; }
  .casa-techo-k { font-size: .78rem; }
  .casa-seg button { min-height: 30px; padding: .2rem .65rem; font-size: .74rem; }
  .casa-sel { position: relative; }
  .casa-sel-t { padding-right: 5.2rem; }
  .casa-sel-b { position: absolute; top: .45rem; right: .55rem; gap: .3rem; }
  .casa-sel-b .btn { width: 32px; min-height: 32px; padding: 0; justify-content: center; border-radius: 8px; }
  .casa-sel-b .btn .i { margin: 0; }
  .casa-bt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .casa-wa { min-height: 42px; padding-block: .5rem; font-size: .86rem; }
  .casa-sol { padding: .45rem .8rem; gap: .4rem .7rem; }
  .casa-sol-play { width: 32px; height: 32px; }
  .casa-help { padding: .35rem .9rem; font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .casa-legal { margin-top: .6rem; font-size: .7rem; }
}
@media (min-width: 960px) {
  .casa-chip-tg { box-sizing: border-box; }
}
/* Ficha del equipo: teléfono y correo de cada asesor */
.sd-contacto { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin-top: .55rem; font-size: .86rem; }
.sd-contacto[hidden] { display: none; }
.sd-contacto a { display: inline-flex; align-items: center; gap: .4rem; min-height: 32px; color: inherit; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.sd-contacto a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sd-contacto .i { flex: none; width: 16px; height: 16px; color: var(--gold-ink); }
.fact-nota { display: block; margin-top: .15rem; font-size: .68rem; font-weight: 600; letter-spacing: 0; text-transform: none; opacity: .75; }

/* Cómo pagarlo: cotizador dentro del detalle del lote (fondo oscuro) */
.lot-pago { margin-top: 1rem; padding: .85rem .9rem .5rem; border: 1px solid var(--line-dark); border-radius: var(--r-lg, 16px); background: rgba(247, 245, 240, .04); }
.lot-pago[hidden] { display: none !important; }
.lot-pago-h { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.lot-pago-t { font: 700 .66rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.lot-pago-seg { display: flex; padding: 3px; border: 1px solid rgba(247, 245, 240, .22); border-radius: 999px; }
.lot-pago-seg[hidden] { display: none; }
.lot-pago-seg button { min-height: 30px; padding: .2rem .7rem; border: 0; border-radius: 999px; background: none; color: var(--cream-80); font: 700 .74rem/1 var(--sans); cursor: pointer; }
.lot-pago-seg button[aria-pressed="true"] { background: var(--gold); color: var(--g900); }
.lot-pago-seg button:focus-visible, .lot-pago-plazos button:focus-visible { outline: 2px solid var(--n050); outline-offset: 2px; }
.lot-pago-cfg { display: grid; gap: .55rem; margin-top: .75rem; }
.lot-pago-cfg[hidden] { display: none; }
.lot-pago-pie { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .3rem .6rem; font-size: .8rem; font-weight: 700; color: var(--cream-80); }
.lot-pago-pie output { justify-self: end; color: var(--n050); font-variant-numeric: tabular-nums; }
.lot-pago-pie input { grid-column: 1 / -1; width: 100%; accent-color: var(--gold); }
.lot-pago-plazos { display: flex; flex-wrap: wrap; gap: .3rem; }
.lot-pago-plazos button { min-height: 30px; padding: .2rem .6rem; border: 1px solid rgba(247, 245, 240, .22); border-radius: 999px; background: none; color: var(--cream-80); font: 700 .72rem/1 var(--sans); cursor: pointer; }
.lot-pago-plazos button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.lot-pago-dl { display: grid; gap: 0; margin-top: .7rem; }
.lot-pago-dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; padding-block: .45rem; border-top: 1px solid var(--line-dark); }
.lot-pago-dl > div:first-child { border-top: 0; }
.lot-pago-dl dt { font-size: .82rem; font-weight: 700; color: var(--cream-80); }
.lot-pago-dl dt small { display: block; margin-top: .1rem; font-size: .7rem; font-weight: 500; color: var(--cream-55); }
.lot-pago-dl dd { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lot-pago-dl .is-cuota dd { color: var(--gold); font-size: 1.05rem; }
.lot-pago-dl .is-total dt, .lot-pago-dl .is-total dd { color: var(--n050); }
.lot-pago-dl .is-total dd { font-size: 1.05rem; }
.lot-pago-nota { margin-top: .2rem; font-size: .72rem; color: var(--cream-55); }
.lot-pago .lot-sim { margin-top: .3rem; }
/* Barras de desplazamiento internas: delgadas y del color del panel (la blanca del navegador desentonaba) */
.lot-panel, .sdialog .sd-body, .sd-text { scrollbar-width: thin; scrollbar-color: rgba(200, 161, 101, .45) transparent; }
.casa-side { scrollbar-width: thin; scrollbar-color: rgba(10, 20, 14, .22) transparent; }
.lot-panel::-webkit-scrollbar, .casa-side::-webkit-scrollbar, .sd-text::-webkit-scrollbar { width: 6px; height: 6px; }
.lot-panel::-webkit-scrollbar-track, .casa-side::-webkit-scrollbar-track, .sd-text::-webkit-scrollbar-track { background: transparent; }
.lot-panel::-webkit-scrollbar-thumb, .sd-text::-webkit-scrollbar-thumb { background: rgba(200, 161, 101, .45); border-radius: 6px; }
.casa-side::-webkit-scrollbar-thumb { background: rgba(10, 20, 14, .22); border-radius: 6px; }

/* El entorno, más llamativo (pedido del cliente: que la gente pinche) */
.pv-map { cursor: pointer; }
.pv-map-in { transition: transform 1.2s var(--ease-out); }
.pv-map:hover .pv-map-in, .pv-map:focus-visible .pv-map-in { transform: scale(1.03); }
.pv-map::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 0 0 2px rgba(200, 161, 101, 0); transition: box-shadow .4s; pointer-events: none; }
.pv-map:hover::after, .pv-map:focus-visible::after { box-shadow: inset 0 0 0 2px rgba(200, 161, 101, .8); }
.pv-map-tag { position: absolute; z-index: 3; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .75rem; border-radius: 999px; background: rgba(10, 20, 14, .82); color: var(--n050); font: 800 .68rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pv-map-tag i { width: 8px; height: 8px; border-radius: 50%; background: #6FD08C; box-shadow: 0 0 0 0 rgba(111, 208, 140, .7); animation: pvVivo 1.8s ease-out infinite; }
@keyframes pvVivo { 70% { box-shadow: 0 0 0 7px rgba(111, 208, 140, 0); } 100% { box-shadow: 0 0 0 0 rgba(111, 208, 140, 0); } }
.pv-map-cta { left: 50%; right: auto; bottom: 18px; transform: translateX(-50%); gap: .65rem; padding: .75rem 1.35rem .75rem 1.05rem; font-size: .95rem; white-space: nowrap; animation: pvLlamar 2.4s ease-out infinite; }
.pv-map-cta > span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.pv-map-cta small { font-size: .7rem; font-weight: 700; opacity: .75; }
.pv-map-cta .i { position: static; flex: none; width: 20px; height: 20px; }
.pv-map:hover .pv-map-cta, .pv-map:focus-visible .pv-map-cta { transform: translateX(-50%) translateY(-3px); background: var(--gold-2); }
@keyframes pvLlamar { 0% { box-shadow: 0 10px 24px rgba(0, 0, 0, .45), 0 0 0 0 rgba(200, 161, 101, .65); } 70%, 100% { box-shadow: 0 10px 24px rgba(0, 0, 0, .45), 0 0 0 16px rgba(200, 161, 101, 0); } }
.pv-lbl.home img { animation: pvCasa 2.4s ease-out infinite; }
@keyframes pvCasa { 0% { box-shadow: 0 0 0 2px var(--gold), 0 0 0 0 rgba(200, 161, 101, .55); } 70%, 100% { box-shadow: 0 0 0 2px var(--gold), 0 0 0 22px rgba(200, 161, 101, 0); } }
.pv-ent-go { position: relative; overflow: hidden; }
.pv-ent-go::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-18deg); animation: pvBrillo 3.2s ease-in-out infinite; }
@keyframes pvBrillo { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@media (max-width: 539px) { .pv-map-cta { font-size: .86rem; padding: .65rem 1.1rem .65rem .9rem; } .pv-map-cta small { display: none; } }
@media (prefers-reduced-motion: reduce) { .pv-map-tag i, .pv-map-cta, .pv-lbl.home img, .pv-ent-go::after { animation: none; } .pv-map-in { transition: none; } }

/* Tu casa más armónica (pedido del cliente): columna izquierda holgada (lote, medidor, construcción elegida, envío)
   y "Agrega a tu parcela" como franja de herramientas sobre el dibujo */
@media (min-width: 960px) {
  .casa { grid-template-columns: 320px minmax(0, 1fr); grid-template-rows: auto auto auto auto 1fr; column-gap: 1.6rem; row-gap: .9rem; align-items: start; }
  .casa-side { display: contents; }
  .casa-pick { grid-column: 1; grid-row: 1; align-self: end; gap: .7rem; }
  .casa-meter { grid-column: 1; grid-row: 2; }
  .casa-sel { grid-column: 1; grid-row: 3; }
  .casa-wa { grid-column: 1; grid-row: 4; }
  .casa-add { grid-column: 2; grid-row: 1; align-self: end; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; padding: .55rem .6rem; border: 1px solid var(--n200); border-radius: var(--r-lg); background: var(--white); }
  .casa-add-k { margin: 0 .3rem 0 .2rem; font-size: .78rem; white-space: nowrap; }
  .casa-add-b { display: contents; }
  .casa-chip { min-height: 36px; padding: .35rem .7rem .35rem .5rem; font-size: .78rem; border-radius: 999px; }
  .casa-chip small { display: inline; }
  .casa-chip-tg { width: auto; margin-top: 0; }
  .casa-chip-tg:first-of-type { margin-left: auto; }
  .casa-chip-tg small { display: none; }
  .casa-stage { grid-column: 2; grid-row: 2 / 6; }
  .casa-svg { height: max(300px, calc(var(--casa-h) - 196px)); }
  .casa-meter { padding: .9rem 1.1rem; }
  .casa-meter-v strong { font-size: 1.8rem; }
  .casa-bar { height: 8px; margin-top: .6rem; }
  .casa-meter-msg { font-size: .8rem; }
  .casa-sel { gap: .65rem; padding: .9rem 1rem; }
  .casa-sel-t { font-size: 1.2rem; }
  .casa-sel-f input { min-height: 42px; }
  .casa-seg button { min-height: 32px; padding: .25rem .8rem; font-size: .78rem; }
  .casa-wa { min-height: 48px; font-size: .92rem; }
}

/* Plano comercial (Fundos 360°): foto satelital del PDF bajo los lotes, con botón Satélite / Plano */
.pl-sat { display: none; pointer-events: none; }
.plan-canvas.is-sat { background: #1A2317; }
.plan-canvas.is-sat .pl-sat { display: inline; }
.plan-canvas.is-sat .pl-base, .plan-canvas.is-sat .pl-predio, .plan-canvas.is-sat .pl-halo { display: none; }
.plan-canvas.is-sat .lot { fill-opacity: .72; }
.plan-canvas.is-sat .lot.st-vendida { fill-opacity: .5; }
.plan-canvas.is-sat .lot:hover, .plan-canvas.is-sat .lot.is-active, .plan-canvas.is-sat .lot:focus-visible { fill-opacity: 1; }
.pl-agua-l { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.pl-principal-r { fill: #EFE6D2; stroke: #5E4E3C; stroke-width: 1; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.pz-fondo { display: flex; padding: 4px; gap: 2px; border-right: 1px solid rgba(10, 20, 14, .1); }
.pz-fondo[hidden] { display: none; }
.plan-zoom .pz-fondo button { width: auto; height: 32px; padding: 0 .6rem; border-radius: 7px; border: 0; font: 700 .74rem/1 var(--sans); letter-spacing: .02em; color: var(--g900); }
.plan-zoom .pz-fondo button + button { border-left: 0; }
.plan-zoom .pz-fondo button[aria-pressed="true"] { background: var(--g900); color: #FFFFFF; }
.plan-zoom .pz-fondo + button { border-left: 0; }
@media (pointer: coarse) { .plan-zoom .pz-fondo button { width: auto; height: 36px; } }

/* Tu casa agroresidencial (pedido del cliente): máx. 2 casas, 50 % con frutales y conservación, casas de campo */
.casa-meter-casas { margin-top: .35rem; font-size: .76rem; font-weight: 700; letter-spacing: .02em; color: var(--gold); }
.casa-agro-box { display: grid; gap: .45rem; padding: .75rem .9rem; border: 1px solid #C9D3AE; border-radius: var(--r-lg); background: #F1F4E6; color: var(--g900); }
.casa-agro-k { font-size: .84rem; font-weight: 700; line-height: 1.35; }
.casa-agro-k .i { width: 16px; height: 16px; color: #4E7A3A; vertical-align: -3px; margin-right: .3rem; }
.casa-agro-k strong { font-weight: 800; }
.casa-agro-l { display: grid; gap: .25rem; margin: 0; padding: 0; list-style: none; font-size: .78rem; line-height: 1.35; color: var(--n600); }
.casa-agro-l li { display: flex; gap: .45rem; align-items: baseline; }
.casa-agro-l b { color: var(--g900); }
.casa-sw { flex: none; width: 10px; height: 10px; border-radius: 3px; transform: translateY(1px); }
.casa-sw-f { background: #C3CF95; box-shadow: inset 0 0 0 1.5px #7F9A55; }
.casa-sw-c { background: #A9BC86; box-shadow: inset 0 0 0 1.5px #4C6B43; }
.casa-agro-nota { display: flex; gap: .4rem; align-items: flex-start; margin: 0; padding-top: .4rem; border-top: 1px dashed #C9D3AE; font-size: .76rem; font-weight: 700; line-height: 1.35; color: #8A3B22; }
.casa-agro-nota .i { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.casa-chip:disabled { opacity: .45; cursor: not-allowed; }
.casa-chip:disabled:hover { border-color: var(--n200); background: var(--white); }
.casa-agro-f, .casa-agro-c { pointer-events: none; }
.casa-agro-lim { fill: none; stroke: #4E7A3A; stroke-width: calc(var(--cu) * .35); stroke-dasharray: calc(var(--cu) * 1.4) calc(var(--cu) * 1); pointer-events: none; }
.casa-agro-t { font-family: var(--sans); font-weight: 800; text-anchor: middle; fill: #2F4A25; paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-width: calc(var(--cu) * .5); pointer-events: none; letter-spacing: .02em; }
.casa-tabla { fill: none; stroke-width: calc(var(--cu) * .06); pointer-events: none; }
.casa-marco { fill: none; stroke: #F4EFE6; stroke-width: calc(var(--cu) * .12); pointer-events: none; }
.casa-pilar { fill: none; stroke: #6B4A2C; stroke-width: calc(var(--cu) * .3); stroke-linecap: round; pointer-events: none; }
.casa-corredor-p { stroke: rgba(40, 30, 20, .35); stroke-width: calc(var(--cu) * .1); }
@media (min-width: 960px) {
  .casa { grid-template-rows: auto auto auto auto auto 1fr; }
  .casa-agro-box { grid-column: 1; grid-row: 3; }
  .casa-sel { grid-row: 4; }
  .casa-wa { grid-row: 5; }
  .casa-stage { grid-row: 2 / 7; }
}
@media (max-width: 959px) {
  .casa-agro-box { order: 4; }
}

/* Trabaja con nosotros: vende tu campo y proveedores (dos formularios lado a lado en computador) */
.trabaja-grid { display: grid; gap: 1.2rem; }
.mini-form { position: relative; display: grid; gap: .9rem; align-content: start; padding: 1.3rem; border: 1px solid var(--n200); border-radius: var(--r-xl, 20px); background: var(--white, #fff); box-shadow: 0 18px 40px -30px rgba(10, 20, 14, .45); scroll-margin-top: calc(var(--nav-h, 72px) + var(--tabs-h, 0px) + 16px); }
.mini-head { display: flex; gap: .9rem; align-items: flex-start; }
.mini-ico { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--g900); color: var(--gold); }
.mini-ico .i { width: 22px; height: 22px; }
.mini-head h3 { font: 500 1.5rem/1.15 var(--serif); color: var(--g900); }
.mini-head h3 em { color: var(--gold-ink); }
.mini-head p { margin-top: .35rem; font-size: .9rem; line-height: 1.5; color: var(--n600); }
.mini-fields { display: grid; gap: .7rem .8rem; }
.mini-fields textarea { min-height: 64px; resize: vertical; }
.mini-check { font-size: .84rem; }
.mini-act { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.mini-mail { font-size: .84rem; font-weight: 700; color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.mini-ok { position: absolute; inset: 0; z-index: 2; display: grid; align-content: center; justify-items: start; gap: .8rem; padding: 1.4rem; border-radius: inherit; background: rgba(255, 255, 255, .97); }
.mini-ok[hidden] { display: none; }
.mini-ok-k { font: 500 1.4rem/1.2 var(--serif); color: var(--g900); }
.mini-ok-msg { padding: .8rem .9rem; border-radius: 12px; background: #F3EEE4; font-size: .88rem; line-height: 1.5; color: var(--n800, #2B2A27); }
@media (min-width: 600px) { .mini-fields { grid-template-columns: 1fr 1fr; } .mini-wide { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .trabaja-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; } .mini-form { padding: 1.6rem; } }

.field-nota { margin-top: -.3rem; font-size: .8rem; line-height: 1.4; color: var(--n600); }
.field-nota.is-aviso { color: #9A5B12; font-weight: 700; }

/* Más proyectos: tarjeta con emblema al estilo de los logos de los proyectos (crema, línea y sol dorado) y datos abajo */
.mp-grid { display: grid; gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .mp-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); } }
.mp-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #E6E0D3; border-radius: 22px; background: var(--white, #fff); box-shadow: 0 18px 40px -32px rgba(10, 20, 14, .5); transition: transform .3s var(--ease-out), box-shadow .3s; }
.mp-card:hover { transform: translateY(-3px); box-shadow: 0 24px 46px -30px rgba(10, 20, 14, .55); }
.mp-emb { display: flex; flex-direction: column; align-items: center; padding: 1.3rem 1rem 1.1rem; background: #FAF7F1; border-bottom: 1px solid #EEE8DC; text-align: center; }
.emb-dib { display: block; width: 100%; max-width: 250px; height: auto; }
.emb-pre { display: flex; align-items: center; justify-content: center; gap: .55rem; margin: .1rem 0 0; font: 600 .58rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: #2E3A2C; }
.emb-pre::before, .emb-pre::after { content: ""; width: 32px; height: 1px; background: #2E3A2C; opacity: .55; }
.emb-n { margin: .35rem 0 .05rem; font: 500 1.5rem/1.08 var(--serif); letter-spacing: .2em; text-transform: uppercase; color: #22301F; text-wrap: balance; }
.emb-o { display: block; width: 80px; height: 10px; margin: .3rem auto .35rem; }
.emb-l { margin: 0; font: 600 .52rem/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #4A5246; }
.mp-body { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; flex: 1; min-width: 0; padding: 1rem 1.2rem 1.2rem; }
.mp-body .mp-k { display: flex; gap: .35rem; align-items: flex-start; margin: 0; font-size: .8rem; font-weight: 700; line-height: 1.35; color: var(--g900); }
.mp-k .i { flex: none; width: 15px; height: 15px; margin-top: 1px; color: var(--gold-ink); }
.mp-body p { margin: 0; font-size: .86rem; line-height: 1.5; color: var(--n600); }
.mp-estado { padding: .2rem .6rem; border-radius: 999px; background: rgba(200, 161, 101, .2); font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.mp-datos { display: flex; flex-wrap: wrap; gap: .35rem; margin: .15rem 0 .8rem; padding: 0; list-style: none; }
.mp-datos li { padding: .18rem .6rem; border-radius: 999px; background: #F1EEE6; font-size: .7rem; font-weight: 700; color: var(--g900); }
.mp-cta { display: inline-flex; align-items: center; gap: .45rem; margin-top: auto; min-height: 44px; font-size: .86rem; font-weight: 800; color: var(--gold-ink); text-decoration: none; }
.mp-cta .i { width: 17px; height: 17px; }
.mp-cta .i-go { width: 15px; height: 15px; transition: transform .25s; }
.mp-cta:hover .i-go { transform: translateX(3px); }
.mp-cta:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .mp-card, .mp-card:hover { transition: none; transform: none; } }
@media (max-width: 599px) {
  .mp-grid { display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter, 16px)); padding: 0 var(--gutter, 16px) .6rem; scroll-padding: 0 var(--gutter, 16px); scrollbar-width: thin; }
  .mp-card { flex: 0 0 84%; scroll-snap-align: start; }
}
@media (min-width: 600px) { .mp-emb { min-height: 282px; justify-content: center; } }

/* Fundos en todo Chile (la pestaña Proyectos; ganó la opción vertical en la votación del equipo, oct-2026): a la
   izquierda el mapa largo y fijo de Chile con un punto y un rótulo por fundo, a la derecha la galería de norte a sur por
   región; tocar un fundo abre su ficha en una ventana. Paleta Arena (elegida por el cliente). */
html.js[data-vista="proyectos"] main { padding-top: var(--nav-h); }
@media (max-width: 1023px) { html.js[data-vista="proyectos"] main { padding-top: calc(var(--nav-h) + var(--tabs-h)); } }
.mas-proyectos { padding-top: clamp(1.2rem, 3vw, 2rem); }
.mas-proyectos .section-head { margin-bottom: 1.2rem; }
.mas-proyectos .section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.mas-proyectos .section-head .lead { font-size: .94rem; max-width: 62ch; }
@media (min-width: 980px) {
  .mas-proyectos .section-head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 3rem; align-items: end; max-width: none; }
  .mas-proyectos .section-head .kicker, .mas-proyectos .section-head h2 { grid-column: 1; }
  .mas-proyectos .section-head .lead { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
}
.mch { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 18px; padding: clamp(14px, 3vw, 26px); border-radius: 22px; background: linear-gradient(160deg, #F7F2E8, #EDE4D2); color: var(--g900); }
.mch[hidden] { display: none; }
.mch-mapa { position: relative; min-width: 0; }
.mch-band { display: block; width: 100%; height: auto; overflow: hidden; }
.mch-band text { font-family: var(--sans); }
.mch-reg { fill: #A9B995; stroke: #F3ECDF; stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill .35s; }
.mch-reg.is-con { fill: #7C9768; }
.mch-reg.is-on { fill: #3E5D3F; }
.mch-zlat { stroke: #5E6559; stroke-opacity: .28; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.mch-hlat { font-weight: 700; font-size: calc(var(--fs, 1) * 12px); fill: #8A6430; }
.mch-pin { cursor: pointer; }
.mch-pin circle { fill: #FBF7EE; stroke: #24382A; stroke-width: 2; vector-effect: non-scaling-stroke; transition: transform .2s; transform-box: fill-box; transform-origin: center; }
.mch-pin.is-main circle { fill: #C8A165; stroke: #FFFFFF; }
.mch-pin.is-on circle { stroke: #8A6430; stroke-width: 3; }
.mch-pin.is-on circle, .mch-pin:hover circle { transform: scale(1.45); }
.mch-rot { cursor: pointer; }
.mch-rot polyline { fill: none; stroke: #7A5D33; stroke-opacity: .4; stroke-width: 1; vector-effect: non-scaling-stroke; }
.mch-rot.is-on polyline { stroke-opacity: .95; stroke-width: 1.6; }
.mch-rot text { font: 600 calc(var(--fs, 1) * 14px) var(--serif); fill: #6A5332; paint-order: stroke; stroke: #F7F2E8; stroke-width: calc(var(--fs, 1) * 3.5px); stroke-linejoin: round; transition: fill .2s; }
.mch-rot.is-on text { fill: #1C2A1F; font-weight: 700; font-size: calc(var(--fs, 1) * 15.5px); }
.mch-band .ta-fin { text-anchor: end; }
.mch-band .ta-ini { text-anchor: start; }
.mch-der { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mch-fila-t { margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--n600); }
.mch-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 4px; list-style: none; }
.mch-grupo { grid-column: 1 / -1; margin: .8rem 0 -.2rem; padding-top: .7rem; border-top: 1px solid rgba(122, 93, 51, .25); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.mch-grupo:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.mch-tile { position: relative; }
.mch-tile-b { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; background: #FAF7F1; color: #22301F; text-align: center; cursor: pointer; box-shadow: 0 0 0 1px rgba(28, 42, 31, .08), 0 8px 20px -14px rgba(0, 0, 0, .35); transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .28s; }
.mch-art { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; padding: 8px; }
.mch-art .emb-dib { width: 78%; height: auto; margin-bottom: -2px; }
.mch-art .emb-pre { font-size: .5rem; }
.mch-art .emb-pre::before, .mch-art .emb-pre::after { width: 20px; }
.mch-art .emb-n { margin: .2rem 0 0; font-size: 1.08rem; letter-spacing: .14em; }
.mch-sello { position: absolute; top: 8px; left: 8px; z-index: 1; display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 999px; background: #C8A165; color: #0A140E; font-size: .62rem; font-weight: 800; }
.mch-sello .i { width: 13px; height: 13px; }
/* Al pasar el mouse: la tarjeta se eleva con borde dorado y asoma "Ver ficha" en la esquina */
.mch-info { position: absolute; top: 8px; right: 8px; z-index: 2; padding: .25rem .6rem; border-radius: 999px; background: #22301F; color: #FBF7EE; font-size: .66rem; font-weight: 800; opacity: 0; visibility: hidden; transform: translateY(-3px); transition: opacity .2s, transform .25s, visibility .2s; }
.mch-tile.is-on .mch-tile-b { box-shadow: 0 0 0 3px #C8A165; }
.mch-tile-b:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.mch-tile-sub { margin: .5rem .2rem 0; font-size: .74rem; color: var(--n600); }
.mch-tile-sub b { display: block; font: 600 1rem var(--serif); color: var(--g900); }
@media (hover: hover) and (pointer: fine) {
  .mch-tile:hover, .mch-tile:focus-within { z-index: 5; }
  .mch-tile:hover .mch-tile-b, .mch-tile-b:focus-visible { transform: translateY(-5px); box-shadow: 0 0 0 2px #C8A165, 0 12px 18px -12px rgba(0, 0, 0, .45); }
  .mch-tile:hover .mch-info, .mch-tile-b:focus-visible .mch-info { opacity: 1; visibility: visible; transform: none; }
}
@media (min-width: 980px) {
  .mch { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mch-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mch-art .emb-n { font-size: .9rem; letter-spacing: .1em; }
}
/* Ficha del fundo: ventana sobre la página (pedido del cliente) con el estilo de "Conoce cada proyecto" (.py) y flechas a
   los costados para pasar al fundo anterior o siguiente */
.mch-ficha { --pw: min(1120px, calc(100vw - 152px)); --gut: calc((100vw - var(--pw)) / 2); inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--n050); overflow: hidden; }
.mch-ficha[open] { display: block; animation: dialogIn .5s var(--ease-out); }
.mch-ficha::backdrop { background: rgba(6, 13, 9, .82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.mf-scroll { width: var(--pw); height: calc(100dvh - 24px); margin: 12px auto; border-radius: var(--r-lg); background: var(--g900); box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .8); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(247, 245, 240, .25) transparent; }
.mf-flecha { position: absolute; top: 50%; z-index: 4; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; border: 1px solid rgba(247, 245, 240, .35); border-radius: 50%; background: rgba(10, 20, 14, .62); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background .2s, border-color .2s; }
.mf-flecha.is-prev { left: calc(var(--gut) - 62px); }
.mf-flecha:not(.is-prev) { right: calc(var(--gut) - 62px); }
.mf-flecha.is-prev .i { transform: scaleX(-1); }
.mf-flecha .i { width: 20px; height: 20px; }
.mf-flecha:hover { background: rgba(10, 20, 14, .85); border-color: var(--gold); }
.mf-flecha:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.mf-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 clamp(1.2rem, 3.5vw, 2.2rem); padding: 1rem 0 clamp(1.2rem, 3.5vw, 2rem); border-top: 1px solid var(--line-dark); }
.mf-nav button { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .3rem .4rem; border: 0; background: none; color: var(--n050); font: 600 1rem/1.2 var(--serif); text-align: left; cursor: pointer; }
.mf-nav button:last-child { text-align: right; }
.mf-nav button small { display: block; font: 700 .62rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.mf-nav button:first-child .i { transform: scaleX(-1); }
.mf-nav .i { flex: none; width: 18px; height: 18px; color: var(--gold); }
.mf-nav button:hover { color: var(--gold); }
.mf-nav button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.mf-cuenta { font-size: .74rem; font-weight: 700; color: var(--cream-70); white-space: nowrap; }
@media (max-width: 640px) {
  .mch-ficha { --pw: 100vw; }
  .mf-scroll { height: 100dvh; margin: 0; border-radius: 0; }
  .mf-flecha { top: auto; bottom: 14px; margin-top: 0; width: 44px; height: 44px; }   /* en celular, abajo para no tapar la foto */
  .mf-flecha.is-prev { left: 14px; }
  .mf-flecha:not(.is-prev) { right: 14px; }
  .mf-nav { padding-bottom: 76px; }
  .mf-cuenta { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mch-ficha[open] { animation: none; } }
.mch-ficha .py { border: 0; border-radius: 0; }
.mch-ficha .kicker { color: var(--gold); }
/* Fotos claras (playa, cielo): degradado más alto y sombra suave para que el texto se lea */
.mch-ficha .py-hero::after { background: linear-gradient(to top, rgba(8, 18, 12, .92) 0%, rgba(8, 18, 12, .6) 45%, rgba(8, 18, 12, .1) 80%); }
.mch-ficha .py-hero-in { text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
.mch-ficha .py-cred { left: .85rem; right: auto; align-items: flex-start; text-align: left; }
.mch-ficha .mf-x { top: 22px; right: calc(var(--gut) + 10px); }
@media (max-width: 640px) { .mch-ficha .mf-x { top: 10px; right: 10px; } }
.mf-x { position: absolute; top: 10px; right: 10px; z-index: 5; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(247, 245, 240, .35); border-radius: 50%; background: rgba(10, 20, 14, .55); color: #fff; cursor: pointer; backdrop-filter: blur(4px); }
.mf-x .i { width: 18px; height: 18px; }
.mf-x:hover { background: rgba(10, 20, 14, .8); }
.mf-x:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.mf-lema { margin-top: .3rem; font: italic 500 1.15rem/1.3 var(--serif); color: var(--gold); }
.mf-mini { display: flex; gap: 8px; overflow-x: auto; padding: .8rem clamp(1rem, 2.5vw, 1.5rem); border-bottom: 1px solid var(--line-dark); scrollbar-width: thin; scrollbar-color: rgba(247, 245, 240, .25) transparent; }
.mf-mini button { flex: 0 0 96px; height: 62px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 10px; background: var(--g800); cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s; }
.mf-mini button:hover { opacity: 1; }
.mf-mini img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mf-mini button[aria-pressed="true"] { border-color: var(--gold); opacity: 1; }
.mf-mini button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.mf-pronto { display: flex; align-items: center; gap: .5rem; margin: 0; padding: .8rem clamp(1rem, 2.5vw, 1.5rem); border-bottom: 1px solid var(--line-dark); font-size: .8rem; color: var(--cream-70); }
.mf-pronto .i { width: 16px; height: 16px; color: var(--gold); }
/* Sin fotos: el emblema del fundo en un recuadro crema junto al texto */
.py-hero.is-emb { display: grid; align-items: center; min-height: 0; background: var(--g800); }
.py-hero.is-emb::after { display: none; }
.mf-emb { display: grid; place-items: center; margin: clamp(1.2rem, 3.5vw, 2.4rem) clamp(1.2rem, 3.5vw, 2.4rem) 0; aspect-ratio: 16 / 9; border-radius: var(--r-md); background: #FAF7F1; }
.mf-emb .emb-dib { width: 72%; height: auto; }
@media (min-width: 900px) {
  .py-hero.is-emb { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); }
  .py-hero.is-emb .mf-emb { grid-column: 2; grid-row: 1; margin: clamp(1.2rem, 3.5vw, 2.4rem) clamp(1.2rem, 3.5vw, 2.4rem) clamp(1.2rem, 3.5vw, 2.4rem) 0; }
  .py-hero.is-emb .py-hero-in { grid-column: 1; grid-row: 1; }
}
.mch-ley { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; align-items: center; margin: .8rem 0 0; font-size: .74rem; font-weight: 700; color: var(--n600); }
.mch-ley[hidden] { display: none; }
.mch-ley-p { display: inline-flex; align-items: center; gap: .4rem; }
.mch-pt { width: 10px; height: 10px; border-radius: 50%; background: #FBF7EE; box-shadow: 0 0 0 1.5px #24382A; }
.mch-pt.is-main { background: #C8A165; box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px rgba(36, 56, 42, .3); }
.mch-fuente { margin-left: auto; font-weight: 600; font-size: .68rem; opacity: .85; }
@media (max-width: 767px) { .mch-fuente { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .mch-tile-b, .mch-reg { transition: none; } .mch-tile:hover .mch-tile-b { transform: none; } }
/* Campo trampa de los formularios (bots): fuera de la vista y del teclado */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* =============================================================
   Información legal: enlaces del pie y páginas privacidad.html, cookies.html y aviso-legal.html
   (banner de cookies: lib/analitica.js, con sus propios estilos)
   ============================================================= */
.footer-legal { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; width: 100%; }
.footer-legal a { color: var(--cream-70); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.footer-legal a:hover { color: var(--gold); }
.legal-page { background: var(--n050); color: var(--n800); }
.lg-top { background: var(--g900); color: var(--n050); }
.lg-top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.lg-top .brand-word { display: block; }
.lg-back { color: var(--cream-80); font-weight: 700; font-size: .9rem; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.lg-back:hover { color: var(--gold); }
.lg { max-width: 820px; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.lg-kicker { font: 700 .72rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .8rem; }
.lg h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.3rem, 6vw, 3.4rem); line-height: 1.05; color: var(--g900); }
.lg-fecha { color: var(--n600); font-size: .88rem; margin-top: .6rem; }
.lg-intro { font-size: 1.08rem; margin-top: 1.6rem; }
.lg h2 { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; line-height: 1.15; color: var(--g900); margin: 2.4rem 0 .7rem; scroll-margin-top: 1rem; }
.lg p { margin-top: .8rem; }
.lg ul { margin: .8rem 0 0; padding-left: 1.2rem; display: grid; gap: .5rem; list-style: disc; }
.lg a:not(.btn) { color: var(--g700); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.lg a:not(.btn):hover { color: var(--gold-ink); }
.lg .btn { margin-top: .2rem; }
.lg-tabla { margin-top: 1rem; overflow-x: auto; border: 1px solid var(--line-light); border-radius: 10px; background: var(--white); }
.lg table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
.lg th, .lg td { text-align: left; vertical-align: top; padding: .7rem .9rem; border-bottom: 1px solid var(--line-light); }
.lg th { font: 700 .72rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--n600); background: var(--n100); }
.lg tr:last-child td { border-bottom: 0; }
.lg td:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84rem; white-space: nowrap; }
.lg-foot { background: var(--g900); color: var(--cream-70); font-size: .85rem; padding: 1.6rem 0 calc(1.6rem + env(safe-area-inset-bottom)); }
.lg-foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 2rem; }
.lg-foot nav { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; }
.lg-foot a { color: var(--cream-80); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.lg-foot a:hover { color: var(--gold); }

/* =============================================================
   Fotos en grande: botón en la foto de la ficha y visor a pantalla completa (Visor en main.js)
   ============================================================= */
.py-hero > img { cursor: zoom-in; }
.py-zoom { position: absolute; z-index: 2; right: .85rem; bottom: .85rem; display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 .9rem; border: 1px solid rgba(247, 245, 240, .38); border-radius: 999px; background: rgba(10, 20, 14, .6); color: #fff; font: 700 .8rem/1 var(--sans); cursor: pointer; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.py-zoom .i { width: 16px; height: 16px; }
.py-zoom small { font-weight: 600; color: rgba(255, 255, 255, .72); }
.py-zoom:hover { background: rgba(10, 20, 14, .85); border-color: var(--gold); }
.py-zoom:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 719px) {
  .py-zoom { top: calc(210px - 44px - .6rem); bottom: auto; right: .6rem; padding: 0 .75rem; }
  .py-zoom span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
html.vz-abierto { overflow: hidden; }
.vz { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #050a07; color: #fff; overscroll-behavior: contain; }
.vz::backdrop { background: rgba(0, 0, 0, .92); }
.vz[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.vz-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: calc(.6rem + env(safe-area-inset-top)) 1rem .6rem; }
.vz-cuenta { font: 700 .82rem/1 var(--sans); letter-spacing: .08em; color: rgba(255, 255, 255, .78); }
.vz-x { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; }
.vz-x .i { width: 18px; height: 18px; }
.vz-fig { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; margin: 0; padding: 0 clamp(0px, 5vw, 88px) calc(.8rem + env(safe-area-inset-bottom)); }
.vz-img { width: 100%; height: 100%; min-height: 0; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.vz-cap { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem .8rem; padding: .7rem 1rem 0; text-align: center; font-size: .9rem; color: rgba(255, 255, 255, .85); }
.vz-cap small { font-size: .74rem; color: rgba(255, 255, 255, .6); }
.vz-flecha { position: absolute; top: 50%; right: clamp(.4rem, 1.5vw, 1.4rem); transform: translateY(-50%); display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; background: rgba(10, 20, 14, .55); color: #fff; cursor: pointer; }
.vz-flecha.is-prev { right: auto; left: clamp(.4rem, 1.5vw, 1.4rem); }
.vz-flecha.is-prev .i { transform: rotate(180deg); }
.vz-flecha .i { width: 20px; height: 20px; }
.vz-x:hover, .vz-flecha:hover { background: rgba(255, 255, 255, .14); border-color: var(--gold); }
.vz-x:focus-visible, .vz-flecha:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.vz.is-una .vz-flecha, .vz.is-una .vz-cuenta { visibility: hidden; }
@media (max-width: 719px) { .vz-flecha { top: auto; bottom: calc(3.4rem + env(safe-area-inset-bottom)); width: 44px; height: 44px; transform: none; } }

/* =============================================================
   Comparador de lotes y "Mi selección" (enlace personal): ventana sobre el plano
   ============================================================= */
html.cmp-abierto { overflow: hidden; }
.cmp { width: min(1080px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: var(--r-lg); background: var(--n050); color: var(--g900); box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .8); overflow: hidden; }
.cmp[open] { display: flex; animation: dialogIn .45s var(--ease-out); }
.cmp::backdrop { background: rgba(6, 13, 9, .78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cmp-in > * { flex-shrink: 0; }
.cmp-in { display: flex; flex-direction: column; width: 100%; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.cmp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: clamp(1.1rem, 3vw, 1.6rem) clamp(1rem, 3vw, 1.8rem) 1.1rem; background: var(--g800); color: var(--n050); }
.cmp-head .kicker { color: var(--gold); margin: 0 0 .3rem; }
.cmp-head h2 { margin: 0; font: 600 clamp(1.6rem, 3.6vw, 2.2rem)/1.08 var(--serif); text-wrap: balance; }
.cmp-asesor { display: flex; align-items: center; gap: .7rem; margin-top: .8rem; }
.cmp-asesor img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 2px solid var(--gold); background: var(--g700); }
.cmp-asesor p { margin: 0; font-size: .9rem; color: var(--cream-80); line-height: 1.3; }
.cmp-asesor b { color: var(--n050); }
.cmp-asesor span { display: block; font-size: .8rem; color: var(--cream-55); }
.cmp-x { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(247, 245, 240, .3); border-radius: 50%; background: transparent; color: var(--n050); cursor: pointer; }
.cmp-x .i { width: 18px; height: 18px; }
.cmp-x:hover { border-color: var(--gold); background: rgba(247, 245, 240, .08); }
.cmp-x:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.cmp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .9rem clamp(1rem, 3vw, 1.8rem) 0; }
.cmp-chips p { margin: 0 .3rem 0 0; font-size: .82rem; font-weight: 700; color: var(--n600); }
.cmp-chip { min-height: 36px; padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line-light); background: var(--white); font-size: .82rem; font-weight: 700; color: var(--g900); cursor: pointer; }
.cmp-chip[aria-pressed="true"] { background: var(--g800); border-color: var(--g800); color: var(--n050); }
.cmp-chip:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
.cmp-scroll { overflow-x: auto; padding: 1rem clamp(.4rem, 2vw, 1.2rem) .4rem; scrollbar-width: thin; }
.cmp-scroll:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: -2px; }
.cmp-tabla { --lab: 128px; width: 100%; min-width: calc(var(--lab) + var(--n, 3) * 170px); border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: .9rem; }
.cmp-tabla col, .cmp-corner, .cmp-tabla tbody th { width: var(--lab); }
.cmp-tabla th, .cmp-tabla td { padding: .7rem .7rem; vertical-align: top; text-align: left; }
.cmp-tabla tbody th { position: sticky; left: 0; z-index: 1; background: var(--n050); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--n600); }
.cmp-tabla tbody tr + tr th, .cmp-tabla tbody tr + tr td { border-top: 1px solid var(--line-light); }
.cmp-tabla td { font-variant-numeric: tabular-nums; }
.cmp-corner { position: sticky; left: 0; z-index: 1; background: var(--n050); }
.cmp-col { font-weight: 400; }
.cmp-card { position: relative; }
.cmp-map { display: block; width: 100%; aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--r-md); background: #2A3A2E; }
.cmp-m-predio { fill: #D7D0BB; }
.cmp-m-calle { fill: rgba(240, 232, 214, .78); }
.cmp-m-agua { fill: rgba(90, 150, 190, .55); stroke: none; }
.cmp-m-agua.is-trazo { fill: none; stroke: rgba(110, 170, 210, .85); stroke-width: 3; vector-effect: non-scaling-stroke; }
.cmp-m-lote { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .75); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cmp-m-sel { fill: rgba(200, 161, 101, .55); stroke: #C8A165; stroke-width: 3; vector-effect: non-scaling-stroke; }
.cmp-proy { margin: .6rem 0 0; font-size: .76rem; font-weight: 700; color: var(--n600); }
.cmp-lote { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; margin: .1rem 0 0; font: 600 1.4rem/1.15 var(--serif); color: var(--g900); }
.cmp-est { padding: .15rem .55rem; border-radius: 999px; font: 800 .68rem/1.4 var(--sans); letter-spacing: .04em; background: #E3EEE5; color: #24563A; }
.cmp-est[data-estado="reservada"] { background: #F4E8D2; color: #7A5D33; }
.cmp-est[data-estado="vendida"] { background: var(--n100); color: var(--n600); }
.cmp-quitar { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(10, 20, 14, .72); color: #fff; cursor: pointer; }
.cmp-quitar::after { content: ""; position: absolute; inset: -5px; }
.cmp-quitar .i { width: 14px; height: 14px; }
.cmp-quitar:hover { background: var(--g900); }
.cmp-quitar:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.cmp-col.is-off .cmp-map { filter: grayscale(.9); opacity: .7; }
.cmp-precio { display: block; font: 600 1.35rem/1.15 var(--serif); color: var(--g900); }
.cmp-mejor { display: inline-block; margin-top: .3rem; padding: .12rem .5rem; border-radius: 999px; background: rgba(200, 161, 101, .22); color: var(--gold-ink); font-size: .7rem; font-weight: 800; }
.cmp-tabla td > .cmp-mejor { display: table; }
.cmp-na { color: var(--n500); }
.cmp-off { font-weight: 700; color: var(--danger); }
.cmp-pago { margin: 0; display: grid; gap: .15rem; font-size: .84rem; }
.cmp-pago div { display: flex; justify-content: space-between; gap: .5rem; }
.cmp-pago dt { color: var(--n600); }
.cmp-pago dd { margin: 0; font-weight: 700; }
.cmp-pago .is-total { margin-top: .2rem; padding-top: .3rem; border-top: 1px solid var(--line-light); }
.cmp-pago .is-total dd { color: var(--g900); font-weight: 800; }
.cmp-col-acts { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.cmp-col-acts .btn-ghost { color: var(--g900); border-color: rgba(10, 20, 14, .25); }
.cmp-col-acts .btn-ghost:hover { background: var(--n100); border-color: rgba(10, 20, 14, .4); }
.cmp-casa { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; font-size: .84rem; color: var(--gold-ink); background: none; border: 0; cursor: pointer; }
.cmp-casa .i { width: 1.1em; height: 1.1em; }
.cmp-nota { margin: .2rem clamp(1rem, 3vw, 1.8rem) 0; font-size: .78rem; color: var(--n600); }
.cmp-aviso { margin: .7rem clamp(1rem, 3vw, 1.8rem) 0; padding: .6rem .9rem; border-radius: var(--r-md); background: #E3EEE5; color: #1F4A31; font-size: .88rem; font-weight: 700; }
.cmp-share { scroll-margin-bottom: 96px; margin: 1rem clamp(1rem, 3vw, 1.8rem) 0; padding: 1rem; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line-light); }
.cmp-share-t { margin: 0 0 .7rem; font: 600 1.25rem/1.2 var(--serif); }
.cmp-share-f { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.cmp-share-f label { display: grid; gap: .3rem; font-size: .84rem; font-weight: 700; }
.cmp-share-f small { display: block; font-weight: 400; color: var(--n600); }
.cmp-share input, .cmp-share select { width: 100%; min-height: 44px; padding: .5rem .7rem; border: 1px solid rgba(10, 20, 14, .25); border-radius: 8px; background: var(--n050); color: var(--g900); font: inherit; font-size: 1rem; }
.cmp-share input:focus-visible, .cmp-share select:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 1px; }
.cmp-link { display: flex; gap: .5rem; margin-top: .8rem; }
.cmp-link input { flex: 1; min-width: 0; font-size: .86rem; color: var(--n600); }
.cmp-link .btn-ghost, .cmp-share-acts .btn-ghost { color: var(--g900); border-color: rgba(10, 20, 14, .25); flex: none; }
.cmp-share-acts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.cmp-share-n { margin: .7rem 0 0; font-size: .78rem; color: var(--n600); }
.cmp-acts { position: sticky; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; padding: .9rem clamp(1rem, 3vw, 1.8rem) calc(.9rem + env(safe-area-inset-bottom, 0px)); background: var(--n050); border-top: 1px solid var(--line-light); }
.cmp-acts .btn-ghost { color: var(--g900); border-color: rgba(10, 20, 14, .25); }
.cmp-acts .btn-ghost:hover { background: var(--n100); }
@media (max-width: 719px) {
  .cmp { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .cmp-in { max-height: 100dvh; }
  .cmp-head { padding-top: calc(1rem + env(safe-area-inset-top, 0px)); }
  .cmp-tabla { --lab: 92px; min-width: calc(var(--lab) + var(--n, 3) * 158px); font-size: .86rem; }
  .cmp-tabla th, .cmp-tabla td { padding: .6rem .5rem; }
  .cmp-tabla tbody th { font-size: .66rem; letter-spacing: .05em; }
  .cmp-share-f { grid-template-columns: 1fr; }
  .cmp-pago div { display: block; }
  .cmp-pago dt { font-size: .76rem; }
  .cmp-acts .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .cmp[open] { animation: none; } }
