/* =========================================================
   GR — Sistema visual del rediseño "Lima a la hora azul"
   Se carga después de site.css y lo va reemplazando por partes.
   ========================================================= */

:root {
    /* Color */
    --gr-navy: #0F2A4D;        /* azul de marca: la luz del anochecer */
    --gr-night: #08182E;       /* el azul más profundo de la hora azul */
    --gr-dusk: #2A5BA8;        /* azul medio del cielo al caer la tarde */
    --gr-sky: #C3D8F3;         /* texto secundario sobre azul */
    --gr-window: #FFFFFF;      /* ventana encendida */
    --gr-amber: #F2B33D;       /* luz interior cálida: acción y cifras */
    --gr-amber-press: #E09E22;
    --gr-amber-ink: #9A6500; /* ámbar legible sobre blanco o papel (contraste AA) */
    --gr-ink: #0F2A4D;
    --gr-ink-soft: #4F6B8B;
    --gr-paper: #F4F6F9;
    --gr-line: #DCE3EC;

    /* Tipografía: Gambetta (serif editorial y cálida) para títulos y cifras; Satoshi para texto e interfaz */
    --gr-display: "Gambetta", Georgia, "Times New Roman", serif;
    --gr-font: "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    /* Movimiento */
    --gr-ease-out: cubic-bezier(.16, 1, .3, 1);      /* expo out */
    --gr-ease-soft: cubic-bezier(.25, 1, .5, 1);     /* quart out */
}

/* Campo trampa anti-spam: invisible para personas y lectores de pantalla */
.gr-hp {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.gr-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

::selection {
    background: var(--gr-amber);
    color: var(--gr-night);
}

/* ---------- Header transparente sobre el hero (solo Inicio) ---------- */
body.home {
    padding-top: 0;
}

body.home main#content {
    padding-top: 0;
    margin-top: 0;
}

.header.header--overlay {
    transition: background-color .35s ease, box-shadow .35s ease;
}

.header.header--overlay:not(.is-scrolled):not(.is-open) {
    background: linear-gradient(180deg, rgba(8, 24, 46, .62) 0%, rgba(8, 24, 46, 0) 100%);
    box-shadow: none;
}

/* ---------- Botones ---------- */
.gr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border: 0;
    border-radius: 2px;
    font: 600 16px/1 var(--gr-font);
    letter-spacing: .01em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s var(--gr-ease-soft);
}

.gr-btn--primary {
    background: var(--gr-amber);
    color: var(--gr-night);
}

.gr-btn--primary:hover {
    background: var(--gr-amber-press);
}

.gr-btn:active {
    transform: translateY(1px);
}

.gr-btn:focus-visible {
    outline: 2px solid var(--gr-window);
    outline-offset: 3px;
}

/* =========================================================
   HERO — Inicio
   ========================================================= */
.gr-hero {
    position: relative;
    isolation: isolate;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: 100svh;
    display: grid;
    grid-template-rows: 1fr auto;
    color: var(--gr-window);
    background: var(--gr-night);
    overflow: hidden;
    font-family: var(--gr-font);
}

/* Foto: entra con zoom y se asienta; luego deriva muy lento */
.gr-hero__media {
    position: absolute;
    inset: 0;
    z-index: -3;
}

.gr-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 45%;
    transform: scale(1.12);
    filter: saturate(1.08) brightness(1.06);
    animation:
        gr-settle 2.8s var(--gr-ease-out) .1s forwards,
        gr-drift 28s ease-in-out 2.9s infinite alternate;
}

@keyframes gr-settle {
    to {
        transform: scale(1.03);
        filter: saturate(.82) brightness(.9);
    }
}

@keyframes gr-drift {
    from { transform: scale(1.03) translate3d(0, 0, 0); }
    to { transform: scale(1.08) translate3d(-1.2%, -1%, 0); }
}

/* La luz baja: el cielo se tiñe de azul (multiply) y la parte baja se oscurece para leer */
.gr-hero__dusk,
.gr-hero__shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.gr-hero__dusk {
    z-index: -2;
    background: linear-gradient(180deg, #2A5BA8 0%, #1D4580 45%, #0F2A4D 100%);
    mix-blend-mode: multiply;
    opacity: 0;
    animation: gr-dusk 2.6s ease-out .25s forwards;
}

@keyframes gr-dusk {
    to { opacity: .78; }
}

.gr-hero__shade {
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(8, 24, 46, 0) 30%, rgba(8, 24, 46, .55) 62%, rgba(8, 24, 46, .94) 100%),
        linear-gradient(90deg, rgba(8, 24, 46, .55) 0%, rgba(8, 24, 46, 0) 58%);
}

.gr-hero__inner {
    align-self: end;
    width: min(100% - 48px, 1280px);
    margin: 0 auto;
    padding: calc(var(--header-h, 72px) + 48px) 0 40px;
    display: grid;
    gap: 22px;
    max-width: 1280px;
}

.gr-hero__title {
    margin: 0;
    max-width: 13ch;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(46px, 7vw, 104px);
    line-height: .96;
    letter-spacing: -.02em;
    color: var(--gr-window);
    text-wrap: balance;
}

/* Cada línea del titular sube desde una máscara */
.gr-hero__title .ln {
    display: block;
    overflow: hidden;
    padding-bottom: .06em;
}

.gr-hero__title .ln > span {
    display: inline-block;
    transform: translateY(105%);
    animation: gr-rise 1.1s var(--gr-ease-out) forwards;
}

.gr-hero__title .ln:nth-child(1) > span { animation-delay: .7s; }
.gr-hero__title .ln:nth-child(2) > span { animation-delay: .85s; }

.gr-hero__title em {
    font-style: normal;
    color: var(--gr-amber);
}

@keyframes gr-rise {
    to { transform: none; }
}

.gr-fade {
    opacity: 0;
    transform: translateY(14px);
    animation: gr-fade .9s var(--gr-ease-out) forwards;
}

@keyframes gr-fade {
    to { opacity: 1; transform: none; }
}

.gr-hero__lead {
    margin: 0;
    max-width: 46ch;
    font-size: clamp(17px, 1.35vw, 20px);
    line-height: 1.5;
    color: var(--gr-sky);
    animation-delay: 1.05s;
}

/* ---------- Acciones del hero ---------- */
.gr-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
    animation-delay: 1.2s;
}

.gr-btn--ghost {
    background: transparent;
    color: var(--gr-window);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6);
}

.gr-btn--ghost:hover {
    background: rgba(255, 255, 255, .1);
    box-shadow: inset 0 0 0 1px var(--gr-window);
}

.gr-btn svg {
    transition: transform .25s var(--gr-ease-soft);
}

.gr-btn:hover svg {
    transform: translateX(4px);
}

/* ---------- Cifras en casillas fijas ---------- */
.gr-hero__facts {
    width: min(100% - 48px, 1280px);
    margin: 0 auto;
    padding: 22px 0 30px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(195, 216, 243, .28);
    animation-delay: 1.5s;
}

.gr-hero__facts div {
    display: flex;
    flex-direction: column-reverse;
    gap: 4px;
    padding-right: 16px;
}

.gr-hero__facts dt {
    font-size: 15px;
    color: var(--gr-sky);
}

.gr-hero__facts dd {
    margin: 0;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(28px, 2.6vw, 40px);
    letter-spacing: -.02em;
    line-height: 1;
    font-variant-numeric: lining-nums tabular-nums;
    color: var(--gr-window);
}

.gr-hero__facts dd b {
    color: var(--gr-amber);
    font-weight: 600;
}

/* ---------- Móvil ---------- */
@media (max-width: 767px) {
    .gr-hero__inner {
        width: calc(100% - 40px);
        padding-bottom: 28px;
        gap: 18px;
    }

    .gr-hero__title {
        font-size: clamp(42px, 12vw, 56px);
    }

    .gr-hero__facts {
        width: calc(100% - 40px);
        padding: 18px 0 24px;
    }

    .gr-hero__facts dt {
        font-size: 13px;
    }
}

/* ---------- Movimiento reducido: estado final sin animación ---------- */
@media (prefers-reduced-motion: reduce) {
    .gr-hero__media img {
        animation: none;
        transform: scale(1.03);
        filter: saturate(.82) brightness(.9);
    }

    .gr-hero__dusk {
        animation: none;
        opacity: .78;
    }

    .gr-hero__title .ln > span,
    .gr-fade {
        animation: none;
        transform: none;
        opacity: 1;
    }
}

/* ---------- Header en la tipografía del sistema nuevo ---------- */
.header .nav__link {
    font-family: var(--gr-font);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: .005em;
}

.header .nav__link[aria-current="page"] {
    font-weight: 600;
}

/* Escritorio: header más presente y alineado al ancho del contenido (1280) */
@media (min-width: 768px) {
    :root { --header-h: 100px; }
    .header .header__inner {
        width: min(100% - 48px, 1280px);
        min-height: 100px;
        padding-block: 12px;
    }
    .header .header__brand img { height: 74px; }
    .header .header__nav { gap: clamp(28px, 3.4vw, 52px); }
    .header .nav__link {
        min-height: 48px;
        font-size: 19px;
    }
    .header .nav__link::after { bottom: 6px; }
}

@media (max-width: 767px) {
    .header .nav__link {
        font-size: 28px;
        font-weight: 600;
        letter-spacing: -.02em;
    }
}

/* =========================================================
   INICIO — secciones después del hero
   ========================================================= */
body.home {
    overflow-x: clip;
    background: var(--gr-paper);
    font-family: var(--gr-font);
}

.gr-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.gr-wrap {
    width: min(100% - 48px, 1280px);
    margin: 0 auto;
}

.gr-h2 {
    margin: 0;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(34px, 4.2vw, 60px);
    line-height: 1.02;
    letter-spacing: -.02em;
    color: var(--gr-ink);
    text-wrap: balance;
}

.gr-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-weight: 600;
    color: var(--gr-ink);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.gr-link svg {
    transition: transform .25s var(--gr-ease-soft);
}

.gr-link:hover svg {
    transform: translateX(4px);
}

.gr-link:focus-visible {
    outline: 2px solid var(--gr-dusk);
    outline-offset: 4px;
}


/* ---------- ¿Cómo te ayudamos? (selector propietario / buscador) ---------- */
.gr-switch {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    min-height: clamp(560px, 78vh, 760px);
    background: var(--gr-paper);
}

.gr-switch__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding: clamp(56px, 8vw, 112px) clamp(24px, 5vw, 80px);
    padding-left: max(24px, calc((100vw - 1280px) / 2));
}

.gr-switch__tabs {
    display: grid;
    gap: 4px;
}

.gr-switch__tab {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    padding: 6px 0;
    border-bottom: 1px solid var(--gr-line);
    border: 0;
    background: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(26px, 2.6vw, 38px);
    letter-spacing: -.02em;
    line-height: 1.05;
    color: #6B819E; /* pestaña inactiva: tenue pero legible (3.5:1) */
    transition: color .35s ease;
}

.gr-switch__tab svg {
    flex: none;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity .3s ease, transform .35s var(--gr-ease-soft);
}

.gr-switch__tab:hover {
    color: var(--gr-ink-soft);
}

.gr-switch__tab[aria-selected="true"] {
    color: var(--gr-ink);
}

.gr-switch__tab[aria-selected="true"] svg {
    opacity: 1;
    transform: none;
    color: var(--gr-amber-ink);
}

.gr-switch__tab:focus-visible {
    outline: 2px solid var(--gr-dusk);
    outline-offset: 4px;
}

.gr-switch__content {
    display: grid;
    gap: 22px;
    max-width: 480px;
}

.gr-switch__content[hidden] {
    display: none;
}

.gr-switch__content.is-entering {
    animation: gr-fade .6s var(--gr-ease-out) both;
}

.gr-switch__lead {
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
    color: var(--gr-ink-soft);
}

.gr-switch__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.gr-switch__list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 17px;
    line-height: 1.45;
    color: var(--gr-ink);
}

.gr-switch__list svg {
    flex: none;
    margin-top: 2px;
    color: var(--gr-dusk);
}

.gr-switch__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.gr-btn--outline {
    background: transparent;
    color: var(--gr-ink);
    box-shadow: inset 0 0 0 1px var(--gr-ink);
}

.gr-btn--outline:hover {
    background: var(--gr-ink);
    color: var(--gr-window);
}

.gr-btn--outline:focus-visible {
    outline-color: var(--gr-dusk);
}

/* Foto: al cambiar de opción, la nueva imagen aparece con la misma "luz que baja" del hero */
.gr-switch__media {
    position: relative;
    overflow: hidden;
    background: var(--gr-night);
}

.gr-switch__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity .9s ease, transform 1.6s var(--gr-ease-out);
}

.gr-switch__media img.is-active {
    opacity: 1;
    transform: scale(1);
}

.gr-switch__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(42, 91, 168, .28) 0%, rgba(15, 42, 77, .18) 50%, rgba(8, 24, 46, .55) 100%);
    mix-blend-mode: multiply;
    pointer-events: none;
}

/* ---------- Proceso ---------- */
.gr-process {
    background: var(--gr-navy);
    color: var(--gr-window);
    padding-block: clamp(80px, 11vw, 150px);
}

.gr-process__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}

.gr-process__intro {
    position: sticky;
    top: calc(var(--header-h, 72px) + 40px);
    display: grid;
    gap: 20px;
}

.gr-process .gr-h2 {
    color: var(--gr-window);
}

.gr-process__lead {
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
    color: var(--gr-sky);
    max-width: 40ch;
}

.gr-process__promise {
    margin: 8px 0 0;
    padding: 18px 20px;
    border: 1px solid rgba(242, 179, 61, .5);
    font-size: 17px;
    line-height: 1.5;
    color: #E8EEF7;
    max-width: 40ch;
}

.gr-process__promise strong {
    color: var(--gr-amber);
    font-weight: 700;
}

.gr-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
}

.gr-step {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 24px;
    padding: 32px 0;
    border-top: 1px solid rgba(195, 216, 243, .2);
}

.gr-step:last-child {
    border-bottom: 1px solid rgba(195, 216, 243, .2);
}

/* El número "se enciende" como una ventana al llegar a la etapa */
.gr-step__n {
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(44px, 4.4vw, 64px);
    line-height: .9;
    letter-spacing: -.03em;
    color: rgba(195, 216, 243, .35);
    font-variant-numeric: lining-nums tabular-nums;
    transition: color .8s ease;
}

.gr-step.is-lit .gr-step__n {
    color: var(--gr-amber);
}

.gr-step h3 {
    margin: 4px 0 8px;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(22px, 2vw, 28px);
    letter-spacing: -.01em;
    color: var(--gr-window);
}

.gr-step p {
    margin: 0;
    font-size: 17px;
    line-height: 1.55;
    color: var(--gr-sky);
    max-width: 52ch;
}

/* ---------- Propiedades disponibles: destacada + grilla ---------- */
.gr-feat {
    padding-block: clamp(80px, 10vw, 140px);
    background: var(--gr-paper);
}

.gr-feat__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 40px;
    margin-bottom: 40px;
}

.gr-feat__lead {
    margin: 14px 0 0;
    max-width: 46ch;
    text-wrap: pretty;
    font-size: 18px;
    line-height: 1.5;
    color: var(--gr-ink-soft);
}

