/* =========================================================
   ALFA GAMAR Y ASOCIADOS · Estilos del sitio
   Archivo: assets/css/main.css

   Paleta: negro cálido + oro metálico, con secciones marfil para
   dar respiro. El dorado se usa como acento (líneas finas, cifras,
   titulares en cursiva y botones principales), nunca como fondo
   de grandes áreas: así se ve elegante y no saturado.
========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #0b0a08;
  --bg-2: #110f0c;
  --surface: #17140f;
  --surface-2: #201b14;
  --surface-3: #2a241b;

  --text: #f4eee2;
  --text-2: #d3c9b6;
  --muted: #9d927e;

  --ivory: #f6f0e4;
  --ivory-2: #ede3cf;
  --ink: #1b1711;
  --ink-2: #4b4335;

  --gold: #c9a052;
  --gold-hi: #f3dc9a;
  --gold-lo: #8c6a2e;
  --gold-soft: rgb(201 160 82 / 0.12);
  --line: rgb(216 180 106 / 0.16);
  --line-strong: rgb(216 180 106 / 0.36);

  /* Oro metálico: bandas claras y oscuras que simulan reflejo. */
  --gold-grad: linear-gradient(100deg, #9a7532 0%, #d8b46a 18%, #fbefc6 34%, #c9a052 50%, #8c6a2e 64%, #e3c47e 82%, #f6e3a8 100%);
  --gold-fill: linear-gradient(135deg, #f6e2a4 0%, #d9b264 38%, #b98a3e 72%, #d8b46a 100%);

  --danger: #e0806a;
  --ok: #9cc9a0;

  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-card: 18px;
  --r-field: 12px;
  --r-pill: 999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 30px 60px -28px rgb(0 0 0 / 0.65);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 76px;

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }

.sr-only, .hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--gold); color: var(--ink); font-weight: 700; text-decoration: none;
  transition: top 0.3s var(--ease-out);
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Oro ---------- */
.gold-text {
  font-style: italic;
  background: var(--gold-grad);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 10s ease-in-out infinite alternate;
  padding-right: 0.06em; /* la cursiva no se corta */
}
@keyframes sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--gold);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 32px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

/* ---------- Botones ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-weight: 700; font-size: 0.98rem; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s, background-color 0.3s, color 0.3s;
}
.btn i { font-size: 1.2em; }
.btn:active { transform: scale(0.98); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.9rem; }
.btn--block { width: 100%; }

.btn--gold {
  background: var(--gold-fill);
  color: #1c1508;
  box-shadow: inset 0 1px 0 rgb(255 250 230 / 0.55), inset 0 -1px 0 rgb(90 60 20 / 0.35), 0 12px 30px -14px rgb(201 160 82 / 0.7);
}
/* Destello que cruza el botón al pasar el cursor. */
.btn--gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.55) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease-out);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgb(255 250 230 / 0.6), 0 18px 36px -14px rgb(201 160 82 / 0.8); }
.btn--gold:hover::after { transform: translateX(120%); }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgb(255 255 255 / 0.02);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-hi); transform: translateY(-2px); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  transition: background-color 0.4s, border-color 0.4s, height 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgb(11 10 8 / 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  height: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 40px; height: 40px; filter: drop-shadow(0 2px 10px rgb(201 160 82 / 0.35)); }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: 0.04em; text-transform: uppercase; }
.brand__sub { margin-top: 3px; color: var(--gold); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.34em; text-transform: uppercase; }

.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a {
  position: relative; padding: 6px 0;
  color: var(--text-2); text-decoration: none; font-size: 0.92rem; font-weight: 600;
  transition: color 0.3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold-fill); transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }

.nav__burger { display: none; }

@media (max-width: 1080px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger {
    display: grid; place-content: center; gap: 7px;
    margin-left: auto; width: 46px; height: 46px;
    border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: rgb(11 10 8 / 0.5);
  }
  .nav__burger span { width: 20px; height: 1.5px; background: var(--text); transition: transform 0.4s var(--ease-out); }
  .nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
}

