/* =========================================================
   HOME PERSONALIZED - IslaMarket
   ========================================================= */

/* =========================
   Base home
   ========================= */

.hp {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
    position: relative;
    box-sizing: border-box;
}

.hp-wrap {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px 24px;
    box-sizing: border-box;
}

/* =========================
   Bloques generales
   ========================= */

.imh-block {
    margin: 28px 0 40px;
}

    .imh-block__title,
    .imh-block h2 {
        margin: 0 0 18px;
        font-size: 28px;
        line-height: 1.1;
        font-weight: 900;
        color: #0f172a;
        letter-spacing: -.02em;
    }

/* =========================
   Invitado - colecciones
   ========================= */

.imh-collections-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.imh-collection-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.imh-collection-card__media {
    aspect-ratio: 1 / 1;
    background: #eef2f6;
    border-radius: 24px;
    overflow: hidden;
}

    .imh-collection-card__media img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

.imh-collection-card__body {
    padding-top: 10px;
}

    .imh-collection-card__body strong {
        display: block;
        font-size: 15px;
        font-weight: 800;
        color: #0f172a;
    }

    .imh-collection-card__body span {
        display: block;
        margin-top: 3px;
        font-size: 13px;
        color: #64748b;
    }

/* =========================
   Logueado - feed
   ========================= */

.imh-feed-grid,
.imh-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.imh-product-card {
    min-width: 0;
}

.imh-product-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.imh-product-card__media {
    position: relative;
    aspect-ratio: 0.82 / 1;
    background: #eef2f6;
    border-radius: 22px;
    overflow: hidden;
}

    .imh-product-card__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.imh-product-card__body {
    padding: 10px 4px 0;
}

.imh-product-card__title {
    margin: 0;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 800;
    color: #0f172a;
}

.imh-product-card__meta {
    margin-top: 4px;
    font-size: 13px;
    color: #64748b;
}

.imh-price-pill {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.96);
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 6px 18px rgba(15,23,42,.12);
}

.imh-pro-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
}

/* =========================
   Favorito
   ========================= */

.imh-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    box-shadow: 0 6px 18px rgba(15,23,42,.12);
    transition: transform .18s ease, background .2s ease, box-shadow .18s ease;
}

    .imh-fav-btn span {
        font-size: 22px;
        line-height: 1;
        transform: translateY(-1px);
    }

    .imh-fav-btn:hover {
        transform: scale(1.05);
    }

    .imh-fav-btn.is-active {
        background: #ff2d55;
        color: #fff;
        animation: imHeartPop .35s ease;
    }

.im-heart-pop {
    animation: imHeartPop .35s ease;
}

@keyframes imHeartPop {
    0% {
        transform: scale(.6);
    }

    40% {
        transform: scale(1.35);
    }

    70% {
        transform: scale(.9);
    }

    100% {
        transform: scale(1);
    }
}

/* =========================
   Cards simples legacy
   ========================= */

.imh-card {
    display: block;
    background: #f6f7f9;
    border-radius: 14px;
    padding: 12px;
    text-decoration: none;
    color: #111;
}

    .imh-card img {
        width: 100%;
        height: 120px;
        object-fit: contain;
        display: block;
    }

.imh-card-body {
    margin-top: 8px;
}

    .imh-card-body strong {
        display: block;
        font-size: 14px;
    }

    .imh-card-body span {
        font-size: 12px;
        color: #6b7280;
    }

/* =========================================================
   HERO SLIDER HOME PUBLICA
   ========================================================= */

.hp-hero-slider-wrap {
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: -28px;
    margin-bottom: 28px;
    background: #d9ecab;
    border-bottom: 1px solid rgba(15,23,42,.06);
    overflow: hidden;
}

.hp-hero-slider {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 520px;
}

.hp-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .4s ease, visibility .4s ease;
}

    .hp-hero-slide.is-active {
        position: relative;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

.hp-hero-slide__inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 8px 24px 120px;
    min-height: 520px;
    display: grid;
    grid-template-columns: 500px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    box-sizing: border-box;
}

