/* ============================================================
   JUALE UNO · Servicios Inmobiliarios
   Sistema de diseño — Edición "Galería Patrimonial"
   Editorial · premium · sobrio · arquitectónico
   Marca: ink (negro-oliva) + oliva + salvia + acento latón
   Tipografía: Fraunces (display) + Inter (texto)
   ============================================================ */

:root {
  /* ---- Paleta ---- */
  --bone:       #F3F0E9;   /* fondo cálido principal */
  --bone-2:     #ECE7DC;   /* paneles / alternancia */
  --bone-3:     #E4DECF;
  --ink:        #14150E;   /* negro verdoso — marca */
  --ink-2:      #20221A;
  --olive:      #5C6E2F;   /* primario */
  --olive-d:    #46551F;
  --olive-deep: #333E16;
  --sage:       #9DAE82;
  --sage-soft:  #DCE2CE;
  --brass:      #B19658;   /* acento metálico sobrio */
  --brass-soft: #C9B488;
  --text:       #43453A;   /* cuerpo */
  --muted:      #7E7E6E;
  --line:       rgba(20, 21, 14, 0.13);
  --line-2:     rgba(20, 21, 14, 0.07);

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

  --maxw: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --radius-lg: 16px;

  --shadow-sm: 0 12px 30px -22px rgba(20, 21, 14, 0.5);
  --shadow:    0 34px 70px -34px rgba(20, 21, 14, 0.4);
  --shadow-lg: 0 60px 110px -48px rgba(20, 21, 14, 0.55);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-2: cubic-bezier(0.65, 0, 0.35, 1);
  --tr: 0.45s var(--ease);
  --header-h: 92px;
}

/* ---------------- Reset ---------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bone);
  line-height: 1.7;
  font-weight: 400;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--olive); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.005em;
  font-optical-sizing: auto;
}
em, .it { font-style: italic; }

/* ---------------- Layout helpers ---------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wide { max-width: 1560px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.7rem;
  color: var(--olive);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--brass); }
.eyebrow.brass { color: var(--brass); }
.eyebrow.light { color: var(--sage); }
.eyebrow.light::before { background: var(--sage); }
.eyebrow.center { justify-content: center; }

.section { position: relative; padding: clamp(72px, 11vw, 150px) 0; }
.section.tight { padding: clamp(56px, 7vw, 90px) 0; }
.bg-bone   { background: var(--bone); }
.bg-bone-2 { background: var(--bone-2); }
.bg-ink    { background: var(--ink); color: rgba(255,255,255,0.74); }
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4 { color: #fff; }
.bg-olive  { background: var(--olive-deep); color: rgba(255,255,255,0.8); }
.bg-olive h1, .bg-olive h2, .bg-olive h3 { color: #fff; }

.title { font-size: clamp(2.1rem, 5.2vw, 4.1rem); }
.title-sm { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--text); line-height: 1.6; font-weight: 400; }
.bg-ink .lead, .bg-olive .lead { color: rgba(255,255,255,0.78); }
.muted { color: var(--muted); }
.measure { max-width: 56ch; }

.section-head { max-width: 760px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head .title { margin: 20px 0 0; }
.section-head .lead { margin-top: 22px; }

/* Línea divisoria con número (índice editorial) */
.rule { display: flex; align-items: center; gap: 22px; border-top: 1px solid var(--line); padding-top: 20px; }
.rule .idx { font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.2em; color: var(--brass); font-weight: 600; }
.rule .lbl { font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }

/* ---------------- Botones ---------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-weight: 500; font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 17px 30px; border-radius: 50px; border: 1px solid transparent;
  transition: var(--tr); white-space: nowrap; will-change: transform;
}
.btn .ar { width: 15px; height: 15px; transition: transform var(--tr); }
.btn:hover .ar { transform: translateX(4px); }
.btn-primary { background: var(--olive); color: #fff; }
.btn-primary:hover { background: var(--olive-d); transform: translateY(-2px); box-shadow: 0 18px 34px -16px rgba(70,85,31,0.85); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 19px 38px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink);
  transition: gap var(--tr), color var(--tr);
}
.link-arrow svg { width: 15px; height: 15px; }
.link-arrow:hover { gap: 15px; color: var(--olive); }
.bg-ink .link-arrow, .bg-olive .link-arrow { color: #fff; }
.bg-ink .link-arrow:hover { color: var(--sage); }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  height: var(--header-h); display: flex; align-items: center;
  transition: height var(--tr), background var(--tr), box-shadow var(--tr);
}
.site-header.scrolled {
  height: 72px; background: rgba(243, 240, 233, 0.86);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line-2);
}
.header-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand .mark { width: 42px; height: 42px; flex: 0 0 auto; }
.brand .wm { display: flex; flex-direction: column; line-height: 1; }
.brand .nm { font-family: var(--font-display); font-weight: 500; font-size: 1.32rem; letter-spacing: 0.02em; color: var(--ink); }
.brand .sb { font-family: var(--font-body); font-size: 0.58rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--olive); margin-top: 5px; }

/* Header sobre hero oscuro (sin scroll) */
.hero-page .site-header:not(.scrolled) .nm { color: #fff; }
.hero-page .site-header:not(.scrolled) .sb { color: var(--sage); }
.hero-page .site-header:not(.scrolled) .nav-link { color: rgba(255,255,255,0.86); }
.hero-page .site-header:not(.scrolled) .nav-toggle span { background: #fff; }
.hero-page .site-header:not(.scrolled) .mark .ji { fill: #fff; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav-link {
  font-family: var(--font-body); font-weight: 450; font-size: 0.92rem; color: var(--ink);
  position: relative; padding: 6px 0; transition: color var(--tr);
}
.nav-link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px; background: var(--olive); transition: width var(--tr); }
.nav-link:hover, .nav-link.active { color: var(--olive); }
.hero-page .site-header:not(.scrolled) .nav-link:hover, .hero-page .site-header:not(.scrolled) .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav .btn { padding: 12px 24px; font-size: 0.72rem; }

.nav-toggle { display: none; flex-direction: column; gap: 6px; background: none; border: none; z-index: 130; padding: 6px; }
.nav-toggle span { width: 28px; height: 2px; background: var(--ink); transition: var(--tr); border-radius: 2px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Logo mark colores */
.mark .ji { fill: var(--ink); transition: fill var(--tr); }
.mark .jo { fill: var(--olive); }
.mark .js { fill: var(--sage); }
.site-footer .mark .ji { fill: #fff; }

/* ---------------- HERO ---------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,16,10,0.62) 0%, rgba(15,16,10,0.2) 35%, rgba(15,16,10,0.78) 100%); }
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(48px, 7vw, 96px); }
.hero .eyebrow { color: var(--sage); }
.hero .eyebrow::before { background: var(--sage); }
.hero h1 { color: #fff; font-size: clamp(2.7rem, 8.4vw, 7.2rem); font-weight: 600; line-height: 1; letter-spacing: -0.01em; margin: 26px 0 0; }
.hero h1 em { color: var(--sage); }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-top: 36px; }
.hero-text { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 46ch; color: rgba(255,255,255,0.82); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* línea de máscara para revelar texto */
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span { display: block; will-change: transform; }

.scroll-cue { position: absolute; bottom: 26px; right: var(--gutter); z-index: 2; display: flex; align-items: center; gap: 12px; font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255,255,255,0.72); }
.scroll-cue .bar { width: 46px; height: 1px; background: rgba(255,255,255,0.4); position: relative; overflow: hidden; }
.scroll-cue .bar::after { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--sage); animation: cue 2s var(--ease) infinite; }
@keyframes cue { to { left: 100%; } }

/* Barra de cifras bajo el hero */
.metrics { border-top: 1px solid var(--line); }
.metrics .grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric { padding: clamp(28px,4vw,46px) 0; border-right: 1px solid var(--line); padding-right: 24px; }
.metric:last-child { border-right: none; }
.metric .n { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); color: var(--ink); line-height: 1; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; display: flex; align-items: baseline; min-height: clamp(2rem, 4vw, 3.2rem); }
.metric .n .u { color: var(--brass); }
.metric .t { font-size: 0.82rem; letter-spacing: 0.04em; color: var(--muted); margin-top: 12px; }

