/* ============================================================
   HABITAT REALTY GROUP — HOMEPAGE STYLES
   Paleta: Azul tinta #1D2B5C + Blanco + Esmeralda #00A060 + Esmeralda #00A060
   Mobile-first
   ============================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy:       var(--brand-ink);
    --navy-mid:   var(--brand-ink-2);
    --navy-light: var(--brand-ink-3);
    --cream:      var(--brand-mist);
    --cream-mid:  var(--brand-mist-2);
    --cream-dark: var(--brand-line);
    --gold:       var(--brand-esm);
    --gold-dark:  var(--brand-esm-d);
    --white:      #FFFFFF;
    --text-dark:  #1C1208;
    --text-mid:   #5C4D3E;
    --text-light: #9A8E84;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans:  'Montserrat', sans-serif;
    --radius:     8px;
    --shadow:     0 4px 24px rgba(29,43,92,.10);
    --shadow-lg:  0 8px 48px rgba(29,43,92,.16);
    --transition: .3s ease;
    --header-h:   72px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── TYPOGRAPHY HELPERS ── */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}
.section-eyebrow.light { color: var(--gold); }

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}
.section-title em { font-style: italic; color: var(--gold-dark); }
.section-title.light { color: var(--white); }
.section-title.light em { color: var(--gold); }

.section-header { text-align: center; margin-bottom: 40px; }

/* ── SCROLL REVEAL ── */
.property-card,
.stat-card,
.lead-block,
.section-header {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .5s ease, transform .5s ease;
}
.property-card.revealed,
.stat-card.revealed,
.lead-block.revealed,
.section-header.revealed { opacity: 1; transform: translateY(0); }

/* ── LOGO ── */
.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-sans);
}
.logo-icon { height: 34px; width: auto; flex-shrink: 0; }
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    gap: 1px;
}
.logo-bold {
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--navy);
}
.logo-light {
    font-size: .62rem;
    font-weight: 400;
    letter-spacing: .18em;
    color: var(--text-mid);
}

/* ── BUTTONS ── */
.btn-primary {
    display: inline-block;
    padding: 13px 28px;
    background: var(--navy);
    color: var(--white);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .06em;
    border-radius: var(--radius);
    transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--navy-light); transform: translateY(-1px); }
.btn-primary.full-w { width: 100%; text-align: center; }

.btn-gold {
    display: inline-block;
    padding: 13px 28px;
    background: var(--gold-dark);
    color: var(--white);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .06em;
    border-radius: var(--radius);
    transition: background var(--transition), transform var(--transition);
}
.btn-gold:hover { background: var(--navy); color: var(--white); transform: translateY(-1px); }
.btn-gold.full-w { width: 100%; text-align: center; }

.btn-call {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: var(--navy);
    color: var(--white);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .05em;
    border-radius: var(--radius);
    white-space: nowrap;
    transition: background var(--transition);
}
.btn-call:hover { background: var(--navy-light); }

.btn-login {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: transparent;
    color: var(--navy);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .05em;
    border: 1.5px solid var(--navy);
    border-radius: var(--radius);
    white-space: nowrap;
    transition: background var(--transition), color var(--transition);
}
.btn-login:hover { background: var(--navy); color: var(--white); }
.btn-signup {
    display: flex;
    align-items: center;
    padding: 9px 18px;
    background: var(--brand-esm);
    color: var(--white);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .05em;
    border: 1.5px solid var(--brand-esm);
    border-radius: var(--radius);
    white-space: nowrap;
    transition: background var(--transition), border-color var(--transition);
}
.btn-signup:hover { background: var(--brand-esm-d); border-color: var(--brand-esm-d); }
.nav-login-mobile { display: none; }


/* ============================================================
   MÓDULO 1: HEADER
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.header.scrolled {
    border-bottom-color: var(--cream-mid);
    box-shadow: 0 2px 20px rgba(29,43,92,.08);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Nav */
.nav { margin-left: auto; }

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--text-dark);
    border-radius: 6px;
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}
.nav-link:hover { color: var(--navy); background: var(--cream); }

/* Chevron */
.chevron { transition: transform var(--transition); flex-shrink: 0; }
.dropdown.open .chevron { transform: rotate(180deg); }

/* Dropdown */
.dropdown { position: relative; }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    background: var(--white);
    border: 1px solid var(--cream-mid);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-6px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 9px 14px;
    font-size: .8rem;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: 6px;
    transition: background var(--transition), color var(--transition);
}
.dropdown-item:hover { background: var(--cream); color: var(--navy); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 4px;
    margin-left: auto;
    flex-shrink: 0;
}
.hamburger span {
    display: block;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition), width var(--transition);
    width: 100%;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================================
   MÓDULO 2: HERO CINEMATOGRÁFICO
   Fondo con recorrido Ken Burns + contenido lateral con
   entrada escalonada (estilo showcase de propiedad).
   ============================================================ */
.hero {
    position: relative;
    height: 100svh;
    min-height: 640px;
    max-height: 980px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--navy);
}

/* Escenas del recorrido */
.hero-media { position: absolute; inset: 0; }

