/* LUCIRA Open House — sistema de diseño (ver DESIGN.md) */

:root {
  --carbon: #0F0F12;
  --carbon-soft: #1A1A20;
  --gold: #D9A441;
  --gold-strong: #B8862F;
  --cream: #F4F0E7;
  --white: #FFFFFF;
  --ink: #26262C;
  --ink-soft: #5A5A64;
  --line: #E4DDCE;
  --success: #2E7D4F;
  --danger: #B4372E;
  --shadow: 0 8px 30px rgba(15, 15, 18, .08);
  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

button, .btn { cursor: pointer; touch-action: manipulation; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- Tipografía ---------- */

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 14px;
}

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section-title { font-size: clamp(28px, 4vw, 36px); margin-bottom: 12px; }
.section-sub { color: var(--ink-soft); max-width: 640px; }

.on-dark { color: var(--cream); }
.on-dark .section-sub { color: rgba(244, 240, 231, .72); }
.on-dark .eyebrow { color: var(--gold); }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 500 16px/1 'Poppins', sans-serif;
  text-decoration: none;
  transition: background .15s ease-out, color .15s ease-out, border-color .15s ease-out, transform .15s ease-out;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.97); }

.btn--gold { background: var(--gold); color: var(--carbon); }
.btn--gold:hover { background: var(--gold-strong); }

.btn--outline { border-color: rgba(244, 240, 231, .4); color: var(--cream); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }

.btn--outline-dark { border-color: var(--carbon); color: var(--carbon); }
.btn--outline-dark:hover { background: var(--carbon); color: var(--cream); }

.btn--ghost { color: var(--ink); text-decoration: underline; min-height: 44px; padding: 10px 8px; border-radius: var(--radius-sm); }

/* ---------- Navbar ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--carbon);
  border-bottom: 1px solid rgba(217, 164, 65, .18);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav__links a {
  display: inline-block;
  padding: 10px 14px;
  color: rgba(244, 240, 231, .85);
  text-decoration: none;
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: color .15s ease-out;
}
.nav__links a:hover { color: var(--gold); }
.nav__links a.is-active { color: var(--gold); font-weight: 500; }
.nav__cta { margin-left: 8px; }
.nav__burger {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  color: var(--cream);
}
.nav__burger svg { width: 26px; height: 26px; }

@media (max-width: 820px) {
  .nav__burger { display: block; }
  .nav__menu {
    display: none;
    position: absolute;
    inset: 72px 0 auto 0;
    background: var(--carbon);
    padding: 8px 24px 24px;
    border-bottom: 1px solid rgba(217, 164, 65, .18);
  }
  .nav--open .nav__menu { display: block; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__links a { padding: 14px; font-size: 17px; }
  .nav__cta { margin: 12px 0 0; justify-content: center; width: 100%; }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--carbon);
  background-image: radial-gradient(ellipse 70% 60% at 80% -10%, rgba(217, 164, 65, .14), transparent);
  color: var(--cream);
  padding: 104px 0 112px;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  max-width: 760px;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { font-size: clamp(17px, 2vw, 20px); color: rgba(244, 240, 231, .78); max-width: 620px; margin-bottom: 36px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Steps / features ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.card h3 { font-size: 19px; margin: 16px 0 8px; }
.card p { color: var(--ink-soft); font-size: 15px; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(217, 164, 65, .15);
  color: var(--gold-strong);
  font-weight: 600;
  font-size: 18px;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(217, 164, 65, .15);
  color: var(--gold-strong);
}
.icon-badge svg { width: 24px; height: 24px; }

/* ---------- Franja dark (diferenciación) ---------- */

.band {
  background: var(--carbon);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 56px 48px;
}
@media (max-width: 700px) { .band { padding: 40px 24px; } }
.band h2 { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 12px; }
.band p { color: rgba(244, 240, 231, .75); max-width: 660px; }
.band ul { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.band li { display: flex; gap: 12px; align-items: flex-start; color: rgba(244, 240, 231, .88); }
.band li svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 2px; }

/* ---------- Cards de propiedad ---------- */

.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 980px) { .prop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .prop-grid { grid-template-columns: 1fr; } }

.prop-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease-out, box-shadow .2s ease-out;
}
.prop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.prop-card__media { position: relative; aspect-ratio: 3 / 2; background: var(--carbon-soft); }
.prop-card__media img { width: 100%; height: 100%; object-fit: cover; }
.prop-card__media .no-photo {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(244, 240, 231, .35);
}
.prop-card__media .no-photo svg { width: 48px; height: 48px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.badge--disponible { background: var(--gold); color: var(--carbon); }
.badge--senada { background: var(--carbon); color: var(--cream); border: 1px solid rgba(217,164,65,.5); }
.badge--oculta { background: var(--ink-soft); color: var(--white); }
.badge--borrador { background: var(--line); color: var(--ink); }
.prop-card__media .badge { position: absolute; top: 14px; left: 14px; }

.prop-card__body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prop-card__price { font-size: 22px; font-weight: 600; color: var(--carbon); font-variant-numeric: tabular-nums; }
.prop-card__price small { font-size: 13px; font-weight: 400; color: var(--ink-soft); }
.prop-card__title { font-size: 16px; font-weight: 500; color: var(--ink); }
.prop-card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-soft); font-size: 14px; margin-top: auto; }
.prop-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.prop-card__meta svg { width: 16px; height: 16px; color: var(--gold-strong); }
.prop-card__zone { font-size: 13px; color: var(--ink-soft); }

