/* Paleta del logo del cliente (marca/2026-10-logo-cliente): petróleo #0A3433, oro #F8B828 / #DF9007, marfil. Contrastes de texto verificados ≥4.5:1 */
:root {
  --color-bg: #FBF9F5;
  --color-alt: #F3EEE4;
  --color-ink: #0B2626;
  --color-muted: #4E605E;
  --color-brand: #0A3433;
  --color-brand-ink: #FBF9F5;
  --color-line: #E2DACB;
  --color-focus: #8A5700;
  --color-accent: #E9A824;      /* oro: solo decorativo */
  --color-accent-ink: #8A5700;  /* oro oscuro para texto */
  --color-overlay: 6 30 30;      /* petróleo profundo, para velos sobre fotos (rgb) */
  --nav-height: 76px;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--color-brand); }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }

.wrap { width: min(1100px, calc(100% - 32px)); margin-inline: auto; }
.narrow { max-width: 640px; }
.section { padding: 64px 0; }
.section-alt { background: var(--color-alt); }
h1, h2, h3 { line-height: 1.2; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 16px; }

.skip {
  position: absolute; left: -9999px; top: 8px; background: var(--color-bg);
  padding: 8px 12px; z-index: 10;
}
.skip:focus { left: 8px; }

/* Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
  height: var(--nav-height);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav-height); }
.brand { font-weight: 700; color: var(--color-ink); text-decoration: none; font-size: 1.1rem; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--color-line);
  border-radius: var(--radius); padding: 8px 14px; font: inherit; cursor: pointer;
}
.nav-menu { display: flex; align-items: center; gap: 24px; }
.nav-menu a:not(.btn) { color: var(--color-ink); text-decoration: none; }

/* Menú móvil: sin backdrop-filter en el nav para que el panel calcule bien su altura */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-block; }
  .nav-menu {
    display: none;
    position: fixed; left: 0; right: 0;
    top: var(--nav-height);
    height: calc(100dvh - var(--nav-height));
    background: var(--color-bg);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px;
  }
  .nav-menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--color-line); }
  .nav-menu.open { display: flex; }
  body.nav-open { overflow: hidden; }
}

/* Botones */
.btn {
  display: inline-block; background: var(--color-brand); color: var(--color-brand-ink);
  border: 0; border-radius: var(--radius); padding: 12px 20px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--color-brand); border: 1px solid var(--color-brand); }
.btn-small { padding: 8px 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Hero */
.hero { padding: 96px 0 72px; border-bottom: 1px solid var(--color-line); }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 0 0 12px; }
.eyebrow { color: var(--color-muted); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin: 0 0 8px; }
.lead { font-size: 1.15rem; color: var(--color-muted); max-width: 60ch; margin: 0; }

/* Tarjetas */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { border: 1px solid var(--color-line); border-radius: var(--radius); padding: 24px; background: var(--color-bg); }
.card h3 { margin: 0 0 8px; }
.card p { margin: 0; color: var(--color-muted); }

/* Galería (placeholders hasta tener fotografías) */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 24px; }
.gallery figure { margin: 0; }
.ph { aspect-ratio: 4 / 3; background: var(--color-line); border-radius: var(--radius); }

/* Formulario */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.field input, .field textarea {
  font: inherit; padding: 10px 12px; border: 1px solid var(--color-line);
  border-radius: var(--radius); background: var(--color-bg); color: var(--color-ink);
}
.field.check { grid-template-columns: auto 1fr; align-items: start; }
.field.check label { font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.5em; margin: 0; }
.status.error { color: #A33A2A; }
.status.ok { color: var(--color-brand); }

/* Aviso de privacidad: tabla de preguntas */
.qa { width: 100%; border-collapse: collapse; margin-top: 24px; }
.qa th, .qa td { text-align: left; vertical-align: top; padding: 12px 8px; border-bottom: 1px solid var(--color-line); }
.qa th { width: 36%; }

/* Texto de introducción de cada sección */
.intro { font-size: 1.1rem; color: var(--color-muted); max-width: 62ch; margin: 0 0 24px; }

/* Pie */
.site-footer { border-top: 1px solid var(--color-line); padding: 32px 0; color: var(--color-muted); }
.site-footer p { margin: 4px 0; }
.fine { font-size: .9rem; }

/* Revelado suave: solo si el usuario no pidió menos movimiento; sin JS el sitio se ve completo */
.fx .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.fx .reveal.in { opacity: 1; transform: none; }

/* ===== Efectos visuales =====
   Lo animado va bajo .fx: sin JS o con "reducir movimiento" el sitio se ve completo y estático. */

h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 10px; border-radius: 2px; background: var(--color-accent); }

.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--color-alt), var(--color-bg) 70%); }
.hero .wrap { position: relative; z-index: 1; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; }
.o1 { width: 360px; height: 360px; top: -90px; right: -70px; background: var(--color-brand); }
.o2 { width: 280px; height: 280px; bottom: -100px; left: -60px; background: var(--color-accent); }

