/* ==========================================================================
   Xoxaz — Cuenta, perfil público y chat privado.
   Complementa xoxaz.css (no cambia sus clases). Móvil primero, toques de 48 px.
   ========================================================================== */

/* .page (xoxaz.css) usa `padding: 20px 0 40px` y borra el margen lateral de .container:
   aquí se devuelve el margen de 20 px para que nada toque el borde del teléfono. */
.container.page, .container.chat-wrap { padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Ajustes estilo iPhone ---------- */
.acct { max-width: 680px; }
.acct-hero { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 32px 16px 22px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.acct-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--brand); opacity: .85; -webkit-mask: url("img/mayas/greca.svg") repeat-x 0 50% / 16px 8px; mask: url("img/mayas/greca.svg") repeat-x 0 50% / 16px 8px; }
.acct-hero h1 { font-size: clamp(28px, 6vw, 36px); line-height: 1.1; overflow-wrap: anywhere; }
.acct-hero .avatar-xl { box-shadow: 0 0 0 4px #fff, var(--shadow-2); }
.acct-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; color: var(--muted); font-size: var(--fs-sm); }
.acct-photo { position: relative; display: inline-block; border-radius: 50%; }
.acct-photo .acct-cam { position: absolute; right: -2px; bottom: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--bg-soft); }
.acct-photo .acct-cam .i { width: 16px; height: 16px; }
.set-title { font-family: var(--font); font-size: 15px; font-weight: 700; letter-spacing: 0; color: var(--ink-2); margin: 24px 4px 8px; }
.set-foot { font-size: var(--fs-xs); color: var(--muted); margin: 8px 4px 0; }
.set .list-item { min-height: 56px; padding: 10px 16px; gap: 14px; font-weight: 500; }
.set .list-item .grow small { display: block; color: var(--muted); font-size: var(--fs-xs); font-weight: 400; margin-top: 1px; }
.set-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--brand-700); flex: none; background: var(--brand-50); }
.set-ico .i { width: 18px; height: 18px; }
/* Íconos de Mi cuenta: jade claro por omisión, dorado para avisos y fotos, hueso para lo neutro (nada de colores de iPhone) */
.set-ico.c-blue, .set-ico.c-green { background: var(--brand-50); color: var(--brand-700); }
.set-ico.c-orange, .set-ico.c-coral, .set-ico.c-purple { background: var(--oro-50); color: var(--oro-700); }
.set-ico.c-gray { background: var(--bg-soft); color: var(--muted); }
.set-ico.c-red { background: var(--err-50); color: #A1231B; }
.set .list-item.is-danger { color: var(--err); }
.set .val { color: var(--muted); font-size: var(--fs-sm); margin-left: auto; white-space: nowrap; }
.set .val + .chev { margin-left: 4px; }

/* ---------- Formularios de cuenta ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
@media (min-width: 720px) { .form-card { padding: 28px; } }
.form-card + .form-card { margin-top: 16px; }
.field .error-text { margin-top: -2px; }
.counter { font-size: var(--fs-xs); color: var(--muted); text-align: right; }
.counter.is-over { color: var(--err); font-weight: 600; }
.readonly { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: var(--r-md); background: var(--bg-soft); color: var(--muted); font-size: var(--fs-md); overflow: hidden; }
.readonly span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; cursor: pointer; }
.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 31px; background: #E2E2E7; transition: background .2s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgb(0 0 0 / .18); transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { box-shadow: var(--ring); }
.form-actions { display: flex; flex-direction: column-reverse; gap: 10px; margin-top: 24px; }
@media (min-width: 560px) { .form-actions { flex-direction: row; justify-content: flex-end; } }

/* Foto */
.photo-drop { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 8px 0; }
.photo-prev { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; background: var(--brand-50); color: var(--brand-700);
  display: grid; place-items: center; font-size: 56px; font-weight: 800; box-shadow: 0 0 0 6px #fff, var(--shadow-2); overflow: hidden; }
.photo-prev img { width: 100%; height: 100%; object-fit: cover; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }

/* Cobros */
.bank-card { display: flex; align-items: center; gap: 14px; }
.bank-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.inline-form { display: inline; margin: 0; }

/* Verificación */
.req { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: var(--fs-sm); }
.req:last-child { border-bottom: 0; }
.req-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--bg-soft); color: var(--subtle); }
.req-dot .i { width: 15px; height: 15px; }
.req.is-ok .req-dot { background: var(--ok-50); color: var(--ok); }
.status-hero { text-align: center; padding: 8px 0 4px; }
.status-hero .empty-icon { margin-bottom: 16px; }
.status-hero .empty-icon.is-ok { background: var(--ok-50); color: var(--ok); }
.status-hero .empty-icon.is-warn { background: var(--warn-50); color: var(--warn); }