.hero-scene {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.8s ease;
    will-change: transform, opacity;
}
.hero-scene.active {
    opacity: 1;
    animation: kbZoom 9.5s ease-out forwards;
}
.hero-scene:nth-child(even).active { animation-name: kbZoomAlt; }
/* La escena saliente queda congelada en su estado final mientras se funde */
.hero-scene.prev { opacity: 0; transform: scale(1.13) translate(-1%, .6%); }
.hero-scene:nth-child(even).prev { transform: scale(1.13) translate(1%, -.6%); }

@keyframes kbZoom {
    from { transform: scale(1) translate(0, 0); }
    to   { transform: scale(1.13) translate(-1%, .6%); }
}
@keyframes kbZoomAlt {
    from { transform: scale(1.04) translate(1.2%, -.8%); }
    to   { transform: scale(1.13) translate(1%, -.6%); }
}

/* Degradado lateral (legibilidad del texto) + viñeta inferior */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(6,15,30,.62) 0%, rgba(6,15,30,0) 34%),
        linear-gradient(92deg, rgba(6,15,30,.78) 0%, rgba(6,15,30,.46) 46%, rgba(6,15,30,.12) 78%, rgba(6,15,30,.05) 100%);
    z-index: 1;
}

/* Contenido lateral izquierdo */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: var(--header-h) 5% 0;
    text-align: left;
}

/* Badge pill */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 100px;
    background: rgba(255,255,255,.1);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: var(--white);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 22px;
    opacity: 0;
    animation: heroRise .9s cubic-bezier(.2,.6,.2,1) .25s forwards;
    transition: background var(--transition), border-color var(--transition);
}
.hero-badge:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.5); }
.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 0 rgba(0,160,96,.6);
    animation: dotPulse 2.4s ease-out infinite;
}
@keyframes dotPulse {
    0% { box-shadow: 0 0 0 0 rgba(0,160,96,.55); }
    70% { box-shadow: 0 0 0 9px rgba(0,160,96,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,160,96,0); }
}

/* Titular con revelado línea por línea */
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4.6vw, 3.7rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.08;
    margin-bottom: 20px;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-line > span {
    display: block;
    transform: translateY(112%);
    animation: lineUp 1s cubic-bezier(.19,.7,.22,1) forwards;
}
.hero-line:nth-child(1) > span { animation-delay: .4s; }
.hero-line:nth-child(2) > span { animation-delay: .55s; }
.hero-line:nth-child(3) > span { animation-delay: .7s; }
@keyframes lineUp { to { transform: translateY(0); } }

/* Subtítulo */
.hero-sub {
    color: rgba(255,255,255,.85);
    font-size: .98rem;
    font-weight: 300;
    line-height: 1.65;
    max-width: 470px;
    margin-bottom: 26px;
    opacity: 0;
    animation: heroRise .9s cubic-bezier(.2,.6,.2,1) .95s forwards;
}

/* Botones */
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 34px;
    opacity: 0;
    animation: heroRise .9s cubic-bezier(.2,.6,.2,1) 1.15s forwards;
}
.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 100px;
    font-size: .84rem;
    font-weight: 600;
    letter-spacing: .05em;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}
.hero-btn-primary {
    background: var(--white);
    color: var(--navy);
}
.hero-btn-primary:hover { transform: translateY(-2px); background: var(--cream); }
.hero-btn-ghost {
    border: 1px solid rgba(255,255,255,.45);
    color: var(--white);
    background: rgba(255,255,255,.04);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.hero-btn-ghost:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.8); transform: translateY(-2px); }

@keyframes heroRise {
    from { opacity: 0; transform: translateY(26px); filter: blur(5px); }
    to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Buscador compacto (barra horizontal glass) */
.hero-search {
    display: flex;
    align-items: stretch;
    max-width: 640px;
    background: rgba(255,255,255,.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 44px rgba(0,0,0,.32);
    opacity: 0;
    animation: heroRise .9s cubic-bezier(.2,.6,.2,1) 1.35s forwards;
}

.search-tabs {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--cream-mid);
}
.search-tab {
    flex: 1;
    padding: 8px 18px;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--text-mid);
    background: var(--cream);
    transition: background var(--transition), color var(--transition);
    border: none;
    border-left: 2px solid transparent;
}
.search-tab.active {
    background: var(--white);
    color: var(--navy);
    border-left-color: var(--gold);
}
.search-tab:hover:not(.active) { background: var(--cream-mid); }

.search-form {
    display: flex;
    flex: 1;
    align-items: stretch;
}

.search-input-wrap {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    color: var(--text-light);
    min-width: 0;
}
.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: .86rem;
    color: var(--text-dark);
    background: transparent;
    min-width: 0;
}
.search-input::placeholder { color: var(--text-light); }

.search-select {
    padding: 14px 12px;
    border: none;
    border-left: 1px solid var(--cream-mid);
    outline: none;
    font-size: .84rem;
    color: var(--text-dark);
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    max-width: 165px;
}