.hp-hero-slide__copy {
    max-width: 500px;
}

.hp-hero-slide__kicker {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 14px;
    margin: 14px 0 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.5);
    color: #2f5a3d;
    font-size: 13px;
    font-weight: 800;
}

.hp-hero-slide__copy h1 {
    margin: 0 0 14px;
    color: #08122f;
    font-size: clamp(46px, 4.8vw, 72px);
    line-height: .92;
    letter-spacing: -.05em;
    font-weight: 900;
}

    .hp-hero-slide__copy h1 span {
        color: #08b56d;
    }

.hp-hero-slide__copy p {
    margin: 0 0 22px;
    max-width: 470px;
    color: #425466;
    font-size: 18px;
    line-height: 1.45;
}

.hp-hero-slide__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.hp-hero-slide__points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .hp-hero-slide__points span {
        display: inline-flex;
        align-items: center;
        height: 34px;
        padding: 0 13px;
        border-radius: 999px;
        background: rgba(255,255,255,.58);
        color: #1f2937;
        font-size: 13px;
        font-weight: 700;
    }

.hp-hero-slide__media {
    width: 100%;
    height: 320px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15,23,42,.10);
}

    .hp-hero-slide__media img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        object-position: center;
    }

.hp-hero-search-bar {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: 100%;
    z-index: 4;
}

.hp-search--hero-slider {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(780px, calc(100% - 40px));
    margin: 0 auto;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: 0 14px 30px rgba(15,23,42,.12);
}

    .hp-search--hero-slider input {
        flex: 1 1 auto;
        min-width: 0;
        height: 52px;
        border: 0;
        outline: 0;
        background: transparent;
        padding: 0 18px;
        color: #0f172a;
        font-size: 16px;
    }

    .hp-search--hero-slider button {
        height: 52px;
        padding: 0 30px;
        border: 0;
        border-radius: 999px;
        background: #08b56d;
        color: #fff;
        font-size: 16px;
        font-weight: 800;
        cursor: pointer;
    }

        .hp-search--hero-slider button:hover {
            background: #06975b;
        }

.hp-hero-dots {
    display: none !important;
}

.hp-hero-nav--prev {
    left: 16px;
}

.hp-hero-nav--next {
    right: 16px;
}

.hp-hero-dots {
    display: none !important;
}

    .hp-hero-dots button {
        width: 10px;
        height: 10px;
        border: 0;
        border-radius: 50%;
        background: rgba(15,23,42,.20);
        cursor: pointer;
    }

        .hp-hero-dots button.is-active {
            background: #08b56d;
        }

.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
    transition: transform .15s ease, background .15s ease;
}

    .hp-btn:hover {
        transform: translateY(-1px);
    }

.hp-btn-primary {
    background: #08b56d;
    color: #fff;
}

.hp-btn-ghost {
    background: #fff;
    color: #0f172a;
    border: 1px solid rgba(15,23,42,.08);
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1180px) {
    .imh-collections-grid,
    .imh-feed-grid,
    .imh-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .hp-wrap {
        padding: 0 20px 20px;
    }

    .hp-hero-slider {
        min-height: 640px;
    }

    .hp-hero-slide__inner {
        grid-template-columns: 1fr;
        padding: 8px 20px 120px;
        min-height: 640px;
        gap: 22px;
    }

    .hp-hero-slide__copy {
        max-width: none;
    }

    .hp-hero-slide__media {
        height: 280px;
    }
}

