/* propiedades.veroreyna.com — identidad basada en veroreyna.com */
[hidden] { display: none !important; }
:root {
  --violet: #6600a1;
  --violet-600: #55008a;
  --violet-300: #b48ad6;
  --lavender: #d9cafe;
  --lilac: #efe8fc;
  --lilac-50: #f8f5fe;
  --blush: #f7ebf4;
  --plum: #2e1046;
  --plum-800: #3b1659;
  --plum-700: #4b1d6f;
  --ink: #1d1426;
  --muted: #6c6078;
  --line: #e7def3;
  --white: #ffffff;
  --ok: #0f7a4f;
  --ok-bg: #e3f5ec;
  --warn: #9a5b00;
  --warn-bg: #fff1d6;
  --sold: #3b1659;
  --wa: #25d366;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --radius: 22px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --shadow-sm: 0 2px 10px rgba(46, 16, 70, .06);
  --shadow: 0 20px 50px -20px rgba(46, 16, 70, .25);
  --shadow-lg: 0 40px 90px -30px rgba(46, 16, 70, .4);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--violet-300); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 600; color: var(--violet); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--plum-700);
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--violet); }
.icon { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.2em; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1.2; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--plum); color: var(--white); box-shadow: 0 12px 30px -12px rgba(46, 16, 70, .55); }
.btn-primary:hover { background: var(--plum-800); }
.btn-violet { background: var(--violet); color: var(--white); box-shadow: 0 12px 30px -12px rgba(102, 0, 161, .55); }
.btn-violet:hover { background: var(--violet-600); }
.btn-ghost { background: var(--white); color: var(--plum); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--violet-300); }
.btn-wa { background: var(--wa); color: #08361c; }
.btn-wa:hover { background: #1fbf5b; }
.btn-light { background: rgba(255,255,255,.14); color: var(--white); border-color: rgba(255,255,255,.28); }
.btn-light:hover { background: rgba(255,255,255,.22); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 46px; width: auto; }
.brand-sub {
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  padding-left: 12px; border-left: 1px solid var(--line); line-height: 1.2;
}
.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav a {
  padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap;
  transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav a.active { background: var(--lilac); color: var(--violet); }
.header-cta { flex: none; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); align-items: center; justify-content: center; }
.mobile-nav { display: none; }

@media (max-width: 1140px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .brand-sub { display: none; }
  .mobile-nav {
    display: block; position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 12px var(--gutter) 20px; transform: translateY(-120%); transition: transform .35s var(--ease);
  }
  .mobile-nav.open { transform: none; }
  .mobile-nav a { display: block; padding: 14px 4px; font-weight: 600; border-bottom: 1px solid var(--line); }
  .mobile-nav .btn { margin-top: 16px; width: 100%; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: clamp(40px, 7vw, 90px) 0 clamp(56px, 8vw, 110px);
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(217, 202, 254, .75), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(247, 235, 244, .9), transparent 60%),
    linear-gradient(180deg, var(--lilac-50), var(--white));
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 30% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 10%, transparent 70%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 {
  margin: 18px 0 18px; font-size: clamp(38px, 5.4vw, 68px); line-height: 1.04; letter-spacing: -.025em; font-weight: 700; color: var(--plum);
}
.hero h1 .serif { font-size: 1.06em; letter-spacing: 0; }
.hero p.lead { font-size: clamp(16px, 1.4vw, 18px); color: var(--muted); max-width: 540px; margin: 0 0 30px; }

.search-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 10px; max-width: 640px;
}
.seg { display: flex; gap: 4px; padding: 4px; background: var(--lilac-50); border-radius: 16px; margin-bottom: 10px; }
.seg button {
  flex: 1; border: 0; background: transparent; padding: 10px 8px; border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--muted);
  transition: background .2s, color .2s, box-shadow .2s;
}
.seg button[aria-pressed="true"] { background: var(--white); color: var(--violet); box-shadow: var(--shadow-sm); }
.search-fields { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 8px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 4px; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); min-width: 0; }
.field label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field select, .field input { border: 0; outline: 0; background: transparent; padding: 0; font-weight: 600; font-size: 15px; width: 100%; min-width: 0; appearance: none; -webkit-appearance: none; }
.field.select { position: relative; }
.field.select::after { content: ""; position: absolute; right: 14px; bottom: 16px; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.search-fields .btn { height: 100%; min-height: 58px; border-radius: 14px; padding: 0 24px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; color: var(--muted); font-size: 14px; font-weight: 600; }
.hero-stats strong { color: var(--plum); font-size: 20px; margin-right: 6px; }

.hero-collage { position: relative; aspect-ratio: 1 / 1.02; max-width: 560px; justify-self: end; width: 100%; }
.hero-collage figure { position: absolute; margin: 0; overflow: hidden; border-radius: 28px; box-shadow: var(--shadow-lg); background: var(--lilac); }
.hero-collage figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-collage .c1 { inset: 0 18% 22% 0; border-radius: 220px 220px 28px 28px; }
.hero-collage .c2 { width: 46%; height: 44%; right: 0; top: 16%; }
.hero-collage .c3 { width: 50%; height: 36%; right: 6%; bottom: 0; }
.hero-chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow); font-size: 13px; color: var(--muted);
}
.hero-chip b { display: block; color: var(--ink); font-size: 14px; }
.hero-chip .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--lilac); color: var(--violet); display: grid; place-items: center; }
.hero-chip.k1 { left: -6%; bottom: 30%; }
.hero-chip.k2 { left: 8%; bottom: -2%; }