/* ---------- Perfil público ---------- */
.pub { max-width: 760px; }
.pub-hero { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px 20px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
@media (min-width: 720px) { .pub-hero { flex-direction: row; text-align: left; gap: 24px; padding: 32px; } .pub-hero .acct-meta { justify-content: flex-start; } }
.pub-hero h1 { font-size: clamp(28px, 6vw, 40px); letter-spacing: -0.04em; overflow-wrap: anywhere; }
.pub-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.pub-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 10px; text-align: center; }
.pub-stat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.pub-stat span { font-size: var(--fs-xs); color: var(--muted); }
.pub-sec { margin-top: 16px; }
.pub-sec h2 { font-size: var(--fs-h3); letter-spacing: -0.02em; margin-bottom: 12px; }
.pub-about { white-space: pre-line; color: var(--ink-2); margin: 0; overflow-wrap: anywhere; }
.skills { display: flex; flex-wrap: wrap; gap: 8px; }
.review { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.review:last-child { border-bottom: 0; padding-bottom: 0; }
.review:first-child { padding-top: 0; }
.review p { margin: 8px 0 0; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.stars-row { display: inline-flex; gap: 1px; color: #F5A623; }
.stars-row .i { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.stars-row .off { color: #E2E2E7; }

/* ---------- Mensajes: lista ---------- */
.conv { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 76px; border-bottom: 1px solid var(--line-2); position: relative; }
.conv:last-child { border-bottom: 0; }
a.conv:hover { background: var(--hover); }
.conv-main { flex: 1 1 auto; min-width: 0; }
.conv-top { display: flex; align-items: baseline; gap: 8px; }
.conv-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; min-width: 0; }
.conv-time { font-size: var(--fs-xs); color: var(--muted); flex: none; }
.conv-task { font-size: var(--fs-xs); color: var(--brand-700); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.conv-last { font-size: var(--fs-sm); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.conv.is-unread .conv-last { color: var(--ink); font-weight: 600; }
.conv.is-unread .conv-time { color: var(--brand); font-weight: 600; }
.unread-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); flex: none; }
.conv .avatar { width: 52px; height: 52px; font-size: 18px; }

/* ---------- Mensajes: conversación (tipo iMessage) ---------- */
.chat-wrap { max-width: 760px; display: flex; flex-direction: column; min-height: calc(100dvh - var(--topbar-h) - var(--tabbar-h) - env(safe-area-inset-bottom)); padding-top: 0; padding-bottom: 0; }
@media (min-width: 900px) { .chat-wrap { min-height: calc(100dvh - var(--topbar-h)); } }
.chat-head { position: sticky; top: var(--topbar-h); z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 0; background: rgb(245 245 247 / .9);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.chat-head .back { margin: 0; min-height: 44px; min-width: 44px; justify-content: center; padding: 0; }
.chat-head > a, .chat-head > .chip { flex: none; }
.chat-head > a .avatar { display: flex; }
.chat-head .grow { min-width: 0; flex: 1 1 auto; }
@media (max-width: 479px) { .chat-head > .chip { display: none; } }
.chat-head .who { font-weight: 700; display: flex; align-items: center; gap: 6px; min-width: 0; }
.chat-head .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head .task-link { font-size: var(--fs-xs); color: var(--brand-700); font-weight: 600; display: flex; align-items: center; gap: 4px; min-width: 0; min-height: 40px; margin: -9px 0; }
.chat-head .task-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-body { flex: 1 1 auto; padding: 16px 0 8px; }
.chat .bubble { white-space: pre-wrap; overflow-wrap: anywhere; }
.chat .bubble time { text-align: right; }
.chat .bubble-them time { text-align: left; }
.chat-day { align-self: center; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); padding: 10px 0 2px; }
.chat-note { align-self: center; text-align: center; font-size: var(--fs-xs); color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 14px; max-width: 34em; margin: 4px auto 12px; display: flex; gap: 8px; align-items: flex-start; }
.chat-note .i { width: 16px; height: 16px; color: var(--brand); flex: none; margin-top: 1px; }
.bubble.is-sending { opacity: .6; }
.composer { align-items: flex-end; z-index: 20; border-top: 1px solid var(--line); margin-top: auto; padding: 10px 0 12px; }
.composer .textarea { min-height: 48px; max-height: 160px; height: 48px; padding: 12px 16px; border-radius: 24px; resize: none; line-height: 1.4; }
.composer .btn-icon { --h: 48px; flex: none; }
.composer-count { position: absolute; right: 70px; top: -18px; font-size: 11px; color: var(--muted); }
.composer-count.is-over { color: var(--err); font-weight: 600; }
.composer-box { position: relative; flex: 1 1 auto; min-width: 0; }
.chat-closed { margin-top: auto; text-align: center; font-size: var(--fs-sm); color: var(--muted); padding: 16px 0 20px; }


/* ==========================================================================
   Confianza (migración 010): verificación con documentos, portafolio, alertas,
   notificaciones y perfil público con subcalificaciones.
   ========================================================================== */
.acct-conf { display: flex; justify-content: center; max-width: 100%; }
.acct-conf .conf-chips { justify-content: center; }
.pub-conf .conf-chips { justify-content: center; }
@media (min-width: 720px) { .pub-conf .conf-chips { justify-content: flex-start; } }
.h-card { font-size: var(--fs-lg); letter-spacing: -0.02em; margin: 0 0 6px; }

/* Documentos */
.doc-card { padding-top: 16px; padding-bottom: 16px; }
.doc-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); min-width: 0; }
.doc-row:last-of-type { border-bottom: 0; }
.doc-row .grow { min-width: 0; }
.doc-row .grow b { display: block; font-size: var(--fs-sm); }
.doc-row .grow small { display: block; color: var(--muted); font-size: var(--fs-xs); margin-top: 1px; }
.doc-row .req-dot.is-ok { background: var(--ok-50); color: var(--ok); }
.doc-row .chip { flex: none; }
.doc-form { flex: none; margin: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.doc-form .file-btn { min-height: 44px; }
.doc-form .error-text { max-width: 160px; text-align: right; }
.doc-state { flex: none; font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.file-btn.is-loading { opacity: .55; pointer-events: none; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.thumbs:empty { display: none; }
.thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
details.priv summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
details.priv[open] summary { margin-bottom: 12px; }
.aviso-priv { color: var(--ink-2); }
.aviso-priv p { margin: 0 0 8px; }
.aviso-priv ul { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 6px; }

/* Selector con radios dentro de .segmented */
.segmented label { position: relative; display: flex; }
.segmented label input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented label span { flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 6px; border-radius: 10px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--muted); line-height: 1.15; }
.segmented label input:checked + span { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
.segmented label input:focus-visible + span { box-shadow: var(--ring); }

/* Portafolio */
.porta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 620px) { .porta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.porta-item { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.porta-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: var(--bg-soft); }
.porta-item figcaption { padding: 8px 10px 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.porta-item figcaption form { margin: 0; align-self: stretch; }
.porta-item figcaption .btn { width: 100%; }
.porta-desc { font-size: var(--fs-xs); color: var(--ink-2); overflow-wrap: anywhere; }

/* Alertas */
.cat-checks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 560px) { .cat-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cat-check { position: relative; display: block; cursor: pointer; }
.cat-check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cat-check span { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: var(--r-md);
  font-size: var(--fs-sm); font-weight: 500; background: #fff; transition: border-color .15s, background .15s; }
.cat-check input:checked + span { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); }
.cat-check input:focus-visible + span { box-shadow: var(--ring); }
.notif-pref .switch-row { min-height: 44px; }
/* 13-nov-2026: ícono y texto en el mismo renglón ("En la app: siempre", "En el celular") */
.notif-pref .switch-row > span:first-child, .notif-pref .pref-app { display: inline-flex; align-items: center; gap: 8px; }
.notif-pref .pref-app { margin: 0; }

/* Perfil público: subcalificaciones */
.sub-cal { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; margin-top: 8px; display: grid; gap: 10px; }
.sub-cal-item { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.sub-bar { height: 8px; border-radius: 8px; background: var(--line-2); overflow: hidden; }
.sub-bar i { display: block; height: 100%; background: #F5A623; border-radius: 8px; }

/* Problemas / disputas */
.caso-v { padding: 4px 0 14px; border-bottom: 1px solid var(--line-2); }
.caso-v + .caso-v { padding-top: 14px; }
.caso-v:last-child { border-bottom: 0; padding-bottom: 0; }
.caso-v p { white-space: pre-line; overflow-wrap: anywhere; color: var(--ink-2); margin: 8px 0 0; }


/* cuenta-v3-marker ===============================================================
   Alertas por categoría con interruptor, perfil público estilo Airtasker
   y página de reseñas (/usuario/{id}/resenas). 3-nov-2026.
   ========================================================================== */

/* Alertas: cada categoría es un renglón con interruptor */
.cat-card-head { flex-wrap: wrap; }
.cat-card .alert[hidden] { display: none; }
.cat-rows { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 4px; }
@media (min-width: 720px) { .cat-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; } }
.cat-row { gap: 12px; min-height: 56px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.cat-row .grow { font-size: var(--fs-sm); font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; }
.cat-row .grow small { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--subtle); margin-top: 2px; }
.cat-row.is-on .grow small { color: var(--ok); }
.cat-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--bg-soft); color: var(--subtle); transition: background .15s, color .15s; }
.cat-ico .i { width: 19px; height: 19px; }
.cat-row.is-on .cat-ico { background: var(--brand-50); color: var(--brand); }
.cat-row:not(.is-on) .grow { color: var(--muted); }
.cat-all { border-bottom: 2px solid var(--line); margin-top: 6px; }
.cat-all .grow b { font-weight: 700; color: var(--ink); font-size: var(--fs-md); }
.cat-all .grow small { font-weight: 500; }
.cat-all.is-on .cat-ico { background: var(--brand); color: #fff; }
.cli-alertas .set-ico { width: 44px; height: 44px; border-radius: 12px; }
.cli-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cli-lista li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); }
.cli-lista .i { color: var(--brand); flex: none; margin-top: 2px; }

/* Perfil: en línea, selector de papel, tarjetas grandes */
.pub-online { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: var(--fs-sm); color: var(--muted); font-weight: 500; }
.pub-online i { width: 8px; height: 8px; border-radius: 50%; background: var(--subtle); flex: none; }
.pub-online.is-now { color: var(--ok); }
.pub-online.is-now i { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-50); }
.pub-como a { min-height: 44px; height: auto; }
.pub-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.pub-card { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 16px; min-width: 0; color: var(--ink); }
a.pub-card { transition: border-color .15s, box-shadow .15s; }
a.pub-card:hover { border-color: var(--brand); box-shadow: var(--shadow-1); }
.pub-card-num { display: flex; align-items: center; gap: 6px; font-size: clamp(30px, 8vw, 40px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.pub-card-num .pub-star { width: .8em; height: .8em; fill: #F5A623; stroke: none; }
.pub-card-lbl { font-size: var(--fs-sm); font-weight: 600; margin-top: 6px; }
.pub-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--muted); }
a.pub-card .pub-card-foot { color: var(--brand-700); font-weight: 600; }

/* Información verificada */
.pub-verif { list-style: none; margin: 0; padding: 0; }
.pub-verif li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); min-width: 0; }
.pub-verif li:last-child { border-bottom: 0; padding-bottom: 0; }
.pub-verif li:first-child { padding-top: 0; }
.pub-verif b { display: block; font-size: var(--fs-sm); }
.pub-verif small { display: block; font-size: var(--fs-xs); color: var(--muted); }
.pub-verif-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.pub-verif-ico .i { width: 19px; height: 19px; }
.pub-verif-ok { width: 26px; height: 26px; border-radius: 50%; background: var(--ok-50); color: var(--ok); display: grid; place-items: center; flex: none; }

/* Acerca de mí con "Leer más" */
.pub-about.is-clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.pub-more { margin: 8px 0 0 -12px; --h: 44px; color: var(--brand-700); }
/* Reportar sin sesión: es una liga a "entrar" y reportar.css solo se carga con sesión */
.pub-hero a.rep-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: var(--r-pill); color: var(--muted); font-size: var(--fs-xs); }
.pub-hero a.rep-btn .i { width: 14px; height: 14px; }
.pub-rate { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink); }
.pub-rate b { font-size: var(--fs-sm); }

