/*
 * HOOS Real Estate — sitio público.
 * Identidad: verde de marca #6EAB96 (acentos), verde oscuro accesible #3F7A66
 * (texto y botones, 5,0:1 sobre blanco) y azul noche #00233D.
 * Tipografías self-hosted: Cormorant Garamond (títulos) + Source Sans 3 (texto).
 * Mobile first. Sin sombras ni gradientes. Separado de admin.css.
 */

@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/cormorant-garamond-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/cormorant-garamond-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Source Sans 3";
    src: url("../fonts/source-sans-3-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Source Sans 3";
    src: url("../fonts/source-sans-3-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --green: #6eab96;
    --green-strong: #3f7a66;
    --green-deep: #2f5f50;
    --green-tint: #eef5f2;
    --night: #00233d;
    --ink: #1c2528;
    --ink-soft: #56666b;
    --line: #dfe4e2;
    --line-strong: #b8c3c0;
    --paper: #ffffff;
    --tint: #f5f6f3;
    --error: #a3261b;
    --error-bg: #fbe9e7;
    --ok: #2f6b3a;
    --ok-bg: #e7f3ea;
    --whatsapp: #146c43;
    --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --radius: 3px;
    --radius-control: 6px;
    --gutter: 1.25rem;
    --container: 76rem;
    --section: 3rem;
    --header-h: 4.5rem;
}

@media (min-width: 768px) {
    :root {
        --gutter: 2rem;
        --section: 4.5rem;
    }
}

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

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    overflow-wrap: break-word;
}

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

a {
    color: var(--green-strong);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--green-deep);
}

:focus-visible {
    outline: 3px solid var(--green-strong);
    outline-offset: 3px;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.005em;
    color: var(--ink);
    text-wrap: balance;
}

p {
    margin: 0 0 1em;
}

[hidden] {
    display: none !important;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* «Saltar al contenido»: completamente oculto (no ocupa lugar ni se ve al cargar, hacer clic o
   volver atrás) y visible SÓLO con foco de teclado (:focus-visible). Antes se mostraba con :focus,
   que también se activa con foco programático o restaurado por el navegador. */
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}

.skip-link:focus-visible {
    position: fixed;
    top: 0.75rem;
    left: 1rem;
    z-index: 1000;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0.7rem 1.1rem;
    overflow: visible;
    clip: auto;
    clip-path: none;
    font-weight: 600;
    color: var(--night);
    text-decoration: none;
    background: var(--paper);
    border: 2px solid var(--green-strong);
    border-radius: var(--radius-control);
    box-shadow: 0 8px 24px rgba(0, 20, 34, 0.15);
}

.eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green-strong);
}

.prose p {
    max-width: 38rem;
}

.prose p:last-child {
    margin-bottom: 0;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.7rem 1.4rem;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.button:active {
    transform: translateY(1px);
}

.button svg {
    flex: none;
}

.button--primary {
    color: #ffffff;
    background: var(--green-strong);
    border-color: var(--green-strong);
}

.button--primary:hover {
    color: #ffffff;
    background: var(--green-deep);
    border-color: var(--green-deep);
    box-shadow: 0 8px 20px rgba(47, 95, 80, 0.22);
}

.button--outline {
    color: var(--ink);
    background: transparent;
    border-color: var(--ink);
}

.button--outline:hover {
    color: #ffffff;
    background: var(--ink);
}

.button--light {
    color: var(--night);
    background: #ffffff;
    border-color: #ffffff;
}

.button--light:hover {
    color: var(--night);
    background: var(--green-tint);
}

.button--text {
    color: var(--ink);
    background: transparent;
    text-decoration: underline;
}

.button--whatsapp {
    color: #ffffff;
    background: var(--whatsapp);
    border-color: var(--whatsapp);
}

.button--whatsapp:hover {
    color: #ffffff;
    background: #0f5634;
}

.button--block {
    width: 100%;
}

.link-arrow {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
    padding-bottom: 0.15rem;
    transition: color 0.2s ease, background-size 0.3s ease;
}

.link-arrow::after {
    content: "→";
    transition: transform 0.25s ease;
}

.link-arrow:hover::after {
    transform: translateX(4px);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-h);
}

.site-header__logo img {
    width: 104px;
    height: auto;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
    padding: 0.4rem 0.2rem;
    font: inherit;
    font-weight: 600;
    color: var(--ink);
    background: none;
    border: 0;
    cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle__bars::before {
    top: -7px;
}

.nav-toggle__bars::after {
    top: 7px;
}

.site-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__list a {
    display: inline-block;
    padding: 0.6rem 0;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(var(--green), var(--green)) left bottom / 0 2px no-repeat;
    transition: background-size 0.3s ease, color 0.2s ease;
}

.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] {
    background-size: 100% 2px;
}

/* Mobile: menú desplegable (sólo con JS; sin JS se ve la lista completa) */
@media (max-width: 959px) {
    .js .nav-toggle {
        display: inline-flex;
    }

    .site-header__inner {
        flex-wrap: wrap;
    }

    .no-js .site-nav {
        width: 100%;
        padding-bottom: 1rem;
    }

    .js .site-nav {
        display: none;
        width: 100%;
        padding: 0.5rem 0 1.5rem;
    }

    .js .site-nav.is-open {
        display: block;
    }

    .site-nav__list {
        flex-direction: column;
    }

    .site-nav__list a {
        display: block;
        padding: 0.85rem 0;
        font-size: 1.125rem;
        background: none;
        border-bottom: 1px solid var(--line);
    }

    .site-nav__list a[aria-current="page"] {
        color: var(--green-strong);
        background: none;
    }

    .site-nav__cta {
        margin-top: 1rem;
        width: 100%;
    }
}

@media (min-width: 960px) {
    .site-header__logo img {
        width: 120px;
    }

    .site-nav {
        display: flex;
        align-items: center;
        gap: 2rem;
    }

    .site-nav__cta {
        min-height: 42px;
        padding: 0.5rem 1.1rem;
    }
}

/* ---------- Hero (slider) y buscador ---------- */
/*
 * Capas: imagen (Ken Burns sutil) → degradado para legibilidad → contenido.
 * Las transiciones se desactivan con prefers-reduced-motion.
 */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(34rem, 88vh, 52rem);
    padding: calc(var(--header-h) + 3rem) 0 7.5rem;
    color: #ffffff;
    background: var(--night);
    isolation: isolate;
    overflow: hidden;
}

.hero--plain {
    background:
        radial-gradient(ellipse at 80% 20%, rgba(110, 171, 150, 0.18), transparent 60%),
        var(--night);
}

.hero__slides {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__slide.is-active {
    opacity: 1;
}

.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.001);
    transition: transform 8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.hero__slide--left .hero__image {
    object-position: 20% center;
}

.hero__slide--right .hero__image {
    object-position: 78% center;
}

.hero__slide.is-active .hero__image {
    transform: scale(1.07);
}

/* Degradado: más oscuro a la izquierda (donde está el texto) y abajo. */
.hero:not(.hero--plain)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(0, 20, 34, 0.8) 0%, rgba(0, 20, 34, 0.52) 42%, rgba(0, 20, 34, 0.12) 100%),
        linear-gradient(0deg, rgba(0, 20, 34, 0.6) 0%, rgba(0, 20, 34, 0) 42%),
        radial-gradient(ellipse at 15% 50%, rgba(0, 20, 34, 0.25) 0%, rgba(0, 20, 34, 0) 60%);
}

.hero__content {
    width: 100%;
}