.search-btn {
    padding: 14px 26px;
    background: var(--navy);
    color: var(--white);
    font-size: .84rem;
    font-weight: 700;
    letter-spacing: .06em;
    transition: background var(--transition);
    border: none;
}
.search-btn:hover { background: var(--navy-light); }

/* Hero responsive */
@media (max-width: 760px) {
    /* Altura flexible: el contenido nunca queda recortado por el overflow */
    .hero { height: auto; min-height: 100svh; max-height: none; }
    .hero-content { padding-top: calc(var(--header-h) + 16px); padding-bottom: 30px; }
    .hero-badge { font-size: .6rem; letter-spacing: .1em; padding: 7px 13px; }
    .hero-actions { margin-bottom: 30px; }
    .hero-actions .hero-btn { flex: 1; min-width: 150px; padding: 13px 16px; font-size: .8rem; white-space: nowrap; }

    /* Buscador vuelve a formato tarjeta apilada */
    .hero-search { display: block; border-radius: 12px; }
    .search-tabs { flex-direction: row; border-right: none; border-bottom: 1px solid var(--cream-mid); }
    .search-tab { padding: 11px 16px; border-left: none; border-bottom: 2px solid transparent; }
    .search-tab.active { border-bottom-color: var(--gold); }
    .search-form { flex-direction: column; }
    .search-input-wrap { border-bottom: 1px solid var(--cream-mid); }
    .search-select { border-left: none; border-bottom: 1px solid var(--cream-mid); max-width: none; width: 100%; }
    .search-btn { width: 100%; }
}


/* ============================================================
   MÓDULO 3: PROPIEDADES DESTACADAS
   ============================================================ */
.listings {
    padding: 72px 0;
    background: var(--white);
}

/* Listing Tabs */
.listing-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.listing-tab {
    padding: 9px 22px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-mid);
    border: 1.5px solid var(--cream-dark);
    border-radius: 100px;
    background: var(--white);
    transition: all var(--transition);
}
.listing-tab:hover { border-color: var(--navy); color: var(--navy); }
.listing-tab.active {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* Property Card */
.property-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition),
                opacity .5s ease, translateY .5s ease;
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.property-card.hidden { display: none; }

.card-image-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .35s ease, transform .5s ease;
}
.card-image.active { opacity: 1; }
.card-image-wrap:hover .card-image.active { transform: scale(1.04); }

/* Flechas de foto por tarjeta — solo se imprimen cuando la propiedad tiene
   más de 1 foto (ver card() en el <script>). stopPropagation evita que el
   click navegue a la ficha completa: solo cambia de foto. */
.card-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(29,43,92,.45);
    color: var(--white);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}
.card-arrow:hover { background: rgba(29,43,92,.75); }
.card-arrow-prev { left: 10px; }
.card-arrow-next { right: 10px; }

.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 12px;
    background: var(--navy);
    color: var(--white);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 100px;
}
.badge-mixed { background: var(--gold-dark); }

.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }

.card-price {
    font-size: .8rem;
    color: var(--text-mid);
    margin-bottom: 6px;
}
.card-price strong {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.card-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .78rem;
    color: var(--text-light);
    margin-bottom: 14px;
}

.card-specs {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--cream-mid);
}
.spec {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .78rem;
    color: var(--text-mid);
    font-weight: 500;
}

.card-cta {
    display: block;
    width: 100%;
    margin-top: auto;
    padding: 11px 0;
    background: var(--cream);
    color: var(--navy);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-align: center;
    border-radius: 6px;
    border: 1.5px solid var(--cream-dark);
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.card-cta:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}


/* Listings footer CTA */
.listings-footer {
    margin-top: 48px;
    padding: 32px 28px;
    background: var(--cream);
    border-radius: 12px;
    border: 1.5px dashed var(--cream-dark);
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
}
.listings-footer-text p {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 4px;
}
.listings-footer-text span {
    font-size: .82rem;
    color: var(--text-light);
}
.btn-listings-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #25D366;
    color: var(--white);
    font-size: .85rem;
    font-weight: 700;
    border-radius: var(--radius);
    white-space: nowrap;
    transition: background var(--transition), transform var(--transition);
}
.btn-listings-cta:hover { background: #1ebe5d; transform: translateY(-1px); }

@media (min-width: 640px) {
    .listings-footer {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ============================================================
   MÓDULO 5: LEAD GENERATION
   ============================================================ */
.lead-gen-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.lead-block-content {
    padding: 52px 24px;
}

.lead-buyer { background: var(--cream); }
.lead-seller { background: var(--navy-mid); }

.lead-block h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 600;
    margin: 10px 0 16px;
    color: var(--text-dark);
}
.lead-block h2 em { font-style: italic; color: var(--gold-dark); }
.lead-block h2.light { color: var(--white); }
.lead-block h2.light em { color: var(--gold); }

.lead-block p {
    font-size: .9rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 28px;
}
.lead-block p.light-text { color: rgba(255,255,255,.7); }

/* Forms */
.lead-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--cream-dark);
    border-radius: var(--radius);
    font-size: .85rem;
    color: var(--text-dark);
    background: var(--white);
    outline: none;
    transition: border-color var(--transition);
}
.form-input::placeholder { color: var(--text-light); }
.form-input:focus { border-color: var(--navy); }