@media (max-width: 920px) {
    .imh-collections-grid,
    .imh-feed-grid,
    .imh-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .imh-block__title,
    .imh-block h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .hp-wrap {
        padding: 0 16px 20px;
    }

    .hp-hero-slider-wrap {
        margin-bottom: 22px;
    }

    .hp-hero-slider {
        min-height: 560px;
    }

    .hp-hero-slide__inner {
        min-height: 560px;
        padding: 6px 16px 110px;
    }

    .hp-hero-slide__kicker {
        margin-top: 10px;
    }

    .hp-hero-slide__copy h1 {
        font-size: 38px;
        line-height: 1.02;
    }

    .hp-hero-slide__copy p {
        font-size: 15px;
    }

    .hp-hero-slide__media {
        height: 220px;
        border-radius: 18px;
    }

    .hp-search--hero-slider {
        width: calc(100% - 24px);
    }

        .hp-search--hero-slider input {
            height: 46px;
            font-size: 15px;
            padding: 0 14px;
        }

        .hp-search--hero-slider button {
            height: 46px;
            padding: 0 18px;
            font-size: 14px;
        }

    .hp-hero-nav {
        display: none;
    }
}

@media (max-width: 640px) {
    .imh-collections-grid,
    .imh-feed-grid,
    .imh-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .imh-block {
        margin: 22px 0 30px;
    }

        .imh-block__title,
        .imh-block h2 {
            font-size: 22px;
            margin-bottom: 14px;
        }

    .imh-fav-btn {
        width: 34px;
        height: 34px;
    }

        .imh-fav-btn span {
            font-size: 20px;
        }

    .imh-price-pill {
        font-size: 13px;
        padding: 5px 9px;
    }
}
/* Ocultar flechas del hero */
.hp-hero-nav,
[data-hero-prev],
[data-hero-next] {
    display: none !important;
}
/* Ocultar controles del slider completamente */
.hp-hero-nav,
.hp-hero-dots,
[data-hero-prev],
[data-hero-next],
[data-hero-dots] {
    display: none !important;
}
/* Hero más bajo y estable */
.hp-hero-slider {
    min-height: 430px !important;
}

.hp-hero-slide__inner {
    min-height: 400px;
    height: 230px;
    padding: 8px 24px 96px !important;
    align-items: center !important;
}

.hp-hero-slide__media {
    height: 260px !important;
}

.hp-hero-search-bar {
    bottom: 14px !important;
}

.hp-hero-dots {
    bottom: 72px !important;
}

/* Tablet */
@media (max-width: 1080px) {
    .hp-hero-slider {
        min-height: 520px !important;
    }

    .hp-hero-slide__inner {
        min-height: 520px !important;
        padding: 8px 20px 96px !important;
    }

    .hp-hero-slide__media {
        height: 240px !important;
    }
}

/* Móvil */
@media (max-width: 768px) {
    .hp-hero-slider {
        min-height: 470px !important;
    }
    /*ESTO ES LA CAJA DEL HERO MENOS ALTO*/
    .hp-hero-slide__inner {
        min-height: 470px !important;
        padding: 6px 16px 90px !important;
    }

    .hp-hero-slide__media {
        height: 190px !important;
    }

    .hp-hero-search-bar {
        bottom: 10px !important;
    }
}
/* Hero: contenido y buscador más pequeños */
.hp-hero-slide__copy h1 {
    font-size: clamp(32px, 3.4vw, 50px) !important;
    line-height: .95 !important;
}

.hp-hero-slide__copy p {
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin-bottom: 14px !important;
    max-width: 410px !important;
}

.hp-btn {
    height: 42px !important;
    padding: 0 18px !important;
    font-size: 14px !important;
}

.hp-hero-slide__ctas {
    gap: 10px !important;
    margin-bottom: 12px !important;
}

.hp-hero-slide__points {
    gap: 8px !important;
}

    .hp-hero-slide__points span {
        height: 28px !important;
        padding: 0 10px !important;
        font-size: 11px !important;
    }

.hp-hero-slide__kicker {
    min-height: 28px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
    margin: 8px 0 12px !important;
}

.hp-hero-slide__media {
    height: 235px !important;
    border-radius: 24px !important;
}

/* Buscador hero más pequeño */
.hp-search--hero-slider {
    width: min(620px, calc(100% - 40px)) !important;
    padding: 4px !important;
}

    .hp-search--hero-slider input {
        height: 38px !important;
        font-size: 14px !important;
        padding: 0 12px !important;
    }

    .hp-search--hero-slider button {
        height: 38px !important;
        padding: 0 16px !important;
        font-size: 14px !important;
    }