.gr-feat__grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 6fr);
    gap: clamp(16px, 2vw, 24px);
}

.gr-feat__main {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 600px;
    overflow: hidden;
    background: var(--gr-navy);
    color: var(--gr-window);
    text-decoration: none;
}

.gr-feat__main > img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--gr-ease-out);
}

.gr-feat__main::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(8, 24, 46, 0) 38%, rgba(8, 24, 46, .9) 100%);
}

.gr-feat__main:hover > img {
    transform: scale(1.04);
}

.gr-feat__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 7px 11px;
    background: var(--gr-window);
    color: var(--gr-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.gr-feat__body {
    display: grid;
    gap: 8px;
    padding: clamp(24px, 3vw, 40px);
}

.gr-feat__price {
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: 21px;
    line-height: 1.1;
    letter-spacing: -.01em;
    color: var(--gr-ink);
    font-variant-numeric: lining-nums tabular-nums;
}

.gr-feat__price small {
    font-family: var(--gr-font);
    font-size: 14px;
    font-weight: 500;
    color: var(--gr-ink-soft);
}

.gr-feat__price--lg {
    font-size: clamp(40px, 4.4vw, 60px);
    line-height: 1;
    color: var(--gr-window);
}

.gr-feat__price--lg small {
    font-size: 17px;
    color: var(--gr-sky);
}

.gr-feat__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--gr-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gr-feat__title--lg {
    max-width: 30ch;
    font-size: clamp(19px, 1.7vw, 24px);
    line-height: 1.3;
    color: var(--gr-window);
}

.gr-feat__meta {
    font-size: 14px;
    color: var(--gr-ink-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gr-feat__main .gr-feat__meta {
    font-size: 16px;
    color: var(--gr-sky);
}

.gr-feat__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: start;
    margin-top: 14px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--gr-amber);
    font-weight: 600;
    color: var(--gr-window);
}

.gr-feat__cta svg {
    color: var(--gr-amber);
    transition: transform .3s var(--gr-ease-soft);
}

.gr-feat__main:hover .gr-feat__cta svg {
    transform: translateX(5px);
}

.gr-feat__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
}

.gr-feat__card {
    display: grid;
    align-content: start;
    gap: 6px;
    height: 100%;
    text-decoration: none;
}

.gr-feat__ph {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    margin-bottom: 8px;
    overflow: hidden;
    background: #DCE6F2;
}

.gr-feat__ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--gr-ease-out);
}

.gr-feat__card:hover .gr-feat__ph img {
    transform: scale(1.05);
}

.gr-feat__card:hover .gr-feat__title {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gr-feat__main:focus-visible,
.gr-feat__card:focus-visible {
    outline: 3px solid var(--gr-dusk);
    outline-offset: 4px;
}

/* ---------- Confianza: mosaico de familias ---------- */
.gr-trust {
    padding-block: clamp(80px, 10vw, 140px) clamp(56px, 7vw, 96px);
    background: #FFFFFF;
}

.gr-trust__title {
    max-width: 16ch;
    margin-bottom: 44px;
}

.gr-mosaic {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(180px, 17vw, 250px);
    grid-template-areas:
        "a a d b"
        "a a c e"
        "f g h e";
    gap: 12px;
}

.gr-mosaic__a { grid-area: a; }
.gr-mosaic__b { grid-area: b; }
.gr-mosaic__c { grid-area: c; }
.gr-mosaic__d { grid-area: d; }
.gr-mosaic__e { grid-area: e; }
.gr-mosaic__f { grid-area: f; }
.gr-mosaic__g { grid-area: g; }
.gr-mosaic__h { grid-area: h; }

.gr-mosaic__ph {
    margin: 0;
    overflow: hidden;
    background: #DCE6F2;
}

.gr-mosaic__ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--gr-ease-out);
}

.gr-mosaic__ph:hover img {
    transform: scale(1.05);
}

.gr-mosaic__stat {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 20px;
    padding: clamp(22px, 2.2vw, 32px);
    background: var(--gr-navy);
    color: var(--gr-window);
}

.gr-mosaic__stat strong {
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(40px, 6vw, 92px);
    line-height: .85;
    letter-spacing: -.035em;
    color: var(--gr-amber);
    font-variant-numeric: lining-nums tabular-nums;
}

.gr-mosaic__stat span {
    max-width: 24ch;
    padding-top: 14px;
    border-top: 1px solid rgba(195, 216, 243, .28);
    font-size: 16px;
    line-height: 1.4;
    color: var(--gr-sky);
    text-wrap: pretty;
}

.gr-mosaic__quote {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: clamp(22px, 2.2vw, 32px);
    background: var(--gr-paper);
}

.gr-mosaic__quote p {
    margin: 0;
    max-width: 30ch;
    font-size: 16px;
    line-height: 1.55;
    color: var(--gr-ink-soft);
    text-wrap: pretty;
}

.gr-mosaic__quote .gr-mosaic__big {
    max-width: none;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(26px, 2.3vw, 34px);
    line-height: 1.02;
    letter-spacing: -.025em;
    color: var(--gr-ink);
    text-wrap: balance;
}

.gr-mosaic__quote .gr-mosaic__rec {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--gr-line);
}

.gr-mosaic__rec strong {
    display: block;
    margin-bottom: 6px;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(48px, 4.6vw, 68px);
    line-height: .9;
    letter-spacing: -.03em;
    color: var(--gr-dusk);
    font-variant-numeric: lining-nums tabular-nums;
}

/* Nos respaldan: fila fija sobre el carrusel de aliados */
.gr-backing {
    width: min(100% - 40px, 1100px);
    margin: 0 auto 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--gr-line);
}

.gr-backing__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px clamp(40px, 6vw, 96px);
}

.gr-backing__list img {
    display: block;
    height: var(--h, 48px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 767px) {
    .gr-backing__list {
        gap: 20px 32px;
    }

    .gr-backing__list img {
        height: calc(var(--h, 48px) * .72);
    }
}

/* ---------- Aliados: carrusel continuo con logos del mismo peso visual ---------- */
.gr-allies {
    padding-block: 56px 48px;
    background: #FFFFFF;
    border-top: 1px solid var(--gr-line);
}

.gr-allies__title {
    margin: 0 0 24px;
    text-align: center;
    font-family: var(--gr-font);
    font-size: 15px;
    font-weight: 600;
    color: var(--gr-ink-soft);
}

.gr-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.gr-marquee__track {
    display: flex;
    width: max-content;
    animation: gr-marquee 38s linear infinite;
}

.gr-marquee__group {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.gr-marquee__group li {
    display: grid;
    place-items: center;
    width: 220px;
    height: 72px;
    flex: none;
}

.gr-marquee__group img {
    display: block;
    height: var(--h, 38px);
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

@keyframes gr-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- Cierre ---------- */
.gr-close {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(96px, 14vw, 180px);
    color: var(--gr-window);
    background: var(--gr-night);
}

/* La foto ocupa la mitad derecha: las personas se ven completas y el texto queda sobre azul */
.gr-close__img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    width: 60%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
}

.gr-close::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, var(--gr-night) 0%, var(--gr-night) 40%, rgba(8, 24, 46, .55) 55%, rgba(8, 24, 46, .05) 75%),
        linear-gradient(180deg, rgba(42, 91, 168, .18), rgba(8, 24, 46, .3));
}

@media (max-width: 767px) {
    .gr-close {
        padding-top: 0;
    }

    .gr-close__img {
        position: relative;
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .gr-close::after {
        background: linear-gradient(180deg, rgba(8, 24, 46, 0) 0%, rgba(8, 24, 46, 0) 22%, var(--gr-night) 42%);
    }

    .gr-close__inner {
        margin-top: -48px;
    }
}

.gr-close__inner {
    display: grid;
    gap: 20px;
}

.gr-close__title {
    margin: 0;
    max-width: 14ch;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(40px, 5.6vw, 80px);
    line-height: 1;
    letter-spacing: -.02em;
}

.gr-close__lead {
    margin: 0;
    max-width: 46ch;
    font-size: 18px;
    line-height: 1.55;
    color: var(--gr-sky);
}

.gr-close__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

/* ---------- Inicio en móvil y tablet ---------- */
@media (max-width: 980px) {
    .gr-process__grid,
    .gr-feat__grid {
        grid-template-columns: 1fr;
    }

    .gr-feat__main {
        min-height: 0;
        aspect-ratio: 4 / 5;
    }

    .gr-feat__card .gr-feat__price {
        font-size: 18px;
    }

    .gr-feat__card .gr-feat__meta {
        white-space: normal;
    }

    .gr-process__intro {
        position: static;
    }

    .gr-switch {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .gr-switch__panel {
        padding-left: 24px;
    }

    .gr-switch__media {
        order: -1;
        min-height: 320px;
    }
}

@media (max-width: 767px) {
    .gr-wrap {
        width: calc(100% - 40px);
    }

    .gr-switch__panel {
        padding: 48px 20px 56px;
    }

    .gr-switch__actions .gr-btn,
    .gr-hero__actions .gr-btn {
        flex: 1 1 100%;
    }

    .gr-mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 170px;
        grid-template-areas:
            "a a"
            "a a"
            "b c"
            "e e"
            "e e"
            "d f"
            "g h";
        gap: 8px;
    }

    .gr-mosaic__stat {
        gap: 10px;
        padding: 18px;
    }

    .gr-mosaic__stat span {
        max-width: none;
        padding-top: 10px;
        font-size: 14px;
    }

    .gr-step {
        grid-template-columns: 64px 1fr;
        gap: 16px;
        padding: 26px 0;
    }

    .gr-close__actions .gr-btn {
        flex: 1 1 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gr-switch__media img,
    .gr-feat__main > img,
    .gr-feat__ph img,
    .gr-mosaic__ph img,
    .gr-step__n {
        transition: none;
    }

    .gr-step .gr-step__n {
        color: var(--gr-amber);
    }

    .gr-marquee__track {
        animation: none;
        flex-wrap: wrap;
        width: auto;
        justify-content: center;
    }

    .gr-marquee__group[aria-hidden="true"] {
        display: none;
    }
}

/* ==========================================================
   Footer
   ========================================================== */
.gr-foot {
    background: var(--gr-night);
    color: var(--gr-sky);
    font-family: var(--gr-font);
    border-top: 1px solid rgba(195, 216, 243, .14);
}

.gr-foot__inner {
    width: min(100% - 40px, 1240px);
    margin-inline: auto;
}

.gr-foot__top {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 3fr) minmax(0, 4fr);
    gap: 40px clamp(24px, 4vw, 56px);
    padding-block: clamp(56px, 7vw, 88px) 48px;
}

.gr-foot__logo {
    display: inline-block;
}

.gr-foot__logo img {
    display: block;
    width: 112px;
    height: auto;
}

.gr-foot__claim {
    max-width: 34ch;
    margin: 20px 0 24px;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(19px, 1.6vw, 22px);
    line-height: 1.35;
    color: var(--gr-window);
    text-wrap: pretty;
}

.gr-foot__social {
    display: flex;
    gap: 10px;
}

.gr-foot__social a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(195, 216, 243, .3);
    border-radius: 50%;
    color: var(--gr-window);
    transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

.gr-foot__social a:hover {
    background: var(--gr-amber);
    border-color: var(--gr-amber);
    color: var(--gr-night);
}

.gr-foot__title {
    margin: 0 0 16px;
    font-family: var(--gr-font);
    font-size: 14px;
    font-weight: 700;
    color: var(--gr-window);
}

.gr-foot__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
    font-size: 15px;
    line-height: 1.5;
}

.gr-foot__col li {
    min-height: 32px;
    display: flex;
    align-items: center;
    overflow-wrap: break-word;
}

.gr-foot__col a,
.gr-foot__bottom a {
    color: var(--gr-sky);
    text-decoration: none;
    transition: color .2s ease;
}

.gr-foot__col a:hover,
.gr-foot__bottom a:hover {
    color: var(--gr-amber);
}

.gr-foot a:focus-visible {
    outline: 2px solid var(--gr-amber);
    outline-offset: 3px;
}

.gr-foot__backing {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    padding-block: 24px;
    border-top: 1px solid rgba(195, 216, 243, .14);
}

.gr-foot__backing span {
    font-size: 14px;
    font-weight: 600;
    color: var(--gr-window);
}

.gr-foot__backing ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gr-foot__backing li {
    display: grid;
    place-items: center;
    height: 48px;
    padding: 0 14px;
    background: #FFFFFF;
    border-radius: 6px;
}

.gr-foot__backing img {
    display: block;
    height: var(--h, 28px);
    width: auto;
}

.gr-foot__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-block: 20px 28px;
    border-top: 1px solid rgba(195, 216, 243, .14);
    font-size: 13px;
    color: #8FA6C4;
}

.gr-foot__bottom p {
    margin: 0;
}

@media (max-width: 980px) {
    .gr-foot__top {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gr-foot__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .gr-foot__top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ---------- Botón flotante de WhatsApp ---------- */
.hide-wh-fab .wh-fab {
    display: none !important;
}

.wh-fab {
    position: fixed;
    right: 22px;
    bottom: var(--fab-bottom, 22px);
    z-index: 1000;
}

.wh-fab a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 22px 0 18px;
    border-radius: 999px;
    background: #0F7A40;
    color: #FFFFFF;
    font-family: var(--gr-font);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(8, 24, 46, .28);
    transition: transform .2s var(--gr-ease-out), box-shadow .2s ease;
}

.wh-fab img {
    width: 26px;
    height: 26px;
    display: block;
}

.wh-fab a:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(8, 24, 46, .32);
}

.wh-fab a:focus-visible {
    outline: 3px solid var(--gr-amber);
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .wh-fab {
        right: 16px;
    }

    .wh-fab a {
        height: 52px;
        padding: 0 18px 0 14px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wh-fab a {
        transition: none;
    }
}

/* ==========================================================
   Listado de propiedades
   ========================================================== */
.gr-plist-page {
    background: var(--gr-paper);
    font-family: var(--gr-font);
}

/* ---------- Cabecera con buscador ---------- */
.gr-phead {
    padding-block: clamp(40px, 6vw, 72px) clamp(32px, 4vw, 48px);
    background: var(--gr-navy);
    color: var(--gr-window);
}

.gr-phead__intro {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: 12px 48px;
    margin-bottom: clamp(24px, 3vw, 36px);
}

.gr-phead__title {
    margin: 0;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1;
    letter-spacing: -.03em;
    color: var(--gr-window);
}

.gr-phead__lead {
    margin: 0;
    max-width: 44ch;
    font-size: 17px;
    line-height: 1.5;
    color: var(--gr-sky);
    text-wrap: pretty;
}

.gr-search {
    display: flex;
    gap: 10px;
    padding: 8px;
    background: #FFFFFF;
    border-radius: 4px;
    box-shadow: 0 18px 40px rgba(8, 24, 46, .25);
}

.gr-search__field {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 0 8px 0 14px;
    color: var(--gr-ink-soft);
}

.gr-search__field input {
    flex: 1;
    min-width: 0;
    height: 52px;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 16px;
    color: var(--gr-ink);
}

.gr-search__field input::placeholder {
    color: var(--gr-ink-soft);
}

.gr-search__field input::-webkit-search-cancel-button {
    display: none;
}

.gr-search__field:focus-within {
    box-shadow: inset 0 0 0 2px var(--gr-dusk);
    border-radius: 2px;
}

.gr-search__field .ps-cleartext {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--gr-paper);
    color: var(--gr-ink-soft);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
}