.form-input-dark {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.18);
    color: var(--white);
}
.form-input-dark::placeholder { color: rgba(255,255,255,.45); }
.form-input-dark:focus { border-color: var(--gold); }


/* ============================================================
   MÓDULO 6: TESTIMONIOS
   ============================================================ */
.testimonials {
    padding: 80px 0;
    background: var(--white);
    text-align: center;
    overflow: hidden;
}

.testimonial-slider {
    overflow: hidden;
    width: 100%;
    margin: 40px 0 28px;
}

.testimonial-track {
    display: flex;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}

.testimonial-card {
    flex: 0 0 100%;
    padding: 0 16px;
}

.stars {
    color: var(--gold);
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.testimonial-card blockquote {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 2.5vw, 1.22rem);
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.75;
    max-width: 680px;
    margin: 0 auto 28px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
}
.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    font-size: .75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.testimonial-author div:last-child { text-align: left; }
.testimonial-author strong {
    display: block;
    font-size: .88rem;
    font-weight: 700;
    color: var(--text-dark);
}
.testimonial-author span {
    font-size: .75rem;
    color: var(--text-light);
}

/* Testimonial controls */
.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.t-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--cream-dark);
    font-size: 1rem;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.t-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.t-dots { display: flex; gap: 6px; align-items: center; }
.t-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cream-dark);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background var(--transition), width var(--transition);
}
.t-dot.active { background: var(--gold); width: 22px; border-radius: 4px; }


/* ============================================================
   POP-UP DE INTENCIÓN DE SALIDA — MAPA DE PLUSVALÍA 2026
   ============================================================ */
.exit-intent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(29, 43, 92, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.exit-intent-overlay[hidden] { display: none; }

.exit-intent-modal {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    max-width: 420px;
    width: 100%;
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow);
}
.exit-intent-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--text-mid);
    cursor: pointer;
}
.exit-intent-close:hover { color: var(--navy); }

.exit-intent-eyebrow {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}
.exit-intent-modal h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 22px;
    line-height: 1.3;
}
.exit-intent-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.exit-intent-input {
    padding: 14px 16px;
    border: 1.5px solid var(--cream-dark);
    border-radius: var(--radius);
    font-size: .88rem;
    outline: none;
    background: var(--white);
}
.exit-intent-input:focus { border-color: var(--navy); }
.exit-intent-btn {
    padding: 14px 22px;
    background: var(--navy);
    color: var(--white);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .04em;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: background var(--transition);
}
.exit-intent-btn:hover { background: var(--navy-light); }
.exit-intent-download-link {
    display: inline-block;
    margin-top: 4px;
    padding: 14px 22px;
    background: var(--gold-dark);
    color: var(--white);
    font-weight: 700;
    font-size: .88rem;
    letter-spacing: .02em;
    border-radius: var(--radius);
    text-decoration: none;
}


/* ============================================================
   FOUNDERS
   ============================================================ */
.founders {
    padding: 96px 0;
    background: var(--cream);
    text-align: center;
}



.founders-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    margin-top: 48px;
}

.founder-card {
    width: 280px;
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: 20px;
    padding: 36px 24px 30px;
    box-shadow: 0 12px 40px rgba(29,43,92,.08);
    transition: transform var(--transition);
}
.founder-card:hover { transform: translateY(-4px); }

.founder-photo {
    width: 148px;
    height: 148px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 22px;
    border: 4px solid var(--white);
    outline: 3px solid var(--gold);
    box-shadow: 0 8px 24px rgba(29,43,92,.18);
}

.founder-name {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--navy);
}

.founder-role {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin: 6px 0 18px;
}

.founder-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    transition: background var(--transition), transform var(--transition);
}
.founder-social:hover { background: var(--gold-dark); transform: translateY(-2px); }
.founder-social svg { width: 18px; height: 18px; }
.founder-social + .founder-social { margin-left: 10px; }

/* ============================================================
   ALIANZAS
   ============================================================ */
.alliances {
    padding: 48px 0;
    background: var(--white);
    border-top: 1px solid var(--cream-mid);
    border-bottom: 1px solid var(--cream-mid);
}

.alliances-label {
    text-align: center;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 28px;
}

.alliance-track-wrap {
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
    mask: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}

.alliance-track {
    display: flex;
    align-items: center;
    gap: 48px;
    animation: scrollLogos 26s linear infinite;
    width: max-content;
}
.alliance-track:hover { animation-play-state: paused; }

@keyframes scrollLogos {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.alliance-logo {
    height: 36px;
    width: auto;
    opacity: .55;
    filter: grayscale(1);
    transition: opacity var(--transition), filter var(--transition);
    flex-shrink: 0;
}
.alliance-logo:hover { opacity: 1; filter: grayscale(0); }


/* ============================================================
   MÓDULO 8: FOOTER
   ============================================================ */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,.7);
    padding: 64px 0 0;
}

