/******************************************************************************
 * Starter Inmobiliario
 * Archivo    : frontend.css
 * Ubicación  : assets/css/
 ******************************************************************************/

body.public-site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.office-choice-page { background: linear-gradient(135deg, var(--navbar-bg), var(--secondary)); }
.office-choice { min-height:100vh; display:grid; align-content:center; gap:clamp(2rem,5vw,4rem); padding:clamp(2rem,6vw,5rem); color:var(--white); }
.office-choice-intro { width:min(760px,100%); margin-inline:auto; text-align:center; }
.office-choice-eyebrow { margin-bottom:.75rem; color:var(--primary); font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
.office-choice-intro h1 { margin-bottom:1rem; color:inherit; font-size:clamp(2rem,5vw,4rem); }
.office-choice-intro > p:last-child { margin:0; color:rgba(255,255,255,.75); font-size:1.05rem; }
.office-choice-grid { width:min(1000px,100%); margin-inline:auto; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(1rem,3vw,2rem); }
.office-choice-card { display:flex; min-height:360px; flex-direction:column; align-items:center; justify-content:center; padding:2rem; border:1px solid rgba(255,255,255,.16); border-radius:1.25rem; background:rgba(255,255,255,.96); color:var(--texto); text-align:center; box-shadow:0 24px 60px rgba(0,0,0,.2); transition:transform .25s ease,box-shadow .25s ease; }
.office-choice-card:hover,.office-choice-card:focus-visible { color:var(--texto); transform:translateY(-8px); box-shadow:0 30px 70px rgba(0,0,0,.3); }
.office-choice-logo { height:120px; display:grid; place-items:center; margin-bottom:1.5rem; }
.office-choice-logo img { max-width:240px; max-height:120px; object-fit:contain; }
.office-choice-name { font-size:1.4rem; font-weight:800; }
.office-choice-location,.office-choice-license { margin-top:.35rem; color:var(--gris-600); }
.office-choice-action { margin-top:1.5rem; color:var(--primary); font-weight:700; }
@media(max-width:767px){.office-choice-grid{grid-template-columns:1fr}.office-choice-card{min-height:290px}}

.public-site main {
    flex: 1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-navbar);
}

.navbar-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: .75rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius);
    color: var(--navbar-button-color);
    background: var(--navbar-button-bg);
    transition: var(--transition);
}

.navbar-login svg {
    width: 1.65rem;
    height: 1.65rem;
    fill: currentColor;
}

.navbar-login:hover,
.navbar-login:focus-visible {
    color: var(--navbar-button-hover-color);
    background: var(--navbar-button-hover-bg);
}

.whatsapp-floating {
    position: fixed;
    right: clamp(1rem, 2.5vw, 2rem);
    bottom: clamp(1rem, 2.5vw, 2rem);
    z-index: calc(var(--z-navbar) + 1);
    width: 3.75rem;
    height: 3.75rem;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .24);
    font-size: 2rem;
    transition: transform .2s ease, background-color .2s ease;
}

.whatsapp-floating:hover,
.whatsapp-floating:focus-visible {
    background: #1da851;
    color: #fff;
    transform: translateY(-3px);
}

@media (min-width: 992px) {
    .public-site #navbarPrincipal .container {
        position: relative;
    }

    .public-site #navbarPrincipal .navbar-brand {
        position: absolute;
        top: 0;
        left: .75rem;
        z-index: 2;
        min-width: 210px;
        min-height: 112px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem 1.5rem;
        border-radius: 0 0 1rem 1rem;
        background: var(--navbar-bg);
        box-shadow: 0 8px 8px rgba(0, 0, 0, .30);
    }

    .public-site #navbarPrincipal .navbar-logo {
        width: auto;
        max-width: 190px;
        height: auto;
        max-height: 82px;
        object-fit: contain;
    }

    .public-site #navbarPrincipal .navbar-collapse {
        margin-left: 235px;
    }
}

