/* MARKETPLACE_HERO_PRODUCTION_PARITY
   Copia aislada de la presentación pública vigente en producción (2026-07-26). */

.ccx-market-page .ccx-market-hero-ad {
    display: block !important;
    position: relative !important;
    padding: 0 !important;
    min-height: 300px !important;
}

.ccx-market-page .ccx-market-hero-ad-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ccx-market-page .ccx-market-hero-ad-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}

.ccx-market-page .ccx-market-hero-ad-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(10,12,17,.78) 0%, rgba(10,12,17,.46) 45%, rgba(10,12,17,.05) 100%);
}

.ccx-market-page .ccx-market-hero-ad[data-hero-carousel] {
    position: relative !important;
    aspect-ratio: 1600 / 520;
    /* V3 necesita una altura efectiva porque todas las diapositivas son absolutas. */
    min-height: 300px !important;
    padding: 0 !important;
}

.ccx-market-page .ccx-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .55s ease;
    pointer-events: none;
}

.ccx-market-page .ccx-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ccx-market-page .ccx-hero-slide .ccx-market-hero-ad-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ccx-market-page .ccx-hero-slide .ccx-market-hero-ad-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ccx-market-page .ccx-hero-slide .ccx-market-hero-copy {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    max-width: 62%;
    padding: 40px 44px 96px;
}

.ccx-market-page .ccx-hero-search-layer {
    position: absolute;
    left: 44px;
    right: 44px;
    bottom: 26px;
    z-index: 4;
    max-width: 440px;
}

.ccx-market-page .ccx-hero-search-layer .ccx-market-search {
    max-width: none;
    margin: 0;
}

.ccx-market-page .ccx-market-hero-ad[data-hero-carousel] .ccx-market-hero-copy {
    padding-bottom: 96px;
}

.ccx-market-page .ccx-hero-dots {
    position: absolute;
    inset-inline-start: auto;
    inset-inline-end: 22px;
    inset-block-end: 22px;
    z-index: 5;
    display: flex;
    gap: 7px;
    transform: none;
}

.ccx-market-page .ccx-hero-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(243,237,221,.38);
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

