/* Property detail pages: same palette and type as the home page, one 1120px column. */
:root {
  --bg: #F3F3F2; --surface: #FFFFFF; --ink: #161616; --muted: #5E5E5E; --line: #DADAD8;
  --hero-bg: #161616; --hero-ink: #F4F4F3; --hero-muted: #A3A3A1;
  --accent: #E5203F; --accent-ink: #FFFFFF; --brand-text: #D61F3B;
  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --radius: 4px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0F0F0F; --surface: #191919; --ink: #EDEDEC; --muted: #9E9E9C; --line: #2D2D2C; --hero-bg: #141414; --brand-text: #FF5C72; --accent: #EE2A48; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--brand-text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: max(16px, 4vw); }

.top { background: var(--hero-bg); color: var(--hero-ink); border-bottom: 6px solid var(--accent); }
.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1rem; flex-wrap: wrap; }
.top img { height: 56px; width: auto; display: block; }
.top nav { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.top nav a { color: var(--hero-muted); text-decoration: none; font-size: 0.95rem; }
.top nav a:hover { color: var(--hero-ink); }
.top nav .tel { color: var(--hero-ink); font-family: var(--f-mono); }
@media (max-width: 560px) { .top img { height: 44px; } .top nav a:not(.tel) { display: none; } }

main { padding-block: 1.5rem 4rem; }
.crumbs { font-size: 0.85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.crumbs a { color: var(--muted); }
.head { display: grid; gap: 0.5rem; margin-bottom: 1.5rem; }
.badges { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.badge { font-family: var(--f-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.25rem 0.55rem; border-radius: 2px; background: var(--hero-bg); color: var(--hero-ink); }
.badge.op { background: var(--accent); color: var(--accent-ink); }
h1 { font-family: var(--f-display); font-stretch: 105%; font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.12; margin: 0; text-wrap: balance; }
.subtitle { color: var(--muted); font-size: 1.05rem; margin: 0; }
.ref { font-family: var(--f-mono); font-size: 0.8rem; color: var(--muted); }

.layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: start; }
.layout > * { min-width: 0; }
@media (max-width: 880px) { .layout { grid-template-columns: 1fr; } }

.gallery-main { position: relative; aspect-ratio: 3 / 2; background: var(--hero-bg); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; color: var(--hero-muted); font-family: var(--f-mono); font-size: 0.9rem; text-align: center; padding: 1rem; }
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-main img.contain { object-fit: contain; background: #fff; }
.gallery-note { position: absolute; left: 0.6rem; bottom: 0.6rem; font-family: var(--f-mono); font-size: 0.7rem; padding: 0.2rem 0.5rem; border-radius: 2px; background: rgba(0,0,0,.7); color: #fff; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 0.5rem; margin-top: 0.6rem; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--radius); background: var(--surface); cursor: pointer; aspect-ratio: 3 / 2; overflow: hidden; }
.thumbs button[aria-current="true"] { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.desc { margin-top: 1.75rem; }
.desc h2, .more h2 { font-family: var(--f-display); font-size: 1.3rem; margin: 0 0 0.6rem; }
.desc p { margin: 0 0 0.8rem; max-width: 68ch; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: 1rem; position: sticky; top: 1rem; }
.price b { display: block; font-family: var(--f-display); font-size: 1.8rem; font-stretch: 105%; line-height: 1.1; }
.price span { font-family: var(--f-mono); font-size: 0.85rem; color: var(--muted); }
.specs { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.specs dt { font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding-top: 0.2rem; }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
.btn { display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--f-display); font-weight: 700; padding: 0.85rem 1rem; border-radius: var(--radius); text-decoration: none; border: 2px solid transparent; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.contact-note { font-size: 0.85rem; color: var(--muted); margin: 0; }

.more { margin-top: 3rem; }
.others { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.other { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); display: grid; }
.other .ph { aspect-ratio: 3 / 2; background: var(--hero-bg); }
.other .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.other div.t { padding: 0.8rem 1rem; display: grid; gap: 0.2rem; }
.other b { font-family: var(--f-display); font-size: 0.98rem; line-height: 1.25; }
.other span { font-size: 0.85rem; color: var(--muted); }
.back { display: inline-block; margin-top: 1.5rem; }

footer { background: var(--hero-bg); color: var(--hero-muted); font-size: 0.88rem; }
footer .wrap { padding-block: 1.5rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--hero-ink); }
.wa { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px -6px rgba(0,0,0,.45); }
.wa svg { width: 30px; height: 30px; }

/* Blog */
.article { max-width: 760px; }
.article-head { display: grid; gap: 0.7rem; margin-bottom: 1.75rem; max-width: 760px; }
.kicker { font-family: var(--f-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--brand-text); }
.article-lead { font-size: 1.15rem; color: var(--muted); margin: 0; }
.byline { font-size: 0.88rem; color: var(--muted); margin: 0; }
.article h2 { font-family: var(--f-display); font-size: 1.4rem; line-height: 1.2; margin: 2.2rem 0 0.7rem; text-wrap: balance; }
.article p, .article li { max-width: 68ch; }
.article ul { padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 0.75rem; margin: 0.5rem 0 1rem; }
.figures div { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 0.9rem 1rem; display: grid; gap: 0.25rem; align-content: start; }
.figures b { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.figures span { font-size: 0.88rem; line-height: 1.35; }
.figures small { font-family: var(--f-mono); font-size: 0.68rem; color: var(--muted); }
.note { margin-top: 2rem; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 1rem 1.25rem; font-size: 0.95rem; color: var(--muted); }
.article-cta { margin-top: 2rem; background: var(--hero-bg); color: var(--hero-ink); border-radius: var(--radius); padding: 1.5rem; }
.article-cta h2 { margin-top: 0; }
.article-cta p { color: var(--hero-muted); }
.article-cta .btn-ghost { border-color: var(--hero-ink); color: var(--hero-ink); }
.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
.cta-row .btn { flex: 1 1 220px; }
.sources { margin-top: 2rem; font-size: 0.88rem; color: var(--muted); }
.sources h2 { font-size: 1.05rem; }
.posts { display: grid; gap: 1rem; max-width: 760px; }
.post { display: grid; gap: 0.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; text-decoration: none; color: var(--ink); transition: border-color .15s ease; }
.post:hover { border-color: var(--accent); }
.post h2 { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.2; margin: 0; }
.post p { margin: 0; color: var(--muted); }
.post .read { font-weight: 600; color: var(--brand-text); font-size: 0.9rem; }
/* Language switcher, zone pages */
.lang-switch { display: inline-flex; gap: 0.15rem; border: 1px solid rgba(255,255,255,.25); border-radius: 99px; padding: 0.15rem; }
.top nav .lang-switch a { display: inline-block; font-family: var(--f-mono); font-size: 0.75rem; padding: 0.15rem 0.5rem; border-radius: 99px; color: var(--hero-muted); }
.top nav .lang-switch a[aria-current] { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 560px) { .top nav .lang-switch a { display: inline-block; } }
.zone-block { margin-top: 1.5rem; }
.zone-block h2, .more h2 { font-family: var(--f-display); font-size: 1.3rem; margin: 0 0 0.75rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { font-family: var(--f-display); font-weight: 600; font-size: 0.92rem; padding: 0.4rem 0.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.zone-others { margin-top: 2rem; color: var(--muted); font-size: 0.92rem; }