.home-hero {
    --hero-image: linear-gradient(135deg, var(--navbar-bg), var(--secondary));
    position: relative;
    min-height: clamp(590px, calc(100vh - var(--navbar-height)), 820px);
    display: flex;
    align-items: center;
    padding: clamp(5rem, 10vh, 8rem) 0 8.5rem;
    isolation: isolate;
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
    color: var(--white);
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .68), rgba(0, 0, 0, .18)),
        linear-gradient(0deg, rgba(0, 0, 0, .45), transparent 55%);
}

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

.home-hero-slider,
.home-hero-slide {
    position: absolute;
    inset: 0;
}

.home-hero-slider { z-index: -2; }
.home-hero-slide { opacity: 0; transition: opacity 1s ease; }
.home-hero-slide.is-active { opacity: 1; }
.home-hero-slide img,
.home-hero-slide video { width: 100%; height: 100%; object-fit: cover; }

.home-hero-captions { position: relative; min-height: clamp(210px, 30vw, 390px); }
.home-hero-captions .home-hero-copy { position: absolute; inset: 0 auto auto 0; width: min(100%, 760px); opacity: 0; pointer-events: none; transform: translateY(1rem); transition: opacity .55s ease, transform .55s ease; }
.home-hero-captions .home-hero-copy.is-active { opacity: 1; pointer-events: auto; transform: none; }
.home-hero-captions .home-hero-copy p { max-width: 620px; color: rgba(255,255,255,.86); font-size: 1.1rem; }
.home-hero-dots { position: absolute; bottom: 7.2rem; left: 50%; z-index: 2; display: flex; gap: .55rem; transform: translateX(-50%); }
.home-hero-dots button { width: .7rem; height: .7rem; padding: 0; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; background: transparent; }
.home-hero-dots button.is-active { background: var(--primary); border-color: var(--primary); }

.home-hero-copy {
    max-width: 720px;
}

.home-hero-eyebrow {
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.home-hero h1 {
    max-width: 680px;
    margin-bottom: 1.25rem;
    color: var(--white);
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.02;
}

.home-hero-copy > p:last-child {
    max-width: 600px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, .86);
    font-size: clamp(1rem, 2vw, 1.2rem);
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.hero-search {
    position: absolute;
    bottom: 2.25rem;
    left: 50%;
    width: min(calc(100% - 3rem), 1050px);
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1.15fr)
        minmax(0, 1fr)
        minmax(0, 1.35fr)
        auto;
    gap: .85rem;
    align-items: end;
    padding: 1.15rem;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .24);
    backdrop-filter: blur(12px);
    transform: translateX(-50%);
}

.hero-search-field {
    min-width: 0;
}

.hero-search-field label {
    display: block;
    margin: 0 0 .35rem .15rem;
    color: var(--secondary);
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.hero-search-field select,
.hero-search-field input {
    width: 100%;
    min-width: 0;
    height: 3.2rem;
    padding: 0 .85rem;
    border: 1px solid color-mix(in srgb, var(--secondary) 20%, transparent);
    border-radius: .65rem;
    background: var(--white);
    color: var(--texto);
}

.hero-search-field select:focus,
.hero-search-field input:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent);
}

.hero-search-button {
    height: 3.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: 0 1.35rem;
    border: 1px solid var(--primary);
    border-radius: .65rem;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
}

.hero-search-button:hover,
.hero-search-button:focus-visible {
    border-color: var(--secondary);
    background: var(--secondary);
}

.hero-search-button svg,
.properties-filter-button svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: currentColor;
}

.hero-scroll {
    position: absolute;
    bottom: .45rem;
    left: 50%;
    color: var(--white);
    transform: translateX(-50%);
}

.hero-scroll svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
    transform: rotate(90deg);
}

.home-next-section {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--app-bg);
}

.home-section-heading {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.home-section-heading > p,
.home-eyebrow {
    margin-bottom: .55rem;
    color: var(--primary);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.home-section-heading h2,
.home-company-copy h2,
.home-contact-copy h2 {
    color: var(--secondary);
    font-size: clamp(2rem, 4vw, 3.3rem);
}

.home-section-heading > span {
    color: var(--gris-600);
}

.home-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.home-property-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--gris-200);
    border-radius: 1rem;
    background: var(--white);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
}

