/* ==========================================================================
   Miranda's Properties — estilos del sitio público
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gilda Display";
  src: url("../fonts/gilda-display.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #14171c;
  --ink-2: #3a3f47;
  --muted: #6b7079;
  --line: #e8e3da;
  --line-2: #d6cfc2;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --sand: #f4f0e8;
  --sand-2: #ece6da;
  --navy: #0d1f3c;
  --navy-2: #17325c;
  --blue: #3f63c9;
  --red: #b0100b;
  --red-2: #8e0c08;
  --red-soft: #fbeceb;
  --green: #2f8a4c;
  --wa: #1faf54;
  --wa-2: #178f44;
  --amber: #b7791f;

  --serif: "Gilda Display", "Times New Roman", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 2px 8px rgba(16, 24, 40, .05);
  --shadow: 0 2px 4px rgba(16, 24, 40, .05), 0 12px 32px rgba(16, 24, 40, .09);
  --shadow-lg: 0 24px 60px rgba(8, 18, 36, .22);
  --header-h: 76px;
  --container: 1240px;
  --gutter: 20px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid rgba(176, 16, 11, .45); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

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

.eyebrow {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.eyebrow-light { color: rgba(255, 255, 255, .86); }

.section-title, .page-title, .hero-title, .prop-title, .article-title, .band-title, .cta-band h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.005em;
  line-height: 1.08;
  text-wrap: balance;
}
.section-title { font-size: clamp(1.85rem, 3vw, 2.5rem); }
.lead { font-size: 17.5px; color: var(--ink-2); line-height: 1.65; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover { color: var(--red); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow-light { color: #fff; }
.link-arrow-light:hover { color: #fff; opacity: .85; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-2); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-2); }
.btn-outline { border-color: var(--line-2); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--ink); }
.btn-outline-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-light:hover { background: var(--sand); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--sand); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  transition: background-color .18s, color .18s, border-color .18s;
}
.icon-btn .icon { width: 19px; height: 19px; }
.icon-btn:hover { background: var(--sand); color: var(--ink); }
.icon-btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.icon-btn-wa:hover { background: var(--wa-2); border-color: var(--wa-2); color: #fff; }

/* ---------- Badges ---------- */