.gr-search__field.has-value .ps-cleartext {
    opacity: 1;
    pointer-events: auto;
}

.gr-search__filters {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid var(--gr-line);
    border-radius: 2px;
    background: #FFFFFF;
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    color: var(--gr-ink);
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}

.gr-search__filters:hover {
    border-color: #B8C6D8;
    background: var(--gr-paper);
}

.gr-search__badge {
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--gr-amber);
    color: var(--gr-night);
    font-size: 12px;
    font-weight: 700;
}

.gr-search__go {
    min-height: 52px;
    border-radius: 2px;
}

.gr-search__filters:focus-visible,
.gr-search__field .ps-cleartext:focus-visible {
    outline: 2px solid var(--gr-dusk);
    outline-offset: 2px;
}

/* ---------- Herramientas: operación, conteo y orden ---------- */
.gr-plist {
    padding-block: 28px clamp(64px, 8vw, 112px);
}

.gr-ptools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 28px;
}

.gr-ptabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: #FFFFFF;
    border: 1px solid var(--gr-line);
    border-radius: 4px;
}

.gr-ptab {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 2px;
    font-weight: 600;
    font-size: 15px;
    color: var(--gr-ink-soft);
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.gr-ptab:hover {
    color: var(--gr-ink);
    background: var(--gr-paper);
}

.gr-ptab[aria-current="page"] {
    background: var(--gr-navy);
    color: var(--gr-window);
}

.gr-ptab:focus-visible {
    outline: 2px solid var(--gr-dusk);
    outline-offset: 2px;
}

.gr-ptools__right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}

.gr-ptools__count {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--gr-ink);
    font-variant-numeric: tabular-nums;
}

.gr-ptools__clear {
    font-size: 15px;
    font-weight: 600;
    color: var(--gr-dusk);
}

.gr-sort select {
    min-height: 44px;
    padding: 0 40px 0 14px;
    border: 1px solid var(--gr-line);
    border-radius: 2px;
    background: #FFFFFF url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none"><path d="M6 9l6 6 6-6" stroke="%234F6B8B" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat right 14px center;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--gr-ink);
    appearance: none;
    cursor: pointer;
}

.gr-sort select:focus-visible {
    outline: 2px solid var(--gr-dusk);
    outline-offset: 2px;
}

.gr-plist__alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid #F0C9C4;
    border-radius: 2px;
    background: #FDF2F0;
    color: #8A2A1E;
    font-size: 15px;
}

.gr-plist__alert ul {
    margin: 0;
    padding-left: 18px;
}

/* ---------- Grilla y card ---------- */
.gr-plist__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 28px);
}

.gr-pcard {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid var(--gr-line);
    border-radius: 4px;
    cursor: pointer;
    transition: box-shadow .3s ease, transform .3s var(--gr-ease-out);
}

.gr-pcard:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(15, 42, 77, .12);
}

.gr-pcard__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(180deg, #E9F0F8 0%, #DCE6F2 100%);
}

.gr-pcard__deck {
    position: absolute;
    inset: 16px 10px;
}

.gr-pcard__deck img {
    position: absolute;
    top: 0;
    left: 50%;
    width: 66%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 10px 24px rgba(8, 24, 46, .22);
    transform: translateX(-50%) scale(.7);
    opacity: 0;
    transition: transform .5s var(--gr-ease-out), opacity .4s ease, filter .4s ease;
}

.gr-pcard__deck img[data-pos="center"] {
    z-index: 3;
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

.gr-pcard__deck img[data-pos="left"],
.gr-pcard__deck img[data-pos="right"] {
    z-index: 2;
    opacity: 1;
    filter: brightness(.82) saturate(.9);
}

.gr-pcard__deck img[data-pos="left"] {
    transform: translateX(-84%) scale(.82);
}

.gr-pcard__deck img[data-pos="right"] {
    transform: translateX(-16%) scale(.82);
}

/* Una sola foto: ocupa toda la caja */
.gr-pcard__deck--single {
    inset: 0;
}

.gr-pcard__deck--single img {
    left: 0;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
}

.gr-pcard__nophoto {
    display: grid;
    place-items: center;
    height: 100%;
    font-size: 15px;
    color: var(--gr-ink-soft);
}

.gr-pcard__badge {
    position: absolute;
    z-index: 4;
    top: 12px;
    left: 12px;
    padding: 7px 11px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .95);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    color: var(--gr-ink);
}

.gr-pcard__nav {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--gr-ink);
    box-shadow: 0 4px 14px rgba(8, 24, 46, .18);
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
}

.gr-pcard__nav--prev { left: 10px; z-index: 4; }
.gr-pcard__nav--next { right: 10px; z-index: 4; }

.gr-pcard:hover .gr-pcard__nav,
.gr-pcard__nav:focus-visible {
    opacity: 1;
}

.gr-pcard__nav:focus-visible {
    outline: 2px solid var(--gr-dusk);
    outline-offset: 2px;
}

.gr-pcard__count {
    position: absolute;
    z-index: 4;
    right: 12px;
    bottom: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(8, 24, 46, .7);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.gr-pcard__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px 20px;
}

.gr-pcard__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    margin: 0;
}

.gr-pcard__price strong {
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: 26px;
    line-height: 1.1;
    letter-spacing: -.015em;
    color: var(--gr-ink);
    font-variant-numeric: lining-nums tabular-nums;
}

.gr-pcard__price .gr-pcard__ask {
    font-size: 21px;
}

.gr-pcard__from,
.gr-pcard__per,
.gr-pcard__alt {
    font-size: 14px;
    font-weight: 500;
    color: var(--gr-ink-soft);
}

.gr-pcard__title {
    margin: 0;
    font-family: var(--gr-font);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gr-pcard__title a {
    color: var(--gr-ink);
    text-decoration: none;
}

.gr-pcard__title a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gr-pcard__title a:focus-visible {
    outline: 2px solid var(--gr-dusk);
    outline-offset: 2px;
}

.gr-pcard__loc {
    margin: 0;
    font-size: 14px;
    color: var(--gr-ink-soft);
}

.gr-pcard__metrics {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 0;
    padding: 0;
}

.gr-pcard__metrics li {
    padding: 6px 10px;
    border-radius: 2px;
    background: var(--gr-paper);
    font-size: 13px;
    color: var(--gr-ink-soft);
}

.gr-pcard__metrics strong {
    font-weight: 700;
    color: var(--gr-ink);
}

.gr-pcard__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
}

.gr-pcard__btn {
    justify-content: center;
    min-height: 46px;
    padding-inline: 12px;
    font-size: 15px;
}

.gr-pcard__wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border-radius: 2px;
    background: #0F7A40;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background-color .2s ease;
}

.gr-pcard__wa:hover {
    background: #0B6534;
}

.gr-pcard__wa:focus-visible {
    outline: 2px solid var(--gr-dusk);
    outline-offset: 2px;
}

.gr-pcard__wa img {
    width: 20px;
    height: 20px;
}

/* ---------- Vacío y paginación ---------- */
.gr-plist__empty {
    padding: clamp(40px, 6vw, 72px) 24px;
    border: 1px dashed #C4D0DF;
    border-radius: 4px;
    background: #FFFFFF;
    text-align: center;
}

.gr-plist__empty h2 {
    margin: 0 0 10px;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(24px, 2.4vw, 32px);
    color: var(--gr-ink);
}

.gr-plist__empty p {
    max-width: 46ch;
    margin: 0 auto 24px;
    color: var(--gr-ink-soft);
}

.gr-plist__empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.gr-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: clamp(40px, 5vw, 64px);
}

.gr-pager__link {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    border: 1px solid var(--gr-line);
    border-radius: 2px;
    background: #FFFFFF;
    font-weight: 600;
    color: var(--gr-ink);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
    transition: background-color .2s ease, border-color .2s ease;
}

.gr-pager__link:hover {
    border-color: #B8C6D8;
}

.gr-pager__link.is-active {
    background: var(--gr-navy);
    border-color: var(--gr-navy);
    color: var(--gr-window);
}

.gr-pager__link.is-disabled {
    opacity: .4;
    pointer-events: none;
}

.gr-pager__link:focus-visible {
    outline: 2px solid var(--gr-dusk);
    outline-offset: 2px;
}

/* ---------- Diálogo de filtros ---------- */
#ps-dialog {
    width: min(100% - 32px, 720px);
    padding: 0;
    border: 0;
    border-radius: 4px;
    box-shadow: 0 30px 80px rgba(8, 24, 46, .35);
    font-family: var(--gr-font);
}

#ps-dialog::backdrop {
    background: rgba(8, 24, 46, .55);
}

#ps-dialog .ps-dialog-card {
    padding: 24px;
}

#ps-dialog .ps-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

#ps-dialog .ps-dialog-head h3 {
    margin: 0;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: 26px;
    color: var(--gr-ink);
}

#ps-dialog .ps-close {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--gr-paper);
    font-size: 24px;
    line-height: 1;
    color: var(--gr-ink);
    cursor: pointer;
}

#ps-dialog .ps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

#ps-dialog .ps-field {
    display: grid;
    gap: 6px;
    margin: 0;
}

#ps-dialog .ps-field > span {
    font-size: 14px;
    font-weight: 600;
    color: var(--gr-ink);
}

#ps-dialog .ps-field input {
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--gr-line);
    border-radius: 2px;
    font: inherit;
    font-size: 15px;
    color: var(--gr-ink);
}

#ps-dialog .ps-field input:focus {
    outline: 2px solid var(--gr-dusk);
    outline-offset: 0;
    border-color: transparent;
}

#ps-dialog .ps-col-2 {
    grid-column: 1 / -1;
}

#ps-dialog .ps-dialog-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--gr-line);
}

#ps-dialog .ps-spacer {
    flex: 1;
}

#ps-dialog .ps-link {
    min-height: 44px;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    color: var(--gr-dusk);
    cursor: pointer;
}

#ps-dialog .ps-apply {
    min-height: 48px;
    padding: 0 28px;
    border: 0;
    border-radius: 2px;
    background: var(--gr-amber);
    font: inherit;
    font-weight: 700;
    color: var(--gr-night);
    cursor: pointer;
}

#ps-dialog .ps-apply:hover {
    background: var(--gr-amber-press);
}

/* ---------- Listado en tablet y móvil ---------- */
@media (max-width: 1100px) {
    .gr-plist__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .gr-phead__intro {
        grid-template-columns: 1fr;
    }

    .gr-search {
        flex-wrap: wrap;
    }

    .gr-search__field {
        flex: 1 1 100%;
    }

    .gr-search__filters,
    .gr-search__go {
        flex: 1 1 0;
        justify-content: center;
    }

    .gr-ptools {
        align-items: stretch;
    }

    .gr-ptabs {
        width: 100%;
    }

    .gr-ptab {
        flex: 1;
        justify-content: center;
        padding: 0 8px;
    }

    .gr-ptools__right {
        width: 100%;
        justify-content: space-between;
    }

    .gr-plist__grid {
        grid-template-columns: 1fr;
    }

    .gr-pcard__nav {
        opacity: 1;
    }

    #ps-dialog .ps-grid {
        grid-template-columns: 1fr;
    }
}

@media (hover: none) {
    .gr-pcard__nav {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gr-pcard,
    .gr-pcard__nav,
    .gr-pcard__deck img {
        transition: none;
    }

    .gr-pcard:hover {
        transform: none;
    }
}

/* Las secciones a sangre (100vw) no deben generar scroll horizontal */
body {
    overflow-x: clip;
}

/* ==========================================================
   Card de propiedad horizontal (una por fila): foto en mazo a la
   izquierda y datos a la derecha
   ========================================================== */
.gr-plist__grid {
    grid-template-columns: 1fr;
    gap: 24px;
}

.gr-pcard {
    flex-direction: row;
    border-radius: 18px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F9FBFD 100%);
    box-shadow: 0 2px 4px rgba(15, 42, 77, .04), 0 14px 34px rgba(15, 42, 77, .07);
}

.gr-pcard:hover {
    box-shadow: 0 2px 4px rgba(15, 42, 77, .05), 0 22px 48px rgba(15, 42, 77, .13);
}

.gr-pcard__media {
    flex: 0 0 52%;
    aspect-ratio: auto;
    min-height: 360px;
    background: transparent;
}

.gr-pcard__deck {
    inset: 24px 12px 24px 20px;
}

.gr-pcard__deck img {
    width: 72%;
    border-radius: 14px;
    box-shadow: 0 16px 34px rgba(8, 24, 46, .24);
}

.gr-pcard__deck img[data-pos="left"] {
    transform: translateX(-72%) scale(.86);
}

.gr-pcard__deck img[data-pos="right"] {
    transform: translateX(-28%) scale(.86);
}

.gr-pcard__deck--single img {
    left: 0;
    width: 100%;
}

.gr-pcard__nav {
    opacity: 1;
    background: rgba(255, 255, 255, .95);
}

.gr-pcard__nav--prev { left: 18px; }
.gr-pcard__nav--next { right: 18px; }

.gr-pcard__count {
    right: 22px;
    bottom: 34px;
}

.gr-pcard__body {
    gap: 10px;
    padding: 30px 32px 28px 12px;
}

.gr-pcard__title {
    font-family: var(--gr-display);
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -.015em;
}

.gr-pcard__loc {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

.gr-pcard__loc svg {
    flex: none;
    color: var(--gr-dusk);
}

.gr-pcard__price {
    margin-top: 4px;
}

.gr-pcard__price strong {
    font-size: clamp(26px, 2.4vw, 32px);
}

.gr-pcard__chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 0;
    padding: 0;
}

.gr-pcard__chip {
    padding: 7px 13px;
    border: 1px solid var(--gr-line);
    border-radius: 999px;
    background: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    color: var(--gr-ink-soft);
}

.gr-pcard__chip--op {
    border-color: #CFE0F5;
    background: #EAF2FC;
    color: var(--gr-dusk);
}

.gr-pcard__metrics {
    gap: 8px 22px;
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--gr-line);
}

.gr-pcard__metrics li {
    position: relative;
    padding: 0;
    background: none;
    font-size: 15px;
}


.gr-pcard__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
}

.gr-pcard__btn,
.gr-pcard__wa {
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
}

@media (max-width: 900px) {
    .gr-pcard {
        flex-direction: column;
    }

    .gr-pcard__media {
        flex: none;
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .gr-pcard__deck {
        inset: 16px 10px;
    }

    .gr-pcard__nav--prev { left: 10px; }
    .gr-pcard__nav--next { right: 10px; }

    .gr-pcard__count {
        right: 14px;
        bottom: 24px;
    }

    .gr-pcard__body {
        padding: 6px 20px 20px;
    }

    .gr-pcard__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .gr-pcard__btn,
    .gr-pcard__wa {
        padding: 0 12px;
    }
}

/* ==========================================================
   Ficha de propiedad
   ========================================================== */
.gr-detail {
    padding-block: 20px clamp(64px, 8vw, 112px);
    background: var(--gr-paper);
    font-family: var(--gr-font);
    color: var(--gr-ink);
}

.gr-detail__crumbs {
    margin-bottom: 16px;
}

.gr-detail__crumbs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    font-weight: 600;
    font-size: 15px;
    color: var(--gr-ink-soft);
    text-decoration: none;
}