/* Entrada escalonada: título, bajada y botones. */
.hero__title,
.hero__subtitle,
.hero__actions {
    animation: hero-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero__subtitle {
    animation-delay: 0.15s;
}

.hero__actions {
    animation-delay: 0.3s;
}

.hero__title {
    max-width: 19ch;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: clamp(2.3rem, 4.4vw, 4rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.015em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero__accent {
    color: var(--green);
}

.hero__subtitle {
    margin: 1.25rem 0 2.25rem;
    max-width: 30rem;
    font-size: clamp(1.0625rem, 1.6vw, 1.3rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero__actions .button {
    min-height: 52px;
    padding: 0.8rem 1.6rem;
}

.button--ghost-light {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.button--ghost-light:hover {
    color: var(--night);
    background: #ffffff;
    border-color: #ffffff;
}

@keyframes hero-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Controles del slider (sólo con JS): contador, progreso por segmentos y flechas. */
.hero__controls {
    position: absolute;
    /* Alineado al borde derecho del contenedor (misma grilla que el texto). */
    right: max(var(--gutter), (100% - var(--container)) / 2 + var(--gutter));
    bottom: 6.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.hero__counter {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.75);
    font-variant-numeric: tabular-nums;
}

.hero__counter [data-slider-current] {
    color: #ffffff;
}

.hero__progress {
    display: flex;
    gap: 0.4rem;
}

.hero__dot {
    position: relative;
    display: block;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
}

/* Riel fino centrado en un área táctil de 44 px. */
.hero__dot::before,
.hero__dot-fill {
    position: absolute;
    left: 4px;
    right: 4px;
    top: 50%;
    height: 3px;
    margin-top: -1.5px;
    border-radius: 2px;
}

.hero__dot::before {
    content: "";
    background: rgba(255, 255, 255, 0.4);
    transition: background-color 0.3s ease;
}

.hero__dot:hover::before {
    background: rgba(255, 255, 255, 0.6);
}

.hero__dot-fill {
    background: #ffffff;
    transform: scaleX(0);
    transform-origin: left center;
}

.hero__dot.is-done .hero__dot-fill {
    transform: scaleX(1);
    opacity: 0.55;
}

.hero__dot[aria-current="true"] .hero__dot-fill {
    transform: scaleX(1);
}

.hero__dot.is-running .hero__dot-fill {
    animation: hero-progress var(--slide-duration, 5500ms) linear both;
}

/* Pausa (hover, foco, botón o pestaña oculta): la barra se congela. */
.is-paused .hero__dot.is-running .hero__dot-fill {
    animation-play-state: paused;
}

@keyframes hero-progress {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.hero__nav {
    display: flex;
    gap: 0.4rem;
}

.hero__arrow {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #ffffff;
    background: rgba(0, 20, 34, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.hero__arrow:hover {
    color: var(--night);
    background: #ffffff;
    border-color: #ffffff;
}

.hero__arrow:active {
    transform: scale(0.94);
}

.hero__icon-play,
.hero__arrow.is-paused .hero__icon-pause {
    display: none;
}

.hero__arrow.is-paused .hero__icon-play {
    display: block;
}

.hero__arrow:focus-visible,
.hero__dot:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Buscador flotante: se superpone al borde inferior del hero. */
.search-dock {
    position: relative;
    z-index: 5;
    margin-top: -5rem;
}

.search-dock .search {
    margin: 0;
    max-width: none;
    border: 1px solid rgba(0, 35, 61, 0.06);
    box-shadow: 0 24px 60px rgba(0, 20, 34, 0.12), 0 2px 6px rgba(0, 20, 34, 0.04);
}

@media (max-width: 767px) {
    .hero {
        align-items: flex-end;
        min-height: clamp(32rem, 86svh, 44rem);
        padding-bottom: 9.75rem;
    }

    .hero:not(.hero--plain)::before {
        background: linear-gradient(0deg, rgba(0, 20, 34, 0.85) 0%, rgba(0, 20, 34, 0.45) 55%, rgba(0, 20, 34, 0.3) 100%);
    }

    .hero__controls {
        left: var(--gutter);
        right: var(--gutter);
        bottom: 5.25rem;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .hero__counter {
        display: none;
    }

    .hero__dot {
        width: 36px;
    }

    .hero__arrow {
        background: rgba(0, 20, 34, 0.35);
    }

    .hero__actions .button {
        flex: 1 1 12rem;
    }

    .search-dock {
        margin-top: -3.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__slide,
    .hero__image,
    .hero__title,
    .hero__subtitle,
    .hero__actions,
    .hero__dot-fill {
        transition: none;
        animation: none;
    }

    .hero__slide.is-active .hero__image {
        transform: none;
    }
}

.search {
    max-width: 58rem;
    padding: 1.25rem;
    color: var(--ink);
    background: var(--paper);
    border-radius: 8px;
}

.search__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1.1rem;
}

.search__operation {
    display: inline-flex;
    margin: 0;
    padding: 4px;
    background: var(--tint);
    border: 0;
    border-radius: 999px;
}

.segmented {
    position: relative;
}

.segmented input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}

.segmented span {
    display: block;
    min-width: 6.5rem;
    padding: 0.55rem 1.2rem;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink-soft);
    border-radius: 999px;
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.segmented:hover span {
    color: var(--ink);
}

@media (max-width: 399px) {
    .segmented span {
        min-width: 0;
        padding: 0.55rem 1rem;
    }
}

.segmented input:checked + span {
    color: #ffffff;
    background: var(--green-strong);
    box-shadow: 0 4px 12px rgba(63, 122, 102, 0.25);
}

.segmented input:focus-visible + span {
    outline: 3px solid var(--green-strong);
    outline-offset: 2px;
}

.search__fields {
    display: grid;
    gap: 0.75rem;
}

.search__field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.search__field input,
.search__field select {
    min-height: 52px;
}

.search__submit {
    min-width: 9.5rem;
    min-height: 52px;
}

.search__more {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--green-deep);
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
}

.search__more:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .search {
        padding: 1.5rem 1.75rem 1.75rem;
    }

    .search__fields {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
        align-items: end;
    }
}

/* ---------- Formularios ---------- */

.field {
    display: grid;
    gap: 0.3rem;
    align-content: start;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.field label,
.field legend {
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0;
}

.field__optional {
    font-weight: 400;
    color: var(--ink-soft);
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.65rem 0.8rem;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-control);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
    min-height: 9rem;
    line-height: 1.5;
    resize: vertical;
}

input:not([type="checkbox"]):not([type="radio"]):hover,
select:hover,
textarea:hover {
    border-color: var(--ink-soft);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--green-strong);
    outline-offset: 0;
    border-color: var(--green-strong);
    box-shadow: 0 0 0 4px rgba(110, 171, 150, 0.22);
}

::placeholder {
    color: #66757a;
    opacity: 1;
}

.field--error input,
.field--error select,
.field--error textarea {
    border-color: var(--error);
}

.field__error {
    margin: 0;
    font-size: 0.9rem;
    color: var(--error);
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
    cursor: pointer;
}

.check input {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--green-strong);
}

.notice,
.alert {
    margin: 0 0 1rem;
    padding: 0.9rem 1rem 0.9rem 1.1rem;
    font-size: 0.975rem;
    line-height: 1.5;
    border-left: 3px solid currentColor;
    border-radius: var(--radius-control);
}

.notice--error,
.alert--error {
    color: var(--error);
    background: var(--error-bg);
}

.alert--success {
    color: var(--ok);
    background: var(--ok-bg);
}

.alert--info {
    color: var(--green-deep);
    background: var(--green-tint);
}

.lead-form {
    display: grid;
    gap: 1rem;
}

.lead-form__privacy {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--ink-soft);
}

/* Trampa para bots: fuera de pantalla, no visible ni enfocable. */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

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

.section {
    padding: var(--section) 0;
}

.section--tint {
    background: var(--tint);
}

.section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    margin-bottom: 2.25rem;
}

.section__head .link-arrow {
    margin-bottom: 0.45rem;
}

.section__title {
    font-size: clamp(2rem, 4vw, 2.9rem);
}

.section__title--small {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    margin-bottom: 1rem;
}

.split-text {
    display: grid;
    gap: 1.5rem;
}

.split-text .button {
    margin-top: 0.5rem;
}

@media (min-width: 900px) {
    .split-text {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
        gap: 4rem;
    }
}

.page-hero {
    padding: 3rem 0 0.5rem;
}

.page-hero__title {
    max-width: 24ch;
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
}

.page-hero__lead {
    max-width: 38rem;
    margin: 1rem 0 0;
    font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
    line-height: 1.55;
    color: var(--ink-soft);
}

/* Primera sección después del encabezado de página: sin doble aire. */
.page-hero + .section,
.section--first {
    padding-top: 2.25rem;
}

@media (min-width: 768px) {
    .page-hero {
        padding-top: 4rem;
    }

    .page-hero + .section,
    .section--first {
        padding-top: 3rem;
    }
}

/* ---------- Cards de propiedades ---------- */
/* Foto protagonista (4:3), operación, ubicación, título, precio y datos esenciales. */

.cards {
    display: grid;
    gap: 2rem 1.5rem;
}

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

@media (min-width: 1100px) {
    .cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .cards--4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.5rem 1.25rem;
    }

    .cards--4 .card__title {
        font-size: 1.25rem;
    }
}

.card {
    height: 100%;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    border-color: var(--line-strong);
    box-shadow: 0 12px 30px rgba(0, 20, 34, 0.07);
}

.card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.card__link:hover {
    color: inherit;
}

.card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--tint);
}