/* ---------------- Líneas de negocio (índice editorial) ---------------- */
.lines { border-top: 1px solid var(--line); }
.line-item { display: grid; grid-template-columns: 90px 1.1fr 1.4fr auto; gap: 40px; align-items: center; padding: clamp(28px,4vw,46px) 0; border-bottom: 1px solid var(--line); transition: var(--tr); position: relative; }
.line-item::before { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--sage-soft); z-index: -1; transition: width 0.6s var(--ease); }
.line-item:hover::before { width: 100%; }
.line-item .ix { font-family: var(--font-body); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.15em; color: var(--brass); }
.line-item h3 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
.line-item h3 em { color: var(--olive); }
.line-item p { font-size: 0.98rem; color: var(--text); }
.line-item .go { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); transition: var(--tr); flex: 0 0 auto; }
.line-item:hover .go { background: var(--olive); border-color: var(--olive); color: #fff; transform: rotate(-45deg); }

/* ---------------- Split (imagen + texto) ---------------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media .ph { position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split-media .ph img { width: 100%; aspect-ratio: 4/4.6; object-fit: cover; will-change: transform; }
.split-media .tag { position: absolute; left: 22px; bottom: 22px; background: rgba(243,240,233,0.94); backdrop-filter: blur(6px); border-radius: 50px; padding: 11px 20px; font-size: 0.74rem; letter-spacing: 0.06em; color: var(--ink); display: flex; align-items: center; gap: 9px; }
.split-media .tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--olive); }
.split-media .frame { position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--brass); border-radius: var(--radius-lg); z-index: -1; }
.tick-list { margin-top: 30px; display: grid; gap: 4px; }
.tick-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.tick-list .ic { color: var(--olive); margin-top: 3px; }
.tick-list b { color: var(--ink); font-weight: 600; display: block; font-size: 1.02rem; }
.tick-list span { font-size: 0.94rem; }

/* ---------------- Marquee de ubicaciones ---------------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.marquee-track { display: flex; gap: 60px; width: max-content; will-change: transform; }
.marquee-item { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.4rem); color: var(--ink); display: inline-flex; align-items: center; gap: 60px; opacity: 0.85; }
.marquee-item::after { content: "✦"; color: var(--brass); font-size: 0.8em; }

/* ---------------- Buscador ---------------- */
.searchbar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 12px; display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px; }
.searchbar .f { display: flex; flex-direction: column; padding: 10px 18px; border-right: 1px solid var(--line); }
.searchbar .f:nth-child(3) { border-right: none; }
.searchbar label { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 4px; }
.searchbar select { border: none; background: none; font-family: var(--font-body); font-size: 1rem; color: var(--ink); outline: none; }