.gr-detail__crumbs a:hover {
    color: var(--gr-ink);
}

/* ---------- Galería ---------- */
.gr-gal {
    margin-bottom: clamp(28px, 4vw, 44px);
}

.gr-gal__main {
    position: relative;
    aspect-ratio: 16 / 8;
    max-height: min(600px, 68vh);
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: #DCE6F2;
}

.gr-gal__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gr-gal__main img.is-in {
    animation: gr-gal-in .45s var(--gr-ease-out);
}

@keyframes gr-gal-in {
    from { opacity: .35; }
    to { opacity: 1; }
}

.gr-gal__empty {
    display: grid;
    place-items: center;
    height: 100%;
    color: var(--gr-ink-soft);
}

.gr-gal__nav {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-top: -26px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: var(--gr-ink);
    box-shadow: 0 6px 18px rgba(8, 24, 46, .2);
    cursor: pointer;
    transition: transform .2s var(--gr-ease-out);
}

.gr-gal__nav:hover {
    transform: scale(1.06);
}

.gr-gal__nav--prev { left: 18px; }
.gr-gal__nav--next { right: 18px; }

.gr-gal__nav:focus-visible,
.gr-gal__thumb:focus-visible {
    outline: 3px solid var(--gr-amber);
    outline-offset: 2px;
}

.gr-gal__count {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(8, 24, 46, .72);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.gr-gal__thumbs {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 12px 0 0;
    padding: 4px 4px 8px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.gr-gal__thumb {
    display: block;
    width: 120px;
    height: 80px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #DCE6F2;
    cursor: pointer;
    opacity: .6;
    transition: opacity .2s ease, box-shadow .2s ease;
}

.gr-gal__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gr-gal__thumb:hover {
    opacity: 1;
}

.gr-gal__thumb[aria-current="true"] {
    opacity: 1;
    box-shadow: 0 0 0 3px var(--gr-navy);
}

/* ---------- Contenido y tarjeta ---------- */
.gr-detail__grid {
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(300px, 4fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

.gr-detail__chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
    padding: 0;
}

.gr-detail__title {
    margin: 0;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(30px, 3.6vw, 48px);
    line-height: 1.05;
    letter-spacing: -.025em;
    color: var(--gr-ink);
    text-wrap: balance;
}

.gr-detail__loc {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 12px 0 0;
    font-size: 17px;
    color: var(--gr-ink-soft);
}

.gr-detail__loc svg {
    flex: none;
    color: var(--gr-dusk);
}

.gr-detail__facts {
    display: flex;
    flex-wrap: wrap;
    margin: 28px 0 0;
    padding: 20px 0;
    border-block: 1px solid var(--gr-line);
}

.gr-detail__facts > div {
    display: flex;
    flex-direction: column-reverse;
    gap: 4px;
    padding: 0 clamp(18px, 2.4vw, 32px);
}

.gr-detail__facts > div:first-child {
    padding-left: 0;
}

.gr-detail__facts > div + div {
    border-left: 1px solid var(--gr-line);
}

.gr-detail__facts dt {
    font-size: 14px;
    color: var(--gr-ink-soft);
}

.gr-detail__facts dd {
    margin: 0;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.1;
    color: var(--gr-ink);
    font-variant-numeric: lining-nums tabular-nums;
}

.gr-detail__block {
    margin-top: clamp(32px, 4vw, 48px);
}

.gr-detail__h2 {
    margin: 0 0 16px;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(22px, 2vw, 28px);
    letter-spacing: -.015em;
    color: var(--gr-ink);
}

.gr-detail__desc {
    max-width: 70ch;
    font-size: 17px;
    line-height: 1.7;
    color: #2D4563;
    overflow-wrap: break-word;
}

.gr-detail__desc p {
    margin: 0 0 1em;
}

/* Tokko manda párrafos vacíos o con un solo <br>: no deben abrir huecos */
.gr-detail__desc p:empty,
.gr-detail__desc p:has(> br:only-child) {
    display: none;
}

.gr-detail__desc.is-clamped {
    position: relative;
    max-height: 420px;
    overflow: hidden;
}

.gr-detail__desc.is-clamped::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(244, 246, 249, 0) 0%, var(--gr-paper) 85%);
}

.gr-detail__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    margin-top: 12px;
    padding: 0 20px;
    border: 1px solid var(--gr-navy);
    border-radius: 999px;
    background: #FFFFFF;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    color: var(--gr-navy);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.gr-detail__more:hover {
    background: var(--gr-navy);
    color: var(--gr-window);
}

.gr-detail__more svg {
    transition: transform .25s var(--gr-ease-out);
}

.gr-detail__more[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.gr-detail__desc.is-clamped {
    cursor: pointer;
}

.gr-detail__more:focus-visible {
    outline: 2px solid var(--gr-dusk);
    outline-offset: 2px;
}

.gr-detail__desc ul {
    padding-left: 1.2em;
}

.gr-detail__spec {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 32px;
    margin: 0;
}

.gr-detail__spec > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--gr-line);
    font-size: 15px;
}

.gr-detail__spec dt {
    color: var(--gr-ink-soft);
}

.gr-detail__spec dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
    color: var(--gr-ink);
}

.gr-detail__groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 32px;
}

.gr-detail__group h3 {
    margin: 0 0 10px;
    font-family: var(--gr-font);
    font-size: 15px;
    font-weight: 700;
    color: var(--gr-ink);
}

.gr-detail__group ul {
    list-style: none;
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.gr-detail__group li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 15px;
    line-height: 1.4;
    color: #2D4563;
}

.gr-detail__group li svg {
    flex: none;
    margin-top: 2px;
    color: #0F7A40;
}

.gr-detail__map {
    position: relative;
    height: 380px;
    overflow: hidden;
    border-radius: 18px;
    background: #DCE6F2;
}

.gr-detail__map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.gr-detail__map.is-live iframe {
    pointer-events: auto;
}

.gr-detail__map-hint {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    font-size: 13px;
    font-weight: 600;
    color: var(--gr-ink);
    box-shadow: 0 4px 14px rgba(8, 24, 46, .14);
    pointer-events: none;
}

.gr-detail__map.is-live .gr-detail__map-hint {
    display: none;
}

.gr-detail__aside {
    position: sticky;
    top: calc(var(--header-h, 72px) + 24px);
}

.gr-contact {
    display: grid;
    gap: 12px;
    padding: 28px;
    border-radius: 18px;
    background: #FFFFFF;
    box-shadow: 0 2px 4px rgba(15, 42, 77, .04), 0 18px 44px rgba(15, 42, 77, .10);
}

.gr-contact__op {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--gr-dusk);
}

.gr-contact__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin: 0;
}

.gr-contact__price strong {
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(32px, 3vw, 42px);
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--gr-ink);
    font-variant-numeric: lining-nums tabular-nums;
}

.gr-contact__from,
.gr-contact__per {
    font-size: 16px;
    color: var(--gr-ink-soft);
}

.gr-contact__sum {
    margin: 0 0 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gr-line);
    font-size: 15px;
    color: var(--gr-ink-soft);
}

.gr-contact__wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 20px;
    border-radius: 12px;
    background: #0F7A40;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: background-color .2s ease;
}

.gr-contact__wa:hover {
    background: #0B6534;
    color: #FFFFFF;
}

.gr-contact__wa:focus-visible {
    outline: 3px solid var(--gr-amber);
    outline-offset: 2px;
}

.gr-contact__visit {
    justify-content: center;
    min-height: 52px;
    border-radius: 12px;
}

.gr-contact__note {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    color: var(--gr-ink-soft);
}

.gr-detail__bar {
    display: none;
}

@media (max-width: 980px) {
    .gr-detail__grid {
        grid-template-columns: 1fr;
    }

    .gr-detail__aside {
        position: static;
    }
}

@media (max-width: 767px) {
    .gr-detail {
        padding-bottom: 120px;
    }

    .gr-gal__main {
        aspect-ratio: 4 / 3;
        border-radius: 14px;
    }

    .gr-gal__nav {
        width: 44px;
        height: 44px;
        margin-top: -22px;
    }

    .gr-gal__nav--prev { left: 10px; }
    .gr-gal__nav--next { right: 10px; }

    .gr-gal__thumb {
        width: 88px;
        height: 62px;
    }

    .gr-detail__facts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 0;
    }

    .gr-detail__facts > div,
    .gr-detail__facts > div:first-child {
        padding: 0 12px 0 0;
    }

    .gr-detail__facts > div + div {
        border-left: 0;
    }

    .gr-detail__spec,
    .gr-detail__groups {
        grid-template-columns: 1fr;
    }

    .gr-detail__map {
        height: 300px;
    }

    .gr-detail__bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: #FFFFFF;
        box-shadow: 0 -8px 24px rgba(8, 24, 46, .12);
    }

    .gr-detail__bar p {
        margin: 0;
        min-width: 0;
    }

    .gr-detail__bar strong {
        font-family: var(--gr-display);
        font-weight: 500;
        font-size: 22px;
        color: var(--gr-ink);
    }

    .gr-detail__bar span {
        font-size: 14px;
        color: var(--gr-ink-soft);
    }

    .gr-detail__bar .gr-contact__wa {
        min-height: 48px;
        flex: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gr-gal__main img.is-in {
        animation: none;
    }

    .gr-gal__nav {
        transition: none;
    }
}

/* ---------- Ficha: fotos en mazo + datos al lado ---------- */
.gr-dtop {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(24px, 3.5vw, 48px);
    align-items: center;
}

.gr-dgal {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(180deg, #E9F0F8 0%, #DCE6F2 100%);
}

.gr-dgal .gr-pcard__deck {
    inset: 28px 16px;
}

.gr-dgal .gr-pcard__deck--single {
    inset: 0;
}

.gr-dgal .gr-pcard__nav {
    width: 50px;
    height: 50px;
    margin-top: -25px;
}

.gr-dgal .gr-pcard__nav--prev { left: 20px; }
.gr-dgal .gr-pcard__nav--next { right: 20px; }

.gr-dgal .gr-pcard__count {
    right: 24px;
    bottom: 40px;
    font-size: 13px;
}

.gr-dtop__info {
    display: grid;
    gap: 16px;
    align-content: center;
}

.gr-dtop__info .gr-detail__chips {
    margin: 0;
}

.gr-dtop__info .gr-detail__title {
    font-size: clamp(28px, 2.8vw, 40px);
}

.gr-dloc {
    display: grid;
    gap: 12px;
}

.gr-dloc .gr-detail__loc {
    align-items: flex-start;
    margin: 0;
    font-size: 16px;
}

.gr-dloc .gr-detail__loc svg {
    margin-top: 3px;
}

.gr-dloc__map {
    position: relative;
    display: block;
    height: 150px;
    overflow: hidden;
    border-radius: 14px;
    background: #DCE6F2;
    box-shadow: inset 0 0 0 1px var(--gr-line);
}

.gr-dloc__map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.gr-dloc__open {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #FFFFFF;
    box-shadow: 0 4px 14px rgba(8, 24, 46, .16);
    font-size: 13px;
    font-weight: 700;
    color: var(--gr-ink);
    transition: background-color .2s ease, color .2s ease;
}

.gr-dloc__map:hover .gr-dloc__open {
    background: var(--gr-navy);
    color: var(--gr-window);
}

.gr-dloc__map:focus-visible {
    outline: 3px solid var(--gr-dusk);
    outline-offset: 3px;
}

.gr-dprice {
    display: grid;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--gr-line);
}

.gr-dprice__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.gr-dprice__actions .gr-contact__wa,
.gr-dprice__actions .gr-contact__visit {
    min-height: 52px;
    padding: 0 14px;
    font-size: 15px;
}

.gr-detail .gr-detail__facts {
    margin-top: clamp(28px, 4vw, 44px);
}

.gr-dbody {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
}

.gr-dbody__side .gr-detail__spec,
.gr-dbody__side .gr-detail__groups {
    grid-template-columns: 1fr;
}

.gr-dbody__side .gr-detail__groups {
    gap: 20px;
}

@media (max-width: 980px) {
    .gr-dtop,
    .gr-dbody {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .gr-dgal {
        border-radius: 16px;
    }

    .gr-dgal .gr-pcard__deck {
        inset: 16px 10px;
    }

    .gr-dgal .gr-pcard__nav {
        width: 44px;
        height: 44px;
        margin-top: -22px;
    }

    .gr-dgal .gr-pcard__nav--prev { left: 10px; }
    .gr-dgal .gr-pcard__nav--next { right: 10px; }

    .gr-dgal .gr-pcard__count {
        right: 14px;
        bottom: 24px;
    }

    .gr-dprice__actions {
        grid-template-columns: 1fr;
    }
}

/* ---------- Ficha: pestañas Fotos / Mapa ---------- */
.gr-dmedia {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.gr-dmedia__tabs {
    display: inline-flex;
    justify-self: start;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--gr-line);
    border-radius: 12px;
    background: #FFFFFF;
}

.gr-dmedia__tabs button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    color: var(--gr-ink-soft);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.gr-dmedia__tabs button:hover {
    color: var(--gr-ink);
    background: var(--gr-paper);
}

.gr-dmedia__tabs button[aria-selected="true"] {
    background: var(--gr-navy);
    color: var(--gr-window);
}

.gr-dmedia__tabs button:focus-visible {
    outline: 2px solid var(--gr-dusk);
    outline-offset: 2px;
}

/* Fotos y mapa apilados en la misma celda: el mapa siempre tiene su tamaño real */
.gr-dgal,
.gr-dmap {
    grid-row: 2;
    grid-column: 1;
}

.gr-dmedia > .gr-dgal:only-child {
    grid-row: auto;
}

.gr-dmap.is-off,
.gr-dgal.is-off {
    visibility: hidden;
    pointer-events: none;
}

.gr-dmap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 20px;
    background: #DCE6F2;
}

.gr-dmap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.gr-dmap .gr-dloc__open {
    top: 16px;
    left: 16px;
    right: auto;
    bottom: auto;
    text-decoration: none;
}

.gr-dmap .gr-dloc__open:hover {
    background: var(--gr-navy);
    color: var(--gr-window);
}

.gr-dmap .gr-dloc__open:focus-visible {
    outline: 3px solid var(--gr-dusk);
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .gr-dmap {
        border-radius: 16px;
    }

    .gr-dmedia__tabs {
        justify-self: stretch;
    }

    .gr-dmedia__tabs button {
        flex: 1;
        justify-content: center;
    }
}

/* ---------- Ficha: sección de ubicación (mapa grande + tarjeta) ---------- */
.gr-dmapsec {
    position: relative;
    margin-top: clamp(28px, 4vw, 44px);
    border-radius: 22px;
    overflow: hidden;
    background: #DCE6F2;
    box-shadow: 0 2px 4px rgba(15, 42, 77, .04), 0 18px 44px rgba(15, 42, 77, .10);
}