.card__media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card__link:hover .card__media > img {
    transform: scale(1.035);
}

/* Sin foto: marca HOOS tenue (nunca un texto de "falta"). */
.card__placeholder {
    display: grid;
    place-items: center;
    height: 100%;
}

.card__placeholder img {
    width: 110px;
    opacity: 0.35;
}

.card__badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--night);
    background: rgba(255, 255, 255, 0.94);
    border-radius: 999px;
}

.card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1.15rem 1.25rem 1.3rem;
}

.card__eyebrow {
    margin: 0 0 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green-strong);
}

.card__zone {
    margin: 0 0 0.4rem;
    font-size: 0.9375rem;
    color: var(--ink-soft);
}

.card__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 1.4rem;
    line-height: 1.22;
    text-wrap: pretty;
    transition: color 0.2s ease;
}

.card__link:hover .card__title {
    color: var(--green-deep);
}

.card__prices {
    display: grid;
    gap: 0.15rem;
    margin: auto 0 0;
    padding: 0.9rem 0 0;
    list-style: none;
}

.card__prices li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.5rem;
}

.card__price-label {
    font-size: 0.8125rem;
    color: var(--ink-soft);
}

/* Precios y cifras: la sans del sitio (los títulos siguen en serif). Una sola regla para todos los
   componentes; cada uno define sólo su tamaño. Sin fuente nueva: Source Sans 3 400/600 ya cargada. */
.price,
.card__price,
.property__price,
.contact-box__price,
.key-stats strong,
.map-card__price {
    font-family: var(--font-sans);
    font-weight: 400;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
    letter-spacing: -0.005em;
    color: var(--night);
}

.card__price {
    font-size: 1.375rem;
    line-height: 1.2;
}

.card__facts {
    margin: 0.75rem 0 0;
    padding-top: 0.75rem;
    font-size: 0.9375rem;
    color: var(--ink-soft);
    border-top: 1px solid var(--line);
}

@media (prefers-reduced-motion: reduce) {
    .card,
    .card__media > img {
        transition: none;
    }

    .card__link:hover .card__media > img {
        transform: none;
    }
}

/* ---------- Servicios y zonas ---------- */

.services-list,
.service-rows {
    margin: 0;
    padding: 0;
    list-style: none;
}

.services-list {
    display: grid;
    gap: 0 2rem;
}

.services-list__item {
    position: relative;
    padding: 1.5rem 0;
    border-top: 1px solid var(--line-strong);
}

/* Línea de acento que crece al pasar el mouse. */
.services-list__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: -1px;
    width: 0;
    height: 2px;
    background: var(--green-strong);
    transition: width 0.4s ease;
}

.services-list__item:hover::before,
.services-list__item:focus-within::before {
    width: 3rem;
}

/* El nombre es el enlace; su ::after cubre toda la fila (clic en cualquier parte). */
.services-list__link {
    color: inherit;
    text-decoration: none;
}

.services-list__link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.services-list__item:hover .services-list__link {
    color: var(--green-deep);
}

.services-list__link:focus-visible {
    outline: none;
}

.services-list__item:focus-within {
    outline: 2px solid var(--green-deep);
    outline-offset: 4px;
}

.services-list__item:focus-within:not(:has(:focus-visible)) {
    outline: none;
}

.services-list__name {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.services-list__item p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

/* Mobile: número a la izquierda para una lista más compacta. */
@media (max-width: 599px) {
    .services-list__item {
        display: grid;
        grid-template-columns: 2.75rem minmax(0, 1fr);
        column-gap: 0.5rem;
        padding: 1.25rem 0;
    }

    .services-list__number {
        grid-row: span 2;
        margin: 0;
        padding-top: 0.15rem;
        font-size: 1.6rem;
    }

    .services-list__name {
        font-size: 1.45rem;
        margin-bottom: 0.25rem;
    }

    .services-list__item p {
        font-size: 0.9875rem;
    }
}

@media (min-width: 600px) {
    .services-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .services-list {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0;
    }

    .services-list__item {
        padding: 1.75rem 1.5rem 0.5rem;
        border-top: 0;
        border-left: 1px solid var(--line-strong);
    }

    .services-list__item:first-child {
        padding-left: 0;
        border-left: 0;
    }

    .services-list__item::before {
        top: 0;
        left: 1.5rem;
    }

    .services-list__item:first-child::before {
        left: 0;
    }
}

/* Servicios (página): filas editoriales con número, nombre y texto + CTA. */
.service-rows__item {
    position: relative;
    display: grid;
    gap: 0.5rem 2rem;
    padding: 2.25rem 0;
    border-top: 1px solid var(--line-strong);
    scroll-margin-top: calc(var(--header-h) + 1rem);
}

.service-rows__item:last-child {
    border-bottom: 1px solid var(--line-strong);
}

.service-rows__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: -1px;
    width: 0;
    height: 2px;
    background: var(--green-strong);
    transition: width 0.4s ease;
}

.service-rows__item:hover::before,
.service-rows__item:focus-within::before {
    width: 4rem;
}

.service-rows__number {
    transition: color 0.25s ease;
}

.service-rows__item:hover .service-rows__number,
.service-rows__item:focus-within .service-rows__number {
    color: var(--green-strong);
}

/* Mobile: número y nombre en la misma línea; el texto y el CTA debajo del nombre (filas más bajas). */
@media (max-width: 899px) {
    .service-rows__item {
        grid-template-columns: 3rem minmax(0, 1fr);
        align-items: baseline;
        column-gap: 0.75rem;
        padding: 1.75rem 0;
    }

    .service-rows__number {
        font-size: 1.6rem;
    }

    .service-rows__name {
        font-size: 1.75rem;
    }

    .service-rows__body {
        grid-column: 2;
    }

    .service-rows__body p {
        margin-bottom: 0.75rem;
        font-size: 1rem;
        line-height: 1.6;
    }
}

.service-rows__number {
    font-family: var(--font-serif);
    font-size: 2rem;
    line-height: 1;
    color: var(--green);
}

.service-rows__name {
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
}

.service-rows__body p {
    max-width: 36rem;
    margin-bottom: 1rem;
    font-size: 1.0625rem;
    color: var(--ink-soft);
}

