
/* ==========================================================
   INMOBLO - HOME BRANDING V1
   Capa visual específica para el Home público.
   Depende de Bootstrap 5 + Bootstrap Icons + inmoblo.css
   ========================================================== */

.inmoblo-home {
    --home-overlay-start: rgba(20, 39, 58, .84);
    --home-overlay-end: rgba(20, 39, 58, .24);
    --home-surface: rgba(255, 255, 255, .96);
    --home-surface-border: rgba(255, 255, 255, .42);
    --home-glow-orange: rgba(244, 154, 31, .92);
    --home-glow-magenta: rgba(234, 21, 81, .92);
}

.home-hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    overflow: visible;
    background:
        linear-gradient(
            90deg,
            var(--home-overlay-start) 0%,
            rgba(20, 39, 58, .64) 38%,
            var(--home-overlay-end) 100%
        ),
        var(--home-hero-image, linear-gradient(135deg, #17324a, #2fbd99));
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 110px;
    background:
        linear-gradient(
            135deg,
            var(--inmoblo-teal) 0 23%,
            transparent 23% 77%,
            var(--inmoblo-magenta) 77% 100%
        );
    clip-path: polygon(0 48%, 22% 100%, 78% 100%, 100% 40%, 100% 100%, 0 100%);
    opacity: .97;
    pointer-events: none;
}

.home-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 2.5rem;
    padding-bottom: 9rem;
}

.home-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .9rem;
    border-radius: 999px;
    background: rgba(47, 189, 153, .94);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    box-shadow: 0 .35rem 1rem rgba(0, 0, 0, .1);
}

.home-hero-title {
    max-width: 760px;
    color: #fff;
    font-size: clamp(2.7rem, 5vw, 5.2rem);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 800;
    text-wrap: balance;
}

.home-hero-title .accent-orange {
    color: var(--inmoblo-orange);
}

.home-hero-title .accent-magenta {
    color: var(--inmoblo-magenta);
}

.home-hero-copy {
    max-width: 660px;
    color: rgba(255, 255, 255, .92);
    font-size: clamp(1.05rem, 1.5vw, 1.28rem);
    line-height: 1.55;
}

.home-hero-actions .btn {
    min-height: 52px;
    padding-inline: 1.25rem;
}

.home-hero-actions .btn-outline-light {
    border-width: 2px;
}

.home-trust-card {
    max-width: 285px;
    margin-left: auto;
    border: 0;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 1.25rem 3rem rgba(14, 28, 43, .2);
    backdrop-filter: blur(8px);
}

.home-trust-card .trust-icon {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: var(--inmoblo-teal-soft);
    color: var(--inmoblo-teal-dark);
    font-size: 1.4rem;
}

.home-search-wrap {
    position: relative;
    z-index: 4;
    margin-top: -92px;
}

.home-search-panel {
    border: 1px solid var(--inmoblo-border);
    border-radius: 1.35rem;
    background: var(--home-surface);
    box-shadow: 0 1.4rem 3rem rgba(38, 53, 72, .16);
}

.home-search-panel .form-select,
.home-search-panel .form-control {
    background-color: #f8fafb;
    border-color: #e3e8ec;
}

.home-search-panel .btn-dark {
    min-height: 48px;
    border-radius: .8rem;
}

.home-search-advanced {
    text-decoration: none;
    color: var(--inmoblo-teal-dark);
    font-weight: 700;
    font-size: .9rem;
}

.home-benefits {
    padding-top: 5.5rem;
    padding-bottom: 4.5rem;
}

.home-benefit-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.home-benefit-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 1.55rem;
}

.home-benefit-icon.teal {
    background: var(--inmoblo-teal-soft);
    color: var(--inmoblo-teal-dark);
}

.home-benefit-icon.magenta {
    background: var(--inmoblo-magenta-soft);
    color: var(--inmoblo-magenta);
}

.home-benefit-icon.orange {
    background: var(--inmoblo-orange-soft);
    color: var(--inmoblo-orange);
}

.home-benefit-icon.green {
    background: #e8f8ef;
    color: #1cad66;
}

.home-section-heading {
    max-width: 730px;
}

.home-section-heading h2 {
    letter-spacing: -.035em;
    font-weight: 800;
}

.home-property-card {
    border: 0;
    border-radius: 1.05rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 .5rem 1.8rem rgba(38, 53, 72, .07);
    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.home-property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2.4rem rgba(38, 53, 72, .12);
}

.home-property-media {
    position: relative;
    overflow: hidden;
}

.home-property-media img,
.home-property-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .25s ease;
}

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

.home-property-placeholder {
    background: linear-gradient(135deg, #edf2f5, #f8fafb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ba6b2;
    font-size: 2rem;
}

.home-property-status {
    position: absolute;
    top: .9rem;
    left: .9rem;
    z-index: 2;
    border-radius: .6rem;
    padding: .45rem .7rem;
    font-size: .76rem;
    font-weight: 700;
}

.home-property-status.sale {
    background: var(--inmoblo-teal);
    color: #fff;
}

.home-property-status.rent {
    background: var(--inmoblo-magenta);
    color: #fff;
}

.home-property-price {
    font-size: 1.25rem;
    font-weight: 800;
}

.home-property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    color: var(--inmoblo-muted);
    font-size: .85rem;
}

.home-property-meta span {
    display: inline-flex;
    gap: .32rem;
    align-items: center;
}

.home-owner-cta {
    border: 0;
    border-radius: 1.3rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 20%, rgba(234,21,81,.12), transparent 25%),
        radial-gradient(circle at 10% 85%, rgba(244,154,31,.16), transparent 30%),
        linear-gradient(135deg, #effbf8, #ffffff);
    box-shadow: 0 .8rem 2.1rem rgba(38, 53, 72, .07);
}

.home-whatsapp-float {
    position: fixed;
    right: 1.35rem;
    bottom: 1.35rem;
    z-index: 1040;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 1.6rem;
    text-decoration: none;
    box-shadow: 0 .65rem 1.7rem rgba(37, 211, 102, .32);
}

.home-whatsapp-float:hover {
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 991.98px) {
    .home-hero {
        min-height: auto;
    }

    .home-hero-content {
        padding-top: 4rem;
        padding-bottom: 7.5rem;
    }

    .home-trust-card {
        margin-left: 0;
        max-width: 100%;
    }

    .home-search-wrap {
        margin-top: -58px;
    }

    .home-benefits {
        padding-top: 4rem;
    }
}

@media (max-width: 575.98px) {
    .home-hero-title {
        font-size: 2.7rem;
    }

    .home-hero-actions {
        display: grid !important;
    }

    .home-search-wrap {
        margin-top: -38px;
    }

    .home-search-panel {
        border-radius: 1rem;
    }
}