.gr-dmapsec__map {
    position: relative;
    height: clamp(360px, 38vw, 460px);
}

.gr-dmapsec__map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
    filter: saturate(.85);
}

.gr-dmapsec__map.is-live iframe {
    pointer-events: auto;
}

.gr-dmapsec__hint {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(8, 24, 46, .78);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    pointer-events: none;
    transition: opacity .2s ease;
}

.gr-dmapsec__map.is-live .gr-dmapsec__hint {
    opacity: 0;
}

.gr-dmapsec__card {
    position: absolute;
    top: 24px;
    left: 24px;
    bottom: 24px;
    width: min(360px, 40%);
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 28px;
    border-radius: 18px;
    background: #FFFFFF;
    box-shadow: 0 16px 40px rgba(8, 24, 46, .18);
}

.gr-dmapsec__icon {
    display: inline-grid;
    place-items: center;
    flex: none;
    color: var(--gr-dusk);
}

.gr-dmapsec__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(24px, 2.2vw, 30px);
    letter-spacing: -.015em;
    color: var(--gr-ink);
}

.gr-dmapsec__addr {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--gr-ink);
}

.gr-dmapsec__zone {
    margin: 0;
    font-size: 15px;
    color: var(--gr-ink-soft);
}

.gr-dmapsec__actions {
    display: grid;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
}

.gr-dmapsec__go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    border-radius: 12px;
    background: var(--gr-navy);
    color: var(--gr-window);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background-color .2s ease;
}

.gr-dmapsec__go svg {
    color: var(--gr-amber);
    transition: transform .25s var(--gr-ease-out);
}

.gr-dmapsec__go:hover {
    background: var(--gr-dusk);
    color: var(--gr-window);
}

.gr-dmapsec__go:hover svg {
    transform: translateX(4px);
}

.gr-dmapsec__open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-weight: 600;
    font-size: 14px;
    color: var(--gr-dusk);
}

.gr-dmapsec__go:focus-visible,
.gr-dmapsec__open:focus-visible {
    outline: 3px solid var(--gr-amber);
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .gr-dmapsec {
        border-radius: 18px;
    }

    .gr-dmapsec__map {
        height: 280px;
    }

    .gr-dmapsec__card {
        position: static;
        width: auto;
        padding: 22px 20px;
        border-radius: 0;
        box-shadow: none;
    }

}

/* ==========================================================
   Páginas internas: portada reutilizable
   ========================================================== */
.gr-page {
    font-family: var(--gr-font);
    color: var(--gr-ink);
}

.gr-phero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: clamp(440px, 64vh, 640px);
    overflow: hidden;
    background: var(--gr-night);
    color: var(--gr-window);
}

.gr-phero__img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    animation: gr-settle 2.4s var(--gr-ease-out) both;
}

.gr-phero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(8, 24, 46, .25) 0%, rgba(8, 24, 46, .35) 40%, rgba(8, 24, 46, .9) 100%),
        linear-gradient(90deg, rgba(15, 42, 77, .55) 0%, rgba(15, 42, 77, 0) 70%);
}

.gr-phero__inner {
    padding-block: clamp(48px, 7vw, 88px);
}

.gr-phero__title {
    max-width: 16ch;
    margin: 0;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(40px, 6vw, 84px);
    line-height: .98;
    letter-spacing: -.035em;
    color: var(--gr-window);
    text-wrap: balance;
    animation: gr-rise .9s var(--gr-ease-out) .2s both;
}

.gr-phero__title em {
    font-style: normal;
    color: var(--gr-amber);
}

.gr-phero__lead {
    max-width: 52ch;
    margin: 22px 0 0;
    font-size: clamp(17px, 1.4vw, 19px);
    line-height: 1.55;
    color: var(--gr-sky);
    text-wrap: pretty;
    animation: gr-rise .9s var(--gr-ease-out) .35s both;
}

/* ==========================================================
   Filosofía
   ========================================================== */
.gr-fil-why {
    padding-block: clamp(72px, 9vw, 128px);
    background: #FFFFFF;
}

.gr-fil-why__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}

.gr-fil-why__intro {
    position: sticky;
    top: calc(var(--header-h, 72px) + 32px);
}

.gr-fil-why__lead {
    margin: 20px 0 0;
    font-size: clamp(18px, 1.5vw, 21px);
    line-height: 1.55;
    color: var(--gr-ink-soft);
}

.gr-fil-why__lead strong {
    color: var(--gr-ink);
}

.gr-fil-how {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--gr-line);
}

.gr-fil-how li {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
    padding-block: 28px;
    border-bottom: 1px solid var(--gr-line);
}

/* Beneficios (no son pasos): check en círculo en vez de número */
.gr-fil-how__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #EAF2FC;
    color: var(--gr-dusk);
}

.gr-fil-how__n {
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: 34px;
    line-height: 1;
    color: var(--gr-amber-ink);
    font-variant-numeric: tabular-nums;
}

.gr-fil-how h3 {
    margin: 0 0 8px;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(22px, 2vw, 28px);
    letter-spacing: -.015em;
    color: var(--gr-ink);
}

.gr-fil-how p {
    margin: 0;
    max-width: 52ch;
    font-size: 17px;
    line-height: 1.6;
    color: var(--gr-ink-soft);
}

.gr-fil-how strong {
    color: var(--gr-ink);
}

/* ---------- Conexiones ---------- */
.gr-fil-con {
    padding-block: clamp(72px, 9vw, 128px);
    background: var(--gr-paper);
}

.gr-fil-con__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 40px;
    margin-bottom: 36px;
}

.gr-fil-con__lead {
    max-width: 52ch;
    margin: 16px 0 0;
    font-size: 18px;
    line-height: 1.55;
    color: var(--gr-ink-soft);
}

.gr-fil-con__lead strong {
    color: var(--gr-ink);
}

.gr-fil-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 22px);
}

.gr-fil-tile {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 18px;
    color: var(--gr-window);
    text-decoration: none;
}

.gr-fil-tile img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.1s var(--gr-ease-out);
}

.gr-fil-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(8, 24, 46, 0) 40%, rgba(8, 24, 46, .88) 100%);
}

.gr-fil-tile:hover img {
    transform: scale(1.05);
}

.gr-fil-tile__body {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 4px 12px;
    width: 100%;
    padding: 24px;
}

.gr-fil-tile__k {
    grid-column: 1 / -1;
    font-size: 14px;
    font-weight: 600;
    color: var(--gr-sky);
}

.gr-fil-tile__t {
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.1;
    letter-spacing: -.015em;
}

.gr-fil-tile svg {
    color: var(--gr-amber);
    transition: transform .3s var(--gr-ease-out);
}

.gr-fil-tile:hover svg {
    transform: translateX(5px);
}

.gr-fil-tile:focus-visible {
    outline: 3px solid var(--gr-dusk);
    outline-offset: 4px;
}

/* ---------- Misión y visión ---------- */
.gr-fil-mv {
    padding-block: clamp(72px, 9vw, 128px);
    background: var(--gr-navy);
    color: var(--gr-window);
}

.gr-fil-mv__title {
    max-width: 18ch;
    margin: 0 0 clamp(36px, 5vw, 64px);
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.02;
    letter-spacing: -.03em;
    color: var(--gr-window);
    text-wrap: balance;
}

.gr-fil-mv__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(28px, 5vw, 80px);
}

.gr-fil-mv article {
    padding-top: 24px;
    border-top: 1px solid rgba(195, 216, 243, .25);
}

.gr-fil-mv h3 {
    margin: 0 0 14px;
    font-family: var(--gr-font);
    font-size: 15px;
    font-weight: 700;
    color: var(--gr-amber);
}

.gr-fil-mv__big {
    margin: 0 0 14px;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(21px, 1.9vw, 26px);
    line-height: 1.35;
    color: var(--gr-window);
}

.gr-fil-mv p:not(.gr-fil-mv__big) {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gr-sky);
}

/* ---------- Pilares ---------- */
.gr-fil-pil {
    padding-block: clamp(72px, 9vw, 128px);
    background: #FFFFFF;
}

.gr-fil-pil__head {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 16px 48px;
    align-items: end;
    margin-bottom: 44px;
}

.gr-fil-pil__head p {
    max-width: 50ch;
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
    color: var(--gr-ink-soft);
}

.gr-fil-pil__list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    border-top: 2px solid var(--gr-navy);
}

.gr-fil-pil__list li {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 24px 22px 8px 0;
}

.gr-fil-pil__list li + li {
    padding-left: 22px;
    border-left: 1px solid var(--gr-line);
}

.gr-fil-pil__n {
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: 15px;
    color: var(--gr-amber-ink);
    font-variant-numeric: tabular-nums;
}

.gr-fil-pil__list h3 {
    margin: 0;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(22px, 1.9vw, 27px);
    letter-spacing: -.015em;
    color: var(--gr-ink);
}

.gr-fil-pil__list p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--gr-ink-soft);
}

@media (max-width: 1100px) {
    .gr-fil-pil__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 28px;
    }

    .gr-fil-pil__list li:nth-child(4) {
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 767px) {
    .gr-fil-why__grid,
    .gr-fil-mv__grid,
    .gr-fil-pil__head {
        grid-template-columns: 1fr;
    }

    .gr-fil-why__intro {
        position: static;
    }

    .gr-fil-how li {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .gr-fil-how__n {
        font-size: 26px;
    }

    .gr-fil-tiles {
        grid-template-columns: 1fr;
    }

    .gr-fil-tile {
        aspect-ratio: 4 / 3;
    }

    .gr-fil-pil__list {
        grid-template-columns: 1fr;
        row-gap: 0;
    }

    .gr-fil-pil__list li,
    .gr-fil-pil__list li + li,
    .gr-fil-pil__list li:nth-child(4) {
        padding: 22px 0;
        border-left: 0;
        border-bottom: 1px solid var(--gr-line);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gr-phero__img,
    .gr-phero__title,
    .gr-phero__lead {
        animation: none;
    }

    .gr-fil-tile img,
    .gr-fil-tile svg {
        transition: none;
    }
}

/* ==========================================================
   Servicios
   ========================================================== */
.gr-srv {
    padding-block: clamp(72px, 9vw, 128px);
    background: #FFFFFF;
}

.gr-srv__title {
    margin-bottom: clamp(36px, 5vw, 64px);
}

.gr-srv__item {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(28px, 5vw, 80px);
    align-items: center;
}

.gr-srv__item + .gr-srv__item {
    margin-top: clamp(56px, 7vw, 104px);
}

.gr-srv__item--flip .gr-srv__media {
    order: 2;
}

.gr-srv__media {
    margin: 0;
    aspect-ratio: 4 / 5;
    max-height: 600px;
    overflow: hidden;
    border-radius: 20px;
    background: #DCE6F2;
}

.gr-srv__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gr-srv__n {
    display: block;
    margin-bottom: 14px;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: 16px;
    color: var(--gr-amber-ink);
    font-variant-numeric: tabular-nums;
}

.gr-srv__body h3 {
    margin: 0;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.05;
    letter-spacing: -.025em;
    color: var(--gr-ink);
    text-wrap: balance;
}

.gr-srv__lead {
    max-width: 44ch;
    margin: 16px 0 24px;
    font-size: 18px;
    line-height: 1.55;
    color: var(--gr-ink-soft);
}

.gr-srv__body ul {
    list-style: none;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--gr-line);
}

.gr-srv__body li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-block: 14px;
    border-bottom: 1px solid var(--gr-line);
    font-size: 16px;
    line-height: 1.5;
    color: var(--gr-ink);
}

.gr-srv__body li svg {
    flex: none;
    margin-top: 2px;
    color: #0F7A40;
}

/* ---------- Comparativa ---------- */
.gr-cmp {
    padding-block: clamp(72px, 9vw, 128px);
    background: var(--gr-paper);
}

.gr-cmp__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 40px;
    margin-bottom: 36px;
}

.gr-cmp__head p {
    max-width: 44ch;
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
    color: var(--gr-ink-soft);
}

.gr-cmp__scroll {
    overflow-x: auto;
    border-radius: 20px;
    background: #FFFFFF;
    box-shadow: 0 2px 4px rgba(15, 42, 77, .04), 0 18px 44px rgba(15, 42, 77, .08);
}

.gr-cmp__table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 15px;
}

.gr-cmp__table th,
.gr-cmp__table td {
    padding: 18px 22px;
    border-bottom: 1px solid var(--gr-line);
    text-align: center;
    vertical-align: middle;
}

.gr-cmp__table tbody tr:last-child th,
.gr-cmp__table tbody tr:last-child td {
    border-bottom: 0;
}

.gr-cmp__table thead th {
    padding-block: 22px;
    font-size: 15px;
    font-weight: 700;
    color: var(--gr-ink-soft);
}

.gr-cmp__table tbody th {
    width: 40%;
    text-align: left;
    font-weight: 600;
    line-height: 1.4;
    color: var(--gr-ink);
}

/* Columna destacada de Grupo Rentabilizarme */
.gr-cmp__us {
    background: var(--gr-navy);
    color: var(--gr-window);
}

.gr-cmp__table tbody .gr-cmp__us {
    border-bottom-color: rgba(195, 216, 243, .16);
}

.gr-cmp__table thead .gr-cmp__us {
    color: var(--gr-window);
}

.gr-cmp__table thead .gr-cmp__us img {
    display: block;
    width: 44px;
    height: auto;
    margin: 0 auto 8px;
}

.gr-cmp__yes {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--gr-window);
}

.gr-cmp__yes svg {
    color: var(--gr-amber);
}

.gr-cmp__v {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.gr-cmp__v--p {
    background: #FFF4DC;
    color: #8A5A00;
}

.gr-cmp__v--n {
    background: var(--gr-paper);
    color: var(--gr-ink-soft);
}

@media (max-width: 767px) {
    .gr-srv__item,
    .gr-srv__item--flip {
        grid-template-columns: 1fr;
    }

    .gr-srv__item--flip .gr-srv__media {
        order: 0;
    }

    .gr-srv__media {
        aspect-ratio: 4 / 3;
    }

    .gr-cmp__table {
        min-width: 600px;
    }

    /* En el celular la tabla se desliza; la columna de aspectos queda fija */
    .gr-cmp__table tbody th,
    .gr-cmp__table thead th:first-child {
        position: sticky;
        left: 0;
        z-index: 1;
        width: 170px;
        background: #FFFFFF;
        box-shadow: 1px 0 0 var(--gr-line);
        font-size: 14px;
    }

    .gr-cmp__table th,
    .gr-cmp__table td {
        padding: 14px;
    }
}

/* ==========================================================
   Campos de formulario (reutilizables)
   ========================================================== */
.gr-field {
    position: relative;
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 0;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
}

.gr-field > label,
.gr-field > legend {
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--gr-ink);
}

.gr-field > legend {
    margin-bottom: 6px;
}

.gr-field input:not([type="radio"]):not([type="checkbox"]),
.gr-field select,
.gr-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #CBD5E2;
    border-radius: 10px;
    background: #FFFFFF;
    font: inherit;
    font-size: 16px;
    color: var(--gr-ink);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.gr-field select {
    padding-right: 40px;
    appearance: none;
    background: #FFFFFF url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none"><path d="M6 9l6 6 6-6" stroke="%234F6B8B" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat right 14px center;
}