@media (min-width: 900px) {
    .service-rows__item {
        grid-template-columns: 5rem minmax(0, 0.9fr) minmax(0, 1.4fr);
        align-items: baseline;
        padding: 2.75rem 0;
    }
}

.zones {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 600px) {
    .zones {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1000px) {
    .zones {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.zones__link {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 15rem;
    padding: 1.25rem;
    color: #ffffff;
    text-decoration: none;
    background: var(--night);
    border-radius: var(--radius);
    overflow: hidden;
    isolation: isolate;
}

.zones__link img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.zones__link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 20, 34, 0.45);
    z-index: -1;
}

.zones__name {
    font-family: var(--font-serif);
    font-size: 2rem;
    line-height: 1.1;
}

.zones__cta {
    margin-top: 0.3rem;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.92);
}

/* Mobile: 2 columnas más bajas (el inicio no se estira); sólo la cantidad bajo el nombre. */
@media (max-width: 599px) {
    .zones {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .zones__link {
        min-height: 9.5rem;
        padding: 0.9rem;
    }

    .zones__name {
        font-size: 1.35rem;
    }

    .zones__cta {
        font-size: 0.8125rem;
    }

    .zones__cta-more {
        display: none;
    }
}

.zones__link:hover .zones__cta,
.zones__link:focus-visible .zones__cta {
    text-decoration: underline;
}

.zones__link:hover {
    color: #ffffff;
}

.cta-band {
    padding: var(--section) 0;
    color: #ffffff;
    background: var(--night);
}

.cta-band__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cta-band__title {
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 0.5rem;
}

.cta-band p {
    margin: 0;
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.85);
}

.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (max-width: 599px) {
    .cta-band__actions,
    .cta-band__actions .button {
        width: 100%;
    }
}

/* ---------- Nosotros ---------- */

.about-image {
    margin: 3rem 0 0;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 16 / 9;
    background: var(--tint);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 900px) {
    .about-image {
        aspect-ratio: 21 / 9;
    }
}

/* Misión y visión: dos bloques tipográficos, sin cajas. */
.purpose {
    display: grid;
    gap: 2.5rem;
}

.purpose__text {
    max-width: 34rem;
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.65;
}

.purpose__text--large {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    line-height: 1.3;
    color: var(--night);
}

@media (max-width: 899px) {
    .purpose__item + .purpose__item {
        padding-top: 2.5rem;
        border-top: 1px solid var(--line-strong);
    }
}

@media (min-width: 900px) {
    .purpose {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }

    .purpose__item + .purpose__item {
        padding-left: 3rem;
        border-left: 1px solid var(--line-strong);
    }
}

/* "Por qué elegirnos" reutiliza la lista editorial de servicios, en 4 columnas. No son enlaces:
   sin la línea de acento al pasar el mouse (en el inicio sí, porque cada servicio lleva a su acción). */
.services-list--4 .services-list__item:hover::before {
    width: 0;
}

@media (min-width: 1100px) {
    .services-list--4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Equipo comercial */
.team {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 600px) {
    .team {
        gap: 2.5rem 2rem;
    }
}

@media (max-width: 599px) {
    .team__name {
        font-size: 1.25rem;
    }

    .team__initials {
        font-size: 2.25rem;
    }
}

@media (min-width: 1000px) {
    .team {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.team__member {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.team__photo {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1;
    height: auto;
    margin-bottom: 1.1rem;
    object-fit: cover;
    border-radius: 10px;
}

.team__initials {
    display: grid;
    place-items: center;
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--green-deep);
    background: var(--green-tint);
}

.team__name {
    font-size: 1.5rem;
}

.team__position {
    margin: 0.25rem 0 0.6rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green-strong);
}

.team__bio {
    margin: 0 0 0.75rem;
    font-size: 0.975rem;
    color: var(--ink-soft);
}

.team__contact {
    margin-top: auto;
    font-size: 0.9375rem;
    font-weight: 600;
}

/* ---------- Listado ---------- */

.listing-head {
    padding: 2rem 0 0;
}

.breadcrumbs {
    font-size: 0.875rem;
    color: var(--ink-soft);
    margin-bottom: 1rem;
}

.breadcrumbs a {
    color: var(--ink-soft);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--green-strong);
    text-decoration: underline;
}

.breadcrumbs--property {
    padding-top: 1.5rem;
}

/* El título de la ficha en la miga se recorta en una línea. */
.breadcrumbs [aria-current="page"] {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.breadcrumbs--property [aria-current="page"] {
    max-width: min(40ch, 55vw);
}

.listing-head__title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.listing-head__count {
    margin: 0.35rem 0 0;
    color: var(--ink-soft);
}

.listing-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin: 1.5rem 0 1rem;
}

/* Operación: pestañas tipo píldora (mismo lenguaje que el buscador del inicio). */
.op-tabs {
    display: inline-flex;
    padding: 4px;
    background: var(--tint);
    border-radius: 999px;
}

.op-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 1.15rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: none;
    border-radius: 999px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.op-tabs a:hover {
    color: var(--ink);
}

.op-tabs a[aria-current="page"] {
    color: #ffffff;
    background: var(--green-strong);
}

.filters-bar__open {
    min-height: 44px;
}

/* Lista / Mapa: mismo lenguaje de píldora que las pestañas de operación, a la derecha. */
.view-toggle {
    display: inline-flex;
    margin-left: auto;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.view-toggle a {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    min-height: 38px;
    padding: 0 0.95rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: none;
    border-radius: 999px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.view-toggle a:hover {
    color: var(--ink);
}

.view-toggle a[aria-current="page"] {
    color: var(--night);
    background: var(--tint);
}

@media (max-width: 599px) {
    .listing-toolbar .view-toggle {
        order: 3;
    }

    .view-toggle a {
        padding: 0 0.75rem;
    }
}

@media (max-width: 479px) {
    .op-tabs a {
        padding: 0 0.85rem;
    }

    .filters-bar__open {
        padding: 0.5rem 0.9rem;
    }
}

.filters {
    padding: 0;
    border: 0;
    color: var(--ink);
    background: var(--paper);
}

.filters::backdrop {
    background: rgba(0, 20, 34, 0.5);
}

.filters__form {
    padding: 1.25rem;
}

.filters__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.filters__title {
    font-size: 1.75rem;
}

.filters__close {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--ink);
    background: none;
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
}

.filters__close:hover {
    border-color: var(--ink-soft);
}

.filters__grid {
    display: grid;
    gap: 1rem;
}

.filters .field > label,
.filters .field > legend,
.filters__features legend {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.price-range {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.5rem;
}

.filters__more {
    margin-top: 1rem;
    border-top: 1px solid var(--line);
}

.filters__more summary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    font-weight: 600;
    color: var(--green-strong);
    cursor: pointer;
    list-style: none;
}

.filters__more summary::-webkit-details-marker {
    display: none;
}

.filters__more summary::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.filters__more[open] summary::after {
    margin-top: 3px;
    transform: rotate(-135deg);
}

.filters__more[open] > .filters__grid {
    margin-bottom: 1rem;
}

.filters__features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0 1.25rem;
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
}

.filters__features legend {
    margin-bottom: 0.4rem;
}

.filters__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.filters__actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.field--sort {
    min-width: 13rem;
}

/* Mobile: dialog a pantalla completa con cabecera y acciones fijas. Sin JS: el formulario se ve en la página. */
@media (max-width: 959px) {
    .filters[open] {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        margin: 0;
        overflow-y: auto;
    }

    .filters[open] .filters__form {
        padding-top: 0;
        padding-bottom: 0;
    }

    .filters[open] .filters__header {
        position: sticky;
        top: 0;
        z-index: 2;
        margin: 0 -1.25rem 1rem;
        padding: 0.85rem 1.25rem;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
    }

    .filters[open] .filters__footer {
        position: sticky;
        bottom: 0;
        z-index: 2;
        margin: 1rem -1.25rem 0;
        padding: 0.85rem 1.25rem calc(0.85rem + env(safe-area-inset-bottom));
        background: var(--paper);
    }

    .filters__footer .field--sort,
    .filters__actions {
        flex: 1 1 100%;
    }

    /* Campos cortos de a dos: menos scroll dentro del dialog. */
    .filters__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filters .field--wide,
    .filters .field--price {
        grid-column: 1 / -1;
    }

    .filters__actions .button {
        flex: 1 1 0;
    }

    .no-js .filters {
        display: block;
        position: static;
        border-bottom: 1px solid var(--line);
    }

    .no-js .filters-bar,
    .no-js .filters__close {
        display: none;
    }
}

/* Desktop: el mismo formulario como panel compacto, sin modal. */
@media (min-width: 960px) {
    .filters-bar,
    .filters__header {
        display: none;
    }

    .filters {
        display: block;
        position: static;
        width: auto;
        max-width: none;
        margin: 0;
        background: var(--tint);
        border-radius: 10px;
    }

    .filters__form {
        padding: 1.25rem 1.5rem 1rem;
    }

    .filters > .filters__form > .filters__grid {
        grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
        align-items: end;
    }

    .filters__more,
    .filters__footer {
        border-top-color: var(--line-strong);
    }

    .filters__more {
        margin-top: 0.75rem;
    }

    .filters__footer {
        align-items: center;
        padding-top: 0.75rem;
    }

    /* Ordenar en línea con su etiqueta: una fila más baja. */
    .filters__footer .field--sort {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .filters__footer .field--sort > label {
        white-space: nowrap;
    }

    .filters__footer .field--sort select {
        min-height: 44px;
        width: auto;
    }

    .filters__more .filters__grid {
        grid-template-columns: repeat(3, minmax(0, 12rem));
    }
}

@media (min-width: 1200px) {
    .filters > .filters__form > .filters__grid {
        grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.7fr) repeat(2, minmax(0, 0.8fr));
    }
}

.section--listing {
    padding-top: 1.5rem;
}

.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.pager__pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pager__page,
.pager__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 44px;
    min-height: 44px;
    padding: 0 0.75rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.pager__page:hover,
.pager__step:hover {
    color: var(--ink);
    border-color: var(--line-strong);
}

.pager__page[aria-current="page"] {
    color: #ffffff;
    background: var(--green-strong);
}

.pager__step {
    border-color: var(--line-strong);
}

.pager__gap {
    padding: 0 0.25rem;
    color: var(--ink-soft);
}

@media (max-width: 479px) {
    .pager {
        gap: 0.5rem;
    }

    .pager__step {
        padding: 0 0.6rem;
    }
}

/* Estado vacío: bloque intencional, no un hueco. */
.empty-state {
    max-width: 40rem;
    margin: 1rem auto 0;
    padding: 3rem 1.5rem;
    text-align: center;
    background: var(--tint);
    border-radius: 10px;
}

.empty-state__title {
    font-size: clamp(1.7rem, 3vw, 2.1rem);
    margin-bottom: 0.75rem;
}

.empty-state p {
    margin: 0 auto;
    max-width: 30rem;
    color: var(--ink-soft);
}

.empty-state__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* ---------- Ficha ---------- */

/* Galería: en mobile, slider a todo el ancho con contador; en desktop, mosaico. */
.gallery-wrap {
    margin-bottom: 2rem;
}

.gallery-wrap__inner,
.gallery__frame {
    position: relative;
}

.gallery {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.gallery::-webkit-scrollbar {
    display: none;
}

.gallery__item {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.gallery__link {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--tint);
}

.gallery__link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s ease;
}

.gallery__more {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-serif);
    font-size: 2.25rem;
    color: #ffffff;
    background: rgba(0, 20, 34, 0.45);
    transition: background-color 0.3s ease;
}

