﻿@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --brand-blue: #052b7e;
    --brand-red: #d2212a;
    --brand-dark: #0a2a5d;
    --brand-light: #f4f7fb;
    --border-soft: #d7dce6;
    --text-dark: #1d1d1d;
    --text-muted: #5d6a7a;
    --font-body: 'Manrope', Arial, sans-serif;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --header-height: 86px;
}

/* Estilos para el sitio pÃºblico */

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    margin: 0;
    padding: var(--header-height) 0 0;
    background-color: transparent;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #1d1d1d;
    min-height: 100vh;
    overflow-x: hidden;
    isolation: isolate;
}

.background-fader {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.background-fader__layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.background-fader__layer.is-visible {
    opacity: 1;
}

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

body a {
    color: inherit;
}

.site-header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    color: var(--brand-dark);
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    border-bottom: none;
    box-shadow: 0 12px 38px rgba(28, 44, 78, 0.12);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    min-height: var(--header-height);
    height: var(--header-height);
}

.site-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--brand-red);
}

.site-header::before {
    content: none;
}

.site-header-main {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    grid-template-rows: 24px 38px;
    align-items: center;
    gap: 6px 24px;
    height: calc(var(--header-height) - 4px);
    min-height: 0;
    padding: 6px 32px 7px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    grid-row: 1 / 3;
}

.site-brand a {
    display: inline-flex;
    align-items: center;
}

.site-brand img {
    height: 74px;
    width: auto;
    max-width: 292px;
    object-fit: contain;
}

.logo {
    object-fit: contain;
}

.site-brand h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
    color: var(--brand-dark);
}

.site-brand p {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
}

.header-professional {
    justify-self: end;
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: 14px;
    color: var(--brand-dark);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 0;
    background: transparent;
    clip-path: none;
}

.header-professional strong {
    color: var(--brand-blue);
}

.header-professional span {
    position: relative;
    color: var(--text-muted);
}

.header-professional span::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 10px;
    background: var(--brand-red);
    transform: rotate(45deg) translateY(-1px);
    vertical-align: middle;
}

.site-nav {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    width: auto;
    justify-content: flex-end;
    background: var(--brand-blue);
    padding: 6px 9px;
    border-left: 6px solid var(--brand-red);
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: var(--brand-blue);
    color: white;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.site-nav a {
    color: white;
    text-decoration: none;
    font-weight: 800;
    padding: 7px 9px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus {
    background-color: white;
    color: var(--brand-blue);
}

.site-nav .btn-secondary {
    background: white;
    color: var(--brand-blue);
}

.site-nav .btn-secondary:hover,
.site-nav .btn-secondary:focus {
    background: var(--brand-red);
    color: white;
}

.btn-secondary,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: none;
    padding: 0.9rem 1.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background-color: var(--brand-red);
    color: white;
    font-weight: 900;
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(210, 33, 42, 0.18);
}

.btn-secondary {
    background-color: var(--brand-blue);
    color: white;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #041a55;
    color: white;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border-radius: 4px;
    padding: 0.9rem 1.4rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background-color: #1ebe58;
}

.social-float {
    position: fixed;
    right: 24px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    z-index: 99998;
    display: grid;
    gap: 12px;
}

.social-float-link {
    width: 60px;
    height: 60px;
    color: white;
    border-radius: 4px;
    padding: 0;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.social-float-whatsapp {
    background-color: #25D366;
}

.social-float-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 6%, #fd5949 42%, #d6249f 63%, #285AEB 100%);
}

.social-float-facebook {
    background-color: var(--brand-blue);
}

.social-float-whatsapp:hover,
.social-float-whatsapp:focus {
    background-color: #1ebe58;
}

.social-float-instagram:hover,
.social-float-instagram:focus {
    filter: brightness(0.92);
}

.social-float-facebook:hover,
.social-float-facebook:focus {
    background-color: #041a55;
}

.social-float-link i {
    font-size: 30px;
    line-height: 1;
}

.social-float-facebook i {
    font-size: 32px;
}

.social-float-whatsapp i {
    font-size: 32px;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content,
.hero-search {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 560px;
    color: white;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    font-size: clamp(0.85rem, 1vw, 1rem);
}

.hero-content h2 {
    font-family: var(--font-display);
    margin: 0 0 0.7rem;
    font-size: clamp(3.2rem, 6vw, 5rem);
    line-height: 0.95;
    font-weight: 700;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1.02rem, 1.35vw, 1.35rem);
    font-weight: 800;
    letter-spacing: 0.04rem;
    max-width: 520px;
    margin: 0 0 1.35rem;
    line-height: 1.6;
}

.hero-content .btn-primary {
    background-color: rgba(210, 33, 42, 0.7);
    min-height: 52px;
    padding: 1rem 1.8rem;
    font-size: 1.05rem;
    font-weight: 950;
    letter-spacing: 0.01rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.34);
    box-shadow: 0 16px 30px rgba(210, 33, 42, 0.2);
}

.hero-content .btn-primary:hover,
.hero-content .btn-primary:focus {
    background-color: rgba(5, 43, 126, 0.78);
    box-shadow: 0 18px 34px rgba(5, 43, 126, 0.22);
}

.hero-search {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 1.55rem 1.65rem;
    box-shadow: 0 22px 58px rgba(12, 40, 78, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.48);
    max-width: 580px;
    width: 100%;
    height: 420px;
    display: flex;
    flex-direction: column;
}

.search-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(5, 43, 126, 0.12);
    border-radius: 8px;
}

.tab-button {
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--brand-blue);
    min-height: 66px;
    padding: 0.75rem 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.98rem;
    line-height: 1.18;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-button:hover,
.tab-button:focus {
    background: rgba(5, 43, 126, 0.1);
    transform: translateY(-1px);
}

.button-multiline {
    display: block;
    line-height: 1.2;
    text-align: center;
}

.tab-button.active {
    background: rgba(5, 43, 126, 0.7);
    color: white;
    box-shadow: 0 12px 26px rgba(5, 43, 126, 0.18);
    transform: translateY(-1px);
}

.tab-content {
    display: grid;
    gap: 0.85rem;
    flex: 1;
    height: 240px;
    align-content: center;
}

.tab-content[hidden] {
    display: none;
}

.hero-search h3 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
}