/* "¿Quieres trabajar con…?" fija abajo */
.pub-cotiza { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; margin-top: 20px; display: flex; align-items: center; gap: 12px;
  background: rgb(255 255 255 / .96); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-3); padding: 12px 12px 12px 14px; }
body.x-app .pub-cotiza { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 10px); }
@media (min-width: 900px) { body.x-app .pub-cotiza { bottom: 16px; } }
.pub-cotiza p { margin: 0; font-size: var(--fs-sm); line-height: 1.3; min-width: 0; }
.pub-cotiza p b { display: block; overflow-wrap: anywhere; }
.pub-cotiza p span { color: var(--muted); font-size: var(--fs-xs); }
.pub-cotiza .btn { flex: none; --h: 48px; padding: 0 18px; }
@media (max-width: 479.98px) { .pub-cotiza .avatar { display: none; } .pub-cotiza .btn { padding: 0 16px; font-size: var(--fs-sm); } }
@media (max-width: 359.98px) { .pub-cotiza p span { display: none; } }

/* Reseñas (perfil y página) */
.rs-list { display: flex; flex-direction: column; }
.rs-item { padding: 16px 0; border-bottom: 1px solid var(--line-2); min-width: 0; }
.rs-item:first-child { padding-top: 8px; }
.rs-item:last-of-type { border-bottom: 0; }
.rs-top { display: flex; align-items: center; gap: 10px; }
.rs-top .avatar { width: 40px; height: 40px; font-size: 14px; }
.rs-name { display: block; font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }
.rs-meta span + span::before { content: "·"; margin-right: 8px; color: var(--subtle); }
.rs-bubble { margin: 10px 0 0; background: var(--bg-soft); border-radius: 4px var(--r-md) var(--r-md) var(--r-md); padding: 12px 14px; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; font-size: var(--fs-sm); }
.rs-sub { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rs-sub li { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); }
.rs-sub li b { color: var(--ink); }
.rs-sub .i { width: 12px; height: 12px; fill: #F5A623; stroke: none; }
.rs-task { margin: 10px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--subtle); overflow-wrap: anywhere; }
.rs-mas { padding-top: 16px; }

