/* HOME de Granada Inmobiliaria: hero, beneficios y ajustes de continuidad. */

.home-page {
    background: #fff;
    color: var(--granada-text, #1f2937);
    overflow-x: hidden;
}

.home-page .header-section {
    box-shadow: 0 4px 16px rgba(15, 23, 42, .045);
}

.home-page .section-link:focus-visible,
.home-page .search-submit:focus-visible,
.home-page .search-clear:focus-visible {
    outline: 3px solid rgba(247, 148, 29, .95);
    outline-offset: 3px;
}

.home-benefits {
    position: relative;
    z-index: 2;
    border-bottom: 1px solid var(--granada-border, #e5e7eb);
    background: #fff;
}

.home-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 26px 0;
}

.home-benefit {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 15px;
    padding: 0 30px;
    border-right: 1px solid rgba(107, 114, 128, .18);
}

.home-benefit:first-child {
    padding-left: 0;
}

.home-benefit:last-child {
    padding-right: 0;
    border-right: 0;
}

.home-benefit-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(116, 49, 155, .07);
    color: var(--granada-purple, #74319b);
    font-size: 18px;
}

.home-benefit:nth-child(odd) .home-benefit-icon {
    background: rgba(213, 27, 91, .07);
    color: var(--granada-pink, #d51b5b);
}

.home-benefit h2 {
    margin: 0 0 4px;
    color: var(--granada-text, #1f2937);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.home-benefit p {
    margin: 0;
    color: var(--granada-muted, #6b7280);
    font-size: 13px;
    line-height: 1.45;
}

.home-page .search-floating-wrap {
    margin-top: 0;
    padding: 34px 0 18px;
    background: var(--granada-bg, #f8fafc);
}

.home-page .search-home-card {
    box-shadow: 0 10px 26px rgba(15, 23, 42, .055);
}

.home-page .search-floating-wrap + .section-shell {
    padding-top: 72px;
}

/* Selección editorial de propiedades */
.home-page .search-floating-wrap + .home-featured,
.home-page .home-featured {
    padding-top: 22px;
    padding-bottom: 84px;
    background: var(--granada-bg, #f8fafc);
}

.home-featured .featured-section-head {
    display: grid;
    grid-template-columns: minmax(0, 720px) minmax(210px, 280px);
    justify-content: start;
    align-items: end;
    gap: 40px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--granada-border, #e5e7eb);
}

.featured-heading-copy {
    max-width: 720px;
}

.featured-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
    color: var(--granada-pink, #d51b5b);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.featured-kicker::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--granada-pink, #d51b5b);
}

.home-featured .featured-section-head h2 {
    max-width: 720px;
    margin: 0;
    color: #111827;
    font-size: clamp(42px, 3vw, 48px);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -1px;
}

.home-featured .featured-section-head p {
    max-width: 620px;
    margin: 12px 0 0;
    color: var(--granada-muted, #6b7280);
    font-size: 16px;
    line-height: 1.6;
}

.home-featured .featured-catalog-link {
    display: inline-flex;
    align-items: center;
    align-self: end;
    justify-self: end;
    gap: 8px;
    padding: 0 0 4px;
    border: 0;
    border-bottom: 1px solid rgba(17, 24, 39, .25);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #111827 !important;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

.home-featured .featured-catalog-link:hover {
    transform: translateX(2px);
    border-color: var(--granada-purple, #74319b);
    color: var(--granada-purple, #74319b) !important;
}

.home-featured .featured-grid-row {
    margin-top: 0;
}

.home-page a.whatsapp-link {
    position: fixed !important;
    right: 20px !important;
    bottom: 20px !important;
    left: auto !important;
    top: auto !important;
    z-index: 1050 !important;
}

.home-page a.whatsapp-link .whatsapp {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: flex !important;
    width: 52px !important;
    height: 52px !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    box-shadow: 0 8px 18px rgba(34, 197, 94, .22);
    font-size: 27px !important;
}

.home-page a.whatsapp-link .whatsapp i {
    position: static !important;
    margin: 0 !important;
    line-height: 1 !important;
}

/* Servicios principales */
.home-services {
    position: relative;
    padding: 88px 0 92px;
    background: #fff;
}

.home-services-head {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
    align-items: end;
    gap: 64px;
    margin-bottom: 38px;
}

.home-services-heading {
    max-width: 720px;
}

.home-services-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
    color: var(--granada-pink, #d51b5b);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.home-services-kicker::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--granada-pink, #d51b5b);
}

.home-services-head h2 {
    max-width: 680px;
    margin: 0;
    color: #111827;
    font-size: clamp(42px, 3vw, 48px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.8px;
}

.home-services-head p {
    max-width: 430px;
    margin: 0 0 3px;
    color: var(--granada-muted, #6b7280);
    font-size: 16px;
    line-height: 1.65;
}

.home-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.home-service-card {
    --service-color: var(--granada-pink, #d51b5b);
    --service-soft: rgba(213, 27, 91, .08);
    position: relative;
    display: flex;
    min-height: 318px;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    overflow: hidden;
    border: 1px solid var(--granada-border, #e5e7eb);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
    color: var(--granada-text, #1f2937) !important;
    text-decoration: none !important;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.home-service-card::before {
    content: attr(data-number);
    position: absolute;
    top: 20px;
    right: 24px;
    color: rgba(15, 23, 42, .06);
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.home-service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30px;
    width: 92px;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: var(--service-color);
}

.home-service-card:hover {
    transform: translateY(-3px);
    border-color: rgba(116, 49, 155, .18);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .075);
    color: var(--granada-text, #1f2937) !important;
}

.home-service-card.sale {
    --service-color: var(--granada-pink, #d51b5b);
    --service-soft: rgba(213, 27, 91, .08);
}

.home-service-card.legal {
    --service-color: var(--granada-purple, #74319b);
    --service-soft: rgba(116, 49, 155, .08);
}

.home-service-card.credit {
    --service-color: var(--granada-teal, #1fbdbe);
    --service-soft: rgba(31, 189, 190, .10);
}

.home-service-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: 60px;
    height: 60px;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border-radius: 50%;
    background: var(--service-soft);
    color: var(--service-color);
    font-size: 25px;
}

.home-service-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    color: #111827;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.3;
}

.home-service-card p {
    position: relative;
    z-index: 1;
    margin: 0 0 24px;
    color: var(--granada-muted, #6b7280);
    font-size: 14px;
    line-height: 1.65;
}

.home-service-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--service-color);
    font-size: 14px;
    font-weight: 700;
}

.home-service-link i {
    transition: transform .2s ease;
}

.home-service-card:hover .home-service-link i {
    transform: translateX(3px);
}

.home-service-card:focus-visible {
    outline: 3px solid rgba(116, 49, 155, .24);
    outline-offset: 3px;
}

/* Exploración por tipo y propiedad destacada */
.home-explore {
    padding: 84px 0;
    background: var(--granada-bg, #f8fafc);
}

.feature-modern-wrap {
    display: grid;
    grid-template-columns: minmax(320px, 30%) minmax(0, 1fr);
    gap: 26px;
    align-items: stretch;
}

.feature-modern-left {
    height: 100%;
    padding: 28px;
    border: 1px solid var(--granada-border, #e5e7eb);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
}

.feature-modern-left h2 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.4px;
}

.feature-modern-left p {
    margin: 0 0 20px;
    color: var(--granada-muted, #6b7280);
    font-size: 15px;
    line-height: 1.6;
}

.feature-category-list {
    padding: 0;
    margin: 0 0 22px;
    list-style: none;
}

.feature-category-list li {
    margin-bottom: 9px;
}

.feature-category-list a {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 15px;
    border: 1px solid var(--granada-border, #e5e7eb);
    border-radius: 11px;
    background: #fff;
    color: var(--granada-text, #1f2937) !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.feature-category-list a span {
    color: var(--granada-purple, #74319b);
}

.feature-category-list a:hover {
    border-color: rgba(116, 49, 155, .25);
    background: var(--granada-bg, #f8fafc);
}

.feature-category-list a:focus-visible {
    outline: 3px solid rgba(116, 49, 155, .20);
    outline-offset: 2px;
}

.feature-modern-left .btn-home-all {
    min-height: 49px;
    width: 100%;
    padding: 0 22px;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(116, 49, 155, .12);
}

.feature-slider-shell {
    position: relative;
    min-width: 0;
    min-height: 560px;
    overflow: hidden;
    border: 1px solid var(--granada-border, #e5e7eb);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.feature-slider-shell .fp-slider {
    width: 100%;
}

.feature-slider-shell .owl-stage {
    display: flex;
    align-items: stretch;
}

.feature-slider-shell .owl-stage-outer {
    overflow: hidden;
}

.feature-slider-shell .owl-item {
    height: auto !important;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.feature-slider-shell .owl-item,
.feature-slider-shell .owl-item.active,
.feature-slider-shell .owl-item a,
.feature-slider-shell .fp-card {
    opacity: 1 !important;
}

.feature-slider-shell .owl-item > a {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none !important;
}

.home-explore .fp-card {
    display: flex;
    min-height: 560px;
    height: 100%;
    flex-direction: column;
    background: #fff;
}

.home-explore .fp-item {
    position: relative;
    display: flex;
    min-height: 424px;
    align-items: flex-end;
    background-color: #dfe6ee;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.home-explore .fp-item::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, .74) 0%,
        rgba(15, 23, 42, .20) 45%,
        rgba(15, 23, 42, 0) 70%
    );
}

.home-explore .fp-text {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 30px 82px 26px 28px;
    color: #fff;
}

.home-explore .fp-text .title {
    display: -webkit-box;
    max-width: 760px;
    margin: 0 0 10px;
    overflow: hidden;
    color: #fff;
    font-size: clamp(28px, 2.2vw, 34px) !important;
    font-weight: 800;
    line-height: 1.16;
    text-shadow: 0 2px 8px rgba(15, 23, 42, .28);
    word-break: break-word;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-explore .fp-text p {
    max-width: 760px;
    margin: 0 0 14px;
    color: rgba(255, 255, 255, .86);
    font-size: 14px;
    line-height: 1.5;
    text-shadow: 0 1px 5px rgba(15, 23, 42, .25);
}

.home-explore .fp-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.home-explore .fp-text .label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    margin: 0;
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    box-shadow: none;
}

.home-explore .fp-text h5 {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 2.3vw, 36px);
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(15, 23, 42, .30);
}

.home-explore .fp-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    flex-shrink: 0;
    padding: 16px 18px 18px;
    border-top: 1px solid var(--granada-border, #e5e7eb);
    background: #fff;
}

.home-explore .fp-meta-item {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--granada-border, #e5e7eb);
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.home-explore .fp-meta-item i {
    flex: 0 0 auto;
    color: #4b5563;
    font-size: 15px;
}

.feature-slider-shell .owl-nav button {
    display: flex !important;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, .94) !important;
    box-shadow: 0 5px 16px rgba(15, 23, 42, .12);
    color: #111827 !important;
    font-size: 21px !important;
}

.feature-slider-shell .owl-nav button:hover {
    background: #fff !important;
    color: var(--granada-purple, #74319b) !important;
}

.feature-slider-shell .owl-nav button:focus-visible {
    outline: 3px solid rgba(116, 49, 155, .25);
    outline-offset: 2px;
}

.feature-slider-shell .owl-prev,
.feature-slider-shell .owl-next {
    position: absolute;
    top: 212px;
    z-index: 5;
    transform: translateY(-50%);
}

.feature-slider-shell .owl-prev {
    left: 16px;
}

.feature-slider-shell .owl-next {
    right: 16px;
}

.feature-slider-shell .owl-dots {
    position: absolute;
    right: 0;
    bottom: 17px;
    left: 0;
    z-index: 5;
}

@media (max-width: 1199.98px) {
    .home-page .hs-nav .nav-menu ul li {
        margin-right: 10px !important;
    }

    .home-page .hs-nav .nav-menu ul li.space35 {
        margin-left: 3% !important;
    }

    .home-page .hs-nav .nav-menu ul li a {
        font-size: 12px;
    }

    .home-page .hs-nav .logo img {
        width: 82px !important;
    }

    .home-hero {
        min-height: 590px;
        background-position: 55% center;
    }

    .home-hero .site-hero-title {
        font-size: 48px;
    }

    .home-benefit {
        padding: 0 22px;
    }

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

    .feature-modern-wrap {
        grid-template-columns: 1fr;
    }

    .feature-modern-left {
        height: auto;
    }
}

@media (max-width: 991.98px) {
    .home-hero {
        min-height: 580px;
        background-position: 61% center;
    }

    .home-hero .site-hero-content {
        padding-top: 64px;
        padding-bottom: 66px;
    }

    .home-hero .site-hero-title {
        font-size: 42px;
    }

    .home-hero .site-hero-description {
        font-size: 17px;
    }

    .home-benefits-grid {
        gap: 0;
    }

    .home-benefit {
        align-items: flex-start;
        padding: 0 16px;
    }

    .home-benefit-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .home-services {
        padding: 76px 0 80px;
    }

    .home-services-head {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 32px;
    }

    .home-services-head h2 {
        font-size: 40px;
    }

    .home-services-head p {
        max-width: 640px;
    }

    .home-explore .fp-item {
        min-height: 390px;
    }

    .home-explore .fp-text {
        padding: 26px 76px 24px 24px;
    }

    .feature-slider-shell .owl-prev,
    .feature-slider-shell .owl-next {
        top: 195px;
    }

    .home-featured .featured-section-head {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-featured .featured-catalog-link {
        justify-self: start;
    }
}

@media (max-width: 767.98px) {
    .home-hero {
        min-height: 570px;
        background-image:
            linear-gradient(
                90deg,
                rgba(15, 23, 42, .86) 0%,
                rgba(31, 24, 42, .72) 48%,
                rgba(15, 23, 42, .25) 100%
            ),
            url('../../img/hero-granada-home.webp');
        background-position: 67% center;
    }

    .home-hero .site-hero-content {
        width: auto;
        max-width: 100vw;
        margin-right: 0;
        margin-left: 0;
        box-sizing: border-box;
        padding-top: 54px;
        padding-right: 20px !important;
        padding-bottom: 58px;
        padding-left: 20px !important;
    }

    .home-hero .row {
        margin-right: 0;
        margin-left: 0;
    }

    .home-hero .site-hero-content .row > [class*='col-'] {
        width: 100%;
        max-width: calc(100vw - 40px) !important;
        flex: none !important;
        padding-right: 0;
        padding-left: 0;
    }

    .home-hero .site-hero-title {
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
        font-size: 38px;
        line-height: 1.08;
        overflow-wrap: break-word;
    }

    .home-hero .site-hero-description {
        width: calc(100vw - 40px);
        max-width: 520px;
        font-size: 16px;
        line-height: 1.55;
    }

    .home-hero .site-hero-actions {
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
    }

    .home-benefits-grid {
        grid-template-columns: 1fr;
        padding: 12px 0;
    }

    .home-benefit,
    .home-benefit:first-child,
    .home-benefit:last-child {
        padding: 15px 0;
        border-right: 0;
        border-bottom: 1px solid rgba(107, 114, 128, .15);
    }

    .home-benefit:last-child {
        border-bottom: 0;
    }

    .home-page .search-floating-wrap {
        margin-top: 0;
        padding: 28px 0 16px;
    }

    .home-page .search-floating-wrap + .section-shell {
        padding-top: 60px;
    }

    .home-page .search-floating-wrap + .home-featured,
    .home-page .home-featured {
        padding-top: 24px;
        padding-right: 0;
        padding-bottom: 68px;
        padding-left: 0;
    }

    .home-featured > .container {
        padding-right: 20px;
        padding-left: 20px;
    }

    .home-featured .featured-section-head {
        gap: 18px;
        padding-bottom: 24px;
        margin-bottom: 24px;
    }

    .featured-kicker {
        margin-bottom: 11px;
        font-size: 11px;
    }

    .home-featured .featured-section-head h2 {
        font-size: 32px;
        line-height: 1.07;
        letter-spacing: -.7px;
    }

    .home-featured .featured-section-head p {
        margin-top: 10px;
        font-size: 15px;
    }

    .home-services {
        padding: 68px 0 72px;
    }

    .home-services-head h2 {
        font-size: 34px;
        line-height: 1.1;
    }

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

    .home-service-card {
        min-height: 0;
        padding: 27px 26px 28px;
    }

    .home-service-card::after {
        left: 26px;
    }

    .home-explore {
        padding: 66px 0;
    }

    .feature-modern-left {
        padding: 24px;
    }

    .feature-modern-left h2 {
        font-size: 28px;
    }

    .feature-slider-shell {
        min-height: auto;
    }

    .home-explore .fp-card {
        min-height: 0;
        height: auto;
    }

    .home-explore .fp-item {
        min-height: 330px;
    }

    .home-explore .fp-text {
        padding: 22px 20px 20px;
    }

    .home-explore .fp-text .title {
        font-size: 24px !important;
        line-height: 1.2;
    }

    .home-explore .fp-text p {
        font-size: 13px;
    }

    .home-explore .fp-text h5 {
        font-size: 25px;
    }

    .home-explore .fp-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 14px;
    }

    .home-explore .fp-meta-item {
        min-height: 56px;
        font-size: 12px;
    }

    .feature-slider-shell .owl-nav button {
        width: 44px;
        height: 44px;
        font-size: 19px !important;
    }

    .feature-slider-shell .owl-prev,
    .feature-slider-shell .owl-next {
        top: 165px;
    }

    .feature-slider-shell .owl-prev {
        left: 10px;
    }

    .feature-slider-shell .owl-next {
        right: 10px;
    }
}

@media (max-width: 575.98px) {
    .home-hero {
        min-height: 560px;
        background-position: 70% center;
    }

    .home-hero .site-hero-kicker {
        padding: 8px 13px;
        font-size: 12px;
    }

    .home-hero .site-hero-title {
        font-size: 36px;
        letter-spacing: -.7px;
    }

    .home-hero .site-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-hero .btn-granada {
        width: 100%;
    }

    .home-page a.whatsapp-link {
        right: 12px !important;
        bottom: 14px !important;
    }

    .home-page a.whatsapp-link .whatsapp {
        width: 48px !important;
        height: 48px !important;
        font-size: 24px !important;
    }

    .home-services-head h2 {
        font-size: 31px;
    }

    .home-service-card::before {
        font-size: 38px;
    }

    .feature-modern-left {
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero .btn-granada {
        transition: none;
    }
}