.home-property-image {
    position: relative;
    aspect-ratio: 16 / 10;
    display: block;
    overflow: hidden;
    background: var(--gris-200);
}

.home-property-image img,
.home-property-placeholder {
    width: 100%;
    height: 100%;
}

.home-property-image img { object-fit: cover; transition: transform .35s ease; }
.home-property-card:hover .home-property-image img { transform: scale(1.04); }
.home-property-placeholder { display: grid; place-items: center; color: var(--secondary); font-size: 3rem; }
.home-property-body { display: flex; flex: 1; flex-direction: column; gap: .55rem; padding: 1.25rem; }
.home-property-body p {
    min-height: 1.2em;
    margin: 0;
    overflow: hidden;
    color: var(--primary);
    font-size: .75rem;
    font-weight: 800;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}
.home-property-body h3 {
    height: 4.2em;
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    color: var(--accent);
    font-size: 1.2rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}
.home-property-body h3 a { color: inherit; }
.home-property-body > span {
    height: 3em;
    display: -webkit-box;
    overflow: hidden;
    color: var(--gris-600);
    font-size: .9rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}
.home-property-body strong {
    margin-top: auto;
    padding-top: .4rem;
    color: var(--accent);
    font-size: 1.35rem;
}
.home-section-action { margin-top: 2.25rem; text-align: center; }

.home-company-section,
.home-contact-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.home-company-section,
.home-contact-section {
    scroll-margin-top: calc(var(--navbar-height) + 1rem);
}
.home-company-section { background: var(--white); }
.home-company-grid,
.home-contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.home-company-mark { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50% 50% 12% 50%; background: linear-gradient(145deg, var(--primary), var(--accent)); color: var(--white); box-shadow: 0 25px 55px color-mix(in srgb, var(--primary) 25%, transparent); }
.home-company-mark span { font-size: clamp(5rem, 15vw, 10rem); font-weight: 800; }
.home-company-mark img {
    width: min(72%, 330px);
    max-height: 58%;
    object-fit: contain;
}
.home-company-copy > p:not(.home-eyebrow), .home-contact-copy > p:not(.home-eyebrow) { color: var(--gris-600); font-size: 1.1rem; line-height: 1.8; }
.home-company-copy a { color: var(--primary); font-weight: 800; }