.ccx-market-page .ccx-hero-dots button.is-active {
    width: 22px;
    background: linear-gradient(135deg, #D99A21, #E9B949);
}

.ccx-market-page .ccx-hero-dots button:focus-visible {
    outline: 2px solid #E9B949;
    outline-offset: 3px;
}

@media (max-width: 1023px) {
    .ccx-market-page .ccx-market-hero-ad[data-hero-carousel] {
        aspect-ratio: 2 / 1;
    }

    .ccx-market-page .ccx-hero-slide .ccx-market-hero-copy {
        max-width: 100%;
        padding: 32px 28px 92px;
    }
}

@media (max-width: 767px) {
    .ccx-market-page .ccx-market-hero-ad[data-hero-carousel] {
        aspect-ratio: auto;
        max-height: none;
        min-height: 0 !important;
        border-radius: 18px !important;
        overflow: hidden !important;
        background: linear-gradient(135deg, #0E1015, #14161C) !important;
    }

    .ccx-market-page .ccx-hero-slide {
        position: absolute;
        inset: 0;
    }

    .ccx-market-page .ccx-hero-slide.is-active {
        position: relative !important;
        inset: auto !important;
        display: block !important;
        width: 100% !important;
        flex: 0 0 auto !important;
        aspect-ratio: 4 / 5 !important;
        min-height: 380px;
        opacity: 1 !important;
        visibility: visible !important;
        border-radius: 20px;
        overflow: hidden;
        border: 1px solid rgba(200,162,75,.30);
        box-shadow: 0 18px 44px rgba(6,8,14,.55);
        background: #0E1015;
    }

    .ccx-market-page .ccx-hero-slide .ccx-market-hero-ad-bg {
        z-index: 0 !important;
        position: absolute !important;
        inset: 0 !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: auto !important;
        overflow: hidden;
    }

    .ccx-market-page .ccx-hero-slide .ccx-market-hero-ad-bg img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .ccx-market-page .ccx-hero-slide .ccx-market-hero-ad-shade {
        position: absolute !important;
        top: auto !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        z-index: 1 !important;
        height: 62% !important;
        background: linear-gradient(180deg, transparent, rgba(8,10,15,.60) 42%, rgba(8,10,15,.93)) !important;
    }

    .ccx-market-page .ccx-hero-slide .ccx-market-hero-copy {
        position: absolute !important;
        top: auto !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        z-index: 2 !important;
        min-height: 0 !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 18px 20px !important;
        gap: 9px !important;
    }

    .ccx-market-page .ccx-market-hero-ad[data-hero-carousel] {
        display: flex !important;
        flex-direction: column;
        overflow: visible !important;
        background: none !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .ccx-market-page .ccx-hero-search-layer {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        order: 99;
        max-width: none;
        margin-top: 12px;
        padding: 0;
    }

    .ccx-market-page .ccx-hero-search-layer .ccx-market-search {
        padding: 6px !important;
        border-radius: 14px !important;
        border: 1px solid rgba(217,154,33,.22) !important;
        background: rgba(255,255,255,.06) !important;
    }

    .ccx-market-page .ccx-hero-dots {
        inset-block-start: 12px;
        inset-inline-end: 12px;
        inset-block-end: auto;
    }

    .ccx-market-page .ccx-hero-slide .ccx-market-hero-copy > * {
        position: relative;
        z-index: 2;
    }

    .ccx-market-page .ccx-market-hero-ad-tag {
        padding: 4px 10px !important;
        border: 1px solid rgba(233,185,73,.45) !important;
        border-radius: 999px !important;
        background: rgba(14,16,21,.72) !important;
        backdrop-filter: blur(8px);
        color: #E9B949 !important;
        font-size: 8px !important;
        letter-spacing: .2em !important;
    }

    .ccx-market-page .ccx-hero-slide .ccx-market-hero-copy h1 {
        display: -webkit-box !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
        font-family: Georgia, "Times New Roman", serif !important;
        font-size: 20px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        letter-spacing: -.01em !important;
        color: #F5EFE3 !important;
        text-shadow: 0 2px 14px rgba(0,0,0,.6);
    }

    .ccx-market-page .ccx-hero-slide .ccx-market-hero-copy p {
        display: -webkit-box !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
        font-size: 12.5px !important;
        line-height: 1.45 !important;
        color: rgba(245,239,227,.78) !important;
        text-shadow: 0 1px 10px rgba(0,0,0,.55);
    }

    .ccx-market-page .ccx-market-hero-ad-cta {
        align-self: flex-start;
        min-height: 44px;
        padding: 11px 22px !important;
        border-radius: 999px !important;
        background: linear-gradient(135deg, #C8A24B, #E9B949) !important;
        color: #14161C !important;
        font-size: 12.5px !important;
        font-weight: 850 !important;
        box-shadow: 0 8px 22px rgba(200,162,75,.34) !important;
    }
}

.ccx-market-page .ccx-market-hero-ad .ccx-market-hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    min-height: 300px;
    max-width: 62%;
    padding: 40px 44px;
}

.ccx-market-page .ccx-market-hero-ad-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(233,185,73,.55);
    background: rgba(20,13,5,.72);
    backdrop-filter: blur(8px);
    color: #ffe3a0 !important;
    font-size: 9.5px !important;
    font-weight: 900 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
}

.ccx-market-page .ccx-market-hero-ad h1 {
    margin: 0 !important;
    max-width: 20ch;
    font-size: 34px !important;
    text-shadow: 0 2px 20px rgba(0,0,0,.45);
}

.ccx-market-page .ccx-market-hero-ad p {
    margin: 0 !important;
    max-width: 44ch;
    text-shadow: 0 1px 12px rgba(0,0,0,.4);
}

.ccx-market-page .ccx-market-hero-ad-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #D99A21, #E9B949);
    color: #14161C;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(217,154,33,.36);
    transition: transform .18s ease;
}

.ccx-market-page .ccx-market-hero-ad-cta:hover {
    transform: translateY(-1px);
}

.ccx-market-page .ccx-market-hero-ad .ccx-market-search {
    width: 100%;
    max-width: 440px;
    margin-top: 4px;
}

html[dir="rtl"] .ccx-market-page .ccx-market-hero-ad-shade {
    background: linear-gradient(270deg, rgba(10,12,17,.94) 0%, rgba(10,12,17,.78) 42%, rgba(10,12,17,.18) 100%);
}
