﻿:root {
  --ink: #16202c;
  --muted: #5f6f80;
  --line: #e3e9ef;
  --bg: #ffffff;
  --soft: #f6f8fa;
  --accent: #0f5a8f;
  --accent-dark: #0b4269;
  --gold: #b6852c;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(22, 32, 44, .06), 0 8px 24px rgba(22, 32, 44, .07);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- cabecera ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
  flex-wrap: wrap;
}
.brand { text-decoration: none; color: inherit; line-height: 1.1; display: block; }
.brand-logo { height: 38px; width: auto; }
.brand-name { display: block; font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.brand-sub {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--gold);
  margin-top: .15rem;
  padding-left: 2px;
}
.header-nav { display: flex; align-items: center; gap: 1.25rem; font-size: .93rem; }
.header-nav a { text-decoration: none; color: var(--muted); }
.header-nav a:hover { color: var(--ink); }
.btn-phone {
  background: var(--accent);
  color: #fff !important;
  padding: .5rem .95rem;
  border-radius: 999px;
  font-weight: 600;
}

/* ---------- WhatsApp ---------- */
:root { --wa: #25d366; --wa-dark: #1da851; }

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--wa);
  color: #fff !important;
  padding: .5rem .95rem;
  border-radius: 999px;
  font-weight: 600;
}
.btn-wa:hover { background: var(--wa-dark); }
.btn-wa svg { width: 1.05em; height: 1.05em; flex-shrink: 0; }

.btn-wa-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  background: var(--wa);
  color: #fff !important;
  padding: .75rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.btn-wa-block:hover { background: var(--wa-dark); }
.btn-wa-block svg { width: 1.2em; height: 1.2em; flex-shrink: 0; }

.contact-alt { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.contact-alt .or { margin-top: .7rem; }

/* Botón flotante: presente en todas las páginas, sin tapar el contenido. */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--wa);
  color: #fff !important;
  padding: .8rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
}
.wa-float:hover { background: var(--wa-dark); }
.wa-float svg { width: 1.4em; height: 1.4em; flex-shrink: 0; }

@media (max-width: 700px) {
  /* En móvil solo el icono, para no comerse la pantalla. */
  .wa-float span { display: none; }
  .wa-float { padding: .85rem; right: .9rem; bottom: .9rem; }
  .btn-wa span { display: none; }
  .btn-wa { padding: .5rem .7rem; }
}