.search-title {
    font-family: var(--font-display);
    color: var(--brand-blue);
    text-align: center;
    font-size: clamp(1.65rem, 2.1vw, 2.15rem) !important;
    line-height: 1.02;
    margin: 0 auto 1.15rem !important;
    font-weight: 700;
    background: transparent;
    padding: 0 0 0.85rem;
    border-radius: 0;
    display: block;
    max-width: 380px;
    border-bottom: 2px solid rgba(210, 33, 42, 0.35);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hero-search form,
.buyer-form,
.seller-form {
    display: grid;
    gap: 0.9rem;
}

.hero-search input,
.hero-search textarea,
.hero-search select {
    box-sizing: border-box;
    width: 100%;
    padding: 0.95rem 1.1rem;
    border-radius: 8px;
    border: 1px solid #dde2ed;
    font-size: 1rem;
    font-family: var(--font-body);
    background: white;
}

.search-input {
    border-radius: 999px !important;
    padding: 1.05rem 1.35rem !important;
    box-shadow: inset 0 1px 0 rgba(5, 43, 126, 0.04);
    font-family: var(--font-body) !important;
}

.hero-search button {
    width: 100%;
    font-size: 1rem;
}

.search-button {
    border-radius: 999px;
    background: rgba(210, 33, 42, 0.7);
    color: white;
    font-weight: 900;
    border: 0;
    padding: 1.05rem 1.35rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 14px 28px rgba(210, 33, 42, 0.18);
}

.search-button:hover,
.search-button:focus {
    background: rgba(5, 43, 126, 0.78);
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(5, 43, 126, 0.18);
}

.seller-form .seller-submit {
    border-radius: 999px;
    background: rgba(210, 33, 42, 0.7);
    color: white;
    font-weight: 900;
    border: 0;
    padding: 1.05rem 1.35rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 14px 28px rgba(210, 33, 42, 0.18);
}

.seller-form .seller-submit:hover,
.seller-form .seller-submit:focus {
    background: rgba(5, 43, 126, 0.78);
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(5, 43, 126, 0.18);
}

.seller-subtitle {
    margin: 0.2rem 0 1rem;
    color: rgba(255,255,255,0.95);
    line-height: 1.5;
    font-weight: 600;
    text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}

/* Ensure form inputs use the same primary font and placeholders match */
.hero-search input,
.hero-search textarea,
.seller-form input {
    font-family: var(--font-body);
}
.hero-search input::placeholder,
.hero-search textarea::placeholder,
.seller-form input::placeholder {
    font-family: var(--font-body);
    color: var(--text-muted);
    opacity: 0.95;
}

.seller-agent {
    margin: 0;
    padding-top: 0.25rem;
    color: var(--brand-blue);
    font-weight: 800;
    text-align: center;
    font-size: 0.9rem;
}

.hero-categories,
.property-types {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    justify-content: center;
}

.hero-categories a,
.property-button {
    background: rgba(255, 255, 255, 0.5);
    color: var(--brand-blue);
    padding: 0.72rem 0.9rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: clamp(14px, 1vw, 16px);
    font-family: var(--font-body);
    font-weight: 800;
    border: 1px solid rgba(5, 43, 126, 0.08);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    text-align: center;
}

.hero-categories a:hover,
.hero-categories a:focus,
.property-button:hover,
.property-button:focus {
    background: rgba(5, 43, 126, 0.7);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(5, 43, 126, 0.15);
}

.property-button.active {
    background: rgba(5, 43, 126, 0.7);
    color: white;
    border-color: var(--brand-blue);
    box-shadow: 0 8px 20px rgba(5, 43, 126, 0.2);
}

main {
    padding: 0 2rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.35);
    padding: 1rem 1.25rem;
    border-radius: 6px;
    display: inline-flex;
    flex-direction: column;
    gap: 0.4rem;
}

.section-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.section-header h2 {
    font-family: var(--font-display);
    margin: 0;
    font-size: 1.9rem;
    line-height: 1.05;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.section-title {
    width: fit-content;
    max-width: min(100%, 760px);
    margin: 3rem auto 1.75rem;
    padding: 0.95rem 1.35rem;
    background: rgba(10, 42, 93, 0.82);
    border-left: 5px solid var(--brand-red);
    border-radius: 6px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
    text-align: center;
}

.section-title p {
    margin: 0 0 0.35rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16rem;
    text-transform: uppercase;
}

.section-title h2 {
    font-family: var(--font-display);
    margin: 0;
    color: white;
    font-size: clamp(2rem, 3vw, 2.7rem);
    line-height: 1.02;
    font-weight: 700;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.34);
}

.section-header-single {
    display: flex;
    justify-content: center;
    width: fit-content;
    margin: 3rem auto 1.75rem;
    padding: 1rem 1.45rem;
    background: rgba(10, 42, 93, 0.82);
    border-left: 5px solid var(--brand-red);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.section-header-single h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 2.7rem);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
}

.rent-update-cta {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.home-rent-update-cta {
    margin-top: 1.75rem;
    margin-bottom: 2.75rem;
}

.rent-update-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 760px);
    min-height: 72px;
    padding: 1.1rem 1.6rem;
    color: white;
    background: rgba(210, 33, 42, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 6px;
    box-shadow: 0 24px 55px rgba(210, 33, 42, 0.34), 0 10px 28px rgba(5, 43, 126, 0.16);
    text-align: center;
    text-decoration: none;
    font-size: clamp(1.08rem, 2vw, 1.45rem);
    font-weight: 900;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.32);
    line-height: 1.2;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.rent-update-cta a:hover,
.rent-update-cta a:focus {
    background: rgba(5, 43, 126, 0.78);
    transform: translateY(-2px);
    box-shadow: 0 28px 62px rgba(5, 43, 126, 0.32);
}

.propiedades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.propiedad-card {
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    overflow: hidden;
    display: grid;
    grid-template-rows: 66% 34%;
    aspect-ratio: 4 / 5;
    box-shadow: 0 16px 45px rgba(12, 40, 78, 0.08);
}

.propiedad-media {
    position: relative;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.propiedad-media-link {
    display: block;
    width: 100%;
    height: 100%;
}

.propiedad-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.propiedad-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--brand-red);
    color: white;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.02rem;
    text-transform: uppercase;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.propiedad-body {
    padding: 0.72rem 0.9rem 0.78rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(94px, 108px);
    gap: 0.55rem;
    align-items: stretch;
    min-height: 0;
}

.propiedad-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
    align-items: start;
    min-width: 0;
}

.propiedad-summary-text {
    min-width: 0;
    display: grid;
    gap: 0.35rem;
}

.propiedad-type {
    color: var(--brand-blue);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

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

.propiedad-body h3 {
    font-family: var(--font-display);
    margin: 0;
    font-size: 1.32rem;
    line-height: 1.05;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.propiedad-price {
    position: absolute;
    right: 0.9rem;
    bottom: 0.9rem;
    margin: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(210, 33, 42, 0.16));
    border: 2px solid rgba(210, 33, 42, 0.9);
    border-radius: 4px;
    color: var(--brand-red);
    padding: 0.62rem 0.78rem;
    min-width: max-content;
    font-weight: 900;
    font-size: 1.08rem;
    line-height: 1.05;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 14px 30px rgba(12, 40, 78, 0.16);
}

.propiedad-info {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.propiedad-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.propiedad-tags span {
    background: #eef2ff;
    color: var(--brand-dark);
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.34rem;
    align-items: stretch;
    align-self: center;
}

.card-actions .btn-secondary,
.card-actions .btn-whatsapp {
    width: auto;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-inline: 0.58rem;
    font-size: 0.7rem;
    line-height: 1.1;
}

.section-contacto {
    margin-top: 4rem;
}

.section-instagram {
    margin-top: 4rem;
}

.instagram-heading {
    width: fit-content;
    max-width: 90%;
    margin: 0 auto 1.75rem;
    padding: 1rem 1.45rem;
    text-align: center;
    color: white;
    background: rgba(10, 42, 93, 0.82);
    border-left: 5px solid var(--brand-red);
    border-radius: 6px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.instagram-heading.instagram-heading-box {
    background: rgba(10, 42, 75, 0.78);
    padding: 1rem 1.4rem;
    border-radius: 16px;
    display: inline-block;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.instagram-heading p {
    margin: 0 0 0.35rem;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
    letter-spacing: 0.16rem;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.instagram-heading h2 {
    font-family: var(--font-display);
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.7rem);
    line-height: 1.02;
    font-weight: 700;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.38);
}

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

.instagram-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    padding: 0;
    box-shadow: 0 16px 45px rgba(12, 40, 78, 0.08);
    min-width: 0;
    overflow: hidden;
    text-decoration: none;
    color: var(--brand-dark);
    display: grid;
    aspect-ratio: 4 / 5;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.instagram-card-icon {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: white;
    border-radius: 8px;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 6%, #fd5949 42%, #d6249f 63%, #285AEB 100%);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.instagram-card-icon i {
    font-size: 1.2rem;
}

.instagram-card:hover,
.instagram-card:focus {
    transform: translateY(-3px);
    box-shadow: 0 22px 55px rgba(12, 40, 78, 0.14);
}

.instagram-card-media {
    display: block;
    width: 100%;
    height: 100%;
    background: white;
    overflow: hidden;
}

.instagram-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.instagram-card-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: white;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 6%, #fd5949 42%, #d6249f 63%, #285AEB 100%);
}

.instagram-card-placeholder i {
    font-size: 3rem;
}

.instagram-card-title {
    display: none;
}

.section-location {
    margin-top: 4rem;
}

.location-panel {
    display: grid;
    grid-template-columns: minmax(340px, 0.44fr) minmax(0, 1fr);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    box-shadow: 0 22px 58px rgba(12, 40, 78, 0.14);
}

.location-info {
    position: relative;
    display: grid;
    align-content: center;
    gap: 0.65rem;
    padding: 2rem;
    background: rgba(10, 42, 93, 0.86);
    color: white;
}

.location-info::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 8px;
    background: var(--brand-red);
}

.location-info p {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.16rem;
    text-transform: uppercase;
    opacity: 0.82;
}

.location-info h2 {
    font-family: var(--font-display);
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.75rem);
    line-height: 1;
}

