/* ==========================================================================
   Xoxaz — Tareas (explorar, publicar, detalle, mis tareas)
   Complementa xoxaz.css: usa sus variables y clases. Móvil primero, toques de 48 px.
   ========================================================================== */

[hidden] { display: none !important; }

/* ---------- Explorar ---------- */
.x-search { display: flex; gap: 8px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); box-shadow: var(--shadow-1); }
.x-search .input-icon { flex: 1 1 auto; min-width: 0; }
.x-search .input { border: 0; min-height: 48px; background: transparent; box-shadow: none; border-radius: var(--r-pill); }
.x-search .input:focus { box-shadow: none; }
.x-search:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.x-search .btn { flex: none; }
.filter { min-height: 44px; text-decoration: none; }
.filter .i { width: 16px; height: 16px; }
.filter-soft { background: var(--bg-soft); border-color: transparent; }
.explore-bar { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.explore-bar .segmented { width: 100%; }
.explore-bar .segmented a { height: 44px; }
.sort-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px var(--gutter); margin: 0 calc(var(--gutter) * -1); }
.sort-row::-webkit-scrollbar { display: none; }
@media (min-width: 720px) {
  .explore-bar { flex-direction: row; align-items: center; justify-content: space-between; }
  .explore-bar .segmented { width: 240px; flex: none; }
  .sort-row { margin: 0; padding: 2px; }
}
.result-line { color: var(--muted); font-size: var(--fs-sm); margin: 20px 0 12px; display: flex; align-items: flex-start; gap: 8px; }
.result-line .i { flex: none; margin-top: 2px; }

.task-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.task-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; min-width: 0; }
.task-card .task-title { font-size: 17px; }
.task-card .price { font-size: 26px; }
.task-cat .i { width: 14px; height: 14px; }
.chip-km { background: var(--brand-50); color: var(--brand-700); }
.offers-count { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); }
.offers-count.is-zero { color: var(--brand); }