.gr-field input::placeholder,
.gr-field textarea::placeholder {
    color: var(--gr-ink-soft);
}

.gr-field input:focus,
.gr-field select:focus,
.gr-field textarea:focus {
    outline: none;
    border-color: var(--gr-dusk);
    box-shadow: 0 0 0 3px rgba(42, 91, 168, .18);
}

.gr-field input.input-validation-error,
.gr-field select.input-validation-error {
    border-color: #C0392B;
}

.gr-field__err {
    font-size: 13px;
    color: #B42318;
}

.gr-field__err:empty {
    display: none;
}

.gr-field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
}

.gr-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
}

.gr-chips input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gr-chips label {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid #CBD5E2;
    border-radius: 999px;
    background: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    color: var(--gr-ink-soft);
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.gr-chips label:hover {
    border-color: var(--gr-dusk);
    color: var(--gr-ink);
}

.gr-chips input:checked + label {
    border-color: var(--gr-navy);
    background: var(--gr-navy);
    color: var(--gr-window);
}

.gr-chips input:focus-visible + label {
    outline: 2px solid var(--gr-dusk);
    outline-offset: 2px;
}

/* ==========================================================
   Venta / Alquiler
   ========================================================== */
.gr-va-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(48px, 7vw, 96px);
    background: var(--gr-night);
    color: var(--gr-window);
}

.gr-va-hero__img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: gr-settle 2.4s var(--gr-ease-out) both;
}

.gr-va-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(8, 24, 46, .92) 0%, rgba(8, 24, 46, .78) 45%, rgba(15, 42, 77, .45) 100%),
        linear-gradient(180deg, rgba(42, 91, 168, .25), rgba(8, 24, 46, .35));
}

.gr-va-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.gr-va-hero__title {
    max-width: 14ch;
    margin: 0;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1;
    letter-spacing: -.03em;
    color: var(--gr-window);
    text-wrap: balance;
    animation: gr-rise .9s var(--gr-ease-out) .2s both;
}

.gr-va-hero__sub {
    margin: 22px 0 0;
    font-size: clamp(19px, 1.7vw, 23px);
    line-height: 1.4;
    color: var(--gr-window);
}

.gr-va-hero__sub strong {
    color: var(--gr-amber);
}

.gr-va-hero__note {
    max-width: 46ch;
    margin: 14px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gr-sky);
}

.gr-va-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 36px;
    margin: 36px 0 0;
    padding-top: 24px;
    border-top: 1px solid rgba(195, 216, 243, .25);
}

.gr-va-hero__facts div {
    display: flex;
    flex-direction: column-reverse;
    gap: 4px;
}

.gr-va-hero__facts dt {
    font-size: 14px;
    color: var(--gr-sky);
}

.gr-va-hero__facts dd {
    margin: 0;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: 34px;
    line-height: 1;
    color: var(--gr-amber);
    font-variant-numeric: lining-nums tabular-nums;
}

.gr-va-form {
    padding: clamp(24px, 3vw, 36px);
    border-radius: 20px;
    background: #FFFFFF;
    color: var(--gr-ink);
    box-shadow: 0 30px 70px rgba(8, 24, 46, .35);
    scroll-margin-top: calc(var(--header-h, 72px) + 16px);
}

.gr-va-form__title {
    margin: 0;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(24px, 2.2vw, 30px);
    letter-spacing: -.015em;
    color: var(--gr-ink);
}

.gr-va-form__sub {
    margin: 6px 0 22px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--gr-ink-soft);
}

.gr-va-form__ok {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #E7F6EE;
    font-size: 15px;
    line-height: 1.45;
    color: #0B5B30;
}

.gr-va-form__ok svg {
    flex: none;
}

.gr-va-form__error ul {
    margin: 0 0 14px;
    padding: 12px 16px 12px 32px;
    border-radius: 10px;
    background: #FDF2F0;
    font-size: 14px;
    color: #8A2A1E;
}

.gr-va-form__error.validation-summary-valid {
    display: none;
}

.gr-va-form__submit {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
    border-radius: 12px;
}

.gr-va-form__fine {
    margin: 12px 0 0;
    font-size: 13px;
    text-align: center;
    color: var(--gr-ink-soft);
}

/* ---------- Pasos ---------- */
.gr-va-steps {
    padding-block: clamp(72px, 9vw, 128px);
    background: #FFFFFF;
}

.gr-va-steps__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 40px;
    margin-bottom: 40px;
}

.gr-va-steps__head p {
    margin: 0;
    font-size: 18px;
    color: var(--gr-ink-soft);
}

.gr-va-steps__list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 28px);
    margin: 0;
    padding: 0;
}

.gr-va-steps__list li {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 28px;
    border-radius: 18px;
    background: var(--gr-paper);
}

.gr-va-steps__n {
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: 44px;
    line-height: 1;
    color: var(--gr-amber-ink);
    font-variant-numeric: tabular-nums;
}

.gr-va-steps__list h3 {
    margin: 8px 0 0;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(21px, 1.8vw, 25px);
    line-height: 1.15;
    letter-spacing: -.015em;
    color: var(--gr-ink);
}

.gr-va-steps__list p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gr-ink-soft);
}

.gr-va-steps__cta {
    margin-top: 36px;
}

/* ---------- Familias: dos columnas de fotos que se deslizan en sentidos opuestos ---------- */
.gr-va-fam {
    overflow: hidden;
    background: var(--gr-navy);
    color: var(--gr-window);
}

.gr-va-fam__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}

.gr-va-fam__copy {
    padding-block: clamp(64px, 8vw, 112px);
}

.gr-va-fam__num {
    margin: 0;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(80px, 11vw, 160px);
    line-height: .85;
    letter-spacing: -.04em;
    color: var(--gr-amber);
    font-variant-numeric: lining-nums tabular-nums;
}

.gr-va-fam__title {
    max-width: 14ch;
    margin: 14px 0 0;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(30px, 3.4vw, 46px);
    line-height: 1.05;
    letter-spacing: -.025em;
    color: var(--gr-window);
}

.gr-va-fam__lead {
    max-width: 40ch;
    margin: 18px 0 28px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--gr-sky);
}

.gr-va-fam__lead strong {
    color: var(--gr-window);
}

.gr-va-fam__wall {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    height: clamp(520px, 52vw, 640px);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}

.gr-va-fam__col {
    overflow: hidden;
}

.gr-va-fam__track {
    list-style: none;
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    animation: gr-fam-up 36s linear infinite;
}

.gr-va-fam__col--down .gr-va-fam__track {
    animation-name: gr-fam-down;
    animation-duration: 42s;
}

.gr-va-fam__track li {
    /* Las fotos de clientes son horizontales (4:3): se muestran completas */
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: #1B3A63;
}

.gr-va-fam__track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Recorre la mitad de la lista (la otra mitad es la copia) y vuelve sin saltos */
@keyframes gr-fam-up {
    from { transform: translateY(0); }
    to { transform: translateY(calc(-50% - 7px)); }
}

@keyframes gr-fam-down {
    from { transform: translateY(calc(-50% - 7px)); }
    to { transform: translateY(0); }
}

@media (max-width: 980px) {
    .gr-va-hero__grid,
    .gr-va-steps__list,
    .gr-va-fam__grid {
        grid-template-columns: 1fr;
    }

    .gr-va-fam__copy {
        padding-bottom: 0;
    }

    .gr-va-fam__wall {
        height: 460px;
        margin-bottom: 48px;
    }
}

@media (max-width: 480px) {
    .gr-field-row {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gr-va-hero__img,
    .gr-va-hero__title,
    .gr-va-fam__track {
        animation: none;
    }
}

/* ==========================================================
   Asóciate
   ========================================================== */
.gr-aso-hero {
    padding-block: clamp(48px, 6vw, 88px);
    background: var(--gr-navy);
    color: var(--gr-window);
}

.gr-aso-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}

.gr-aso-hero__title {
    max-width: 18ch;
    margin: 0;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(36px, 4.6vw, 64px);
    line-height: 1.02;
    letter-spacing: -.03em;
    color: var(--gr-window);
    text-wrap: balance;
    animation: gr-rise .9s var(--gr-ease-out) .15s both;
}

.gr-aso-hero__title em {
    font-style: normal;
    color: var(--gr-amber);
}

.gr-aso-hero__lead {
    max-width: 50ch;
    margin: 22px 0 0;
    font-size: clamp(17px, 1.4vw, 19px);
    line-height: 1.6;
    color: var(--gr-sky);
}

.gr-aso-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.gr-aso-hero__media {
    margin: 0;
    aspect-ratio: 4 / 5;
    max-height: 600px;
    overflow: hidden;
    border-radius: 22px;
    background: #1B3A63;
}

.gr-aso-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: gr-settle 2.4s var(--gr-ease-out) both;
}

/* ---------- Qué ofrecemos ---------- */
.gr-aso-val {
    padding-block: clamp(72px, 9vw, 128px);
    background: var(--gr-paper);
}

.gr-aso-val__title {
    margin-bottom: 36px;
}

.gr-aso-val__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
}

/* Cada tarjeta usa las filas de la grilla (subgrid) para que títulos, frases y listas queden alineados */
.gr-aso-card {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 12px;
    padding: clamp(26px, 2.6vw, 36px);
    border-radius: 20px;
    background: #FFFFFF;
    box-shadow: 0 2px 4px rgba(15, 42, 77, .04), 0 14px 34px rgba(15, 42, 77, .07);
    transition: transform .35s var(--gr-ease-out), box-shadow .35s ease;
}

.gr-aso-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 4px rgba(15, 42, 77, .05), 0 22px 48px rgba(15, 42, 77, .12);
}

.gr-aso-card__n {
    display: inline-grid;
    place-items: center;
    flex: none;
    color: var(--gr-dusk);
}

.gr-aso-card__n svg {
    width: 26px;
    height: 26px;
}

.gr-aso-card h3 {
    text-wrap: wrap !important;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(22px, 2vw, 27px);
    line-height: 1.15;
    letter-spacing: -.015em;
    color: var(--gr-ink);
}

.gr-aso-card__lead {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--gr-ink-soft);
}

.gr-aso-card ul {
    list-style: none;
    display: grid;
    align-content: start;
    margin: 4px 0 0;
    padding: 0;
    border-top: 1px solid var(--gr-line);
}

.gr-aso-card li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-block: 12px;
    border-bottom: 1px solid var(--gr-line);
    font-size: 15px;
    line-height: 1.45;
    color: var(--gr-ink);
}

.gr-aso-card li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.gr-aso-card li svg {
    flex: none;
    margin-top: 1px;
    color: #0F7A40;
}

@media (prefers-reduced-motion: reduce) {
    .gr-aso-card {
        transition: none;
    }

    .gr-aso-card:hover {
        transform: none;
    }
}

/* ---------- Postula ---------- */
.gr-aso-apply {
    padding-block: clamp(72px, 9vw, 128px);
    background: var(--gr-navy);
    color: var(--gr-window);
    scroll-margin-top: var(--header-h, 72px);
}

.gr-aso-apply__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}

.gr-aso-apply__title {
    margin: 0;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(40px, 5vw, 68px);
    line-height: 1;
    letter-spacing: -.03em;
    color: var(--gr-window);
}

.gr-aso-apply__lead p {
    max-width: 40ch;
    margin: 18px 0 24px;
    font-size: 18px;
    line-height: 1.55;
    color: var(--gr-sky);
}

.gr-aso-apply__lead ul {
    list-style: none;
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.gr-aso-apply__lead li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: var(--gr-window);
}

.gr-aso-apply__lead li svg {
    flex: none;
    color: var(--gr-amber);
}

.gr-field__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gr-ink);
}

.gr-drop {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 24px 16px;
    border: 1.5px dashed #B8C6D8;
    border-radius: 14px;
    background: var(--gr-paper);
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}

.gr-drop:hover,
.gr-drop.is-dragover {
    border-color: var(--gr-dusk);
    background: #EAF2FC;
}

.gr-drop:focus-visible {
    outline: 2px solid var(--gr-dusk);
    outline-offset: 2px;
}

.gr-drop__icon {
    color: var(--gr-dusk);
}

.gr-drop__text {
    font-size: 15px;
    color: var(--gr-ink);
}

.gr-drop__browse {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 700;
    color: var(--gr-dusk);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.gr-drop__meta {
    font-size: 13px;
    color: var(--gr-ink-soft);
}

.gr-drop__file {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 6px 6px 6px 14px;
    border-radius: 999px;
    background: var(--gr-navy);
    color: var(--gr-window);
    font-size: 14px;
    font-weight: 600;
}

.gr-drop__file.is-show {
    display: inline-flex;
}

.gr-drop__remove {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: var(--gr-window);
    cursor: pointer;
}

.gr-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 6px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--gr-ink);
    cursor: pointer;
}

.gr-check input {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--gr-navy);
}

.gr-aso-form .gr-field__err {
    display: block;
    margin-bottom: 8px;
}

.gr-aso-form .gr-field__err:empty,
.gr-aso-form .field-validation-valid {
    display: none;
}

@media (max-width: 980px) {
    .gr-aso-hero__grid,
    .gr-aso-val__grid,
    .gr-aso-apply__grid {
        grid-template-columns: 1fr;
    }

    .gr-aso-hero__media {
        aspect-ratio: 4 / 3;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gr-aso-hero__title,
    .gr-aso-hero__media img {
        animation: none;
    }
}

/* Ritmo de texto en todo el sitio: sin palabras sueltas al final de los párrafos */
main p,
main li,
.gr-foot p {
    text-wrap: pretty;
}

main h1,
main h2,
main h3 {
    text-wrap: balance;
}

/* ==========================================================
   Íconos de datos de propiedad (Helper/IconHelpers.cs)
   ========================================================== */
.gr-ic {
    flex: none;
    display: block;
}

/* Card: área, dormitorios, baños y cocheras con su ícono */
.gr-pcard__metrics {
    gap: 10px 20px;
}

.gr-pcard__metrics li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.gr-pcard__metrics .gr-ic {
    color: var(--gr-dusk);
}

/* Chip de tipo con ícono */
.gr-pcard__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gr-pcard__chip .gr-ic {
    color: var(--gr-ink-soft);
}

/* Ficha: datos clave con ícono junto al número */
.gr-detail__facts dd {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gr-detail__facts dd .gr-ic {
    color: var(--gr-dusk);
}

.gr-detail__facts dt {
    padding-left: 34px;
}

/* Ficha técnica: ícono junto al nombre del dato */
.gr-detail__spec dt {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gr-detail__spec dt .gr-ic {
    color: var(--gr-dusk);
}

/* Características con ícono propio (piscina, gimnasio, parrilla...) o check */
.gr-detail__group li {
    align-items: center;
}

.gr-detail__group li .gr-ic {
    margin-top: 0;
    color: var(--gr-dusk);
}

/* =====================================================================
   FILTROS DE PROPIEDADES (gr-fdlg)
   Escritorio: ventana centrada. Móvil: hoja que sube desde abajo.
   Encabezado y botones fijos; solo el contenido hace scroll (vertical).
   ===================================================================== */
html.gr-noscroll { overflow: hidden; }

.gr-fdlg {
    width: min(560px, calc(100vw - 32px));
    max-width: none;
    max-height: min(86dvh, 780px);
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: #fff;
    color: var(--gr-ink);
    box-shadow: 0 24px 64px rgba(8, 24, 46, .28);
    overflow: hidden;
}
.gr-fdlg[open] { display: flex; }
.gr-fdlg::backdrop { background: rgba(8, 24, 46, .55); backdrop-filter: blur(2px); }

.gr-fdlg__card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: inherit;
    min-width: 0;
}

.gr-fdlg__head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 20px 14px;
    border-bottom: 1px solid var(--gr-line);
}
.gr-fdlg__head h2 {
    margin: 0;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: 26px;
    line-height: 1.1;
    color: var(--gr-ink);
}
.gr-fdlg__grip { display: none; }
.gr-fdlg__close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--gr-paper);
    color: var(--gr-ink);
    cursor: pointer;
    transition: background .15s ease;
}
.gr-fdlg__close:hover { background: var(--gr-line); }