.location-info a {
    color: white;
    font-weight: 800;
    line-height: 1.5;
    text-decoration-color: rgba(255, 255, 255, 0.55);
    text-underline-offset: 4px;
}

.location-contact {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.85rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.location-contact-item {
    display: grid;
    gap: 0.2rem;
    max-width: 100%;
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.location-contact-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.location-contact-label i {
    flex: 0 0 18px;
    width: 18px;
    font-size: 1.05rem;
    text-align: center;
}

.location-contact-value {
    padding-left: 1.55rem;
    color: white;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.35;
}

.location-map {
    min-height: 360px;
    background: #e8edf4;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
    display: block;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 560px;
}

.contact-card {
    background: white;
    border-radius: 6px;
    padding: 1.5rem;
    border: 1px solid var(--border-soft);
    box-shadow: 0 20px 50px rgba(12, 40, 78, 0.06);
}

.contact-card h3 {
    font-family: var(--font-display);
    margin-top: 0;
    font-size: 1.45rem;
}

.contact-card p {
    margin: 0.8rem 0 0;
    color: var(--text-muted);
}

.contact-card a {
    color: var(--brand-blue);
}

.site-footer {
    background: #0a1e47;
    color: #d1dbff;
    text-align: center;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-search {
        order: -1;
    }

    .site-header-main {
        grid-template-columns: 260px minmax(0, 1fr);
        grid-template-rows: 24px 38px;
        gap: 0.35rem 1rem;
        height: calc(var(--header-height) - 4px);
        min-height: 0;
    }

    .site-brand img {
        height: 70px;
        max-width: 250px;
    }

    .header-professional {
        justify-self: end;
        grid-template-columns: auto auto auto;
        gap: 0.55rem;
        text-align: right;
        font-size: 0.62rem;
        white-space: nowrap;
    }

    .site-nav {
        grid-column: 2;
        grid-row: 2;
        width: auto;
        justify-content: flex-end;
    }

    .site-nav a {
        font-size: 0.6rem;
        padding: 0.4rem 0.45rem;
    }
}

@media (max-width: 520px) {
    .propiedad-card {
        grid-template-rows: auto auto;
        aspect-ratio: auto;
    }

    .propiedad-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        align-items: stretch;
        gap: 0.6rem;
        padding: 0.85rem 2.65rem 0.8rem 0.9rem;
    }

    .propiedad-summary {
        grid-template-columns: 1fr;
        grid-column: 1;
        min-width: 0;
        gap: 0.35rem;
    }

    .propiedad-heading {
        grid-template-columns: 1fr;
    }

    .propiedad-type {
        font-size: 0.72rem;
        letter-spacing: 0.04rem;
    }

    .propiedad-summary-text {
        gap: 0.28rem;
    }

    .propiedad-body h3 {
        font-size: 1rem;
        line-height: 1.1;
    }

    .propiedad-price {
        right: 3.25rem;
        bottom: 0.9rem;
        min-width: 0;
        max-width: calc(100% - 4.5rem);
        padding: 0.38rem 0.48rem;
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .propiedad-info {
        font-size: 0.78rem;
        line-height: 1.3;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .card-actions {
        grid-template-columns: 1fr;
        grid-column: 1;
        margin-top: 0;
        align-self: stretch;
        align-content: start;
        gap: 0.5rem;
    }

    .card-actions .btn-secondary,
    .card-actions .btn-whatsapp {
        width: 100%;
        min-height: 34px;
        padding: 0.6rem 0.9rem;
        font-size: 0.85rem;
        line-height: 1.2;
    }
}
@media (max-width: 768px) {
    :root {
        --header-height: 78px;
    }

    body,
    .background-fader__layer {
        background-attachment: scroll;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-search {
        padding: 1.5rem;
        height: auto;
        min-height: 280px;
    }

    .search-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem;
        margin-bottom: 0.85rem;
        padding: 0.35rem;
    }

    .tab-button {
        min-height: 28px;
        padding: 0.26rem 0.22rem;
        font-size: 0.54rem;
    }

    .tab-content {
        height: auto;
        min-height: 180px;
    }

    .hero-categories,
    .property-types {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-categories a,
    .property-button {
        text-align: center;
    }

    .site-header-main {
        grid-template-columns: minmax(150px, 1fr) auto;
        grid-template-rows: 1fr;
        min-height: calc(var(--header-height) - 8px);
        height: calc(var(--header-height) - 4px);
        padding: 0.35rem 1rem;
    }

    .site-brand {
        grid-row: auto;
    }

    .site-brand img {
        height: 62px;
        max-width: 210px;
    }

    .header-professional {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        justify-self: end;
        align-self: center;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 1rem;
        right: 1rem;
        display: none;
        grid-template-columns: 1fr;
        justify-content: stretch;
        padding: 0.75rem;
        box-shadow: 0 18px 38px rgba(5, 43, 126, 0.18);
    }

    .site-header.is-nav-open .site-nav {
        display: grid;
    }

    .site-nav a {
        width: 100%;
        text-align: center;
    }

    .social-float {
        right: 8px;
        top: 52%;
        gap: 7px;
    }

    .social-float-link {
        width: 42px;
        height: 42px;
    }

    .social-float-link i {
        font-size: 1.28rem;
    }

    .instagram-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
        width: min(100%, 360px);
        margin: 0 auto;
    }

    .instagram-card {
        width: 100%;
        min-height: 0;
    }

    .section-title {
        max-width: calc(100vw - 2rem);
        padding: 0.85rem 1rem;
    }

    .section-title h2 {
        font-size: 1.45rem;
        line-height: 1.05;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 2rem 1rem;
    }

    main {
        padding: 0 1rem 2rem;
    }

    .rent-calculator-main,
    .valuation-main {
        padding: 1rem;
    }

    .rent-calculator-hero,
    .rent-calculator-card,
    .rent-result-panel,
    .rent-legal-notes,
    .valuation-hero,
    .valuation-column {
        padding: 1.15rem;
    }

    .rent-calculator-layout,
    .rent-result-grid,
    .valuation-form {
        grid-template-columns: 1fr;
    }

    .rent-result-panel {
        position: static;
    }

    .location-panel {
        grid-template-columns: 1fr;
    }

    .location-info {
        padding: 1.25rem;
    }

    .location-map,
    .location-map iframe {
        min-height: 300px;
    }

    .valuation-actions {
        grid-column: 1;
    }

    .valuation-actions,
    .valuation-actions .btn-primary {
        width: 100%;
    }

    .site-nav {
        gap: 0.5rem;
        justify-content: center;
        border-left-width: 4px;
    }

    .site-header-main {
        grid-template-columns: minmax(150px, 1fr) auto;
        justify-items: stretch;
    }

    .site-brand {
        grid-row: auto;
    }

    .header-professional {
        justify-self: start;
        text-align: left;
        width: 100%;
        max-width: none;
    }

    .site-brand img {
        height: 60px;
    }
}

@media (min-width: 641px) {
    :root {
        --header-height: 86px;
    }

    .site-header {
        height: 86px;
        min-height: 86px;
    }

    .site-header-main {
        grid-template-columns: 300px minmax(0, 1fr);
        grid-template-rows: 24px 38px;
        gap: 6px 24px;
        height: 82px;
        min-height: 0;
        padding: 6px 32px 7px;
    }

    .site-brand {
        grid-row: 1 / 3;
    }

    .site-brand img {
        height: 74px;
        width: auto;
        max-width: 292px;
        object-fit: contain;
    }

    .header-professional {
        display: grid;
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        grid-template-columns: auto auto auto;
        gap: 14px;
        width: auto;
        max-width: none;
        overflow: visible;
        text-align: right;
        white-space: nowrap;
        font-size: 11px;
    }

    .nav-toggle {
        display: none;
    }

    .site-nav {
        position: static;
        grid-column: 2;
        grid-row: 2;
        display: flex;
        grid-template-columns: none;
        width: auto;
        justify-self: end;
        justify-content: flex-end;
        gap: 4px;
        padding: 6px 9px;
        box-shadow: none;
    }

    .site-nav a {
        width: auto;
        padding: 7px 9px;
        font-size: 11px;
        text-align: center;
        white-space: nowrap;
    }
}

.video {
    margin-top: 1.5rem;
}

/* ============ RENT CALCULATOR PAGE ============ */

.rent-calculator-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.5rem;
}

.rent-calculator-hero {
    position: relative;
    overflow: hidden;
    background: white;
    border: 1px solid rgba(5, 43, 126, 0.12);
    border-radius: 6px;
    box-shadow: 0 24px 70px rgba(5, 43, 126, 0.14);
    margin-bottom: 1.5rem;
    padding: 2rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.rent-calculator-hero::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 10px;
    background: var(--brand-red);
}

.rent-calculator-hero h1 {
    font-family: var(--font-display);
    color: var(--brand-blue);
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 1;
    margin: 1rem 0 0.75rem;
}

.rent-calculator-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.7;
}

.rent-calculator-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.5rem;
    align-items: start;
}