.footer-logo .logo-bold  { color: var(--white); }
.footer-logo .logo-light { color: rgba(255,255,255,.45); }

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-tagline {
    font-size: .82rem;
    color: rgba(255,255,255,.5);
    line-height: 1.7;
    margin: 14px 0 20px;
    max-width: 260px;
}

.social-links { display: flex; gap: 10px; }
.social-link {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.6);
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.social-link:hover { border-color: var(--gold); color: var(--gold); background: rgba(0,160,96,.1); }

.footer-heading {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    margin-bottom: 16px;
}

.footer-links li + li { margin-top: 10px; }
.footer-links a {
    font-size: .83rem;
    color: rgba(255,255,255,.6);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .83rem;
    color: rgba(255,255,255,.6);
}
.footer-contact li svg { flex-shrink: 0; margin-top: 2px; }
.footer-contact a { color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-contact a:hover { color: var(--gold); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
}
.footer-bottom p { font-size: .75rem; color: rgba(255,255,255,.3); }

.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
    font-size: .72rem;
    color: rgba(255,255,255,.3);
    transition: color var(--transition);
}
.footer-legal a:hover { color: var(--gold); }


/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 90;
    width: 54px;
    height: 54px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(37,211,102,.4);
    transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(37,211,102,.55);
}


/* ============================================================
   RESPONSIVE — TABLET (≥ 640px)
   ============================================================ */
@media (min-width: 640px) {

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

    .search-form { flex-direction: row; align-items: stretch; }
    .search-input-wrap {
        flex: 1;
        border-bottom: none;
        border-right: 1px solid var(--cream-mid);
    }
    .search-select {
        flex: 0 0 180px;
        border-bottom: none;
        border-right: 1px solid var(--cream-mid);
    }

    .lead-gen-grid { grid-template-columns: repeat(2, 1fr); }
    .lead-block-content { padding: 64px 48px; }

    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}


/* ============================================================
   RESPONSIVE — DESKTOP (≥ 1024px)
   ============================================================ */
@media (min-width: 1200px) {
    /* Encabezado de escritorio: Iniciar sesión + Crear cuenta gratis caben sin el botón Llámanos y con menos relleno. */
    .hamburger { display: none !important; }
    .nav { display: block !important; }
    .btn-call { display: none; }
    .nav-link { padding: 8px 11px; }
    .btn-login, .btn-signup { padding: 9px 14px; }
}

@media (min-width: 1024px) {

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

    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; }

    .testimonial-card { padding: 0 60px; }

    .lead-block-content { padding: 80px 64px; }
}


/* ============================================================
   MOBILE NAV OVERLAY (< 1200px)
   ============================================================ */
@media (max-width: 1199px) {

    .hamburger { display: flex; }
    .btn-call { display: none; }
    .btn-login { display: none; }
    .btn-signup { display: none; }
    .nav-login-mobile { display: block; }
    .nav-login-mobile .nav-link {
        color: var(--white);
        background: var(--navy);
        text-align: center;
        justify-content: center;
        margin-top: 8px;
    }

    .nav {
        position: fixed;
        inset: var(--header-h) 0 0 0;
        background: var(--white);
        padding: 24px 20px;
        transform: translateX(100%);
        transition: transform var(--transition);
        overflow-y: auto;
        z-index: 99;
        border-top: 1px solid var(--cream-mid);
    }
    .nav.open { transform: translateX(0); }

    .nav-list { flex-direction: column; gap: 4px; align-items: stretch; }
    .nav-link { font-size: .9rem; padding: 14px 16px; border-radius: 8px; }

    /* Dropdown in mobile becomes inline */
    .dropdown-menu {
        position: static;
        transform: none !important;
        left: auto;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 4px 0 4px 20px;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
        min-width: auto;
    }
    .dropdown.open .dropdown-menu { display: block; }
    .dropdown-item { font-size: .88rem; padding: 11px 14px; }
}


/* ============================================================
   MOBILE ADJUSTMENTS (< 640px)
   ============================================================ */
@media (max-width: 639px) {
    :root { --header-h: 64px; }

    .hero { max-height: none; }
    .hero-content { padding: calc(var(--header-h) + 10px) 16px 0; }
    .hero-sub { font-size: .92rem; }

    .search-input-wrap { padding: 12px 16px; }
    .search-select { padding: 12px 16px; }
    .search-btn { padding: 14px; }

    .listings { padding: 52px 0; }
    .lead-block-content { padding: 44px 20px; }
    .testimonials { padding: 56px 0; }
    .testimonial-card { padding: 0 4px; }
}


/* ============================================================
   FIX — MENÚ MÓVIL (overlay sólido a pantalla completa)
   Regla específica al final para que gane siempre.
   ============================================================ */
