/* F02.2-R9: public discovery only; shared navigation and other pages are unchanged. */
body.ts-r9-explore-page { color: var(--ts-public-ink); background: var(--ts-public-surface); }
.ts-r9-explore-page .ts-public-shell { width: 100%; margin: 0; overflow: visible; border: 0; border-radius: 0; background: var(--ts-public-surface); box-shadow: none; }
.ts-marketplace {
    --market-accent: var(--ts-public-theme-accent-strong, #087a3d);
    --market-soft: var(--ts-public-theme-page-start, #f4fbf7);
    --market-line: var(--ts-public-theme-page-line, #d8ece0);
    width: 100%;
    margin: 0;
    padding: 0 0 3rem;
    color: var(--ts-public-ink);
    font-family: 'Figtree', system-ui, sans-serif;
}
.ts-marketplace *, .ts-marketplace *::before, .ts-marketplace *::after { box-sizing: border-box; }
.ts-marketplace svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ts-marketplace h1, .ts-marketplace h2, .ts-marketplace h3, .ts-marketplace p { margin: 0; }
.ts-marketplace h1, .ts-marketplace h2, .ts-marketplace h3 { font-family: 'TSOutfit', 'Figtree', sans-serif; }
.ts-marketplace a { color: var(--market-accent); text-underline-offset: 4px; }
.ts-marketplace a:hover { text-decoration: underline; }
.ts-marketplace :is(a, button, input):focus-visible { outline: 3px solid var(--market-accent); outline-offset: 4px; }
.ts-marketplace__hero {
    width: 100%;
    text-align: center;
    background:
        linear-gradient(100deg, rgba(255, 255, 255, .89), rgba(255, 255, 255, .78) 55%, rgba(244, 251, 247, .86)),
        url('/resources/img/portada.1-pr.png') center 55% / cover no-repeat;
}
.ts-marketplace__hero-inner { width: min(100% - 48px, 1000px); margin: 0 auto; padding: 46px 0 34px; }
.ts-marketplace__below {
    display: grid;
    grid-template-columns: minmax(220px, 20fr) minmax(0, 60fr) minmax(220px, 20fr);
    grid-template-areas: 'left content right';
    gap: 34px;
    width: calc(100% - 48px);
    max-width: none;
    margin: 0 auto;
    align-items: stretch;
}
.ts-marketplace__content { grid-area: content; min-width: 0; }
.ts-marketplace__ad {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    position: sticky;
    top: 9.5rem;
    min-width: 0;
    min-height: 0;
    max-height: calc(100vh - 10.5rem);
    margin-top: 22px;
    padding: 16px;
    border: 1px dashed var(--market-line);
    border-radius: 12px;
    background: var(--market-soft);
    color: var(--ts-public-muted);
    font-size: .78rem;
    text-align: center;
    overflow-y: auto;
}
.ts-marketplace__ad > * { max-width: 100%; }
.ts-marketplace__ad--invitation-left,
.ts-marketplace__ad--invitation-right {
    display: block;
    align-self: start;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
    max-height: none;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background-color: var(--market-soft);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: contain;
    overflow: hidden;
    aspect-ratio: 2 / 3;
}
.ts-marketplace__ad--invitation-left {
    background-image: url('/resources/img/img-explorer-inv1.png');
}
.ts-marketplace__ad--invitation-right {
    background-image: url('/resources/img/img-explorer-inv2.png');
}
.ts-marketplace__ad--invitation-left > *,
.ts-marketplace__ad--invitation-right > * {
    max-width: none;
}
.ts-marketplace__ad--invitation-left .ts-marketplace__sr-only,
.ts-marketplace__ad--invitation-right .ts-marketplace__sr-only {
    position: absolute;
}
.ts-marketplace__ad--left { grid-area: left; }
.ts-marketplace__ad--right { grid-area: right; }
.ts-marketplace .ts-marketplace__eyebrow { color: var(--market-accent); font-size: .7rem; font-weight: 650; letter-spacing: .13em; line-height: 1.6; }
.ts-marketplace__hero .ts-marketplace__eyebrow { display: flex; justify-content: center; align-items: center; gap: 8px; }
.ts-marketplace__eyebrow > span { width: 6px; height: 6px; border-radius: 50%; background: var(--market-accent); }
.ts-marketplace__hero h1 { max-width: 800px; margin: 12px auto 14px; font-size: clamp(2rem, 3.3vw, 2.9rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.14; text-wrap: balance; }
.ts-marketplace__hero h1 span { color: var(--market-accent); }
.ts-marketplace .ts-marketplace__lead { max-width: 590px; margin: auto; color: var(--ts-public-muted); font-size: 1rem; line-height: 1.6; text-wrap: pretty; }
.ts-marketplace__hero .ts-marketplace__lead,
.ts-marketplace__hero .ts-marketplace__hint { color: var(--ts-public-ink); }
.ts-marketplace__search { display: flex; align-items: center; gap: 12px; max-width: 710px; margin: 24px auto 12px; padding: 7px 7px 7px 18px; border: 1px solid var(--market-accent); border-radius: 12px; background: var(--ts-public-surface); box-shadow: 0 5px 18px rgb(23 51 38 / 5%); }
.ts-marketplace__search > svg { color: var(--market-accent); }
.ts-marketplace__search input { min-width: 0; flex: 1; width: 100%; padding: 12px 0; border: 0; border-radius: 3px; background: transparent; color: var(--ts-public-ink); font: inherit; }
.ts-marketplace__search input::placeholder { color: var(--ts-public-muted); opacity: 1; }
.ts-marketplace__search button { display: flex; justify-content: center; align-items: center; gap: 20px; min-height: 46px; padding: 10px 22px; border: 0; border-radius: 8px; background: var(--market-accent); color: white; font: inherit; font-size: .9rem; font-weight: 550; cursor: pointer; }
.ts-marketplace__search button:hover { background: var(--ts-public-green-900); }
.ts-marketplace .ts-marketplace__hint { color: var(--ts-public-muted); font-size: .78rem; line-height: 1.7; }
.ts-marketplace__hint a { display: inline-block; font-weight: 500; }
.ts-marketplace__categories { padding: 22px 0; border-top: 1px solid var(--market-line); border-bottom: 1px solid var(--market-line); }
.ts-marketplace__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ts-marketplace__chips a { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--market-line); border-radius: 9px; background: var(--ts-public-surface); color: var(--ts-public-ink); font-size: .83rem; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; transition: border-color .15s, background-color .15s; }
.ts-marketplace__chips a:hover { border-color: var(--market-accent); background: var(--market-soft); text-decoration: none; }
.ts-marketplace__chips a[aria-current] { background: var(--market-soft); border-color: var(--market-accent); color: var(--market-accent); font-weight: 600; }
.ts-marketplace__chips svg { width: 19px; height: 19px; }
.ts-marketplace__chip-count { min-width: 19px; padding: 1px 5px; border-radius: 5px; background: var(--market-soft); color: var(--ts-public-muted); font-size: .72rem; text-align: center; }
.ts-marketplace__catalog { padding: 28px 0; }
.ts-marketplace__catalog-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.ts-marketplace__catalog-heading h2 { margin: 5px 0 6px; font-size: clamp(1.3rem, 2vw, 1.65rem); font-weight: 550; letter-spacing: -.02em; }
.ts-marketplace__result-count { color: var(--ts-public-muted); font-size: .85rem; overflow-wrap: anywhere; }
.ts-marketplace__order { flex-shrink: 0; color: var(--ts-public-muted); font-size: .75rem; }
.ts-marketplace__order span { margin-left: 7px; color: var(--ts-public-ink); }
.ts-marketplace__reset { flex-shrink: 0; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: .85rem; }
.ts-marketplace__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.ts-marketplace-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--market-line); border-radius: 14px; background: var(--ts-public-surface); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.ts-marketplace-card:hover { border-color: var(--market-accent); box-shadow: 0 6px 20px rgb(23 51 38 / 5%); }
.ts-marketplace-card__media { position: relative; overflow: hidden; aspect-ratio: 1.9; background: var(--market-soft); border-bottom: 1px solid var(--market-line); }
.ts-marketplace-card__media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.ts-marketplace-card__placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 100%; color: var(--market-accent); font-size: .75rem; background: linear-gradient(135deg, var(--market-soft), var(--ts-public-theme-page-end)); }
.ts-marketplace-card__placeholder svg { width: 38px; height: 38px; stroke-width: 1.2; }
.ts-marketplace-card__body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 20px; overflow-wrap: anywhere; }
.ts-marketplace-card__category { color: var(--market-accent); font-size: .7rem; font-weight: 600; letter-spacing: .02em; }
.ts-marketplace-card h3 { font-size: 1.2rem; font-weight: 550; line-height: 1.3; letter-spacing: -.02em; }
.ts-marketplace-card__description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: var(--ts-public-muted); font-size: .88rem; line-height: 1.6; }
.ts-marketplace-card__platforms { display: flex; flex-wrap: wrap; gap: 5px; padding: 0; margin: 0; list-style: none; }
.ts-marketplace-card__platforms li { max-width: 100%; padding: 3px 7px; border-radius: 4px; color: var(--ts-public-muted); background: var(--market-soft); font-size: .68rem; }
.ts-marketplace-card__publisher { color: var(--ts-public-muted); font-size: .75rem; line-height: 1.5; }
.ts-marketplace-card__reputation { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .78rem; }
.ts-marketplace-card__reputation > span { color: var(--market-accent); }
.ts-marketplace-card__rating-max { color: var(--ts-public-muted); font-weight: 400; }
.ts-marketplace-card__reputation a { margin-left: 5px; }
.ts-marketplace-card__no-reviews { color: var(--ts-public-muted); font-size: .75rem; }
.ts-marketplace-card__actions { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding-top: 14px; margin-top: auto; }
.ts-marketplace-card__detail { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 44px; padding: 9px 14px; border-radius: 7px; background: var(--market-soft); font-size: .82rem; font-weight: 600; }
.ts-marketplace-card__external { display: inline-flex; align-items: center; min-height: 44px; gap: 5px; font-size: .75rem; }
.ts-marketplace__grid--single { grid-template-columns: minmax(0, 1fr); }
.ts-marketplace__grid--single .ts-marketplace-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.ts-marketplace__grid--single .ts-marketplace-card__media { aspect-ratio: auto; min-height: 260px; border-bottom: 0; border-right: 1px solid var(--market-line); }
.ts-marketplace__grid--single .ts-marketplace-card__body { padding: 24px 28px; }
.ts-marketplace__empty { display: flex; align-items: center; gap: 20px; padding: 30px; border: 1px dashed var(--market-line); border-radius: 12px; background: var(--market-soft); }
.ts-marketplace__empty > svg { width: 36px; height: 36px; color: var(--market-accent); }
.ts-marketplace__empty h3 { font-size: 1.15rem; font-weight: 550; }
.ts-marketplace__empty p { max-width: 630px; margin: 8px 0; color: var(--ts-public-muted); font-size: .9rem; line-height: 1.6; }
.ts-marketplace__empty a { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; font-size: .85rem; font-weight: 500; }
.ts-marketplace__discovery { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 22px 0 0; border-top: 1px solid var(--market-line); }
.ts-marketplace__discovery > div { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.ts-marketplace__discovery > div + div { border-left: 1px solid var(--market-line); padding-left: 24px; }
.ts-marketplace__discovery svg { color: var(--market-accent); }
.ts-marketplace__discovery h2 { font-size: .95rem; font-weight: 550; }
.ts-marketplace__discovery p { margin-top: 4px; color: var(--ts-public-muted); font-size: .78rem; line-height: 1.5; }
.ts-marketplace__discovery a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .8rem; font-weight: 500; }
.ts-marketplace__sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 1249px) {
    .ts-marketplace__below {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas: 'content content' 'left right';
    }
    .ts-marketplace__ad {
        position: static;
        top: auto;
        max-height: none;
        overflow: visible;
        margin-top: 0;
    }
}
@media (max-width: 1000px) {
    .ts-marketplace__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .ts-marketplace__grid--single { grid-template-columns: minmax(0, 1fr); }
    .ts-marketplace__grid--single .ts-marketplace-card__body { padding: 20px; }
    .ts-marketplace__hero-inner { padding-top: 34px; }
    .ts-marketplace__discovery > div { align-items: flex-start; }
}
@media (max-width: 600px) {
    .ts-marketplace { padding-bottom: 30px; }
    .ts-marketplace__hero-inner { width: calc(100% - 32px); padding: 28px 0 22px; }
    .ts-marketplace__hero { text-align: left; background-position: center 52%; }
    .ts-marketplace__below { display: block; width: calc(100% - 32px); }
    .ts-marketplace__ad { display: none; }
    .ts-marketplace__ad--left { display: flex; }
    .ts-marketplace__ad--right { display: flex; }
    .ts-marketplace__hero .ts-marketplace__eyebrow { justify-content: flex-start; font-size: .61rem; letter-spacing: .09em; }
    .ts-marketplace__hero h1 { margin-top: 10px; font-size: 2rem; }
    .ts-marketplace__lead { font-size: .93rem; }
    .ts-marketplace__search { flex-wrap: wrap; gap: 8px; padding: 8px; margin-top: 20px; }
    .ts-marketplace__search > svg { margin-left: 5px; width: 20px; }
    .ts-marketplace__search input { font-size: 16px; }
    .ts-marketplace__search button { width: 100%; }
    .ts-marketplace__categories { padding: 18px 0; }
    .ts-marketplace__chips a { padding: 9px 11px; font-size: .78rem; }
    .ts-marketplace__catalog-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
    .ts-marketplace__order { display: none; }
    .ts-marketplace__grid { grid-template-columns: minmax(0, 1fr); }
    .ts-marketplace__grid--single .ts-marketplace-card { display: flex; }
    .ts-marketplace__grid--single .ts-marketplace-card__media { aspect-ratio: 1.9; min-height: 0; border-right: 0; border-bottom: 1px solid var(--market-line); }
    .ts-marketplace__grid--single .ts-marketplace-card__body { padding: 18px; }
    .ts-marketplace-card__body { padding: 18px; }
    .ts-marketplace__empty { padding: 22px 18px; gap: 14px; align-items: flex-start; }
    .ts-marketplace__empty > svg { width: 26px; height: 26px; }
    .ts-marketplace__discovery { grid-template-columns: 1fr; gap: 18px; }
    .ts-marketplace__discovery > div + div { border-left: 0; border-top: 1px solid var(--market-line); padding: 18px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
    .ts-marketplace *, .ts-marketplace *::before, .ts-marketplace *::after { transition: none; }
}