.rent-calculator-card,
.rent-result-panel,
.rent-legal-notes {
    background: white;
    border: 1px solid rgba(5, 43, 126, 0.12);
    border-radius: 6px;
    box-shadow: 0 14px 36px rgba(11, 33, 81, 0.06);
}

.rent-calculator-card {
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
}

.rent-form-header h2,
.rent-legal-notes h2 {
    font-family: var(--font-display);
    color: var(--brand-blue);
    font-size: 2rem;
    margin: 0 0 0.35rem;
}

.rent-form-header p,
.rent-legal-notes p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.rent-field {
    display: grid;
    gap: 0.45rem;
    color: var(--brand-dark);
    font-weight: 800;
}

.rent-field input {
    width: 100%;
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    padding: 0.95rem 1rem;
    font: inherit;
    color: var(--text-dark);
    background: #f8faff;
}

.rent-field select,
.rent-field textarea {
    width: 100%;
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    padding: 0.95rem 1rem;
    font: inherit;
    color: var(--text-dark);
    background: #f8faff;
}

.rent-field textarea {
    resize: vertical;
    min-height: 132px;
}

.rent-field input:focus,
.rent-field select:focus,
.rent-field textarea:focus {
    outline: 2px solid rgba(5, 43, 126, 0.16);
    border-color: var(--brand-blue);
    background: white;
}

.rent-submit {
    width: 100%;
    border: 0;
    cursor: pointer;
}

.rent-alert {
    border-radius: 4px;
    padding: 0.85rem 1rem;
    font-weight: 700;
}

.rent-alert p {
    margin: 0.2rem 0;
}

.rent-alert-error {
    color: #8c1118;
    background: #fff0f1;
    border: 1px solid rgba(210, 33, 42, 0.18);
}

.rent-result-panel {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
    padding: 1.5rem;
    background: var(--brand-blue);
    color: white;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.rent-result-label {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.rent-result-panel > strong {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    margin-bottom: 1.25rem;
}

.rent-result-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.rent-result-grid div {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    padding: 0.8rem;
}

.rent-result-grid span {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    opacity: 0.72;
    text-transform: uppercase;
}

.rent-result-grid b {
    display: block;
    margin-top: 0.25rem;
    font-size: 1rem;
}

.rent-result-note {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.65;
}

.rent-legal-notes {
    margin-top: 1.5rem;
    padding: 1.5rem;
    display: grid;
    gap: 0.85rem;
}

/* ============ VALUATION PAGE ============ */

.valuation-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.5rem;
}

.valuation-hero {
    position: relative;
    overflow: hidden;
    background: white;
    border: 1px solid rgba(5, 43, 126, 0.12);
    border-radius: 6px;
    box-shadow: 0 24px 70px rgba(5, 43, 126, 0.14);
    margin-bottom: 1.5rem;
    padding: 2rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.valuation-hero::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 10px;
    background: var(--brand-red);
}

.valuation-hero h1 {
    font-family: var(--font-display);
    color: var(--brand-blue);
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 1;
    margin: 1rem 0 0.75rem;
}

.valuation-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.7;
}

.valuation-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

.valuation-column {
    display: grid;
    gap: 1rem;
    background: white;
    border: 1px solid rgba(5, 43, 126, 0.12);
    border-radius: 6px;
    box-shadow: 0 14px 36px rgba(11, 33, 81, 0.06);
    padding: 1.5rem;
}

.valuation-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
}

.valuation-actions .btn-primary {
    border: 0;
    cursor: pointer;
    min-width: 260px;
    background: #25D366;
    box-shadow: 0 16px 34px rgba(37, 211, 102, 0.22);
}

.valuation-actions .btn-primary:hover,
.valuation-actions .btn-primary:focus {
    background: #1ebe58;
}
.valuation-main-simple {
    max-width: 920px;
}

.valuation-hero-simple {
    margin-bottom: 1rem;
    padding: 1.75rem 2rem;
}

.valuation-hero-simple h1 {
    max-width: 760px;
}

.valuation-form-simple {
    gap: 1rem;
}

.valuation-column-simple {
    gap: 1.15rem;
    padding: 1.75rem;
    border-left: 5px solid var(--brand-blue);
    box-shadow: 0 18px 50px rgba(5, 43, 126, 0.1);
}

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

.valuation-actions-simple {
    justify-content: stretch;
}

.valuation-actions-simple .btn-primary {
    width: 100%;
    min-width: 0;
    gap: 0.55rem;
    padding: 1rem 1.25rem;
    font-size: 1rem;
}


@media (max-width: 640px) {
    .valuation-hero-simple,
    .valuation-column-simple {
        padding: 1.2rem;
    }

    .valuation-fields-grid {
        grid-template-columns: 1fr;
    }
}
/* ============ PROPERTY DETAIL PAGE STYLES ============ */

