:root {
    --ink: #1c1915;
    --muted: #6e675f;
    --cream: #f6f3ee;
    --paper: #fffcf8;
    --line: rgba(28, 25, 21, 0.14);
    --dark: #141210;
    --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
    --sans: "Outfit", "Segoe UI", sans-serif;
    --pad: clamp(20px, 4vw, 72px);
    --header: 82px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button, input, textarea { font: inherit; color: inherit; }

h1, h2, h3, p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--ink); color: var(--cream); }

:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 3px;
}

.skip {
    position: absolute;
    left: 16px;
    top: -40px;
    z-index: 200;
    background: var(--ink);
    color: white;
    padding: 8px 12px;
}

.skip:focus { top: 12px; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.eyebrow {
    margin: 0 0 16px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
}

.eyebrow-light { color: rgba(255, 252, 248, 0.78); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--header);
    background: var(--paper);
    border-bottom: 1px solid rgba(28, 25, 21, 0.06);
}

.site-header-inner {
    height: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    width: min(1480px, 100%);
    margin-inline: auto;
    padding-inline: var(--pad);
}

.nav-left,
.nav-right,
.footer-nav,
.legal-nav,
.social {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-right { justify-self: end; gap: 22px; }

.nav-left a,
.nav-contact,
.footer-nav a,
.legal-nav a {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.nav-left a:hover,
.nav-contact:hover,
.footer-nav a:hover,
.legal-nav a:hover { opacity: 0.55; }

.logo, .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.logo-name {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    line-height: 1;
}

.logo-sub {
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8a837b;
}

.menu-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-btn-lines,
.menu-btn-lines::before {
    display: block;
    width: 18px;
    height: 1.5px;
    margin-inline: auto;
    background: var(--ink);
    content: "";
}

.menu-btn-lines::before { margin-bottom: 6px; }

.hero {
    min-height: 640px;
    height: calc(100svh - var(--header));
    max-height: 920px;
    color: #f7f3ec;
    background:
        linear-gradient(90deg, rgba(16, 12, 8, 0.78) 0%, rgba(16, 12, 8, 0.46) 36%, rgba(16, 12, 8, 0.12) 62%, rgba(16, 12, 8, 0.28) 100%),
        url("../img/almudena.jpg") center 58% / cover no-repeat;
}

.hero-inner,
.services-layout,
.showcase-inner,
.cta-inner,
.site-footer-inner {
    width: min(1480px, 100%);
    margin-inline: auto;
    padding-inline: var(--pad);
}

.hero-inner {
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 680px) 1fr;
    align-items: center;
    gap: 40px;
}

.hero h1,
.services-intro h2,
.showcase-intro h2,
.offmarket h2,
.why h2,
.cta h2,
.subpage-main h1 {
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.02;
}

.hero h1 {
    font-size: clamp(42px, 4.1vw, 62px);
    max-width: 15ch;
}

.lede, .services-intro p, .showcase-intro p, .offmarket p, .cta-copy p {
    max-width: 46ch;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
}

.hero .lede { margin: 22px 0 28px; color: rgba(247, 243, 236, 0.88); }
.hero .eyebrow { margin-bottom: 18px; }

.hero-aside {
    justify-self: end;
    max-width: 250px;
    margin-right: 4vw;
    text-align: right;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(26px, 2.2vw, 34px);
    line-height: 1.2;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    background: #16130f;
    color: #f7f3ec;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}

.btn:hover { gap: 16px; background: #2a251f; }

.btn-line {
    background: transparent;
    color: var(--ink);
    border-color: rgba(28, 25, 21, 0.7);
}

.btn-line:hover { background: var(--ink); color: var(--cream); }

.btn-ghost {
    background: transparent;
    color: #f7f3ec;
    border-color: rgba(247, 243, 236, 0.75);
}

.btn-ghost:hover { background: #f7f3ec; color: var(--ink); }

.services { padding: 92px 0 84px; }

.services-layout {
    display: grid;
    grid-template-columns: minmax(240px, 300px) 1fr;
    gap: 48px 64px;
    align-items: start;
}

.services-intro h2 { font-size: clamp(40px, 3.6vw, 56px); max-width: 10ch; }
.services-intro p { margin: 18px 0 28px; color: var(--muted); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 46px 28px;
}

.service svg,
.why-points svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service h3 {
    margin: 16px 0 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.service p { color: var(--muted); font-size: 14px; font-weight: 300; line-height: 1.5; }

.service > a {
    display: inline-flex;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 400;
}

.service > a:hover { gap: 12px; }

.service-feature {
    min-height: 230px;
    padding: 22px 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #f7f3ec;
    background:
        linear-gradient(180deg, rgba(18, 14, 10, 0.15), rgba(18, 14, 10, 0.78)),
        url("../img/salon.jpg") center / cover no-repeat;
}

.service-feature .btn {
    font-size: 10px;
    letter-spacing: 0.08em;
    padding-inline: 12px;
    white-space: nowrap;
}

.service-feature h3 {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-transform: none;
    line-height: 1.05;
    max-width: 12ch;
}

.service-feature p { color: rgba(247, 243, 236, 0.84); margin: 10px 0 16px; }
.service-feature .btn { align-self: flex-start; }

.showcase {
    background: var(--dark);
    color: #f6f2eb;
    padding: 84px 0;
}

.showcase-inner {
    display: grid;
    grid-template-columns: minmax(230px, 300px) 1fr;
    gap: 36px 40px;
    align-items: center;
}

.showcase-intro h2 { font-size: clamp(36px, 3.2vw, 50px); max-width: 14ch; }
.showcase-intro p { margin: 16px 0 26px; color: rgba(246, 242, 235, 0.74); font-weight: 300; }

.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card { overflow: hidden; }
.card:hover img { transform: scale(1.05); }

.card-kicker {
    margin-top: 14px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(246, 242, 235, 0.62);
}

.card h3 {
    margin: 6px 0 8px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.card p:last-child {
    color: rgba(246, 242, 235, 0.66);
    font-size: 12.5px;
    font-weight: 300;
}

.split { display: grid; grid-template-columns: 1.08fr 0.92fr; min-height: 560px; }

.offmarket {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 72px 56px;
    color: #f7f3ec;
    background:
        linear-gradient(90deg, rgba(12, 10, 8, 0.2) 0%, rgba(12, 10, 8, 0.62) 48%, rgba(12, 10, 8, 0.84) 100%),
        url("../img/estudio.jpg") center / cover no-repeat;
}

.offmarket-copy { max-width: 440px; }
.offmarket h2 { font-size: clamp(36px, 3vw, 50px); max-width: 14ch; }
.offmarket p { margin: 16px 0 26px; color: rgba(247, 243, 236, 0.8); }

.why {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px 64px;
    background: var(--cream);
}

.why h2 { font-size: clamp(36px, 3vw, 50px); max-width: 16ch; }

.why-points {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 48px;
}

.why-points li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.35;
}

.why-points svg { color: var(--ink); }

.cta {
    min-height: 520px;
    color: #f7f3ec;
    background:
        linear-gradient(90deg, rgba(12, 9, 7, 0.72) 0%, rgba(12, 9, 7, 0.28) 52%, rgba(12, 9, 7, 0.5) 100%),
        url("../img/madrid.jpg") center 42% / cover no-repeat;
}

.cta-inner {
    min-height: 520px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
    gap: 40px;
    padding-block: 80px;
}

.cta h2 { font-size: clamp(40px, 4vw, 60px); max-width: 12ch; }
.cta-copy p { margin: 16px 0 26px; color: rgba(247, 243, 236, 0.84); }

.cta blockquote {
    margin: 0;
    justify-self: end;
    max-width: 420px;
    padding-left: 28px;
    border-left: 1px solid rgba(247, 243, 236, 0.45);
}

.cta blockquote p {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(26px, 2.3vw, 34px);
    line-height: 1.25;
}

.site-footer {
    background: #0e0d0b;
    color: #f4f0e8;
}

.site-footer-inner {
    display: grid;
    grid-template-columns: 1.15fr 1.4fr auto;
    align-items: start;
    gap: 24px;
    padding-block: 28px;
}

.footer-brand { align-items: flex-start; text-align: left; }
.footer-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer-brand .logo-name { font-size: 16px; letter-spacing: 0.22em; }
.footer-brand .logo-sub,
.footer-meta { color: rgba(244, 240, 232, 0.55); }
.footer-meta { display: block; margin: 10px 0 0; font-size: 13px; letter-spacing: 0.02em; line-height: 1.7; text-transform: none; }
.footer-meta a { color: inherit; }

.footer-nav { justify-content: center; flex-wrap: wrap; }
.footer-nav a,
.legal-nav a { white-space: nowrap; }
.legal-nav { gap: 10px; color: rgba(244, 240, 232, 0.7); font-size: 10px; letter-spacing: 0.14em; }
.footer-end { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; justify-self: end; }

.social { flex-wrap: wrap; gap: 8px; }
.social a {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
}
.social svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.3;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(14, 12, 10, 0.96);
    color: #f7f3ec;
    padding: 28px var(--pad) 48px;
    display: flex;
    flex-direction: column;
}

.nav-overlay[hidden] { display: none; }

.nav-overlay-top,
.contact-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-overlay-links {
    margin: auto 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-overlay-links a {
    font-family: var(--serif);
    font-size: clamp(40px, 6vw, 68px);
    font-weight: 500;
    line-height: 1.05;
}

.nav-overlay-links a:hover { opacity: 0.6; }

.text-btn {
    border: 0;
    background: transparent;
    color: inherit;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 11px;
    cursor: pointer;
}

.contact-dialog {
    width: min(520px, calc(100% - 28px));
    padding: 0;
    border: 0;
    background: transparent;
}

.contact-dialog::backdrop { background: rgba(12, 10, 8, 0.62); }

.contact-panel {
    padding: 28px 28px 32px;
    background: var(--paper);
    color: var(--ink);
}

.contact-panel h2 {
    margin: 8px 0 10px;
    font-family: var(--serif);
    font-size: 40px;
    font-weight: 500;
    line-height: 1;
}

.contact-lead, .contact-thanks { color: var(--muted); font-weight: 300; }
.contact-details { margin: 0 0 14px; font-size: 14px; line-height: 1.6; letter-spacing: 0; text-transform: none; }
.contact-details a { color: inherit; }

.contact-panel label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 16px;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-panel input,
.contact-panel textarea {
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    padding: 8px 0 10px;
    letter-spacing: 0;
    text-transform: none;
    font-size: 15px;
}

.contact-panel .btn { margin-top: 22px; }
.contact-thanks { margin-top: 18px; }

.subpage-main {
    width: min(760px, calc(100% - 2 * var(--pad)));
    margin: 0 auto;
    padding: 88px 0 120px;
}

.subpage-main h1 { font-size: clamp(46px, 6vw, 72px); max-width: 14ch; }
.subpage-lead { margin: 18px 0 28px; color: var(--muted); font-weight: 300; font-size: 18px; }
.subpage-main h2 {
    margin: 28px 0 8px;
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 500;
}
.subpage-main p { color: #3f3a34; }

@media (max-width: 1100px) {
    .nav-left { display: none; }
    .services-layout,
    .showcase-inner,
    .split,
    .cta-inner,
    .site-footer-inner { grid-template-columns: 1fr; }
    .services-grid,
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .why-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .offmarket, .why { padding: 56px var(--pad); }
    .footer-nav, .footer-end { justify-content: flex-start; flex-wrap: wrap; }
    .hero-aside { margin-right: 0; }
    .cta blockquote { justify-self: start; }
}

@media (max-width: 720px) {
    :root { --header: 68px; }
    .logo-sub { display: none; }
    .nav-contact { display: none; }
    .logo-name { font-size: 15px; letter-spacing: 0.14em; white-space: nowrap; }
    .hero { height: auto; min-height: 100svh; max-height: none; }
    .hero-inner {
        grid-template-columns: 1fr;
        align-content: end;
        padding-block: 48px 56px;
    }
    .hero-aside { justify-self: start; text-align: left; max-width: 16ch; }
    .services { padding: 64px 0; }
    .services-grid,
    .cards,
    .why-points { grid-template-columns: 1fr; }
    .card img { height: 220px; }
    .site-footer-inner { padding-block: 32px 28px; }
    .footer-end { align-items: flex-start; flex-direction: column; gap: 14px; }
}

.gate {
    position: relative;
    min-height: calc(100svh - var(--header));
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.gate-question {
    position: absolute;
    z-index: 2;
    top: 11%;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    color: #1c1915;
    font-family: var(--serif);
    font-size: clamp(22px, 2.4vw, 34px);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-shadow: 0 0 16px rgba(255, 252, 248, 0.9);
    pointer-events: none;
    white-space: nowrap;
}

.gate-panel {
    min-height: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 120px 32px 64px;
    text-align: center;
    background-position: center;
    background-size: cover;
}

.gate-dark { color: #f7f3ec; }
.gate-light { color: var(--ink); }

.gate-name {
    font-family: var(--serif);
    font-size: clamp(48px, 5vw, 78px);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
}

.gate-line { letter-spacing: 0.08em; font-weight: 300; }

.list-hero {
    min-height: 460px;
    display: grid;
    grid-template-columns: 1.45fr 0.7fr;
    color: #f7f3ec;
    background-position: center;
    background-size: cover;
}

.list-hero-copy,
.list-hero-note { padding: 64px var(--pad); }

.list-hero h1 {
    max-width: 16ch;
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(40px, 4vw, 62px);
    line-height: 1.02;
}

.list-hero-copy > p:not(.eyebrow) {
    max-width: 46ch;
    margin: 16px 0 26px;
    font-weight: 300;
}

.list-hero-actions { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
.list-hero-note {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    background: rgba(14, 12, 10, 0.9);
}
.list-hero-note p {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(28px, 2.4vw, 36px);
    line-height: 1.1;
}
.list-hero-note span { font-weight: 300; color: rgba(247, 243, 236, 0.8); }

.catalog {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 36px;
    width: min(1480px, 100%);
    margin: 0 auto;
    padding: 42px var(--pad) 72px;
}

.filters { display: flex; flex-direction: column; gap: 14px; }
.filters-title, .filters legend, .filters-label {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
}
.filters fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.filters label, .catalog-bar label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.filters fieldset label {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}
.filters fieldset input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    flex: 0 0 auto;
    accent-color: var(--ink);
}
.search-field input, .filters select, .range input, .catalog-bar select {
    width: 100%;
    border: 1px solid var(--line);
    background: transparent;
    padding: 10px 12px;
}
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filters .text-btn { align-self: flex-start; padding: 0; }

.catalog-bar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    margin-bottom: 18px;
}
.catalog-bar p { margin: 0; }
.catalog-updated { color: var(--muted); font-size: 13px; }
.catalog-bar label { min-width: 180px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.listing { background: var(--paper); border: 1px solid rgba(28, 25, 21, 0.06); }
.listing[hidden] { display: none; }
.listing-media { position: relative; display: block; overflow: hidden; }
.listing-media img { width: 100%; height: 180px; object-fit: cover; }
.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 8px;
    background: rgba(20, 16, 12, 0.82);
    color: #f7f3ec;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.badge-op { left: auto; right: 12px; }
.listing-kicker, .listing-where, .listing-meta { margin: 0; color: var(--muted); font-size: 12px; }
.listing-kicker { margin: 14px 16px 0; letter-spacing: 0.14em; text-transform: uppercase; }
.listing h2, .listing h3 { margin: 6px 16px; font-size: 20px; font-weight: 500; line-height: 1.25; }
.listing-where, .listing-meta { margin: 0 16px; }
.listing-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 8px; }
.listing-more { display: inline-flex; margin: 14px 16px 16px; }

.list-close {
    display: grid;
    grid-template-columns: 0.9fr 1.3fr;
    gap: 32px;
    padding: 56px var(--pad);
    background: #141210;
    color: #f6f2eb;
}
.list-close h2 { font-family: var(--serif); font-size: clamp(32px, 3vw, 46px); font-weight: 500; max-width: 16ch; }
.list-close p { font-weight: 300; color: rgba(246, 242, 235, 0.78); }
.list-close ul { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 0; padding: 0; list-style: none; }
.list-close li { display: flex; flex-direction: column; gap: 6px; }
.list-close span { color: rgba(246, 242, 235, 0.7); font-weight: 300; font-size: 14px; }

.ficha { width: min(1480px, 100%); margin: 0 auto; padding: 28px var(--pad) 72px; }
.ficha-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.ficha-tools .back-link { margin: 0; }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.share-label { margin-right: 4px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.share a {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
}
.share svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.share a:hover { background: var(--ink); color: var(--paper); }
.ficha-top, .ficha-body { display: grid; grid-template-columns: 1.5fr 0.7fr; gap: 28px; }
.ficha-gallery { position: relative; }
.ficha-gallery > img, .ficha-gallery [data-gallery-main] { width: 100%; height: 460px; object-fit: cover; }
.back-link { display: inline-block; margin-bottom: 12px; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow: auto; }
.thumbs button { border: 0; padding: 0; background: transparent; cursor: pointer; }
.thumbs img { width: 92px; height: 68px; object-fit: cover; }
.gallery-count { color: var(--muted); font-size: 13px; }
.ficha-price, .ficha-side {
    background: var(--paper);
    border: 1px solid rgba(28, 25, 21, 0.06);
    padding: 24px;
    align-self: start;
}
.ficha-price strong { display: block; font-family: var(--serif); font-size: 48px; font-weight: 500; line-height: 1; }
.ficha-price dl, .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.ficha-price dl div, .facts div { display: flex; flex-direction: column; gap: 2px; }
.ficha-price dt, .facts dt { color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.ficha-price .btn, .ficha-side .btn { width: 100%; justify-content: center; margin-top: 10px; }
.ficha-body { margin-top: 36px; }
.ficha-copy h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 4vw, 54px); max-width: 18ch; line-height: 1.05; }
.ficha-copy p { margin: 12px 0; max-width: 68ch; }
.ficha h2 { margin: 28px 0 10px; font-family: var(--serif); font-size: 32px; font-weight: 500; }
.map { width: 100%; height: 280px; border: 0; margin: 12px 0; }
.agent { display: flex; flex-direction: column; gap: 4px; margin-top: 22px; }
.agent span, .agent a { color: var(--muted); font-weight: 300; }
.related { margin-top: 48px; }
.related h2 { font-family: var(--serif); font-size: 36px; font-weight: 500; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 500; }
.faq details p { margin: 8px 0 0; color: #3f3a34; }
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0; }
.offer-grid article { padding: 18px; background: var(--paper); border: 1px solid rgba(28, 25, 21, 0.06); }
.offer-grid h2 { margin: 0 0 8px; font-family: var(--serif); font-size: 28px; }

@media (max-width: 1100px) {
    .gate, .list-hero, .catalog, .ficha-top, .ficha-body, .list-close, .offer-grid { grid-template-columns: 1fr; }
    .listing-grid { grid-template-columns: 1fr 1fr; }
    .gate-question { white-space: normal; text-align: center; width: min(90%, 520px); }
}

@media (max-width: 720px) {
    .listing-grid, .list-close ul, .ficha-price dl, .facts { grid-template-columns: 1fr; }
    .gate-panel { min-height: 420px; }
    .ficha-gallery [data-gallery-main] { height: 260px; }
    .ficha-tools { align-items: flex-start; flex-direction: column; }
    .catalog-bar { flex-direction: column; align-items: stretch; }
}

.editable { position: relative; }
.edit-pencil { display: none; }
body.is-admin .edit-pencil {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f6f3ee;
    color: #1c1915;
    box-shadow: 0 4px 14px rgba(28, 25, 21, 0.16);
    z-index: 6;
}
.editable > .edit-pencil { position: absolute; top: 14px; right: 14px; }
.edit-pencil svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.admin-bar {
    position: fixed;
    z-index: 50;
    left: 16px;
    bottom: 16px;
    display: flex;
    gap: 14px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #1c1915;
    color: #f6f3ee;
    font-size: 13px;
}
.admin-bar a { color: inherit; text-decoration: none; }
.page-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 24px 0; }
.page-gallery img { width: 100%; height: 160px; object-fit: cover; }
.doc-list { padding-left: 18px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .card img, .btn, .service > a { transition: none; }
}