/* ---------- Mapas (Leaflet) ---------- */
.x-map { position: relative; height: 240px; border-radius: var(--r-lg); overflow: hidden; background: #E9EEF3; border: 1px solid var(--line); z-index: 0; }
.x-map-md { height: 300px; }
@media (min-width: 900px) { .x-map-md { height: 340px; } }
.map-wrap { position: relative; }
.x-map-lg { height: calc(100dvh - 330px); min-height: 380px; max-height: 720px; }
.x-map .leaflet-control-attribution { font-size: 10px; }
.leaflet-container { font-family: var(--font); }
.x-map .leaflet-bar a, .x-map.leaflet-touch .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; font-size: 22px; }
.leaflet-bar { border-radius: 14px !important; overflow: hidden; border: 1px solid var(--line) !important; box-shadow: var(--shadow-1) !important; }
.x-pin { background: none; border: 0; }
.x-pin span { position: absolute; left: 50%; top: 0; width: 30px; height: 30px; margin-left: -15px; border-radius: 50% 50% 50% 0; background: var(--brand); transform: rotate(-45deg); box-shadow: 0 6px 14px rgb(11 127 87 / .35); border: 3px solid #fff; }
.x-pin span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; }
.x-pin-sm span { width: 24px; height: 24px; margin-left: -12px; border-width: 2px; }
.x-pin-n { position: absolute; left: 50%; top: -6px; transform: translateX(4px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--selva); color: #fff; font: 700 11px/18px var(--font); text-align: center; }
.map-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.map-tools .btn { flex: 1 1 auto; }
.map-note { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-xs); color: var(--muted); margin-top: 10px; }
.map-note .i { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.sin-mapa .x-map { display: none; }
.map-card { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 500; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-3); padding: 14px; max-height: 60%; overflow-y: auto; }
@media (min-width: 720px) { .map-card { left: auto; width: 360px; } }
.map-card[hidden] { display: none; }
.map-card { scroll-margin-bottom: calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom)); }
@media (max-width: 719px) { .x-map-lg { height: calc(100dvh - 240px); min-height: 360px; } }
.map-card .mc-item { display: flex; gap: 12px; align-items: center; padding: 8px 4px; min-height: 56px; border-radius: 12px; }
.map-card .mc-item + .mc-item { border-top: 1px solid var(--line-2); }
.map-card .mc-item:hover { background: var(--bg-soft); }
.map-card .mc-title { font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.map-card .mc-meta { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }
.map-card .mc-price { font-weight: 800; font-size: 20px; letter-spacing: -0.03em; margin-left: auto; white-space: nowrap; }
.map-card .mc-close { position: absolute; top: 6px; right: 6px; }

/* ---------- Publicar (asistente) ---------- */
.wizard { max-width: 640px; margin: 0 auto; }
.wizard .steps, .wizard .pasos-linea { margin-bottom: 10px; }
.wizard .step-label { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; margin-bottom: 24px; }
.paso { border: 0; padding: 0; margin: 0 0 40px; min-width: 0; }
.paso > legend, .paso .paso-title { font-size: clamp(28px, 6vw, 40px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; padding: 0; margin-bottom: 8px; }
.paso .paso-sub { color: var(--muted); margin-bottom: 24px; }
.is-wizard .paso { display: none; }
.is-wizard .paso.is-current { display: block; animation: x-in .3s var(--ease); }
.js-only { display: none !important; }
.x-js .js-only { display: flex !important; }
.x-js p.js-only { display: block !important; }
.x-js .no-js-only { display: none !important; }
.x-js .js-only[hidden] { display: none !important; }
.wizard-nav { display: flex; gap: 10px; margin-top: 28px; }
.wizard-nav .btn { flex: 1 1 0; }
.wizard-nav .btn-dark, .wizard-nav .btn-primary { flex: 2 1 0; }

.opt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; cursor: pointer; font-weight: 600; font-size: var(--fs-sm); transition: border-color .15s, box-shadow .15s, background .15s; -webkit-tap-highlight-color: transparent; }
.opt:hover { border-color: #CFCFD6; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt .opt-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--bg-soft); display: grid; place-items: center; flex: none; color: var(--ink); }
.opt > span:last-child { min-width: 0; overflow-wrap: anywhere; hyphens: manual; }
.cat-pick .opt { padding: 12px; gap: 10px; }
.opt small { display: block; font-weight: 500; color: var(--muted); font-size: var(--fs-xs); margin-top: 2px; }
.opt:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.opt:has(input:checked) .opt-ico { background: var(--brand); color: #fff; }
.opt:has(input:focus-visible) { box-shadow: var(--ring); }
.opt.is-checked { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.opt.is-checked .opt-ico { background: var(--brand); color: #fff; }
.cat-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .cat-pick { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cat-pick .opt { flex-direction: column; align-items: flex-start; text-align: left; } }
.field + .field, .field + .opt-grid, .opt-grid + .field { margin-top: 20px; }
.field-row { display: grid; gap: 20px; margin-top: 20px; }
.field-row > .field + .field { margin-top: 0; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.counter { font-variant-numeric: tabular-nums; }
.budget-input .input { min-height: 72px; font-size: 32px; letter-spacing: -0.03em; padding-left: 40px; }
.budget-input::before { font-size: 28px; left: 18px; }
.resumen { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.resumen-item { display: flex; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); align-items: flex-start; }
.resumen-item:last-child { border-bottom: 0; }
.resumen-item .i { color: var(--muted); margin-top: 2px; }
.resumen-item dt { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.resumen-item dd { margin: 2px 0 0; font-weight: 600; word-break: break-word; white-space: pre-line; }
.resumen-item .edit { margin-left: auto; flex: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px; }
.resumen-price dd { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }

/* ---------- Detalle de la tarea ---------- */
.detail-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "aside" "main"; }
.detail-head { grid-area: head; }
.detail-main { grid-area: main; min-width: 0; }
.detail-aside { grid-area: aside; min-width: 0; }
@media (min-width: 960px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "head aside" "main aside"; gap: 24px; align-items: start; }
  .detail-aside .aside-card { position: sticky; top: calc(var(--topbar-h) + 20px); }
}
.detail-title { font-size: clamp(28px, 5vw, 40px); letter-spacing: -0.04em; line-height: 1.08; margin: 14px 0 20px; word-break: break-word; }
.facts { display: grid; gap: 14px; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
.fact { display: flex; gap: 12px; align-items: center; min-width: 0; }
.fact-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; flex: none; color: var(--ink-2); }
.fact small { display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.fact b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fact a.who { display: flex; gap: 12px; align-items: center; min-height: 44px; min-width: 0; }
.fact a.who:hover b { text-decoration: underline; text-underline-offset: 3px; }
.desc { white-space: pre-line; word-break: break-word; color: var(--ink-2); margin: 0; }
.sec-title { font-size: 22px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.sec-title .count { font-size: var(--fs-sm); font-weight: 700; color: var(--muted); background: var(--bg-soft); border-radius: var(--r-pill); padding: 2px 10px; letter-spacing: 0; }
.sec-sub { color: var(--muted); font-size: var(--fs-sm); margin: 0 0 16px; }
.aside-card { display: flex; flex-direction: column; gap: 16px; }
.aside-card .label-up { font-size: var(--fs-xs); color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.aside-card .price-xl { line-height: 1; margin-top: 6px; }
.aside-actions { display: flex; flex-direction: column; gap: 10px; }
.pay-note { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-xs); color: var(--muted); background: var(--bg-soft); border-radius: var(--r-md); padding: 12px 14px; }
.pay-note .i { width: 16px; height: 16px; flex: none; color: var(--brand); margin-top: 1px; }
.contact-line { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--ok-50); color: #0B6B3D; font-weight: 600; min-height: 48px; }
.agreed { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line); }
.agreed .grow b { display: block; }

/* Ofertas y negociación */
.offer { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: calc(var(--topbar-h) + 16px); }
.offer + .offer { margin-top: 12px; }
.offer.is-closed { background: #FBFBFC; }
.offer.is-closed .offer-head, .offer.is-closed .offer-msg { opacity: .6; }
.offer.is-winner { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok); }
.offer-head { display: flex; gap: 12px; align-items: center; min-width: 0; }
.offer-head .who { display: flex; gap: 12px; align-items: center; min-width: 0; flex: 1 1 auto; min-height: 44px; }
.offer-head .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-amount { text-align: right; flex: none; }
.offer-amount .price { font-size: 26px; }
.offer-msg { margin: 0; color: var(--ink-2); white-space: pre-line; word-break: break-word; font-size: var(--fs-sm); background: var(--bg-soft); border-radius: 4px 16px 16px 16px; padding: 12px 14px; }
.offer-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.offer-actions > :first-child, .offer-actions > p, .offer-actions > details[open] { grid-column: 1 / -1; }
.offer-actions > :only-child, .offer-actions > p + form:last-child { grid-column: 1 / -1; }
.offer-actions form .btn, .offer-actions details > summary { width: 100%; }
.offer .who .stars, .offer .who .xsmall { white-space: nowrap; }
.offer-wait { font-size: var(--fs-sm); color: var(--muted); display: flex; gap: 8px; align-items: center; }

.neg { display: flex; flex-direction: column; gap: 6px; padding: 12px; background: var(--bg-soft); border-radius: var(--r-md); }
.neg-title { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.neg-b { max-width: 82%; padding: 8px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 6px; }
.neg-b.me { align-self: flex-end; background: var(--brand); color: #fff; border-color: var(--brand); border-bottom-left-radius: 16px; border-bottom-right-radius: 6px; }
.neg-b .neg-k { font-size: 11px; font-weight: 600; opacity: .7; display: block; }
.neg-b .neg-m { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; display: block; }
.neg-b .neg-n { font-size: var(--fs-sm); display: block; margin-top: 2px; word-break: break-word; }
.neg-b time { font-size: 11px; opacity: .6; display: block; margin-top: 2px; }
.neg-ev { align-self: center; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); background: #fff; border-radius: var(--r-pill); padding: 4px 12px; text-align: center; }
.neg-ev.ok { color: var(--ok); background: var(--ok-50); }

details.neg-form > summary { list-style: none; cursor: pointer; }
details.neg-form > summary::-webkit-details-marker { display: none; }

details.neg-form[open] > summary { display: none; }
.neg-form form { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.neg-form .row-btns { display: flex; gap: 8px; }
.neg-form .row-btns .btn { flex: 1 1 auto; }

/* Preguntas públicas (chat público) */
.qa { display: flex; flex-direction: column; gap: 16px; }
.qa-item { display: flex; gap: 12px; align-items: flex-start; }
.qa-item .qa-body { min-width: 0; flex: 1 1 auto; }
.qa-item .qa-who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--fs-sm); }
.qa-item .qa-who a { font-weight: 700; min-height: 40px; display: inline-flex; align-items: center; }
.qa-item > a { display: grid; place-items: center; width: 44px; height: 44px; flex: none; margin: -2px 0 0; }
.qa-item .qa-text { margin: 4px 0 0; white-space: pre-line; word-break: break-word; background: var(--bg-soft); padding: 10px 14px; border-radius: 4px 16px 16px 16px; font-size: var(--fs-sm); }
.qa-item.is-owner .qa-text { background: var(--brand-50); }
.qa-form { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.qa-form .textarea { min-height: 88px; }
.qa-note { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-xs); color: var(--muted); margin: 4px 0 0; }
.qa-note .i { width: 16px; height: 16px; color: var(--warn); flex: none; margin-top: 1px; }

/* Calificación con estrellas */
.rate { border: 0; padding: 0; margin: 0; }
.rate legend { padding: 0; margin-bottom: 8px; }
.rate-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rate-stars label { width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; color: #D9D9DF; border-radius: 12px; -webkit-tap-highlight-color: transparent; }
.rate-stars label .i { width: 32px; height: 32px; fill: currentColor; stroke: none; transition: transform .12s var(--ease); }
.rate-stars label:hover .i { transform: scale(1.1); }
.rate-stars input:checked ~ label, .rate-stars label:hover, .rate-stars label:hover ~ label { color: #F5A623; }
.rate-stars input:focus-visible + label { box-shadow: var(--ring); }
.review { padding: 14px; border-radius: var(--r-md); background: var(--bg-soft); }
.review p { margin: 6px 0 0; font-size: var(--fs-sm); white-space: pre-line; word-break: break-word; }

/* ---------- Mis tareas ---------- */
.mine-item { align-items: center; color: inherit; }
.mine-ico { width: 44px; height: 44px; border-radius: 14px; background: var(--bg-soft); display: grid; place-items: center; flex: none; }
.mine-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mine-meta { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--muted); margin-top: 4px; }
.mine-side { margin-left: auto; text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.mine-side .price { font-size: 19px; }
.badge-turn { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: #fff; background: #C93C1C; border-radius: var(--r-pill); padding: 3px 9px; } /* 13-nov-2026 a11y: coral más oscuro (5:1) */
.list-item.mine-item { padding: 14px 16px; }
@media (min-width: 720px) { .list-item.mine-item { padding: 16px 20px; } }

/* ---------- Comunes ---------- */
.mt-12 { margin-top: 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.char-hint { display: flex; justify-content: space-between; gap: 8px; }

/* ==========================================================================
   Ubicación estilo Uber (publicar, paso "dónde")
   ========================================================================== */
.x-js .ubi.js-only { display: flex !important; flex-direction: column; gap: 10px; margin-top: 20px; }
.ubi-buscar { display: flex; gap: 8px; }
.ubi-buscar .grow { min-width: 0; }
.ubi-buscar .btn { flex: none; }
.ubi-sug { list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-2); max-height: 280px; overflow-y: auto; }
.ubi-sug-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 52px; padding: 8px 12px; border: 0; background: none; border-radius: 10px; text-align: left; font: inherit; cursor: pointer; color: var(--ink); }
.ubi-sug-item:hover, .ubi-sug-item:focus-visible { background: var(--bg-soft); outline: none; }
.ubi-sug-item b { font-weight: 700; font-size: var(--fs-sm); }
.ubi-sug-item small { font-size: var(--fs-xs); color: var(--muted); line-height: 1.3; }
.ubi-sug-vacio { padding: 12px; font-size: var(--fs-sm); color: var(--muted); }
.ubi-mapa { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.ubi-map { height: min(60dvh, 520px); min-height: 320px; border-radius: var(--r-lg); }
@media (min-width: 900px) { .ubi-map { height: 440px; } }
/* El pin NO es un marcador: es un dibujo fijo al centro; el mapa se mueve debajo */
.ubi-pin { position: absolute; left: 50%; top: 50%; width: 36px; height: 48px; margin: -48px 0 0 -18px; z-index: 600; pointer-events: none; transition: transform .18s var(--ease); filter: drop-shadow(0 6px 10px rgb(11 127 87 / .35)); }
.ubi-pin svg { width: 36px; height: 48px; display: block; }
.ubi-pin path { fill: var(--brand); stroke: #fff; stroke-width: 2.5; }
.ubi-pin circle { fill: #fff; }
.ubi-sombra { position: absolute; left: 50%; top: 50%; width: 12px; height: 6px; margin: -3px 0 0 -6px; border-radius: 50%; background: rgb(11 11 15 / .35); z-index: 590; pointer-events: none; transition: transform .18s var(--ease), opacity .18s; }
.ubi-mapa.is-moving .ubi-pin { transform: translateY(-12px); }
.ubi-mapa.is-moving .ubi-sombra { transform: scale(1.6); opacity: .5; }
.ubi-hint { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 610; display: inline-flex; align-items: center; gap: 6px; background: var(--selva); color: #fff; font-size: var(--fs-xs); font-weight: 600; padding: 8px 14px; border-radius: var(--r-pill); white-space: nowrap; pointer-events: none; box-shadow: var(--shadow-2); }
.ubi-gps { position: absolute; left: 12px; bottom: 26px; z-index: 610; background: #fff; color: var(--ink); box-shadow: var(--shadow-2); --h: 48px; }
.ubi-gps:hover { background: #fff; }
.ubi-dir { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: var(--fs-sm); color: var(--muted); font-weight: 600; min-height: 24px; }
.ubi-dir .i { flex: none; margin-top: 2px; }
.ubi-dir.is-ok { color: var(--ink); }
.ubi-dir.is-ok .i { color: var(--ok); }
.ubi-map .leaflet-control-zoom { margin-top: 12px; margin-right: 12px; }

/* ==========================================================================
   Explorar en mapa (pantalla completa, móvil primero)
   ========================================================================== */
.mf { display: flex; flex-direction: column; height: calc(100dvh - var(--topbar-h)); min-height: 460px; }
.x-app .mf { height: calc(100dvh - var(--topbar-h) - var(--tabbar-h) - env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .x-app .mf { height: calc(100dvh - var(--topbar-h)); } }
.mf-top { display: flex; gap: 8px; align-items: center; padding: 10px var(--gutter); background: #fff; border-bottom: 1px solid var(--line); flex: none; flex-wrap: wrap; }
.mf-search { flex: 1 1 320px; min-width: 0; padding: 4px; box-shadow: none; }
.mf-search .input { min-height: 44px; }
.mf-search .btn { --h: 44px; }
.mf-seg { width: auto; flex: 0 0 auto; }
.mf-seg a { height: 40px; padding: 0 14px; }
@media (max-width: 599px) { .mf-seg { flex: 1 1 100%; } .mf-top { gap: 6px; padding-top: 8px; padding-bottom: 8px; } }
.mf-wrap { position: relative; flex: 1 1 auto; min-height: 0; }
.mf-map { position: absolute; inset: 0; z-index: 0; background: #E9EEF3; }
.mf-cats { position: absolute; top: 10px; left: 0; right: 0; z-index: 700; display: flex; gap: 8px; overflow-x: auto; padding: 2px 12px; scrollbar-width: none; pointer-events: none; }
.mf-cats::-webkit-scrollbar { display: none; }
.mf-cats .filter { pointer-events: auto; flex: none; background: rgb(255 255 255 / .95); box-shadow: var(--shadow-2); border-color: transparent; min-height: 44px; }
.mf-cats .filter.is-active { background: var(--brand); color: #fff; }
.mf-count { position: absolute; top: 64px; left: 12px; z-index: 690; margin: 0; font-size: var(--fs-xs); color: var(--ink-2); background: rgb(255 255 255 / .92); border-radius: var(--r-pill); padding: 5px 12px; box-shadow: var(--shadow-1); }
.mf-cerca { position: absolute; right: 12px; bottom: 28px; z-index: 690; background: #fff; color: var(--ink); box-shadow: var(--shadow-2); --h: 48px; }
.mf-cerca:hover { background: #fff; }
@media (min-width: 900px) { .mf-cerca { right: 64px; } }
.mf-vacio { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 690; display: flex; flex-direction: column; gap: 4px; text-align: center; max-width: 300px; padding: 18px; }

/* Hoja inferior (móvil) / tarjeta lateral (escritorio) */
.mf-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 800; background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgb(11 11 15 / .18); padding: 10px 18px 18px; max-height: 72%; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; animation: mf-sube .22s var(--ease); }
@keyframes mf-sube { from { transform: translateY(24px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (min-width: 900px) {
  .mf-sheet { left: auto; right: 16px; top: 64px; bottom: auto; width: 380px; max-height: calc(100% - 80px); border-radius: var(--r-lg); box-shadow: var(--shadow-3); padding: 18px 20px 20px; }
  .mf-grab { display: none !important; }
}
.mf-grab { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 2px; flex: none; }
.mf-x { position: absolute; top: 6px; right: 6px; --h: 44px; }
.mf-row { display: flex; align-items: center; gap: 10px; padding-right: 44px; flex-wrap: wrap; }
.mf-head { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; }
.mf-t { font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; margin: 0; word-break: break-word; }
.mf-price { font-size: 28px; flex: none; }
.mf-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-sm); color: var(--ink-2); }
.mf-facts li { display: flex; gap: 8px; align-items: flex-start; }
.mf-facts li .i { flex: none; margin-top: 2px; color: var(--muted); }
.mf-facts li.is-cero { color: var(--brand); font-weight: 600; }
.mf-dist { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; cursor: pointer; min-height: 32px; }
.mf-priv { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.mf-priv .i { flex: none; margin-top: 1px; }
.mf-lt { font-size: 18px; margin: 0; padding-right: 44px; }
.mf-list { display: flex; flex-direction: column; }
.mf-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 4px; border: 0; border-top: 1px solid var(--line-2); background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; border-radius: 10px; }
.mf-item:first-child { border-top: 0; }
.mf-item:hover, .mf-item:focus-visible { background: var(--bg-soft); outline: none; }
.mf-item .grow { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mf-item-t { font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-item-m { font-size: var(--fs-xs); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-item-p { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; flex: none; }

/* Pastillas de precio en el mapa */
.pp-ico { background: none; border: 0; }
.pp { position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 7px)); display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 11px 0 8px; border-radius: var(--r-pill); background: #fff; color: var(--ink); font: 800 14px/1 var(--font); letter-spacing: -0.01em; white-space: nowrap; box-shadow: 0 4px 12px rgb(11 11 15 / .22), 0 0 0 1px rgb(11 11 15 / .06); cursor: pointer; transition: transform .12s var(--ease); }
.pp::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: inherit; transform: rotate(45deg); border-radius: 0 0 3px 0; z-index: -1; }
.pp .i { width: 16px; height: 16px; color: var(--brand); flex: none; }
.pp-n { background: var(--brand); color: #fff; padding: 0 12px; }
.pp.is-sel { background: var(--brand); color: #fff; transform: translate(-50%, calc(-100% - 7px)) scale(1.08); }
.pp.is-sel .i { color: #fff; }
.leaflet-marker-icon:focus-visible .pp { box-shadow: var(--ring), 0 4px 12px rgb(11 11 15 / .22); }
.x-yo { background: none; border: 0; }
.x-yo span { display: block; width: 22px; height: 22px; border-radius: 50%; background: #1A73E8; border: 3px solid #fff; box-shadow: 0 0 0 6px rgb(26 115 232 / .22), 0 2px 6px rgb(11 11 15 / .3); }

/* ==========================================================================
   Detalle: mapa, dirección privada y distancia
   ========================================================================== */
.tdir { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px; border-radius: var(--r-md); background: var(--ok-50); }
.tdir .fact-ico { background: #fff; color: var(--ok); }
.tdir small { display: block; font-size: var(--fs-xs); color: #0B6B3D; font-weight: 700; }
.tdir b { display: block; word-break: break-word; }
.tdir-col, .tdir-ref { display: block; font-size: var(--fs-sm); color: var(--ink-2); margin-top: 2px; word-break: break-word; }
.tdir-ref b { display: inline; }
.tdir-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tdir-btns .btn { flex: 1 1 auto; }
.tdir-btns .btn-primary { flex: 2 1 160px; }
.tdist { margin: 10px 0 0; display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 600; color: var(--brand-700); }

/* ==========================================================================
   Los 2 chats de la tarea: público (todos, mientras está abierta) y privado (cliente + trabajador)
   ========================================================================== */
.chat-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--brand); color: #fff; }
.chat-ico-pub { background: var(--brand-50); color: var(--brand-700); }
.chat-card { display: flex; gap: 14px; align-items: flex-start; }
.chat-card .grow { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.chat-card-t { font-size: 20px; letter-spacing: -0.02em; margin: 0; display: flex; align-items: center; gap: 8px; }
.chat-card p { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.chat-priv.is-locked { background: var(--hover); }
.chat-priv.is-locked .chat-ico { background: #E4E4EA; color: var(--muted); }
.chat-priv.is-open { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.pc-head { display: flex; gap: 14px; align-items: flex-start; }
.pc-head .grow { min-width: 0; }
.pc-aviso { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; padding: 10px 12px; border-radius: var(--r-md); background: var(--warn-50); color: #8A4B05; font-size: var(--fs-xs); font-weight: 600; }
.pc-aviso .i { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.pc { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding: 14px 12px; background: var(--bg-soft); border-radius: var(--r-lg); max-height: 520px; overflow-y: auto; overscroll-behavior: contain; }
.pc-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 88%; align-self: flex-start; }
.pc-msg.is-me { align-self: flex-end; flex-direction: row-reverse; }
.pc-av { flex: none; display: grid; place-items: center; width: 36px; height: 36px; }
.pc-b { min-width: 0; padding: 8px 12px 10px; border-radius: 18px 18px 18px 6px; background: #fff; border: 1px solid var(--line); }
.pc-b p { margin: 2px 0 0; white-space: pre-line; overflow-wrap: anywhere; font-size: var(--fs-sm); line-height: 1.45; }
.pc-who { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.pc-tag { display: inline-block; font-size: 10.5px; font-weight: 800; color: var(--brand-700); background: #fff; border-radius: var(--r-pill); padding: 1px 7px; margin-left: 2px; }
.pc-msg.is-owner .pc-b { background: var(--brand-50); border-color: var(--brand-100); }
.pc-msg.is-me .pc-b { background: var(--brand); color: #fff; border-color: var(--brand); border-radius: 18px 18px 6px 18px; }
.pc-msg.is-me .pc-who { color: rgb(255 255 255 / .7); }
.pc-vacio { margin: 0; text-align: center; font-size: var(--fs-sm); color: var(--muted); padding: 14px 8px; }
.pc-composer { display: flex; gap: 8px; align-items: flex-end; margin-top: 12px; }
.pc-composer .textarea { min-height: 48px; max-height: 160px; height: 48px; padding: 12px 16px; border-radius: 24px; resize: none; line-height: 1.4; }
.pc-composer .btn-icon { --h: 48px; flex: none; }
.pc-cerrado { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 12px 14px; border-radius: var(--r-md); background: #F0F0F3; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.pc-cerrado .i { flex: none; margin-top: 2px; }

/* Chat privado (/mensajes) */
.priv-tag { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; color: #fff; background: var(--selva); border-radius: var(--r-pill); padding: 4px 10px; margin-bottom: 8px; }
.priv-tag .i { width: 14px; height: 14px; }
.priv-vs { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-xs); color: var(--muted); margin: -4px 0 16px; }
.priv-vs .i { flex: none; margin-top: 1px; }
.priv-line { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.priv-line .i { width: 13px; height: 13px; }
.conv-rol { display: inline-block; font-size: 10.5px; font-weight: 700; color: var(--muted); background: var(--bg-soft); border-radius: var(--r-pill); padding: 1px 7px; margin-left: 4px; vertical-align: 1px; flex: none; }
.conv-name .conv-lock { width: 13px; height: 13px; display: inline-block; vertical-align: -1px; margin-right: 4px; color: var(--muted); }

/* Botón Reportar dentro de mis vistas (estilo base en reportar.css) */
.rep-tarea { margin-left: auto; }
.pc-msg .rep-btn { align-self: center; flex: none; opacity: .7; }
.pc-msg .rep-btn:hover, .pc-msg .rep-btn:focus-visible { opacity: 1; }
.bubble .rep-btn { display: flex; margin: 0 -8px -8px auto; width: 32px; min-height: 32px; }

/* ==========================================================================
   Funciones de Airtasker (migración 011): fotos, fechas, caducidad, aumento,
   cancelación, reseñas con subcalificación, filtros de Explorar y chat privado
   ========================================================================== */

/* Fotos de la tarea (galería con visor) */
.tf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
@media (min-width: 640px) { .tf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tf-item { position: relative; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--bg-soft); }
.tf-a { display: block; width: 100%; height: 100%; }
.tf-a img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s var(--ease); }
.tf-a:hover img { transform: scale(1.03); }
.tf-item form { position: absolute; top: 4px; right: 4px; margin: 0; }
.tf-del, .pf-del { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgb(11 11 15 / .72); color: #fff; display: grid; place-items: center; cursor: pointer; }
.tf-del:hover, .pf-del:hover { background: var(--brand); }
.tf-add { margin-top: 12px; }
.tf-pick { cursor: pointer; }
.tf-pick .muted { font-weight: 500; }
.tf-add.is-loading .tf-pick { opacity: .6; pointer-events: none; }
.tf-estado { margin: 6px 0 0; }

/* Fotos al publicar */
.pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pf-item { position: relative; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--bg-soft); }
.pf-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-item .pf-del { position: absolute; top: 4px; right: 4px; }
.pf-add { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 2px dashed var(--line); border-radius: var(--r-md); color: var(--ink-2); font-size: var(--fs-xs); font-weight: 700; cursor: pointer; text-align: center; padding: 6px; min-height: 48px; }
.pf-add:hover { border-color: var(--brand); color: var(--brand); }

/* Visor de fotos (pantalla completa) */
.visor { position: fixed; inset: 0; z-index: 3000; background: rgb(11 11 15 / .94); display: flex; align-items: center; justify-content: center; padding: 56px 8px; }
.visor[hidden] { display: none !important; }
.visor img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.visor button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.visor button:hover, .visor button:focus-visible { background: rgb(255 255 255 / .28); outline: none; }
.visor-x { top: 10px; right: 10px; }
.visor-ant { left: 8px; top: 50%; transform: translateY(-50%); }
.visor-sig { right: 8px; top: 50%; transform: translateY(-50%); }
.visor-n { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #fff; font-size: var(--fs-sm); margin: 0; }
.visor-on, .visor-on body { overflow: hidden; }

/* Fechas: 3 opciones y franja horaria */
.opt-grid-3 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .opt-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.franjas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .franjas { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.franjas .opt { min-height: 56px; padding: 10px 12px; }

/* Desglose de la comisión al ofertar */
.desglose { margin: 4px 0 0; font-size: var(--fs-sm); font-weight: 700; color: var(--ok); }
.desglose:empty { display: none; }

/* Caducidad de la oferta */
.vence-box { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg-soft); font-size: var(--fs-sm); }
.vence-box > span { display: block; line-height: 1.45; }
.vence-box > span .i { display: inline-block; vertical-align: -3px; margin-right: 6px; }
.nota-ico { display: flex; gap: 6px; align-items: flex-start; }
.nota-ico .i { flex: none; margin-top: 1px; }
.vence-box.is-cad { background: var(--warn-50); color: #8A4B05; }

/* Aumento de precio y cancelación */
.aum { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); margin-top: 8px; }
.aum.aum-turno { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.aum-m { margin: 0; font-size: var(--fs-md); }
.aum-foto { display: block; width: 120px; height: 120px; border-radius: var(--r-md); overflow: hidden; background: var(--bg-soft); }
.aum-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aum-hist { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-sm); color: var(--ink-2); }
.aum-hist li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.canc-mot { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.canc-mot legend { padding: 0; margin-bottom: 6px; }
.canc-opt { min-height: 52px; padding: 10px 14px; }
.canc-form form, #aumento .neg-form form { margin-top: 10px; }
a.alert { text-decoration: none; }

/* Reseña: subcalificaciones 1-5 */
.subcal { border: 0; padding: 0; margin: 0; }
.subcal legend { padding: 0; margin-bottom: 6px; font-size: var(--fs-sm); }
.subcal-op { display: grid; grid-template-columns: repeat(5, minmax(0, 48px)); gap: 6px; }
.subcal-op label { cursor: pointer; }
.subcal-op span { display: grid; place-items: center; height: 48px; border: 1px solid var(--line); border-radius: 12px; font-weight: 800; background: #fff; transition: background .12s, color .12s; }
.subcal-op input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.subcal-op input:focus-visible + span { box-shadow: var(--ring); }

/* Hoja de filtros de Explorar */
.fsheet { position: relative; flex: none; }
.fsheet > summary { list-style: none; cursor: pointer; white-space: nowrap; }
.fsheet > summary::-webkit-details-marker { display: none; }
.fsheet-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; }
.fsheet-fondo { display: none; }
.fsheet-panel { display: flex; flex-direction: column; gap: 18px; background: #fff; }
.fsheet-cab { display: flex; align-items: center; gap: 8px; position: relative; }
.fsheet-cab h2 { font-size: 20px; margin: 0; flex: 1 1 auto; }
.fsheet-cab .mf-grab { display: none; }
.fs-grupo { border: 0; padding: 0; margin: 0; min-width: 0; }
.fs-grupo legend { font-weight: 700; font-size: var(--fs-sm); padding: 0; margin-bottom: 8px; }
.fs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fs-chip { cursor: pointer; position: relative; }
.fs-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.fs-chip span { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); font-weight: 600; font-size: var(--fs-sm); background: #fff; }
.fs-chip small { font-weight: 500; color: var(--muted); }
.fs-chip input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.fs-chip input:checked + span small { color: rgb(255 255 255 / .75); }
.fs-chip input:focus-visible + span { box-shadow: var(--ring); }
.fs-precio { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
.fs-check { display: flex; gap: 12px; align-items: center; min-height: 56px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; }
.fs-check input { width: 22px; height: 22px; flex: none; accent-color: var(--ink); }
.fs-check span { display: flex; flex-direction: column; }
.fs-check small { color: var(--muted); font-size: var(--fs-xs); }
/* 15-nov-2026: secciones de x/_filtro_hoja.php (Ferretería, Proveedores, Renta y Equipos): casillas, un solo monto y fechas */
.fs-checks { display: flex; flex-direction: column; gap: 8px; }
.fs-check b { font-weight: 600; font-size: var(--fs-sm); }
.fs-precio-1 { grid-template-columns: minmax(0, 1fr); max-width: 220px; }
.fs-fechas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.fs-fecha { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.fs-fecha .input { min-width: 0; width: 100%; padding-left: 10px; padding-right: 6px; font-size: 16px; }
.fs-nota { margin: 6px 0 0; font-size: var(--fs-xs); color: var(--muted); }
/* 11-nov-2026 (captura de Marco): "Quita los filtros" se partía en dos renglones y el pie cortaba los botones abajo */
.fsheet-pie { display: flex; gap: 10px; position: sticky; bottom: 0; background: #fff; padding: 8px 0 calc(10px + env(safe-area-inset-bottom)); }
.fsheet-pie .btn { flex: 0 0 auto; white-space: nowrap; }
.fsheet-pie .btn-primary { flex: 1 1 auto; }
.fsheet:not([open]) .fsheet-panel { display: none; }
/* Celular: hoja que sube desde abajo */
@media (max-width: 899px) {
  .fsheet[open] .fsheet-fondo { display: block; position: fixed; inset: 0; z-index: 1900; background: rgb(11 11 15 / .45); }
  .fsheet[open] .fsheet-panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000; max-height: 88dvh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 10px 18px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgb(11 11 15 / .2); animation: mf-sube .22s var(--ease); }
  .fsheet[open] .fsheet-cab .mf-grab { display: block; position: absolute; left: 50%; top: -4px; margin-left: -20px; }
  .fsheet[open] .fsheet-cab { padding-top: 10px; }
  .fsheet-on, .fsheet-on body { overflow: hidden; }
}
/* Escritorio: panel flotante */
@media (min-width: 900px) {
  .fsheet[open] .fsheet-fondo { display: block; position: fixed; inset: 0; z-index: 1900; }
  .fsheet[open] .fsheet-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 2000; width: 400px; max-height: 70vh; overflow-y: auto; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-3); }
}
.explore-bar .fsheet > summary { width: 100%; }
@media (min-width: 720px) { .explore-bar .fsheet > summary { width: auto; } }
.mf-top .fsheet > summary { --h: 44px; }
@media (max-width: 599px) { .mf-top .fsheet { flex: 1 1 auto; } .mf-top .fsheet > summary { width: 100%; } .mf-seg { flex: 1 1 auto; } }

/* Chat privado: mensajes rápidos, foto y bloqueo */
.quick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 8px 0 0; margin: 0; }
.quick::-webkit-scrollbar { display: none; }
.quick-b { flex: none; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff; font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); cursor: pointer; white-space: nowrap; }
.quick-b:hover, .quick-b:focus-visible { border-color: var(--brand); outline: none; }
.composer-foto { --h: 48px; flex: none; cursor: pointer; }
.composer-foto.is-loading { opacity: .6; pointer-events: none; }
.bubble-foto { padding: 6px; }
.chat-foto { display: block; border-radius: 14px; overflow: hidden; margin-bottom: 4px; max-width: 240px; }
.chat-foto img { display: block; width: 100%; max-height: 300px; object-fit: cover; }
.bubble-foto time { padding: 0 8px 4px; }
.chat-bloq { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0 0; padding: 10px 12px; border-radius: var(--r-md); background: var(--warn-50); color: #8A4B05; font-size: var(--fs-sm); font-weight: 600; }
.chat-bloq span { flex: 1 1 200px; }
.chat-bloq form { margin: 0; }
.chat-bloq-f { display: flex; justify-content: center; margin: 4px 0 12px; }
.chat-bloq-f .btn { color: var(--muted); }

/* ==== 012: detalles de Airtasker (línea de estado, guardar, leer más, ofertas, estrellas chicas, tarjetas, chat) ==== */

/* Línea de estado arriba de la tarea: Abierta · Asignada · Completada */
.tline { list-style: none; margin: 0 0 16px; padding: 0; display: flex; align-items: flex-start; gap: 0; counter-reset: paso; }
.tline li { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--subtle); }
.tline li:not(:last-child)::after { content: ""; position: absolute; top: 5px; left: 20px; right: 8px; height: 2px; border-radius: 2px; background: var(--line); }
.tline-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); background: #fff; flex: none; }
.tline-t { display: flex; flex-direction: column; line-height: 1.2; }
.tline-t small { font-weight: 500; color: var(--muted); font-size: 11px; }
.tline li.is-done { color: var(--ink-2); }
.tline li.is-done .tline-dot { background: var(--brand); border-color: var(--brand); }
.tline li.is-done:not(:last-child)::after { background: var(--brand); }
.tline li.is-current { color: var(--brand-700); }
.tline li.is-current .tline-dot { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.tline li.is-ok { color: var(--ok); }
.tline li.is-ok .tline-dot { border-color: var(--ok); background: var(--ok); box-shadow: 0 0 0 4px var(--ok-50); }
.tline li.is-off { color: var(--err); }
.tline li.is-off .tline-dot { border-color: var(--err); background: var(--err); box-shadow: 0 0 0 4px var(--err-50); }

/* Guardar tarea (corazón) */
.tg-form { margin: 0; display: inline-flex; }
.tg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 10px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); font: 600 var(--fs-sm)/1 var(--font); cursor: pointer; position: relative; z-index: 2;
  -webkit-tap-highlight-color: transparent; transition: background .15s, color .15s, border-color .15s, transform .12s var(--ease); }
.tg-btn:hover { border-color: #CFCFD6; }
.tg-btn:active { transform: scale(.94); }
.tg-btn .tg-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.tg-btn.is-on { color: var(--coral); border-color: #FFD3C8; background: #FFF4F1; }
.tg-btn.is-on .tg-ico { fill: currentColor; }
.tg-btn.tg-txt { height: 48px; padding: 0 18px; }
.tg-aside { display: flex; align-items: center; gap: 12px; }
.tg-aside .tg-form, .tg-aside > .tg-btn { flex: none; }
.mf-heart { margin-left: auto; }
.tg-item .tg-item-link { display: flex; flex-direction: column; min-width: 0; color: inherit; }
.tg-item .mine-side { flex-direction: row; align-items: center; gap: 10px; }
.tg-item.is-closed .mine-title, .tg-item.is-closed .price { opacity: .6; }
.tg-item .mine-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }

/* Leer más / Leer menos (sin JS el texto completo) */
.leer-corto { max-height: 7.6em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.offer-msg.leer-corto { max-height: 6.4em; }
.leer-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0; margin-top: -4px; border: 0; background: none; color: var(--brand); font: 600 var(--fs-sm)/1 var(--font); cursor: pointer; align-self: flex-start; }
.leer-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Pestañas Ofertas | Preguntas */
.ttabs a { height: 44px; text-decoration: none; }
.ttab-n { font-weight: 500; color: var(--muted); }
.ttabs a.is-active .ttab-n { color: var(--ink-2); }
.detail-main > [hidden] { display: none !important; }

/* Oferta como Airtasker: nombre + verificado, estrellas o "Nuevo", precio a la derecha */
.offer-av { flex: none; display: flex; }
.offer-who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.offer-l1 { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.offer-name { font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 28px; display: inline-flex; align-items: center; }
.offer-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.offer-stars { min-height: 28px; text-decoration: none; }
.offer-stars:hover em { text-decoration: underline; }
.offer-nuevo { height: 24px; padding: 0 10px; }
.offer-disp { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.offer-disp .i { color: var(--muted); margin-top: 2px; flex: none; }
.offer-disp b { font-weight: 600; }
.offer-actions > form:first-child .btn { height: 52px; }

/* Disponibilidad al ofertar */
.disp { border: 0; padding: 0; margin: 0; min-width: 0; }
.disp legend { padding: 0; margin-bottom: 4px; }
.disp-op { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 6px 0 4px; }
@media (min-width: 520px) { .disp-op { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.disp-b { cursor: pointer; }
.disp-b span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; font-weight: 600; font-size: var(--fs-sm); text-align: center; transition: background .12s, color .12s, border-color .12s; }
.disp-b input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.disp-b input:focus-visible + span { box-shadow: var(--ring); }
.disp-fecha { margin-bottom: 4px; }
.disp:not(:has(input[value="fecha"]:checked)) .disp-fecha { display: none; }

/* Subcalificaciones con estrellas chicas (44 px para tocar) */
.subcal legend { font-size: var(--fs-sm); margin-bottom: 2px; }
.rate-sm label { width: 44px; height: 44px; border-radius: 10px; }
.rate-sm label .i { width: 26px; height: 26px; }

/* Tarjetas de explorar como Airtasker */
.tc { position: relative; gap: 10px; }
.tc-cat { display: flex; align-items: center; gap: 6px; margin: 0; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); min-width: 0; }
.tc-cat span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tc-title { margin: 0; font-size: 17px; flex: 1 1 auto; min-width: 0; }
.tc-link { color: inherit; text-decoration: none; }
.tc-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.tc-link:focus-visible { box-shadow: none; }
.tc:has(.tc-link:focus-visible) { box-shadow: var(--ring); }
.tc-price { flex: none; font-size: 26px; line-height: 1.05; }
.tc-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: var(--fs-sm); }
.tc-rows li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tc-rows li > span:not(.chip) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font-weight: 500; }
.tc-rows .chip-km { height: 24px; padding: 0 8px; flex: none; }
.tc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: var(--fs-sm); color: var(--muted); min-width: 0; }
.tc-estado { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-estado b { color: var(--ok); font-weight: 700; }
.tc-cero { color: var(--brand); font-weight: 600; }
.tc-end { display: flex; align-items: center; gap: 8px; flex: none; }
.tc-av { position: relative; z-index: 2; display: flex; }

/* Chat privado: tarjeta de la tarea y aviso de seguridad */
.chat-tarea { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); min-width: 0; }
.chat-tarea .grow { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.chat-tarea-t { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-tarea-m { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--muted); }
.chat-tarea-m b { color: var(--ink); }
.chat-tarea .btn { flex: none; padding: 0 16px; }
.chat-seg { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 0; padding: 10px 12px; border-radius: var(--r-md); background: var(--brand-50); color: var(--brand-700); font-size: var(--fs-xs); font-weight: 500; }
.chat-seg .i { flex: none; margin-top: 1px; }
.chat-seg .link { color: var(--brand-700); text-decoration: underline; text-underline-offset: 2px; }

/* Cotización pedida desde el perfil (publicar) */
.para-cot { align-items: center; }

/* ==== 013: reglas de Marco ==== */
/* Monto de la oferta como número (con mínimo = lo que ofrece el cliente) sin las flechitas del navegador */
.input-money input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.input-money input[type=number]::-webkit-inner-spin-button, .input-money input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
/* Quiénes se postularon: lista pública de ofertas, sin monto */
.ofp { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.ofp-t { display: flex; align-items: center; gap: 10px; font-size: var(--fs-lg); margin: 0 0 12px; }
.ofp-t .count { font-size: var(--fs-sm); font-weight: 700; color: var(--muted); background: var(--bg-soft); border-radius: var(--r-pill); padding: 2px 10px; }
.ofp-item { box-shadow: none; }
/* ¿Cuánto tiempo crees que tome? (publicar): 5 opciones; en el teléfono la última ocupa el renglón completo */
.tiempos .opt:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 560px) { .tiempos { grid-template-columns: repeat(5, minmax(0, 1fr)); } .tiempos .opt:last-child:nth-child(odd) { grid-column: auto; } }

/* ---------- Pago en efectivo (migración 017) ---------- */
.offer-nodisp { background: var(--warn-50); color: var(--ink-2); border-radius: var(--r-sm); padding: 10px 12px; align-items: flex-start; }
.offer-nodisp .i { color: var(--warn); flex: none; margin-top: 2px; }
.post-freno { box-shadow: none; background: var(--bg-soft); border-color: transparent; display: flex; flex-direction: column; gap: 10px; }
.canc-opciones { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.canc-form .hint { margin: 0; }
/* Botones con texto largo (confirmar pago, reportar problema de pago): en el teléfono bajan a dos renglones */
.btn.btn-wrap { white-space: normal; height: auto; min-height: 48px; line-height: 1.25; padding-top: 12px; padding-bottom: 12px; text-align: center; }
.btn.btn-wrap .i { flex: none; }

/* ---------- 022: preguntas guiadas, guía de fotos, detalles, confianza y ofertas sin efecto ---------- */
.guias { gap: 12px; }
.guia { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.guia + .guia { padding-top: 14px; border-top: 1px dashed var(--line); }
.guia-t { padding: 0; font-weight: 700; font-size: var(--fs-sm); color: var(--ink-2); }
.guia-q { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.guia-p { font-weight: 600; font-size: var(--fs-sm); color: var(--ink); }
.guia-p .muted { font-weight: 500; }
.guia-op { display: flex; flex-wrap: wrap; gap: 8px; }
.guia-op .opt { min-height: 48px; padding: 10px 14px; flex: 0 1 auto; font-weight: 600; }
.guia-foto { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; border-radius: var(--r-md); background: var(--brand-50); color: var(--brand-700); font-size: var(--fs-sm); line-height: 1.4; }
.guia-foto .i { flex: none; margin-top: 2px; }
.chip-reco { height: 24px; padding: 0 10px; font-size: var(--fs-xs); vertical-align: middle; margin-left: 4px; }
.confia { list-style: none; margin: 0 0 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; border-radius: var(--r-lg); background: var(--bg-soft); }
.confia li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-sm); line-height: 1.4; color: var(--ink-2); }
.confia li .i { flex: none; margin-top: 2px; color: var(--brand); }
.confia b { color: var(--ink); }
.repetir-aviso .repetir-otra { margin: 6px 6px 2px 0; white-space: normal; height: auto; min-height: 40px; }
/* Detalles de la tarea (lo que contestó el cliente) */
.detalles { margin: 12px 0 0; display: grid; grid-template-columns: 1fr; gap: 0; }
.detalles > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line-2); min-width: 0; }
.detalles > div:last-child { border-bottom: 0; }
.detalles dt { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.detalles dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
@media (min-width: 720px) { .detalles { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; } .detalles > div:nth-last-child(2):nth-child(odd) { border-bottom: 0; } }
.confia-tarea { margin: 12px 0 0; }
/* Oferta que quedó sin efecto (el saldo ya no cubría su comisión) y el disponible junto al formulario */
.sin-efecto { align-items: flex-start; }
.saldo-oferta { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); font-size: var(--fs-sm); line-height: 1.4; color: var(--ink-2); }
.saldo-oferta .i { flex: none; margin-top: 2px; color: var(--brand); }
.saldo-oferta.is-poco { border-color: var(--warn); background: var(--warn-50); }

/* ==========================================================================
   Publicar como plática guiada (pasada de sencillez, nov-2026)
   Un guía maya pregunta UNA cosa a la vez; las respuestas son botones grandes.
   Sin JS todas las pantallas se ven seguidas (formulario normal).
   ========================================================================== */
.pl { max-width: 560px; margin: 0 auto; }
.pl-page { padding-top: 12px; }
.pl-barra { position: sticky; top: var(--topbar-h); z-index: 20; align-items: center; gap: 14px; padding: 10px 0 12px; background: var(--bg-soft); margin-bottom: 8px; }
.pl-atras { --h: 48px; padding: 0 16px 0 12px; flex: none; }
.pl-avance { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2); text-align: right; }
.pl-avance-linea { display: block; height: 8px; border-radius: 8px; background: #E6DECF; overflow: hidden; }
.pl-avance-linea i { display: block; height: 100%; width: 10%; border-radius: 8px; background: var(--brand); transition: width .3s var(--ease); }
.pl-q { margin: 0 0 48px; }
.is-platica .pl-q { display: none; margin: 0; }
.is-platica .pl-q.is-current { display: block; animation: x-in .25s var(--ease); }
.is-platica .pl-cat-t { display: none; }
.pl-cat-t { font-weight: 700; margin: 0 0 12px; }
/* El guía y su burbuja */
.pl-guia { display: flex; align-items: flex-end; gap: 10px; margin: 8px 0 22px; }
/* La guerrera de "gana" (huipil y penacho) recortada a la cara, dentro de un círculo */
.pl-cara { position: relative; flex: none; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; background: var(--brand-50); border: 2px solid #fff; box-shadow: var(--relieve-2); }
.pl-cara picture { display: block; }
.pl-cara img { position: absolute; width: 243%; height: auto; left: -54%; top: -6%; max-width: none; }
.pl-burbuja { position: relative; flex: 1; min-width: 0; padding: 16px 18px; background: #fff; border-radius: 22px 22px 22px 6px; box-shadow: var(--relieve-2); border: 1px solid var(--line-2); }
.pl-pregunta { font-family: var(--font-display); font-size: 27px; line-height: 1.15; letter-spacing: -0.01em; outline: none; }
.pl-burbuja p { margin: 6px 0 0; color: var(--muted); font-size: var(--fs-md); line-height: 1.4; }
/* Respuestas como botones grandes "resaltados" */
.pl-ops { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.x-js .pl-ops.js-only { display: grid !important; }
.pl-ops-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .pl-ops-cuando { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pl-ops-cat { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* 024: 6 categorías en 2 columnas también en el celular */
.pl-op { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 12px 18px; border: 1.5px solid var(--line); border-radius: 18px;
  background: #fff; box-shadow: var(--relieve-2); font: 700 var(--fs-lg)/1.25 var(--font); color: var(--ink); text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: border-color .15s, background .15s, box-shadow .15s, transform .12s var(--ease); }
.pl-op:active { transform: scale(.98); }
.pl-op input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pl-op small { display: block; font-weight: 500; color: var(--muted); font-size: var(--fs-sm); margin-top: 2px; }
.pl-op-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; flex: none; }
.pl-op-ico .i { width: 24px; height: 24px; stroke-width: 2.1; }
.pl-op:has(input:checked), .pl-op.is-checked { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 1px var(--brand), var(--relieve-2); }
.pl-op:has(input:checked) .pl-op-ico, .pl-op.is-checked .pl-op-ico { background: var(--brand); color: #fff; }
.pl-op:has(input:focus-visible) { box-shadow: var(--ring); }
.pl-ops-cat .pl-op { min-height: 72px; }
@media (max-width: 559px) { .pl-ops-cat .pl-op { flex-direction: column; justify-content: center; text-align: center; gap: 8px; min-height: 104px; padding: 12px 8px; font-size: 16px; } .pl-ops-cat .pl-op > span:last-child { overflow-wrap: break-word; hyphens: manual; } }
.pl-sigue { flex-direction: column; gap: 10px; margin-top: 24px; }
.pl-saltar { color: var(--muted); font-weight: 600; align-self: center; }
.pl-tomar { cursor: pointer; }
.pl-nota { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; padding: 14px 16px; border-radius: var(--r-md); background: var(--brand-50); color: var(--brand-700); font-size: var(--fs-md); line-height: 1.4; }
.pl-nota .i { flex: none; margin-top: 3px; }
.pl-q[data-pl-q="foto"] .pf-grid { margin-bottom: 4px; }
.is-platica .pl-q[data-pl-q="foto"]:not(.tiene-fotos) .pf-grid { display: none; }
.pl-input-grande { min-height: 60px; font-size: var(--fs-lg); font-weight: 600; }
.pl-monto .input { min-height: 84px; font-size: 44px; font-weight: 800; letter-spacing: -0.03em; padding-left: 48px; text-align: left; }
.pl-monto::before { font-size: 36px; left: 18px; }
/* El mapa más chico dentro de la plática */
.pl .ubi-map { height: min(42dvh, 340px); min-height: 240px; }
.pl .ubi { margin-top: 0 !important; }
.pl-gps { margin-bottom: 2px; }
.pl-resumen { margin-bottom: 20px; }
.pl-resumen .resumen-item dt { font-size: var(--fs-sm); }
.pl-resumen .resumen-item dd { font-size: var(--fs-lg); }
.pl-res-sub { font-size: var(--fs-sm) !important; font-weight: 500 !important; color: var(--muted); }
@media (min-width: 900px) { .pl-pregunta { font-size: 32px; } .pl-cara { width: 72px; height: 72px; } }
@media (prefers-reduced-motion: reduce) { .pl-avance-linea i, .pl-op { transition: none; } }

/* ---------- Tarea: sencillez (nov-2026) ---------- */
.espera-ofertas { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 16px; border-radius: var(--r-md); background: var(--bg-soft); font-weight: 600; color: var(--ink-2); }
/* Mandar mi precio: una sola pregunta */
.ofertar-sec .offer { margin: 0; }
.ofertar-una { gap: 16px; background: #fff; border: 2px solid var(--brand-100); box-shadow: var(--relieve-2); }
.ofertar-t { font-family: var(--font-display); font-size: 26px; line-height: 1.15; }
.ofertar-una .disp-b span { min-height: 52px; font-size: var(--fs-md); box-shadow: var(--relieve-2); }
.post-freno { align-items: flex-start; gap: 12px; border: 2px solid var(--warn-50); }
.post-freno h3 { font-family: var(--font-display); font-size: 24px; }
.post-freno-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--warn-50); color: #8A4B05; }
.post-freno-ico .i { width: 26px; height: 26px; }
.post-freno .btn { margin-top: 4px; }
.fijarme { margin: 0 0 12px; }
.problemas-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
/* Lo que toca hoy va primero; el chat (cuando es secundario) y lo demás, después */
.aside-actions > .chat-btn.btn-outline, .aside-actions > .chat-btn.btn-outline + .contact-line { order: 1; }
.aside-actions > .copiar-liga, .aside-actions > .tg-aside, .aside-actions > .mas-op { order: 2; }
/* En la plática no estorba la barra de abajo: la plática tiene su propio "Atrás" */
body.x-app:has(.pl-page) { padding-bottom: env(safe-area-inset-bottom); }
body:has(.pl-page) .tabbar { display: none; }

/* ---------- Buscar trabajos: sencillez 2 (nov-2026) ---------- */
.bx { padding-top: 4px; }
.bx-h1 { font-size: clamp(32px, 6vw, 46px); margin: 0 0 16px; }
.bx-search .input { font-size: var(--fs-md); }
/* Las 4 categorías: botones grandes, 2 × 2 en el celular y 4 en fila en la compu */
.bx-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
@media (min-width: 760px) { .bx-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } } /* 024: 6 categorías = 3 × 2 */
.bx-cat { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 6px; min-height: 92px; padding: 12px 8px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--relieve-2); font-weight: 700; font-size: var(--fs-md); line-height: 1.2; color: var(--ink); transition: background .18s var(--ease), border-color .18s var(--ease); }
.bx-cat > span:last-child { min-width: 0; max-width: 100%; hyphens: manual; overflow-wrap: anywhere; }
@media (max-width: 400px) { .bx-cat { font-size: 16px; } }
@media (min-width: 760px) { .bx-cat { flex-direction: row; justify-content: flex-start; text-align: left; min-height: 68px; padding: 10px 14px; gap: 10px; } }
.bx-cat:hover { border-color: var(--brand-100); background: var(--hover); }
.bx-cat:active { transform: scale(.98); }
.bx-cat:focus-visible { outline: none; box-shadow: var(--ring); }
.bx-cat-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); flex: none; }
.bx-cat.is-active { background: var(--brand) linear-gradient(to bottom, rgb(255 255 255 / .10), rgb(255 255 255 / 0) 55%); border-color: var(--brand); color: #fff; box-shadow: var(--relieve-1); }
.bx-cat.is-active .bx-cat-ico { background: rgb(255 255 255 / .18); color: #fff; }
/* "Ver en el mapa" + "Más filtros": dos botones del mismo tamaño */
.bx-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.bx-dos > .btn, .bx-dos .fsheet > summary { width: 100%; --h: 52px; padding: 0 12px; }
.bx-dos .fsheet { min-width: 0; }
@media (min-width: 760px) { .bx .bx-dos { display: flex; justify-content: flex-start; } .bx .bx-dos > .btn, .bx .bx-dos .fsheet > summary { width: auto; padding: 0 22px; } }
.bx-linea { justify-content: space-between; align-items: center; flex-wrap: wrap; font-size: var(--fs-md); margin: 20px 0 12px; }
.bx-linea .link { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.bx-nf { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); }
/* Tarjeta de trabajo: solo lo esencial, letra grande */
.tc-title { font-size: 19px; line-height: 1.25; }
.tc-price { font-size: 26px; }
.tc-rows { font-size: var(--fs-md); gap: 8px; }
.tc-foot { font-size: var(--fs-md); }
.tc-estado { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 600; }
.tc-estado.tc-cero { color: var(--brand-700); }
/* Mapa: arriba buscador y los dos botones; el aviso explica qué es cada globo */
.mf-top .bx-dos { margin: 0; flex: 0 0 auto; display: flex; gap: 8px; }
.mf-top .bx-dos > .btn, .mf-top .bx-dos .fsheet > summary { --h: 48px; width: auto; }
@media (max-width: 599px) { .mf-top .bx-dos { flex: 1 1 100%; display: grid; } .mf-top .bx-dos > .btn, .mf-top .bx-dos .fsheet > summary { width: 100%; } }
.mf-count { font-size: var(--fs-sm); padding: 6px 14px; max-width: calc(100% - 24px); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-count b { color: var(--ink); }
.pp { height: 38px; font-size: 15px; }
.mf-t a { color: inherit; }
.mf-t a:hover { text-decoration: underline; }
.mf-facts { font-size: var(--fs-md); }

/* ---------- 6-nov-2026: tarea vista por el Guerrero ----------
   En el celular, el presupuesto del cliente y [Hacer una oferta] van hasta arriba (antes que el mapa).
   La caja de la oferta (#ofertar) es un formulario normal sin JS; con JS vive en una ventana (<dialog class="hoja-oferta">)
   que sube desde abajo en el celular y sale al centro en la computadora. */
@media (max-width: 959.98px) { .detail-grid.is-oferta-arriba { grid-template-areas: "aside" "head" "main"; } }
.ofertar-caja { gap: 16px; background: #fff; border: 2px solid var(--brand-100); box-shadow: var(--relieve-2); }
.ofertar-caja > form { display: flex; flex-direction: column; gap: 16px; margin: 0; border: 0; box-shadow: none; padding: 0; background: none; }
.ofertar-caja > form[hidden], .ofertar-caja > [hidden] { display: none !important; }
.ofertar-caja textarea { min-height: 88px; font-size: 17px; }
.ofertar-caja .pl-mas { margin: 0; }
.ofertar-caja .post-freno { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 18px; border-radius: var(--r-lg); background: var(--bg-soft); }
.ofertar-caja .post-freno-ico { align-self: flex-start; }
.ofertar-caja .post-freno h3 { font-family: var(--font-display); font-size: 24px; margin: 0; }
.ofertar-caja .btn-lg { min-height: 56px; }
.hoja-oferta { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 100%; max-height: 92dvh; border-radius: 24px 24px 0 0;
  background: #fff; color: var(--ink); box-shadow: var(--shadow-3); overflow: auto; overscroll-behavior: contain; }
.hoja-oferta::backdrop { background: rgb(12 30 22 / .55); }
.hoja-oferta[open] { animation: hoja-sube .22s var(--ease, ease-out); }
@keyframes hoja-sube { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hoja-oferta[open] { animation: none; } }
.hoja-in { padding: 8px 18px calc(20px + env(safe-area-inset-bottom)); }
.hoja-cab { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 12px 0 10px; background: #fff; }
.hoja-asa { position: absolute; left: 50%; top: 2px; width: 44px; height: 5px; margin-left: -22px; border-radius: 99px; background: var(--line); }
.hoja-cab h2 { flex: 1; margin: 6px 0 0; font-family: var(--font-display); font-size: 26px; line-height: 1.15; }
.hoja-x { flex: none; width: 48px; height: 48px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink); cursor: pointer; }
.hoja-x .i { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; }
.hoja-x:focus-visible { outline: none; box-shadow: var(--ring); }
.ofertar-caja.en-hoja { border: 0; box-shadow: none; padding: 0; margin: 0; }
@media (min-width: 720px) {
  .hoja-oferta { margin: auto; width: min(560px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); border-radius: var(--r-xl); }
  .hoja-asa { display: none; }
  .hoja-in { padding: 12px 28px 28px; }
}
html.hoja-abierta { overflow: hidden; }

/* Ofertas públicas resumidas (6-nov-2026): un renglón por guerrero — nombre, estrellas y monto */
.ofp-lista { list-style: none; margin: 8px 0 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.ofp-fila { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 64px; border-bottom: 1px solid var(--line-2); }
.ofp-fila:last-child { border-bottom: 0; }
.ofp-fila.is-winner { background: var(--brand-50); }
.ofp-av { flex: none; }
.ofp-quien { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ofp-nombre { font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ofp-quien .verified { display: inline-flex; vertical-align: -2px; margin-left: 4px; color: var(--brand); }
.ofp-est { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; color: #B7791F; }
.ofp-est em { font-style: normal; color: var(--muted); font-weight: 500; }
.ofp-nuevo { color: var(--brand-700); }
.ofp-monto { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ofp-monto b { font-size: 20px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.ofp-est svg { fill: currentColor; }

/* Prueba del abuelito (nov-2026): tarea ya asignada en el celular → primero precio y chat, luego el detalle */
@media (max-width: 959.98px) { .detail-grid.is-asignada { grid-template-areas: "aside" "head" "main"; } }

/* Aviso "Por ahora, solo en Mérida" (publicar) */
.merida-ilus { width: 150px; height: 150px; margin: 0 auto 12px; overflow: hidden; }
.merida-ilus picture, .merida-ilus img { width: 100%; height: 100%; object-fit: contain; }

/* Plática (Marco, 7-nov-2026): la guía va centrada junto a su burbuja y su cara al centro del círculo */
.pl-guia { align-items: center; }
.pl-cara img { top: -14%; }
/* Barra de avance de la plática: con aire a los lados para que "Pregunta 1 de 6" no se vea cortado */
.pl-barra { padding: 10px 14px 12px; border-radius: 0 0 var(--r-lg) var(--r-lg); }
/* "Pregunta N de 6" con más aire a la derecha */
.pl-barra { padding-right: 24px; }
.pl-avance { padding-right: 4px; }
/* Aviso de Mérida: el dibujo centrado y completo, sin círculo recortado (Marco, 7-nov-2026) */
.merida-ilus { width: auto; height: auto; overflow: visible; display: flex; justify-content: center; margin: 0 auto 14px; }
.merida-ilus picture { display: block; width: auto; height: auto; }
.merida-ilus img { height: 170px; width: auto; max-width: 100%; object-fit: contain; display: block; margin: 0 auto; }
/* Aviso de Mérida al centro de la pantalla visible (Marco, 7-nov-2026) */
.merida-page { display: flex; flex-direction: column; justify-content: center; min-height: calc(100vh - var(--topbar-h) - 80px); min-height: calc(100svh - var(--topbar-h) - 80px); padding-top: 0; padding-bottom: 24px; }


/* Categorías de publicar (Marco, 7-nov-2026): tarjetas más altas para llenar la pantalla y sin cortar palabras */
@media (max-width: 559px) {
  .pl-ops-cat { gap: 12px; }
  .pl-ops-cat .pl-op { min-height: 136px; font-size: 17px; hyphens: none; -webkit-hyphens: none; word-break: normal; overflow-wrap: normal; }
  .pl-ops-cat .pl-op-ico { width: 52px; height: 52px; }
  [data-pl-q="categoria"] .pl-guia { margin-top: 18px; margin-bottom: 26px; }
}
@media (max-width: 559px) {
  /* las 6 tarjetas reparten el alto de la pantalla (sin hueco abajo, sin pasarse en celulares chicos) */
  .pl-ops-cat .pl-op { min-height: clamp(110px, calc((100svh - 400px) / 3), 190px); font-size: 18px; }
  .pl-ops-cat .pl-op-ico { width: 58px; height: 58px; }
  .pl-ops-cat .pl-op-ico .i { width: 28px; height: 28px; }
}

/* Aviso de Mérida: medido en el iPhone de Marco, la tarjeta quedaba ~36 px arriba del centro entre "Atrás" y la barra de Safari */
.merida-page { min-height: calc(100vh - var(--topbar-h) - 8px); min-height: calc(100svh - var(--topbar-h) - 8px); }
/* Marco (9-nov-2026): "sube un poco el cuadro, solo poquito": ~24 px más arriba (más espacio abajo) */
.merida-page { padding-bottom: 72px; }

/* Primera pantalla de publicar = categoría + "¿Qué hay que hacer?" (Marco, 7-nov-2026): tarjetas chicas en 3 columnas
   y el título/descripción abajo, sin la segunda burbuja con cara, para que quepa todo en el celular. */
[data-pl-q="categoria"].is-current + [data-pl-q="titulo"].is-current { margin-top: 18px; }
@media (max-width: 559px) {
  [data-pl-q="categoria"] .pl-guia { margin-top: 4px; margin-bottom: 14px; }
  .pl-ops-cat { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pl-ops-cat .pl-op { min-height: 84px !important; padding: 10px 4px; gap: 6px; font-size: 14px; line-height: 1.15; border-radius: 14px; }
  .pl-ops-cat .pl-op-ico { width: 38px; height: 38px; border-radius: 10px; }
  .pl-ops-cat .pl-op-ico .i { width: 22px; height: 22px; }
  [data-pl-q="titulo"] .field { margin-bottom: 12px; }
  [data-pl-q="titulo"] .pl-input-grande { min-height: 52px; font-size: 18px; }
  [data-pl-q="titulo"] .textarea { min-height: 96px; height: 96px; }
}

@media (max-width: 559px) {
  /* que el botón "Continúa" quede a la vista arriba de la barra de Safari */
  [data-pl-q="categoria"] .pl-guia { margin-bottom: 10px; }
  [data-pl-q="categoria"] .pl-cara { width: 50px; height: 50px; }
  [data-pl-q="categoria"] .pl-burbuja { padding: 12px 16px; }
  .pl-ops-cat .pl-op { min-height: 70px !important; padding: 8px 4px; gap: 4px; font-size: 13.5px; }
  .pl-ops-cat .pl-op-ico { width: 32px; height: 32px; }
  .pl-ops-cat .pl-op-ico .i { width: 20px; height: 20px; }
  [data-pl-q="titulo"] .field { margin-bottom: 8px; }
  [data-pl-q="titulo"] .textarea { min-height: 80px; height: 80px; }
  [data-pl-q="titulo"] .hint { font-size: 14px; line-height: 1.35; }
}
/* La cara de la guía, al centro del círculo (Marco, 7-nov-2026). En gana.png (541×794) la cabeza está en x≈265, y≈120:
   con el dibujo al 243 % del círculo, left −69 % y top −4 % la dejan en medio. */
.pl-cara img { width: 300%; left: -97%; top: -17%; clip-path: inset(0 37% 0 0); } /* un poco más cerca: así no se asoma la palomita verde del dibujo */
@media (max-width: 559px) {
  /* Categorías aún más chicas (Marco, 7-nov-2026): ícono sin caja, tarjeta bajita, para que sobre espacio abajo */
  .pl-ops-cat { gap: 6px; }
  .pl-ops-cat .pl-op { min-height: 58px !important; padding: 6px 4px; gap: 2px; font-size: 13px; border-radius: 12px; }
  .pl-ops-cat .pl-op-ico { width: 26px; height: 26px; background: none; }
  .pl-ops-cat .pl-op-ico .i { width: 22px; height: 22px; }
  .pl-ops-cat .pl-op:has(input:checked) .pl-op-ico, .pl-ops-cat .pl-op.is-checked .pl-op-ico { background: none; color: var(--brand); }
}

@media (max-width: 559px) { [data-pl-q="titulo"] .textarea { min-height: 104px; height: 104px; } }

/* ===== Publicar en 4 pasos sencillos (Marco, 7-nov-2026: como Airtasker, con el diseño de Xoxaz) ===== */
.pl-q.is-current + .pl-q.is-current { margin-top: 20px; }
.pl-q.is-current:not(.pl-ultimo) .pl-sigue { display: none; }
/* Dentro de un paso, solo la primera pregunta lleva la burbuja con la Guerrera; las demás, un título sencillo */
.pl-q.is-current:not(.pl-primero) .pl-guia { margin: 0 0 10px; }
.pl-q.is-current:not(.pl-primero) .pl-guia .pl-cara { display: none; }
.pl-q.is-current:not(.pl-primero) .pl-burbuja { background: none; border: 0; box-shadow: none; padding: 0; }
.pl-q.is-current:not(.pl-primero) .pl-burbuja::before, .pl-q.is-current:not(.pl-primero) .pl-burbuja::after { display: none; }
.pl-q.is-current:not(.pl-primero) .pl-pregunta { font-family: inherit; font-size: var(--fs-md); font-weight: 700; }
.pl-q.is-current:not(.pl-primero) .pl-burbuja p, .pl-q.is-current:not(.pl-primero) .pl-ayuda { display: none; }
/* Botón Continúa siempre a la vista, fijo abajo (arriba de la barra del navegador) */
.pl-q.is-current.pl-ultimo .pl-sigue { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); box-shadow: 0 -6px 18px rgb(0 0 0 / .07); }
.pl-q.is-current.pl-ultimo .pl-sigue .btn { max-width: 560px; margin: 0 auto; }
#form-publicar { padding-bottom: 96px; }
/* ¿Para cuándo?: botones chicos en renglón */
.pl-ops-cuando { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-ops-cuando .pl-op { width: auto; min-height: 44px; padding: 8px 14px; border-radius: 999px; gap: 6px; font-size: 15px; }
.pl-ops-cuando .pl-op-ico { display: none; }
/* ¿Dónde?: colonia con sugerencias y "Usa mi ubicación" como liga */
.ubi-col { position: relative; }
/* Calle y número lado a lado (9-nov-2026): el número es opcional y angosto */
.dir-fila { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 10px; align-items: end; }
.dir-fila .field { margin-bottom: 0; min-width: 0; }
.dir-fila ~ .error-text { margin-top: 6px; }
.dir-fila ~ .ubi-dir { margin-top: 6px; }
.ubi-col .ubi-sug { margin-top: 6px; }
.pl-ubi-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 0; background: none; border: 0; color: var(--brand-700); font-family: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.pl-ubi-link.is-loading { opacity: .6; }
#pl-mas-lugar .ubi { margin-top: 12px; }
/* Detalles: el cuadro de texto amplio y el ícono de la cámara para agregar fotos abajo */
[data-pl-q="foto"] .textarea { min-height: 120px; }
[data-pl-q="foto"] .pf-grid { margin-top: 12px; }
/* Ajustes con más prioridad que .js-only y el modo plática */
.x-js .pl-q.is-current:not(.pl-ultimo) .pl-sigue { display: none !important; }
.pl-q[data-pl-q="foto"] .pf-grid { display: grid !important; } /* el ícono de la cámara siempre a la vista */
.pl-q .pl-ops.pl-ops-cuando { display: flex !important; flex-wrap: wrap; gap: 8px; grid-template-columns: none; }
.pl-q .pl-ops.pl-ops-cuando .pl-op { width: auto !important; flex: 0 0 auto; }
/* Paso 4: "Publica gratis" siempre a la vista, fijo abajo como "Continúa" */
.pl-q[data-pl-q="resumen"].is-current > button[type="submit"] { position: fixed; left: 16px; right: 16px; bottom: calc(10px + env(safe-area-inset-bottom)); width: auto; max-width: 560px; margin: 0 auto; z-index: 41; }
.pl-q[data-pl-q="resumen"].is-current::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: calc(76px + env(safe-area-inset-bottom)); background: var(--bg); box-shadow: 0 -6px 18px rgb(0 0 0 / .07); z-index: 40; }
/* Flujo Airtasker: el tipo de trabajo va en el paso 3 con tarjetas chicas */
[data-pl-q="categoria"].is-current .pl-ops-cat { margin-top: 4px; }

/* ¿Para cuándo? como Airtasker (Marco, 7-nov-2026): botones que abren el calendario y la hora en tarjetas */
.pl-cuando { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 8px 16px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font-family: inherit; font-weight: 700; font-size: 15px; line-height: 1.2; cursor: pointer; overflow: hidden; }
.pl-chip .i { width: 16px; height: 16px; }
.pl-chip.is-checked { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.pl-chip-fecha { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; margin: 0; cursor: pointer; }
.pl-hora-check { margin-top: 14px; }
.pl-franjas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.pl-franja { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; text-align: center; cursor: pointer; }
.pl-franja input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pl-franja .i { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--brand-700); margin-bottom: 2px; }
.pl-franja b { font-size: 15px; } .pl-franja small { font-size: 13px; color: var(--muted); }
.pl-franja:has(input:checked) { border-color: var(--brand-700); background: var(--brand-50); box-shadow: 0 0 0 1px var(--brand-700) inset; }
/* Paso 1 = categorías + "¿Qué hay que hacer?" + "¿Para cuándo?": la burbuja con la Guerrera solo arriba; el título lleva su etiqueta */
[data-pl-q="titulo"].is-current:not(.pl-primero) .pl-guia { display: none; }
[data-pl-q="categoria"].is-current + [data-pl-q="titulo"].is-current { margin-top: 16px; }

/* Burbuja de la Guerrera: texto centrado y la cara a media altura de la burbuja (Marco, 7-nov-2026) */
.pl-guia { align-items: center; }
.pl-burbuja { text-align: center; display: flex; flex-direction: column; justify-content: center; min-height: 56px; }
.pl-q.is-current:not(.pl-primero) .pl-burbuja { text-align: left; min-height: 0; }
/* ¿Dónde es? más compacto: casilla para abrir el mapa abajo de la calle (Marco, 7-nov-2026) */
[data-pl-q="donde"] .field { margin-bottom: 12px; }
.pl-mapa-check { margin: 2px 0 10px; }
[data-mapa-caja] { margin-bottom: 8px; }
[data-pl-q="donde"] .pl-mas { margin-top: 4px; }

/* Publicar cabe en la pantalla del teléfono: sin espacio de sobra abajo, para que Safari no recorra la página al escribir (Marco, 7-nov-2026) */
.page.pl-page { padding-bottom: 0; }
#form-publicar { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.pl-barra { padding-top: 6px; padding-bottom: 8px; margin-bottom: 6px; }
.pl-q.is-current + .pl-q.is-current { margin-top: 14px; }
body:has(.pl-page) #contenido { min-height: 0 !important; }
/* El aviso del mapa se lee completo en el teléfono (antes se cortaba) */
[data-mapa-caja] .ubi-hint { white-space: normal; width: max-content; max-width: calc(100% - 110px); text-align: center; line-height: 1.3; }
.pl-mapa-txt { margin: 0 0 8px; font-size: var(--fs-sm); color: var(--ink-2); }
/* Resumen = vista previa de la tarea como la ven los Guerreros (Marco, 7-nov-2026) */
.pl-prev { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; margin: 4px 0 18px; box-shadow: var(--shadow-1, 0 1px 3px rgb(0 0 0 / .06)); }
.pl-prev-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pl-prev-cat:empty { display: none; }
.pl-prev-edit { font-size: var(--fs-sm); min-height: 36px; display: inline-flex; align-items: center; padding: 0 4px; flex: none; margin-left: auto; }
.pl-prev-tit { margin: 8px 0 10px; font-size: 22px; line-height: 1.25; word-break: break-word; }
.pl-prev-datos { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pl-prev-datos li { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; min-width: 0; }
.pl-prev-datos li > span { min-width: 0; overflow-wrap: anywhere; }
.pl-prev-datos .i { color: var(--muted); flex: none; }
.pl-prev-sec { border-top: 1px solid var(--line-2); margin-top: 12px; padding-top: 10px; }
.pl-prev-desc { margin: 4px 0 0; white-space: pre-line; overflow-wrap: anywhere; color: var(--ink); } /* Marco (16-nov, punto 6): el resumen muestra TODO el texto; antes se cortaba a 5 renglones con "…" y no se notaba que faltaba */
.pl-prev-desc:empty { display: none; }
.pl-prev-fotos { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.pl-prev-fotos img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.pl-prev-mapa { height: 140px; border-radius: 12px; overflow: hidden; margin-top: 12px; z-index: 0; }

/* Paso 1 con un poco más de aire: las categorías bajan un poco (Marco, 7-nov-2026; sigue cabiendo en el iPhone) */
.x-js [data-pl-q="categoria"].is-current .pl-ops-cat { margin-top: 12px; }
.x-js [data-pl-q="categoria"].is-current + [data-pl-q="titulo"].is-current { margin-top: 20px; }
.ubi-sug-libre b { color: var(--brand); }

/* Paso 3: 3 casillas de foto, una al lado de otra (Marco, 8-nov-2026) */
.pf-tit { margin: 14px 0 0; font-weight: 700; font-size: 15px; }
.pf-tit .muted { font-weight: 600; font-size: 14px; }
[data-pl-q="foto"] .pf-tres { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.pf-tres .pf-add { border-color: var(--line); background: #fff; }
.pf-tres .pf-add .i { width: 28px; height: 28px; color: var(--brand-700); }
/* Paso 4: "El mínimo es $350" se pone en rojo si ofrece menos (no se repite como error) */
.pl-min.is-err { color: var(--err); font-weight: 700; }

/* Marco (8-nov-2026): tarjeta como Airtasker (categoría, hace cuánto, "Abierta · N ofertas" y foto de quien publica) */
.tc .tc-cat { font-size: var(--fs-sm); }
.tc-hace { color: var(--muted); font-weight: 500; flex: none; }
.tc .tc-estado b { color: var(--brand-700); }
.tc-av .avatar { width: 32px; height: 32px; font-size: 12px; }

/* Tarjeta como Airtasker (Marco, 9-nov-2026): título normal y precio fuerte arriba; dónde / qué día / a qué hora con
   ícono; "Abierta · N ofertas" y la foto de quien publicó abajo a la derecha. Sin renglón de categoría ni línea divisoria. */
.tc { gap: 12px; padding: 18px 18px 16px; border-radius: 18px; }
.tc-title { font-size: 19px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.tc-price { font-size: 24px; font-weight: 800; color: var(--ink); }
.tc-rows { gap: 8px; }
.tc-rows li { color: var(--muted); }
.tc-rows li .i { width: 20px; height: 20px; color: var(--muted); flex: none; }
.tc-rows li > span:not(.chip) { color: var(--ink-2); font-weight: 500; }
.tc-foot { border-top: 0; padding-top: 2px; }
.tc .tc-estado b { color: var(--brand); font-weight: 800; }
.tc-n { color: var(--muted); font-weight: 500; }
.tc-av .avatar { width: 42px; height: 42px; font-size: 15px; }

/* Selector "Lista | Mapa" (Marco, 9-nov-2026): el mismo de Cómo funciona; lista a la izquierda, mapa a la derecha */
.vista-seg { margin: 6px 0 14px; max-width: 420px; }
.vista-seg a { height: 46px; font-size: var(--fs-md); text-decoration: none; color: var(--ink-2); }
.vista-seg a.is-active { color: var(--brand-700); }
.bx-uno { grid-template-columns: 1fr; }
.mf-top .vista-seg { margin: 0; flex: 1 1 100%; max-width: none; }
@media (min-width: 900px) { .mf-top .vista-seg { flex: 0 0 260px; } }

/* Lista (Marco, 9-nov-2026): las categorías en una fila que se desliza (como el "Category" de Airtasker), así los
   trabajos se ven luego luego y no hay que bajar una pantalla entera de botones */
.bx-cats { display: flex; gap: 8px; overflow-x: auto; margin: 12px calc(-1 * var(--gutter)) 0; padding: 2px var(--gutter) 6px; scrollbar-width: none; grid-template-columns: none; }
.bx-cats::-webkit-scrollbar { display: none; }
.bx-cat { flex: none; flex-direction: row; gap: 8px; min-height: 44px; padding: 0 16px 0 10px; border-radius: var(--r-pill); font-size: 15px; font-weight: 600; box-shadow: none; }
.bx-cat .bx-cat-ico { width: 30px; height: 30px; border-radius: 50%; }
.bx-cat .bx-cat-ico .i { width: 18px; height: 18px; }
@media (min-width: 760px) { .bx-cats { flex-wrap: wrap; overflow: visible; margin: 12px 0 0; padding: 0; } }

/* Mapa a pantalla (como Uber): sin la barra "Atrás", y buscar + filtros en un solo renglón para dejarle el espacio al mapa */
/* Marco (13-nov-2026): el mapa conserva "Atrás · Buscar trabajo", igual que la lista (antes: .atras-bar { display: none }) */
@media (max-width: 899.98px) {
  .mf-top { flex-wrap: wrap; gap: 8px; }
  .mf-top .mf-search { flex: 1 1 0; }
  .mf-top .mf-search .btn { padding: 0 14px; }
  .mf-top .bx-uno { flex: none; }
  .mf-top .fsheet-btn { width: 52px !important; padding: 0 !important; justify-content: center; font-size: 0; gap: 0; position: relative; }
  .mf-top .fsheet-btn .i { width: 20px; height: 20px; }
  .mf-top .fsheet-btn .fsheet-n { position: absolute; top: -4px; right: -4px; font-size: 11px; }
}
/* Lista (Marco, 9-nov-2026): el mismo renglón del mapa, buscador + botón redondo de filtros */
.bx-fila { display: flex; gap: 8px; align-items: center; }
.bx-fila .bx-search { flex: 1 1 0; min-width: 0; }
.bx-fila .bx-uno { flex: none; }
.bx-fila .fsheet > summary { --h: 52px; padding: 0 20px; }
@media (max-width: 899.98px) {
  .bx-fila .bx-search .btn { padding: 0 14px; }
  .bx-fila .fsheet-btn { width: 52px !important; padding: 0 !important; justify-content: center; font-size: 0; gap: 0; position: relative; border-radius: 50%; }
  .bx-fila .fsheet-btn .i { width: 20px; height: 20px; }
  .bx-fila .fsheet-btn .fsheet-n { position: absolute; top: -4px; right: -4px; font-size: 11px; }
}

/* Estatus de cada trabajo (Marco, 9-nov-2026, como Airtasker): un color por estado y su explicación a un toque */
.st-abierta { color: #09734E !important; } /* 13-nov-2026 a11y: contraste 4.5:1 sobre crema */
.st-asignada { color: #2457C5 !important; }
.st-confirmar { color: #8A5300 !important; } /* 13-nov-2026 a11y */
.st-completada { color: #5B5F66 !important; }
.tc-cerrada { background: #FBF8F2; }
.tc-cerrada .tc-price { color: var(--ink-2); }
.st-ayuda { margin: 0 0 12px; }
.st-ayuda > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; cursor: pointer; list-style: none; font-size: var(--fs-sm); font-weight: 600; color: var(--brand-700); }
.st-ayuda > summary::-webkit-details-marker { display: none; }
.st-ayuda ul { list-style: none; margin: 4px 0 0; padding: 12px 14px; display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); font-size: var(--fs-sm); }
.st-ayuda li { display: grid; grid-template-columns: 104px 1fr; gap: 8px; align-items: baseline; }
.st-ayuda li b { font-weight: 800; }
.st-ayuda li span { color: var(--ink-2); }
/* Cuadro de estado en la descripción del trabajo */
.st-caja { margin-top: 14px; padding: 10px 12px; border-radius: var(--r-md); background: var(--bg-2, #F5EFE4); border: 1px solid var(--line-2); font-size: var(--fs-sm); color: var(--ink-2); }
.st-caja > p { margin: 0; line-height: 1.45; }
.st-caja > p b { font-weight: 800; }
.st-caja .st-ayuda { margin: 4px 0 0; }
.st-liga { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-top: 4px; font-size: var(--fs-sm); font-weight: 600; color: var(--brand-700); }
.st-caja .st-ayuda > summary { min-height: 36px; }
.st-caja .st-ayuda ul { background: #fff; }
.st-ayuda li { display: flex; flex-direction: column; gap: 1px; }
/* 047: "¿Aún sin ofertas? Súbela otra vez" (solo el dueño, sin ofertas) */
.subir-caja { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-color: var(--brand-50, #DDEFE6); background: #F2FAF6; }
.subir-caja p { margin: 2px 0 0; font-size: var(--fs-sm); color: var(--ink-2); }
.subir-caja form { margin: 0; flex: none; }
@media (max-width: 599px) { .subir-caja form, .subir-caja .btn { width: 100%; } }
/* 3: "Mejor oferta" (como el Top Offer de Airtasker) */
.chip-mejor { background: #FFF4D6; color: #8A5A00; border-color: #F2D48A; font-weight: 700; }
.chip-mejor .i { color: #C98A00; }
/* 4: Guerreros recomendados */
.recom-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.recom-lista li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.recom-quien { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); text-decoration: none; }
.recom-quien > span { display: flex; flex-direction: column; min-width: 0; }
.recom-quien b { display: inline-flex; align-items: center; gap: 4px; }
.recom-quien small { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: var(--fs-xs); }
.recom-lista form { margin: 0; flex: none; }
.recom-quien small.recom-cert { color: var(--brand-700); font-weight: 700; }
/* 6: fotos en las reseñas */
.rf-prev:empty { display: none; }
.rf-prev { display: flex; gap: 8px; flex-wrap: wrap; }
.rf-prev img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.rf-fotos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.rf-fotos img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); display: block; }
/* 7: ayuda para escribir la tarea (guía que se palomea sola + plantilla por oficio) */
.desc-ayuda { margin-top: 10px; padding: 12px 14px; border-radius: var(--r-md); background: #F2FAF6; border: 1px solid #D6ECE0; }
.desc-ayuda-t { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: var(--fs-sm); font-weight: 700; color: var(--brand-700); }
.desc-ayuda ul { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 4px; font-size: var(--fs-sm); color: var(--ink-2); }
.desc-ayuda li { position: relative; padding-left: 24px; }
.desc-ayuda li::before { content: ""; position: absolute; left: 2px; top: 3px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #B9D6C7; }
.desc-ayuda li.is-ok { color: var(--muted); text-decoration: line-through; }
.desc-ayuda li.is-ok::before { background: var(--brand); border-color: var(--brand); }
.desc-ayuda { flex-direction: column; align-items: stretch; } .desc-ayuda > .btn { align-self: flex-start; }
/* 8: pestañas de Tus tareas (como Airtasker); se deslizan en el celular */
.mias-tabs { display: flex; gap: 8px; overflow-x: auto; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
.mias-tabs::-webkit-scrollbar { display: none; }
.mias-tabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.mias-tabs a.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.mias-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: rgb(0 0 0 / .08); font-size: 12px; font-weight: 800; }
.mias-tabs a.is-active .mias-n { background: rgb(255 255 255 / .25); }
.mias-hist > summary { cursor: pointer; font-weight: 600; color: var(--brand-700); min-height: 44px; display: flex; align-items: center; }
@media (min-width: 760px) { .mias-tabs { flex-wrap: wrap; margin-left: 0; margin-right: 0; padding: 0; } }
/* 14: "¿Lo necesitas seguido?" y la tarea lista para publicar otra vez */
.repetir-caja { margin-top: 4px; padding: 12px 14px; border-radius: var(--r-md); background: #F2FAF6; border: 1px solid #D6ECE0; }
.repetir-caja > b { display: flex; align-items: center; gap: 6px; color: var(--brand-700); }
.repetir-form { display: flex; gap: 8px; margin: 0; }
.repetir-form select { flex: 1 1 auto; min-width: 0; }
.rep-card { padding: 18px; }
.rep-desc { margin: 10px 0 0; color: var(--ink-2); font-size: var(--fs-sm); white-space: pre-line; }
.rep-pagina .rf-fotos img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; }
/* 052: anuncio discreto en la lista (uno cada 12 tareas), como los de Airtasker */
/* Marco (10-nov-2026): "como lo mete Airtasker: no es intrusivo y parece parte de los anuncios": misma tarjeta que un
   trabajo (título, renglones con ícono, imagen arriba a la derecha) y en lugar del precio la etiqueta "Patrocinado". */
.tc-patro { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.tc-anuncio .tc-der .tc-estado { margin-top: 10px; }
.tc.tc-anuncio .tc-estado b.tc-patro { color: var(--muted); font-weight: 700; letter-spacing: .03em; }
.tc-an-img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; display: block; }
.tc-an-ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); }
.tc-an-ico .i { width: 20px; height: 20px; }
/* Marco (9-nov-2026): "no deja ver más" las categorías del mapa: la fila ignoraba el dedo (pointer-events: none) y no
   se podía deslizar. Ahora la fila sí recibe el dedo y se desliza de lado; el mapa sigue moviéndose fuera de la fila. */
.mf-cats { pointer-events: auto; touch-action: pan-x; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; padding-right: 32px; }

/* Marco (9-nov-2026): "siguen muy grandes". Tarjeta compacta como la de Airtasker: letra y espacios más chicos,
   foto y corazón de 36 px (el corazón sigue con 44 px de área para el dedo gracias al margen). */
.tc { gap: 8px; padding: 14px 16px 12px; border-radius: 16px; }
.tc-top { gap: 10px; }
.tc-title { font-size: 16px; line-height: 1.3; font-weight: 500; }
.tc-price { font-size: 20px; line-height: 1.15; }
.tc-rows { gap: 4px; font-size: 14px; }
.tc-rows li { gap: 8px; }
.tc-rows li .i { width: 17px; height: 17px; }
.tc-rows li > span:not(.chip) { font-weight: 400; color: var(--ink-2); }
.tc-foot { font-size: 14px; padding-top: 0; }
.tc .tc-estado b { font-weight: 700; }
.tc-av .avatar { width: 34px; height: 34px; font-size: 13px; }
.tc-end { gap: 6px; }
.tc .tg-btn { min-width: 36px; height: 36px; padding: 0 8px; margin: -4px -4px -4px 0; }
.tc .tg-btn svg { width: 18px; height: 18px; }
.task-grid { gap: 10px; }
.task-card.tc .tc-price { font-size: 20px; line-height: 1.15; }
.task-card.tc .tc-title { font-size: 16px; }
/* Marco (9-nov-2026): estado debajo del precio, a la derecha; sin renglón de abajo. Izquierda: título y renglones;
   derecha: precio, estado, cuántas ofertas y (hasta abajo) la foto de quien publicó y el corazón. */
.task-card.tc { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: stretch; }
.tc-izq { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tc-der { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 2px; }
.tc-der .tc-estado { display: flex; flex-direction: column; align-items: flex-end; gap: 0; font-size: 13px; line-height: 1.3; white-space: nowrap; }
.tc-der .tc-n { font-size: 12px; }
.tc-der .tc-end { margin-top: 0; padding-top: 0; }
/* Marco (10-nov-2026): foto y corazón ARRIBA; el precio baja junto al estado y las ofertas */
.tc-der .tc-price { margin-top: 10px; padding-top: 0; } /* Marco: "quedó muy abajo el precio": va justo debajo, no pegado al fondo */

/* Trabajos de ejemplo (Marco, 10-nov-2026): misma tarjeta, siempre marcados «Ejemplo» */
.ej-t { font-size: var(--fs-h3); margin: 0 0 4px; }
.ej-sub { margin: 0 0 12px; color: var(--ink-2); font-size: var(--fs-sm); }
.tc-ejemplo { background: var(--bg-soft); }
.tc.tc-ejemplo .tc-estado b.tc-ej { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.tc-ejemplo .tc-price { color: var(--ink-2); }

/* Marco (10-nov-2026, "sale este error"): las categorias del mapa (z 700) se encimaban al menu (cajon, z 200).
   El mapa ahora es su propia capa (z 0): lo de adentro nunca pasa encima del menu ni de la barra de arriba. */
.mf-wrap { z-index: 0; isolation: isolate; }

/* Marco (10-nov-2026, "esta muy separado"): Buscar trabajo, de 32 px a 12 px entre "Atras · Buscar trabajo" y "Lista | Mapa" */
.page:has(> .container.bx) { padding-top: 0; }
.container.bx { padding-top: 0; }
.bx > .vista-seg, .bx .vista-seg { margin-top: 2px; }

/* Marco (10-nov-2026): en el mapa las categorias van en su renglon, arriba del mapa (como en la lista), no encima */
.mf-cats-fila { flex: none; margin: 0 !important; padding: 2px 12px 8px !important; }
@media (min-width: 760px) { .mf-cats-fila { flex-wrap: nowrap; overflow-x: auto; } }

/* Marco (10-nov-2026): "una línea súper extraña en el mapa" (iPhone). Entre los cuadritos del mapa (256 px) puede quedar una
   rendija clara cuando el mapa queda en una posición con decimales. Cada cuadrito se encima medio pixel sobre el de al lado
   y se pinta normal (con el "plus-lighter" de Leaflet lo encimado se aclararía y saldría otra línea). */
.leaflet-container img.leaflet-tile { mix-blend-mode: normal; width: 256.5px !important; height: 256.5px !important; }

/* Anuncio de Google en Buscar trabajo (11-nov-2026, gads.js): encima va la tarjeta "De Xoxaz" hasta que Google llena el espacio */
.tc-gads { position: relative; min-height: 100px; }
.tc-gads-ins { width: 100%; height: 100px; border-radius: 18px; overflow: hidden; background: var(--surface, #fff); }
.tc-gads > .tc-anuncio { position: absolute; inset: 0; margin: 0; }
.tc-gads-tag { display: none; position: absolute; top: 6px; left: 8px; z-index: 2; padding: 1px 7px; border-radius: 999px; background: rgb(255 255 255 / .9); border: 1px solid var(--line); font-size: 11px; font-weight: 700; color: var(--muted); }
.tc-gads.is-lleno > .tc-anuncio { display: none; }
.tc-gads.is-lleno .tc-gads-tag { display: block; }
.tc-gads.is-vacio { min-height: 0; }
.tc-gads.is-vacio .tc-gads-ins { display: none !important; }
.tc-gads.is-vacio > .tc-anuncio { position: static; }

/* Auditoría 11-nov-2026: áreas de toque de 44 px o más en el celular (sin cambiar cómo se ven) */
.tf-del, .pf-del { width: 44px; height: 44px; }
.pl-ubi-link { min-height: 44px; }
.pl-prev-edit, .st-liga { min-height: 44px; }
.tc .tg-btn { position: relative; z-index: 2; }
.tc .tg-btn::after { content: ""; position: absolute; inset: -5px; }
.bubble .rep-btn { position: relative; }
.bubble .rep-btn::after { content: ""; position: absolute; inset: -7px; }

/* 11-nov-2026 (Marco): la etiqueta del anuncio, más discreta (sigue visible: AdSense y PROFECO piden que se note que es publicidad) */
.tc.tc-anuncio .tc-estado b.tc-patro, .tc-patro { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; color: var(--muted); opacity: .85; }

/* 11-nov-2026 (captura de Marco en iPhone): con la letra de Apple el paso 1 quedaba ~30 px más alto y "Continúa" tapaba
   "Elige el día / Flexible". En pantallas bajas se aprieta el aire (no el tamaño de los botones). */
@media (max-width: 559px) and (max-height: 760px) {
  .pl-barra { padding-top: 4px; padding-bottom: 6px; margin-bottom: 4px; }
  [data-pl-q="categoria"] .pl-guia { margin-top: 0; margin-bottom: 8px; }
  [data-pl-q="categoria"] .pl-cara { width: 44px; height: 44px; }
  [data-pl-q="categoria"] .pl-burbuja { padding: 8px 14px; min-height: 48px; }
  [data-pl-q="categoria"] .pl-pregunta { font-size: 24px; }
  .pl-ops-cat .pl-op { min-height: 54px !important; padding: 5px 4px; }
  [data-pl-q="categoria"].is-current + [data-pl-q="titulo"].is-current { margin-top: 10px; }
  [data-pl-q="titulo"] .label { margin-bottom: 4px; }
  [data-pl-q="titulo"] .pl-input-grande { min-height: 48px; }
  [data-pl-q="titulo"] .field { margin-bottom: 4px; }
  .pl-page { padding-top: 6px !important; }
  .pl-ops-cat { margin-top: 6px !important; }
  .pl-q[data-pl-q="titulo"].is-current { margin-top: 8px !important; }
  .pl-q[data-pl-q="cuando"].is-current { margin-top: 8px !important; }
  [data-pl-q="cuando"] .pl-guia { margin-bottom: 6px !important; }
}
/* 12-nov-2026 (Marco): "Contrata otra vez" debajo de cada trabajo terminado en Tus tareas > Completadas */
.mine-grupo { border-bottom: 1px solid var(--line-2); }
.mine-grupo:last-child { border-bottom: 0; }
.mine-grupo > .list-item { border-bottom: 0; }
.mine-again { padding: 0 16px 14px; display: flex; justify-content: flex-end; }
@media (min-width: 720px) { .mine-again { padding: 0 20px 16px; } }

/* Trabajo de ejemplo (/explorar/ejemplo/{n}, 13-nov-2026): mismo diseño que /tarea/{id}; solo la lista "Qué incluye" es propia */
.ej-incluye { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.ej-incluye li { display: flex; gap: 10px; align-items: flex-start; }
.ej-incluye .i { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--brand); }
.ej-btn { text-wrap: balance; }

/* Marco (13-nov-2026): "esta sección debe ser de la misma medida e iguales los botones": en el MAPA, el selector,
   el buscador, "Busca", el botón de filtros y las categorías quedan EXACTAMENTE donde están en la LISTA (mismas
   medidas, mismo fondo), así al cambiar Lista ↔ Mapa no se mueve nada; solo cambia lo de abajo. */
.mf-top { background: transparent; border-bottom: 0; row-gap: 14px; column-gap: 8px; padding-top: 2px; padding-bottom: 12px; }
.mf-top .mf-search { padding: 6px; }
.mf-top .mf-search .input { min-height: 52px; }
.mf-top .mf-search .btn { --h: 52px; }
.mf-top .bx-dos > .btn, .mf-top .bx-dos .fsheet > summary, .mf-top .fsheet-btn { --h: 52px; height: 52px; }
@media (max-width: 899.98px) { .mf-top .fsheet-btn { border-radius: 50%; } }
.mf-cats-fila { margin: 0 !important; padding: 2px var(--gutter) 6px !important; background: transparent; border: 0; }
@media (min-width: 900px) {
  .mf-top, .mf-cats-fila { width: 100%; max-width: calc(1080px + 2 * var(--gutter)); margin-inline: auto !important; padding-inline: var(--gutter) !important; box-sizing: border-box; }
  .mf-top { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .mf-top .vista-seg { grid-column: 1 / -1; width: 420px; max-width: 100%; flex: none; }
  .mf-top .mf-search { grid-column: 1; }
  .mf-top .bx-dos, .mf-top .bx-uno { grid-column: 2; }
  .mf-cats-fila { flex-wrap: wrap; overflow: visible; padding-top: 0 !important; padding-bottom: 0 !important; }
  .mf-top .bx-dos .fsheet > summary, .mf-top .bx-uno .fsheet > summary { padding: 0 20px; }
}

/* Reglas (15-nov-2026): constancia de trabajo terminado (T4) y reemplazo con un toque (T2) */
.constancia-card { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-soft); }
.constancia-card > b { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.reemplazo { display: grid; gap: 8px; padding: 14px 16px; border: 2px solid var(--brand); border-radius: var(--r-md); background: var(--brand-50); }
.reemplazo-fila { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 0; border-top: 1px solid var(--line); }
.reemplazo-fila .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.reemplazo-fila .btn { min-height: 44px; }

/* 15-nov-2026 (Marco: "En ese filtro agrégale las categorías. Y esas categorías elimínalas de esa misma barra"): el renglón de
   arriba (views/x/_cats.php con $filtros) es SOLO [buscador] [botón de filtros]. El buscador (.bx-cat-buscar, mismo alto y
   forma que un chip; se escribe y Enter busca) ocupa lo que sobra; el botón es REDONDO de 44 px a la derecha, con el número de
   filtros (la categoría elegida cuenta 1). Las categorías van en la hoja, sección "Categoría" (views/x/_cats_filtro.php).
   Lo usan Buscar trabajo (lista y mapa), Renta (Renta y Equipos) y Ferretería (pedidos y Proveedores). */
.bx-barra { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 2px 0 6px; }
.bx-barra.mf-cats-fila { flex-wrap: nowrap; overflow: visible; }
.bx .vista-seg + .bx-barra { margin-top: 0; }
.bx-cat.bx-cat-buscar { flex: 1 1 auto; width: auto; min-width: 0; padding: 0 12px; gap: 6px; cursor: text; color: var(--muted); }
.bx-cat-buscar input { flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; font: inherit; font-weight: 500; font-size: 16px; color: var(--ink); outline: none; }
.bx-cat-buscar:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.bx-cat-buscar input::-webkit-search-cancel-button { -webkit-appearance: none; }
.bx-barra > .fsheet { flex: none; display: flex; }
.bx-barra .fsheet > summary.fsheet-btn { --h: 44px; height: 44px; min-height: 44px; width: 44px !important; padding: 0 !important; justify-content: center; gap: 0; position: relative; border-radius: 50%; box-shadow: none; }
.bx-barra .fsheet-btn .fsheet-txt { display: none; }
.bx-barra .fsheet-btn.btn-outline { background: var(--surface); border-color: var(--line); color: var(--ink); }
.bx-barra .fsheet-btn.btn-outline:hover { border-color: var(--brand-100); background: var(--hover); }
.bx-barra .fsheet-btn:focus-visible { outline: none; box-shadow: var(--ring); }
.bx-barra .fsheet-btn .i { width: 20px; height: 20px; }
.bx-barra .fsheet-btn .fsheet-n { position: absolute; top: 0; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; line-height: 1; box-shadow: 0 0 0 2px #fff; }
.bx-barra .fsheet-btn.btn-primary .fsheet-n { background: #fff; color: var(--brand-700); box-shadow: 0 0 0 2px var(--brand); }
/* Sin buscador (Ferretería → pedidos): el botón va solo, como pastilla con su texto (la categoría elegida o "Categorías") */
.bx-barra-sola .fsheet > summary.fsheet-btn { width: auto !important; max-width: 100%; padding: 0 16px 0 14px !important; gap: 8px; border-radius: var(--r-pill); font-size: 15px; font-weight: 600; }
.bx-barra-sola .fsheet-btn .fsheet-txt { display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-barra-sola .fsheet-btn .fsheet-n { position: static; box-shadow: none; }
/* Escritorio: el panel flotante sale pegado al botón, del lado derecho (el botón está al final del renglón); si va solo, a la izquierda */
@media (min-width: 900px) {
  .bx-barra .fsheet[open] .fsheet-panel { right: 0; left: auto; }
  .bx-barra-sola .fsheet[open] .fsheet-panel { left: 0; right: auto; }
}
/* Lista y Mapa idénticos (Marco, 13-nov-2026): de "Lista | Mapa" al renglón hay 14 px en las dos vistas (lista: el margen del
   selector; mapa: el relleno de .mf-top). */
.mf-top { padding-bottom: 14px; }
@media (min-width: 760px) and (max-width: 899.98px) { .mf-cats-fila { padding-top: 0 !important; } }
/* Sección "Categoría" de la hoja: "Todo" y las categorías en 2 columnas, tarjetitas con su dibujo; la elegida en verde como
   las demás opciones (.fs-chip). Sin <span> por dentro: .fs-chip span pinta cualquier span como pastilla. */
.fs-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fs-chip.fs-cat { display: flex; min-width: 0; }
.fs-chip.fs-cat > span { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 48px; padding: 6px 10px 6px 6px; border-radius: var(--r-md); line-height: 1.2; }
.fs-cat-ico { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); font-style: normal; }
.fs-cat-ico .cat-ilus { width: 32px; height: 32px; }
.fs-cat-ico .i { width: 18px; height: 18px; }
/* 15-nov-2026 (Marco): nunca partir una palabra ("Electricida d"): en pantallas angostas baja un poco la letra y el ícono y,
   si aun así no cabe, una sola columna. (xoxaz.css fuerza `body * { hyphens: manual }`, por eso los !important.) */
.fs-cat-t { min-width: 0; font-weight: 600; overflow-wrap: normal !important; word-break: normal !important; hyphens: manual !important; }
@media (max-width: 380px) {
	.fs-chip.fs-cat > span { gap: 6px; padding: 6px 8px 6px 5px; }
	.fs-cat-ico, .fs-cat-ico .cat-ilus { width: 28px; height: 28px; }
	.fs-cat-t { font-size: 14px; }
}
@media (max-width: 340px) { .fs-cats { grid-template-columns: 1fr; } }
.fs-cat input:checked + span .fs-cat-ico { background: rgb(255 255 255 / .18); color: #fff; }
.fs-cat input:checked + span .fs-cat-ico:has(.cat-ilus) { background: none; box-shadow: 0 0 0 2px #fff; }
@media (min-width: 900px) { .fs-cats { gap: 8px 10px; } }
/* El pie de la hoja no se sale en pantallas angostas (320 px: "Mira los trabajos" / "Mira los proveedores" empujaban 50-85 px):
   el botón principal se encoge y, si no cabe, parte el texto en dos renglones */
.fsheet-pie .btn-primary { min-width: 0; white-space: normal; line-height: 1.15; text-align: center; }
@media (max-width: 380px) { .fsheet-pie .btn-ghost { padding-inline: 10px; } }
/* El anillo de foco va en el chip (:focus-within); sin el anillo general de :focus-visible también en el input de adentro (salían dos) */
.bx-cat-buscar input:focus, .bx-cat-buscar input:focus-visible { box-shadow: none; border-radius: 0; }

/* ===== 092 (17-nov-2026, Marco): garantía del Guerrero, "no corresponde a lo publicado" y trabajos de riesgo ===== */
/* Publicar: aviso amable de gas (no se publica) junto al campo */
.pl-gas { margin-top: 10px; padding: 14px 16px; border-radius: var(--r-md); background: var(--warn-50); border: 2px solid rgb(217 119 6 / .35); display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-sm); }
.pl-gas[hidden] { display: none; }
.pl-gas b { display: flex; gap: 8px; align-items: flex-start; line-height: 1.35; }
.pl-gas p { margin: 0; }
.pl-gas-fuga { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.pl-gas.is-fuga .pl-gas-fuga { order: -1; color: var(--err); }
.pl-gas .btn { align-self: flex-start; }
/* Tarea: chip y aviso de trabajo de riesgo */
.chip-riesgo { background: var(--warn-50); color: #8A4B05; border-color: rgb(217 119 6 / .3); }
.riesgo-nota { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--warn-50); font-size: var(--fs-sm); margin: 0; }
.riesgo-nota a { font-weight: 700; }
/* Junto a "Manda tu precio": lo que acepta el Guerrero */
.gar-acepta { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: var(--fs-xs, 13px); color: var(--muted, #5b5547); line-height: 1.4; }
/* Tarjetas de garantía y de "no corresponde" */
.gar-card { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 84px; }
.gar-card h2 { margin: 0; }
.gar-card .sec-sub { margin: 0; }
.gar-paso { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r-md); background: var(--bg-soft); }
.gar-paso.is-turno { background: #FFF7E8; border: 1.5px solid rgb(217 119 6 / .35); }
.gar-paso p { margin: 0; }
.gar-fotos { display: flex; gap: 8px; flex-wrap: wrap; }
.gar-fotos a { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--bg-soft); flex: none; }
.gar-fotos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gar-form { display: flex; flex-direction: column; gap: 10px; }
.gar-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gar-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.gar-btns > form, .gar-btns > .btn, .gar-btns > details { flex: 1 1 150px; min-width: 0; }
.gar-hist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-sm); }
/* 092: botón de fotos de las tarjetas (igual que en cuenta.css, que no se carga en la tarea) */
.gar-card .file-btn { position: relative; overflow: hidden; }
.gar-card .file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.gar-card .thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gar-card .thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.gar-form .row2 .input { padding-inline: 10px; min-width: 0; }