.menu {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 49;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  background: rgb(11 10 8 / 0.97);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; text-decoration: none;
}
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 120px;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 72% 42%, rgb(201 160 82 / 0.12), transparent 70%),
    radial-gradient(80% 60% at 20% 100%, rgb(140 106 46 / 0.10), transparent 70%),
    var(--bg);
}
.hero__stage { position: absolute; inset: 0; }
.hero__canvas { width: 100%; height: 100%; }
.hero__fallback {
  position: absolute; right: 8%; top: 50%; transform: translateY(-50%);
  width: min(38vw, 460px); opacity: 0; transition: opacity 0.8s;
}
.no-webgl .hero__fallback { opacity: 0.9; }
.hero__fallback svg { width: 100%; height: auto; filter: drop-shadow(0 20px 60px rgb(201 160 82 / 0.35)); }
.hero__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(11 10 8 / 0.92) 0%, rgb(11 10 8 / 0.55) 38%, transparent 62%),
    linear-gradient(180deg, transparent 70%, var(--bg) 100%);
}

.hero__content { position: relative; z-index: 2; }
.hero__content > * { max-width: 640px; }
.hero__title {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.9rem, 6.6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.hero__lead { margin-top: 24px; color: var(--text-2); font-size: clamp(1.02rem, 1.3vw, 1.14rem); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 38px; }
.hero__chips li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.86rem; font-weight: 600; }
.hero__chips i { color: var(--gold); font-size: 1.15rem; }

.hero__motto {
  position: absolute; right: var(--gutter); bottom: 104px; z-index: 2;
  font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--gold);
  letter-spacing: 0.04em;
}
.hero__scroll {
  position: absolute; left: 50%; bottom: 32px; z-index: 2; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid var(--line-strong); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--gold);
  animation: scrollcue 2s var(--ease-out) infinite;
}
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 560px) {
  .hero { padding-bottom: 84px; }
  .hero__chips { display: none; }
  .hero__lead { font-size: 0.98rem; margin-top: 18px; }
  .hero__actions { margin-top: 26px; }
}
@media (max-width: 860px) {
  .hero { align-items: flex-end; padding-bottom: 96px; }
  .hero__vignette { background: linear-gradient(180deg, transparent 18%, rgb(11 10 8 / 0.7) 48%, var(--bg) 82%); }
  .hero__motto { display: none; }
  .hero__fallback { right: 50%; top: 26%; transform: translate(50%, -50%); width: 56vw; }
}