.property-detail-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Property Header */
.property-header {
    position: relative;
    overflow: hidden;
    background: white;
    color: var(--brand-dark);
    padding: 0;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    box-shadow: 0 24px 70px rgba(5, 43, 126, 0.14);
    border: 1px solid rgba(5, 43, 126, 0.12);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.property-header::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 10px;
    background: var(--brand-red);
}

.property-header::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 0;
    bottom: 0;
    height: 7px;
    background: var(--brand-blue);
    opacity: 0.95;
}

.property-header-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 1.5rem;
    align-items: center;
    padding: 1.65rem 2rem 2.1rem;
}

.header-content {
    max-width: 900px;
}

.property-eyebrow-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.property-type {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(5, 43, 126, 0.14);
    border-left: 5px solid var(--brand-red);
    color: var(--brand-blue);
    background-color: #f7f9fd;
    padding: 0.65rem 1rem;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12rem;
    margin: 0;
    box-shadow: 0 10px 22px rgba(5, 43, 126, 0.08);
}

.property-title {
    font-family: var(--font-display);
    font-size: 3.15rem;
    margin: 0 0 1rem 0;
    line-height: 1.05;
    font-weight: 700;
    color: var(--brand-blue);
}

.property-location {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-dark);
    opacity: 1;
    margin: 0;
}

.property-location span {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 2px;
    transform: rotate(45deg);
    background: var(--brand-red);
    box-shadow: 0 0 0 5px rgba(210, 33, 42, 0.2);
    flex: 0 0 auto;
}

.property-price-panel {
    position: relative;
    justify-self: end;
    width: 100%;
    background: var(--brand-red);
    color: white;
    border-radius: 4px;
    padding: 1.45rem 1.25rem;
    box-shadow: 0 18px 45px rgba(210, 33, 42, 0.18);
    border: 1px solid rgba(210, 33, 42, 0.28);
    text-align: center;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.property-price {
    font-size: 2.05rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    color: white;
    text-align: center;
    white-space: nowrap;
}

/* Main Container - Two column layout */
.property-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 1.35rem;
    align-items: start;
    margin-bottom: 1.25rem;
}

.property-gallery-section {
    width: 100%;
}

.property-gallery {
    background: white;
    border-radius: 6px;
    padding: 0;
    box-shadow: 0 14px 36px rgba(11, 33, 81, 0.06);
    overflow: hidden;
}

.gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 520px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-main img:hover {
    transform: scale(1.02);
}

.gallery-main.no-image {
    min-height: 450px;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.65rem;
    padding: 0.9rem 0.8rem;
    background: #f9f9f9;
    overflow-x: auto;
    align-items: center;
    justify-content: flex-start;
    scroll-padding-inline: 0.8rem;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 3px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--brand-blue);
    border-radius: 3px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb:hover {
    background: #052b7e;
}