.marquee { overflow: hidden; background: var(--color-brand); color: var(--color-brand-ink); padding: 14px 0; white-space: nowrap; font-weight: 600; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.marquee .track { display: flex; width: max-content; }
.marquee .grp { display: flex; gap: 48px; padding-right: 48px; }

/* width explícito: con min-height + aspect-ratio, un ítem de grid sin ancho fijo se estiraba a 569 px y desbordaba el celular */
.map { margin-top: 32px; border: 1px solid var(--color-line); border-radius: var(--radius); overflow: hidden; width: 100%; min-width: 0; min-height: 320px; aspect-ratio: 16 / 9; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.card .btn { margin-top: 4px; }

.progress { display: none; }
.btn { transition: transform .2s ease, box-shadow .2s ease; }

.fx .orb { animation: drift 16s ease-in-out infinite alternate; }
.fx .o2 { animation-duration: 20s; animation-direction: alternate-reverse; }
@keyframes drift { to { transform: translate(50px, 36px) scale(1.12); } }

.fx .hero .eyebrow, .fx .hero h1, .fx .hero .lead, .fx .hero .actions { opacity: 0; transform: translateY(20px); animation: rise .8s ease forwards; }
.fx .hero h1 { animation-delay: .12s; }
.fx .hero .lead { animation-delay: .26s; }
.fx .hero .actions { animation-delay: .4s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.fx .marquee .track { animation: marquee 30s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

.fx .reveal h2::after { width: 0; transition: width .7s ease .25s; }
.fx .reveal.in h2::after { width: 56px; }

.fx .reveal .card { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease, box-shadow .25s ease; }
.fx .reveal.in .card { opacity: 1; transform: none; }
.fx .reveal.in .card:nth-child(2) { transition-delay: .12s; }
.fx .reveal.in .card:nth-child(3) { transition-delay: .24s; }
.fx .reveal.in .card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgb(0 0 0 / .12); transition-delay: 0s; }

.fx .ph { background: linear-gradient(100deg, var(--color-line) 30%, color-mix(in srgb, var(--color-line) 55%, white) 50%, var(--color-line) 70%) 0 0 / 200% 100%; animation: shimmer 2.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.fx .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgb(0 0 0 / .18); }

/* Barra de progreso de lectura: solo navegadores con animación ligada al scroll */
@supports (animation-timeline: scroll()) {
  .fx .progress { display: block; position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--color-accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 20; animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* ===== v4: hero a pantalla completa, imágenes con revelado, parallax y banda ===== */
:root { --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }

.hero { display: grid; align-items: end; min-height: calc(100svh - var(--nav-height)); padding: 0 0 72px; color: var(--color-brand-ink); background: var(--color-ink); border-bottom: 0; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgb(var(--color-overlay) / .35) 0%, rgb(var(--color-overlay) / .05) 35%, rgb(var(--color-overlay) / .75) 100%); }
.hero .wrap { z-index: 2; }
.hero .eyebrow { color: rgb(255 255 255 / .85); }
.hero h1 { font-size: .95rem; letter-spacing: .32em; text-transform: uppercase; margin: 0 0 16px; font-weight: 600; }
.hero-line { font-family: var(--font-serif); font-size: clamp(2.6rem, 8vw, 5.6rem); line-height: 1.02; margin: 0 0 20px; font-weight: 400; }
.hero-line em { font-style: italic; color: var(--color-accent); }
.hero .lead { color: rgb(255 255 255 / .88); }
.hero .btn-ghost { color: var(--color-brand-ink); border-color: rgb(255 255 255 / .7); }
.cap { font-size: .75rem; letter-spacing: .06em; opacity: .8; margin: 20px 0 0; }
.scroll-hint { position: absolute; z-index: 2; right: 24px; bottom: 24px; width: 2px; height: 56px; background: rgb(255 255 255 / .35); overflow: hidden; }
.scroll-hint span { display: block; width: 100%; height: 40%; background: var(--color-brand-ink); }

.band { position: relative; overflow: hidden; display: grid; place-items: center; text-align: center; color: var(--color-brand-ink); height: clamp(320px, 62vh, 560px); background: var(--color-ink); }
.band::after { content: ""; position: absolute; inset: 0; background: rgb(var(--color-overlay) / .45); }
.band-img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; }
.band-text { position: relative; z-index: 1; padding: 0 16px; }
.band-quote { font-family: var(--font-serif); font-size: clamp(2rem, 6vw, 4rem); line-height: 1.1; margin: 0; }
.band-quote em { color: var(--color-accent); }

.fig { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--color-line); }
.fig img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.fig:hover img { transform: scale(1.05); }
.fig .ph { height: 100%; aspect-ratio: auto; border-radius: 0; }
.fig figcaption { position: absolute; left: 10px; bottom: 10px; font-size: .75rem; color: var(--color-brand-ink); background: rgb(var(--color-overlay) / .6); padding: 3px 10px; border-radius: 99px; }
@media (min-width: 900px) { .gallery .fig:first-child { grid-column: span 2; aspect-ratio: 16 / 9; } }


.fx .hero .hero-line { opacity: 0; transform: translateY(20px); animation: rise .8s ease .22s forwards; }
.fx .hero-img { animation: kenburns 24s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.fx .scroll-hint span { animation: scrollcue 1.8s ease-in-out infinite; }
@keyframes scrollcue { from { transform: translateY(-100%); } to { transform: translateY(250%); } }

/* Imágenes que se descubren al entrar en pantalla (clip-path), como en los sitios de referencia */
.fx .reveal .fig { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(.77, 0, .18, 1); }
.fx .reveal.in .fig { clip-path: inset(0); }
.fx .reveal.in .fig:nth-child(2) { transition-delay: .15s; }
.fx .reveal.in .fig:nth-child(3) { transition-delay: .3s; }
.fx .reveal .fig img { transform: scale(1.25); }
.fx .reveal.in .fig img { transform: scale(1); }
.fx .reveal.in .fig:hover img { transform: scale(1.05); }

/* Parallax ligado al scroll: solo navegadores con animation-timeline; el resto ve la versión estática */
@supports (animation-timeline: scroll()) {
  .fx .hero-img { animation: hero-par linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  @keyframes hero-par { from { transform: scale(1.02); } to { transform: scale(1.14) translateY(10vh); } }
  .fx .hero .wrap { animation: hero-out linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
  @keyframes hero-out { to { opacity: 0; transform: translateY(-8vh); } }
  .fx .band-img { animation: band-par linear both; animation-timeline: view(); }
  @keyframes band-par { from { transform: translateY(-7%); } to { transform: translateY(7%); } }
}

/* ===== v5: sitio institucional, estado de lotes, WhatsApp, GSAP ===== */
:root {
  --st-ok: #0A3433; --st-ok-bg: #E0ECEA;
  --st-hold: #8A5700; --st-hold-bg: #FAEBC8;
  --st-sold: #5C605B; --st-sold-bg: #ECE8E0;
  --wa: var(--color-brand);
}

.nav-menu { gap: 20px; }
.nav-menu a[aria-current="page"]:not(.btn) { color: var(--color-brand); font-weight: 600; }

/* Aviso de sitio en desarrollo y marcas de datos ficticios */
.demo-note { margin: 0; padding: 8px 16px; text-align: center; font-size: .85rem; background: #F3E9D6; color: #5C4320; border-bottom: 1px solid #E2CFA8; }
.ej-tag { font-size: .68em; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; background: #E9D9B8; color: #5C4320; border-radius: 4px; padding: 1px 5px; white-space: nowrap; }
.ej-note { font-size: .9rem; color: #5C4320; background: #F3E9D6; border: 1px dashed #C9A86E; border-radius: var(--radius); padding: 8px 12px; margin: 0 0 20px; }

/* Páginas internas */
.page-hero { padding: 72px 0 40px; background: var(--color-alt); border-bottom: 1px solid var(--color-line); }
.page-hero h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 12px; }
.page-hero .lead { max-width: 62ch; }
.cta { text-align: center; }
.cta .intro { margin-inline: auto; }
.cta .actions { justify-content: center; }
.two-col { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.refs { padding-left: 20px; margin: 0; color: var(--color-muted); }
.refs li { margin: 6px 0; }
.card .fig { margin: -24px -24px 16px; border-radius: var(--radius) var(--radius) 0 0; }

/* Estado de los lotes: color + texto, nunca solo color */
.status-legend { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge.disponible { color: var(--st-ok); background: var(--st-ok-bg); }
.badge.apartado { color: var(--st-hold); background: var(--st-hold-bg); }
.badge.vendido { color: var(--st-sold); background: var(--st-sold-bg); }

.lot-map { margin: 0 0 28px; border: 1px solid var(--color-line); border-radius: var(--radius); background: var(--color-bg); padding: 12px; overflow-x: auto; }
.lot-map svg { width: 100%; min-width: 520px; height: auto; display: block; }
.lot-map .street { fill: var(--color-line); }
.lot-map .street-label { fill: var(--color-muted); font-size: 12px; letter-spacing: .3em; text-anchor: middle; }
.lot-shape { stroke-width: 2; transition: opacity .2s; }
.lot-shape.disponible { fill: var(--st-ok-bg); stroke: var(--st-ok); }
.lot-shape.apartado { fill: var(--st-hold-bg); stroke: var(--st-hold); }
.lot-shape.vendido { fill: var(--st-sold-bg); stroke: var(--st-sold); }
.lot-map a:hover .lot-shape, .lot-map a:focus-visible .lot-shape { opacity: .65; }
/* Plano real (formas del plano del arquitecto, en metros): en celular se desplaza de lado para que los números se lean */
.lot-map.real svg { min-width: 760px; }
.lot-map.real .street { fill: var(--color-alt); stroke: var(--color-line); stroke-width: .4; }
.lot-map.real .green { fill: #D5E3CF; }
.lot-map.real .lot-shape { stroke-width: .35; }
.lot-map.real .lot-num { font-size: 3.4px; font-weight: 600; dominant-baseline: central; pointer-events: none; }
.lot-map.real .street-label { font-size: 5px; letter-spacing: .15em; }
.lot-filters input[type="number"] { width: 9rem; }
.lot-num { font-size: 18px; font-weight: 700; fill: var(--color-ink); text-anchor: middle; }
.lot-st { font-size: 11px; fill: var(--color-muted); text-anchor: middle; }

.lots { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.lot { border: 1px solid var(--color-line); border-radius: var(--radius); padding: 18px; background: var(--color-bg); display: grid; gap: 8px; align-content: start; scroll-margin-top: 96px; }
.lot-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lot h3 { margin: 0; font-size: 1.1rem; }
.lot p { margin: 0; color: var(--color-muted); }
.lot .price { font-size: 1.25rem; font-weight: 700; color: var(--color-ink); }
.lot .btn { justify-self: start; }
.lot.is-vendido .price { text-decoration: line-through; color: var(--color-muted); }
.lot:target { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.fx .lot { transition: transform .25s ease, box-shadow .25s ease; }
.fx .lot:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgb(0 0 0 / .1); }

/* Pasos numerados */
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; counter-reset: paso; }
.steps > li { counter-increment: paso; position: relative; padding: 18px 18px 18px 76px; border: 1px solid var(--color-line); border-radius: var(--radius); background: var(--color-bg); }
.steps > li::before { content: counter(paso, decimal-leading-zero); position: absolute; left: 18px; top: 14px; font-family: var(--font-serif); font-size: 2rem; line-height: 1; color: var(--color-accent); }
.steps h3 { margin: 0 0 4px; }
.steps p { margin: 0; color: var(--color-muted); }

.data-table { width: 100%; border-collapse: collapse; margin-top: 8px; background: var(--color-bg); }
.data-table th, .data-table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--color-line); }
.data-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table tr.total td, .data-table tr.total th { font-weight: 700; }

/* Preguntas frecuentes (details/summary nativos) */
.faq details { border-bottom: 1px solid var(--color-line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.faq details p { margin: 10px 0 0; color: var(--color-muted); }

/* Cifras con contador */
.stats { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat { border-left: 3px solid var(--color-accent); padding: 4px 0 4px 16px; }
.stat-n { display: block; font-family: var(--font-serif); font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat p { margin: 4px 0 0; color: var(--color-muted); }

/* Testimonios */
.quotes { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.quote { margin: 0; padding: 24px; border-radius: var(--radius); background: var(--color-bg); border: 1px solid var(--color-line); }
.quote blockquote { margin: 0 0 12px; }
.quote blockquote p { font-family: var(--font-serif); font-size: 1.15rem; margin: 0; }
.quote figcaption { color: var(--color-muted); font-size: .9rem; }

/* Pie */
.foot-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding-bottom: 20px; }
.foot-brand { font-weight: 700; color: var(--color-ink); font-size: 1.1rem; }
.foot-h { font-weight: 600; color: var(--color-ink); }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.foot-links a, .foot-legal a { color: var(--color-muted); }
.foot-legal { border-top: 1px solid var(--color-line); padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* Botón flotante de WhatsApp: solo en celular; el pulso se repite 3 veces y se detiene */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 16; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 99px; background: var(--wa); color: var(--color-brand-ink); font-weight: 600; text-decoration: none; box-shadow: 0 6px 18px rgb(0 0 0 / .2); }
.wa-float svg { flex: none; }
.fx .wa-float::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; animation: wa-pulse 2s ease-out 1.5s 3; }
@keyframes wa-pulse { from { box-shadow: 0 0 0 0 rgb(233 168 36 / .6); } to { box-shadow: 0 0 0 16px rgb(233 168 36 / 0); } }
@media (min-width: 900px) { .wa-float { display: none; } }
@media (max-width: 899px) { .site-footer { padding-bottom: 88px; } }

/* Galería deslizable con el dedo en celular */
.swipe-hint { display: none; font-size: .85rem; color: var(--color-muted); margin: 8px 0 0; }
@media (max-width: 899px) {
  .gallery.swipe { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -16px; padding: 0 16px 8px; scrollbar-width: none; }
  .gallery.swipe .fig { flex: 0 0 85%; scroll-snap-align: center; }
  .swipe-hint { display: block; }
}

/* "Tu camino al lote": apilada por defecto; GSAP la fija al hacer scroll en pantallas anchas (clase .pin) */
.story { padding: 56px 0 16px; }
.story-stage { width: min(1100px, calc(100% - 32px)); margin: 32px auto 0; }
.story-media { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.s-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; }
.story-bar { display: none; }
.story-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step .num { display: block; font-family: var(--font-serif); font-size: 2.2rem; line-height: 1; color: var(--color-accent); }
.step h3 { margin: 8px 0 6px; }
.step p { margin: 0; color: var(--color-muted); }
.story .cap { text-align: center; color: var(--color-muted); margin: 16px 0 0; }
.w { display: inline-block; }
.pin .story-stage { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 56px; height: min(62vh, 520px); margin-top: 0; }
.pin .story-media { display: block; position: relative; height: 100%; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgb(10 52 51 / .18); }
.pin .s-img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border-radius: 0; }
.pin .story-text { position: relative; padding-left: 28px; }
.pin .story-steps { display: block; position: relative; height: 260px; margin: 0; }
.pin .step { position: absolute; left: 0; right: 0; top: 0; }
.pin .step h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.pin .story-bar { display: block; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--color-line); }
.pin .story-bar i { display: block; width: 100%; height: 100%; background: var(--color-accent); transform: scaleY(0); transform-origin: top; }

.badge.terminado { color: var(--st-sold); background: var(--st-sold-bg); }
.badge.obra { color: var(--st-hold); background: var(--st-hold-bg); }
.badge.pronto { color: var(--color-brand); background: var(--color-alt); }
.card .badge { margin-bottom: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Marca P2: la paleta completa vive en el :root del inicio */
.brand img { display: block; height: 52px; width: auto; }
@media (max-width: 600px) { .brand img { height: 44px; } }

/* Transición suave entre páginas (nativa del navegador, sin JS); la cabecera se queda fija mientras cambia el contenido */

  @view-transition { navigation: auto; }
  .site-header { view-transition-name: cabecera; }


/* Acceso directo al simulador (portada) */
.sim-cta { background: var(--color-brand); color: var(--color-brand-ink); padding: 48px 0; }
.sim-cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.sim-cta .eyebrow { color: #E9D9B8; margin: 0; }
.sim-cta h2 { font-family: var(--font-serif); font-weight: 400; margin: 6px 0 8px; }
.sim-cta h2::after { display: none; }
.sim-cta p { margin: 0; opacity: .9; }
.sim-cta .btn { background: var(--color-bg); color: var(--color-brand); }

/* Secciones "Próximamente" */
.soon { text-align: center; }
.soon .intro { margin-inline: auto; }
.soon h2::after { margin-inline: auto; }
.soon .actions { justify-content: center; }

/* El atributo hidden siempre gana, aunque el elemento tenga display propio */
[hidden] { display: none !important; }

/* Plano interactivo: filtros, lotes atenuados y ficha emergente */
.lot-filters { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: end; margin: 0 0 20px; padding: 16px; border: 1px solid var(--color-line); border-radius: var(--radius); background: var(--color-alt); }
.lot-filters fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lot-filters legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; min-height: 44px; padding: 10px 16px; border: 1px solid var(--color-line); border-radius: 99px; background: var(--color-bg); }
.chip input:checked + span { background: var(--color-brand); border-color: var(--color-brand); color: var(--color-brand-ink); }
.chip input:focus-visible + span { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.lot-filters select, .lot-filters input[type="number"], .sim-form select, .sim-form input[type="number"] { font: inherit; min-height: 44px; padding: 8px 12px; border: 1px solid var(--color-line); border-radius: var(--radius); background: var(--color-bg); color: var(--color-ink); }
.lot-count { margin: 0; color: var(--color-muted); }
.lot-map a { cursor: pointer; transition: opacity .2s; }
.lot-map a.dim { opacity: .2; }
.lot-more { justify-self: start; }

.lot-dialog { border: 0; border-radius: 14px; padding: 28px; width: min(440px, calc(100vw - 32px)); color: var(--color-ink); background: var(--color-bg); box-shadow: 0 24px 60px rgb(0 0 0 / .25); }
.lot-dialog::backdrop { background: rgb(var(--color-overlay) / .6); }
.lot-dialog h3 { font-family: var(--font-serif); font-weight: 400; font-size: 2rem; margin: 0 0 8px; }
.lot-dialog .eyebrow { margin: 0 0 4px; }
.ld-close { position: absolute; top: 8px; right: 8px; margin: 0; }
.ld-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; font-size: 1.6rem; line-height: 1; color: var(--color-muted); cursor: pointer; }
.ld-x:hover { background: var(--color-alt); }
.ld-data { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 12px; }
.ld-data dt { font-size: .8rem; color: var(--color-muted); }
.ld-data dd { margin: 2px 0 0; font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.ld-note { font-size: .85rem; color: var(--color-muted); margin: 0; }
.lot-dialog .actions { margin-top: 18px; }
.fx .lot-dialog[open] { animation: ld-in .25s ease-out; }
@keyframes ld-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* Simulador de cuotas */
.sim { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; margin-top: 8px; }
.sim-form { display: grid; gap: 16px; }
.sim-form input[type="range"] { width: 100%; accent-color: var(--color-brand); min-height: 44px; }
.sim-form output { font-weight: 700; color: var(--color-brand); }
.sim-result { display: grid; gap: 16px; padding: 24px; border-radius: var(--radius); background: var(--color-brand); color: var(--color-brand-ink); min-width: 0; }
.sim-out { display: grid; gap: 12px; margin: 0; }
.sim-out div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgb(255 255 255 / .18); padding-bottom: 10px; }
.sim-out dt { opacity: .85; }
.sim-out dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.sim-out .big { display: grid; border: 0; }
.sim-out .big dd { font-family: var(--font-serif); font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 400; line-height: 1.1; }
.sim-result .btn { background: var(--color-brand-ink); color: var(--color-brand); justify-self: start; }

/* Red de seguridad de la receta: nada debe permitir paneo horizontal en celular */
html { overflow-x: clip; }
.two-col > * { min-width: 0; }

/* ===== Portada: el plano real de El Tempisque, animado ===== */
.hero-plano { background: radial-gradient(ellipse 70% 80% at 72% 42%, #145150 0%, var(--color-brand) 48%, #041A1A 100%); }
.hero-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; overflow: hidden; }
.hero-art svg { height: 118%; width: auto; max-width: none; margin-right: -4%; transform: rotate(-9deg); }
.hp-ctx polygon { fill: rgb(255 255 255 / .045); }
.hp-lotes polygon { fill: rgb(248 184 40 / .14); stroke: #F2B632; stroke-width: .6; stroke-linejoin: round; }
.hero-plano .btn:not(.btn-ghost) { background: #F2B632; border-color: #F2B632; color: var(--color-ink); }
@media (max-width: 899px) {
  .hero-art { justify-content: center; opacity: .7; }
  .hero-art svg { height: 100%; margin: 0; }
}

  .fx .hp-lotes polygon { stroke-dasharray: 1; stroke-dashoffset: 1; fill: rgb(248 184 40 / 0);
    animation: hp-trazo 1.1s cubic-bezier(.6, 0, .3, 1) forwards, hp-relleno .9s ease forwards;
    animation-delay: calc(var(--i) * 11ms + .3s), calc(var(--i) * 11ms + 1.1s); }
  .fx .hp-lotes polygon.late { animation: hp-trazo 1.1s cubic-bezier(.6, 0, .3, 1) forwards, hp-relleno .9s ease forwards, hp-late 3.6s ease-in-out infinite;
    animation-delay: calc(var(--i) * 11ms + .3s), calc(var(--i) * 11ms + 1.1s), calc(4s + var(--i) * 37ms); }
  .fx .hp-ctx { opacity: 0; animation: hp-aparece 1.6s ease .1s forwards; }
  .fx .hero-art svg { animation: hp-respira 28s ease-in-out 3.5s infinite alternate; }
  @keyframes hp-trazo { to { stroke-dashoffset: 0; } }
  @keyframes hp-relleno { to { fill: rgb(248 184 40 / .14); } }
  @keyframes hp-late { 0%, 100% { fill: rgb(248 184 40 / .14); } 50% { fill: rgb(254 205 90 / .6); } }
  @keyframes hp-aparece { to { opacity: 1; } }
  @keyframes hp-respira { from { transform: rotate(-9deg) scale(1); } to { transform: rotate(-6deg) scale(1.07); } }

@supports (animation-timeline: scroll()) {
  
    .fx .hero-art { animation: hp-par linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes hp-par { to { transform: translateY(14vh) scale(1.08); opacity: .35; } }
  
}

/* ===== Logo del cliente ===== */
.foot-brand img { display: block; width: 150px; height: auto; }

/* ===== Transiciones entre secciones: bordes ondulados con filo dorado y entrada suave ===== */
.section-alt { position: relative; }
.section-alt::before, .section-alt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 56px; pointer-events: none; z-index: 0;
  background: linear-gradient(var(--color-alt), var(--color-alt)) padding-box;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath d='M0 56V30C180 6 360 0 540 14s360 40 540 30 270-34 360-30v42z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath d='M0 56V30C180 6 360 0 540 14s360 40 540 30 270-34 360-30v42z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.section-alt::before { top: -55px; }
.section-alt::after { bottom: -55px; transform: scale(-1, -1); }
.section-alt > .wrap { position: relative; z-index: 1; }
/* filo dorado que sigue la onda superior */
.section-alt > .wrap::before {
  content: ""; position: absolute; left: 50%; top: -64px; width: 100vw; height: 56px; transform: translateX(-50%); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath d='M0 30C180 6 360 0 540 14s360 40 540 30 270-34 360-30' fill='none' stroke='%23E9A824' stroke-width='1.5' vector-effect='non-scaling-stroke' opacity='.55'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
/* la sección que sigue a una crema deja aire para la onda; después de bandas oscuras o de la portada no hay onda */
.section-alt + .section, .section-alt + section { padding-top: 96px; }
.hero + .section-alt::before, .marquee + .section-alt::before, .page-hero + .section-alt::before,
.page-hero + .section-alt > .wrap::before, .hero + .section-alt > .wrap::before, .marquee + .section-alt > .wrap::before { display: none; }
main > .section-alt:last-child::after { display: none; }


  .fx .section-alt.reveal::before, .fx .section-alt.reveal::after { transform-origin: 50% 100%; transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
  .fx .section-alt.reveal:not(.in)::before { transform: scaleY(0); }
  .fx .section-alt.reveal:not(.in)::after { transform: scale(-1, 0); }
  .fx .section-alt.reveal > .wrap::before { transition: opacity 1.2s ease .3s; }
  .fx .section-alt.reveal:not(.in) > .wrap::before { opacity: 0; }
  .fx .reveal { transform: translateY(36px); filter: blur(6px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1), filter .9s ease; }
  .fx .reveal.in { filter: none; }
  .fx .reveal h2 { clip-path: inset(0 0 100% 0); transform: translateY(14px); transition: clip-path .9s cubic-bezier(.77, 0, .18, 1) .1s, transform .9s ease .1s; }
  .fx .reveal.in h2 { clip-path: inset(0 0 -20% 0); transform: none; }

.cta h2::after { margin-inline: auto; }

/* ===== Urbanización: íconos en oro con entrada escalonada ===== */
.urb { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.urb li { background: var(--color-bg); border: 1px solid var(--color-line); border-radius: var(--radius); padding: 22px 18px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.urb li:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgb(10 52 51 / .12); border-color: var(--color-accent); }
.urb h3 { margin: 12px 0 4px; font-size: 1.05rem; }
.urb p { margin: 0; color: var(--color-muted); font-size: .95rem; }
.urb-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--color-brand); color: #F2B632; box-shadow: 0 0 0 4px rgb(233 168 36 / .18); }
.urb-ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lot .price small { font-size: .75rem; font-weight: 500; color: var(--color-muted); }

  .fx .reveal .urb li { opacity: 0; transform: translateY(26px) scale(.97); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, border-color .3s ease; }
  .fx .reveal.in .urb li { opacity: 1; transform: none; }
  .fx .reveal.in .urb li:hover { transform: translateY(-4px); }
  .fx .reveal.in .urb li:nth-child(2) { transition-delay: 0.08s; }
  .fx .reveal.in .urb li:nth-child(3) { transition-delay: 0.16s; }
  .fx .reveal.in .urb li:nth-child(4) { transition-delay: 0.24s; }
  .fx .reveal.in .urb li:nth-child(5) { transition-delay: 0.32s; }
  .fx .reveal.in .urb li:nth-child(6) { transition-delay: 0.40s; }
  .fx .reveal.in .urb li:nth-child(7) { transition-delay: 0.48s; }
  .fx .reveal.in .urb li:nth-child(8) { transition-delay: 0.56s; }
  .fx .reveal.in .urb li:hover { transition-delay: 0s; }
  .fx .reveal .urb-ico svg { stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset 1.4s ease .3s; }
  .fx .reveal.in .urb-ico svg { stroke-dashoffset: 0; }


/* ===== Acabado profesional (ui-ux-pro-max + BigLettering) ===== */
:root { --ease-pro: cubic-bezier(.16, 1, .3, 1); }
.s-plano { background: var(--color-brand); object-fit: contain !important; padding: 18px; }

/* Botones: elevan al pasar, se hunden al presionar, brillo que cruza */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: transform .25s var(--ease-pro), box-shadow .25s var(--ease-pro), background-color .2s, color .2s, border-color .2s; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / .28) 50%, transparent 65%); translate: -110% 0; transition: translate .7s var(--ease-pro); pointer-events: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(10 52 51 / .22); }
.btn:hover::after { translate: 110% 0; }
.btn:active { transform: translateY(0) scale(.97); box-shadow: 0 4px 10px rgb(10 52 51 / .18); transition-duration: .08s; }
.btn .wa-ico { width: 1.15em; height: 1.15em; flex: 0 0 auto; margin-right: .5em; fill: currentColor; }
a.btn { display: inline-flex; align-items: center; justify-content: center; }

/* Tarjetas: se elevan 5 px al pasar (referencia Dashboard V18) */
.card, .steps > li, .data-table, .stat, .faq details { transition: transform .3s var(--ease-pro), box-shadow .3s var(--ease-pro), border-color .3s; }
.card:hover, .steps > li:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgb(10 52 51 / .12); }

/* Botón flotante de WhatsApp con su logo */
.wa-float svg { width: 22px; height: 22px; }

/* Luz que sigue el cursor en la portada; en celular recorre el plano sola */
@property --lx { syntax: "<percentage>"; inherits: true; initial-value: 70%; }
@property --ly { syntax: "<percentage>"; inherits: true; initial-value: 40%; }
.hero-luz { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(520px circle at var(--lx) var(--ly), rgb(248 184 40 / .20), rgb(248 184 40 / .06) 40%, transparent 65%); }
@media (hover: none) { .hero-luz { animation: luz-deriva 18s ease-in-out infinite alternate; } }
@keyframes luz-deriva { 0% { --lx: 78%; --ly: 30%; } 33% { --lx: 52%; --ly: 62%; } 66% { --lx: 84%; --ly: 70%; } 100% { --lx: 62%; --ly: 22%; } }

/* Sección oscura con tarjetas de cristal e íconos dorados que flotan (patrón BigLettering) */
.section-dark { position: relative; overflow: hidden; color: var(--color-brand-ink);
  background: radial-gradient(ellipse 60% 70% at 85% 10%, #145150 0%, transparent 60%), radial-gradient(ellipse 50% 60% at 5% 95%, #0f4544 0%, transparent 55%), var(--color-brand); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .intro { color: rgb(255 255 255 / .78); }
.section-dark .urb li { position: relative; overflow: hidden; background: linear-gradient(160deg, rgb(255 255 255 / .11), rgb(255 255 255 / .03));
  border: 1px solid rgb(242 182 50 / .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 18px; }
.section-dark .urb li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #DF9007, #F8B828, #F9EE9B); transform: scaleX(.3); transform-origin: left; transition: transform .5s var(--ease-pro); }
.section-dark .urb li::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgb(249 238 155 / .16) 50%, transparent 65%); translate: -100% 0; transition: translate .8s var(--ease-pro); }
.section-dark .urb p { color: rgb(255 255 255 / .74); }
.section-dark .urb-ico { background: radial-gradient(circle at 30% 30%, #F9EE9B, #F8B828 55%, #DF9007); color: var(--color-brand); box-shadow: 0 0 0 6px rgb(248 184 40 / .14), 0 10px 24px rgb(0 0 0 / .3); transition: transform .5s var(--ease-pro); }
.section-dark .urb li:hover { transform: translateY(-8px); border-color: rgb(248 184 40 / .6); box-shadow: 0 18px 40px rgb(0 0 0 / .35), 0 0 32px rgb(248 184 40 / .15); }
.section-dark .urb li:hover::before { transform: scaleX(1); }
.section-dark .urb li:hover::after { translate: 100% 0; }
.section-dark .urb li:hover .urb-ico { transform: rotate(-10deg) scale(1.12); }
.fx .section-dark.in .urb li::after { animation: urb-brillo 1.3s var(--ease-pro) .6s backwards; }
.fx .section-dark.in .urb-ico { animation: urb-flota 4s ease-in-out 1.6s infinite; }
@keyframes urb-brillo { from { translate: -100% 0; } to { translate: 100% 0; } }
@keyframes urb-flota { 50% { translate: 0 -5px; } }

/* Preguntas frecuentes: acordeón animado */
.faq details { border-left: 3px solid var(--color-accent); }
.faq details[open] { box-shadow: 0 14px 34px rgb(10 52 51 / .12); }
.faq details[open] p { animation: faq-abre .45s var(--ease-pro); }
@keyframes faq-abre { from { opacity: 0; translate: 0 -6px; } }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--color-bg); border: 1px solid var(--color-line); border-left: 3px solid var(--color-accent); border-radius: 14px; padding: 0; box-shadow: 0 6px 20px rgb(10 52 51 / .06); }
.faq summary { list-style: none; position: relative; display: flex; align-items: center; min-height: 56px; padding: 14px 56px 14px 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 14px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--color-alt); color: var(--color-brand); font-weight: 700; transition: rotate .3s var(--ease-pro), background .3s; }
.faq details[open] summary::after { rotate: 45deg; background: var(--color-accent); }
.faq details p { margin: 0; padding: 0 18px 16px; }
@media (max-width: 599px) { .urb { grid-template-columns: 1fr 1fr; gap: 10px; } .urb li { padding: 16px 12px; } .urb h3 { font-size: .95rem; margin-top: 10px; } .urb p { font-size: .85rem; } .urb-ico { width: 44px; height: 44px; } .urb-ico svg { width: 22px; height: 22px; } }