.gallery__counter {
    position: absolute;
    right: calc(var(--gutter) + 0.75rem);
    bottom: 0.75rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ffffff;
    background: rgba(0, 20, 34, 0.6);
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}

@media (max-width: 899px) {
    /* Foto a todo el ancho de la pantalla. */
    .gallery-wrap__inner {
        padding: 0;
    }

    .gallery__counter {
        right: 0.75rem;
    }
}

@media (min-width: 900px) {
    .gallery {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: 6px;
        height: min(64vh, 38rem);
        overflow: hidden;
        border-radius: 10px;
    }

    .gallery__item--main {
        grid-row: 1 / span 2;
    }

    .gallery--1 {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }

    .gallery--2,
    .gallery--3 {
        grid-template-columns: 2fr 1fr;
    }

    .gallery--2 .gallery__item:nth-child(2) {
        grid-row: 1 / span 2;
    }

    .gallery--4 .gallery__item:nth-child(4) {
        grid-column: 2 / span 2;
    }

    .gallery__item--extra {
        display: none;
    }

    .gallery__link {
        aspect-ratio: auto;
        height: 100%;
    }

    .gallery__link:hover img {
        transform: scale(1.03);
    }

    .gallery__link:hover .gallery__more {
        background: rgba(0, 20, 34, 0.6);
    }

    .gallery__counter {
        display: none;
    }
}

/* Acciones sobre la galería: «Ver las N fotos» y «Planos». En mobile, debajo del slider. */
.gallery__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem var(--gutter) 0;
}

.gallery__action {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 1rem;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--night);
    background: #ffffff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-control);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.gallery__action:hover {
    border-color: var(--night);
}

.gallery__action:focus-visible {
    outline: 2px solid var(--green-deep);
    outline-offset: 2px;
}

@media (min-width: 900px) {
    .gallery__actions {
        position: absolute;
        right: calc(var(--gutter) + 1rem);
        bottom: 1rem;
        padding: 0;
    }

    .gallery__action {
        border-color: transparent;
        box-shadow: 0 6px 18px rgba(0, 20, 34, 0.15);
    }
}

/* Visor de fotos y planos (pantalla completa) */
.viewer {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    color: #ffffff;
    background: #0b1418;
    overflow: hidden;
}

.viewer[open] {
    display: flex;
    flex-direction: column;
}

.viewer::backdrop {
    background: #0b1418;
}

html.has-viewer {
    overflow: hidden;
}