.home-map-section { padding: clamp(4rem, 8vw, 7rem) 0; background: color-mix(in srgb, var(--app-bg) 82%, var(--gris-100)); }
.home-map-legend { display: flex; justify-content: center; gap: 1.5rem; margin: -1rem 0 1.25rem; color: var(--gris-700); font-weight: 700; }
.home-map-legend span { display: inline-flex; align-items: center; gap: .5rem; }
.map-legend-pin { width: .9rem; height: .9rem; border-radius: 50%; }
.map-legend-sale { background: var(--primary); }
.map-legend-rent { background: var(--secondary); }
.home-properties-map { z-index: 1; height: clamp(420px, 58vw, 650px); overflow: hidden; border-radius: 1rem; box-shadow: 0 18px 45px rgba(0, 0, 0, .16); }
.home-map-marker-wrapper { background: transparent; border: 0; }
.home-map-marker { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50% 50% 50% 0; color: #fff; box-shadow: 0 5px 12px rgba(0,0,0,.28); transform: rotate(-45deg); }
.home-map-marker i { font-size: 15px; transform: rotate(45deg); }
.home-map-marker-sale { background: var(--primary); }
.home-map-marker-rent { background: var(--secondary); }
.home-map-popup { min-width: 190px; display: grid; gap: .35rem; }
.home-map-popup strong { color: var(--secondary); font-size: 1rem; }
.home-map-popup span { color: var(--gris-600); }
.home-map-popup b { color: var(--accent); }
.home-map-popup a { color: var(--primary); font-weight: 800; }

.home-contact-section { background: linear-gradient(125deg, var(--navbar-bg), var(--secondary)); color: var(--white); }
.home-contact-copy h2 { color: var(--white); }
.home-contact-copy > p:not(.home-eyebrow) { color: rgba(255,255,255,.76); }
.home-contact-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; padding: clamp(1.25rem, 4vw, 2.25rem); border: 1px solid rgba(255,255,255,.25); border-radius: 1rem; background: rgba(255,255,255,.1); backdrop-filter: blur(10px); }
.home-contact-form label { display: block; margin-bottom: .35rem; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.home-contact-form input, .home-contact-form textarea { width: 100%; padding: .8rem; border: 1px solid rgba(255,255,255,.35); border-radius: .6rem; background: rgba(255,255,255,.94); color: var(--texto); }
.home-contact-full { grid-column: 1 / -1; }

.reveal-on-scroll { opacity: 0; transform: translateY(1.5rem); transition: opacity .65s ease, transform .65s ease; }
.reveal-on-scroll.is-visible { opacity: 1; transform: none; }
.home-featured-grid .reveal-on-scroll:nth-child(2) { transition-delay: .1s; }
.home-featured-grid .reveal-on-scroll:nth-child(3) { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
}

/* ========================================================================
   LISTADO DE PROPIEDADES
======================================================================== */

.properties-page {
    background: color-mix(in srgb, var(--app-bg) 82%, var(--gris-100));
}

.properties-heading {
    padding: 5.5rem 0 6.5rem;
    background:
        linear-gradient(120deg, color-mix(in srgb, var(--navbar-bg) 96%, transparent), color-mix(in srgb, var(--secondary) 88%, transparent));
    color: var(--white);
}

.properties-heading .container {
    max-width: 760px;
    text-align: center;
}

.properties-eyebrow {
    margin-bottom: .75rem;
    color: var(--primary);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.properties-heading h1 {
    margin-bottom: 1rem;
    color: var(--white);
    font-size: clamp(2.5rem, 5vw, 4.25rem);
}

.properties-heading p:last-child {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 1.1rem;
}

.properties-content {
    padding: 0 0 5rem;
}

.properties-filters {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.35fr) auto;
    gap: .8rem;
    align-items: end;
    margin: -3.25rem 0 2rem;
    padding: 1.15rem;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .14);
}

.properties-filters > div {
    min-width: 0;
}

.properties-filters label,
.properties-sort label {
    display: block;
    margin: 0 0 .35rem .1rem;
    color: var(--secondary);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.properties-filters select,
.properties-filters input,
.properties-sort select {
    width: 100%;
    height: 3.05rem;
    min-width: 0;
    padding: 0 .8rem;
    border: 1px solid var(--gris-300);
    border-radius: .65rem;
    background: var(--white);
    color: var(--texto);
}

.properties-filters select:focus,
.properties-filters input:focus,
.properties-sort select:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

.properties-filter-button {
    height: 3.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 0 1.2rem;
    border: 1px solid var(--primary);
    border-radius: .65rem;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
}

.properties-filter-button:hover {
    border-color: var(--secondary);
    background: var(--secondary);
}

.search-filter-toggle {
    display: none;
}

.properties-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.properties-toolbar p {
    margin: 0;
    color: var(--gris-700);
}

.properties-sort {
    width: min(100%, 220px);
}

.properties-sort select {
    height: 2.75rem;
}

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

.property-card {
    position: relative;
    display: flex;
    height: 100%;
    flex-direction: column;
    min-width: 0;
    overflow: visible;
    border: 1px solid var(--gris-200);
    border-radius: .45rem;
    background: var(--white);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .07);
}

.property-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: .4rem .4rem 0 0;
    background: var(--gris-200);
}

.property-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.property-card-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.property-card h2 a {
    color: inherit;
}

.property-card h2 a:hover {
    color: var(--primary);
}

.property-card:hover .property-card-media img {
    transform: scale(1.035);
}

.property-card-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--gris-100), var(--gris-300));
    color: var(--secondary);
}

.property-card-placeholder svg {
    width: 4rem;
    height: 4rem;
    fill: currentColor;
}

.property-operation,
.property-featured {
    position: absolute;
    top: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    border-radius: 999px;
    color: var(--white);
    box-shadow: 0 5px 14px rgba(0, 0, 0, .18);
}

