/* =========================
   IslaMarket Home
   ========================= */

:root {
    --hp-max: 1320px;
    --hp-pad: 24px;
}

.hp {
    background: #fff;
    color: #111;
}

/* =========================
   HERO no logueado
   ========================= */
.hp-hero {
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    border-bottom: 1px solid rgba(0,0,0,.06);
    overflow: hidden;
}

.hp-hero-slider {
    position: relative;
    width: 100%;
    min-height: 430px;
}

.hp-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .45s ease, visibility .45s ease;
    display: flex;
    align-items: center;
    min-height: 430px;
}

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

.hp-hero-slide--green {
    background: #dff6a6;
}

.hp-hero-slide--mint {
    background: #c8f1e3;
}

.hp-hero-slide--blue {
    background: #dbe9ff;
}

.hp-hero-inner {
    max-width: var(--hp-max);
    width: 100%;
    margin: 0 auto;
    padding: 36px var(--hp-pad) 120px;
    display: grid;
    grid-template-columns: minmax(340px, 520px) 1fr;
    gap: 34px;
    align-items: center;
}

.hp-hero-copy h1 {
    margin: 0 0 10px;
    font-size: 44px;
    line-height: 1.05;
    letter-spacing: -0.6px;
}

    .hp-hero-copy h1 span {
        color: #0b7;
    }

.hp-hero-copy p {
    margin: 0 0 16px;
    opacity: .85;
    font-size: 15px;
}

.hp-hero-ctas {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    border: 1px solid transparent;
}

.hp-btn-primary {
    background: #0b7;
    color: #fff;
}

.hp-btn-ghost {
    background: #fff;
    color: #111;
    border-color: rgba(0,0,0,.14);
}

.hp-hero-media {
    min-width: 0;
    display: flex;
    justify-content: flex-end;
}

.hp-hero-image {
    width: 100%;
    height: 360px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.hp-hero-dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.hp-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: rgba(255,255,255,.65);
    cursor: pointer;
}

    .hp-dot.is-active {
        background: rgba(255,255,255,.98);
    }

/* =========================
   Barra hero única
   ========================= */
.hp-hero-search-wrap {
    position: absolute;
    left: 50%;
    bottom: 54px;
    transform: translateX(-50%);
    width: min(760px, calc(100% - 40px));
    z-index: 25;
}

.hp-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: #fff;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 999px;
    padding: 8px 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

    .hp-search input {
        width: 100%;
        min-width: 0;
        border: 0;
        outline: 0;
        background: transparent;
        font-size: 15px;
        padding: 10px 12px;
        color: #111827;
    }

    .hp-search button {
        border: 0;
        border-radius: 999px;
        min-width: 120px;
        height: 44px;
        padding: 0 18px;
        background: #0b7;
        color: #fff;
        font-weight: 800;
        cursor: pointer;
    }

[data-home-search].is-hidden {
    display: none !important;
}

/* =========================
   Hero logueado
   ========================= */