.viewer__bar {
    display: flex;
    flex: none;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.viewer__tabs {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.viewer__tab {
    min-height: 40px;
    padding: 0.35rem 1rem;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.viewer__tab span {
    margin-left: 0.25rem;
    font-weight: 400;
    opacity: 0.7;
}

.viewer__tab[aria-pressed="true"] {
    color: var(--night);
    background: #ffffff;
}

.viewer__label {
    margin: 0;
    font-weight: 600;
}

.viewer__counter {
    margin: 0 auto 0 0.5rem;
    font-size: 0.9375rem;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.8);
    font-variant-numeric: tabular-nums;
}

.viewer__tools {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.viewer__btn,
.viewer__nav {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.viewer__btn:hover,
.viewer__nav:hover,
.viewer__btn[aria-pressed="true"] {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.viewer__btn:focus-visible,
.viewer__nav:focus-visible,
.viewer__tab:focus-visible,
.viewer__thumb:focus-visible,
.viewer__strip-item:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Foto a pantalla completa */
.viewer__stage {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.viewer__stage[hidden] {
    display: none;
}

.viewer__figure {
    position: relative;
    flex: 1;
    min-height: 0;
    margin: 0;
}

/* La foto ocupa el área disponible sin desbordarla, en cualquier proporción. */
.viewer__figure img {
    position: absolute;
    inset: 1rem 0.5rem;
    width: calc(100% - 1rem);
    height: calc(100% - 2rem);
    object-fit: contain;
    user-select: none;
}

.viewer__nav {
    position: absolute;
    top: calc(50% - 3rem);
    width: 52px;
    height: 52px;
}

.viewer__nav--prev {
    left: 1rem;
}

.viewer__nav--next {
    right: 1rem;
}

/* Tira de miniaturas (desktop) */
.viewer__strip {
    display: none;
    flex: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0.75rem 1rem 1rem;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.viewer__strip-item {
    display: block;
    width: 88px;
    height: 60px;
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid transparent;
    border-radius: 4px;
    opacity: 0.55;
    cursor: pointer;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.viewer__strip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.viewer__strip-item:hover,
.viewer__strip-item.is-active {
    opacity: 1;
}

.viewer__strip-item.is-active {
    border-color: #ffffff;
}

@media (min-width: 900px) {
    .viewer__strip:not([hidden]) {
        display: flex;
    }
}

@media (max-width: 599px) {
    .viewer__nav {
        top: auto;
        bottom: 1rem;
    }

    .viewer__figure img {
        inset: 0.5rem 0 5rem;
        width: 100%;
        height: calc(100% - 5.5rem);
    }
}

/* Cuadrícula de todas */
.viewer__grid {
    flex: 1;
    min-height: 0;
    padding: 1rem;
    overflow-y: auto;
}

/* «Ver todas»: fotos grandes en una columna (mobile) o dos (desktop), para recorrerlas con scroll. */
.viewer__grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr));
    gap: 0.75rem;
    max-width: 76rem;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.viewer__grid-list[hidden] {
    display: none;
}

.viewer__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 0;
    border-radius: 4px;
    cursor: zoom-in;
}

.viewer__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.2s ease;
}

.viewer__thumb:hover img {
    transform: scale(1.03);
}

.viewer__grid-list--plans .viewer__thumb {
    background: #ffffff;
}

.viewer__grid-list--plans .viewer__thumb img {
    object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
    .viewer__thumb img,
    .viewer__strip-item {
        transition: none;
    }
}

/* Contenido + panel de contacto */
.property-layout {
    display: grid;
    gap: 2.5rem;
    padding-bottom: var(--section);
}

@media (min-width: 960px) {
    .property-layout {
        grid-template-columns: minmax(0, 1fr) 23rem;
        gap: 4rem;
        align-items: start;
    }
}

/* Panel fijo al hacer scroll sólo si entra completo en pantalla (formulario incluido). */
@media (min-width: 960px) and (min-height: 1000px) {
    .contact-box {
        position: sticky;
        top: calc(var(--header-h) + 1.5rem);
    }
}

.property__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green-deep);
    background: var(--green-tint);
    border-radius: 999px;
}

.tag--status {
    color: #ffffff;
    background: var(--night);
}

.tag--reservada {
    color: var(--night);
    background: #f3e9d2;
}

.tag--soft {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.8125rem;
    color: var(--ink);
    background: var(--tint);
}

.property__title {
    font-size: clamp(2rem, 4.2vw, 3rem);
    text-wrap: pretty;
}

.property__zone {
    display: flex;
    gap: 0.4rem;
    align-items: flex-start;
    margin: 0.6rem 0 0;
    color: var(--ink-soft);
    font-size: 1.0625rem;
}

.property__zone svg {
    flex: none;
    margin-top: 0.2rem;
    color: var(--green-deep);
}

.property__ref {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    color: var(--ink-soft);
}

.property__prices {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
    margin: 1.5rem 0 0;
    padding: 1.25rem 0 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.property__price-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.property__price {
    font-size: clamp(1.75rem, 3vw, 2.125rem);
    line-height: 1.15;
}

/* Datos clave: valor grande + etiqueta, en una fila que se acomoda sola (2-3 por fila en mobile). */
.key-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

.key-stats li {
    flex: 1 1 6.5rem;
    display: grid;
    gap: 0.15rem;
    padding: 0.9rem 1rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 0 -1px -1px 0;
}

.key-stats strong {
    font-size: 1.375rem;
    line-height: 1.15;
}

.key-stats span {
    font-size: 0.8125rem;
    color: var(--ink-soft);
}

.property__section {
    padding: 2.25rem 0 0;
    margin-top: 2.25rem;
    border-top: 1px solid var(--line);
}

.property__subtitle {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.property__description {
    max-width: 42rem;
}

.property__description p,
.property__description ul {
    margin: 0 0 1.1em;
    line-height: 1.7;
}

.property__description h3 {
    margin: 1.6em 0 0.5em;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--night);
}

.property__description h3:first-child {
    margin-top: 0;
}

.property__description ul {
    padding-left: 1.25rem;
}

.property__description li + li {
    margin-top: 0.3em;
}

.property__description.is-collapsed {
    max-height: 26rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(#000 70%, transparent);
    mask-image: linear-gradient(#000 70%, transparent);
}

.link-toggle {
    margin-top: 0.75rem;
    padding: 0.5rem 0;
    font: inherit;
    font-weight: 600;
    color: var(--green-deep);
    background: none;
    border: 0;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    cursor: pointer;
}

.amenities-more {
    margin-top: 0.75rem;
}

.amenities-more summary {
    display: inline-block;
    padding: 0.5rem 0;
    font-weight: 600;
    color: var(--green-deep);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    cursor: pointer;
}

.amenities-more[open] summary {
    margin-bottom: 0.5rem;
}

.facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.5rem;
    margin: 0;
}

@media (min-width: 700px) {
    .facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.facts__item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
}

.facts dt {
    font-size: 0.8125rem;
    color: var(--ink-soft);
}

.facts dd {
    margin: 0.1rem 0 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.amenities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: 0.25rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.amenities li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.6rem;
}

/* Tilde fina en verde de marca. */
.amenities li::before {
    content: "";
    position: absolute;
    left: 0.15rem;
    top: 0.75rem;
    width: 0.75rem;
    height: 0.4rem;
    border-left: 2px solid var(--green);
    border-bottom: 2px solid var(--green);
    transform: rotate(-45deg);
}

.blueprints {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.blueprints__link {
    display: block;
    padding: 0.5rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.blueprints__link:hover {
    border-color: var(--line-strong);
}

.blueprints__link img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

.map {
    height: 340px;
    margin-top: 1rem;
    background: var(--tint);
    border-radius: 10px;
}

.map__note {
    margin: 0.6rem 0 0;
    font-size: 0.875rem;
    color: var(--ink-soft);
}

.map__note a {
    color: var(--green-deep);
    font-weight: 600;
    white-space: nowrap;
}

/* Panel del asesor */
.contact-box {
    display: grid;
    gap: 1rem;
    padding: 1.75rem 1.5rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.contact-box--closed {
    background: var(--tint);
    border-color: transparent;
}

.contact-box__title {
    font-size: 1.6rem;
}

.contact-box__head {
    display: grid;
    gap: 0.35rem;
}

.contact-box__price {
    margin: 0;
    font-size: 1.25rem;
}

.contact-box__price span {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.agent__label {
    margin: 0 0 0.1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.contact-box__text {
    margin: 0;
    color: var(--ink-soft);
}

.contact-box__or {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: var(--ink-soft);
}

.contact-box__or::before,
.contact-box__or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.agent {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.agent__photo {
    flex: none;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
}

.agent__photo--initials {
    display: grid;
    place-items: center;
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--green-deep);
    background: var(--green-tint);
}

.agent__name {
    margin: 0;
    font-weight: 600;
    font-size: 1.0625rem;
}

.agent__position,
.agent__line {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--ink-soft);
}

/* Barra de contacto fija en mobile (sólo propiedades disponibles). */
.property-cta {
    display: none;
}

@media (max-width: 959px) {
    .property-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 55;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        gap: 0.5rem;
        padding: 0.65rem var(--gutter) calc(0.65rem + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid var(--line);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        transition: transform 0.3s ease;
    }

    .property-cta.is-hidden {
        transform: translateY(110%);
    }

    /* El WhatsApp ya está en la barra: se oculta el flotante y se sube "volver arriba". */
    body:has(.property-cta) .wa-float {
        display: none;
    }

    body:has(.property-cta) .floating-actions {
        bottom: calc(5rem + env(safe-area-inset-bottom));
    }

    body:has(.property-cta) .site-footer {
        padding-bottom: calc(10rem + env(safe-area-inset-bottom));
    }
}

/* ---------- Tasaciones y contacto ---------- */

.form-layout {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 900px) {
    .form-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
        gap: 4.5rem;
        align-items: start;
    }
}

.form-card {
    padding: 1.5rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 18px 44px rgba(0, 20, 34, 0.06);
}

@media (min-width: 768px) {
    .form-card {
        padding: 2.25rem;
    }
}

.form-card__title {
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
}

/* Pasos de la tasación */
.steps {
    display: grid;
    gap: 1.5rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.steps__item {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.steps__number {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--green-deep);
    background: var(--green-tint);
    border-radius: 50%;
}

.steps__title {
    margin-bottom: 0.25rem;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    font-weight: 600;
}

.steps__item p {
    margin: 0;
    color: var(--ink-soft);
}

/* Datos de contacto */
.contact-list {
    display: grid;
    gap: 1.5rem;
    margin: 0;
}

.contact-list > div {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.contact-list > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.contact-list dt {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green-strong);
}

.contact-list dd {
    margin: 0.3rem 0 0;
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2.4vw, 1.65rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.contact-list dd a {
    color: var(--ink);
    text-decoration: none;
    background: linear-gradient(var(--green), var(--green)) left bottom / 100% 1px no-repeat;
    transition: color 0.2s ease;
}

.contact-list dd a:hover {
    color: var(--green-strong);
}

.contact-list__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

/* ---------- Error ---------- */

.error-page {
    padding: 5rem 0 4rem;
}

.error-page__inner > * {
    max-width: 44rem;
}

.error-page__title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.error-page__text {
    margin: 1rem 0 2rem;
    max-width: 34rem;
    font-size: 1.125rem;
    color: var(--ink-soft);
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.error-page__code {
    margin: 2.5rem 0 0;
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* ---------- Pie ---------- */

.site-footer {
    padding: 4rem 0 1.75rem;
    font-size: 0.975rem;
    background: var(--tint);
    border-top: 1px solid var(--line);
}

.site-footer__grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .site-footer__grid {
        grid-template-columns: 1.3fr minmax(0, 1fr) minmax(0, 1.1fr);
        gap: 3rem;
    }
}

/* Mobile: espacio para que WhatsApp y «volver arriba» no tapen el texto legal. */
@media (max-width: 767px) {
    .site-footer {
        padding-bottom: calc(8rem + env(safe-area-inset-bottom));
    }
}

.site-footer__brand img {
    width: 130px;
    margin-bottom: 1rem;
}

.site-footer__brand p {
    max-width: 22rem;
    color: var(--ink-soft);
}

.site-footer__title {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green-strong);
    margin-bottom: 1rem;
}

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

.site-footer li {
    padding: 0.2rem 0;
}

.site-footer a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--green-strong);
    text-decoration: underline;
}

.site-footer__legal {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-size: 0.8125rem;
    color: var(--ink-soft);
}

.site-footer__legal p {
    margin: 0 0 0.4rem;
}

/* ---------- Preferencias ---------- */

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

/* ---------- Home premium (slider, header transparente, destacadas) ---------- */

/* Header transparente sobre el hero (sólo con JS: sin JS queda el header sólido). */
.js .site-header--overlay {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    background: transparent;
    border-bottom-color: transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.js .site-header--overlay:not(.is-solid) .site-header__logo img {
    filter: brightness(0) invert(1);
}

.js .site-header--overlay:not(.is-solid) .site-nav__list a,
.js .site-header--overlay:not(.is-solid) .nav-toggle {
    color: #ffffff;
}

.js .site-header--overlay:not(.is-solid) .site-nav__cta {
    color: var(--night);
    background: #ffffff;
    border-color: #ffffff;
}

.js .site-header--overlay:not(.is-solid) .site-nav__cta:hover {
    background: var(--green-tint);
}

.js .site-header--overlay.is-solid {
    background: rgba(255, 255, 255, 0.94);
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px rgba(0, 20, 34, 0.06);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
}

/* Sobre la foto: leve sombra superior para que el menú blanco siempre se lea. */
.js .site-header--overlay:not(.is-solid)::before {
    content: "";
    position: absolute;
    inset: 0 0 -2.5rem;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 20, 34, 0.45) 0%, rgba(0, 20, 34, 0) 100%);
    pointer-events: none;
}

/* Mobile con menú abierto: el header siempre sólido (lo marca public.js). */
@media (max-width: 959px) {
    .js .site-header--overlay.is-solid .site-nav {
        background: var(--paper);
    }
}

/* Aparición suave al hacer scroll (sólo con JS y sin reducción de movimiento). */
@media (prefers-reduced-motion: no-preference) {
    .js [data-reveal] {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .js [data-reveal].is-visible {
        opacity: 1;
        transform: none;
    }
}

.section--intro {
    padding-top: calc(var(--section) + 1rem);
}

.section--intro .link-arrow {
    display: inline-block;
    margin-top: 0.5rem;
}

.services-list__number {
    display: block;
    margin-bottom: 0.75rem;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
    color: var(--green);
}

@media (prefers-reduced-motion: reduce) {
    .js .site-header--overlay {
        transition: none;
    }
}

/* Mano con las llaves (del sitio anterior): entra desde el borde izquierdo en
   pantallas grandes con altura suficiente. Decorativa. */
.hero__keys {
    display: none;
}

@media (min-width: 1100px) and (min-height: 760px) {
    .hero {
        align-items: flex-start;
        min-height: clamp(44rem, 92vh, 64rem);
        /* Baja el bloque de texto en pantallas altas, sin acercarlo a la mano. */
        padding-top: calc(var(--header-h) + 3rem + max(0px, (100vh - 760px) / 2));
    }

    .hero__keys {
        display: block;
        position: absolute;
        left: 0;
        bottom: 5.5rem;
        width: clamp(220px, 17vw, 300px);
        height: auto;
        filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
        animation: keys-in 1.2s 0.3s ease both;
        pointer-events: none;
    }
}

@keyframes keys-in {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* "Tu próximo hogar te espera": foto con desvanecido blanco a la izquierda (original). */
.home-banner {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: clamp(26rem, 48vw, 36rem);
    background: #ffffff;
    overflow: hidden;
}

.home-banner__bg img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.home-banner__inner {
    display: grid;
    justify-items: start;
    gap: 1.75rem;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.home-banner__bg img {
    transition: transform 1.2s ease;
}

.home-banner:hover .home-banner__bg img {
    transform: scale(1.02);
}

.home-banner__title {
    margin: 0;
}

.home-banner__title img {
    width: clamp(220px, 28vw, 380px);
    height: auto;
}

.home-banner__logo {
    width: 120px;
    height: auto;
}

@media (max-width: 767px) {
    .home-banner {
        align-items: flex-start;
        min-height: 34rem;
    }

    .home-banner::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 50%, rgba(255, 255, 255, 0) 80%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__keys {
        animation: none;
    }
}

/* ---------- Pie: contacto y redes ---------- */
.site-footer__contact-list li {
    padding: 0.25rem 0;
}

.social-links {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem !important;
}

.social-links__item {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #ffffff !important;
    background: var(--green-strong);
    border-radius: 50%;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-links__item:hover {
    background: var(--green-deep);
    text-decoration: none !important;
    transform: translateY(-2px);
}

/* ---------- Acciones flotantes: volver arriba + WhatsApp ---------- */
.floating-actions {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.wa-float {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: #ffffff;
    background: #1f9d55;
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(0, 20, 34, 0.22);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.wa-float svg {
    width: 30px;
    height: 30px;
}

.wa-float:hover {
    color: #ffffff;
    background: #178a49;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 20, 34, 0.26);
}

/* Onda: dos anillos que se expanden y desvanecen. */
.wa-float::before,
.wa-float::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid #1f9d55;
    opacity: 0;
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .wa-float::before,
    .wa-float::after {
        animation: wa-wave 2.6s ease-out infinite;
    }

    .wa-float::after {
        animation-delay: 1.3s;
    }
}

@keyframes wa-wave {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    70%,
    100% {
        opacity: 0;
        transform: scale(1.55);
    }
}

/* Tooltip "Escribinos por WhatsApp" (visual; el texto accesible va aparte). */
.wa-float__tip {
    position: absolute;
    right: calc(100% + 0.75rem);
    top: 50%;
    padding: 0.45rem 0.8rem;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--night);
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 8px 22px rgba(0, 20, 34, 0.14);
    opacity: 0;
    transform: translate(6px, -50%);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

@media (hover: hover) {
    .wa-float:hover .wa-float__tip,
    .wa-float:focus-visible .wa-float__tip {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

.to-top {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    color: var(--night);
    background: #ffffff;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 20, 34, 0.12);
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.to-top.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.to-top:hover {
    color: #ffffff;
    background: var(--green-strong);
    border-color: var(--green-strong);
    transform: translateY(-2px);
}

.to-top svg {
    transition: transform 0.25s ease;
}

.to-top:hover svg {
    transform: translateY(-2px);
}

.wa-float:focus-visible,
.to-top:focus-visible,
.social-links__item:focus-visible {
    outline: 3px solid var(--green-strong);
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .wa-float {
        width: 52px;
        height: 52px;
    }

    .wa-float svg {
        width: 26px;
        height: 26px;
    }

    .to-top {
        width: 42px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .to-top,
    .wa-float,
    .social-links__item {
        transition: none;
    }
}

/* ---------- Listado: vista Mapa ---------- */
.results-map {
    position: relative;
    overflow: hidden;
    background: var(--tint);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.results-map__canvas {
    height: min(72vh, 46rem);
    min-height: 26rem;
}

.results-map__status {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 500;
    max-width: calc(100% - 2rem);
    margin: 0;
    padding: 0.75rem 1.1rem;
    text-align: center;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 20, 34, 0.12);
    transform: translate(-50%, -50%);
}

.results-map__status[hidden] {
    display: none;
}

.results-map__back {
    display: none;
}

.results-map__note {
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
    color: var(--ink-soft);
}

@media (max-width: 767px) {
    /* Mapa casi a pantalla completa, con «Ver la lista» siempre a mano. */
    .section--listing:has(.results-map) .container {
        padding-inline: 0;
    }

    .results-map {
        border-inline: 0;
        border-radius: 0;
    }

    .results-map__canvas {
        height: calc(100svh - var(--header-h, 72px) - 4rem);
        min-height: 22rem;
    }

    .results-map__back {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        z-index: 500;
        display: inline-flex;
        min-height: 44px;
        box-shadow: 0 6px 18px rgba(0, 20, 34, 0.18);
    }

    .results-map__note {
        padding-inline: var(--gutter);
    }
}

/* Pin y grupos (divIcon de Leaflet: sólo clases, sin estilos en línea) */
.map-pin {
    background: none;
    border: 0;
}

.map-pin__dot {
    position: relative;
    display: block;
    width: 28px;
    height: 28px;
    background: var(--green-strong);
    border: 3px solid #ffffff;
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 3px 10px rgba(0, 20, 34, 0.3);
    transform: rotate(-45deg);
    transition: background-color 0.2s ease;
}

.map-pin:hover .map-pin__dot,
.map-pin:focus-visible .map-pin__dot {
    background: var(--night);
}

.map-cluster {
    font-size: 0.9375rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #ffffff;
    background: rgba(63, 122, 102, 0.92);
    border: 3px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(110, 171, 150, 0.35);
    transition: background-color 0.2s ease;
}

/* Leaflet fuerza display:block en el ícono: el número se centra con el span interno. */
.map-cluster span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.map-cluster:hover,
.map-cluster:focus-visible {
    background: var(--night);
}

.map-pin:focus-visible,
.map-cluster:focus-visible {
    outline: 3px solid var(--night);
    outline-offset: 3px;
}

/* Tarjeta del pin (popup) */
.map-popup .leaflet-popup-content-wrapper {
    padding: 0;
    overflow: hidden;
    border-radius: 10px;
}

.map-popup .leaflet-popup-content {
    width: 260px !important;
    margin: 0;
    font-family: var(--font-sans);
}

.map-popup a.leaflet-popup-close-button {
    top: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
    font-size: 22px;
    line-height: 30px;
    color: var(--night);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
}

.map-card__img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--tint);
}

.map-card__body {
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem 1rem 1rem;
}

.map-card__eyebrow {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green-strong);
}

.map-card__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--night);
}

.map-card__zone,
.map-card__facts {
    margin: 0;
    font-size: 0.875rem;
    color: var(--ink-soft);
}

.map-card__price {
    margin: 0.25rem 0 0;
    font-size: 1.125rem;
}

.map-card__price-label {
    font-size: 0.8125rem;
    color: var(--ink-soft);
}

.map-card__link {
    justify-content: center;
    margin-top: 0.5rem;
    min-height: 44px;
    color: #ffffff !important;
}

/* ---------- Contacto: «Dónde estamos» (Google Maps sin API key) ---------- */
.office__inner {
    display: grid;
    gap: 1.75rem;
    align-items: center;
}

.office__address {
    margin: 0 0 1.25rem;
    font-size: 1.125rem;
}

.office__map {
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
}

/* Proporción reservada: el iframe diferido no mueve la página al cargar. */
.office__map iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    border: 0;
}

@media (min-width: 900px) {
    .office__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
        gap: 3rem;
    }
}

@media (max-width: 599px) {
    /* Mobile: mapa a todo el ancho de la pantalla. */
    .office__map {
        margin-inline: calc(-1 * var(--gutter));
        border-inline: 0;
        border-radius: 0;
    }

    .office__map iframe {
        aspect-ratio: 4 / 3;
    }
}

/* Formularios públicos: estado de envío. Spinner chico dentro del botón, del color del texto del
   botón (currentColor); el botón conserva su color (no se «apaga») y el texto dice «Enviando…». */
.lead-form button[type="submit"].is-sending,
.lead-form button[type="submit"].is-sending:hover {
    cursor: progress;
    opacity: 0.92;
    transform: none;
}

.button__spinner {
    flex: none;
    width: 1em;
    height: 1em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    opacity: 0.85;
    animation: button-spin 0.75s linear infinite;
}

.button.is-sending > span:last-child {
    animation: button-sending-in 0.2s ease both;
}

@keyframes button-spin {
    to { transform: rotate(360deg); }
}

@keyframes button-sending-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Movimiento reducido: sin giro ni fundido; queda un aro estático y el texto «Enviando…». */
@media (prefers-reduced-motion: reduce) {
    .button__spinner,
    .button.is-sending > span:last-child {
        animation: none;
    }

    .button__spinner {
        border-right-color: currentColor;
        border-style: dotted;
    }
}