.property-featured svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
}

.property-operation {
    left: 1rem;
    top: auto;
    bottom: 1rem;
    padding: .35rem .75rem;
    background: var(--accent);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.property-operation-venta {
    background: var(--primary);
}

.property-operation-alquiler {
    background: var(--accent);
}

.property-operation-temporario {
    background: var(--secondary);
}

.property-status-ribbon {
    position: absolute;
    top: 1.15rem;
    left: -3.1rem;
    z-index: 3;
    width: 10.5rem;
    padding: .5rem;
    background: var(--property-status-color);
    background: color-mix(in srgb, var(--property-status-color) 86%, transparent);
    color: var(--property-status-text);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .24);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .055em;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(-45deg);
    transform-origin: center;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

.property-featured {
    right: 1rem;
    width: 2rem;
    background: var(--primary);
}

.property-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem;
}

.property-card-meta {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .65rem;
    color: var(--gris-600);
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.property-card h2 {
    min-height: 2.8em;
    margin-bottom: .65rem;
    color: var(--secondary);
    font-size: 1.2rem;
    line-height: 1.4;
}

.property-location {
    min-height: 2.8em;
    display: flex;
    gap: .5rem;
    margin-bottom: .8rem;
    color: var(--gris-600);
    font-size: .9rem;
}

.property-location svg {
    flex: 0 0 auto;
    width: 1.2rem;
    height: 1.2rem;
    margin-top: .2rem;
    fill: currentColor;
    color: var(--accent);
}

.property-price {
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 800;
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem .85rem;
    min-height: 3rem;
    padding-top: .9rem;
    border-top: 1px solid var(--gris-200);
    color: var(--gris-700);
    font-size: .82rem;
}

.property-features svg {
    width: 1.3rem;
    height: 1.3rem;
    margin-right: .2rem;
    fill: currentColor;
    color: var(--primary);
    vertical-align: -.2rem;
}

.property-credit {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .85rem;
    padding: .3rem .65rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    color: var(--accent);
    font-size: .75rem;
    font-weight: 700;
}

.property-credit svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: currentColor;
}

.property-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--gris-200);
    color: var(--primary);
    font-weight: 700;
}

.property-contact:hover {
    color: var(--secondary);
}

.property-contact svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.properties-empty {
    padding: 5rem 1.5rem;
    border: 1px dashed var(--gris-300);
    border-radius: 1rem;
    background: var(--white);
    text-align: center;
}

.properties-empty > svg {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    fill: currentColor;
    color: var(--accent);
}

.properties-empty h2 {
    color: var(--secondary);
}

.public-pagination {
    display: flex;
    justify-content: center;
    gap: .45rem;
    margin-top: 2.5rem;
}

.public-pagination-top {
    margin: 0 0 1.5rem;
}

.public-pagination a {
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--gris-300);
    border-radius: .6rem;
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
}

.public-pagination a:hover {
    border-color: var(--secondary);
    background: var(--secondary);
    color: var(--white);
}

.public-pagination a.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.public-pagination a.disabled {
    pointer-events: none;
    color: var(--gris-400);
    opacity: .65;
}

.public-pagination svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.site-footer {
    background: var(--navbar-bg);
    color: var(--white);
}

.site-footer [class*="col-"] {
    min-width: 0;
}

.footer-brand-block {
    width: fit-content;
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-bottom: 1rem;
}

.footer-professional-id {
    width: 100%;
    margin: .35rem 0 0;
    color: var(--white);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .035em;
    text-align: center;
}

.footer-contact li {
    overflow-wrap: anywhere;
}

/* ========================================================================
   FICHA PÚBLICA DE PROPIEDAD
======================================================================== */

.property-detail-page {
    padding-bottom: 4rem;
    background: var(--app-bg);
}

.property-detail-heading {
    padding: 3rem 0 1.25rem;
    background: transparent;
    color: var(--texto);
}