.hp-hero-search-bar {
    bottom: 8px !important;
}
/* Colores diferentes para cada slide */

.hp-hero-slide:nth-child(1) {
    background: linear-gradient(180deg,#d9ecab 0%,#cfe3a2 100%);
}

.hp-hero-slide:nth-child(2) {
    background: linear-gradient(180deg,#d7ecff 0%,#c7e2ff 100%);
}

.hp-hero-slide:nth-child(3) {
    background: linear-gradient(180deg,#ffe8cc 0%,#ffdcb0 100%);
}

.hp-hero-slide:nth-child(4) {
    background: linear-gradient(180deg,#eadcff 0%,#dbc8ff 100%);
}
/* =========================
   FIX MÓVIL HERO SLIDER
   ========================= */
@media (max-width: 768px) {
    .hp-hero-slider-wrap {
        margin-bottom: 16px !important;
    }

    .hp-hero-slider {
        min-height: auto !important;
        height: auto !important;
    }

    .hp-hero-slide {
        display: none !important;
        position: relative !important;
        inset: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: none !important;
    }

        .hp-hero-slide.is-active {
            display: block !important;
            pointer-events: auto !important;
        }

    .hp-hero-slide__inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        min-height: auto !important;
        height: auto !important;
        padding: 10px 16px 88px !important;
    }

    .hp-hero-slide__copy {
        max-width: none !important;
    }

    .hp-hero-slide__kicker {
        margin: 4px 0 10px !important;
        font-size: 12px !important;
    }

    .hp-hero-slide__copy h1 {
        font-size: 28px !important;
        line-height: 1.02 !important;
        letter-spacing: -.03em !important;
        margin-bottom: 10px !important;
    }

    .hp-hero-slide__copy p {
        font-size: 14px !important;
        line-height: 1.35 !important;
        margin-bottom: 12px !important;
        max-width: none !important;
    }

    .hp-hero-slide__ctas {
        gap: 8px !important;
        margin-bottom: 10px !important;
    }

    .hp-btn {
        height: 40px !important;
        padding: 0 16px !important;
        font-size: 14px !important;
    }

    .hp-hero-slide__points {
        gap: 8px !important;
        margin-bottom: 0 !important;
    }

        .hp-hero-slide__points span {
            height: 26px !important;
            padding: 0 10px !important;
            font-size: 11px !important;
        }

    .hp-hero-slide__media {
        display: block !important;
        width: 100% !important;
        height: 170px !important;
        min-height: 170px !important;
        border-radius: 18px !important;
        overflow: hidden !important;
        margin-top: 2px !important;
    }

        .hp-hero-slide__media img {
            display: block !important;
            width: 100% !important;
            height: 100% !important;
            object-fit: cover !important;
            object-position: center !important;
        }

    .hp-hero-search-bar {
        position: absolute !important;
        left: 50% !important;
        bottom: 8px !important;
        transform: translateX(-50%) !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .hp-search--hero-slider {
        width: calc(100% - 12px) !important;
        padding: 4px !important;
    }

        .hp-search--hero-slider input {
            height: 40px !important;
            font-size: 14px !important;
            padding: 0 12px !important;
        }

        .hp-search--hero-slider button {
            height: 40px !important;
            padding: 0 16px !important;
            font-size: 14px !important;
        }

    .hp-hero-nav,
    .hp-hero-dots,
    [data-hero-prev],
    [data-hero-next],
    [data-hero-dots] {
        display: none !important;
    }
}
/* =========================================================
   SEO LINKS BLOCK
   ========================================================= */

.hp-seo {
    background: #f5f7fa;
    border-top: 1px solid #e6ebf1;
    margin-top: 32px;
}

.hp-seo__inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 40px 24px 36px;
}

.hp-seo__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px 28px;
}

.hp-seo__col h3,
.hp-seo__cities h3,
.hp-seo__text h3 {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 900;
    color: #0f172a;
}

.hp-seo__links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .hp-seo__links a {
        color: #60758b;
        text-decoration: none;
        font-size: 14px;
        line-height: 1.45;
    }

        .hp-seo__links a:hover {
            color: #0f172a;
            text-decoration: underline;
        }

.hp-seo__bottom {
    margin-top: 36px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 40px;
    align-items: start;
}

.hp-seo__links--inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.hp-seo__text p {
    margin: 0;
    color: #60758b;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 1180px) {
    .hp-seo__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .hp-seo__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hp-seo__bottom {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .hp-seo__inner {
        padding: 28px 16px 24px;
    }

    .hp-seo__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 18px;
    }

    .hp-seo__links a,
    .hp-seo__text p {
        font-size: 13px;
    }
}
/* =========================================================
   SEO BLOCK HOME
   ========================================================= */

.hp-seo {
    margin-top: 34px;
    padding-top: 34px;
    border-top: 1px solid #e6ebf1;
    background: transparent;
}

.hp-seo-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px 24px;
    box-sizing: border-box;
}

.hp-seo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 34px;
}