/* ---------------- Tarjetas de inmueble ---------------- */
.toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 38px; }
.toolbar .count { font-size: 0.92rem; color: var(--muted); }
.toolbar .sort { display: flex; align-items: center; gap: 10px; font-size: 0.84rem; color: var(--muted); }
.toolbar .sort select { font-family: var(--font-body); padding: 10px 14px; border: 1px solid var(--line); border-radius: 50px; background: #fff; color: var(--ink); }

.grid-props { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 34px); }
.prop { background: var(--bone); display: flex; flex-direction: column; }
.prop-media { position: relative; aspect-ratio: 4/3.1; overflow: hidden; border-radius: var(--radius-lg); }
.prop-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); will-change: transform; }
.prop:hover .prop-media img { transform: scale(1.07); }
.prop-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; z-index: 2; }
.badge { font-family: var(--font-body); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 7px 13px; border-radius: 50px; background: rgba(243,240,233,0.95); color: var(--ink); backdrop-filter: blur(4px); }
.badge.op { background: var(--olive); color: #fff; }
.badge.st-reservado { background: var(--brass); color: #fff; }
.badge.st-vendido { background: var(--ink); color: #fff; }
.badge.st-destacado { background: var(--ink); color: #fff; }
.prop-fav { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; background: rgba(243,240,233,0.92); display: grid; place-items: center; color: var(--ink); z-index: 2; opacity: 0; transform: translateY(-6px); transition: var(--tr); }
.prop:hover .prop-fav { opacity: 1; transform: translateY(0); }
.prop-body { padding: 22px 4px 8px; display: flex; flex-direction: column; flex: 1; }
.prop-loc { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--olive); margin-bottom: 9px; }
.prop-title { font-family: var(--font-display); font-size: 1.32rem; color: var(--ink); line-height: 1.2; margin-bottom: 16px; }
.prop-feats { display: flex; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); margin-top: auto; font-size: 0.86rem; color: var(--text); flex-wrap: wrap; }
.prop-feats span { display: inline-flex; align-items: center; gap: 6px; }
.prop-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; }
.prop-price { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.prop-price small { display: block; font-family: var(--font-body); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.prop-cta { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.13em; color: var(--olive); font-weight: 500; display: inline-flex; align-items: center; gap: 7px; transition: gap var(--tr); }
.prop:hover .prop-cta { gap: 13px; }
.empty { grid-column: 1/-1; text-align: center; padding: 70px 0; color: var(--muted); }

/* ---------------- Ficha de propiedad ---------------- */
.prop-hero { padding-top: calc(var(--header-h) + 28px); }
.back-link { font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--olive); display: inline-flex; gap: 8px; align-items: center; }
.prop-hero-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin: 22px 0 30px; }
.prop-hero-head h1 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
.prop-hero-head .addr { color: var(--muted); margin-top: 8px; display: inline-flex; gap: 8px; align-items: center; }
.prop-hero-head .px { font-family: var(--font-display); font-size: clamp(1.8rem,3vw,2.6rem); color: var(--olive); text-align: right; }
.prop-hero-head .px small { display: block; font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: clamp(140px, 19vw, 230px); gap: 12px; }
.gallery a { overflow: hidden; border-radius: var(--radius); position: relative; }
.gallery a:first-child { grid-row: span 2; grid-column: span 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.gallery a:hover img { transform: scale(1.06); }
.gallery .more { position: absolute; inset: 0; background: rgba(20,21,14,0.55); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-size: 1.3rem; }

.detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: clamp(36px, 5vw, 70px); align-items: start; }
.detail-body h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 20px; }
.detail-body p { margin-bottom: 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.pill { background: var(--sage-soft); color: var(--olive-deep); padding: 10px 18px; border-radius: 50px; font-size: 0.84rem; display: inline-flex; gap: 8px; align-items: center; }
.specs { width: 100%; border-collapse: collapse; margin: 8px 0 10px; }
.specs td { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.specs td:first-child { color: var(--muted); width: 46%; }
.specs td:last-child { color: var(--ink); }

.aside-card { position: sticky; top: 100px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.aside-card .px { font-family: var(--font-display); font-size: 2.1rem; color: var(--ink); }
.aside-card .rf { font-size: 0.8rem; color: var(--muted); margin-bottom: 22px; }
.aside-card .btn { margin-bottom: 11px; }
.agent { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.agent .av { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(140deg, var(--olive), var(--olive-deep)); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.1rem; }
.agent .nm { font-weight: 600; color: var(--ink); font-size: 0.96rem; }
.agent .rl { font-size: 0.8rem; color: var(--muted); }

/* ---------------- Cards de captación / servicios ---------------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--bone); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 28px; transition: var(--tr); display: flex; flex-direction: column; }
.card:hover { border-color: var(--olive); transform: translateY(-6px); box-shadow: var(--shadow-sm); background: #fff; }
.card .ic { width: 56px; height: 56px; border-radius: 14px; background: var(--sage-soft); color: var(--olive); display: grid; place-items: center; margin-bottom: 22px; }
.card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.card p { font-size: 0.95rem; flex: 1; }
.card .link-arrow { margin-top: 20px; }

/* Bloque de servicio (alternado) */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px,6vw,84px); align-items: center; padding: clamp(56px,8vw,110px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.svc:last-child { border-bottom: none; }
.svc.reverse .svc-media { order: 2; }
.svc-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.svc-media img { width: 100%; aspect-ratio: 5/4; object-fit: cover; will-change: transform; }
.svc .ix { font-family: var(--font-display); font-size: clamp(3rem,7vw,6rem); color: var(--sage); line-height: 1; opacity: 0.6; }
.svc h2 { font-size: clamp(1.8rem,3.4vw,2.8rem); margin: 6px 0 18px; }
.svc-list { margin-top: 24px; display: grid; gap: 12px; }
.svc-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 0.96rem; }
.svc-list .ic { color: var(--olive); }

/* ---------------- Formularios ---------------- */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px,4vw,44px); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fr { margin-bottom: 18px; }
.fr.full { grid-column: 1/-1; }
.form label { display: block; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); margin-bottom: 9px; font-weight: 600; }
.form input, .form select, .form textarea {
  width: 100%; padding: 15px 17px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.98rem; color: var(--ink); background: var(--bone); transition: var(--tr);
}
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--olive); background: #fff; box-shadow: 0 0 0 3px rgba(92,110,47,0.13); }
.form .check { display: flex; gap: 11px; align-items: flex-start; font-size: 0.85rem; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.form .check input { width: auto; margin-top: 4px; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 16px; }
.form-ok { display: none; background: var(--sage-soft); color: var(--olive-deep); border-radius: var(--radius); padding: 16px 20px; margin-top: 18px; font-size: 0.92rem; }
.form-ok.show { display: block; }

.seg { display: inline-flex; background: var(--bone-2); border-radius: 50px; padding: 5px; gap: 4px; flex-wrap: wrap; }
.seg button { border: none; background: none; padding: 11px 22px; border-radius: 50px; font-size: 0.82rem; color: var(--muted); transition: var(--tr); }
.seg button.active { background: var(--olive); color: #fff; }

/* ---------------- Info contacto ---------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px,5vw,72px); align-items: start; }
.info-list { display: grid; gap: 8px; margin-top: 14px; }
.info-list li { display: grid; grid-template-columns: 50px 1fr; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-list .ic { width: 50px; height: 50px; border-radius: 13px; background: var(--sage-soft); color: var(--olive); display: grid; place-items: center; }
.info-list .lbl { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.info-list .val { color: var(--ink); font-size: 1.02rem; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); margin-top: 26px; }
.map-embed iframe { width: 100%; height: 280px; border: 0; display: block; filter: grayscale(0.25) contrast(1.02); }

/* ---------------- Blog ---------------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px,2.6vw,34px); }
.post { display: flex; flex-direction: column; }
.post-media { aspect-ratio: 16/11; overflow: hidden; border-radius: var(--radius-lg); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.post:hover .post-media img { transform: scale(1.06); }
.post-body { padding: 20px 2px 0; }
.post-cat { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--olive); }
.post h3 { font-size: 1.28rem; margin: 11px 0 8px; line-height: 1.22; }
.post .meta { font-size: 0.8rem; color: var(--muted); }
.post-lead { grid-column: 1/-1; display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px,4vw,56px); align-items: center; background: var(--ink); border-radius: var(--radius-lg); overflow: hidden; color: #fff; margin-bottom: 8px; }
.post-lead .m { aspect-ratio: 16/10; overflow: hidden; order: 2; }
.post-lead .m img { width: 100%; height: 100%; object-fit: cover; }
.post-lead .c { padding: clamp(30px,4vw,56px); }
.post-lead h2 { color: #fff; font-size: clamp(1.6rem,2.8vw,2.4rem); margin: 14px 0 16px; }
.post-lead p { color: rgba(255,255,255,0.76); }

/* ---------------- CTA band ---------------- */
.cta { position: relative; overflow: hidden; text-align: center; background: var(--ink); color: #fff; padding: clamp(70px,10vw,130px) 0; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 460px at 50% -10%, rgba(92,110,47,0.5), transparent 62%); }
.cta .container { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(2rem,4.4vw,3.4rem); margin-bottom: 18px; }
.cta p { color: rgba(255,255,255,0.78); max-width: 56ch; margin: 0 auto 34px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.62); padding: clamp(60px,8vw,100px) 0 0; }
.footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer-brand .nm { font-family: var(--font-display); font-size: 1.5rem; color: #fff; }
.footer-brand .sb { font-size: 0.58rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--sage); margin-top: 4px; display: block; }
.footer-brand p { margin-top: 20px; font-size: 0.92rem; max-width: 32ch; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 20px; font-weight: 600; }
.footer-col a, .footer-col p { display: block; font-size: 0.92rem; margin-bottom: 13px; transition: var(--tr); color: rgba(255,255,255,0.64); }
.footer-col a:hover { color: var(--sage); padding-left: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 26px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 0.82rem; }
.footer-bottom .lg { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--sage); }

/* ---------------- WhatsApp flotante ---------------- */
.wa { position: fixed; right: 24px; bottom: 24px; z-index: 200; width: 60px; height: 60px; background: #25D366; color: #fff; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 16px 36px -10px rgba(37,211,102,0.6); transition: var(--tr); }
.wa:hover { transform: scale(1.08); }
.wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366; opacity: 0.45; animation: wa 2.4s var(--ease) infinite; z-index: -1; }
@keyframes wa { to { transform: scale(1.85); opacity: 0; } }

/* ---------------- Lightbox (galería pop-up) ---------------- */
.gallery a { cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(15,16,10,0.95); display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s ease; }
.lb.open { display: flex; opacity: 1; }
.lb-stage { margin: 0; max-width: min(1200px, 92vw); max-height: 86vh; display: flex; align-items: center; justify-content: center; }
.lb-img { max-width: min(1200px, 92vw); max-height: 86vh; width: auto; height: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.85); transition: opacity .25s ease; }
.lb-close { position: absolute; top: 22px; right: 26px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.07); color: #fff; font-size: 1.9rem; line-height: 1; display: grid; place-items: center; transition: var(--tr); }
.lb-close:hover { background: #fff; color: var(--ink); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.07); color: #fff; font-size: 2rem; line-height: 1; display: grid; place-items: center; transition: var(--tr); }
.lb-nav:hover { background: #fff; color: var(--ink); }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }
.lb-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.85); font-size: .82rem; letter-spacing: .14em; }
@media (max-width: 620px) { .lb-nav { width: 44px; height: 44px; font-size: 1.5rem; } .lb-prev { left: 8px; } .lb-next { right: 8px; } .lb-close { top: 12px; right: 12px; } }