.property-detail-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.property-detail-operation {
    display: inline-block;
    padding: .35rem .75rem;
    border-radius: .35rem;
    background: var(--accent);
    color: var(--white);
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.property-detail-meta-row {
    align-items: center;
    margin-top: 1.5rem;
}

.property-detail-operation-column {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.property-detail-heading h1 {
    margin-bottom: .25rem;
    color: var(--secondary);
    font-size: 2rem;
}

.property-detail-heading h2 {
    margin: 0;
    color: var(--gris-600);
    font-size: 1.15rem;
    font-weight: 500;
}

.property-detail-location {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 600;
}

.property-detail-location svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
    color: var(--accent);
}

.property-detail-content {
    margin-top: 0;
}

.property-gallery {
    position: relative;
    height: 490px;
    overflow: visible;
    border-radius: .45rem;
    background: var(--gris-200);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .15);
}

.property-gallery .carousel,
.property-gallery .carousel-inner,
.property-gallery .carousel-item {
    height: 100%;
    border-radius: inherit;
}

.property-gallery .carousel-inner {
    overflow: hidden;
}

.property-gallery-open {
    position: relative;
    width: 100%;
    height: 490px;
    display: block;
    padding: 0;
    border: 0;
    border-radius: inherit;
    overflow: hidden;
    background: var(--gris-900);
    color: var(--white);
    cursor: zoom-in;
}

.property-gallery-open img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-gallery-open span,
.property-gallery-count {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
    padding: .4rem .7rem;
    border-radius: .35rem;
    background: rgba(0, 0, 0, .68);
    color: var(--white);
    font-size: .78rem;
    font-weight: 700;
}

.property-gallery-count {
    right: auto;
    left: 1rem;
}

.property-detail-ribbon {
    top: 1.3rem;
    left: -3rem;
    z-index: 5;
}

.property-gallery-empty {
    min-height: 430px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 1rem;
    color: var(--gris-500);
}

.property-gallery-empty svg {
    width: 5rem;
    height: 5rem;
    fill: currentColor;
}

.property-summary,
.property-detail-section,
.property-detail-grid {
    border: 1px solid var(--gris-200);
    border-radius: .45rem;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.property-summary {
    height: 490px;
    padding: 1.25rem;
}

.property-summary h2,
.property-detail-section h2 {
    margin-bottom: 1.25rem;
    color: var(--secondary);
    font-size: 1.35rem;
}

.property-summary .property-summary-title {
    margin: -.25rem -1.25rem .75rem;
    padding: .8rem 1.25rem;
    border-radius: .4rem .4rem 0 0;
    background: var(--accent);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.45;
}

.property-summary-price {
    color: var(--accent);
    font-size: 1.55rem;
    font-weight: 800;
}

.property-summary dl {
    margin: 0;
}

.property-summary dl > div {
    display: grid;
    grid-template-columns: minmax(115px, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: .65rem;
    padding: .3rem 0;
    border-bottom: 1px solid var(--gris-200);
}

.property-summary dt {
    color: var(--texto);
    font-size: 1rem;
    font-weight: 700;
}

.property-summary dd {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0;
    color: var(--texto);
    font-size: 1rem;
    font-weight: 400;
    text-align: left;
}

.property-summary dd svg {
    flex: 0 0 2.15rem;
    width: 2.15rem;
    height: 2.15rem;
    fill: currentColor;
    color: var(--primary);
}

.property-whatsapp {
    width: 100%;
    min-height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    margin-top: 1rem;
    border-radius: .45rem;
    background: #25d366;
    color: #fff;
    font-weight: 800;
}

.property-whatsapp:hover {
    background: #1da851;
    color: #fff;
}

.property-whatsapp i {
    font-size: 1.35rem;
}

.property-detail-grid {
    display: grid;
}

.property-surface-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 1.5rem;
    padding: 1rem;
}

.property-surface-grid > div,
.property-features-grid > div,
.property-amenities-grid > div {
    display: grid;
    place-items: center;
    align-content: center;
    gap: .35rem;
    min-width: 0;
    padding: 1rem;
    text-align: center;
}

.property-surface-grid > div + div {
    border-left: 1px solid var(--gris-200);
}

.property-detail-grid svg {
    width: 2.25rem;
    height: 2.25rem;
    fill: currentColor;
    color: var(--primary);
}

.property-detail-grid strong {
    color: var(--secondary);
    font-size: 1.05rem;
}

.property-detail-grid span {
    color: var(--gris-600);
    font-size: .8rem;
}

.property-detail-section {
    margin-top: 1.5rem;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.property-description {
    color: var(--gris-700);
    line-height: 1.8;
}

.property-features-grid,
.property-amenities-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    box-shadow: none;
}

.property-characteristics-section,
.property-amenities-section,
.property-accent-section {
    padding: 0;
    overflow: hidden;
}

.property-characteristics-section > h2,
.property-amenities-section > h2,
.property-accent-section > h2 {
    margin: 0;
    padding: 1rem 1.5rem;
    background: var(--accent);
    color: var(--white);
    font-size: 1.35rem;
}

.property-accent-section > :not(h2) {
    width: auto;
    margin: 1.25rem;
}

.property-amenities-section .property-amenities-grid {
    margin: 1.25rem;
}

.property-characteristics-section .property-features-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 1.25rem;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.property-characteristics-section .property-features-grid > div {
    min-height: 170px;
    border: 1px solid var(--gris-300);
    border-radius: .4rem;
    background: var(--white);
}

.property-characteristics-section .property-features-grid svg {
    width: 2.85rem;
    height: 2.85rem;
}

.property-characteristics-section .property-features-grid strong {
    color: var(--texto);
    font-size: 1.85rem;
}

.property-characteristics-section .property-features-grid span {
    font-size: 1rem;
}

.property-features-grid > div,
.property-amenities-grid > div {
    border-right: 1px solid var(--gris-200);
    border-bottom: 1px solid var(--gris-200);
}

.property-amenities-grid strong {
    color: var(--texto);
    font-weight: 400;
}

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

.property-measures > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .2rem 1rem;
    padding: .8rem 0;
    border-bottom: 1px solid var(--gris-200);
}