/* ---------- Filtros ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 40px; }
.filters select {
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font: 400 15px 'Poppins', sans-serif;
  color: var(--ink);
}

/* ---------- Ficha de propiedad ---------- */

.ficha-hero { padding: 40px 0 0; }
.ficha-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.ficha-head h1 { font-size: clamp(26px, 3.6vw, 38px); margin: 10px 0 6px; }
.ficha-head .addr { color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.ficha-head .addr svg { width: 18px; height: 18px; color: var(--gold-strong); }
.ficha-price { text-align: right; }
.ficha-price .amount { font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; font-variant-numeric: tabular-nums; }
.ficha-price .exp { color: var(--ink-soft); font-size: 14px; }
@media (max-width: 640px) { .ficha-price { text-align: left; } }

.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.gallery__main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--carbon-soft); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery__side { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; min-height: 0; }
.gallery__side .g-item { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--carbon-soft); min-height: 0; }
.gallery__side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery__more {
  position: absolute; inset: 0;
  background: rgba(15, 15, 18, .55);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-weight: 500;
  cursor: pointer;
  border: 0;
  font-size: 16px;
}
@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .gallery__side .g-item { aspect-ratio: 3 / 2; }
}

.ficha-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 40px; margin-top: 48px; align-items: start; }
@media (max-width: 900px) { .ficha-grid { grid-template-columns: 1fr; } }

.attrs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 520px) { .attrs { grid-template-columns: 1fr; } }
.attrs div { background: var(--white); padding: 14px 18px; display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.attrs dt { color: var(--ink-soft); }
.attrs dd { font-weight: 500; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
}
.chip svg { width: 16px; height: 16px; color: var(--gold-strong); }

.video-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--carbon); }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.inmo-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 96px;
}
.inmo-card .who { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.inmo-card .who img { width: 52px; height: 52px; object-fit: contain; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--white); }
.inmo-card .who strong { font-size: 17px; }
.inmo-card .who span { display: block; font-size: 13px; color: var(--ink-soft); }
.inmo-card .role { font-size: 13px; color: var(--ink-soft); margin-bottom: 18px; }
.inmo-card .btn { width: 100%; justify-content: center; margin-bottom: 10px; }
.share-row { display: flex; gap: 10px; margin-top: 14px; }
.share-row .btn { flex: 1; min-height: 44px; padding: 8px 12px; font-size: 14px; margin: 0; }

.ficha-section { margin-top: 40px; }
.ficha-section h2 { font-size: 22px; margin-bottom: 18px; }
.ficha-desc { white-space: pre-line; color: var(--ink); max-width: 70ch; }

.senada-banner {
  background: var(--carbon);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.senada-banner svg { width: 22px; height: 22px; color: var(--gold); flex: none; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15, 15, 18, .92);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 78vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox__bar { display: flex; align-items: center; gap: 18px; color: var(--cream); }
.lightbox button {
  background: rgba(244, 240, 231, .1);
  color: var(--cream);
  border: 0;
  border-radius: 999px;
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
}
.lightbox button:hover { background: rgba(217, 164, 65, .3); }
.lightbox button svg { width: 22px; height: 22px; }

/* ---------- QR modal ---------- */

.qr-modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15, 15, 18, .7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.qr-modal.is-open { display: flex; }
.qr-modal__box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  max-width: 340px;
}
.qr-modal__box h3 { margin-bottom: 6px; }
.qr-modal__box p { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.qr-modal__box #qr-canvas-wrap { display: flex; justify-content: center; margin-bottom: 18px; }

/* ---------- FAQ ---------- */

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; color: var(--gold-strong); flex: none; transition: transform .2s ease-out; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 24px 20px; color: var(--ink-soft); }

/* ---------- Footer ---------- */

.footer { background: var(--carbon); color: rgba(244, 240, 231, .75); padding: 64px 0 40px; margin-top: 96px; }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start; }
.footer__brand img { height: 44px; margin-bottom: 14px; }
.footer__brand p { font-size: 14px; max-width: 320px; }
.footer h4 { color: var(--cream); font-size: 15px; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 10px; font-size: 14px; }
.footer a { color: rgba(244, 240, 231, .75); text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(244, 240, 231, .12); font-size: 13px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* ---------- Empty state ---------- */

.empty {
  text-align: center;
  padding: 80px 24px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
}
.empty svg { width: 44px; height: 44px; color: var(--gold); margin: 0 auto 16px; }
.empty h3 { color: var(--ink); margin-bottom: 6px; }

/* ---------- 404 ---------- */

.notfound { text-align: center; padding: 120px 24px; }
.notfound h1 { font-size: clamp(40px, 8vw, 72px); color: var(--carbon); }
.notfound p { color: var(--ink-soft); margin: 12px 0 28px; }

/* ---------- Utilidades ---------- */

.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.center { text-align: center; }
.section-head { margin-bottom: 40px; }
.section-head--split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }

@media (max-width: 700px) {
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 80px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