/* ---------------- Vídeo de propiedad ---------------- */
.prop-video-wrap { margin-top: 14px; }
.prop-video { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-lg); display: block; background: #000; box-shadow: var(--shadow); }
.badge.st-obranueva { background: var(--brass); color: #fff; }

/* ---------------- Página interna: encabezado ---------------- */
.page-head { padding-top: calc(var(--header-h) + clamp(40px,6vw,80px)); padding-bottom: clamp(36px,5vw,64px); }
.page-head .title { margin: 22px 0 0; }
.page-head .lead { margin-top: 22px; max-width: 60ch; }
.breadcrumb { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; }
.breadcrumb a:hover { color: var(--olive); }

/* contenido legal */
.prose { max-width: 76ch; }
.prose h2 { font-size: 1.5rem; margin: 38px 0 14px; }
.prose h3 { font-size: 1.15rem; margin: 26px 0 10px; }
.prose p, .prose li { margin-bottom: 12px; font-size: 0.98rem; }
.prose ul { padding-left: 20px; list-style: disc; }
.prose a { color: var(--olive); text-decoration: underline; }

/* ---------------- Animaciones base ---------------- */
[data-reveal] { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  [data-reveal], .reveal-line > span { opacity: 1 !important; transform: none !important; }
  .hero-media img { transform: none !important; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .grid-props, .posts, .cards.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .metrics .grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: none; }
}
@media (max-width: 900px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(84%, 360px); height: 100dvh; background: var(--bone); flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 48px; gap: 26px; transform: translateX(100%); transition: transform var(--tr); box-shadow: -30px 0 80px -40px rgba(0,0,0,0.5); }
  .nav.open { transform: translateX(0); }
  .nav-link { font-size: 1.4rem; color: var(--ink) !important; }
  .nav-toggle { display: flex; }
  .hero-page .site-header:not(.scrolled) .nav-toggle span { background: var(--ink); }
  .nav-toggle.open span { background: var(--ink) !important; }
  .split, .split.reverse .split-media, .svc, .svc.reverse .svc-media, .detail-grid, .contact-grid, .post-lead, .post-lead .m { grid-template-columns: 1fr; order: 0; }
  .split.reverse .split-media, .svc.reverse .svc-media { order: -1; }
  .line-item { grid-template-columns: 56px 1fr auto; gap: 18px; }
  .line-item p { display: none; }
  .aside-card { position: static; }
  .prop-hero-head .px { text-align: left; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-props, .posts, .cards, .cards.cols-3, .form-grid { grid-template-columns: 1fr; }
  .metrics .grid { grid-template-columns: 1fr; }
  .metric { border-right: none; border-bottom: 1px solid var(--line); }
  .searchbar { grid-template-columns: 1fr; }
  .searchbar .f { border-right: none; border-bottom: 1px solid var(--line); }
  .searchbar .btn { width: 100%; justify-content: center; margin-top: 6px; }
  .footer-top { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery a:first-child { grid-column: span 2; }
  .hero-row { flex-direction: column; align-items: flex-start; }
  .rule { gap: 14px; }
}


/* Ajustes WordPress v1.1 */
.metrics .metric { text-align: center; }
.metrics .metric .n, .metrics .metric .t { width: 100%; text-align: center; }
.site-header { box-sizing: border-box; }
.header-inner { min-height: 100%; }
@media (min-width: 1025px) {
  .site-header:not(.scrolled) .header-inner { padding-top: 10px; padding-bottom: 10px; }
}


/* ===== Ajustes v1.2 ===== */
/* Mejor contraste para la primera frase del hero */
.hero .eyebrow {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.58);
  background: rgba(17,18,12,.38);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: fit-content;
  padding: 10px 16px;
  border-radius: 999px;
}
.hero .eyebrow::before { background: var(--brass); }

/* Bloque de inmuebles relacionados: más aire y acabado premium */
.related-properties { padding-block: clamp(72px, 8vw, 120px) !important; }
.related-properties .related-inner { max-width: 1320px; margin-inline: auto; }
.related-properties .toolbar { margin-bottom: clamp(34px, 4vw, 56px); padding-inline: clamp(0px, 2vw, 24px); }
.related-properties .grid-props {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(18px, 3vw, 42px);
}
.related-properties .prop {
  background: #fff;
  border: 1px solid rgba(41,43,31,.10);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 55px rgba(34,35,27,.08);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.related-properties .prop:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 75px rgba(34,35,27,.14);
  border-color: rgba(92,110,47,.28);
}
.related-properties .prop-media { border-radius: 0; aspect-ratio: 16/10; }
.related-properties .prop-body { padding: clamp(24px, 3vw, 34px); }
.related-properties .prop-title { font-size: clamp(1.45rem, 2vw, 1.9rem); }
.related-properties .prop-foot { padding-top: 20px; }

@media (max-width: 760px) {
  .hero .eyebrow { padding: 8px 12px; font-size: .64rem; }
  .related-properties .grid-props { grid-template-columns: 1fr; padding-inline: 0; }
  .related-properties .toolbar { align-items: flex-start; }
}


/* v1.4 — Espaciado editorial y bloques más premium */
.split-body{max-width:640px;padding:clamp(28px,4.5vw,68px) clamp(6px,1.8vw,24px)}
.split-body .eyebrow{margin-bottom:22px}
.split-body .title,.split-body .title-sm{line-height:1.02;letter-spacing:-.025em;text-wrap:balance}
.split-body .lead{margin-top:26px;max-width:56ch;line-height:1.78;font-size:clamp(1.02rem,1.35vw,1.2rem)}
.split-body>p:not(.lead){margin-top:20px;max-width:60ch;line-height:1.8;font-size:clamp(.98rem,1.15vw,1.08rem)}
.split-body .tick-list{margin-top:32px}
.split-body .tick-list li{padding:18px 0;gap:16px}
.split-body .tick-list b{margin-bottom:7px;letter-spacing:.01em}
.bg-ink .split-body{padding-top:clamp(46px,6vw,88px);padding-bottom:clamp(46px,6vw,88px)}
.bg-ink .split-body .lead{color:rgba(255,255,255,.72)}
.bg-ink .split-body>p:not(.lead){color:rgba(255,255,255,.68)}
.section.bg-bone-2 .split-body,.section.bg-bone .split-body{background:rgba(255,255,255,.18);border-radius:28px}
@media(max-width:900px){.split-body{max-width:none;padding:32px 4px}.section.bg-bone-2 .split-body,.section.bg-bone .split-body{background:transparent}.bg-ink .split-body{padding:38px 0}}

/* Blog conectado con las Entradas de WordPress */
.juale-dynamic-posts a{color:inherit;text-decoration:none}
.juale-dynamic-posts .post h3 a,.juale-dynamic-posts .post-lead h2 a{transition:color .25s ease}
.juale-dynamic-posts .post:hover h3 a{color:var(--olive)}
.juale-blog-empty{text-align:center;padding:70px 24px;border:1px solid var(--line);border-radius:24px}
.juale-article{background:var(--bone);padding:clamp(150px,14vw,210px) 0 clamp(80px,10vw,140px)}
.juale-article-head{max-width:980px;margin:0 auto;text-align:center;padding:0 24px}
.juale-article-head .post-cat{display:block;margin-bottom:22px}
.juale-article-head h1{font-family:var(--serif);font-size:clamp(2.7rem,6.5vw,5.6rem);line-height:.98;letter-spacing:-.035em;color:var(--ink);text-wrap:balance}
.juale-article-meta{margin-top:24px;color:var(--muted);font-size:.86rem;letter-spacing:.08em;text-transform:uppercase}
.juale-article-image{max-width:1240px;margin:clamp(42px,6vw,80px) auto 0;padding:0 24px}
.juale-article-image img{width:100%;max-height:700px;object-fit:cover;border-radius:28px;box-shadow:var(--shadow)}
.juale-article-body{max-width:760px;margin:clamp(46px,7vw,86px) auto 0;padding:0 24px;font-size:clamp(1.06rem,1.35vw,1.2rem);line-height:1.9;color:var(--text)}
.juale-article-body p{margin:0 0 26px}.juale-article-body h2{font-size:clamp(1.8rem,3vw,2.7rem);margin:58px 0 22px}.juale-article-body h3{font-size:clamp(1.4rem,2.2vw,2rem);margin:42px 0 18px}
.juale-article-back{display:inline-flex;margin-top:36px;color:var(--olive);font-weight:600;letter-spacing:.08em;text-transform:uppercase;font-size:.78rem}