.property-measures small {
    grid-column: 1 / -1;
    color: var(--gris-600);
}

.property-detail-map {
    height: min(55vh, 450px);
    border-radius: .4rem;
}

.property-lightbox {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, .94);
    color: #fff;
}

.property-lightbox[open] {
    display: grid;
    place-items: center;
}

.property-lightbox::backdrop {
    background: rgba(0, 0, 0, .94);
}

.property-lightbox img {
    max-width: calc(100vw - 8rem);
    max-height: calc(100vh - 5rem);
    object-fit: contain;
}

.property-lightbox button {
    position: fixed;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.property-lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    font-size: 2rem;
}

.property-lightbox-prev,
.property-lightbox-next {
    top: 50%;
    width: 3.25rem;
    height: 3.25rem;
    font-size: 2.4rem;
    transform: translateY(-50%);
}

.property-lightbox-prev { left: 1rem; }
.property-lightbox-next { right: 1rem; }

.property-lightbox-counter {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
}

.footer-logo {
    width: auto;
    max-width: 220px;
    max-height: 90px;
    object-fit: contain;
}

.footer-description {
    max-width: 430px;
    color: var(--white);
}

.footer-title {
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.footer-links li + li,
.footer-contact li + li {
    margin-top: .7rem;
}

.footer-links a,
.footer-contact a {
    color: var(--white);
}

.footer-links a:hover {
    color: var(--white);
    opacity: .8;
}

.footer-contact i {
    width: 1.4rem;
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: .65rem;
}

.footer-social a {
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    color: var(--white);
}

.footer-social a:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, .12);
    color: var(--white);
}

.site-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: var(--white);
    font-size: .875rem;
}

