.market-heading { padding: 1.7rem 1.35rem; background:#e6efe3; border-radius:1.3rem; margin:.55rem 0 .8rem; }
.market-heading h1 { letter-spacing:-.045em; }
.market-browser { display:grid; gap:.9rem; margin:1.15rem 0; }
.market-search { display:grid; grid-template-columns:minmax(0,1fr) minmax(145px,.27fr); gap:.7rem; }
.market-search label { display:grid; gap:.24rem; min-width:0; color:var(--quiet); font-weight:650; }
.market-search input,.market-search select { width:100%; min-width:0; padding:.76rem; background:var(--card); border:1px solid var(--line); border-radius:.75rem; color:var(--ink); }
.market-chips { gap:.43rem; }
.market-section-title { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:.5rem; margin:.9rem 0 .4rem; }
.market-section-title h2 { margin:.1rem 0; letter-spacing:-.035em; }
#market-count,#market-more { color:var(--quiet); }
#market-more { margin-bottom:.8rem; }
#market-more summary { cursor:pointer; width:fit-content; margin-bottom:.65rem; }
.marketplace-card { min-height:0; display:flex; flex-direction:column; gap:.6rem; }
.marketplace-card h3,.marketplace-card p { margin:0; }
.marketplace-card h3 { letter-spacing:-.023em; line-height:1.2; }
.market-card-top { display:flex; align-items:center; gap:.55rem; }
.market-card-icon { display:grid; flex:0 0 40px; width:40px; aspect-ratio:1; place-items:center; border-radius:.8rem; background:#e7efe5; color:#254d40; font-size:1.3rem; }
.market-pills { display:flex; flex-wrap:wrap; gap:.32rem; }
.market-type { display:inline-block; color:#294638; background:#edf1e8; border-radius:.45rem; padding:.22rem .42rem; font-size:.83rem; line-height:1.35; }
.market-agent { color:#382864; background:#ece6f8; }
.market-description { color:var(--quiet); line-height:1.4; overflow-wrap:anywhere; }
.market-meta { display:flex; flex-wrap:wrap; gap:.2rem .6rem; font-size:.9rem; color:var(--quiet); }
.market-available,.profile-available { color:#246345; font-weight:740; }
.market-card-foot { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:.55rem; margin-top:auto; padding-top:.55rem; border-top:1px solid var(--line); }
.market-card-foot small { display:block; color:var(--quiet); }
.market-reward { font-size:1.25rem; color:#214c3b; letter-spacing:-.03em; }
.market-empty { grid-column:1/-1; padding:1.15rem; border:1px dashed var(--line); border-radius:1rem; display:flex; gap:.7rem; flex-wrap:wrap; align-items:center; }
.market-skeleton { min-height:168px; border-radius:1rem; background:linear-gradient(110deg,#edeee8 30%,#f8f9f4 50%,#edeee8 70%); background-size:220% 100%; animation:market-skeleton 1.45s ease-in-out infinite; }
@keyframes market-skeleton { to { background-position:-220% 0; } }
@media(prefers-reduced-motion:reduce) { .market-skeleton { animation:none; } }
.market-screenreader { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); }
.market-detail > .button { margin:.35rem .35rem 0 0; }
.market-detail-lead { padding:.8rem; background:#ecf1e8; border-radius:.8rem; }
.market-detail-lead strong { display:block; margin-top:.35rem; font-size:1.32rem; color:#214c3b; }
.market-detail-lead p { margin:.15rem 0; }
.profile-panel { display:grid; gap:.75rem; overflow-wrap:anywhere; }
.profile-lead { display:flex; gap:.75rem; align-items:center; padding:.85rem; background:#eaf0e7; border-radius:.9rem; }
.profile-lead .social-avatar { flex-basis:56px; width:56px; height:56px; font-size:1.1rem; }
.profile-heading h3 { margin:0; font-size:1.24rem; }
.profile-heading p,.profile-bio { margin:.2rem 0; }
.profile-available { display:inline-block; margin-left:.35rem; font-size:.83rem; }
.profile-stats,.profile-balance { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.5rem; margin:0; }
.profile-stats > div,.profile-balance > div { padding:.63rem; border-radius:.7rem; border:1px solid var(--line); min-width:0; }
.profile-stats dt,.profile-balance span { font-size:.86rem; color:var(--quiet); }
.profile-stats dd,.profile-balance strong { font-weight:760; font-size:1rem; display:block; margin:0; }
.profile-line { display:flex; justify-content:space-between; align-items:flex-start; gap:.55rem; padding:.62rem 0; border-bottom:1px solid var(--line); }
.profile-line > span { flex:none; }
.profile-line p { margin:.1rem 0; }
.profile-tab-content > .button,.profile-publications { margin-top:.65rem; }
.profile-tab-content h4 { margin-bottom:.2rem; }
@media(min-width:760px) { .profile-stats { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:530px) { .market-search { grid-template-columns:1fr; } .market-heading {padding:1.15rem .85rem;} }

.task-visual { margin:0; min-width:0; }
.card > .task-visual { width:100%; }
.task-photo-frame { position:relative; overflow:hidden; background:#e4eadd; border-radius:.85rem; aspect-ratio:2.1; }
.task-photo { position:absolute; inset-inline:0; top:50%; width:100%; aspect-ratio:1; transform:translateY(-50%); background-image:url('/paro-tareas.jpg'); background-repeat:no-repeat; background-size:300% 200%; }
.task-visual figcaption { color:var(--quiet); font-size:.86rem; margin:.25rem 0 .65rem; }
.market-detail > .task-visual .task-photo-frame { aspect-ratio:2.55; }
.task-steps { list-style:none; padding:0; counter-reset:task-step; display:grid; gap:.45rem; }
.task-steps li { counter-increment:task-step; position:relative; padding:.55rem .7rem .55rem 2.65rem; background:#f0f4eb; border-radius:.7rem; }
.task-steps li::before { content:counter(task-step); display:grid; place-items:center; position:absolute; top:.58rem; left:.68rem; width:1.45rem; height:1.45rem; border-radius:50%; background:#254d40; color:#fff; font-weight:750; font-size:.85rem; }
.task-steps p { margin:.1rem 0; }
.task-extra { padding:.55rem .7rem; border:1px solid var(--line); border-radius:.65rem; }
.task-extra summary { cursor:pointer; }
.task-visual-compact { width:min(125px,100%); margin-bottom:.35rem; }
@media(max-width:530px) { .market-detail > .task-visual .task-photo-frame { aspect-ratio:1.8; } }

.jobs-welcome { display:flex; flex-wrap:wrap; gap:.8rem; align-items:center; justify-content:space-between; background:#fbf1da; border-radius:1.15rem; padding:clamp(.85rem,3vw,1.45rem); margin-bottom:.8rem; }
.jobs-welcome h1 { font-size:clamp(1.8rem,5vw,3.25rem); letter-spacing:-.055em; line-height:1.03; margin:0; }
.jobs-welcome p { margin:.4rem 0 0; color:var(--quiet); }
.job-shortcuts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.65rem; }
.job-shortcuts button { min-width:0; overflow:hidden; display:grid; gap:.15rem; color:var(--ink); background:var(--card); border:1px solid var(--line); border-radius:.85rem; text-align:left; padding:0 0 .66rem; }
.job-shortcuts button:hover,.job-shortcuts button[aria-pressed=true] { border-color:#426b52; background:#edf4e7; }
.job-shortcuts strong,.job-shortcuts small { padding-inline:.63rem; }
.job-shortcuts small { color:var(--quiet); font-size:.88rem; }
.job-shortcuts .task-photo-frame { border-radius:0; aspect-ratio:2.15; margin-bottom:.25rem; }
.task-icon-frame { background:#dceaf0; display:grid; place-items:center; }
.task-car-icon { font-size:clamp(2.1rem,5vw,3.6rem); line-height:1; }
@media(max-width:690px) { .job-shortcuts { grid-template-columns:repeat(2,minmax(0,1fr)); } }

.market-card-title { display: grid; align-content: center; gap: .4rem; min-width: 0; overflow-wrap: anywhere; }
.market-pay-help { margin-top: .25rem; }
@media (max-width: 530px) {
  .marketplace-card { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
  .marketplace-card > .task-visual .task-photo-frame { aspect-ratio: 16 / 9; }
  .marketplace-card > :is(.market-description, .market-meta, .op-meta, .market-card-foot) { grid-column: 1 / -1; }
  .market-card-foot > button { min-height: 44px; }
}

.op-form-feedback { color: #8b2626; margin: .15rem 0 0; }

.task-photo-ugc { inset:0; height:100%; aspect-ratio:auto; transform:none; background:url('/paro-ugc-creadora.jpg') center 66% / cover no-repeat; }
.task-visual:has(.task-app-brand) { position:relative; }
.task-app-brand { position:absolute; inset-block-start:.48rem; inset-inline-start:.48rem; max-width:calc(100% - .96rem); padding:.34rem .6rem; border-radius:.45rem; background:#17362b; color:#fff; font-size:.83rem; font-weight:750; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.task-game-cover { display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
.market-detail > .task-visual-game .task-photo-frame { aspect-ratio:600 / 346; }

@media (max-width: 530px) {
  .marketplace-card > .task-visual-game .task-photo-frame { aspect-ratio:600 / 346; }
}

.task-custom-cover { position:absolute; inset:0; object-fit:contain; }
.task-cover-editor .task-photo-frame { aspect-ratio:16 / 9; }

.task-template-cover { position:absolute; inset:0; }
.market-featured { background:#ffe6a0; color:#573a09; }
.market-advertise { background:#edf4ea; border-color:#b8cebc; }
.market-advertise > .button { margin-top:auto; }

:is(#opportunities-panel, #action-dialog) .button {
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
  min-height: 44px;
}

:is(#opportunities-panel, #action-dialog) .market-cta {
  background: #57df85 linear-gradient(180deg, #ffffff40, #ffffff00);
  border-color: #36a861;
  color: #0d3422;
  box-shadow: inset 0 1px #ffffff90, 0 3px 0 #28834b, 0 5px 10px #17362b24;
}

@media (hover: hover) {
  :is(#opportunities-panel, #action-dialog) .button:not(:disabled):hover { transform: translateY(-1px); }
  :is(#opportunities-panel, #action-dialog) .market-cta:not(:disabled):hover { background-color: #6fed96; }
}

:is(#opportunities-panel, #action-dialog) .button:not(:disabled):active {
  transform: translateY(2px);
  box-shadow: inset 0 2px 4px #17362b45;
}

:is(#opportunities-panel, #action-dialog) .button:focus-visible {
  outline: 2px solid #175a3a;
  outline-offset: 4px;
}

:is(#opportunities-panel, #action-dialog) .market-cta:disabled {
  background: #e4ede5;
  border-color: #b5c7b9;
  color: #435a48;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  :is(#opportunities-panel, #action-dialog) .button { transition: none; }
  :is(#opportunities-panel, #action-dialog) .button:not(:disabled):is(:hover, :active) { transform: none; }
}