.hp-seo-col {
    min-width: 0;
}

    .hp-seo-col h3,
    .hp-seo-cities h3,
    .hp-seo-text h3 {
        margin: 0 0 10px;
        color: #0f172a;
        font-size: 15px;
        line-height: 1.25;
        font-weight: 900;
        letter-spacing: -.01em;
    }

.hp-seo-links {
    color: #64748b;
    font-size: 14px;
    line-height: 1.75;
}

    .hp-seo-links a {
        color: #64748b;
        text-decoration: none;
        transition: color .15s ease;
    }

        .hp-seo-links a:hover {
            color: #0f172a;
            text-decoration: underline;
        }

.hp-seo-bottom {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 42px;
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid #edf1f5;
}

.hp-seo-links-inline {
    color: #64748b;
}

.hp-seo-text p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

/* responsive */
@media (max-width: 1180px) {
    .hp-seo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .hp-seo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 24px;
    }

    .hp-seo-bottom {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .hp-seo {
        margin-top: 26px;
        padding-top: 26px;
    }

    .hp-seo-inner {
        padding: 0 16px 18px;
    }

    .hp-seo-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .hp-seo-col h3,
    .hp-seo-cities h3,
    .hp-seo-text h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .hp-seo-links,
    .hp-seo-text p {
        font-size: 13px;
        line-height: 1.65;
    }

    .hp-seo-bottom {
        margin-top: 24px;
        padding-top: 20px;
    }
}
.hp-card {
    position: relative;
}

.hp-card-img {
    position: relative;
    display: block;
}
.hp-block-head h2 {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -.3px;
}
@media (max-width: 768px) {
    .hp-block-head h2 {
        font-size: 20px;
    }
}
/* =========================================================
   HOME LOGUEADO · Cards estilo Wallapop real
   ========================================================= */

.hp-listings--logged {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(230px,1fr));
    gap: 22px;
}