/* ---------- Franja de colonias ---------- */
.marquee {
  position: relative; overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex; width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee__track span {
  display: inline-flex; align-items: center; gap: 36px;
  padding: 18px 0 18px 36px;
  font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--text-2);
  white-space: nowrap;
}
.marquee__track span::after { content: "◆"; font-style: normal; font-size: 0.55rem; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__title {
  margin-top: 16px;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.02; letter-spacing: -0.005em;
}
.section__lead { margin-top: 18px; color: var(--text-2); font-size: 1.08rem; max-width: 640px; }
.section__head--center .section__lead { margin-inline: auto; }

.section--ivory {
  --text: var(--ink);
  --text-2: var(--ink-2);
  --muted: #7d735f;
  --line: rgb(120 90 40 / 0.18);
  --line-strong: rgb(120 90 40 / 0.34);
  --surface: #fffaf0;
  --surface-2: #f3ead8;
  --gold-grad: linear-gradient(100deg, #6e521f 0%, #a57c33 22%, #caa052 38%, #7e5e24 56%, #b58c42 78%, #6e521f 100%);
  background: var(--ivory);
  color: var(--text);
  color-scheme: light;
}
.section--ivory .eyebrow { color: #8c6a2e; }
.section--ivory .eyebrow::before { background: linear-gradient(90deg, transparent, #8c6a2e); }

/* Revelado al hacer scroll (main.js añade .is-in). */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Explicación precio + reembolso ---------- */
.explain {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: center;
  margin-bottom: 40px; padding: 26px 28px;
  border: 1px solid var(--line-strong); border-radius: var(--r-card);
  background:
    radial-gradient(120% 140% at 100% 0%, rgb(201 160 82 / 0.10), transparent 60%),
    var(--surface);
}
.explain h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.explain p { margin-top: 8px; color: var(--text-2); font-size: 0.97rem; }
.explain strong { color: var(--gold-hi); font-weight: 700; }
.explain__demo { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.explain__price, .explain__gift {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface-2);
}
.explain__gift { border-color: var(--line-strong); background: linear-gradient(160deg, rgb(201 160 82 / 0.16), rgb(201 160 82 / 0.04)); }
.explain .label { color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.explain .value { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.explain__gift .value { color: var(--gold-hi); }
.explain .note { color: var(--text-2); font-size: 0.82rem; }
.explain__plus { color: var(--gold); font-size: 1.3rem; }
.explain .coin {
  position: absolute; right: 12px; top: 12px;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold-fill); color: #3a2a0c; font-size: 1rem;
  box-shadow: 0 0 0 4px rgb(201 160 82 / 0.15);
}
@media (max-width: 900px) {
  .explain { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .explain { padding: 20px; }
  .explain__demo { grid-template-columns: 1fr; }
  .explain__plus { justify-self: center; transform: rotate(90deg); }
}

/* ---------- Barra de filtros ---------- */
.inv__bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px;
  margin-bottom: 26px;
}
.inv__count { margin-left: auto; color: var(--muted); font-size: 0.9rem; font-weight: 600; }

.seg {
  display: inline-flex; padding: 4px; gap: 2px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: var(--surface);
}
.seg button {
  min-height: 40px; padding: 0 16px;
  border: 0; border-radius: var(--r-pill); background: transparent;
  color: var(--text-2); font-size: 0.9rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background-color 0.3s, color 0.3s;
}
.seg button:hover { color: var(--text); }
.seg button.is-on { background: var(--gold-fill); color: #1c1508; }
.seg--sm button { min-height: 34px; padding: 0 12px; font-size: 0.84rem; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { color: var(--text-2); font-size: 0.86rem; font-weight: 600; }
.field small { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1px solid var(--line-strong); border-radius: var(--r-field);
  background: var(--surface); color: var(--text);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgb(201 160 82 / 0.22);
}
.field.is-invalid input, .field.is-invalid select { border-color: var(--danger); }
.field__err { color: var(--danger); font-size: 0.82rem; font-style: normal; min-height: 0; }
.field__err:empty { display: none; }
.field--inline select { min-height: 48px; border-radius: var(--r-pill); padding-left: 18px; font-size: 0.9rem; font-weight: 600; }

.toggle { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle__ui {
  position: relative; width: 44px; height: 26px; border-radius: 13px;
  border: 1px solid var(--line-strong); background: var(--surface);
  transition: background-color 0.3s, border-color 0.3s;
}
.toggle__ui::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--muted); transition: transform 0.35s var(--ease-out), background-color 0.3s;
}
.toggle input:checked + .toggle__ui { background: rgb(201 160 82 / 0.25); border-color: var(--gold); }
.toggle input:checked + .toggle__ui::after { transform: translateX(18px); background: var(--gold-hi); }
.toggle input:focus-visible + .toggle__ui { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

@media (max-width: 720px) {
  .inv__bar .seg { width: 100%; }
  .inv__bar .seg button { flex: 1; padding: 0 8px; }
  .inv__bar .field--inline { flex: 1 1 45%; }
  .inv__count { margin-left: 0; width: 100%; }
}

/* ---------- Tarjetas de propiedad ---------- */
.inv__grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
}
.card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.5s var(--ease-out);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow), 0 0 0 1px rgb(201 160 82 / 0.08); }

.card__media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--surface-2); border: 0; padding: 0; width: 100%; display: block; text-align: left;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), opacity 0.6s; opacity: 0; }
.card__media img.is-loaded { opacity: 1; }
.card:hover .card__media img { transform: scale(1.05); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0.35), transparent 30%, transparent 60%, rgb(0 0 0 / 0.45)); pointer-events: none; }