@media (max-width: 991.98px) {
    .footer-brand-block {
        margin-right: auto;
        margin-left: auto;
    }

    .home-featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-company-grid,
    .home-contact-grid {
        grid-template-columns: 1fr;
    }

    .home-company-mark {
        width: min(100%, 360px);
        margin: 0 auto;
    }

    .property-detail-title-row {
        align-items: start;
        flex-direction: column;
    }

    .property-detail-price {
        text-align: left;
    }

    .property-summary {
        height: auto;
    }

    .property-features-grid,
    .property-amenities-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .property-characteristics-section .property-features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .site-header {
        position: relative;
    }

    .home-hero {
        min-height: auto;
        padding: 5rem 0 2rem;
    }

    .hero-search {
        position: relative;
        inset: auto;
        left: auto;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 2rem;
        transform: none;
    }

    .hero-search-button {
        grid-column: 1 / -1;
    }

    .hero-scroll {
        display: none;
    }

    .properties-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .properties-filter-button {
        grid-column: 1 / -1;
    }

    .properties-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .navbar-login {
        margin: .5rem 0 0;
    }

    .whatsapp-floating {
        width: 3.4rem;
        height: 3.4rem;
        font-size: 1.8rem;
    }
}

@media (max-width: 575.98px) {
    .home-featured-grid {
        grid-template-columns: 1fr;
    }

    .home-contact-form {
        grid-template-columns: 1fr;
    }

    .home-contact-form > div,
    .home-contact-full {
        grid-column: auto;
    }

    .home-properties-map {
        height: 460px;
        border-radius: .75rem;
    }

    .property-detail-heading {
        padding: 2.5rem 0 4rem;
    }

    .property-gallery-open {
        height: 310px;
    }

    .property-gallery {
        height: 310px;
    }

    .property-detail-ribbon {
        top: 1rem;
        left: -3.2rem;
    }

    .property-surface-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .property-surface-grid > div + div {
        border-left: 0;
    }

    .property-surface-grid > div:nth-child(even) {
        border-left: 1px solid var(--gris-200);
    }

    .property-surface-grid > div:nth-child(n + 3) {
        border-top: 1px solid var(--gris-200);
    }

    .property-features-grid,
    .property-amenities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .property-characteristics-section .property-features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
        margin: 1rem;
    }

    .property-characteristics-section .property-features-grid > div {
        min-height: 145px;
    }

    .property-measures {
        grid-template-columns: 1fr;
    }

    .property-lightbox img {
        max-width: 100vw;
        max-height: calc(100vh - 8rem);
    }

    .property-lightbox-prev,
    .property-lightbox-next {
        top: auto;
        bottom: 1rem;
    }
    .home-hero {
        padding-top: 3.5rem;
    }

    .home-hero h1 {
        font-size: 2.45rem;
    }

    .hero-search {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        padding: 1rem;
    }

    .hero-search-keyword,
    .properties-filter-search {
        grid-column: 1 / -1;
        order: 1;
    }

    .search-filter-toggle {
        order: 2;
        display: inline-flex;
        height: 3.05rem;
        align-items: center;
        justify-content: center;
        gap: .45rem;
        padding: 0 .85rem;
        border: 1px solid var(--gris-300);
        border-radius: .65rem;
        background: var(--white);
        color: var(--secondary);
        font-weight: 700;
    }

    .search-filter-toggle[aria-expanded="true"] {
        border-color: var(--primary);
        color: var(--primary);
    }

    .search-filter-count {
        min-width: 1.35rem;
        padding: .08rem .35rem;
        border-radius: 999px;
        background: var(--primary);
        color: var(--white);
        font-size: .75rem;
        line-height: 1.2;
    }

    .hero-search-button {
        order: 3;
        grid-column: auto;
    }

    .hero-search .search-dependent-filter,
    .properties-filters .search-dependent-filter {
        display: none;
        grid-column: 1 / -1;
        order: 4;
    }

    .hero-search.filters-open .search-dependent-filter,
    .properties-filters.filters-open .search-dependent-filter {
        display: block;
        animation: search-filter-reveal .18s ease-out;
    }

    .properties-heading {
        padding: 4rem 0 5rem;
    }

    .properties-filters {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        margin-top: -2.25rem;
    }

    .properties-filter-button {
        order: 3;
        grid-column: auto;
    }

    .properties-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .properties-sort {
        width: 100%;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes search-filter-reveal {
    from {
        opacity: 0;
        transform: translateY(-.35rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