@media (max-width: 1199px) {
    #nav.nav {
        position: fixed !important;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: auto;
        margin: 0;
        background: #ffffff;
        padding: 18px 20px 40px;
        transform: translateX(100%);
        transition: transform .3s ease;
        overflow-y: auto;
        z-index: 1500;
        display: block;
        border-top: 1px solid var(--cream-mid);
    }
    #nav.nav.open { transform: translateX(0); }
    #nav .nav-list { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
    #nav .nav-list > li { width: 100%; box-sizing: border-box; }
    #nav .nav-link { box-sizing: border-box; max-width: 100%; }
    #nav .nav-link { color: var(--navy); font-size: 1rem; padding: 15px 14px; border-radius: 8px; justify-content: space-between; }
    #nav .nav-link:hover { background: var(--cream); }
    /* "Iniciar sesión" dentro del menú */
    #nav .nav-login-mobile .nav-link { background: var(--navy); color: #fff; justify-content: center; margin-top: 10px; }
    #nav .nav-signup-mobile .nav-link { background: var(--brand-esm); }
    /* Dropdown "Comprar" inline dentro del menú */
    #nav .dropdown-menu { position: static; transform: none !important; box-shadow: none; border: none; padding: 2px 0 6px 16px; opacity: 1 !important; visibility: visible !important; display: none; min-width: auto; background: transparent; }
    #nav .dropdown.open .dropdown-menu { display: block; }
    /* Asegura hamburguesa visible y botones desktop ocultos */
    .hamburger { display: flex !important; }
    .btn-call, .btn-login, .btn-signup { display: none !important; }
    /* CLAVE: backdrop-filter en el header lo vuelve el "contenedor" del menú fixed
       y lo encoge a una franja. Lo quitamos en móvil (el fondo blanco ya es opaco). */
    .header { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: #ffffff !important; }
}