.card__nophoto {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px;
  background: radial-gradient(70% 70% at 50% 40%, rgb(201 160 82 / 0.14), transparent 70%), var(--surface-2);
  color: var(--muted); font-size: 0.86rem; font-weight: 600;
}
.card__nophoto svg { width: 64px; height: 64px; opacity: 0.85; }

.card__tag, .card__photos {
  position: absolute; z-index: 1; top: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: rgb(11 10 8 / 0.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgb(255 255 255 / 0.1);
  color: #f4eee2; font-size: 0.76rem; font-weight: 700;
}
.card__tag { left: 14px; }
.card__photos { right: 14px; }

.card__body { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 20px 22px 22px; }
.card__title { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; line-height: 1.05; }
.card__place { margin-top: 2px; color: var(--muted); font-size: 0.86rem; }
.card__specs { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--text-2); font-size: 0.9rem; }
.card__specs span { display: inline-flex; align-items: center; gap: 6px; }
.card__specs i { color: var(--gold); font-size: 1.1rem; }

.price { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.price__label { color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.price__value { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.price__value small { font-size: 0.9rem; font-weight: 600; color: var(--muted); margin-left: 4px; }
.price__value--tbd { font-size: 1.25rem; color: var(--text-2); }

.rebate {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px; padding: 9px 12px;
  border-radius: 12px; border: 1px solid var(--line-strong);
  background: linear-gradient(120deg, rgb(201 160 82 / 0.16), rgb(201 160 82 / 0.03));
  font-size: 0.9rem; color: var(--text-2);
}
.rebate i { color: var(--gold-hi); font-size: 1.2rem; }
.rebate strong { color: var(--gold-hi); font-weight: 800; font-variant-numeric: tabular-nums; }
.card__incl { color: var(--muted); font-size: 0.84rem; }

.card__actions { display: flex; gap: 8px; }
.card__actions .btn { flex: 1; min-height: 46px; }
.card__wa { flex: 0 0 46px !important; padding: 0 !important; }
.card__wa i { font-size: 1.35rem; }

.card--skeleton { min-height: 460px; background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 250% 100%; animation: skel 1.4s linear infinite; }
@keyframes skel { to { background-position: -150% 0; } }

.inv__empty { margin-top: 24px; padding: 22px; border: 1px dashed var(--line-strong); border-radius: var(--r-card); color: var(--text-2); text-align: center; }
.inv__empty a { color: var(--gold-hi); font-weight: 700; }
.inv__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 28px; color: var(--muted); font-size: 0.86rem; }
.inv__foot i { color: var(--gold); }

/* ---------- Estudio 3D ---------- */
.studio { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.studio__frame {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px;
  border: 1px solid var(--line-strong); border-radius: 24px; overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.studio__view { position: relative; min-height: 620px; overflow: hidden; background: #1a1410; }

/* Cielo: tres capas que se funden al cambiar la hora. */
.studio__sky { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease-out); }
.studio__sky[data-sky="dia"] { background: linear-gradient(180deg, #a9cbe6 0%, #d9e7ee 52%, #efe6d2 100%); }
.studio__sky[data-sky="atardecer"] { background: linear-gradient(180deg, #221a2e 0%, #5c3446 30%, #b8653c 62%, #f0c27a 100%); }
.studio__sky[data-sky="noche"] { background: radial-gradient(90% 60% at 70% 10%, #1b2847 0%, transparent 60%), linear-gradient(180deg, #03050b 0%, #0a1224 60%, #141824 100%); }
.studio__view[data-time="dia"] .studio__sky[data-sky="dia"],
.studio__view[data-time="atardecer"] .studio__sky[data-sky="atardecer"],
.studio__view[data-time="noche"] .studio__sky[data-sky="noche"] { opacity: 1; }

.studio__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.studio__canvas:active { cursor: grabbing; }

.studio__labels { position: absolute; inset: 0; pointer-events: none; }
.room-label {
  position: absolute; left: 0; top: 0;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: rgb(11 10 8 / 0.72); border: 1px solid var(--line-strong);
  color: var(--gold-hi); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap; opacity: 0; transition: opacity 0.4s;
  will-change: transform;
}
.room-label.is-on { opacity: 1; }
.room-label--title {
  padding: 6px 14px;
  background: var(--gold-fill); border-color: transparent; color: #1c1508;
  font-size: 0.78rem; letter-spacing: 0.14em;
}

.studio__loading {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-content: center; justify-items: center; gap: 14px;
  background: var(--surface); color: var(--text-2); font-weight: 600;
  transition: opacity 0.6s;
}
.studio__loading svg { width: 64px; height: 64px; animation: pulse 1.6s ease-in-out infinite; }
.studio__loading.is-done { opacity: 0; pointer-events: none; }
@keyframes pulse { 50% { opacity: 0.45; transform: scale(0.94); } }

.studio__views {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  display: flex; gap: 4px; padding: 4px;
  border-radius: var(--r-pill); border: 1px solid rgb(255 255 255 / 0.14);
  background: rgb(11 10 8 / 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.studio__views button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px;
  border: 0; border-radius: var(--r-pill); background: transparent; color: #e9e1d0; font-size: 0.84rem; font-weight: 700;
}
.studio__views button i { font-size: 1.1rem; }
.studio__views button.is-on { background: var(--gold-fill); color: #1c1508; }

.studio__hint, .studio__legal {
  position: absolute; z-index: 2; margin: 0; padding: 6px 12px; border-radius: var(--r-pill);
  background: rgb(11 10 8 / 0.55); color: #d9d0bd; font-size: 0.76rem; font-weight: 600;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.studio__hint { left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px; }
.studio__legal { right: 16px; bottom: 16px; }

.studio__panel {
  display: flex; flex-direction: column; gap: 20px;
  padding: 24px; border-left: 1px solid var(--line);
  max-height: 720px; overflow-y: auto; scrollbar-width: thin;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
}
.ctl__label { margin-bottom: 10px; color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.ctl__desc { margin-top: 10px; color: var(--text-2); font-size: 0.88rem; line-height: 1.5; }

.models { display: grid; gap: 8px; }
.models button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface-2); text-align: left;
  transition: border-color 0.3s, background-color 0.3s;
}
.models strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.models span { color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.models button:hover { border-color: var(--line-strong); }
.models button.is-on { border-color: var(--gold); background: linear-gradient(140deg, rgb(201 160 82 / 0.18), rgb(201 160 82 / 0.04)); }
.models button.is-on strong { color: var(--gold-hi); }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  position: relative; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid rgb(255 255 255 / 0.12); background: var(--c);
  box-shadow: inset 0 -6px 10px rgb(0 0 0 / 0.18);
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-on { border-color: var(--gold-hi); box-shadow: 0 0 0 3px rgb(201 160 82 / 0.35), inset 0 -6px 10px rgb(0 0 0 / 0.18); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px;
  border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: transparent;
  color: var(--text-2); font-size: 0.82rem; font-weight: 700;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.chips button i { font-size: 1rem; }
.chips button.is-on { background: rgb(201 160 82 / 0.16); border-color: var(--gold); color: var(--gold-hi); }

@media (max-width: 1100px) {
  .studio__frame { grid-template-columns: 1fr; }
  .studio__view { min-height: 0; height: min(64vw, 74vh); }
  .studio__panel { max-height: none; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .studio__view { height: min(118vw, 70vh); }
  .studio__views { left: 8px; right: 8px; top: 8px; justify-content: space-between; }
  .studio__views button { padding: 0 8px; flex: 1; justify-content: center; }
  .studio__views button span { font-size: 0.74rem; }
  .studio__hint { display: none; }
  .studio__legal { left: 8px; right: auto; bottom: 8px; font-size: 0.68rem; }
  .studio__panel { padding: 18px; }
}

/* ---------- Servicios ---------- */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.spec {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 30px 24px 28px; border-radius: var(--r-card);
  border: 1px solid var(--line); background: var(--surface);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.4s;
}
.spec:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 24px 50px -30px rgb(90 60 20 / 0.45); }
.spec__num { font-family: var(--font-display); font-size: 1.1rem; font-style: italic; color: #8c6a2e; }
.spec i { font-size: 2.1rem; color: #a07a34; }
.spec h3 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; line-height: 1.1; }
.spec p { color: var(--text-2); font-size: 0.95rem; }

.audiences { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.audience { padding: 28px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface-2); }
.audience h3 { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.audience h3 i { color: #a07a34; }
.audience ul { margin-top: 14px; display: grid; gap: 8px; }
.audience li { position: relative; padding-left: 22px; color: var(--text-2); }
.audience li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 8px; height: 1px; background: #a07a34; }

@media (max-width: 1000px) { .specs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .specs, .audiences { grid-template-columns: 1fr; } }

/* ---------- Vender ---------- */
.sell {
  background:
    radial-gradient(50% 70% at 20% 50%, rgb(201 160 82 / 0.10), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}
.sell__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.sell__svg { width: 100%; max-width: 440px; margin-inline: auto; }
.sell__svg .draw { stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 2.6s var(--ease-out); }
.sell__art.is-in .draw { stroke-dashoffset: 0; }
.sell__chain { opacity: 0; transform: translateY(-10px) rotate(-8deg); transition: opacity 0.8s 1.8s, transform 1.4s 1.8s var(--ease-out); transform-origin: 62px 62px; }
.sell__art.is-in .sell__chain { opacity: 1; transform: none; filter: drop-shadow(0 0 6px rgb(227 196 126 / 0.55)); }
.checks { display: grid; gap: 10px; margin-top: 24px; }
.checks li { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-weight: 600; }
.checks i { color: var(--gold); font-size: 1.3rem; }
@media (max-width: 860px) { .sell__grid { grid-template-columns: 1fr; } .sell__svg { max-width: 300px; } }

/* ---------- Proceso ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.steps::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform 1.6s var(--ease-out);
}
.steps.is-in::before { --p: 1; }
.step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 0 8px; }
.step__dot {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: radial-gradient(circle at 30% 25%, #2d261b, var(--bg));
  color: var(--gold-hi); font-size: 1.7rem;
  box-shadow: 0 0 0 8px var(--bg), 0 0 40px -6px rgb(201 160 82 / 0.45);
}
.step__num { margin-top: 8px; color: var(--gold); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }
.step h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.step p { color: var(--text-2); max-width: 320px; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { left: 33px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, transparent, var(--gold), transparent); transform: scaleY(var(--p, 0)); transform-origin: top; }
  .step { display: grid; grid-template-columns: 68px 1fr; column-gap: 18px; align-items: start; text-align: left; padding: 0; }
  .step__dot { grid-row: span 3; }
  .step__num { margin-top: 4px; }
}

/* ---------- Nosotros ---------- */
.about__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.badge {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface);
}
.badge i { font-size: 1.9rem; color: #a07a34; }
.badge strong { display: block; font-family: var(--font-display); font-size: 1.3rem; line-height: 1; }
.badge span { color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.valores { display: grid; gap: 14px; }
.valor { display: flex; gap: 18px; padding: 24px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); }
.valor i { flex-shrink: 0; font-size: 1.9rem; color: #a07a34; }
.valor h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.valor p { margin-top: 4px; color: var(--text-2); font-size: 0.95rem; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.contact { background: radial-gradient(60% 60% at 90% 10%, rgb(201 160 82 / 0.09), transparent 70%), var(--bg); }
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
.contact__cards a, .contact__static {
  display: flex; align-items: center; gap: 12px; height: 100%;
  padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  text-decoration: none; transition: border-color 0.3s, transform 0.4s var(--ease-out);
}
.contact__cards a:hover { border-color: var(--gold); transform: translateY(-2px); }
.contact__cards i { font-size: 1.6rem; color: var(--gold); }
.contact__cards span span, .contact__cards a > span { display: flex; flex-direction: column; color: var(--text-2); font-size: 0.88rem; }
.contact__cards strong { color: var(--text); font-size: 0.95rem; }

.form {
  display: grid; gap: 16px;
  padding: clamp(22px, 3vw, 36px); border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); font-size: 0.88rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold); flex-shrink: 0; }
.check a { color: var(--gold-hi); }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }
.form__status { font-size: 0.92rem; font-weight: 600; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-error { color: var(--danger); }
.form__status a { color: var(--gold-hi); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row, .contact__cards { grid-template-columns: 1fr; } .form__actions .btn { width: 100%; } }

/* ---------- Pie ---------- */
.footer { padding: 64px 0 28px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; align-items: start; }
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__brand svg { width: 58px; height: 58px; }
.footer__name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.footer__motto { color: var(--gold); font-family: var(--font-display); font-style: italic; }
.footer__nav, .footer__contact { display: grid; gap: 8px; }
.footer__nav a, .footer__contact a, .footer__contact span { color: var(--text-2); text-decoration: none; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 8px; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--gold-hi); }
.footer__contact i { color: var(--gold); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; }
.footer__legal a { color: var(--text-2); }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Modal de propiedad ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgb(5 4 3 / 0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade 0.35s; }
.modal__dialog {
  position: relative; z-index: 1;
  /* minmax(0, …): la columna de fotos no puede crecer por su contenido (una tira
     larga de miniaturas del CRM empujaba la ficha fuera de la pantalla). */
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1fr);
  width: min(1180px, 100%); max-height: calc(100dvh - 40px);
  border-radius: 22px; border: 1px solid var(--line-strong); background: var(--surface);
  overflow: hidden; box-shadow: 0 40px 100px -30px rgb(0 0 0 / 0.8);
  animation: pop 0.5s var(--ease-out);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.modal__close {
  position: absolute; right: 14px; top: 14px; z-index: 3;
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.18); background: rgb(11 10 8 / 0.7); color: #fff; font-size: 1.2rem;
}
.modal__media { position: relative; display: flex; flex-direction: column; background: #070605; min-height: 0; min-width: 0; }
.modal__photo { position: relative; flex: 1; min-height: 320px; display: grid; place-items: center; }
.modal__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.modal__photo .card__nophoto { position: absolute; }
.modal__nav {
  position: absolute; top: calc(50% - 40px); z-index: 2;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.2); background: rgb(11 10 8 / 0.6); color: #fff; font-size: 1.3rem;
}
.modal__nav--prev { left: 12px; }
.modal__nav--next { right: 12px; }
.modal__nav[hidden] { display: none; }
.modal__counter { position: absolute; left: 14px; top: 14px; padding: 4px 10px; border-radius: var(--r-pill); background: rgb(11 10 8 / 0.7); color: #eee; font-size: 0.78rem; font-weight: 700; }
.modal__counter:empty { display: none; }
.modal__thumbs { position: relative; display: flex; gap: 6px; padding: 10px; overflow-x: auto; scrollbar-width: thin; min-width: 0; max-width: 100%; overscroll-behavior-x: contain; }
.modal__thumbs:empty { display: none; }
.modal__thumbs button { flex: 0 0 72px; height: 54px; padding: 0; border-radius: 8px; border: 2px solid transparent; overflow: hidden; background: #111; opacity: 0.6; transition: opacity 0.3s, border-color 0.3s; }
.modal__thumbs button.is-on { border-color: var(--gold); opacity: 1; }
.modal__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.modal__body { display: flex; flex-direction: column; gap: 16px; padding: 30px 28px; overflow-y: auto; min-width: 0; overflow-wrap: anywhere; }
.modal__body h2 { font-family: var(--font-display); font-size: 2.3rem; font-weight: 600; line-height: 1; padding-right: 40px; }
.modal__body .card__specs { font-size: 0.95rem; }
.modal__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.modal__facts div { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.modal__facts dt { color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.modal__facts dd { margin: 2px 0 0; font-weight: 700; }
.modal__note { color: var(--muted); font-size: 0.84rem; }
.modal__actions { display: grid; gap: 8px; margin-top: auto; }
@media (max-width: 900px) {
  .modal { padding: 0; }
  .modal__dialog { grid-template-columns: minmax(0, 1fr); max-height: 100dvh; height: 100dvh; border-radius: 0; overflow-y: auto; }
  .modal__photo { min-height: 0; aspect-ratio: 4 / 3; flex: none; }
  .modal__body { overflow: visible; }
}
body.modal-open { overflow: hidden; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