.gr-fdlg__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px 20px 8px;
}

/* Cada grupo (fieldset sin el min-width automático que causaba el scroll horizontal) */
.gr-fgroup {
    min-width: 0;
    margin: 0;
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid var(--gr-line);
}
.gr-fgroup:last-child { border-bottom: 0; }
.gr-fgroup > legend,
.gr-fgroup__label {
    float: left;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0 0 12px;
    font-weight: 700;
    font-size: 15px;
    color: var(--gr-ink);
}
.gr-fgroup > legend + *,
.gr-fgroup__label + * { clear: both; }
.gr-fgroup > legend .gr-ic { color: var(--gr-dusk); }

/* Botones segmentados (Operación, Moneda, 1+ 2+ 3+) */
.gr-seg {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 4px;
    padding: 4px;
    border-radius: 14px;
    background: var(--gr-paper);
}
.gr-seg__opt { position: relative; min-width: 0; }
.gr-seg__opt input,
.gr-fchip input {
    position: absolute;
    inset: 0;
    opacity: 0;
    margin: 0;
    cursor: pointer;
}
.gr-seg__opt span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 6px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 15px;
    color: var(--gr-ink-soft);
    text-align: center;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.gr-seg__opt:hover span { color: var(--gr-ink); }
.gr-seg__opt input:checked + span {
    background: #fff;
    color: var(--gr-navy);
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(15, 42, 77, .16);
}
.gr-seg__opt input:focus-visible + span,
.gr-fchip input:focus-visible + span {
    outline: 2px solid var(--gr-dusk);
    outline-offset: 2px;
}
.gr-seg--sm span { min-height: 40px; font-size: 14px; }

/* Chips de tipo de propiedad */
.gr-fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.gr-fchip { position: relative; }
.gr-fchip span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--gr-line);
    border-radius: 999px;
    background: #fff;
    font-weight: 500;
    font-size: 15px;
    color: var(--gr-ink);
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.gr-fchip span small {
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--gr-paper);
    font-size: 12px;
    font-weight: 600;
    color: var(--gr-ink-soft);
}
.gr-fchip:hover span { border-color: var(--gr-sky); }
.gr-fchip input:checked + span {
    background: var(--gr-navy);
    border-color: var(--gr-navy);
    color: #fff;
}
.gr-fchip input:checked + span small { background: rgba(255, 255, 255, .18); color: #fff; }

/* Select y campos numéricos */
.gr-fselect select {
    width: 100%;
    height: 48px;
    padding: 0 40px 0 14px;
    border: 1px solid var(--gr-line);
    border-radius: 12px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%234F6B8B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
    -webkit-appearance: none;
    appearance: none;
    font: inherit;
    font-size: 16px;
    color: var(--gr-ink);
    cursor: pointer;
}
.gr-fselect select:focus-visible,
.gr-finput:focus-within {
    outline: none;
    border-color: var(--gr-dusk);
    box-shadow: 0 0 0 3px rgba(42, 91, 168, .18);
}

.gr-frange {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}
.gr-seg + .gr-frange { margin-top: 12px; }
.gr-frange__sep { color: var(--gr-ink-soft); }
.gr-finput {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    height: 48px;
    padding: 0 12px;
    border: 1px solid var(--gr-line);
    border-radius: 12px;
    background: #fff;
    cursor: text;
}
.gr-finput input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 16px;
    color: var(--gr-ink);
    -moz-appearance: textfield;
}
.gr-finput input::-webkit-outer-spin-button,
.gr-finput input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gr-finput input::placeholder { color: var(--gr-ink-soft); }
.gr-finput__pre,
.gr-finput__suf { flex: none; font-weight: 600; font-size: 14px; color: var(--gr-ink-soft); }
.gr-fhint { margin: 8px 0 0; font-size: 13px; color: #B3261E; }

/* Pie fijo con las acciones */
.gr-fdlg__foot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--gr-line);
    background: #fff;
}
.gr-fdlg__clear {
    min-height: 48px;
    padding: 0 8px;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 700;
    font-size: 15px;
    color: var(--gr-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.gr-fdlg__apply { flex: 1 1 auto; min-height: 50px; justify-content: center; }
.gr-fdlg__apply:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Móvil: hoja inferior ---------- */
@media (max-width: 640px) {
    .gr-fdlg {
        position: fixed;
        inset: auto 0 0 0;
        width: 100%;
        max-height: 92dvh;
        margin: 0;
        border-radius: 22px 22px 0 0;
    }
    .gr-fdlg[open] { animation: gr-sheet-up .28s cubic-bezier(.2, .8, .2, 1); }
    .gr-fdlg__head { padding-top: 24px; }
    .gr-fdlg__grip {
        display: block;
        position: absolute;
        top: 9px;
        left: 50%;
        width: 40px;
        height: 4px;
        margin-left: -20px;
        border-radius: 999px;
        background: var(--gr-line);
    }
    .gr-fdlg__head h2 { font-size: 24px; }
}
@keyframes gr-sheet-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .gr-fdlg[open] { animation: none; }
}

/* =====================================================================
   MENÚ "ORDENAR POR" (reemplaza al select nativo del navegador)
   ===================================================================== */
.gr-sortmenu { position: relative; }

.gr-sortmenu__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--gr-line);
    border-radius: 12px;
    background: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--gr-ink);
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.gr-sortmenu__btn > svg:first-child { color: var(--gr-dusk); }
.gr-sortmenu__btn:hover { border-color: var(--gr-sky); }
.gr-sortmenu__btn:focus-visible {
    outline: none;
    border-color: var(--gr-dusk);
    box-shadow: 0 0 0 3px rgba(42, 91, 168, .18);
}
.gr-sortmenu__chev { color: var(--gr-ink-soft); transition: transform .2s ease; }
.gr-sortmenu.is-open .gr-sortmenu__btn { border-color: var(--gr-dusk); }
.gr-sortmenu.is-open .gr-sortmenu__chev { transform: rotate(180deg); }

.gr-sortmenu__list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    min-width: 230px;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid var(--gr-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(8, 24, 46, .16);
    transform-origin: top right;
    animation: gr-menu-in .16s ease-out;
}
.gr-sortmenu__list[hidden] { display: none; }
.gr-sortmenu.is-left .gr-sortmenu__list { right: auto; left: 0; transform-origin: top left; }
.gr-sortmenu__list:focus { outline: none; }

.gr-sortmenu__head {
    padding: 8px 12px 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gr-ink-soft);
}

.gr-sortmenu__opt {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--gr-ink);
    cursor: pointer;
    outline: none;
}
.gr-sortmenu__opt > svg:first-child { flex: none; color: var(--gr-ink-soft); }
.gr-sortmenu__opt span { flex: 1 1 auto; }
.gr-sortmenu__check { flex: none; color: var(--gr-dusk); visibility: hidden; }
.gr-sortmenu__opt:hover,
.gr-sortmenu__opt:focus-visible { background: var(--gr-paper); }
.gr-sortmenu__opt:focus-visible { box-shadow: inset 0 0 0 2px var(--gr-dusk); }
.gr-sortmenu__opt[aria-selected="true"] { font-weight: 700; color: var(--gr-navy); }
.gr-sortmenu__opt[aria-selected="true"] > svg:first-child { color: var(--gr-dusk); }
.gr-sortmenu__opt[aria-selected="true"] .gr-sortmenu__check { visibility: visible; }

@keyframes gr-menu-in {
    from { opacity: 0; transform: translateY(-4px) scale(.98); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .gr-sortmenu__list { animation: none; }
    .gr-sortmenu__chev { transition: none; }
}

/* Segundo precio (la otra moneda, tal como está en Tokko) en su propia línea */
.gr-pcard__price .gr-pcard__alt { flex-basis: 100%; margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--gr-ink-soft); font-variant-numeric: tabular-nums; }
.gr-dprice__alt { flex-basis: 100%; font-size: 16px; font-weight: 600; color: var(--gr-ink-soft); font-variant-numeric: tabular-nums; }
.gr-detail__bar .gr-detail__bar-alt { display: block; font-size: 13px; font-weight: 600; }
.gr-feat__alt { display: block; margin-top: -2px; font-size: 14px; font-weight: 600; color: var(--gr-ink-soft); font-variant-numeric: tabular-nums; }
.gr-feat__main .gr-feat__alt { margin-top: 6px; font-size: 16px; color: rgba(255, 255, 255, .82); }

/* =====================================================================
   MENÚ PRINCIPAL
   Escritorio: igual que antes (solo el nombre de cada sección).
   Celular: títulos en Gambetta con una línea de ayuda, accesos
   secundarios y WhatsApp con el número visible.
   ===================================================================== */
.nav__text { display: contents; }
.nav__desc,
.nav__arrow,
.nav__extra,
.header__wa-num { display: none; }

@media (max-width: 767px) {
    .header__nav {
        padding: 4px 20px calc(20px + env(safe-area-inset-bottom));
    }

    .header .nav__link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        min-height: 0;
        padding: 18px 2px;
        border-bottom: 1px solid var(--header-line);
        font-family: var(--gr-display);
        font-weight: 500;
        font-size: 30px;
        line-height: 1.1;
        letter-spacing: -.01em;
        color: #fff;
        text-decoration: none;
    }
    .nav__text {
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
    }
    .nav__desc {
        display: block;
        font-family: var(--gr-font);
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 0;
        line-height: 1.35;
        color: rgba(195, 216, 243, .72);
    }
    .nav__arrow {
        display: block;
        flex: none;
        color: rgba(195, 216, 243, .55);
        transition: transform .2s ease, color .2s ease;
    }
    .header .nav__link:hover .nav__arrow,
    .header .nav__link:focus-visible .nav__arrow { transform: translateX(3px); color: #fff; }

    /* Página actual: ámbar de la marca (en lugar del celeste) */
    .header .nav__link[aria-current="page"] { color: var(--gr-amber); font-weight: 500; }
    .header .nav__link[aria-current="page"] .nav__arrow { color: var(--gr-amber); }

    /* Accesos secundarios */
    .nav__extra { display: block; padding: 24px 0 20px; }
    .nav__kicker {
        margin: 0 0 12px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: rgba(195, 216, 243, .72);
    }
    .nav__quick {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .nav__quick a {
        display: flex;
        flex-direction: column;
        gap: 10px;
        min-height: 92px;
        padding: 14px;
        border: 1px solid var(--header-line);
        border-radius: 14px;
        background: rgba(255, 255, 255, .04);
        font-weight: 600;
        font-size: 15px;
        line-height: 1.25;
        color: #fff;
        text-decoration: none;
        transition: background .2s ease, border-color .2s ease;
    }
    .nav__quick a svg { color: var(--gr-amber); }
    .nav__quick a:hover,
    .nav__quick a:focus-visible { background: rgba(255, 255, 255, .08); border-color: rgba(195, 216, 243, .32); }
    .nav__quick a[aria-current="page"] { border-color: var(--gr-amber); }

    /* WhatsApp con el número visible */
    .header__wa { margin-top: auto; justify-content: flex-start; padding: 12px 18px; gap: 14px; }
    .header__wa-text { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
    .header__wa-num { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; opacity: .85; }

    /* Entrada escalonada al abrir */
    .header.is-open .nav__link,
    .header.is-open .nav__extra,
    .header.is-open .header__wa { animation: gr-nav-in .42s cubic-bezier(.2, .8, .2, 1) both; }
    .header.is-open .nav__link:nth-child(2) { animation-delay: .04s; }
    .header.is-open .nav__link:nth-child(3) { animation-delay: .08s; }
    .header.is-open .nav__link:nth-child(4) { animation-delay: .12s; }
    .header.is-open .nav__extra { animation-delay: .16s; }
    .header.is-open .header__wa { animation-delay: .2s; }
}
@keyframes gr-nav-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .header.is-open .nav__link,
    .header.is-open .nav__extra,
    .header.is-open .header__wa { animation: none; }
}

/* =====================================================================
   COMPARADOR
   ===================================================================== */

/* "Comparar" en la fila de acciones de la card: casilla + texto */
.gr-pcard__cmp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    margin-right: auto;
    padding: 0 6px 0 2px;
    border: 0;
    background: none;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--gr-ink-soft);
    cursor: pointer;
    transition: color .15s ease;
}
.gr-pcard__cmp-box {
    display: grid;
    place-items: center;
    flex: none;
    width: 22px;
    height: 22px;
    border: 2px solid #B8C4D3;
    border-radius: 6px;
    background: #fff;
    color: #fff;
    transition: background .15s ease, border-color .15s ease;
}
.gr-pcard__cmp-box svg { opacity: 0; transform: scale(.6); transition: opacity .15s ease, transform .15s ease; }
.gr-pcard__cmp:hover { color: var(--gr-ink); }
.gr-pcard__cmp:hover .gr-pcard__cmp-box { border-color: var(--gr-dusk); }
.gr-pcard__cmp:focus-visible { outline: 2px solid var(--gr-dusk); outline-offset: 2px; border-radius: 8px; }
.gr-pcard__cmp.is-on { color: var(--gr-navy); }
.gr-pcard__cmp.is-on .gr-pcard__cmp-box { border-color: var(--gr-navy); background: var(--gr-navy); }
.gr-pcard__cmp.is-on .gr-pcard__cmp-box svg { opacity: 1; transform: none; }
@media (max-width: 900px) {
    /* En celular va en su propia línea, arriba de los dos botones */
    .gr-pcard__cmp { grid-column: 1 / -1; justify-self: start; min-height: 44px; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .gr-pcard__cmp-box, .gr-pcard__cmp-box svg { transition: none; }
}

/* Barra flotante con las elegidas */
.gr-cmpbar {
    position: fixed;
    left: 50%;
    bottom: 16px;
    z-index: 950;
    width: min(880px, calc(100vw - 24px));
    transform: translate(-50%, calc(100% + 32px));
    border-radius: 18px;
    background: var(--gr-night);
    color: #fff;
    box-shadow: 0 18px 50px rgba(8, 24, 46, .35);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.gr-cmpbar.is-visible { transform: translate(-50%, 0); }
.gr-cmpbar.is-shake { animation: gr-cmp-shake .35s ease; }
.gr-cmpbar__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 12px 12px 14px;
}
.gr-cmpbar__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.gr-cmpbar__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    height: 52px;
    padding: 6px 30px 6px 6px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
}
.gr-cmpbar__item img,
.gr-cmpbar__ph {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255, 255, 255, .12);
}
.gr-cmpbar__name {
    min-width: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.25;
}
.gr-cmpbar__item button {
    position: absolute;
    top: 4px;
    right: 4px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    cursor: pointer;
}
.gr-cmpbar__item button:hover { background: rgba(255, 255, 255, .26); }
.gr-cmpbar__item--empty {
    justify-content: center;
    padding: 0;
    border: 1.5px dashed rgba(195, 216, 243, .35);
    background: transparent;
    color: rgba(195, 216, 243, .6);
    font-size: 20px;
}
.gr-cmpbar__side { display: flex; align-items: center; gap: 12px; flex: none; }
.gr-cmpbar__msg { margin: 0; max-width: 170px; font-size: 13px; line-height: 1.3; color: var(--gr-sky); }
.gr-cmpbar__msg:empty { display: none; }
.gr-cmpbar__clear {
    border: 0;
    background: none;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, .8);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.gr-cmpbar__go { min-height: 48px; white-space: nowrap; }