.rs-page { max-width: 720px; }
.rs-head { position: sticky; top: var(--topbar-h); z-index: 25; display: flex; align-items: center; gap: 10px; padding: 8px 0; margin-top: -12px;
  background: rgb(245 245 247 / .92); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
body.x-public .rs-head { background: rgb(255 255 255 / .92); }
.rs-head h1 { font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.15; }
.rs-head .grow span { display: block; font-size: var(--fs-xs); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-head-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--ink); }
.rs-head-btn:hover { background: rgb(11 11 15 / .05); }
.rs-head-btn:first-child { margin-left: -12px; }
.rs-head-btn:last-child { margin-right: -12px; }
.rs-resumen { display: grid; gap: 18px; }
@media (min-width: 640px) { .rs-resumen { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); align-items: center; } .rs-subcal { grid-column: 1 / -1; } }
.rs-big { display: flex; align-items: center; gap: 14px; }
.rs-big > b { font-size: 56px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.rs-big > div { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-sm); color: var(--muted); }
.rs-big .stars-row .i { width: 20px; height: 20px; }
.rs-dist { display: grid; gap: 2px; }
.rs-dist-row { display: grid; grid-template-columns: 2.6em minmax(0, 1fr) 2.4em; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px; margin: 0 -8px; border-radius: 8px; color: var(--ink-2); font-size: var(--fs-sm); }
.rs-dist-row:hover { background: var(--bg-soft); }
.rs-dist-row.is-active { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.rs-dist-k { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; }
.rs-dist-k .i { width: 13px; height: 13px; fill: #F5A623; stroke: none; }
.rs-dist-n { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.rs-subcal { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.rs-filtros { display: grid; gap: 12px; }
.rs-filtros .segmented a { height: auto; min-height: 44px; text-align: center; line-height: 1.15; padding: 4px 6px; font-size: var(--fs-xs); }
@media (min-width: 480px) { .rs-filtros .segmented a { font-size: var(--fs-sm); } }
.rs-stars-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-stars-filter .filter { height: 44px; padding: 0 14px; gap: 4px; }
.rs-stars-filter .filter .i { width: 14px; height: 14px; fill: #F5A623; stroke: none; }
.rs-fn { font-weight: 500; color: var(--muted); margin-left: 2px; }
.rs-stars-filter .filter.is-active .rs-fn { color: rgb(255 255 255 / .7); }
.rs-card { padding-top: 12px; padding-bottom: 12px; }

/* ---------- Parte C: celular por WhatsApp (/telefono) y Etapa 2 (/cuenta/verificacion) ---------- */
.otp-paso { display: inline-flex; margin: 18px 0 6px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--brand-50); color: var(--brand-700); font-size: var(--fs-xs); font-weight: 600; }
.otp-tel { display: flex; align-items: stretch; gap: 8px; }
.otp-lada { display: grid; place-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-soft); font-weight: 700; color: var(--ink-2); flex: none; }
.otp-tel .input { flex: 1; min-width: 0; font-size: var(--fs-lg); letter-spacing: .04em; }
.otp-fs { border: 0; margin: 0; padding: 0; min-width: 0; }
.otp-fs legend { margin-bottom: 10px; padding: 0; }
.otp-cajas { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; max-width: 360px; }
.otp-caja { width: 100%; height: 58px; padding: 0; text-align: center; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums;
  border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fff; color: var(--ink); caret-color: var(--brand); -webkit-appearance: none; appearance: none; }
.otp-caja:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.otp-caja.is-filled { border-color: var(--ink-2); }
[data-otp-form].is-sending .otp-caja { opacity: .6; }
.otp-pegar { align-self: flex-start; }
.otp-prueba { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 14px 16px; border: 1.5px dashed var(--warn); border-radius: var(--r-md); background: var(--warn-50); color: #8A4B05; font-size: var(--fs-sm); }
.otp-prueba-cod { font-size: 24px; letter-spacing: .18em; color: var(--ink); font-variant-numeric: tabular-nums; }
.otp-prueba-nota { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--muted); }
.e2-card { border-color: var(--brand-100); }
.e2-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.e2-head h2 { font-size: var(--fs-h3); letter-spacing: -0.02em; margin: 0; }
.e2-pasos { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: var(--fs-sm); color: var(--ink-2); }
.e2-cargo { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; border-radius: var(--r-md); background: var(--bg-soft); font-size: var(--fs-sm); }
.e2-cargo b.e2-monto { display: block; font-size: var(--fs-lg); color: var(--ink); }

/* ---------- Mensajes: sencillez 2 (nov-2026) ---------- */
.msj-h1 { font-size: clamp(32px, 6vw, 46px); margin: 0 0 8px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.msj-n { font-family: var(--font); font-size: var(--fs-sm); font-weight: 700; color: #fff; background: var(--brand); border-radius: var(--r-pill); padding: 3px 10px; }
.msj-aviso { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; font-size: var(--fs-sm); color: var(--muted); }
.msj-aviso .link { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.msj-lista .conv { min-height: 88px; padding: 14px 16px; gap: 14px; }
.msj-lista .conv-name { font-size: var(--fs-lg); }
.msj-lista .conv-time { font-size: var(--fs-sm); }
.msj-lista .conv-task { font-size: var(--fs-sm); margin-top: 2px; }
.msj-lista .conv-last { font-size: var(--fs-md); margin-top: 2px; }
.msj-lista .unread-dot { width: 14px; height: 14px; }
/* 16-nov-2026 (Marco, punto 29): bandeja única. Etiqueta de dónde viene el chat y filtro Todos · Trabajos · Ferretería · Renta */
.msj-filtro { margin: 0 0 12px; }
.msj-filtro a { min-width: 0; padding: 0 4px; white-space: nowrap; }
.msj-filtro-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
@media (max-width: 379.98px) { .msj-filtro a { font-size: 13px; } }
.msj-lista .conv[hidden] { display: none; }
.msj-tag { display: inline-block; font-size: 11px; font-weight: 700; line-height: 18px; border-radius: var(--r-pill); padding: 0 7px; margin-right: 6px; vertical-align: 1px; }
.msj-tag-trabajo { background: var(--brand-50); color: var(--brand-700); }
.msj-tag-ferre { background: var(--oro-50); color: var(--oro-700); }
.msj-tag-renta { background: #E6EEF7; color: #1F4E79; }
/* Conversación */
.chat-head .who { font-size: var(--fs-lg); }
.chat-rol { display: block; font-size: var(--fs-sm); color: var(--muted); }
.chat-head .back { min-height: 48px; min-width: 48px; }
.chat-aviso { margin: 8px 0 0; font-size: var(--fs-sm); color: var(--muted); }
.chat-aviso > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; }
.chat-aviso > summary::-webkit-details-marker { display: none; }
.chat-aviso > summary span { flex: 0 1 auto; min-width: 0; }
.chat-aviso > summary b { color: var(--brand-700); white-space: nowrap; }
.chat-aviso[open] > summary b { display: none; }
.chat-aviso p { margin: 0 0 4px; padding: 10px 14px; border-radius: var(--r-md); background: var(--brand-50); color: var(--brand-700); }
.chat-aviso .link { color: var(--brand-700); text-decoration: underline; }
.chat .bubble { font-size: var(--fs-md); line-height: 1.45; padding: 12px 16px; max-width: 84%; }
.chat .bubble time { font-size: 12.5px; }
.chat-day { font-size: var(--fs-sm); }
.chat-wrap .quick { gap: 10px; padding-top: 10px; }
.chat-wrap .quick-b { min-height: 48px; padding: 0 18px; font-size: var(--fs-md); box-shadow: var(--relieve-2); }
.composer { gap: 10px; padding: 12px 0 14px; }
.composer .textarea { min-height: 56px; height: 56px; padding: 15px 18px; border-radius: 28px; font-size: var(--fs-md); }
.composer .composer-foto { --h: 56px; }
.composer-enviar { --h: 56px; flex: none; padding: 0 20px; font-size: var(--fs-md); }
.composer-count { right: 120px; }
@media (max-width: 380px) { .composer-enviar span { display: none; } .composer-enviar { width: 56px; padding: 0; } }
.chat-wrap .quick { flex-wrap: wrap; overflow: visible; }


/* ---------- Verificación: sencillez 2 (nov-2026) ---------- */
.e2-mas { margin-top: 12px; }
.e2-mas .e2-cargo { margin-top: 10px; }
.priv-mas { margin: 0; }
.priv-mas > div, .priv-mas > ul, .priv-mas > p { font-size: var(--fs-sm); }
.e2-opc { padding: 16px; }
.e2-opc > summary .grow { min-width: 0; }
.e2-opc .form-card { box-shadow: none; }
.e2-opc .set-title:first-of-type { margin-top: 16px; }

/* Verificación con 4 documentos obligatorios (6-nov-2026) y /mis-datos (derechos ARCO) */
.e2-cuatro { list-style: none; margin: 16px 0 0; padding: 0; counter-reset: c4; }
.e2-cuatro li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); min-width: 0; counter-increment: c4; }
.e2-cuatro li:last-child { border-bottom: 0; }
.e2-cuatro li > a { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; min-height: 44px; color: inherit; text-decoration: none; }
.e2-cuatro .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--bg-soft); color: var(--ink-2); font-weight: 700; font-size: var(--fs-sm); }
.e2-cuatro .n::before { content: counter(c4); }
.e2-cuatro li.is-ok .n { background: var(--ok-50); color: var(--ok); }
.e2-cuatro .grow { min-width: 0; font-weight: 600; }
.e2-cuatro .chip { flex: none; }
.e2-avance { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: var(--fs-sm); color: var(--ink-2); }
.e2-avance i { flex: 1; height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; display: block; }
.e2-avance i b { display: block; height: 100%; background: var(--brand); border-radius: 8px; }
.e2-avance + .e2-tel { margin-top: 16px; } /* el avance va arriba de las filas */
.arco-op { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0 0 8px; align-items: center; }
.arco-op:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.consent-box { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
/* Permiso aparte para los documentos (10-nov-2026) */
.e2-permiso { display: grid; gap: 12px; margin: 16px 0; padding: 16px; border-radius: 16px; background: var(--brand-50); scroll-margin-top: 90px; }
.e2-permiso-t { display: flex; align-items: center; gap: 8px; font-size: var(--fs-md); color: var(--ink); }
.e2-permiso .consent-box { background: #fff; margin: 0; }

/* Marco (8-nov-2026): insignia del celular dentro de "Tu verificación" */
.e2-tel { display: flex; align-items: center; gap: 12px; padding: 10px 0 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line-2); min-width: 0; }
.e2-tel .grow { min-width: 0; display: flex; flex-direction: column; }
.e2-tel .grow small { color: var(--muted); font-size: var(--fs-sm); }
.e2-tel .chip { flex: none; }
/* Marco (8-nov-2026): botones y chips de las filas, todos del mismo ancho para que se vean parejos */
.e2-tel > .btn, .e2-tel > .chip { flex: none; width: 116px; justify-content: center; padding-left: 8px; padding-right: 8px; gap: 5px; font-size: 13px; }
.e2-tel > .btn { --h: 38px; min-height: 38px; box-shadow: none; } /* Marco (8-nov-2026): "Sube" más chicos */
.e2-tel > .chip { min-height: 30px; }
.e2-tel + .e2-cuatro { margin-top: 0; }
.e2-tel .req-dot { width: 28px; height: 28px; }
.e2-tel .req-dot.is-ok { background: var(--ok-50); color: var(--ok); }
.e2-tel + .e2-tel { margin-top: -12px; }
.e2-foto .avatar { flex: none; }
/* Marco (8-nov-2026): la etiqueta "Por completar" separada de la barra de pasos */
.e2-head { align-items: center; }
.e2-card .e2-head + .pasos-linea, .e2-card .pasos-linea { margin-top: 20px; }
.e2-card .e2-head + .e2-avance { margin-top: 20px; } /* Marco (8-nov-2026): la barra de pasos ya va abajo del título de la página */

/* Marco (8-nov-2026): cuadro para recortar la foto de perfil (mover y acercar) */
.recorte { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgb(20 24 22 / .72); }
.recorte[hidden] { display: none; }
.recorte-caja { width: 100%; max-width: 420px; background: var(--surface, #fff); border-radius: var(--r-lg, 20px); padding: 20px 16px 16px; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.recorte-caja h2 { margin: 0; font-size: 20px; }
.recorte-vista { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 14px; background: #111; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.recorte-vista img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.recorte-circulo { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgb(0 0 0 / .45); outline: 2px solid rgb(255 255 255 / .9); outline-offset: -2px; pointer-events: none; }
.recorte-zoom { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--muted); }
.recorte-zoom input { flex: 1; accent-color: var(--brand); min-height: 44px; }
.recorte-btns { display: flex; gap: 8px; } .recorte-btns .btn { flex: 1; }
html.sin-scroll, html.sin-scroll body { overflow: hidden; }

/* Marco (8-nov-2026): pantalla guiada de la INE (/cuenta/ine) */
.ine-pasos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ine-paso { display: flex; flex-direction: column; gap: 12px; }
.ine-paso.is-actual { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-50, #e6f2ec); }
.ine-paso-top { display: flex; align-items: center; gap: 12px; }
.ine-paso-top .grow { display: flex; flex-direction: column; min-width: 0; }
.ine-paso-top small { font-size: var(--fs-sm); } .ok-txt { color: var(--ok); }
.ine-num { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--line); color: var(--ink-2); }
.ine-paso.is-actual .ine-num { background: var(--brand); color: #fff; } .ine-paso.is-hecho .ine-num { background: var(--ok-50); color: var(--ok); }
.ine-marco { display: grid; place-items: center; height: 150px; border-radius: 14px; background: var(--bg-soft, #f5f1e8); border: 2px dashed var(--line); }
.ine-tarjeta { position: relative; width: 190px; aspect-ratio: 85.6 / 54; border-radius: 10px; background: #fff; border: 2px solid var(--brand); display: flex; align-items: center; gap: 10px; padding: 10px; box-sizing: border-box; }
.ine-foto { width: 46px; height: 58px; border-radius: 6px; background: var(--brand-50, #e6f2ec); display: grid; place-items: center; color: var(--brand); flex: none; }
.ine-lineas { flex: 1; display: flex; flex-direction: column; gap: 7px; } .ine-lineas i { display: block; height: 6px; border-radius: 3px; background: var(--line); }
.ine-lineas i:nth-child(2) { width: 80%; } .ine-lineas i:nth-child(3) { width: 60%; }
.ine-atras { flex-direction: column; align-items: stretch; justify-content: space-between; }
.ine-barras { height: 26px; background: repeating-linear-gradient(90deg, #333 0 2px, transparent 2px 4px, #333 4px 5px, transparent 5px 8px); border-radius: 3px; }
.ine-marco-selfie { position: relative; }
.ine-cara { width: 74px; height: 96px; border-radius: 50%; border: 2px solid var(--brand); display: grid; place-items: center; color: var(--brand); background: #fff; }
.ine-mini { position: absolute; left: calc(50% + 30px); bottom: 22px; width: 46px; height: 30px; border-radius: 5px; border: 2px solid var(--brand); background: #fff; display: grid; place-items: center; color: var(--brand); }
.ine-form { display: flex; flex-direction: column; gap: 6px; }
.consent-box.is-falta { border-color: var(--err); box-shadow: 0 0 0 2px rgb(220 38 38 / .15); }

/* Cámara en vivo con marco (solo https) */
.cam { position: fixed; inset: 0; z-index: 220; background: #000; }
.cam[hidden] { display: none; }
.cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam video.es-espejo { transform: scaleX(-1); }
.cam-capa { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.cam-marco { width: 86vw; max-width: 460px; aspect-ratio: 85.6 / 54; border-radius: 16px; border: 3px solid #fff; box-shadow: 0 0 0 9999px rgb(0 0 0 / .55); }
.cam-selfie .cam-marco { width: 64vw; max-width: 300px; aspect-ratio: 3 / 4; border-radius: 50%; }
.cam-arriba { position: absolute; top: 0; left: 0; right: 0; padding: calc(env(safe-area-inset-top) + 18px) 16px 12px; color: #fff; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.cam-arriba b { font-size: 20px; } .cam-arriba span { font-size: var(--fs-sm); opacity: .9; }
.cam-abajo { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 16px calc(env(safe-area-inset-bottom) + 24px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.cam-no { color: #fff; justify-self: start; }
.cam-disparo { width: 74px; height: 74px; border-radius: 50%; background: #fff; border: 5px solid rgb(255 255 255 / .45); background-clip: padding-box; cursor: pointer; }
.cam-disparo:active { transform: scale(.94); }
/* Marco (8-nov-2026): "Sube" de domicilio y carta suben desde la fila; la casilla del permiso arriba de las filas */
.e2-sube { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin: 0; }
.e2-sube .btn { width: 116px; --h: 38px; min-height: 38px; justify-content: center; padding: 0 8px; gap: 5px; font-size: 13px; box-shadow: none; }
.e2-sube .error-text { max-width: 140px; text-align: right; font-size: 12px; }
.e2-acepto { margin: 4px 0 14px; }
/* Marco (8-nov-2026): casilla del consentimiento y "Manda a revisar" al final de "Tu verificación" */
.e2-enviar { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.e2-enviar .consent-box { margin: 0; }

/* Ayuda: notas de abajo cortas y chicas (Marco, 9-nov-2026: "más espacio en el chat") */
.ayuda-notas { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.ayuda-notas .link { font-size: inherit; display: inline-flex; align-items: center; min-height: 44px; }
/* Ayuda sencilla (Marco, 13-nov-2026): un encabezado, cuadro grande, "📎 Foto o archivo" y "Envía" a lo ancho en el celular */
.ayuda-head { margin: 4px 0 12px; }
.ayuda-head h1 { font-size: var(--fs-h3); margin: 0; }
.ayuda-sub { margin: 2px 0 0; font-size: var(--fs-md); color: var(--muted); }
.ayuda-chat { padding: 4px 0 12px; }
.ayuda-form { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: var(--r-lg, 20px); }
.ayuda-form .ayuda-nombre { margin: 0; }
.ayuda-txt { font-size: max(16px, var(--fs-md)); line-height: 1.45; padding: 12px 14px; min-height: calc(4 * 1.45em + 26px); max-height: calc(8 * 1.45em + 26px); resize: none; overflow-y: hidden; border-radius: var(--r-md, 14px); }
.ayuda-acciones { display: flex; flex-direction: column; gap: 10px; }
.ayuda-acciones .btn { --h: 56px; min-height: 56px; width: 100%; justify-content: center; font-size: var(--fs-md); gap: 8px; }
.ayuda-clip { display: none; cursor: pointer; }
.ayuda-form.js .ayuda-clip { display: inline-flex; }
.ayuda-form.js .ayuda-file { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; }
.ayuda-clip:has(+ .ayuda-file:focus-visible) { box-shadow: var(--ring); border-color: var(--brand); } /* con teclado */
.ayuda-file { font-size: var(--fs-sm); max-width: 100%; }
.ayuda-file-t { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2, #555); margin-bottom: -4px; }
.ayuda-form.js .ayuda-file-t { display: none; }
.ayuda-enviar.is-loading { opacity: .65; }
@media (min-width: 640px) {
  .ayuda-acciones { flex-direction: row; justify-content: space-between; align-items: center; }
  .ayuda-acciones .btn { width: auto; padding: 0 22px; }
  .ayuda-enviar { min-width: 180px; }
}
/* Vista previa antes de enviar (con "×" para quitar) */
.ayuda-prev { display: flex; flex-wrap: wrap; gap: 10px; }
.ayuda-prev[hidden] { display: none; }
.ayuda-prev-it { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--bg-soft, #f4efe6); border: 1px solid var(--line); }
.ayuda-prev-it img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ayuda-prev-it.is-pdf { width: auto; min-width: 140px; max-width: 220px; display: flex; align-items: center; padding: 0 48px 0 12px; }
.ayuda-prev-n { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ayuda-quitar { position: absolute; top: 0; right: 0; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0; font-size: 0; }
.ayuda-quitar::before { content: "×"; position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; background: rgb(11 11 15 / .72); color: #fff; font-size: 20px; line-height: 26px; text-align: center; }
/* Fotos y PDF dentro de las burbujas */
.ayuda-adjs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; white-space: normal; }
.ayuda-mini { display: block; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: rgb(0 0 0 / .06); }
.ayuda-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ayuda-pdf { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 12px; background: rgb(255 255 255 / .7); color: var(--brand-700); font-weight: 600; font-size: 15px; max-width: 100%; }
.ayuda-pdf span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Edita tu tarea (9-nov-2026) */
.edit-tarea .input-icon { position: relative; }
.edit-tarea .input-pre { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); pointer-events: none; }
.edit-tarea .edit-cuando label span { font-size: var(--fs-sm); }
.edit-tarea fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
/* 6: fotos en las reseñas del perfil */
.rf-fotos { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 0; }
.rf-fotos img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); display: block; }

/* Reglas G5 (15-nov-2026): los 3 pasos de un problema (mediación con plazos) */
.med-pasos { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 6px; }
.med-pasos li { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; color: var(--muted); }
.med-pasos li b { color: var(--ink-2); font-size: var(--fs-sm); }
.med-pasos li span { font-size: var(--fs-xs); }
.med-pasos li.on { border-color: var(--brand); background: var(--brand-50); }
.med-pasos li.on b { color: var(--brand-700); }
.med-pasos li.ok b::after { content: " ✓"; color: var(--brand-700); }
@media (min-width: 560px) { .med-pasos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