.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .02em; line-height: 1.3;
  background: #fff; color: var(--ink);
}
.badge-dark { background: var(--navy); color: #fff; }
.badge-red { background: var(--red); color: #fff; }
.badge-green { background: var(--green); color: #fff; }
.badge-amber { background: var(--amber); color: #fff; }
.badge-light { background: var(--sand); color: var(--ink); }

/* ---------- Encabezado ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  transition: border-color .25s, box-shadow .25s;
}
/* Fondo en una capa aparte: un backdrop-filter en el propio encabezado
   encerraría el menú móvil (position: fixed) dentro de su altura. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  transition: opacity .25s;
}
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { position: relative; display: block; flex: none; }
.brand img { height: 52px; width: auto; }
.brand-white { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; }
.brand-color { transition: opacity .25s; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav ul a {
  position: relative; display: block; padding: 10px 12px;
  font-size: 15px; font-weight: 650; color: var(--ink-2);
  transition: color .18s;
}
.main-nav ul a:hover { color: var(--red); }
.main-nav ul a[aria-current="page"] { color: var(--ink); }
.main-nav ul a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--red);
}
.nav-contact { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; }
.header-phone .icon { width: 18px; height: 18px; color: var(--red); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; place-items: center; }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }

/* Encabezado transparente sobre la portada */
.site-header.is-transparent { position: fixed; left: 0; right: 0; border-color: transparent; }
.site-header.is-transparent::before { opacity: 0; }
.site-header.is-transparent .brand-white { opacity: 1; }
.site-header.is-transparent .brand-color { opacity: 0; }
.site-header.is-transparent .main-nav ul a, .site-header.is-transparent .header-phone { color: #fff; }
.site-header.is-transparent .header-phone .icon { color: #fff; }
.site-header.is-transparent .main-nav ul a[aria-current="page"]::after { background: #fff; }
.site-header.is-transparent .nav-toggle { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); color: #fff; }
.site-header.is-transparent.is-scrolled, body.nav-open .site-header.is-transparent { border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header.is-transparent.is-scrolled::before, body.nav-open .site-header.is-transparent::before { opacity: 1; }
.site-header.is-transparent.is-scrolled .brand-white, body.nav-open .site-header.is-transparent .brand-white { opacity: 0; }
.site-header.is-transparent.is-scrolled .brand-color, body.nav-open .site-header.is-transparent .brand-color { opacity: 1; }
.site-header.is-transparent.is-scrolled .main-nav ul a, .site-header.is-transparent.is-scrolled .header-phone { color: var(--ink-2); }
.site-header.is-transparent.is-scrolled .header-phone .icon { color: var(--red); }
.site-header.is-transparent.is-scrolled .main-nav ul a[aria-current="page"]::after { background: var(--red); }
.site-header.is-transparent.is-scrolled .nav-toggle, body.nav-open .site-header.is-transparent .nav-toggle { background: #fff; border-color: var(--line); color: var(--ink); }

@media (max-width: 1180px) {
  .header-phone span { display: none; }
  .main-nav ul a { padding: 10px 9px; font-size: 14.5px; }
}
@media (max-width: 1023px) {
  .nav-toggle { display: inline-grid; }
  .header-phone { display: none; }
  .header-actions { margin-left: auto; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    margin: 0; padding: 20px var(--gutter) 32px;
    background: #fff; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  body.nav-open .site-header::before { background: #fff; }
  body.nav-open .nav-toggle .icon-open { display: none; }
  body.nav-open .nav-toggle .icon-close { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav ul a,
  .site-header.is-transparent .main-nav ul a,
  .site-header.is-transparent.is-scrolled .main-nav ul a { color: var(--ink); font-size: 20px; font-weight: 700; padding: 16px 4px; border-bottom: 1px solid var(--line); }
  .main-nav ul a[aria-current="page"],
  .site-header.is-transparent .main-nav ul a[aria-current="page"],
  .site-header.is-transparent.is-scrolled .main-nav ul a[aria-current="page"] { color: var(--red); }
  .main-nav ul a[aria-current="page"]::after { display: none; }
  .nav-contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 28px; }
  .nav-contact p { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; justify-content: center; margin-top: 6px; }
  .nav-contact p a { color: var(--ink-2); font-weight: 600; overflow-wrap: anywhere; }
}
@media (max-width: 480px) {
  .header-wa span { display: none; }
  .header-wa { width: 44px; padding: 0; min-height: 44px; border-radius: 12px; }
  .brand img { height: 46px; }
}

/* ---------- Portada ---------- */

.hero {
  position: relative; display: flex; align-items: center;
  min-height: clamp(680px, 96vh, 940px);
  padding: calc(var(--header-h) + 40px) 0 72px;
  color: #fff; isolation: isolate; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 18, 36, .72) 0%, rgba(8, 18, 36, .38) 38%, rgba(8, 18, 36, .55) 72%, rgba(8, 18, 36, .82) 100%);
}
.hero-inner { text-align: center; max-width: 1080px; }
.hero-title { font-size: clamp(2.5rem, 5.4vw, 4.4rem); margin: 0 auto; max-width: 20ch; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero-sub { max-width: 660px; margin: 18px auto 0; font-size: clamp(16px, 1.6vw, 18.5px); color: rgba(255, 255, 255, .9); }

/* Buscador */
.search {
  margin: 38px auto 0; max-width: 1000px;
  background: var(--surface); color: var(--ink); text-align: left;
  border-radius: 20px; box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.search-tabs { display: flex; gap: 4px; padding: 0 16px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.search-tabs::-webkit-scrollbar { display: none; }
.search-tab {
  position: relative; padding: 16px 16px 14px; border: 0; background: none;
  font-weight: 700; font-size: 15px; color: var(--muted); white-space: nowrap;
}
.search-tab:hover { color: var(--ink); }
.search-tab[aria-pressed="true"] { color: var(--ink); }
.search-tab[aria-pressed="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--red); }
.search-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 16px; padding: 20px 22px 6px; }
.sfield label, .field label {
  display: block; margin-bottom: 6px;
  font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
.search-foot { display: flex; align-items: center; gap: 12px; padding: 14px 22px 22px; }
.search-submit { flex: 1; }
.search-more { display: none; align-items: center; gap: 8px; border: 0; background: none; font-weight: 700; color: var(--ink-2); padding: 10px 4px; white-space: nowrap; }

/* Campos de formulario */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="search"], input[type="url"], select, textarea {
  width: 100%; min-height: 48px; padding: 0 14px;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  font-size: 15.5px; color: var(--ink);
  transition: border-color .18s, box-shadow .18s;
  appearance: none; -webkit-appearance: none;
}
textarea { padding: 12px 14px; min-height: 110px; resize: vertical; line-height: 1.5; }
select {
  padding-right: 38px; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7079' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
select:disabled { background-color: #f6f4ef; color: var(--muted); cursor: not-allowed; }
input:hover, select:hover:not(:disabled), textarea:hover { border-color: #b9b0a1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(13, 31, 60, .14); }
::placeholder { color: #9a9ea6; }

.field { min-width: 0; }
.field label { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 650; color: var(--ink-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-hint { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.field-hint a { color: var(--red); text-decoration: underline; }
.field-error { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--red); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red); }
.req { color: var(--red); }

/* ---------- Confianza ---------- */

.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 28px; padding-block: 28px; }
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-item > .icon { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--red-soft); color: var(--red); }
.trust-item strong { display: block; font-size: 15px; }
.trust-item span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.4; }

/* ---------- Secciones ---------- */

.section { padding-block: clamp(56px, 8vw, 100px); }
.section-sand { background: var(--sand); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section-head-center { justify-content: center; text-align: center; }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.split-center { align-items: center; }
.split-text .section-title { margin-bottom: 18px; }
.split-text .lead { margin-bottom: 26px; }

.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.service-card { background: var(--surface); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.service-card > .icon { width: 50px; height: 50px; padding: 12px; border-radius: 14px; background: var(--red-soft); color: var(--red); margin-bottom: 18px; }
.service-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.service-card p { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* Banda oscura */
.band { background: radial-gradient(1200px 500px at 85% 0%, #1d3a6b 0%, transparent 60%), var(--navy); color: rgba(255, 255, 255, .86); padding-block: clamp(64px, 9vw, 110px); }
.band-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.band-title { color: #fff; font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin-bottom: 18px; }
.band p { font-size: 17px; line-height: 1.7; margin-bottom: 24px; max-width: 560px; }
.band strong { color: #fff; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .14); border-radius: var(--radius); overflow: hidden; }
.stats > div { background: var(--navy); padding: 26px 22px; display: flex; flex-direction: column-reverse; gap: 6px; }
.stats dd { font-family: var(--serif); font-size: clamp(2.6rem, 4.4vw, 3.6rem); font-weight: 400; color: #fff; line-height: 1; }
.stats dd.stat-text { font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.1; padding-top: 10px; }
.stats dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: rgba(255, 255, 255, .62); }

/* ---------- Tarjetas de propiedad ---------- */

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-media { position: relative; aspect-ratio: 3 / 2; background: var(--sand); overflow: hidden; }
.card-track, .gallery-track {
  display: flex; height: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.card-track::-webkit-scrollbar, .gallery-track::-webkit-scrollbar { display: none; }
.card-slide { flex: 0 0 100%; scroll-snap-align: start; height: 100%; }
.card-slide img { width: 100%; height: 100%; object-fit: cover; }
.card-noimg { display: grid; place-items: center; color: var(--line-2); }
.card-noimg .icon { width: 56px; height: 56px; }
.card-nav {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2;
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink);
  box-shadow: var(--shadow-sm); opacity: 0; transition: opacity .2s;
}
.card-nav .icon { width: 20px; height: 20px; }
.card-prev { left: 10px; }
.card-next { right: 10px; }
.card-media:hover .card-nav, .card-nav:focus-visible { opacity: 1; }
.card-nav[disabled] { opacity: 0 !important; pointer-events: none; }
@media (hover: none) { .card-nav { display: none; } }
.card-badges { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 24px); pointer-events: none; }
.card-count {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px; background: rgba(10, 14, 22, .62); color: #fff;
  font-size: 12.5px; font-weight: 700; pointer-events: none;
}
.card-count .icon { width: 14px; height: 14px; }

.card-body { padding: 18px 20px 16px; flex: 1; display: flex; flex-direction: column; }
.card-price { font-size: 23px; font-weight: 800; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.card-price s { margin-left: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.card-title { margin: 6px 0 6px; font-size: 16.5px; font-weight: 700; line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a:hover { color: var(--red); }
.card-loc { display: flex; align-items: flex-start; gap: 5px; font-size: 14px; color: var(--muted); }
.card-loc .icon { width: 16px; height: 16px; margin-top: 3px; }
.card-facts { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.card-body .card-loc { margin-bottom: 14px; }
.card-facts li { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 650; color: var(--ink-2); }
.card-facts .icon { width: 18px; height: 18px; color: var(--muted); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); background: #fcfbf8; }
.card-code { font-size: 12px; font-weight: 800; letter-spacing: .07em; color: var(--muted); text-transform: uppercase; }
.card-actions { display: flex; gap: 8px; }
.card-actions .icon-btn { width: 38px; height: 38px; }

/* ---------- Blog ---------- */

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.post-card-media { display: block; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-body { padding-top: 16px; }
.post-meta { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.post-card-title { font-size: 19px; line-height: 1.35; margin-bottom: 8px; }
.post-card-title a:hover { color: var(--red); }
.post-card p:last-child { font-size: 15px; color: var(--muted); }

/* ---------- Formulario de contacto (lead) ---------- */

.lead-split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.lead-media { border-radius: 20px; overflow: hidden; min-height: 420px; }
.lead-media img { width: 100%; height: 100%; object-fit: cover; }
.lead-content .section-title { margin-bottom: 12px; }
.lead-content .lead { margin-bottom: 26px; }

.lead-form { position: relative; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.form-grid .field-full { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; margin-bottom: 18px; border-radius: 12px; background: #eaf6ee; border: 1px solid #bfe3cb; color: #1f5e35; }
.form-success .icon { width: 26px; height: 26px; color: var(--green); }
.form-success p { font-size: 14.5px; margin-top: 2px; }
.form-success a { text-decoration: underline; font-weight: 700; }
.form-alert { padding: 12px 16px; margin-bottom: 16px; border-radius: 12px; background: #fdecec; border: 1px solid #f3c2c0; color: var(--red-2); font-weight: 600; font-size: 14.5px; }
.form-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.form-note .icon { width: 14px; height: 14px; }
.form-note a { text-decoration: underline; text-underline-offset: 2px; }
.form-note a:hover { color: var(--ink); }
.legal-wrap { max-width: 880px; }
.legal { max-width: 780px; }
.legal h2 { scroll-margin-top: calc(var(--header-h) + 20px); }
.lead-form.is-sent .form-grid, .lead-form.is-sent [data-submit], .lead-form.is-sent .form-note { display: none; }

/* ---------- Encabezados de página ---------- */

.page-head { background: var(--sand); padding: clamp(28px, 4vw, 44px) 0 clamp(40px, 5vw, 60px); border-bottom: 1px solid var(--sand-2); }
.page-head-inner { max-width: 880px; }
.page-head-center .page-head-inner { margin-inline: auto; text-align: center; }
.page-head-center .empty-actions { justify-content: center; }
.page-title { font-size: clamp(2.1rem, 4vw, 3.1rem); margin-bottom: 14px; }
.page-intro { font-size: 18px; color: var(--ink-2); max-width: 720px; }
.page-head-center .page-intro { margin-inline: auto; }
.page-head-compact { padding: 22px 0 26px; }
.page-head-compact .page-title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 6px; }
.page-head-compact .page-intro { font-size: 15.5px; color: var(--muted); font-weight: 600; }

.breadcrumbs { margin-bottom: 18px; font-size: 13.5px; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before { content: "/"; margin: 0 9px; color: var(--line-2); }
.breadcrumbs a:hover { color: var(--red); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink-2); font-weight: 600; max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Listado de propiedades ---------- */

.listing { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: start; padding-block: 32px 88px; }
.filters {
  position: sticky; top: calc(var(--header-h) + 18px);
  max-height: calc(100vh - var(--header-h) - 36px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 6px 20px 20px; scrollbar-width: thin;
}
.filters-head { display: none; }
.filter-group { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.filter-group legend { padding: 0; margin-bottom: 2px; font-size: 12.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ink); }
.filters .field label { font-size: 13.5px; }
.filters .field input, .filters .field select { min-height: 44px; font-size: 14.5px; }
.filters select { padding-left: 12px; padding-right: 30px; background-position: right 8px center; background-size: 16px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-block; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; font-weight: 650; color: var(--ink-2); transition: all .15s; }
.pill:hover span { border-color: var(--ink); }
.pill input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.pill input:focus-visible + span { outline: 3px solid rgba(176, 16, 11, .45); outline-offset: 2px; }
.filters-actions { display: grid; gap: 8px; padding-top: 18px; }

.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.filters-open { display: none; }
.sort { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.sort label { font-size: 14px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.sort select { min-height: 42px; width: auto; font-size: 14.5px; font-weight: 650; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 650; }
.chip .icon { width: 15px; height: 15px; color: var(--muted); }
.chip:hover { border-color: var(--red); color: var(--red); }
.chip:hover .icon { color: var(--red); }

.empty { text-align: center; padding: 56px 24px; border: 1.5px dashed var(--line-2); border-radius: var(--radius); background: var(--surface); }
.empty > .icon { width: 44px; height: 44px; margin: 0 auto 14px; color: var(--muted); }
.empty h2 { font-size: 22px; margin-bottom: 10px; }
.empty p { color: var(--muted); max-width: 520px; margin: 0 auto 22px; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.empty .empty-actions { margin-top: 0; }

.cta-box { margin-top: 56px; padding: clamp(24px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.cta-box h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 400; margin-bottom: 8px; }
.cta-box > div > p { color: var(--muted); margin-bottom: 24px; max-width: 620px; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 44px; }
.page-link { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 700; }
.page-link:hover { border-color: var(--ink); }
.page-link.is-current { background: var(--navy); border-color: var(--navy); color: #fff; }
.page-link .icon { width: 18px; height: 18px; }
.page-gap { padding: 0 4px; color: var(--muted); }

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

.notice { padding: 12px 0; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.notice .container { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.notice a { font-weight: 700; text-decoration: underline; }
.notice-preview { background: #fff7e0; color: #6b4a00; }
.notice-sold { background: var(--red-soft); color: var(--red-2); }

.prop-head { padding-top: 24px; }
.prop-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 24px; }
.prop-title { font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin: 12px 0 10px; max-width: 22ch; }
.prop-loc { display: flex; align-items: flex-start; gap: 6px; color: var(--ink-2); font-size: 16px; }
.prop-loc .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--red); }
.prop-price-block { text-align: right; flex: none; }
.prop-price { font-size: clamp(1.9rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.prop-price-old { color: var(--muted); font-size: 15px; margin-top: 4px; }
.prop-price-alt { color: var(--muted); font-size: 14px; margin-top: 2px; }
.prop-meta { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.prop-code { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); background: var(--sand); padding: 6px 10px; border-radius: 8px; }

.gallery { position: relative; }
.gallery-grid { position: relative; display: grid; gap: 10px; height: clamp(360px, 46vw, 540px); border-radius: 20px; overflow: hidden; }
.gallery-n5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery-n5 .gallery-item:first-child, .gallery-n3 .gallery-item:first-child { grid-row: 1 / 3; }
.gallery-n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery-n2 { grid-template-columns: 1fr 1fr; }
.gallery-n1 { grid-template-columns: 1fr; }
.gallery-item { position: relative; padding: 0; border: 0; background: var(--sand); overflow: hidden; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; }
.gallery-item:hover img { transform: scale(1.03); filter: brightness(.94); }
.gallery-all { position: absolute; right: 16px; bottom: 16px; z-index: 2; }
.gallery-slider { display: none; position: relative; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: start; padding: 0; border: 0; background: var(--sand); }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-counter { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(10, 14, 22, .65); color: #fff; font-size: 13px; font-weight: 700; }

.prop-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 4vw, 56px); align-items: start; padding-block: 36px 80px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts li { display: flex; flex-direction: column; gap: 2px; padding: 18px 18px 16px; border-right: 1px solid var(--line); }
.facts li:last-child { border-right: 0; }
.facts .icon { width: 26px; height: 26px; color: var(--red); margin-bottom: 8px; }
.fact-value { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.fact-label { font-size: 13px; color: var(--muted); font-weight: 600; }

.prop-section { margin-top: 44px; }
.prop-section > h2 { font-family: var(--serif); font-size: clamp(1.75rem, 2.6vw, 2.1rem); font-weight: 400; margin-bottom: 16px; }

.prose { font-size: 16.5px; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); line-height: 1.3; margin-top: 1.6em; }
.prose h2 { font-size: 1.45em; }
.prose h3 { font-size: 1.2em; }
.prose h4 { font-size: 1.05em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .35em; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose blockquote { margin-left: 0; padding-left: 18px; border-left: 3px solid var(--red); font-style: italic; }
.prose-lg { font-size: 17.5px; }
.prose .section-title { font-size: clamp(1.85rem, 3vw, 2.5rem); margin-top: 0; color: var(--ink); line-height: 1.1; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.features li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-weight: 650; font-size: 15px; }
.features .icon { width: 18px; height: 18px; color: var(--green); }

.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.videos-shorts { grid-template-columns: repeat(auto-fill, minmax(200px, 270px)); }
.video { margin: 0; }
.video figcaption { margin-top: 8px; font-size: 14px; font-weight: 650; color: var(--ink-2); }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0b0d12; }
.video-short .video-frame { aspect-ratio: 9 / 16; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; padding: 0; border: 0; background: none; }
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.video-play:hover img { opacity: 1; }
.video-icon { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.video-icon .icon { width: 26px; height: 26px; fill: currentColor; margin-left: 3px; }

.location-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.location-list > div { padding: 14px 16px; border-right: 1px solid var(--line); }
.location-list > div:last-child { border-right: 0; }
.location-list dt { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.location-list dd { font-weight: 700; font-size: 15.5px; margin-top: 2px; }
.map { position: relative; margin-top: 14px; aspect-ratio: 16 / 7; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #e9e4da 25%, #efebe3 25%, #efebe3 50%, #e9e4da 50%, #e9e4da 75%, #efebe3 75%) 0 0 / 28px 28px; border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-load { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border: 0; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-weight: 700; }
.map-load .icon { color: var(--red); }

.prop-aside { position: sticky; top: calc(var(--header-h) + 20px); }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-sm); }
.contact-card-price { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.contact-card-discount { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--red); font-weight: 700; font-size: 14.5px; }
.contact-card-discount .icon { width: 18px; height: 18px; }
.contact-card-actions { display: grid; gap: 10px; margin-top: 18px; }
.contact-card-or { position: relative; margin: 22px 0 16px; text-align: center; font-size: 13px; color: var(--muted); font-weight: 600; }
.contact-card-or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.contact-card-or span { position: relative; background: var(--surface); padding: 0 10px; }
.contact-card .form-grid { grid-template-columns: 1fr; gap: 12px; }
.contact-card .field label { font-size: 13.5px; }

.mobile-bar { display: none; }

/* Visor de fotos */
.lightbox { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-rows: auto 1fr auto; background: rgba(8, 11, 18, .96); color: #fff; }
.lightbox-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.lightbox-count { font-weight: 700; font-size: 15px; }
.lightbox-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 70px; touch-action: pan-y; }
.lightbox-stage img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 6px; user-select: none; }
.lightbox-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; transition: background-color .15s; }
.lightbox-btn:hover { background: rgba(255, 255, 255, .2); }
.lightbox-btn .icon { width: 24px; height: 24px; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; translate: 0 -50%; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-caption { padding: 12px 18px 20px; text-align: center; font-size: 14px; color: rgba(255, 255, 255, .7); }
body.lightbox-open { overflow: hidden; }

/* Video a pantalla completa (celular) */
.video-modal { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-rows: auto minmax(0, 1fr); background: rgba(8, 11, 18, .96); }
.video-modal[hidden] { display: none; }
.video-modal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.video-modal-yt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-weight: 700; font-size: 14.5px; }
.video-modal-yt:hover { background: rgba(255, 255, 255, .2); }
.video-modal-yt .icon { width: 20px; height: 20px; }
.video-modal-stage { display: grid; place-items: center; min-height: 0; padding: 0 12px 24px; }
.video-modal-frame {
  position: relative; overflow: hidden; border-radius: 12px; background: #000;
  aspect-ratio: 16 / 9; max-height: 100%;
  width: min(100%, calc((100vh - 96px) * 16 / 9));
  width: min(100%, calc((100dvh - 96px) * 16 / 9));
}
.video-modal-frame.is-short {
  aspect-ratio: 9 / 16;
  width: min(100%, calc((100vh - 96px) * 9 / 16));
  width: min(100%, calc((100dvh - 96px) * 9 / 16));
  min-width: min(100%, 240px); /* celular horizontal: YouTube necesita 200 px para sus controles */
}
.video-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
body.video-open { overflow: hidden; }

/* ---------- Servicios / Nosotros / Contacto ---------- */

.service-list { display: grid; }
.service-row { display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.service-row:first-child { padding-top: 0; }
.service-icon .icon { width: 64px; height: 64px; padding: 16px; border-radius: 18px; background: var(--red-soft); color: var(--red); }
.service-row h2 { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.1rem); font-weight: 400; margin-bottom: 8px; }
.service-row p { color: var(--ink-2); font-size: 16.5px; max-width: 760px; }

.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; }
.step-n { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--serif); font-size: 22px; font-weight: 400; margin-bottom: 16px; }
.steps h3 { font-size: 16.5px; margin-bottom: 6px; }
.steps p { font-size: 14.5px; color: var(--muted); }

.benefits { display: grid; gap: 14px; }
.benefits li { display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 16.5px; font-weight: 650; }
.benefits .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--red-soft); color: var(--red); }

.goals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.goals li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; }
.goals .icon { width: 30px; height: 30px; color: var(--red); margin-bottom: 14px; }
.goals p { font-weight: 650; line-height: 1.5; }

.highlight-card { background: var(--navy); color: rgba(255, 255, 255, .85); border-radius: 20px; padding: clamp(26px, 4vw, 36px); }
.highlight-card > .icon { width: 44px; height: 44px; color: #fff; margin-bottom: 18px; }
.highlight-card h3 { color: #fff; font-family: var(--serif); font-size: 1.9rem; font-weight: 400; margin-bottom: 10px; }
.highlight-card p { margin-bottom: 24px; }
.stats-dark { grid-template-columns: 1fr 1fr; }
.stats-dark > div { background: var(--navy-2); }

.cta-band { background: radial-gradient(900px 400px at 10% 100%, #1d3a6b 0%, transparent 60%), var(--navy); color: rgba(255, 255, 255, .85); padding-block: clamp(48px, 7vw, 80px); }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 3.4vw, 2.7rem); margin-bottom: 8px; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact-methods { display: grid; gap: 12px; }
.method { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .18s, box-shadow .18s; }
a.method:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.method > .icon:first-child { width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: var(--sand); color: var(--red); }
.method-wa > .icon:first-child { background: var(--wa); color: #fff; }
.method strong { display: block; font-size: 15px; }
.method span { display: block; color: var(--muted); font-size: 15px; word-break: break-word; }
.method-arrow { margin-left: auto; color: var(--muted); }
.contact-social { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-weight: 700; }
.contact-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); }
.contact-social a:hover { border-color: var(--ink); }
.contact-social .icon { width: 19px; height: 19px; }
.contact-form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 36px); }
.contact-form-card h2 { font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.contact-form-card > p { color: var(--muted); margin: 4px 0 22px; }

/* ---------- Artículo ---------- */

.article-head { max-width: 860px; padding-top: 28px; text-align: center; }
.article-head .breadcrumbs ol { justify-content: center; }
.article-title { font-size: clamp(2.1rem, 4.2vw, 3.2rem); margin: 6px 0 16px; }
.article-lead { font-size: 19px; color: var(--ink-2); max-width: 720px; margin: 0 auto; }
.article-cover { max-width: 1060px; margin: 36px auto 0; }
.article-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 20px; }
.article-body { max-width: 780px; padding-block: 44px 72px; }
.article-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 700; }

/* ---------- Pie de página ---------- */

.site-footer { background: var(--navy); color: rgba(255, 255, 255, .72); padding-top: clamp(56px, 7vw, 80px); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1.25fr 1.35fr; gap: 40px; }
.footer-logo img { width: 180px; height: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 340px; line-height: 1.7; }
.site-footer h2 { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 3px; color: rgba(255, 255, 255, .5); }
.footer-contact a, .footer-contact span { word-break: break-word; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); color: #fff; transition: background-color .18s, border-color .18s; }
.social a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }
.social .icon { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; color: rgba(255, 255, 255, .55); }
.footer-bottom a { text-decoration: underline; }
.footer-bottom a:hover { color: #fff; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: #fff; box-shadow: 0 10px 28px rgba(23, 143, 68, .45);
  transition: transform .2s, background-color .2s;
}
.wa-float:hover { transform: scale(1.06); background: var(--wa-2); }
.wa-float .icon { width: 30px; height: 30px; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 150; translate: -50% 0; padding: 12px 20px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-lg); }

.backdrop { position: fixed; inset: 0; z-index: 59; background: rgba(8, 12, 20, .5); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 28px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .goals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .prop-body { grid-template-columns: minmax(0, 1fr) 340px; }
  .location-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .location-list > div:nth-child(2) { border-right: 0; }
  .location-list > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 1000px) {
  .listing { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .filters {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
    width: min(420px, 100%); max-height: none; border-radius: 0; border: 0;
    padding: 0 20px 24px; transform: translateX(100%); transition: transform .28s ease;
    box-shadow: var(--shadow-lg);
  }
  .filters.is-open { transform: none; }
  .filters-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 2; padding: 16px 0; background: #fff; border-bottom: 1px solid var(--line); }
  .filters-head h2 { font-size: 18px; }
  .filters-actions { position: sticky; bottom: -24px; padding: 14px 0 24px; background: #fff; border-top: 1px solid var(--line); margin-top: 8px; }
  .filters-open { display: inline-flex; }
  body.filters-lock { overflow: hidden; }
}

@media (max-width: 900px) {
  .split, .band-inner, .lead-split, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .lead-media { min-height: 0; max-height: 320px; }
  .prop-title-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .prop-price-block { text-align: left; }
  .prop-meta { justify-content: flex-start; }
  .prop-body { grid-template-columns: minmax(0, 1fr); }
  .prop-aside { position: static; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .98); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(16, 24, 40, .08);
  }
  .mobile-bar-price { flex: 1; min-width: 0; line-height: 1.2; }
  .mobile-bar-price strong { display: block; font-size: 18px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobile-bar-price span { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .05em; }
  .mobile-bar .btn-outline { width: 44px; padding: 0; }
  body.has-mobile-bar { padding-bottom: 72px; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --header-h: 68px; }
  .header-inner { gap: 12px; }
  .search { border-radius: 18px; margin-top: 28px; }
  .search-grid { grid-template-columns: 1fr 1fr; padding: 16px 16px 4px; gap: 12px; }
  .search .sfield-extra { display: none; }
  .search.show-more .sfield-extra { display: block; }
  .search-more { display: inline-flex; }
  .search-foot { padding: 12px 16px 16px; flex-wrap: wrap; }
  .search-submit { flex: 1 1 100%; order: -1; }
  .search-more { margin: 0 auto; }
  .search-tab { padding: 14px 10px 12px; font-size: 14.5px; flex: 1; }
  .search-tabs { padding: 0 8px; }
  .hero { min-height: auto; padding: calc(var(--header-h) + 36px) 0 48px; }
  .hero-title { font-size: clamp(2.3rem, 10vw, 3rem); }
  .trust-grid { grid-template-columns: 1fr; gap: 16px; padding-block: 24px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 24px; }
  .section-head-center { align-items: center; }
  .card-grid, .card-grid-2, .post-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .service-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:last-child { grid-column: 1 / -1; }
  .steps, .goals { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
  .results-bar { flex-wrap: wrap; }
  .sort label { display: none; }
  .gallery-grid { display: none; }
  .gallery-slider { display: block; margin-inline: calc(var(--gutter) * -1); aspect-ratio: 3 / 2; }
  .gallery-track { height: 100%; }
  .prop-head { padding-top: 16px; }
  .prop-title-row { margin-bottom: 18px; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts li { padding: 14px 12px; }
  .facts .icon { width: 22px; height: 22px; margin-bottom: 6px; }
  .fact-value { font-size: 18px; }
  .facts li { border-bottom: 1px solid var(--line); }
  .facts li:nth-child(3n) { border-right: 0; }
  .videos { grid-template-columns: minmax(0, 1fr); }
  .videos-shorts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map { aspect-ratio: 4 / 3; }
  .lightbox-stage { padding: 0; }
  .lightbox-prev, .lightbox-next { display: none; }
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .breadcrumbs [aria-current] { max-width: 24ch; }
  .article-cover img { border-radius: 14px; aspect-ratio: 16 / 10; }
}

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

@media print {
  .site-header, .site-footer, .wa-float, .mobile-bar, .prop-aside, .gallery-slider { display: none !important; }
}