/* ---------- selector de idioma ---------- */
.lang-switch { display: flex; gap: .1rem; align-items: center; }
.lang-switch a, .lang-switch .lang-current {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .25rem .35rem;
  border-radius: 4px;
  text-decoration: none;
  color: var(--muted);
}
.lang-switch a:hover { background: var(--soft); color: var(--ink); }
.lang-switch .lang-current { background: var(--ink); color: #fff; }

/* ---------- páginas de zona ---------- */
.zone-stats { margin: 0 0 1.75rem; }
.zone-stats h2 { font-size: 1.15rem; margin: 0 0 .9rem; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-grid > div { background: #fff; padding: .9rem 1.1rem; }
.stat-grid dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stat-grid dd { margin: .25rem 0 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; }
.zone-types { margin: .9rem 0 0; color: var(--muted); font-size: .92rem; }

.zone-block { margin-bottom: 2rem; }
.zone-block h2 { font-size: 1.1rem; margin: 0 0 .8rem; }
.zone-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.zone-links a {
  display: inline-block;
  padding: .45rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-size: .9rem;
  background: #fff;
}
.zone-links a:hover { border-color: var(--accent); color: var(--accent); }
.zone-links span { color: var(--muted); font-size: .82rem; }

/* ---------- consentimiento de cookies ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: var(--ink);
  color: #e7edf3;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .25);
}
.cookie-banner[hidden] { display: none; }
.cookie-inner {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
  padding: 1.1rem 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-text { flex: 1 1 22rem; }
.cookie-text strong { display: block; margin-bottom: .25rem; font-size: 1rem; }
.cookie-text p { margin: 0; font-size: .86rem; line-height: 1.5; color: #b9c4cf; }
.cookie-text a { color: #fff; }
.cookie-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* Rechazar y aceptar tienen el mismo peso visual: la AEPD exige que rechazar
   sea tan fácil como aceptar, no un enlace escondido. */
.cookie-btn {
  font: inherit;
  font-weight: 600;
  font-size: .92rem;
  padding: .65rem 1.5rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  min-width: 8.5rem;
}
.cookie-accept { background: var(--accent); color: #fff; }
.cookie-accept:hover { background: var(--accent-dark); }
.cookie-reject { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.cookie-reject:hover { background: rgba(255, 255, 255, .1); }

.cookie-table-wrap { overflow-x: auto; margin-bottom: 2rem; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 34rem; }
.cookie-table th, .cookie-table td {
  text-align: left;
  padding: .7rem .8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cookie-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cookie-withdraw { margin-bottom: 3rem; }
.cookie-withdraw h2 { font-size: 1.15rem; margin: 0 0 .6rem; }
.cookie-withdraw p { margin: 0 0 .8rem; color: var(--muted); }
.cookie-withdraw .cookie-btn { min-width: 0; }

@media (max-width: 640px) {
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; min-width: 0; }
}

/* ---------- páginas legales ---------- */
.legal { max-width: 74ch; padding-bottom: 3rem; }
.legal h2 { font-size: 1.12rem; margin: 2rem 0 .7rem; letter-spacing: -.01em; }
.legal p { margin: 0 0 .9rem; color: #2b3947; }
.legal ul { margin: 0 0 1.1rem; padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; color: #2b3947; }
.legal-updated { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2rem; }
.legal-links { margin-top: .5rem; }
.site-footer .legal-links a { color: #c3ccd6; text-decoration: underline; }
.site-footer .legal-links a:hover { color: #fff; }

/* ---------- hero ---------- */
.hero { padding: 2.75rem 0 1.5rem; max-width: 62ch; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.15; letter-spacing: -.025em; margin: 0 0 .6rem; }
.hero p { color: var(--muted); margin: 0; }

/* ---------- filtros ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  align-items: end;
  padding: 1.1rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.filters label {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.filters select {
  font: inherit;
  padding: .55rem .6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-width: 11rem;
}
.filters button {
  font: inherit;
  font-weight: 600;
  padding: .62rem 1.4rem;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
.filters button:hover { background: var(--accent-dark); }
.filters .clear { align-self: center; font-size: .9rem; color: var(--muted); }

.results-count { color: var(--muted); font-size: .92rem; margin: 0 0 1rem; }
.empty { padding: 3rem 0; color: var(--muted); }

/* ---------- rejilla de fichas ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { display: block; position: relative; aspect-ratio: 3 / 2; background: var(--soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-noimg { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: .85rem; }
.card-tag {
  position: absolute;
  top: .7rem;
  left: .7rem;
  background: rgba(22, 32, 44, .82);
  color: #fff;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border-radius: 4px;
}
.card-body { padding: 1rem 1.1rem 1.2rem; }
.card-price { margin: 0 0 .2rem; font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.card-title { margin: 0 0 .15rem; font-size: 1rem; font-weight: 600; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-place { margin: 0 0 .75rem; color: var(--muted); font-size: .88rem; }
.card-specs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0;
  padding: 0;
  font-size: .8rem;
  color: var(--muted);
}
.card-specs li { background: var(--soft); border-radius: 5px; padding: .22rem .55rem; }

/* ---------- paginación ---------- */
.pager { display: flex; gap: .4rem; justify-content: center; margin: 2.5rem 0 1rem; }
.pager a, .pager span {
  padding: .5rem .85rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-decoration: none;
  color: var(--muted);
  font-size: .9rem;
}
.pager .current { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.pager .gap { border: 0; padding: .5rem .3rem; color: var(--muted); }
.filters optgroup { font-style: normal; font-weight: 700; color: var(--muted); }
.filters optgroup option { font-weight: 400; color: var(--ink); }

/* ---------- ficha ---------- */
.crumbs { padding: 1.25rem 0 .25rem; font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 .35rem; opacity: .5; }

.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
}
.detail-head h1 { margin: 0; font-size: clamp(1.5rem, 3.2vw, 2.1rem); letter-spacing: -.025em; }
.detail-place { margin: .3rem 0 0; color: var(--muted); }
.detail-price-block { text-align: right; }
.detail-price { margin: 0; font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 700; color: var(--accent); letter-spacing: -.02em; }

/* El IVA se dice donde se dice el precio. En obra nueva son 10% que el
   comprador no espera, y descubrirlo tarde arruina la confianza. */
.vat-line { margin: .2rem 0 0; font-size: .86rem; color: var(--muted); }
.vat-line strong { color: var(--ink); }
.vat-tag {
  display: inline-block;
  margin-left: .35rem;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .1rem .3rem;
  vertical-align: middle;
}
.vat-detail {
  margin: 1.1rem 0 0;
  padding: .8rem 1rem;
  background: #fff8f2;
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  font-size: .88rem;
  line-height: 1.5;
}

.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.gallery-main img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .5rem; overflow-x: auto; padding: .6rem 0 .2rem; }
.thumb { flex: 0 0 auto; padding: 0; border: 2px solid transparent; border-radius: 7px; overflow: hidden; background: none; cursor: pointer; }
.thumb img { width: 108px; height: 74px; object-fit: cover; }
.thumb.active { border-color: var(--accent); }

.detail-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2.5rem;
  padding: 2rem 0 1rem;
  align-items: start;
}
.detail-main h2 { font-size: 1.2rem; margin: 1.8rem 0 .8rem; letter-spacing: -.01em; }
.detail-main h2:first-child { margin-top: 0; }

.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .1rem 1.5rem; margin: 0; }
.specs > div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: .9rem; }
.specs dd { margin: 0; font-weight: 600; font-size: .92rem; text-align: right; }

.map-link { margin: 1.1rem 0 0; font-size: .93rem; }
.description { color: #2b3947; }
.description h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin: 1.6rem 0 .5rem; }
.description p { margin: 0 0 .9rem; }
.plans { padding-left: 1.1rem; }

/* ---------- formulario ---------- */
.detail-aside { position: sticky; top: 5.5rem; }
.contact-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; background: var(--soft); }
.contact-box h2 { margin: 0 0 .5rem; font-size: 1.15rem; }
.contact-box > p { margin: 0 0 1rem; font-size: .9rem; color: var(--muted); }
.contact-box form { display: flex; flex-direction: column; gap: .8rem; }
.contact-box label { display: flex; flex-direction: column; gap: .3rem; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.contact-box input, .contact-box textarea {
  font: inherit;
  padding: .6rem .7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.contact-box textarea { resize: vertical; }
.contact-box .check { flex-direction: row; align-items: start; gap: .5rem; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .78rem; line-height: 1.4; }
.contact-box .check input { width: auto; margin-top: .15rem; }
.contact-box button {
  font: inherit;
  font-weight: 600;
  padding: .75rem 1rem;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
.contact-box button:hover { background: var(--accent-dark); }
.contact-box .or { font-size: .85rem; color: var(--muted); text-align: center; margin: .9rem 0 0; }
.contact-box .ok { background: #e7f5ec; border: 1px solid #b9e0c7; color: #14562e; padding: .8rem; border-radius: 8px; font-size: .92rem; }
.contact-box .err { background: #fdecec; border: 1px solid #f3c2c2; color: #8a2020; padding: .7rem; border-radius: 8px; font-size: .87rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.related { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 2rem; }
.related h2 { font-size: 1.2rem; margin: 0 0 1.2rem; }

/* ---------- pie ---------- */
.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 0;
  background: var(--ink);
  color: #c3ccd6;
  font-size: .9rem;
}
.site-footer p { margin: 0 0 .4rem; }
.site-footer a { color: #fff; }
.site-footer .fine { margin-top: 1.2rem; font-size: .78rem; color: #8593a2; max-width: 70ch; line-height: 1.5; }

@media (max-width: 900px) {
  .detail-cols { grid-template-columns: 1fr; gap: 1.75rem; }
  .detail-aside { position: static; }
}

/* Aviso al llegar por un enlace de una promocion ya vendida. */
.aviso-vendida {
  background: #fff8f2;
  border: 1px solid #f0d9c0;
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: .8rem 1rem;
  margin: 1rem 0 0;
  font-size: .92rem;
}

/* ------------------------------------------------------------------ *
 * Mapa de promociones
 * ------------------------------------------------------------------ */

.mapa-cabecera { margin: 24px 0 16px; }
.mapa-cabecera h1 { margin: 0 0 6px; }

.mapa-caja { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.mapa-lienzo { height: 68vh; min-height: 380px; background: var(--soft); }
.mapa-cargando {
  position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center;
  background: var(--soft); color: var(--muted); font-size: .95rem; pointer-events: none; z-index: 500;
}
.mapa-nota, .mapa-total { color: var(--muted); font-size: .85rem; margin: 10px 0 0; }
.mapa-total { margin-bottom: 28px; }

/* Chincheta con el precio a la vista. Ver el "desde" sin tener que pinchar es
   la mitad del valor de un mapa inmobiliario. */
.pin { background: none; border: 0; }
.pin-precio {
  display: inline-block; transform: translate(-50%, -100%);
  background: var(--accent); color: #fff; font-weight: 600; font-size: .78rem;
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.6);
}
.pin-n {
  display: flex; align-items: center; justify-content: center;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-dark); color: #fff; font-weight: 700; font-size: .85rem;
  box-shadow: 0 1px 5px rgba(0,0,0,.4); border: 2px solid rgba(255,255,255,.85);
}
.pin-punto {
  display: block; transform: translate(-50%, -50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold); border: 3px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.4);
}

.leaflet-popup-content { margin: 12px 14px; line-height: 1.45; }
.popup-precio { display: block; color: var(--accent); font-weight: 700; margin-top: 4px; }
.popup-iva { display: block; color: var(--muted); font-size: .78rem; }
.popup-btn {
  display: block; text-align: center; margin-top: 10px; padding: 7px 10px;
  background: var(--accent); color: #fff !important; border-radius: 6px;
  font-weight: 600; text-decoration: none;
}
.popup-link { display: block; text-align: center; margin-top: 6px; font-size: .85rem; }

/* Mapa dentro de la ficha: no se carga hasta que lo piden. */
.mapa-ficha-caja { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mapa-ficha-lienzo { height: 320px; }
.mapa-ficha-marco {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  height: 320px; background: var(--soft); color: var(--muted); text-align: center; padding: 16px;
}
.mapa-ficha-aviso { color: var(--muted); font-size: .8rem; margin: 8px 0 0; }

@media (max-width: 640px) {
  .mapa-lienzo { height: 60vh; }
  .pin-precio { font-size: .72rem; padding: 2px 6px; }
}

/* ------------------------------------------------------------------ *
 * Vivienda destacada: página de aterrizaje de campaña.
 *
 * Pensada para el móvil primero, que es de donde llega casi todo el
 * tráfico de Facebook. Los botones de contacto van arriba, antes del
 * detalle: quien tiene medio millón no baja hasta el pie de página
 * para decidir si le interesa.
 * ------------------------------------------------------------------ */

.dst { max-width: 900px; margin: 0 auto 3rem; }

.dst-cabecera { padding: 1.4rem 0 .6rem; }
.dst-migas { color: var(--muted); font-size: .82rem; margin: 0 0 .4rem; text-transform: uppercase; letter-spacing: .05em; }
.dst-cabecera h1 { margin: 0 0 .3rem; font-size: 1.6rem; line-height: 1.2; }
.dst-sub { color: var(--muted); margin: 0 0 .6rem; }
.dst-precio { font-size: 2.1rem; font-weight: 700; color: var(--accent); margin: 0; }
.dst-exclusiva {
  display: inline-block; margin: .5rem 0 0; padding: .2rem .6rem;
  background: var(--gold); color: #fff; border-radius: 999px;
  font-size: .78rem; font-weight: 600;
}

.dst-portada { position: relative; display: block; border-radius: var(--radius); overflow: hidden; margin: 1rem 0; }
.dst-portada img { display: block; width: 100%; height: auto; }
.dst-verfotos {
  position: absolute; right: .8rem; bottom: .8rem;
  background: rgba(0,0,0,.68); color: #fff; padding: .4rem .8rem;
  border-radius: 999px; font-size: .85rem; font-weight: 600;
}

.dst-acciones { display: grid; gap: .6rem; margin: 1rem 0 1.6rem; }
.dst-btn {
  display: block; text-align: center; padding: .9rem 1rem;
  background: var(--accent); color: #fff !important; border: 0;
  border-radius: 8px; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer;
}
.dst-btn:hover { background: var(--accent-dark); }
.dst-wa { background: var(--wa); }
.dst-wa:hover { background: var(--wa-dark); }
.dst-fantasma { background: transparent; color: var(--accent) !important; border: 1px solid var(--accent); }
.dst-fantasma:hover { background: var(--soft); }

.dst-datos dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.dst-datos dl > div { padding: .7rem .2rem; border-bottom: 1px solid var(--line); }
.dst-datos dt { color: var(--muted); font-size: .8rem; }
.dst-datos dd { margin: .15rem 0 0; font-weight: 600; }

.dst-tour h2, .dst-texto h2, .dst-contacto h2, .dst-galeria h2 { margin: 2rem 0 .8rem; }
.dst-tour-marco, .dst-tour-marco-activo {
  width: 100%; height: 420px; border: 0; border-radius: var(--radius);
}
.dst-tour-marco {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .9rem; background: var(--soft); color: var(--muted); text-align: center; padding: 1rem;
}
.dst-tour-marco p { margin: 0; font-size: .88rem; }

.dst-texto p { line-height: 1.65; }
.dst-extras { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: 1fr; gap: .35rem; }
.dst-extras li { padding-left: 1.4rem; position: relative; }
.dst-extras li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.dst-contacto { background: var(--soft); border-radius: var(--radius); padding: 1.2rem; margin: 2rem 0; }
.dst-contacto form { display: grid; gap: .8rem; }
.dst-contacto label { display: grid; gap: .25rem; font-size: .9rem; font-weight: 600; }
.dst-contacto .opt { font-weight: 400; color: var(--muted); }
.dst-contacto input[type=text], .dst-contacto input[type=tel], .dst-contacto input[type=email], .dst-contacto textarea {
  padding: .7rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: #fff;
}
.dst-contacto input[name=website] { position: absolute; left: -9999px; }
.dst-contacto .acepto { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; font-size: .85rem; }
.dst-contacto button { padding: .9rem; background: var(--accent); color: #fff; border: 0; border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer; }
.dst-contacto .ok { color: #1c7a45; font-weight: 600; }
.dst-contacto .error { color: #b3261e; font-weight: 600; }

.dst-rejilla { display: grid; grid-template-columns: 1fr; gap: .5rem; }
.dst-rejilla img { width: 100%; height: auto; border-radius: 6px; display: block; }

.dst-aviso { color: var(--muted); font-size: .78rem; line-height: 1.5; margin-top: 1.2rem; }

@media (min-width: 700px) {
  .dst-cabecera h1 { font-size: 2.1rem; }
  .dst-acciones { grid-template-columns: repeat(3, 1fr); }
  .dst-datos dl { grid-template-columns: repeat(3, 1fr); }
  .dst-extras { grid-template-columns: repeat(2, 1fr); }
  .dst-rejilla { grid-template-columns: repeat(3, 1fr); }
  .dst-tour-marco, .dst-tour-marco-activo { height: 520px; }
}

/* Portada del subdominio de exclusivas. Con una sola vivienda no llega a
   verse —la portada redirige a la ficha— pero existe para cuando haya varias. */
.exc-hero { padding: 2rem 0 1rem; max-width: 700px; }
.exc-hero h1 { margin: 0 0 .5rem; }
.exc-hero p { color: var(--muted); line-height: 1.6; margin: 0; }

.exc-rejilla { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin: 1.5rem 0 3rem; }
.exc-tarjeta {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); background: var(--bg);
}
.exc-tarjeta:hover { border-color: var(--accent); }
.exc-tarjeta img { display: block; width: 100%; height: 220px; object-fit: cover; }
.exc-cuerpo { padding: 1rem; }
.exc-lugar { color: var(--muted); font-size: .8rem; margin: 0 0 .3rem; text-transform: uppercase; letter-spacing: .05em; }
.exc-cuerpo h2 { margin: 0 0 .4rem; font-size: 1.15rem; line-height: 1.3; }
.exc-datos { color: var(--muted); margin: 0 0 .5rem; font-size: .9rem; }
.exc-precio { margin: 0; font-size: 1.35rem; font-weight: 700; color: var(--accent); }

@media (min-width: 700px) {
  .exc-rejilla { grid-template-columns: repeat(2, 1fr); }
}

/* Visor de fotos a pantalla completa. Sin librerías: unas líneas de CSS
   frente a 40 KB de terceros en una página que pesa 5 KB. */

.dst-rejilla img { cursor: zoom-in; transition: opacity .15s; }
.dst-rejilla img:hover { opacity: .88; }
.dst-rejilla img:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.dst-portada { cursor: zoom-in; }

body.sin-scroll { overflow: hidden; }

.visor {
  position: fixed; inset: 0; z-index: 9000;
  display: none; align-items: center; justify-content: center;
  background: rgba(10, 14, 20, .94);
  padding: 3.2rem .5rem;
}
.visor.abierto { display: flex; }

.visor-img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain; border-radius: 4px;
  cursor: zoom-out;
}

.visor-cerrar, .visor-ir {
  position: absolute; z-index: 1;
  background: rgba(255, 255, 255, .12); color: #fff;
  border: 0; cursor: pointer; line-height: 1;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.visor-cerrar:hover, .visor-ir:hover { background: rgba(255, 255, 255, .26); }
.visor-cerrar:focus-visible, .visor-ir:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.visor-cerrar { top: .7rem; right: .7rem; width: 44px; height: 44px; font-size: 1.8rem; }
.visor-ir { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 2rem; }
.visor-antes { left: .5rem; }
.visor-despues { right: .5rem; }

.visor-contador {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  margin: 0; color: #fff; font-size: .9rem;
  background: rgba(0, 0, 0, .5); padding: .3rem .8rem; border-radius: 999px;
}

@media (max-width: 640px) {
  .visor { padding: 3.4rem .2rem 3rem; }
  .visor-ir { width: 42px; height: 42px; font-size: 1.7rem; }
}