.gr-cmpbar__go.is-disabled { opacity: .5; cursor: not-allowed; }

/* El botón flotante de WhatsApp sube para no quedar tapado */
body.has-cmpbar .wh-fab { bottom: 112px; transition: bottom .3s ease; }

@keyframes gr-cmp-shake {
    0%, 100% { transform: translate(-50%, 0); }
    25% { transform: translate(calc(-50% - 6px), 0); }
    75% { transform: translate(calc(-50% + 6px), 0); }
}

@media (max-width: 640px) {
    .gr-cmpbar { bottom: 8px; border-radius: 16px; }
    .gr-cmpbar__inner { flex-direction: column; align-items: stretch; gap: 10px; padding: 10px; }
    .gr-cmpbar__item { height: 48px; padding-right: 26px; }
    .gr-cmpbar__item img, .gr-cmpbar__ph { width: 34px; height: 34px; }
    .gr-cmpbar__name { font-size: 11.5px; }
    .gr-cmpbar__side { justify-content: space-between; }
    .gr-cmpbar__msg { max-width: none; flex: 1; }
    .gr-cmpbar__go { flex: 1 1 auto; justify-content: center; }
    body.has-cmpbar .wh-fab { bottom: 150px; }
}
@media (prefers-reduced-motion: reduce) {
    .gr-cmpbar { transition: none; }
    .gr-cmpbar.is-shake { animation: none; }
}

/* ---------- Página /propiedades/comparar ---------- */
.gr-cmpp { padding: 28px 0 64px; }
.gr-cmpp__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--gr-dusk);
    text-decoration: none;
}
.gr-cmpp__head { margin: 16px 0 24px; }
.gr-cmpp__head h1 {
    margin: 0 0 8px;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.05;
    color: var(--gr-ink);
}
.gr-cmpp__head p { margin: 0; max-width: 60ch; font-size: 17px; color: var(--gr-ink-soft); }

.gr-cmpp__empty {
    max-width: 560px;
    padding: 32px;
    border: 1px solid var(--gr-line);
    border-radius: 20px;
    background: #fff;
}
.gr-cmpp__empty h2 { margin: 0 0 8px; font-family: var(--gr-display); font-weight: 500; font-size: 26px; color: var(--gr-ink); }
.gr-cmpp__empty p { margin: 0 0 20px; color: var(--gr-ink-soft); }

.gr-cmpp__scroll {
    overflow-x: auto;
    border: 1px solid var(--gr-line);
    border-radius: 20px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}
.gr-cmpp__scroll:focus-visible { outline: 2px solid var(--gr-dusk); outline-offset: 2px; }
.gr-cmpp__table {
    width: 100%;
    min-width: calc(150px + var(--cols) * 200px);
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    font-size: 15px;
    color: var(--gr-ink);
}
.gr-cmpp__table th,
.gr-cmpp__table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gr-line);
    text-align: left;
    vertical-align: top;
}
.gr-cmpp__table tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 150px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: var(--gr-ink-soft);
}
.gr-cmpp__table tbody th .gr-ic { display: inline-block; margin-right: 8px; vertical-align: -3px; color: var(--gr-dusk); }
.gr-cmpp__corner { position: sticky; left: 0; z-index: 2; width: 150px; background: #fff; }

.gr-cmpp__prop { font-weight: 400; }
.gr-cmpp__photo {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--gr-paper);
}
.gr-cmpp__photo img { width: 100%; height: 100%; object-fit: cover; }
.gr-cmpp__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    color: var(--gr-ink);
}
.gr-cmpp__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--gr-display);
    font-weight: 500;
    font-size: 18px;
    line-height: 1.2;
    color: var(--gr-ink);
    text-decoration: none;
}
.gr-cmpp__title:hover { text-decoration: underline; }
.gr-cmpp__loc { display: block; margin-top: 4px; font-size: 13px; color: var(--gr-ink-soft); }
.gr-cmpp__remove {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--gr-ink-soft);
    cursor: pointer;
}
.gr-cmpp__remove:hover { color: #B3261E; }

.gr-cmpp__price { font-family: var(--gr-display); font-weight: 500; font-size: 24px; line-height: 1.1; }
.gr-cmpp__alt { display: block; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--gr-ink-soft); }
.gr-cmpp__muted { color: var(--gr-ink-soft); }
.gr-cmpp__table td.is-best { background: #F1F7EE; }
.gr-cmpp__tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #0F7A40;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #fff;
    vertical-align: 2px;
}
.gr-cmpp__section th {
    position: static !important;
    padding-top: 24px;
    background: var(--gr-paper) !important;
    font-size: 12px !important;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gr-ink-soft);
}
.gr-cmpp__feat th { font-weight: 500 !important; color: var(--gr-ink) !important; }
.gr-cmpp__yes { color: #0F7A40; }
.gr-cmpp__row--actions td,
.gr-cmpp__row--actions th { border-bottom: 0; }
.gr-cmpp__see { width: 100%; justify-content: center; }

.gr-cmpp__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
    padding: 24px 28px;
    border-radius: 20px;
    background: var(--gr-navy);
    color: #fff;
}
.gr-cmpp__cta h2 { margin: 0 0 4px; font-family: var(--gr-display); font-weight: 500; font-size: 26px; }
.gr-cmpp__cta p { margin: 0; color: var(--gr-sky); }
.gr-cmpp__wa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: none;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 14px;
    background: #0F7A40;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}
.gr-cmpp__wa img { filter: brightness(0) invert(1); }

@media (max-width: 640px) {
    .gr-cmpp__table { min-width: calc(108px + var(--cols) * 168px); font-size: 14px; }
    .gr-cmpp__table th, .gr-cmpp__table td { padding: 12px 10px; }
    .gr-cmpp__table tbody th, .gr-cmpp__corner { width: 108px; font-size: 13px; }
    .gr-cmpp__table tbody th .gr-ic { display: none; }
    .gr-cmpp__price { font-size: 20px; }
    .gr-cmpp__title { font-size: 16px; }
    .gr-cmpp__cta { flex-direction: column; align-items: stretch; padding: 20px; }
    .gr-cmpp__wa { justify-content: center; }
}

/* =====================================================================
   VISTA MAPA DEL LISTADO
   ===================================================================== */

/* Selector Lista / Mapa */
.gr-vtoggle {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--gr-line);
    border-radius: 12px;
    background: #fff;
}
.gr-vtoggle a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gr-ink-soft);
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.gr-vtoggle a:hover { color: var(--gr-ink); }
.gr-vtoggle a[aria-current="page"] { background: var(--gr-navy); color: #fff; }
.gr-vtoggle a:focus-visible { outline: 2px solid var(--gr-dusk); outline-offset: 2px; }

/* Contenedor del mapa */
.gr-pmap { position: relative; }
.gr-pmap__canvas {
    height: clamp(420px, 70vh, 720px);
    border: 1px solid var(--gr-line);
    border-radius: 20px;
    overflow: hidden;
    background: #E6EDF5;
    z-index: 0;
}
.gr-pmap__status {
    margin: 12px 0 0;
    font-size: 14px;
    color: var(--gr-ink-soft);
}
.gr-pmap__status[hidden] { display: none; }

/* Pin con el precio */
.gr-pin-wrap { background: none; border: 0; }
.gr-pin {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, calc(-100% - 6px));
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--gr-navy);
    box-shadow: 0 3px 10px rgba(8, 24, 46, .3);
    font-family: var(--gr-font);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
.gr-pin::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    margin-left: -5px;
    border: 5px solid transparent;
    border-bottom: 0;
    border-top-color: var(--gr-navy);
}
.gr-pin--rent { background: var(--gr-dusk); }
.gr-pin--rent::after { border-top-color: var(--gr-dusk); }
.leaflet-marker-icon:hover .gr-pin,
.leaflet-marker-icon:focus .gr-pin { background: var(--gr-amber-press); color: var(--gr-night); transform: translate(-50%, calc(-100% - 8px)); }
.leaflet-marker-icon:hover .gr-pin::after,
.leaflet-marker-icon:focus .gr-pin::after { border-top-color: var(--gr-amber-press); }

/* Mini card del pin */
.gr-pmap .leaflet-popup-content-wrapper { padding: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 16px 40px rgba(8, 24, 46, .25); }
.gr-pmap .leaflet-popup-content { margin: 0; width: 260px !important; }
.gr-pmap .leaflet-container a.leaflet-popup-close-button {
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    font-size: 18px;
    line-height: 26px;
    color: var(--gr-ink);
}
.gr-mpop { display: block; color: var(--gr-ink) !important; text-decoration: none; font-family: var(--gr-font); }
.gr-mpop img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gr-mpop__body { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; }
.gr-mpop__op { font-size: 12px; font-weight: 700; color: var(--gr-dusk); }
.gr-mpop__price { font-family: var(--gr-display); font-weight: 500; font-size: 22px; line-height: 1.1; }
.gr-mpop__price small { font-family: var(--gr-font); font-size: 13px; font-weight: 500; color: var(--gr-ink-soft); }
.gr-mpop__alt { font-size: 13px; font-weight: 600; color: var(--gr-ink-soft); }
.gr-mpop__title { margin-top: 4px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.gr-mpop__meta { font-size: 13px; color: var(--gr-ink-soft); }
.gr-mpop__cta { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--gr-dusk); }

@media (max-width: 640px) {
    .gr-pmap__canvas { height: calc(100dvh - 230px); min-height: 380px; border-radius: 16px; }
    .gr-vtoggle a { padding: 0 10px; }
}

/* Grupo de pines cercanos */
.gr-pcluster {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--gr-amber);
    box-shadow: 0 4px 14px rgba(8, 24, 46, .3);
    font-family: var(--gr-font);
    font-size: 15px;
    font-weight: 800;
    color: var(--gr-night);
    cursor: pointer;
    transition: transform .15s ease;
}
.leaflet-marker-icon:hover .gr-pcluster { transform: scale(1.08); }
.gr-sortmenu[hidden] { display: none; }

/* Card flotante al pasar el mouse por un precio del mapa */
.gr-mhover {
    position: absolute;
    z-index: 5;
    width: 260px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(8, 24, 46, .28);
    animation: gr-mhover-in .14s ease-out;
}
.gr-mhover[hidden] { display: none; }
.gr-mhover .gr-mpop { border-radius: 16px; overflow: hidden; }
.gr-mhover::after {
    content: "";
    position: absolute;
    left: var(--arrow-x, 50%);
    bottom: -7px;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    background: #fff;
    transform: rotate(45deg);
    border-radius: 2px;
}
.gr-mhover.is-below::after { top: -7px; bottom: auto; }
@keyframes gr-mhover-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gr-mhover { animation: none; } }

/* =====================================================================
   REVELADO AL SCROLL: "las luces se encienden"
   Las secciones llegan como ventanas que se encienden al anochecer:
   - title: el título sube desde una ranura (mismo gesto que el titular del Inicio)
   - photo: la foto se abre desde abajo y se asienta, de azulada a su color real
   - rise:  bloques y elementos de listas suben poco y aparecen en cascada
   site.js ("REVELADO") marca los elementos, pone el retraso (--gr-d) y agrega .is-in.
   Solo actúa con html.gr-motion (lo pone _Layout); sin JS o con "reducir movimiento"
   no se oculta nada. Al terminar, site.js quita data-reveal y cada componente
   recupera sus propias transiciones (hover, etc.).
   ===================================================================== */
html.gr-motion [data-reveal]:not(.is-in) { opacity: 0; }
html.gr-motion [data-reveal="rise"]:not(.is-in) { transform: translate3d(0, 22px, 0); }
html.gr-motion [data-reveal="title"]:not(.is-in) {
    transform: translate3d(0, .55em, 0);
    clip-path: inset(100% -2% -.3em -2%);
}
/* --gr-r: radio de la foto (lo pone site.js) para que no se vea cuadrada mientras se abre */
html.gr-motion [data-reveal="photo"]:not(.is-in) { clip-path: inset(100% 0 0 0 round var(--gr-r, 0px)); }
html.gr-motion [data-reveal="photo"]:not(.is-in) > img,
html.gr-motion img[data-reveal="photo"]:not(.is-in) {
    transform: scale(1.1);
    filter: saturate(.55) brightness(.8) hue-rotate(-8deg);
}

html.gr-motion [data-reveal].is-in {
    transition:
        opacity .7s var(--gr-ease-out) var(--gr-d, 0ms),
        transform .9s var(--gr-ease-out) var(--gr-d, 0ms),
        clip-path .9s var(--gr-ease-out) var(--gr-d, 0ms);
}
html.gr-motion [data-reveal="title"].is-in {
    clip-path: inset(0 -2% -.3em -2%);
    transition:
        opacity .5s ease-out var(--gr-d, 0ms),
        transform .95s var(--gr-ease-out) var(--gr-d, 0ms),
        clip-path .95s var(--gr-ease-out) var(--gr-d, 0ms);
}
html.gr-motion [data-reveal="photo"].is-in {
    clip-path: inset(0 0 0 0 round var(--gr-r, 0px));
    transition:
        opacity .35s ease-out var(--gr-d, 0ms),
        clip-path 1.05s var(--gr-ease-out) var(--gr-d, 0ms);
}
html.gr-motion [data-reveal="photo"].is-in > img,
html.gr-motion img[data-reveal="photo"].is-in {
    transition:
        transform 1.6s var(--gr-ease-out) var(--gr-d, 0ms),
        filter 1.4s ease-out calc(var(--gr-d, 0ms) + 150ms),
        clip-path 1.05s var(--gr-ease-out) var(--gr-d, 0ms),
        opacity .35s ease-out var(--gr-d, 0ms);
}

/* Pines del mapa: aparecen uno tras otro con un pequeño salto (solo al cargar) */
.gr-pin,
.gr-pcluster {
    animation: gr-pin-in .45s var(--gr-ease-out) backwards;
    animation-delay: calc(var(--i, 0) * 35ms + 150ms);
}
@keyframes gr-pin-in {
    from { opacity: 0; scale: .6; }
}

@media (prefers-reduced-motion: reduce) {
    .gr-pin, .gr-pcluster { animation: none; }
}