@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-collage { display: none; }
}
@media (max-width: 1200px) and (min-width: 981px), (max-width: 640px) {
  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-fields .field:first-child { grid-column: 1 / -1; }
  .search-fields .btn { grid-column: 1 / -1; min-height: 52px; }
  .seg button { font-size: 13px; padding: 10px 4px; }
}

/* ---------- secciones ---------- */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 30px; margin-bottom: 28px; }
.section-head h2 { margin: 12px 0 0; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -.02em; color: var(--plum); }
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 520px; }

/* ---------- pestañas de operación ---------- */
.op-tabs { display: flex; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); box-shadow: var(--shadow-sm); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.op-tabs::-webkit-scrollbar { display: none; }
.op-tabs button {
  display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 11px 20px; border-radius: 999px;
  font-weight: 700; font-size: 15px; color: var(--muted); white-space: nowrap; transition: background .2s, color .2s;
}
.op-tabs button .count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--lilac); color: var(--violet); font-size: 12px; display: inline-grid; place-items: center; }
.op-tabs button[aria-selected="true"] { background: var(--plum); color: var(--white); }
.op-tabs button[aria-selected="true"] .count { background: rgba(255,255,255,.18); color: var(--white); }

.listing { display: grid; grid-template-columns: 290px 1fr; gap: 32px; align-items: start; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .result-count { font-weight: 600; color: var(--muted); }
.toolbar .result-count strong { color: var(--ink); }
.toolbar-right { display: flex; gap: 10px; align-items: center; }
.sort { position: relative; }
.sort select { appearance: none; -webkit-appearance: none; border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 10px 40px 10px 16px; font-weight: 600; font-size: 14px; }
.sort::after { content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.filters-btn { display: none; }
.filters-btn .badge { background: var(--violet); color: var(--white); border-radius: 999px; font-size: 12px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; padding: 0 6px; }

/* ---------- filtros ---------- */
.filters {
  position: sticky; top: calc(var(--header-h) + 18px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 20px 20px; box-shadow: var(--shadow-sm); max-height: calc(100vh - var(--header-h) - 36px); overflow: auto;
}
.filters-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 6px; }
.filters-head h3 { margin: 0; font-size: 17px; color: var(--plum); }
.link-btn { border: 0; background: none; color: var(--violet); font-weight: 700; font-size: 14px; padding: 4px; }
.link-btn:disabled { color: var(--muted); opacity: .5; cursor: default; }
.fgroup { border-top: 1px solid var(--line); padding: 16px 0 4px; }
.fgroup:first-of-type { border-top: 0; }
.fgroup h4 { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 15px; }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--violet-300); display: grid; place-items: center; margin: 0; flex: none; transition: background .15s, border-color .15s; }
.check input:checked { background: var(--violet); border-color: var(--violet); }
.check input:checked::after { content: ""; width: 6px; height: 10px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check .n { margin-left: auto; color: var(--muted); font-size: 13px; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 600; min-width: 0; }
.range input:focus { outline: 0; border-color: var(--violet-300); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 14px; color: var(--ink); transition: all .15s; }
.chips button[aria-pressed="true"] { background: var(--lilac); border-color: var(--violet-300); color: var(--violet); }
.filters-apply { display: none; }

@media (max-width: 980px) {
  .listing { grid-template-columns: 1fr; }
  .filters-btn { display: inline-flex; }
  .filters {
    position: fixed; inset: auto 0 0 0; top: auto; z-index: 80; max-height: 86vh; border-radius: 24px 24px 0 0;
    transform: translateY(105%); transition: transform .35s var(--ease); box-shadow: var(--shadow-lg); padding-bottom: 0;
  }
  .filters.open { transform: none; }
  .filters-apply { display: block; position: sticky; bottom: 0; background: var(--white); padding: 14px 0 18px; border-top: 1px solid var(--line); margin-top: 10px; }
}
.scrim { position: fixed; inset: 0; background: rgba(29, 20, 38, .45); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.show { opacity: 1; pointer-events: auto; }

/* ---------- tarjetas ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 24px; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--lilac); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .3s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--plum); display: grid; place-items: center; opacity: 0; transition: opacity .2s; z-index: 2; box-shadow: var(--shadow-sm); }
.card-nav.prev { left: 10px; } .card-nav.next { right: 10px; }
.card:hover .card-nav, .card-nav:focus-visible { opacity: 1; }
@media (hover: none) { .card-nav { opacity: .9; width: 30px; height: 30px; } }
.card-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; gap: 5px; justify-content: center; z-index: 2; pointer-events: none; }
.card-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); transition: background .2s, transform .2s; }
.card-dots span.on { background: var(--white); transform: scale(1.25); }
.tags { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; max-width: calc(100% - 90px); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .04em; background: rgba(255,255,255,.94); color: var(--plum); box-shadow: var(--shadow-sm); }
.tag.op-venta { color: var(--violet); }
.tag.op-renta { color: #0b5f8a; }
.tag.op-proyecto { background: var(--plum); color: var(--white); }
.media-count { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; z-index: 2; }
.media-count span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; background: rgba(29, 20, 38, .62); color: var(--white); font-size: 12px; font-weight: 700; }
.status-ribbon {
  position: absolute; z-index: 3; inset: auto 0 0 0; padding: 9px 14px; text-align: center; font-weight: 800; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--white);
}
.status-ribbon.s-vendido, .status-ribbon.s-rentado { background: rgba(46, 16, 70, .88); }
.status-ribbon.s-apartado { background: rgba(154, 91, 0, .9); }
.card.is-closed .card-media img { filter: grayscale(.5) brightness(.92); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.price { font-weight: 800; font-size: 23px; letter-spacing: -.01em; color: var(--plum); line-height: 1.2; }
.price small { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.price .desde { display: block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.price-alt { font-size: 13px; color: var(--muted); font-weight: 600; }
.price-alt b { color: var(--ink); }
.card-title { font-size: 16.5px; font-weight: 700; line-height: 1.35; margin: 2px 0 0; color: var(--ink); }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-zone { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 600; }
.specs { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 600; }
.specs span { display: inline-flex; align-items: center; gap: 6px; }
.specs .icon { color: var(--violet); }

.empty { text-align: center; padding: 64px 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty h3 { color: var(--plum); margin: 10px 0 6px; }
.skeleton { background: linear-gradient(90deg, var(--lilac-50), var(--lilac), var(--lilac-50)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); min-height: 380px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.pagination button { min-width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-weight: 700; padding: 0 14px; }
.pagination button[aria-current="page"] { background: var(--plum); color: var(--white); border-color: var(--plum); }
.pagination button:disabled { opacity: .4; cursor: default; }

/* ---------- vende o renta ---------- */
.owners { position: relative; overflow: hidden; color: var(--white); background: radial-gradient(900px 500px at 100% 0%, rgba(102, 0, 161, .55), transparent 60%), linear-gradient(135deg, var(--plum), #1d0b2e); }
.owners .container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.owners .eyebrow { color: var(--lavender); }
.owners .eyebrow::before { background: var(--lavender); }
.owners h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.06; letter-spacing: -.02em; margin: 14px 0 18px; }
.owners h2 .serif { color: var(--lavender); }
.owners p { color: rgba(255,255,255,.78); max-width: 520px; }
.benefits { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.benefits li { display: flex; gap: 14px; align-items: flex-start; }
.benefits .ic { width: 42px; height: 42px; border-radius: 14px; background: rgba(217, 202, 254, .14); color: var(--lavender); display: grid; place-items: center; flex: none; }
.benefits b { display: block; color: var(--white); }
.benefits span { color: rgba(255,255,255,.7); font-size: 15px; }
.owner-form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-lg); }
.owner-form h3 { margin: 0 0 4px; color: var(--plum); font-size: 22px; }
.owner-form p { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.input { display: flex; flex-direction: column; gap: 6px; }
.input label { font-size: 13px; font-weight: 700; color: var(--plum-700); }
.input input, .input select, .input textarea { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 15px; background: var(--white); width: 100%; min-width: 0; }
.input textarea { resize: vertical; min-height: 90px; }
.input input:focus, .input select:focus, .input textarea:focus { outline: 0; border-color: var(--violet-300); box-shadow: 0 0 0 4px rgba(180, 138, 214, .2); }
.radio-row { display: flex; gap: 8px; }
.radio-row label { flex: 1; }
.radio-row input { position: absolute; opacity: 0; }
.radio-row span { display: block; text-align: center; padding: 11px; border: 1px solid var(--line); border-radius: 12px; font-weight: 700; cursor: pointer; transition: all .15s; }
.radio-row input:checked + span { background: var(--lilac); border-color: var(--violet-300); color: var(--violet); }
.radio-row input:focus-visible + span { outline: 3px solid var(--violet-300); }
@media (max-width: 900px) { .owners .container { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: #170a24; color: rgba(255,255,255,.72); padding: 64px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer img.logo { height: 54px; width: auto; margin-bottom: 16px; }
.site-footer h4 { color: var(--white); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin: 6px 0 14px; }
.site-footer a { display: inline-flex; align-items: center; gap: 10px; padding: 4px 0; transition: color .2s; }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; color: rgba(255,255,255,.5); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: var(--white);
  display: grid; place-items: center; box-shadow: 0 16px 34px -10px rgba(37, 211, 102, .6); transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float .icon { width: 30px; height: 30px; }

/* ---------- ficha de propiedad ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); padding: 22px 0 16px; }
.crumbs a:hover { color: var(--violet); }
.crumbs .sep { opacity: .5; }

.gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: clamp(320px, 52vw, 560px); border-radius: var(--radius); overflow: hidden; }
.gallery button { padding: 0; border: 0; background: var(--lilac); overflow: hidden; position: relative; }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery button:hover img { transform: scale(1.03); }
.gallery .g0 { grid-row: 1 / 3; }
.gallery.n1 { grid-template-columns: 1fr; }
.gallery.n2 { grid-template-columns: 2fr 1fr; }
.gallery.n2 .g1 { grid-row: 1 / 3; }
.gallery.n3 { grid-template-columns: 2fr 1fr; }
.gallery.n4 .g3 { grid-column: 2 / 4; }
.gallery .gallery-all { position: absolute; right: 16px; bottom: 16px; z-index: 4; padding: 8px 16px; background: var(--white); border: 1px solid var(--line); overflow: visible; }
.gallery .status-ribbon { font-size: 15px; padding: 12px; }
@media (max-width: 760px) {
  .gallery-wrap { margin: 0 calc(-1 * var(--gutter)); position: relative; }
  .gallery { position: static; }
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 0; height: 72vw; max-height: 460px; gap: 0; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery button { flex: 0 0 100%; scroll-snap-align: start; }
  .gallery button:not(.g0) { display: block; }
  .gallery-counter { position: absolute; left: 14px; bottom: 14px; z-index: 3; background: rgba(29, 20, 38, .65); color: var(--white); font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
  .gallery .gallery-all { display: inline-flex; right: 12px; bottom: 12px; }
}
@media (min-width: 761px) { .gallery-counter { display: none; } .gallery button.extra { display: none; } }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 4vw, 56px); padding: 34px 0 40px; align-items: start; }
.detail h1 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -.02em; color: var(--plum); margin: 12px 0 10px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-tags .tag { box-shadow: none; border: 1px solid var(--line); }
.zone-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 28px 0; }
.spec { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: var(--lilac-50); }
.spec .icon { color: var(--violet); width: 22px; height: 22px; }
.spec b { display: block; font-size: 19px; color: var(--plum); margin-top: 8px; line-height: 1.2; }
.spec span { font-size: 13px; color: var(--muted); font-weight: 600; }
.block { padding: 30px 0; border-top: 1px solid var(--line); }
.block h2 { font-size: 22px; color: var(--plum); margin: 0 0 16px; letter-spacing: -.01em; }
.desc { white-space: pre-line; color: #3c3247; font-size: 16.5px; line-height: 1.75; }
.desc.clamped { max-height: 380px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.amen { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px 18px; list-style: none; padding: 0; margin: 0; }
.amen li { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 15px; }
.amen .icon { color: var(--violet); background: var(--lilac); border-radius: 50%; padding: 4px; width: 26px; height: 26px; }
.models { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.model { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; background: var(--white); }
.model h3 { margin: 0 0 6px; font-size: 18px; color: var(--plum); }
.model .m2 { font-family: var(--font-serif); font-style: italic; font-size: 26px; color: var(--violet); font-weight: 600; }
.model ul { list-style: none; padding: 0; margin: 10px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.model .mp { margin-top: 10px; font-weight: 800; color: var(--plum); }
.datalist { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 28px; margin: 0; }
.datalist div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.datalist dt { color: var(--muted); font-weight: 600; }
.datalist dd { margin: 0; font-weight: 700; text-align: right; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 300px)); gap: 16px; }
.videos video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius-sm); background: #000; }
.videos.landscape video { aspect-ratio: 16 / 9; }
.docs a { display: inline-flex; }

.aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.price-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); background: var(--white); }
.price-card .price { font-size: 30px; }
.price-card .op-label { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.price-card .row + .row { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.price-card .note { color: var(--muted); font-size: 13px; margin-top: 6px; }
.price-card .actions { display: grid; gap: 10px; margin-top: 22px; }
.agent { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--lilac-50); }
.agent img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; object-position: top; }
.agent b { display: block; color: var(--plum); }
.agent span { color: var(--muted); font-size: 14px; }
.status-note { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; font-weight: 700; font-size: 14px; margin-bottom: 16px; }
.status-note.s-apartado { background: var(--warn-bg); color: var(--warn); }
.status-note.s-vendido, .status-note.s-rentado { background: var(--lilac); color: var(--plum); }
@media (max-width: 980px) {
  .detail { grid-template-columns: 1fr; }
  .aside { position: static; }
  .price-card .actions { display: none; }
}
.mobile-bar { display: none; }
@media (max-width: 980px) {
  .mobile-bar { display: flex; position: fixed; inset: auto 0 0 0; z-index: 60; gap: 12px; align-items: center; justify-content: space-between; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .mobile-bar .price { font-size: 19px; }
  .has-mobile-bar .wa-float { display: none; }
  .has-mobile-bar { padding-bottom: 84px; }
}

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15, 8, 22, .96); display: none; flex-direction: column; color: var(--white); }
.lightbox.open { display: flex; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-weight: 700; font-size: 14px; }
.lb-stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 70px; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; user-select: none; -webkit-user-drag: none; }
.lb-btn { width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: var(--white); display: grid; place-items: center; transition: background .2s; }
.lb-btn:hover { background: rgba(255,255,255,.24); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 18px 18px; scrollbar-width: thin; }
.lb-thumbs button { flex: 0 0 76px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; opacity: .55; background: none; }
.lb-thumbs button.on { border-color: var(--lavender); opacity: 1; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .lb-stage { padding: 0 8px; } .lb-prev, .lb-next { width: 40px; height: 40px; background: rgba(0,0,0,.4); } .lb-thumbs { display: none; } }

.similar { padding: 20px 0 80px; }
.similar h2 { font-size: 28px; color: var(--plum); margin: 0 0 22px; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: var(--white); padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; opacity: 0; transition: all .3s var(--ease); z-index: 120; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound h1 { font-size: clamp(36px, 5vw, 56px); color: var(--plum); margin: 10px 0; }

.show-sm { display: none; }
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .op-tabs { width: 100%; }
  .op-tabs button { flex: 1; justify-content: center; padding: 10px 8px; font-size: 14px; gap: 6px; }
  .section-head { margin-bottom: 20px; }
}

#propiedades, #vende, #owner-form { scroll-margin-top: calc(var(--header-h) + 12px); }
.status-ribbon ~ .card-dots { bottom: 50px; }