.hp-card--logged {
    display: block;
    text-decoration: none;
    color: #111827;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
}

    .hp-card--logged:hover {
        transform: translateY(-1px);
    }

    .hp-card--logged .hp-card-media {
        position: relative;
        display: block;
        width: 100%;
        border-radius: 16px;
        overflow: visible;
        background: #ececec;
    }

    .hp-card--logged .hp-card-img {
        display: block;
        width: 100%;
        aspect-ratio: 0.9 / 1;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-color: #ececec;
        border-radius: 16px;
        transition: transform .25s ease;
    }

    .hp-card--logged:hover .hp-card-img {
        transform: scale(1.02);
    }

    .hp-card--logged .hp-card-photo-count {
        position: absolute;
        left: 10px;
        bottom: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 22px;
        padding: 0 8px;
        border-radius: 999px;
        background: rgba(39,44,52,.72);
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        line-height: 1;
        z-index: 3;
    }

    .hp-card--logged .hp-card-body,
    .hp-card--logged .hp-card-body--logged {
        position: relative;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 8px;
        padding: 10px 34px 0 0 !important;
        margin: 0;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
    }

    .hp-card--logged .hp-card-main {
        min-width: 0;
        flex: 1 1 auto;
    }

    .hp-card--logged .hp-card-price {
        display: block;
        margin: 0 0 4px;
        font-size: 18px;
        line-height: 1.15;
        font-weight: 800;
        color: #111827;
    }

    .hp-card--logged .hp-card-title {
        display: block;
        margin: 0;
        font-size: 15px;
        line-height: 1.28;
        color: #111827;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hp-card--logged .hp-card-fav--bottom {
        position: absolute;
        top: 8px;
        right: 0;
        width: 24px;
        height: 24px;
        border: 0;
        background: transparent !important;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
        margin: 0;
        z-index: 4;
    }

        .hp-card--logged .hp-card-fav--bottom span {
            display: block;
            font-size: 20px;
            line-height: 1;
            color: #5f6b7a;
        }

        .hp-card--logged .hp-card-fav--bottom.is-active span {
            color: #ff4d67;
        }

    .hp-card--logged .imh-fav-btn,
    .hp-card--logged .imh-fav-btn:hover,
    .hp-card--logged .imh-fav-btn:focus,
    .hp-card--logged .hp-card-fav,
    .hp-card--logged .hp-card-fav:hover,
    .hp-card--logged .hp-card-fav:focus {
        background: transparent !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .hp-card--logged .hp-card-body::before,
    .hp-card--logged .hp-card-body::after {
        display: none !important;
        content: none !important;
    }

@media (max-width: 640px) {
    .hp-listings--logged {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 14px 12px;
    }

    .hp-card--logged .hp-card-media,
    .hp-card--logged .hp-card-img {
        border-radius: 14px;
    }

    .hp-card--logged .hp-card-img {
        aspect-ratio: 0.9 / 1;
    }

    .hp-card--logged .hp-card-body,
    .hp-card--logged .hp-card-body--logged {
        padding: 8px 28px 0 0 !important;
    }

    .hp-card--logged .hp-card-price {
        font-size: 16px;
    }

    .hp-card--logged .hp-card-title {
        font-size: 14px;
    }

    .hp-card--logged .hp-card-photo-count {
        left: 8px;
        bottom: 8px;
        min-height: 20px;
        padding: 0 7px;
        font-size: 11px;
    }

    .hp-card--logged .hp-card-fav--bottom {
        top: 6px;
        width: 22px;
        height: 22px;
    }

        .hp-card--logged .hp-card-fav--bottom span {
            font-size: 18px;
        }
}
.hp-card--logged:hover .hp-card-img {
    transform: scale(1.02);
    transition: transform .25s ease;
}
/* ===============================
   VISTO RECIENTEMENTE
================================ */

.hp-recent-wrap {
    margin-top: 14px;
    margin-bottom: 18px;
}

.hp-recent-card {
    position: relative;
    display: block;
    width: 260px;
    height: 64px;
    border-radius: 14px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    text-decoration: none;
}

.hp-recent-overlay {
    position: absolute;
    inset: 0;
    background: rgba(209,169,48,0.42);
}

.hp-recent-eye {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c79b1d;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

    .hp-recent-eye svg {
        width: 18px;
        height: 18px;
    }

.hp-recent-label {
    margin-top: 6px;
    font-size: 14px; /* antes 18 */
    font-weight: 500;
    color: #111827;
}
.hp-card-media {
    position: relative;
}

.hp-card-pro-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #19c2b3 0%, #11a7c8 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(17, 167, 200, 0.22);
}
.hp-card-fav {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    white-space: nowrap;
}

.hp-card-fav-icon {
    font-size: 14px;
    line-height: 1;
    color: #7b8794;
    transform: translateY(-1px);
}

.hp-card-fav.is-active .hp-card-fav-icon {
    color: #e54864;
}

.hp-card-fav-count {
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    color: #5f6b76;
    transform: translateY(-1px);
    min-width: 0;
}
