/* ============================================================
   TRABAJOK — sistema de diseño del sitio nuevo (dic 2026)
   Sale de la maqueta aprobada (/maqueta/): blanco y negro de alto contraste,
   botones negros, amarillo SOLO en la marca. Sin degradés, sin emojis, sin sombras de adorno.
   Una sola acción principal por pantalla. Celular primero; en escritorio, la misma app más ancha.
   ============================================================ */
:root, [data-theme="light"] {
  --bg: #FFFFFF; --surface: #F3F3F3; --surface-2: #E9E9E9; --line: #E4E4E4;
  --text: #000000; --text-2: #545454; --text-3: #6B6B6B;   /* 6B6B6B: 5,3:1 sobre blanco (antes 8A8A8A no llegaba a AA) */
  --primary: #000000; --on-primary: #FFFFFF;
  --brand: #F2B807;
  --positive: #0B8043; --positive-bg: #E6F4EC; --warn: #A65D00; --warn-bg: #FFF4E0; --danger: #D61F0B; --danger-bg: #FDECEA;
  --overlay: rgba(0,0,0,.42);
  --sheet-shadow: 0 -8px 30px rgba(0,0,0,.10);
  --pop-shadow: 0 8px 30px rgba(0,0,0,.14);
  --ease: cubic-bezier(.2,.8,.2,1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tabbar-h: calc(71px + var(--safe-b));   /* 3/12/2026: la barra mide ~70,6 px reales (antes 64: tapaba el final) */
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #000000; --surface: #161616; --surface-2: #232323; --line: #262626;
  --text: #FFFFFF; --text-2: #B3B3B3; --text-3: #7A7A7A;
  --primary: #FFFFFF; --on-primary: #000000;
  --brand: #F6C21C;
  --positive: #3DBA75; --positive-bg: #0F2A1B; --warn: #F0A13A; --warn-bg: #2A1E0C; --danger: #FF5A4A; --danger-bg: #2E1210;
  --overlay: rgba(0,0,0,.65);
  --sheet-shadow: 0 -8px 30px rgba(0,0,0,.6);
  --pop-shadow: 0 8px 30px rgba(0,0,0,.6);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-stretch: 100%;
  background: var(--bg); color: var(--text); font-size: 15.5px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; min-height: 100vh; min-height: 100dvh;
}
/* 6/12/2026 (dueño: «cuando se separa en 2 filas no queda bien»): que no quede una palabra sola en el último renglón (en
   celulares de 360 pasaba con «servicio», «Cuarto»…) y títulos con renglones parejos. .nw = ese pedazo no se corta. */
body { text-wrap: pretty; }
h1, h2, h3, .h1, .h2, .h3, .sub, .gd, .d, .k, .note > span { text-wrap: balance; }   /* (bajadas cortas: 2 renglones parejos) */
.nw { white-space: nowrap; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; }
input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
svg.i.sm { width: 18px; height: 18px; }
svg.i.xs { width: 14px; height: 14px; stroke-width: 2.4; }
svg.fill { fill: currentColor; stroke: none; }

/* ---------- tipografía ---------- */
.h1 { font-size: 30px; line-height: 1.08; font-weight: 800; letter-spacing: -.02em; font-stretch: 105%; }
.h2 { font-size: 22px; line-height: 1.15; font-weight: 750; letter-spacing: -.015em; }
.h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.t2 { color: var(--text-2); }
.t3 { color: var(--text-3); }
.small { font-size: 13px; }
.label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.money { font-variant-numeric: tabular-nums; }
.center { text-align: center; }

/* ---------- marca ---------- */
.wm { display: inline-flex; align-items: center; font-weight: 850; font-stretch: 125%; letter-spacing: .01em; font-size: 17px; line-height: 1; color: var(--text); }
.wm .ok { display: inline-flex; align-items: center; color: var(--brand); }
.wm .ok svg { width: 1.02em; height: 1.02em; margin: 0 .02em 0 .04em; }
.mark { width: 28px; height: 28px; border-radius: 8px; background: #141B2E; display: grid; place-items: center; flex-shrink: 0; color: #F6C21C; }
.mark svg { width: 20px; height: 20px; }

/* ---------- estructura de página ---------- */
.app { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.app.con-tabbar { padding-bottom: var(--tabbar-h); }
.pad { padding: 0 20px; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 10px; }
.top-nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--bg); min-height: 60px; }
.top-nav .tt { font-weight: 700; font-size: 17px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-nav.line { border-bottom: 1px solid var(--line); }
.iconbtn { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; flex-shrink: 0; transition: background .15s; }
.iconbtn:hover, .iconbtn:active { background: var(--surface); }
.avatar { width: 40px; height: 40px; border-radius: 999px; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; font-size: 15px; overflow: hidden; flex-shrink: 0; color: var(--text); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.xl { width: 88px; height: 88px; font-size: 28px; }
.avatar.lg { width: 52px; height: 52px; font-size: 18px; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.av-a { background: #E4DCCF; color: #4A3B22; }
.av-b { background: #D5E1E6; color: #20404D; }
.av-c { background: #E3DDE8; color: #3E2F4D; }
[data-theme="dark"] .av-a { background: #3A3226; color: #E9DCC4; }
[data-theme="dark"] .av-b { background: #22343C; color: #CFE3EC; }
[data-theme="dark"] .av-c { background: #2F2638; color: #E3D6EE; }

/* ---------- botones y controles ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  height: 54px; border-radius: 10px; font-weight: 650; font-size: 16px; text-align: center; padding: 0 18px;
  background: var(--primary); color: var(--on-primary); transition: transform .12s, opacity .12s;
}
.btn:active { transform: scale(.985); opacity: .9; }
.btn:disabled, .btn.cargando { opacity: .45; pointer-events: none; }
.btn.sec { background: var(--surface); color: var(--text); }
.btn.out { background: var(--bg); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.sm { height: 40px; width: auto; padding: 0 16px; font-size: 14px; border-radius: 8px; }
.btn.md { height: 46px; }
.btn.pos { background: var(--positive); color: #fff; }
.btn.auto { width: auto; }
.link { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); font-size: 14px; font-weight: 550; white-space: nowrap; flex-shrink: 0; transition: background .15s;
}
.chip:hover { background: var(--surface-2); }
.chip.on { background: var(--primary); color: var(--on-primary); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chips::-webkit-scrollbar { display: none; }
.chips.pad { padding: 0 20px; scroll-padding: 0 20px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 650; padding: 3px 8px; border-radius: 6px; background: var(--surface); white-space: nowrap; }
.badge.pos { background: var(--positive-bg); color: var(--positive); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
/* Profesional Fundador (2/12/2026, includes/fundadores.php): insignia chica (listas, sugeridos) y medalla (perfil, /fundadores) */
.fund-chip { display: inline-flex; align-items: center; font-size: 11px; font-weight: 750; line-height: 1.35; padding: 2px 8px; border-radius: 99px; background: #FFF3C4; color: #6B4E00; white-space: nowrap; vertical-align: middle; }
[data-theme="dark"] .fund-chip { background: #2B2408; color: var(--brand); }
[data-theme="light"] .fund-chip { background: #FFF3C4; color: #6B4E00; }   /* también dentro de una tarjeta clara en una página oscura (/fundadores) */
/* 4/12/2026: chip con la ✓ adelante; medalla y aviso con la ✓ amarilla SOLA, como la línea del perfil (antes, ✓ negra dentro de
   un círculo amarillo: "un círculo dentro de otro", dueño) y sin degradados */
.fund-chip { gap: 3px; }
.fund-chip .i { width: 14px; height: 14px; flex-shrink: 0; color: inherit; }
.fund-medalla { display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 16px; border-radius: 16px; background: #111; color: #FFF; box-shadow: inset 0 0 0 1px rgba(242, 184, 7, .4); text-align: left; }
.fund-medalla .sello { display: grid; place-items: center; flex-shrink: 0; color: var(--brand, #F2B807); }
.fund-medalla .sello .i { width: 40px; height: 40px; }
.fund-medalla .k { font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: #F6C21C; }
.fund-medalla .n { font-size: 30px; font-weight: 800; letter-spacing: -.01em; margin-top: 1px; line-height: 1.1; }
.fund-medalla .c { font-size: 13px; color: #B3B3B3; margin-top: 2px; }
.fund-medalla > div { min-width: 0; }
.fund-aviso { display: flex; gap: 12px; align-items: center; margin: 14px 20px 0; padding: 12px 14px; border-radius: 14px; color: #FFF;
  background: #111; box-shadow: inset 0 0 0 1px rgba(242, 184, 7, .4); }
.fund-aviso .sello { display: grid; place-items: center; flex-shrink: 0; color: var(--brand, #F2B807); }
.fund-aviso .sello .i { width: 28px; height: 28px; }
.fund-aviso .t { font-weight: 700; }
.fund-aviso .d { font-size: 13px; color: #B3B3B3; margin-top: 2px; line-height: 1.4; }
.fund-aviso > .i { color: #B3B3B3; }
/* 4/12/2026: la del perfil, en una sola línea (tk_fund_linea) */
.fund-linea { display: inline-flex; align-items: center; gap: 8px; height: 40px; max-width: 100%; padding: 0 15px 0 10px; border-radius: 99px; background: #111; color: #FFF; font-size: 14px; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(242, 184, 7, .35); }
/* (dueño: "el check dentro del círculo amarillo queda como un círculo dentro de otro"): la marca ✓ de TRABAJ✓K sola, en amarillo */
.fund-linea .sello { display: grid; place-items: center; flex-shrink: 0; color: var(--brand, #F2B807); }
.fund-linea .sello .i { width: 22px; height: 22px; }
.fund-linea .k { font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.fund-linea .n { font-weight: 800; color: #F6C21C; }
.fund-linea[data-fund-info] { cursor: pointer; -webkit-tap-highlight-color: transparent; }   /* al tocarla explica qué es (tk.js) */
.fund-linea:focus-visible { outline: 2px solid var(--brand, #F2B807); outline-offset: 2px; }
@media (max-width: 380px) {   /* "Primeros profesionales en Río Cuarto" en una línea también en 360 px */
  .fund-medalla { gap: 12px; padding: 12px 14px; }
  .fund-medalla .sello .i { width: 34px; height: 34px; }
  .fund-medalla .c { font-size: 12px; }
}
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field > span { font-size: 13.5px; font-weight: 600; }
.in { min-height: 54px; border-radius: 10px; background: var(--surface); padding: 0 16px; display: flex; align-items: center; gap: 10px; font-size: 16px; border: 2px solid transparent; transition: border-color .15s, background .15s; }
.in:focus-within { background: var(--bg); border-color: var(--text); }
.in input, .in select, .in textarea { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; height: 50px; }
.in textarea { height: auto; min-height: 84px; padding: 14px 0; resize: vertical; line-height: 1.4; }
.in input::placeholder, .in textarea::placeholder { color: var(--text-3); }
.hint { font-size: 12.5px; color: var(--text-2); line-height: 1.4; }
/* campo "dónde": abre el buscador de direcciones (nuevo/lugar.js, TK.campoLugar) */
.campo-lugar { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface); border-radius: 12px; padding: 12px 14px; min-height: 66px; border: 2px solid transparent; color: var(--text); }
.campo-lugar:focus-visible { border-color: var(--text); outline: 0; }
.campo-lugar .grow { flex: 1; min-width: 0; }
.campo-lugar .a { font-weight: 650; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.campo-lugar .b { font-size: 13px; color: var(--text-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.campo-lugar.vacio .a { color: var(--text-2); font-weight: 550; }
.err-txt { font-size: 13px; color: var(--danger); font-weight: 600; }

/* ---------- inicio ---------- */
.ask {
  margin: 14px 20px 0; padding: 8px 8px 8px 16px; border-radius: 14px; background: var(--surface);
  display: flex; align-items: center; gap: 6px; min-height: 64px; border: 2px solid transparent; transition: border-color .15s, background .15s;
}
.ask:focus-within { background: var(--bg); border-color: var(--text); }
.ask textarea { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; font-weight: 500; resize: none; line-height: 1.35; padding: 10px 0; max-height: 140px; }
.ask textarea::placeholder { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask .acts { display: flex; gap: 2px; align-items: center; }
.ask .send-mini { width: 44px; height: 44px; border-radius: 999px; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; }
.where { display: flex; align-items: center; gap: 10px; margin: 10px 20px 0; padding: 12px 4px; border-bottom: 1px solid var(--line); width: calc(100% - 40px); text-align: left; }
.where b { font-weight: 650; }
.sec-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 30px 20px 12px; }
/* oficios como Uber: mosaico con ícono y nombre; cartelito verde "Ahora" si hay alguien disponible */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 10px; padding: 0 20px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; position: relative; color: var(--text); }
.tile-ic { width: 100%; aspect-ratio: 1 / .84; border-radius: 14px; background: var(--surface); display: grid; place-items: center; transition: background .15s; }
.tile:hover .tile-ic, .tile:active .tile-ic { background: var(--surface-2); }
.tile-ic svg.i { width: 34px; height: 34px; stroke-width: 1.6; }
.tile-n { font-size: 13px; font-weight: 600; line-height: 1.15; }
.tile-b { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); z-index: 1; background: var(--positive); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
@media (max-width: 380px) { .tiles { gap: 14px 8px; } .tile-n { font-size: 12px; font-stretch: 90%; letter-spacing: -.01em; } .tile-ic svg.i { width: 30px; height: 30px; } }
.trades { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 20px; }
@media (max-width: 359px) { .trades { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.trade { background: var(--surface); border-radius: 12px; padding: 14px 12px 12px; display: flex; flex-direction: column; gap: 18px; min-height: 108px; text-align: left; position: relative; border: 2px solid transparent; transition: border-color .15s, background .15s; }
.trade:hover { border-color: var(--line); }
.trade svg.tr { width: 34px; height: 34px; stroke-width: 1.7; }
.trade .n { font-weight: 700; font-size: 15px; }
@media (max-width: 400px) { .trade { padding: 13px 10px 11px; } .trade .n { font-size: 14.5px; font-stretch: 88%; letter-spacing: -.01em; } .trade .c { font-size: 12px; } }
@media (max-width: 340px) { .trade .n { font-stretch: 80%; } }
/* dedos grandes: en pantallas táctiles, nada que se toque mide menos de 44 px */
@media (pointer: coarse) { .chip { height: 44px; } .btn.sm { height: 44px; } }
.trade .c { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.dot-live { display: inline-block; width: 7px; height: 7px; border-radius: 99px; background: var(--positive); margin-right: 5px; vertical-align: 1px; }
.how { margin: 30px 20px 24px; border-radius: 14px; border: 1px solid var(--line); }
.how-row { display: flex; gap: 14px; padding: 15px 16px; align-items: flex-start; }
.how-row + .how-row { border-top: 1px solid var(--line); }
.how-n { width: 26px; height: 26px; border-radius: 99px; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.banner { margin: 16px 20px 0; border-radius: 14px; background: var(--surface); padding: 14px 16px; display: flex; gap: 12px; align-items: center; width: calc(100% - 40px); text-align: left; }
.banner .grow { flex: 1; min-width: 0; }
.banner .bt { font-weight: 700; font-size: 15px; }
.banner .bd { font-size: 13px; color: var(--text-2); margin-top: 2px; }

/* ---------- barra inferior (celular) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-width: 560px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line);
  background: var(--bg); padding: 6px 4px calc(8px + var(--safe-b));
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--text-2); padding: 6px 0; position: relative; text-align: center; }
.tab.on { color: var(--text); }
.tab .pip { position: absolute; top: 2px; left: 55%; min-width: 9px; height: 9px; border-radius: 99px; background: #E11900; box-shadow: 0 0 0 2px var(--bg); }

/* ---------- escritorio: barra superior ---------- */
.dk-top { display: none; }

/* ---------- asistente ---------- */
.thread { display: flex; flex-direction: column; gap: 14px; padding: 8px 20px 24px; }
/* 6/12/2026 (auditoría QA): al bajar solo hasta la respuesta, que el botón («Dejar el pedido») no quede tapado por la barra «Agregar algo más…» */
.thread > * { scroll-margin-bottom: 104px; }
.msg-me { align-self: flex-end; max-width: 82%; background: var(--surface); padding: 12px 14px; border-radius: 16px 16px 4px 16px; font-size: 15.5px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; animation: aparecer .25s var(--ease); }
.photo-att { align-self: flex-end; width: 132px; height: 96px; border-radius: 12px; overflow: hidden; background: var(--surface); }
.photo-att img { width: 100%; height: 100%; object-fit: cover; }
.audio-att { align-self: flex-end; display: inline-flex; gap: 8px; align-items: center; background: var(--surface); padding: 10px 14px; border-radius: 16px 16px 4px 16px; font-size: 14px; font-weight: 600; }
.bot { display: flex; gap: 10px; align-items: flex-start; animation: aparecer .3s var(--ease); }
.bot-text { font-size: 15.5px; line-height: 1.45; padding-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.typing { display: inline-flex; gap: 4px; padding: 10px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 99px; background: var(--text-3); animation: tecleo 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tecleo { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.estado-ia { font-size: 13.5px; color: var(--text-2); font-weight: 550; padding-top: 6px; }
.card { border-radius: 14px; border: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.card.fill { background: var(--surface); border-color: transparent; }
.card.pad16 { padding: 16px; }
.sum-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; }
.sum-row + .sum-row { border-top: 1px solid var(--line); }
.sum-row .k { font-size: 13px; color: var(--text-2); font-weight: 550; min-width: 72px; }
.sum-row .v { flex: 1; font-weight: 600; font-size: 15px; }
.sum-row .v input, .sum-row .v select { width: 100%; border: 0; outline: 0; background: transparent; font-weight: 600; font-size: 15px; }
.sum-row .ed { color: var(--text-2); }
.pro-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; transition: background .15s; }
.pro-row:hover { background: var(--surface); }
.pro-row + .pro-row { border-top: 1px solid var(--line); }
.pro-row .info { flex: 1; min-width: 0; }
.pro-row .nm { font-weight: 650; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.pro-row .meta { font-size: 13px; color: var(--text-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pro-row .price { text-align: right; font-size: 13px; color: var(--text-2); flex-shrink: 0; }
.pro-row .price b { display: block; color: var(--text); font-size: 15px; font-weight: 650; }
.verif { color: var(--positive); display: inline-flex; }
.star { color: var(--text); display: inline-flex; vertical-align: -2px; }
.composer { position: sticky; bottom: 0; z-index: 10; display: flex; align-items: flex-end; gap: 6px; padding: 10px 12px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--bg); }
.composer .field-c { flex: 1; min-height: 46px; border-radius: 23px; background: var(--surface); display: flex; align-items: center; padding: 0 16px; border: 2px solid transparent; }
.composer .field-c:focus-within { border-color: var(--text); background: var(--bg); }
.composer textarea { flex: 1; border: 0; outline: 0; background: transparent; font-size: 16px; resize: none; padding: 11px 0; max-height: 120px; line-height: 1.3; }
.composer textarea::placeholder { color: var(--text-3); }
.send { width: 46px; height: 46px; border-radius: 999px; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; flex-shrink: 0; }
.send.grabando { background: var(--danger); color: #fff; animation: latido 1.2s infinite; }
@keyframes latido { 50% { transform: scale(1.08); } }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--text); font-size: 13.5px; line-height: 1.4; }
.note svg { color: var(--warn); }
.note.err { background: var(--danger-bg); }
.note.err svg { color: var(--danger); }

/* ---------- espera de respuestas ---------- */
.radar { position: relative; height: 210px; background: var(--surface); overflow: hidden; display: grid; place-items: center; flex-shrink: 0; }
.radar .me-pin { width: 18px; height: 18px; border-radius: 99px; background: var(--primary); border: 4px solid var(--bg); box-shadow: 0 0 0 1px rgba(0,0,0,.2); position: relative; z-index: 2; }
.radar .pulse { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; border-radius: 99px; transform: translate(-50%,-50%); background: var(--primary); opacity: .18; animation: pulso 2.2s ease-out infinite; }
.radar .pulse.p2 { animation-delay: 1.1s; }
@keyframes pulso { from { width: 18px; height: 18px; opacity: .25; } to { width: 300px; height: 300px; opacity: 0; } }
.radar .back { position: absolute; top: 12px; left: 12px; width: 44px; height: 44px; border-radius: 99px; background: var(--bg); display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0,0,0,.15); z-index: 3; }
.radar .pp { position: absolute; z-index: 2; width: 36px; height: 36px; border-radius: 99px; border: 3px solid var(--bg); box-shadow: 0 2px 8px rgba(0,0,0,.25); overflow: hidden; background: var(--surface-2); display: grid; place-items: center; font-size: 11px; font-weight: 700; animation: aparecer .4s var(--ease); }
.radar .pp img { width: 100%; height: 100%; object-fit: cover; }
.sheet { flex: 1; margin-top: -18px; border-radius: 18px 18px 0 0; background: var(--bg); box-shadow: var(--sheet-shadow); position: relative; z-index: 3; display: flex; flex-direction: column; padding: 4px 20px 24px; }
.grab { width: 40px; height: 5px; border-radius: 99px; background: var(--surface-2); margin: 10px auto 10px; }
.progress { height: 4px; border-radius: 99px; background: var(--surface); overflow: hidden; margin: 14px 0 4px; }
.progress i { display: block; height: 100%; width: 35%; background: var(--primary); border-radius: 99px; animation: barra 1.6s ease-in-out infinite; }
@keyframes barra { 0% { transform: translateX(-100%); } 100% { transform: translateX(290%); } }
.offer { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; animation: aparecer .45s var(--ease); }
@keyframes aparecer { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.offer-head { display: flex; gap: 12px; align-items: center; cursor: pointer; }
.offer-msg { font-size: 14.5px; line-height: 1.4; background: var(--surface); border-radius: 10px; padding: 10px 12px; }
.offer-terms { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.term { background: var(--surface); border-radius: 10px; padding: 10px 12px; }
.term .k { font-size: 12px; color: var(--text-2); font-weight: 550; }
.term .v { font-weight: 700; font-size: 15px; margin-top: 2px; }

/* ---------- listas ---------- */
.list-row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; font-size: 16px; font-weight: 550; cursor: pointer; width: 100%; text-align: left; }
.list-row + .list-row { border-top: 1px solid var(--line); }
.list-row .sub { font-size: 13px; color: var(--text-2); font-weight: 450; margin-top: 2px; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .val { font-size: 14px; color: var(--text-2); font-weight: 500; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 36px 24px; }
.empty .ic { width: 64px; height: 64px; border-radius: 999px; background: var(--surface); display: grid; place-items: center; margin-bottom: 6px; }
.empty .ic svg { width: 30px; height: 30px; }

/* ---------- línea de pasos ---------- */
.steps { display: flex; flex-direction: column; padding: 0 16px 14px; }
.step { display: flex; gap: 12px; position: relative; padding-bottom: 12px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ''; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step.done::before { background: var(--primary); }
.step .ball { width: 24px; height: 24px; border-radius: 99px; border: 2px solid var(--line); background: var(--bg); display: grid; place-items: center; flex-shrink: 0; position: relative; z-index: 1; }
.step.done .ball { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.step.now .ball { border-color: var(--primary); }
.step .st { font-weight: 650; font-size: 15px; }
.step .sd { font-size: 13px; color: var(--text-2); margin-top: 1px; }
.step.todo .st { color: var(--text-3); font-weight: 550; }

/* ---------- cargando ---------- */
.esq { background: var(--surface); border-radius: 10px; animation: esq 1.3s ease-in-out infinite; }
@keyframes esq { 50% { opacity: .55; } }
.esq-row { display: flex; gap: 12px; align-items: center; padding: 12px 16px; }
.esq-row .a { width: 40px; height: 40px; border-radius: 99px; }
.esq-row .l { height: 12px; }

/* ---------- hojas modales y avisos ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: none; flex-direction: column; justify-content: flex-end; align-items: center; background: var(--overlay); }
.modal.on { display: flex; animation: fondo .2s; }
@keyframes fondo { from { background: rgba(0,0,0,0); } }
.modal .panel { width: 100%; max-width: 560px; background: var(--bg); color: var(--text); border-radius: 18px 18px 0 0; padding: 8px 20px calc(26px + var(--safe-b)); animation: subir .3s var(--ease); max-height: 92vh; max-height: 92dvh; overflow-y: auto; }
@keyframes subir { from { transform: translateY(100%); } }
.opt { display: flex; align-items: center; gap: 14px; padding: 14px 2px; font-size: 15.5px; font-weight: 550; cursor: pointer; width: 100%; text-align: left; }
.opt + .opt { border-top: 1px solid var(--line); }
.opt .grow { flex: 1; }
.opt .sub { font-size: 13px; color: var(--text-2); font-weight: 450; margin-top: 2px; }
/* 6/12/2026 (dueño: «sale en el mismo dedo y no se lee»): el aviso va ARRIBA (abajo quedaba bajo el dedo, sobre «Seguir»/«Guardar»
   y tapado por el teclado). Solo quedan los de error o «falta esto» (tk.js calla las confirmaciones). */
.toast { position: fixed; left: 50%; top: calc(10px + env(safe-area-inset-top, 0px)); bottom: auto; transform: translateX(-50%); width: calc(100% - 32px); max-width: 528px; z-index: 80; background: var(--primary); color: var(--on-primary); border-radius: 12px; padding: 14px 16px; font-weight: 600; font-size: 14.5px; display: none; align-items: center; gap: 10px; box-shadow: var(--pop-shadow); }
.toast.on { display: flex; animation: aparecer-toast .3s var(--ease); }
/* 2/12/2026: con "aparecer" el cartelito perdía el translateX(-50%) mientras aparecía y se veía corrido a la derecha */
@keyframes aparecer-toast { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translateX(-50%); } }

/* ---------- pie (escritorio y páginas de texto) ---------- */
.pie { padding: 28px 20px calc(28px + var(--safe-b)); border-top: 1px solid var(--line); margin-top: 20px; font-size: 13px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 10px 18px; }
.pie a:hover { color: var(--text); text-decoration: underline; }
@media (max-width: 959px) { .pie .pie-dk { display: none; } }   /* ya están en la barra de abajo del celular */
@media (max-width: 959px) { .pie > a { display: inline-flex; align-items: center; min-height: 44px; } }   /* 4/12/2026 (H-051): 44 px para el dedo (antes ~40) */
/* 5/12/2026: redes de Trabajok (tk_redes_html de nuevo/base.php): íconos en el mismo trazo, 44 px para el dedo */
.redes { display: inline-flex; align-items: center; gap: 2px; }
.redes a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--text-2); }
.redes a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.redes svg.i { width: 21px; height: 21px; stroke-width: 1.8; }
.pie .pie-redes { flex-basis: 100%; margin: 2px 0 0 -12px; }
/* 2/12/2026 (dueño): en el celular, la raya de arriba del pie quedaba pegada a la de la barra de abajo y parecían dos.
   Sin raya: el texto gris chico ya se lee como pie. En la PC (sin barra) sigue la raya. */
@media (max-width: 959px) { .pie { border-top: 0; padding-top: 8px; } }
/* barra de grabación de audio (inicio.js, 2/12/2026) */
.rec-bar { position: fixed; left: 12px; right: 12px; bottom: calc(92px + var(--safe-b)); z-index: 70; max-width: 536px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.16); animation: subir .2s var(--ease); }
.rec-bar .rec-dot { width: 10px; height: 10px; border-radius: 99px; background: var(--danger); animation: latido 1.2s infinite; flex: none; }
.rec-bar .rec-t { font-variant-numeric: tabular-nums; min-width: 34px; }
@media (max-width: 360px) { .rec-bar .rec-ayuda { display: none; } }
/* barra de abajo: "Soy profesional" en un renglón aunque el celular sea angosto */
.tabbar .tab { white-space: nowrap; font-size: clamp(10.5px, 3.05vw, 12px); }
/* barra de avance (% de perfil completo); también en profesion.php */
.meter { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 10px 0 4px; }
.meter i { display: block; height: 100%; background: var(--positive); border-radius: 99px; }

/* 2/12/2026: dentro de la app instalada (Play Store / pantalla de inicio / app nativa) el pie legal sobra en el celular:
   lo legal queda en Cuenta. En la web sigue (sirve para Google). .en-app la pone tk.js. */
@media (max-width: 959px) and (display-mode: standalone) { main .pie, body > .pie { display: none; } }
@media (max-width: 959px) { .en-app main .pie, .en-app body > .pie { display: none; } }

/* ============================================================
   ESCRITORIO (≥ 960 px): la misma app, más ancha. Barra arriba en lugar de abajo.
   ============================================================ */
@media (min-width: 960px) {
  body { background: var(--bg); }
  .dk-top { display: flex; position: sticky; top: 0; z-index: 40; align-items: center; justify-content: space-between; height: 68px; padding: 0 max(32px, calc((100vw - 1180px) / 2)); background: var(--bg); border-bottom: 1px solid var(--line); }
  .dk-nav { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
  .dk-nav a { padding: 9px 14px; border-radius: 999px; position: relative; }
  .dk-nav a:hover { background: var(--surface); }
  .dk-nav a.on { background: var(--surface); }
  .dk-nav a .pip { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 99px; background: #E11900; }
  .tabbar { display: none; }
  .app.con-tabbar { padding-bottom: 0; }
  .app.ancha { max-width: 1180px; padding: 0 32px; }
  .toast { top: 84px; }   /* (6/12: arriba, debajo de la barra de la PC) */
  .solo-cel { display: none !important; }
  .modal { justify-content: center; }
  .modal .panel { border-radius: 18px; max-width: 480px; padding-bottom: 26px; position: relative; }
  .modal .grab { visibility: hidden; }   /* 3/12/2026 (Gemini): en la PC no se arrastra con el dedo (queda el espacio) */
}
@media (max-width: 959.98px) { .solo-dk { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