/* Inventario completo en HTML plano (SEO/IAs): colapsado, discreto. */
.inv-completo{max-width:1200px;margin:32px auto 0;padding:0 24px}
.inv-completo summary{cursor:pointer;font-size:13px;font-weight:600;color:#6B7280}
.inv-completo ul{list-style:none;margin:12px 0 0;padding:0;columns:2 340px;column-gap:32px;font-size:13px;line-height:1.9}
.inv-completo a{color:#2A3A6B;text-decoration:none}
.inv-completo a:hover{text-decoration:underline}

/* Acceso a las páginas por zona, junto al buscador de la home */
.inv-zonas{max-width:1200px;margin:20px auto 12px;padding:0 24px;display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px}
.inv-zonas-titulo{font-size:13px;font-weight:600;color:#6B7280;margin-right:4px}
.inv-zonas a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border:1px solid #2A3A6B;border-radius:999px;color:#2A3A6B;font-size:14px;font-weight:600;text-decoration:none;background:#fff;transition:background .2s,color .2s}
.inv-zonas a:hover,.inv-zonas a:focus-visible{background:#2A3A6B;color:#fff}
@media (max-width:600px){.inv-zonas{gap:10px}.inv-zonas-titulo{flex:0 0 100%}.inv-zonas a{flex:1 1 calc(50% - 10px);padding:0 12px;text-align:center}}

/* Enlaces de zona del pie: zona tocable de ~44 px sin cambiar el tamaño del texto */
.footer-zonas a{display:flex;align-items:center;min-height:44px}

/* Línea de razón social en el pie */
.footer-marca a{ color:rgba(255,255,255,.55); text-decoration:underline; text-underline-offset:2px; }
.footer-marca a:hover{ color:#fff; }

/* ---- Tema claro: footer sin fondo azul ---- */
.footer { background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 30%, #FFFFFF 100%); color: var(--text-mid); border-top: 0; }
.footer-logo .logo-bold { color: var(--navy); }
.footer-logo .logo-light { color: var(--text-mid); }
.footer-tagline { color: var(--text-mid); }
.footer-heading { color: var(--navy); }
.footer-links a, .footer-contact li, .footer-contact a { color: var(--text-mid); }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-dark); }
.social-link { border-color: rgba(29,43,92,.25); color: var(--navy); }
.social-link:hover { border-color: var(--gold-dark); color: var(--gold-dark); background: rgba(0,160,96,.08); }
.footer-bottom { border-top-color: rgba(29,43,92,.08); }
.footer-bottom p, .footer-legal a { color: var(--text-light); }
/* ---- Fundadores: fondo blanco, menos aire vertical ---- */
.founders { background: var(--white); padding: 8px 0 64px; }
.founders .section-header { opacity: 1; transform: none; margin-bottom: 0; }
.founders-grid { margin-top: 28px; }
.founder-card { border-color: #ECEAE7; box-shadow: 0 14px 44px rgba(29,43,92,.08); }
/* ---- UI/UX: foco, táctil, movimiento, barra móvil ---- */
:focus-visible { outline: 3px solid var(--brand-esm); outline-offset: 3px; border-radius: 6px; }
.btn-primary, .btn-gold, .btn-call, .btn-login, .btn-signup, select, summary { min-height: 44px; }
.inv-actbtn { flex: none; min-height: 0; }
.inv-actbtn:not(.inv-actbtn-wa) { width: 34px; height: 34px; }
.inv-card { animation: cardIn .5s ease both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* Barra flotante inferior (móvil): píldora blanca con íconos y etiqueta, como una app */
.m-bar { display: none; }
@media (max-width: 767px) {
  .m-bar { position: fixed; left: 12px; right: 12px; bottom: 0; z-index: 95; display: block; padding-bottom: calc(10px + env(safe-area-inset-bottom)); transition: transform .3s ease, opacity .3s ease; }
  .m-bar.is-hidden { transform: translateY(130%); opacity: 0; pointer-events: none; }
  .m-bar-pill { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 6px; background: #fff; border: 1px solid rgba(29,43,92,.08); border-radius: 28px; box-shadow: 0 0 0 2px var(--brand-esm), 0 0 0 6px rgba(0,160,96,.12), 0 10px 30px rgba(29,43,92,.22); }
  .m-bar-it { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; padding: 0 2px; border-radius: 20px; color: rgba(29,43,92,.65); font-size: .68rem; font-weight: 600; line-height: 1; transition: background .2s ease, color .2s ease; }
  .m-bar-it svg { width: 22px; height: 22px; }
  .m-bar-it[data-k="login"] span { font-size: .58rem; letter-spacing: -.01em; white-space: nowrap; }
  .m-bar-it[data-k="login"] { padding: 0; }
  .m-bar-it:active { background: rgba(29,43,92,.06); }
  .m-bar-it.is-on { background: linear-gradient(135deg, #E4F5EC, #C9E9D8); color: var(--brand-ink); }
  .m-bar-it.is-on span { text-decoration: underline; text-underline-offset: 3px; }
  .m-bar-wa i { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-wa); color: #fff; }
  .m-bar-wa i svg { width: 14px; height: 14px; }
  .whatsapp-float, .tn-sticky-cta { display: none !important; }
  body { padding-bottom: 88px; }
}@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* ============================================================
   FOOTER CORPORATIVO
   ============================================================ */
.footer { padding: 0; background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 26%, #FFFFFF 100%); }
.footer .container { padding-top: 56px; }
.footer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 30px; margin-bottom: 52px; background: #fff; border: 1px solid var(--brand-line); border-radius: 20px; box-shadow: 0 18px 50px rgba(29,43,92,.08); position: relative; overflow: hidden; }
.footer-cta::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--brand-esm); }
.footer-cta-text strong { display: block; font-family: var(--font-serif); font-size: 1.25rem; color: var(--brand-ink); line-height: 1.3; }
.footer-cta-text span { display: block; margin-top: 4px; font-size: .88rem; color: var(--text-mid); }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 22px; border-radius: 12px; font-size: .9rem; font-weight: 700; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.footer-btn:hover { transform: translateY(-2px); }
.footer-btn-wa { background: var(--brand-wa); color: #fff; }
.footer-btn-wa:hover { background: #1ebe5d; }
.footer-btn-line { border: 1.5px solid var(--brand-ink); color: var(--brand-ink); }
.footer-btn-line:hover { background: var(--brand-ink); color: #fff; }

.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 28px; padding-bottom: 44px; }
.footer-brand { grid-column: 1 / -1; max-width: 340px; }
.footer-tagline { margin: 12px 0 18px; font-size: .9rem; line-height: 1.6; color: var(--text-mid); }
.footer-heading { position: relative; margin: 0 0 18px; padding-bottom: 12px; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-ink); }
.footer-heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 2px; border-radius: 2px; background: var(--brand-esm); }
.footer-links li + li { margin-top: 0; }
.footer-links a { display: inline-block; padding: 6px 0; font-size: .88rem; line-height: 1.45; color: var(--text-mid); transition: color .2s ease, transform .2s ease; }
.footer-links a:hover { color: var(--brand-esm-d); transform: translateX(3px); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; font-size: .88rem; color: var(--text-mid); }
.footer-contact li svg { margin-top: 3px; color: var(--brand-esm-d); }
.social-links { display: flex; gap: 10px; }
.social-link { width: 40px; height: 40px; }

.footer-bottom { display: flex; flex-direction: column; gap: 10px; padding: 22px 0 26px; border-top: 1px solid rgba(29,43,92,.10); }
.footer-bottom p, .footer-marca a { font-size: .76rem; color: var(--text-light); }
.footer-marca a:hover { color: var(--brand-ink); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-legal a { font-size: .76rem; color: var(--text-mid); }
.footer-legal a:hover { color: var(--brand-esm-d); }

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-brand { grid-column: 1 / -1; max-width: none; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 24px; }
  .footer-brand .footer-tagline { margin: 6px 0 0; grid-column: 1; }
  .footer-brand .social-links { grid-column: 2; grid-row: 1 / span 2; }
}
@media (min-width: 1100px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr 1.3fr; }
  .footer-brand { grid-column: auto; display: block; }
  .footer-brand .footer-tagline { margin: 12px 0 18px; }
  .footer-bottom { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
}
@media (max-width: 560px) {
  .footer-cta { padding: 22px 20px 22px 24px; }
  .footer-cta-actions, .footer-btn { width: 100%; }
}
/* Footer en celular: nada fuerza el ancho (el correo largo desbordaba la grilla de 2 columnas) */
.footer-grid > * { min-width: 0; }
.footer-links a, .footer-contact a, .footer-contact span { overflow-wrap: anywhere; }
@media (max-width: 719px) {
  .footer-grid > .footer-col:last-child { grid-column: 1 / -1; }
}


/* ============================================================
   BOTONES CTA (neumorfismo + degradado) Y PRECIO (glassmorphism)
   Degradado: el color fuerte ocupa el primer 33 % (--cta-stop) y de ahí
   se aclara hacia el tono suave. Neumorfismo: luz arriba-izquierda y sombra
   abajo-derecha; al presionar se hunde (sombra interior).
   ============================================================ */
.btn-primary, .btn-call, .search-btn, .exit-intent-btn, .t-btn:hover {
    background: linear-gradient(135deg, var(--cta-ink-strong) 0%, var(--cta-ink-strong) var(--cta-stop), var(--cta-ink-soft) 100%);
    color: var(--white);
    border: none;
    box-shadow: 7px 7px 15px var(--neu-shadow-ink), -5px -5px 12px var(--neu-light), inset 1px 1px 0 rgba(255,255,255,.18);
}
.btn-gold, .btn-signup, .card-cta:hover {
    background: linear-gradient(135deg, var(--cta-esm-strong) 0%, var(--cta-esm-strong) var(--cta-stop), var(--cta-esm-soft) 100%);
    color: var(--white);
    border-color: transparent;
    box-shadow: 7px 7px 15px var(--neu-shadow-esm), -5px -5px 12px var(--neu-light), inset 1px 1px 0 rgba(255,255,255,.2);
}
.btn-listings-cta, .footer-btn-wa {
    background: linear-gradient(135deg, var(--cta-wa-strong) 0%, var(--cta-wa-strong) var(--cta-stop), var(--cta-wa-soft) 100%);
    color: var(--white);
    box-shadow: 7px 7px 15px var(--neu-shadow-wa), -5px -5px 12px var(--neu-light), inset 1px 1px 0 rgba(255,255,255,.25);
}
.card-cta {
    background: var(--brand-mist-2);
    box-shadow: 5px 5px 11px rgba(29,43,92,.16), -5px -5px 11px var(--neu-light);
    border-color: transparent;
}
.footer-btn-line {
    background: var(--brand-mist-2);
    box-shadow: 5px 5px 11px rgba(29,43,92,.16), -5px -5px 11px var(--neu-light);
    border-color: transparent;
}
.footer-btn-line:hover { background: linear-gradient(135deg, var(--cta-ink-strong) 0%, var(--cta-ink-strong) var(--cta-stop), var(--cta-ink-soft) 100%); }
.btn-primary:hover, .btn-call:hover, .search-btn:hover, .exit-intent-btn:hover,
.btn-gold:hover, .btn-signup:hover, .btn-listings-cta:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}
.btn-primary:active, .btn-call:active, .search-btn:active, .exit-intent-btn:active,
.btn-gold:active, .btn-signup:active, .btn-listings-cta:active, .card-cta:active, .footer-btn:active {
    transform: translateY(0);
    box-shadow: inset 4px 4px 9px rgba(0,0,0,.28), inset -3px -3px 8px rgba(255,255,255,.18);
}
/* Sin fondo claro detrás (cabecera, hero) las luces blancas se leen como un halo: se atenúan. */
.nav-links .btn-signup, .navbar .btn-signup, header .btn-signup, header .btn-call {
    box-shadow: 4px 4px 10px var(--neu-shadow-esm), -3px -3px 8px rgba(255,255,255,.7), inset 1px 1px 0 rgba(255,255,255,.2);
}

/* Precio en vidrio (glassmorphism): chip translúcido sobre la foto. */
.inv-pricechip, .price-glass {
    position: absolute; left: 12px; bottom: 12px; z-index: 2; pointer-events: none;
    padding: 7px 14px; border-radius: 14px;
    font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,.45);
    background: linear-gradient(135deg, rgba(255,255,255,.30), rgba(255,255,255,.10));
    border: 1px solid rgba(255,255,255,.45);
    box-shadow: 0 8px 24px rgba(10,20,50,.28), inset 0 1px 0 rgba(255,255,255,.55);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
}
.inv-pricechip::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(14,24,52,.28); z-index: -1; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .inv-pricechip { background: rgba(14,24,52,.72); }
}
@media (prefers-reduced-transparency: reduce) {
    .inv-pricechip, .price-glass { background: rgba(14,24,52,.85); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Botón WhatsApp de las tarjetas: mismo CTA (más suave por su tamaño). */
.inv-card .inv-actbtn-wa {
    background: linear-gradient(135deg, var(--cta-wa-strong) 0%, var(--cta-wa-strong) var(--cta-stop), var(--cta-wa-soft) 100%);
    box-shadow: 4px 4px 9px var(--neu-shadow-wa), -3px -3px 8px var(--neu-light), inset 1px 1px 0 rgba(255,255,255,.25);
}
.inv-card .inv-actbtn-wa:active { box-shadow: inset 3px 3px 7px rgba(0,0,0,.28), inset -2px -2px 6px rgba(255,255,255,.18); }