.thumbnail {
    flex: 0 0 auto;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: none;
    padding: 0;
    transition: all 0.3s ease;
    width: 148px;
    height: 108px;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.thumbnail:hover {
    border-color: #ddd;
    transform: scale(0.95);
}

.thumbnail:hover img {
    transform: scale(1.1);
}

.thumbnail.active {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 2px rgba(5, 43, 126, 0.3), inset 0 0 0 1px var(--brand-blue);
}

@media (max-width: 768px) {
    .property-gallery {
        border-radius: 16px;
    }

    .gallery-main {
        aspect-ratio: 4 / 3;
    }

    .gallery-thumbnails {
        justify-content: flex-start;
        gap: 0.7rem;
        padding: 0.85rem;
    }

    .thumbnail {
        width: 132px;
        height: 104px;
    }
}

@media (max-width: 480px) {
    .property-gallery {
        border-radius: 12px;
    }

    .gallery-main {
        aspect-ratio: 4 / 3;
        min-height: 170px;
        max-height: 210px;
    }

    .gallery-thumbnails {
        justify-content: flex-start;
        gap: 0.45rem;
        padding: 0.5rem 0.45rem;
    }

    .thumbnail {
        width: 76px;
        height: 56px;
    }

    .thumbnail.active {
        box-shadow: 0 0 0 1px rgba(5, 43, 126, 0.3), inset 0 0 0 1px var(--brand-blue);
    }

    .social-float,
    .floating-socials {
        position: fixed !important;
        right: 8px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 10050 !important;
        display: grid !important;
        gap: 8px !important;
    }

    .social-float-link,
    .floating-social-btn {
        width: 42px !important;
        height: 42px !important;
    }

    .social-float-link i,
    .floating-social-btn i {
        font-size: 1.25rem !important;
    }
}
/* Sidebar */
.property-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card {
    background: white;
    border-radius: 6px;
    padding: 1.35rem;
    box-shadow: 0 12px 32px rgba(11, 33, 81, 0.055);
    border: 1px solid #f0f2f5;
}

.card h3 {
    font-family: var(--font-body);
    margin: 0 0 1rem 0;
    font-size: 1.15rem;
    color: var(--brand-dark);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

/* Summary Grid */
.property-sidebar .property-summary {
    border: 1px solid rgba(5, 43, 126, 0.18);
    border-left: 5px solid var(--brand-blue);
    box-shadow: 0 22px 58px rgba(5, 43, 126, 0.13);
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.78rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.summary-item .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.summary-item .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-blue);
}

.summary-item-code {
    grid-column: auto;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(5, 43, 126, 0.1);
}

/* Contact Card */
.property-contact-card {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.property-contact-card h3 {
    color: var(--brand-blue);
}

.professional-info {
    background: white;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--brand-blue);
}

.professional-name {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    color: var(--brand-dark);
}

.professional-title {
    margin: 0 0 0.25rem 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.professional-address {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem;
    background: white;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.contact-item:hover {
    background: #e8f0ff;
    color: var(--brand-blue);
}

.contact-item .icon {
    font-size: 1.25rem;
}

.btn-whatsapp-contact {
    display: block;
    background: linear-gradient(135deg, #25d366 0%, #1ba851 100%);
    color: white;
    text-decoration: none;
    padding: 0.86rem 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.summary-whatsapp {
    margin-top: 1rem;
}

.btn-whatsapp-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

/* Property Code */
.property-code {
    text-align: center;
    background: linear-gradient(135deg, #f0f2f5 0%, #e8ebf0 100%);
}

.property-code p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.property-code strong {
    color: var(--brand-blue);
    font-size: 1.1rem;
}

/* Property Sections */
.property-sections {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.property-section {
    scroll-margin-top: 80px;
}

.property-section h2 {
    font-family: var(--font-display);
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brand-dark);
    border-bottom: 3px solid var(--brand-blue);
    padding-bottom: 0.75rem;
}

.section-content {
    line-height: 1.8;
    color: var(--text-dark);
}

.section-content p {
    margin: 0 0 1rem 0;
}

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

/* Location Section */
.location-address {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-blue);
    margin-bottom: 1rem;
}

.btn-map-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--brand-blue) 0%, #052b7e 100%);
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-map-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 33, 81, 0.3);
}

/* Data Grid */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.data-item {
    padding: 1.25rem;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 4px;
    border-left: 4px solid var(--brand-blue);
}

.data-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.data-value {
    display: block;
    font-size: 1.3rem;
    color: var(--brand-dark);
    font-weight: 700;
}

/* Services/Facilidades */
.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.service-chip {
    display: inline-block;
    background: linear-gradient(135deg, #e8f0ff 0%, #f0f2f5 100%);
    color: var(--brand-blue);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(5, 43, 126, 0.2);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0f0;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Mapa de Google */
.property-map-container {
    width: 100%;
    height: 500px;
    border-radius: 4px;
    overflow: hidden;
    background: #e8ebf0;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(11, 33, 81, 0.08);
}

.property-map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

/* Footer CTA */
.property-footer-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: white;
    border-top: 1px solid #e8ebf0;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.property-footer-cta .btn-primary-large {
    display: block;
    background: linear-gradient(135deg, var(--brand-blue) 0%, #052b7e 100%);
    color: white;
    text-decoration: none;
    padding: 1rem;
    border-radius: 16px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .property-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .property-header-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 2rem 2.35rem;
    }

    .property-price-panel {
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
    }

    .property-title {
        font-size: 2.4rem;
    }

    .property-price {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .property-detail-main {
        padding: 1rem;
    }

    .property-header {
        border-radius: 6px;
        margin-bottom: 1.5rem;
    }

    .property-header-inner {
        padding: 1.5rem 1.5rem 1.85rem;
    }

    .property-title {
        font-size: 2rem;
    }

    .property-price {
        font-size: 1.55rem;
    }

    .gallery-thumbnails {
        justify-content: flex-start;
        gap: 0.7rem;
        padding: 0.85rem;
    }

    .thumbnail {
        width: 132px;
        height: 104px;
    }

    .property-sections {
        gap: 1.5rem;
    }

    .data-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .property-map-container {
        height: 400px;
        margin: 1rem 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.55rem;
    }

    .card {
        padding: 1.25rem;
    }

    .summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}
}

@media (max-width: 480px) {
    .property-detail-main {
        padding: 0.75rem;
    }

    .property-header {
        margin-bottom: 1rem;
        border-radius: 6px;
    }

    .property-header::before {
        width: 6px;
    }

    .property-header::after {
        left: 6px;
    }

    .property-header-inner {
        padding: 1.15rem 1rem 1.45rem 1.25rem;
        gap: 1rem;
    }

    .property-type {
        font-size: 0.68rem;
        padding: 0.5rem 0.7rem;
        border-left-width: 4px;
    }

    .property-title {
        font-size: 1.55rem;
    }

    .property-location {
        font-size: 0.9rem;
    }

    .property-price {
        font-size: 1.45rem;
    }

    .property-price-panel {
        border-radius: 4px;
        padding: 1.15rem 0.85rem;
    }

    .property-gallery {
        padding: 0.75rem;
    }

    .gallery-main {
        aspect-ratio: 4 / 3;
        margin-bottom: 0.75rem;
    }

    .gallery-thumbnails {
        display: flex;
        gap: 0.45rem;
        padding: 0.5rem 0.45rem;
        background: #f9f9f9;
        overflow-x: auto;
        align-items: center;
        justify-content: flex-start;
    }

    .thumbnail {
        width: 76px;
        height: 56px;
    }

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

    .property-map-container {
        height: 300px;
        margin: 1rem 0;
        border-radius: 12px;
    }

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

    .card {
        padding: 1rem;
        border-radius: 16px;
        width: 100%;
        max-width: 100%;
    }

    .card h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .property-detail-main,
    .property-container,
    .property-gallery-section,
    .property-sidebar,
    .property-sections,
    .property-section,
    .property-section.card {
        width: 100%;
        max-width: 100%;
    }
}

/* Estilos antiguos removidos - ahora usando .property-detail-* */


.galeria-main-image {
    border-radius: 20px;
    overflow: hidden;
    max-height: 520px;
}

.galeria-main-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.galeria-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.55rem;
    margin-top: 1rem;
}

.galeria-thumbnails button {
    border: 2px solid transparent;
    background: transparent;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.galeria-thumbnails button.active,
.galeria-thumbnails button:hover {
    border-color: var(--brand-blue);
}

.galeria-thumbnails img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.video iframe {
    width: 100%;
    min-height: 350px;
    border-radius: 18px;
}

@media (max-width: 768px) {
    .propiedad-detalle {
        padding: 1.5rem;
    }

    .galeria-thumbnails img {
        height: 90px;
    }
}

.section-destacados {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

footer {
    background-color: var(--brand-dark);
    color: white;
    text-align: center;
    padding: 1rem;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer p {
    margin: 0;
}

/* ============ PROPIEDADES PAGE STYLES ============ */

/* Centered section header */
.section-header-centered {
    background: rgba(10, 42, 75, 0.78) !important;
    padding: 1.25rem 1.5rem !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    max-width: max-content !important;
    margin: 0 auto !important;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.section-header-centered h2 {
    font-family: var(--font-display);
    color: white;
    font-size: clamp(2rem, 3vw, 3rem);
    margin: 0;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.section-header-centered p {
    display: none;
}

/* Section action button */
.section-action {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(5, 43, 126, 0.1);
}

.section-action .btn-primary {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Propiedades Page Main */
.propiedades-page-main {
    padding: 2rem 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 247, 251, 0.95) 100%);
    min-height: calc(100vh - var(--header-height));
}

/* Propiedades Page Container */
.propiedades-page-container {
    display: grid;
    grid-template-columns: 30% 60%;
    gap: 3rem;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    align-items: start;
}

/* Propiedades Sidebar */
.propiedades-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
    height: fit-content;
}

.search-box {
    background: white;
    border-radius: 8px;
    padding: 1.8rem;
    box-shadow: 0 8px 24px rgba(12, 40, 78, 0.08);
    border: 1px solid rgba(5, 43, 126, 0.08);
}

.search-box h3 {
    font-family: var(--font-display);
    color: var(--brand-blue);
    font-size: 1.4rem;
    margin: 0 0 1.5rem;
    line-height: 1.1;
}

.search-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: grid;
    gap: 0.55rem;
}

.form-group label {
    display: block;
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.search-form input,
.search-form select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus,
.search-form select:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(5, 43, 126, 0.1);
}

.property-types-vertical {
    display: grid;
    gap: 0.6rem;
}

.property-button-vertical {
    background: #f0f2f7;
    color: var(--brand-blue);
    padding: 0.8rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    border: 2px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    text-align: center;
    display: block;
}

.property-button-vertical:hover {
    background: var(--brand-blue);
    color: white;
    transform: translateX(4px);
}

.property-button-vertical.active {
    background: var(--brand-blue);
    color: white;
    border-color: var(--brand-blue);
    box-shadow: 0 4px 12px rgba(5, 43, 126, 0.2);
}

.search-form .btn-primary,
.search-form .btn-secondary {
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
    border-radius: 6px;
}

.search-form .btn-secondary {
    border: 2px solid var(--brand-blue);
    background: white;
    color: var(--brand-blue);
}

.search-form .btn-secondary:hover {
    background: var(--brand-blue);
    color: white;
}

/* Propiedades Content */
.propiedades-content {
    display: grid;
    gap: 2rem;
}

.propiedades-header {
    text-align: center;
}

.propiedades-header h2 {
    font-family: var(--font-display);
    color: var(--brand-blue);
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    margin: 0 0 0.5rem;
    line-height: 1.1;
}

.propiedades-count {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.propiedades-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    align-content: start;
    min-height: 680px;
}

.propiedades-grid-page .propiedad-body {
    grid-template-columns: minmax(0, 1fr) minmax(94px, 108px);
    gap: 0.55rem;
}

.propiedades-grid-page .card-actions {
    grid-template-columns: 1fr;
    gap: 0.34rem;
    align-self: center;
}

.propiedades-grid-page .card-actions .btn-secondary,
.propiedades-grid-page .card-actions .btn-whatsapp {
    min-height: 34px;
    padding-inline: 0.58rem;
    font-size: 0.7rem;
}

.propiedades-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.pagination-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(5, 43, 126, 0.18);
    border-radius: 6px;
    background: white;
    color: var(--brand-blue);
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(12, 40, 78, 0.06);
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pagination-number:hover,
.pagination-number:focus,
.pagination-number.active {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: white;
    transform: translateY(-2px);
}

.no-propiedades {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
}

.no-propiedades p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0 0 1.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .instagram-grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }

    .propiedades-page-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .propiedades-sidebar {
        position: static;
        top: auto;
    }

    .search-box {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
        align-items: start;
    }

    .search-box h3 {
        grid-column: 1 / -1;
    }

    .form-group {
        margin: 0;
    }

    .property-types-vertical {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-form {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .search-form .btn-primary,
    .search-form .btn-secondary {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .propiedades-grid-page .propiedad-card {
        grid-template-rows: auto auto;
        aspect-ratio: auto;
    }

    .propiedades-grid-page .propiedad-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 0.6rem;
        padding: 0.85rem 2.65rem 0.8rem 0.9rem;
    }

    .propiedades-grid-page .propiedad-summary {
        grid-column: 1;
        gap: 0.35rem;
    }

    .propiedades-grid-page .propiedad-price {
        right: 3.25rem;
        bottom: 0.9rem;
        max-width: calc(100% - 4.5rem);
        white-space: nowrap;
    }

    .propiedades-grid-page .card-actions {
        grid-column: 1;
        align-self: stretch;
        align-content: start;
        gap: 0.5rem;
    }

    .propiedades-grid-page .card-actions .btn-secondary,
    .propiedades-grid-page .card-actions .btn-whatsapp {
        width: 100%;
        min-height: 34px;
        padding: 0.6rem 0.9rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .propiedades-page-main {
        padding: 1rem 0;
    }

    .propiedades-page-container {
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .search-box {
        padding: 1.2rem;
    }

    .search-box h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .propiedades-grid-page {
        grid-template-columns: 1fr;
        gap: 1rem;
        min-height: auto;
    }

    .propiedades-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .instagram-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
        width: min(100%, 360px);
        margin: 0 auto;
    }
}

/* Detalle mobile overrides */
@media (max-width: 480px) {
    .property-gallery .gallery-thumbnails {
        justify-content: flex-start !important;
        gap: 0.45rem !important;
        padding: 0.5rem 0.45rem !important;
    }

    .property-gallery .thumbnail {
        width: 76px !important;
        height: 56px !important;
    }

    .social-float.floating-socials {
        position: fixed !important;
        right: 10px !important;
        left: auto !important;
        top: 50% !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        z-index: 100000 !important;
        display: grid !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        gap: 7px !important;
    }

    .social-float.floating-socials .social-float-link {
        width: 40px !important;
        height: 40px !important;
    }

    .social-float.floating-socials .social-float-link i {
        font-size: 1.2rem !important;
    }
}




/* Mobile polish for property listing filters */
@media (max-width: 520px) {
    .propiedades-page-container {
        padding: 0 0.75rem;
    }

    .search-box {
        display: block;
        padding: 1rem;
    }

    .search-form {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .search-box h3 {
        margin-bottom: 0.85rem;
    }

    .form-group label {
        font-size: 0.72rem;
        line-height: 1.2;
    }

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

    .property-button-vertical {
        min-height: 38px;
        padding: 0.6rem 0.45rem;
        font-size: 0.78rem;
        line-height: 1.15;
    }

    .search-form input,
    .search-form select {
        min-height: 44px;
        padding: 0.72rem 0.85rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .social-float.floating-socials {
        right: 10px !important;
        top: auto !important;
        bottom: 84px !important;
        transform: none !important;
    }
}

/* Mobile polish for property detail page */
@media (max-width: 520px) {
    .property-detail-main {
        width: 100%;
        max-width: none;
        padding: 0.55rem 0.5rem 1.25rem;
    }

    .property-header {
        margin-bottom: 0.85rem;
        border-radius: 4px;
        clip-path: none;
    }

    .property-header::after {
        height: 5px;
    }

    .property-header-inner {
        padding: 0.85rem 0.75rem 1rem 0.95rem;
        gap: 0.75rem;
    }

    .property-eyebrow-row {
        margin-bottom: 0.55rem;
    }

    .property-type {
        max-width: 100%;
        padding: 0.42rem 0.55rem;
        font-size: 0.58rem;
        line-height: 1.15;
        letter-spacing: 0.06rem;
    }

    .property-title {
        font-size: 1.35rem;
        line-height: 1.08;
        margin-bottom: 0.55rem;
    }

    .property-location {
        align-items: flex-start;
        gap: 0.45rem;
        font-size: 0.78rem;
        line-height: 1.25;
    }

    .property-location span {
        width: 0.55rem;
        height: 0.55rem;
        margin-top: 0.18rem;
        box-shadow: 0 0 0 3px rgba(210, 33, 42, 0.18);
    }

    .property-price-panel {
        padding: 0.82rem 0.75rem;
        clip-path: none;
    }

    .property-price {
        font-size: 1.18rem;
    }

    .property-container,
    .property-sections {
        gap: 0.85rem;
        margin-bottom: 0.85rem;
    }

    .property-gallery {
        padding: 0;
        border-radius: 4px;
    }

    .gallery-main {
        aspect-ratio: 4 / 3;
        margin-bottom: 0;
    }

    .gallery-thumbnails {
        gap: 0.4rem;
        padding: 0.45rem;
    }

    .thumbnail {
        width: 68px;
        height: 50px;
        border-radius: 4px;
    }

    .card,
    .property-section.card {
        padding: 0.85rem;
        border-radius: 6px;
    }

    .property-sidebar .property-summary {
        border-left-width: 4px;
    }

    .card h3,
    .property-section h2 {
        font-size: 0.9rem;
        line-height: 1.2;
    }

    .summary-grid {
        gap: 0.65rem;
    }

    .summary-item .label,
    .data-label {
        font-size: 0.66rem;
    }

    .summary-item .value,
    .data-value {
        font-size: 0.95rem;
    }
}

/* Keep property photos proportional on phones */
@media (max-width: 520px) {
    .property-gallery .gallery-main {
        aspect-ratio: auto;
        max-height: none;
        display: block;
        background: #f5f6f8;
    }

    .property-gallery .gallery-main img {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    .property-gallery .gallery-main.no-image {
        min-height: 220px;
        display: flex;
    }
}

/* Phone gallery: fixed viewing frame without distorting photos */
@media (max-width: 520px) {
    .property-gallery .gallery-main {
        aspect-ratio: 4 / 3;
        display: flex;
        align-items: center;
        justify-content: center;
        max-height: 280px;
        background: #f5f6f8;
    }

    .property-gallery .gallery-main img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

/* Gallery thumbnail carousel controls */
.gallery-thumbnails-wrap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f9f9f9;
}

.gallery-thumbnails-wrap .gallery-thumbnails {
    min-width: 0;
    padding: 0;
    background: transparent;
}

.gallery-thumbs-nav {
    width: 38px;
    border: 1px solid rgba(5, 43, 126, 0.18);
    border-radius: 5px;
    background: white;
    color: var(--brand-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(5, 43, 126, 0.08);
}

.gallery-thumbs-nav:hover,
.gallery-thumbs-nav:focus {
    background: var(--brand-blue);
    color: white;
}

@media (min-width: 521px) {
    .gallery-thumbs-nav {
        display: none;
    }

    .gallery-thumbnails-wrap {
        display: block;
        padding: 0;
    }
}

@media (max-width: 520px) {
    .property-gallery {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .property-gallery .gallery-main {
        width: 100%;
        aspect-ratio: 4 / 3;
        max-height: none;
        overflow: hidden;
    }

    .property-gallery .gallery-main img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .gallery-thumbnails-wrap {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 0.35rem;
        padding: 0.45rem;
    }

    .gallery-thumbnails-wrap .gallery-thumbnails {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: calc((100% - 0.7rem) / 3);
        gap: 0.35rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

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

    .gallery-thumbnails-wrap .thumbnail {
        width: 100%;
        height: 64px;
        scroll-snap-align: start;
    }

    .gallery-thumbs-nav {
        width: 34px;
        min-height: 64px;
        padding: 0;
        font-size: 0.9rem;
    }
}

/* Override older mobile thumbnail rules inside the new carousel */
@media (max-width: 520px) {
    .property-gallery .gallery-thumbnails-wrap .gallery-thumbnails {
        display: grid !important;
        grid-auto-flow: column !important;
        grid-auto-columns: calc((100% - 0.7rem) / 3) !important;
        gap: 0.35rem !important;
        padding: 0 !important;
        overflow-x: auto !important;
    }

    .property-gallery .gallery-thumbnails-wrap .thumbnail {
        width: 100% !important;
        height: 64px !important;
    }
}

/* Center exactly three mobile thumbnails under the main photo */
@media (max-width: 520px) {
    .gallery-thumbnails-wrap {
        grid-template-columns: 32px minmax(0, 192px) 32px;
        justify-content: center;
        align-items: center;
        gap: 0.3rem;
        padding: 0.45rem 0.35rem 0.55rem;
    }

    .property-gallery .gallery-thumbnails-wrap .gallery-thumbnails {
        width: 192px !important;
        max-width: 192px !important;
        grid-auto-columns: 60px !important;
        gap: 6px !important;
        justify-self: center;
    }

    .property-gallery .gallery-thumbnails-wrap .thumbnail {
        width: 60px !important;
        height: 58px !important;
    }

    .gallery-thumbs-nav {
        width: 32px;
        min-height: 58px;
    }
}

/* Larger mobile thumbnails trial */
@media (max-width: 520px) {
    .gallery-thumbnails-wrap {
        grid-template-columns: 32px minmax(0, 282px) 32px;
        gap: 0.28rem;
    }

    .property-gallery .gallery-thumbnails-wrap .gallery-thumbnails {
        width: 282px !important;
        max-width: calc(100vw - 112px) !important;
        grid-auto-columns: 90px !important;
        gap: 6px !important;
    }

    .property-gallery .gallery-thumbnails-wrap .thumbnail {
        width: 90px !important;
        height: 87px !important;
    }

    .gallery-thumbs-nav {
        min-height: 87px;
    }
}

/* Mobile thumbnails as swipeable strip with scrollbar */
@media (max-width: 520px) {
    .gallery-thumbnails-wrap {
        display: flex;
        justify-content: center;
        padding: 0.55rem 0.45rem 0.35rem;
        background: #f9f9f9;
    }

    .gallery-thumbnails-wrap .gallery-thumbs-nav {
        display: none !important;
    }

    .property-gallery .gallery-thumbnails-wrap .gallery-thumbnails {
        width: min(100%, 282px) !important;
        max-width: 282px !important;
        display: grid !important;
        grid-auto-flow: column !important;
        grid-auto-columns: 90px !important;
        gap: 6px !important;
        padding: 0 0 0.45rem !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        scrollbar-color: var(--brand-blue) #dfe5ef;
        -webkit-overflow-scrolling: touch;
    }

    .property-gallery .gallery-thumbnails-wrap .gallery-thumbnails::-webkit-scrollbar {
        display: block;
        height: 6px;
    }

    .property-gallery .gallery-thumbnails-wrap .gallery-thumbnails::-webkit-scrollbar-track {
        background: #dfe5ef;
        border-radius: 999px;
    }

    .property-gallery .gallery-thumbnails-wrap .gallery-thumbnails::-webkit-scrollbar-thumb {
        background: var(--brand-blue);
        border-radius: 999px;
    }

    .property-gallery .gallery-thumbnails-wrap .thumbnail {
        width: 90px !important;
        height: 87px !important;
        scroll-snap-align: start;
    }
}

/* Always-visible mobile thumbnail scroll indicator */
@media (max-width: 520px) {
    .gallery-thumbnails-wrap {
        position: relative;
        padding-bottom: 0.85rem;
    }

    .gallery-thumbnails-wrap::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: 0.3rem;
        width: min(282px, calc(100% - 0.9rem));
        height: 6px;
        transform: translateX(-50%);
        border-radius: 999px;
        background: linear-gradient(90deg, var(--brand-blue) 0 34%, #dfe5ef 34% 100%);
        pointer-events: none;
    }

    .property-gallery .gallery-thumbnails-wrap .gallery-thumbnails {
        padding-bottom: 0.65rem !important;
    }
}








/* Absolute arrows inside the main photo; does not affect image size */
.main-photo-arrow {
    position: absolute;
    bottom: 0.55rem;
    z-index: 5;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 5px;
    background: rgba(5, 43, 126, 0.9);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.main-photo-arrow-prev {
    left: 0.55rem;
}

.main-photo-arrow-next {
    right: 0.55rem;
}

.main-photo-arrow:hover,
.main-photo-arrow:focus {
    background: var(--brand-red);
}

@media (max-width: 520px) {
    .main-photo-arrow {
        bottom: 0.45rem;
        width: 30px;
        height: 30px;
        font-size: 0.82rem;
    }

    .main-photo-arrow-prev {
        left: 0.45rem;
    }

    .main-photo-arrow-next {
        right: 0.45rem;
    }
}

/* Single always-visible custom scrollbar for mobile thumbnails */
.gallery-thumb-scrollbar {
    display: none;
}

@media (max-width: 520px) {
    .gallery-thumbnails-wrap {
        flex-direction: column;
        align-items: center;
        padding-bottom: 0.55rem;
    }

    .gallery-thumbnails-wrap::after {
        content: none !important;
    }

    .property-gallery .gallery-thumbnails-wrap .gallery-thumbnails {
        padding-bottom: 0 !important;
        scrollbar-width: none;
    }

    .property-gallery .gallery-thumbnails-wrap .gallery-thumbnails::-webkit-scrollbar {
        display: none !important;
        height: 0 !important;
    }

    .gallery-thumb-scrollbar {
        display: block;
        width: min(100%, 282px);
        height: 6px;
        margin-top: 0.38rem;
        border-radius: 999px;
        background: #dfe5ef;
        overflow: hidden;
    }

    .gallery-thumb-scrollbar-thumb {
        display: block;
        width: 34%;
        height: 100%;
        border-radius: inherit;
        background: var(--brand-blue);
        transform: translateX(0);
    }
}

/* Desktop thumbnail strip drag affordance */
.gallery-thumbnails[data-thumbnail-strip] {
    cursor: grab;
    user-select: none;
}

.gallery-thumbnails[data-thumbnail-strip].is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.gallery-thumbnails[data-thumbnail-strip] img {
    pointer-events: none;
    user-select: none;
}

/* Property share button */
.btn-share-property {
    width: 100%;
    margin-top: 0.65rem;
    min-height: 44px;
    border: 2px solid var(--brand-blue);
    border-radius: 4px;
    background: white;
    color: var(--brand-blue);
    font-family: var(--font-body);
    font-weight: 800;
    cursor: pointer;
}

.btn-share-property:hover,
.btn-share-property:focus {
    background: var(--brand-blue);
    color: white;
}

@media (min-width: 769px) {
    .btn-share-property {
        display: none;
    }
}

.btn-share-property {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}