.hp-hero-logged {
    background: #f7f7f7;
    padding: 52px 20px 34px;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.hp-hero-logged-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

    .hp-hero-logged-inner h1 {
        margin: 0 0 10px;
        font-size: clamp(34px, 4vw, 64px);
        line-height: 1.06;
        font-weight: 800;
        color: #0f172a;
    }

    .hp-hero-logged-inner p {
        margin: 0 0 24px;
        font-size: clamp(18px, 1.8vw, 26px);
        color: #475569;
    }

.hp-hero-search-wrap--logged {
    position: static;
    transform: none;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.hp-search-logged {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: #fff;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 999px;
    padding: 8px 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

    .hp-search-logged input {
        width: 100%;
        min-width: 0;
        border: 0;
        outline: 0;
        background: transparent;
        font-size: 15px;
        padding: 10px 12px;
        color: #111827;
    }

    .hp-search-logged button {
        border: 0;
        border-radius: 999px;
        min-width: 120px;
        height: 44px;
        padding: 0 18px;
        background: #0b7;
        color: #fff;
        font-weight: 800;
        cursor: pointer;
    }

/* =========================
   Contenido
   ========================= */
.hp-wrap {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 36px 28px 64px;
}

.hp-block {
    margin-bottom: 42px;
}

.hp-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

    .hp-block-head h2 {
        margin: 0;
        color: #111827;
        font-family: 'Google Sans', 'Roboto', system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
        font-size: 24px;
        line-height: 1.1;
        letter-spacing: -0.035em;
        font-weight: 700;
    }

.hp-link {
    color: #0b7;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
}

/* =========================
   Categorías tipo Wallapop
   ========================= */
.hp-cats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.hp-cat {
    text-decoration: none;
    color: #111;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}

.hp-cat-img {
    display: block;
    width: 100%;
    height: 170px;
    min-height: 170px;
    border-radius: 18px;
    background-color: #eef1f4;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    border: 0;
    box-shadow: none;
}

.hp-cat-name {
    display: block;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 900;
}

.hp-cat-count {
    display: block;
    font-size: 12px;
    line-height: 1.25;
    color: #6b7280;
    margin-top: -4px;
}

/* =========================
   Listings
   ========================= */
.hp-listings {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.hp-card {
    min-width: 0;
    width: 100%;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: #111;
    box-shadow: 0 10px 26px rgba(0,0,0,.08);
}

.hp-card-img {
    display: block;
    width: 100%;
    height: 150px;
    background: #eee center/cover no-repeat;
}

.hp-card-body {
    display: block;
    padding: 10px;
}

.hp-card-title {
    display: block;
    font-weight: 450;
    font-size: 13px;
    margin-bottom: 14px;
}

.hp-card-meta {
    display: block;
    font-size: 12px;
    opacity: .75;
    margin-bottom: 6px;
}

.hp-card-price {
    display: block;
    font-weight: 450;
}

.hp-center {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

/* =========================
   PRO card
   ========================= */
.hp-pro-card {
    position: relative;
    display: block;
    min-height: 178px;
    padding: 22px;
    border-radius: 22px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #3b82f6 100%);
    box-shadow: 0 14px 30px rgba(37,99,235,.22);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

    .hp-pro-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 38px rgba(37,99,235,.28);
        filter: brightness(1.02);
    }

.hp-pro-content {
    position: relative;
    z-index: 2;
    max-width: 280px;
}

.hp-pro-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.20);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hp-pro-card h3 {
    margin: 26px 0 10px;
    font-size: 32px;
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -.02em;
    color: #fff;
}

.hp-pro-card p {
    margin: 0 0 18px;
    font-size: 17px;
    line-height: 1.45;
    color: rgba(255,255,255,.92);
    max-width: 260px;
}

.hp-pro-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(15,23,42,.14);
}

.hp-pro-arrow {
    font-size: 16px;
    line-height: 1;
}

.hp-pro-glow {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: 1;
}

.hp-pro-glow-1 {
    width: 180px;
    height: 180px;
    right: -40px;
    top: -30px;
    background: radial-gradient(circle, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 72%);
}

.hp-pro-glow-2 {
    width: 120px;
    height: 120px;
    left: -20px;
    bottom: -35px;
    background: radial-gradient(circle, rgba(147,197,253,.26) 0%, rgba(147,197,253,0) 72%);
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 1200px) {
    .hp-hero-slide,
    .hp-hero-slider {
        min-height: 390px;
    }

    .hp-hero-image {
        height: 320px;
    }
}

@media (max-width: 1100px) {
    .hp-wrap {
        max-width: 980px;
        padding: 28px 20px 48px;
    }

    .hp-cats,
    .hp-listings {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .hp-hero-slide,
    .hp-hero-slider {
        min-height: auto;
    }

    .hp-hero-inner {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-bottom: 120px;
    }

    .hp-hero-image {
        height: 220px;
    }

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

    .hp-cats {
        grid-template-columns: repeat(3, 1fr);
    }

    .hp-hero-copy h1 {
        font-size: 34px;
    }
}

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

    .hp-cats,
    .hp-listings {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .hp-cat-img {
        height: 150px;
        min-height: 150px;
    }
}

@media (max-width: 768px) {
    .hp-hero-search-wrap {
        left: 14px;
        right: 14px;
        bottom: 52px;
        width: auto;
        transform: none;
    }

    .hp-search,
    .hp-search-logged {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        padding: 6px 8px;
    }

        .hp-search input,
        .hp-search-logged input {
            font-size: 14px;
            padding: 8px 10px;
        }

        .hp-search button,
        .hp-search-logged button {
            min-width: 92px;
            height: 40px;
            padding: 0 14px;
            font-size: 14px;
        }

    .hp-hero-logged {
        padding: 34px 14px 20px;
    }

    .hp-hero-logged-inner h1 {
        font-size: 28px;
        line-height: 1.1;
    }

    .hp-hero-logged-inner p {
        margin-bottom: 18px;
        font-size: 16px;
        line-height: 1.35;
    }

    .hp-pro-card {
        min-height: 164px;
        padding: 18px;
    }

        .hp-pro-card h3 {
            margin-top: 22px;
            font-size: 26px;
        }

        .hp-pro-card p {
            font-size: 15px;
            max-width: 100%;
        }

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

@media (max-width: 560px) {
    .hp-wrap {
        padding: 18px 14px 32px;
    }

    .hp-cats,
    .hp-listings {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .hp-block-head {
        margin-bottom: 14px;
    }

    .hp-search,
    .hp-search-logged {
        grid-template-columns: minmax(0, 1fr) auto;
    }

        .hp-search button,
        .hp-search-logged button {
            width: auto;
        }
}
/* ===== Home pública fuera del container padre ===== */

body.is-site .hp {
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
}

body.is-site .hp-wrap {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 36px 28px 64px;
}

body.is-site .hp-cats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
}

body.is-site .hp-cat-img {
    height: 170px;
    min-height: 170px;
    border-radius: 18px;
    background-color: #eef1f4;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

body.is-site .hp-cat-name {
    font-size: 15px;
    font-weight: 900;
}

body.is-site .hp-cat-count {
    font-size: 12px;
    color: #6b7280;
}

@media (max-width: 1100px) {
    body.is-site .hp-wrap {
        max-width: 980px;
    }

    body.is-site .hp-cats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    body.is-site .hp-cats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    body.is-site .hp-cat-img {
        height: 150px;
        min-height: 150px;
    }
}
.imh-hero-search {
    padding: 28px 0 22px;
    text-align: center;
}

.imh-hero-search__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.imh-hero-search h1 {
    margin: 0;
    font-size: 38px;
    font-weight: 900;
    color: #0f172a;
}

.imh-hero-search p {
    margin: 8px 0 22px;
    font-size: 20px;
    color: #334155;
}

.imh-hero-search__form {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.imh-hero-search__box {
    flex: 1;
    max-width: 880px;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
}

    .imh-hero-search__box svg {
        width: 18px;
        height: 18px;
        color: #94a3b8;
    }

    .imh-hero-search__box input {
        flex: 1;
        border: 0;
        outline: 0;
        background: transparent;
        font-size: 15px;
    }

.imh-hero-search__form button {
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: #2dd4bf;
    font-weight: 700;
    cursor: pointer;
}
.imh-hero-search {
    padding: 40px 0 30px;
    margin-top: 20px;
    text-align: center;
}
.imh-hero-search {
    padding: 40px 0 30px;
    margin-top: 60px;
    text-align: center;
}
.imh-feed-hero {
    margin: 10px 0 24px;
}

    .imh-feed-hero h1 {
        font-size: 36px;
        font-weight: 900;
        margin: 0;
        color: #0f172a;
    }

    .imh-feed-hero p {
        margin: 6px 0 0;
        font-size: 18px;
        color: #475569;
    }
/* ===== SOLO LOGUEADOS: texto superior home ===== */
.hp-user-intro {
    padding: 18px 0 8px;
}

.hp-user-intro__inner {
    max-width: 1320px;
    margin: 0 auto;
}

.hp-user-intro h1 {
    margin: 0;
    font-size: 36px;
    line-height: 1.08;
    font-weight: 900;
    color: #0f172a;
}

.hp-user-intro p {
    margin: 8px 0 0;
    font-size: 18px;
    line-height: 1.4;
    color: #475569;
}

@media (max-width: 768px) {
    .hp-user-intro {
        padding: 14px 0 6px;
    }

        .hp-user-intro h1 {
            font-size: 28px;
        }

        .hp-user-intro p {
            font-size: 16px;
        }
}
/* ===== /SOLO LOGUEADOS: texto superior home ===== */
/* ===== BUSCADOR HOME LOGUEADO ===== */

.hp-user-search {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    max-width: 900px;
}

    .hp-user-search input {
        flex: 1;
        height: 48px;
        border-radius: 999px;
        border: 1px solid #dbe3ea;
        padding: 0 18px;
        font-size: 15px;
        outline: none;
    }

    .hp-user-search button {
        height: 48px;
        padding: 0 24px;
        border-radius: 999px;
        border: 0;
        background: #2dd4bf;
        font-weight: 700;
        cursor: pointer;
    }

        .hp-user-search button:hover {
            background: #22c7b0;
        }