:root{--brand:#b83e17;--brand-dark:#8f2f12;--brand-soft:#f5ddd4;--ink:#261d19;--muted:#746862;--line:#e8ddd8;--bg:#faf7f5;--white:#fff;--success:#247a4a;--shadow:0 14px 35px rgba(82,45,30,.09)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Montserrat,Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5}a{color:var(--brand);text-decoration:none}a:hover{color:var(--brand-dark)}
.topbar{height:86px;background:var(--brand);display:flex;align-items:center;justify-content:space-between;padding:0 max(22px,calc((100vw - 1180px)/2));box-shadow:0 4px 18px rgba(78,27,10,.16);position:sticky;top:0;z-index:20}.brand{height:68px;display:flex;align-items:center;overflow:hidden}.brand img{height:95px;width:auto;margin-left:-2px}.top-actions{display:flex;gap:16px;align-items:center;color:#fff}.hello{opacity:.9}.link-button{border:1px solid rgba(255,255,255,.5);background:transparent;color:#fff;padding:8px 13px;border-radius:10px;cursor:pointer}
.navtabs{display:flex;gap:8px;justify-content:center;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:86px;z-index:15;padding:8px 14px}.navtabs a{padding:10px 16px;border-radius:10px;color:var(--muted);font-weight:700;font-size:.94rem}.navtabs a.active,.navtabs a:hover{background:var(--brand-soft);color:var(--brand)}
.page-shell{width:min(1180px,calc(100% - 28px));margin:28px auto 60px}.card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px;box-shadow:var(--shadow);margin-bottom:18px}.auth-wrap{min-height:68vh;display:grid;place-items:center}.auth-card{width:min(520px,100%)}h1,h2,h3{line-height:1.15;margin:.25rem 0 .8rem}h1{font-size:clamp(1.8rem,3vw,2.7rem)}h2{font-size:1.35rem}.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:.72rem;font-weight:900;color:var(--brand)}.muted{color:var(--muted)}.center{text-align:center}.lead{font-size:1.05rem}
.stack-form p{margin:0 0 16px}.stack-form label{display:block;font-weight:800;margin-bottom:6px;font-size:.92rem}.stack-form input,.stack-form select,.stack-form textarea,.chat-form textarea{width:100%;border:1px solid #d9ceca;border-radius:12px;padding:12px 13px;background:#fff;color:var(--ink);font:inherit;outline:none}.stack-form input:focus,.stack-form select:focus,.stack-form textarea:focus,.chat-form textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(184,62,23,.1)}.stack-form input[type=checkbox]{width:auto;margin-right:8px}.stack-form .helptext{display:block;font-size:.78rem;color:var(--muted);margin-top:4px}.stack-form ul.errorlist{color:#a32618;padding-left:18px}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;border-radius:11px;padding:11px 16px;font-weight:800;cursor:pointer;font:inherit}.primary{background:var(--brand);color:#fff;border:1px solid var(--brand)}.primary:hover{background:var(--brand-dark);color:#fff}.secondary{background:#fff;color:var(--brand);border:1px solid var(--brand)}.wide{width:100%}.inline-form{display:inline-block;margin-left:8px}
.section-heading{display:flex;align-items:flex-end;justify-content:space-between;margin:10px 2px 20px}.section-heading.compact{margin-top:0}.cards-list{display:grid;gap:16px}.job-card,.offer-card{margin:0}.job-top,.offer-header,.job-meta,.action-row,.chat-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.job-meta{color:var(--muted);font-size:.88rem;border-top:1px solid var(--line);padding:13px 0;margin-top:14px}.offer-count{font-weight:900;color:var(--brand);text-align:right;font-size:1.1rem;white-space:nowrap}.offer-count small{display:block;color:var(--muted);font-size:.7rem;font-weight:700}.price{font-size:1.18rem;color:var(--brand);white-space:nowrap}.status{display:inline-block;padding:5px 9px;border-radius:999px;font-size:.7rem;font-weight:900;text-transform:uppercase;letter-spacing:.05em;background:#eee;color:#555}.status-open{background:#fff0d6;color:#9a5b00}.status-selected{background:#e6f2ff;color:#245b89}.status-closed{background:#e8f6ed;color:#26764b}.selected{border:2px solid var(--success)}.selected-label{color:var(--success);font-weight:900}.chips{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.chips span{padding:6px 9px;background:#f5f1ef;border-radius:9px;color:#625650;font-size:.8rem}.action-row{align-items:center}.job-image{width:100%;max-height:380px;object-fit:cover;border-radius:14px;margin-top:10px}.empty{text-align:center;padding:42px}.two-col{display:grid;grid-template-columns:1.02fr .98fr;gap:22px;align-items:start}.two-col.narrow{grid-template-columns:1fr 1fr}.content-grid.single{width:min(720px,100%);margin:auto}.budget-box,.success-box{padding:14px;border-radius:12px;margin:14px 0}.budget-box{background:var(--brand-soft)}.success-box{background:#e8f6ed;color:#17633b;font-weight:800}.flash{padding:12px 15px;border-radius:12px;margin-bottom:14px;background:#eef2f5}.flash.success{background:#e8f6ed;color:#17633b}.flash.error{background:#fde9e7;color:#902518}.flash.warning{background:#fff4dc;color:#805600}
.profile-hero{display:grid;grid-template-columns:auto 1fr auto;gap:20px;align-items:center}.avatar{width:92px;height:92px;border-radius:50%;background:var(--brand);color:#fff;display:grid;place-items:center;font-weight:900;font-size:2rem;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.profile-stat{text-align:center;background:var(--brand-soft);padding:16px;border-radius:14px}.profile-stat strong,.profile-stat span{display:block}.portfolio-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.portfolio-grid figure{margin:0}.portfolio-grid img{width:100%;aspect-ratio:1.2;object-fit:cover;border-radius:12px}.portfolio-grid figcaption{font-size:.78rem;color:var(--muted);margin-top:4px}.review{border-top:1px solid var(--line);padding:12px 0}
.chat-wrap{max-width:850px;margin:auto}.messages-box{min-height:320px;max-height:520px;overflow:auto;background:#f7f3f1;border-radius:16px;padding:18px;margin:16px 0}.bubble{width:min(72%,560px);background:#fff;border:1px solid var(--line);border-radius:16px 16px 16px 4px;padding:10px 13px;margin:8px 0}.bubble.mine{margin-left:auto;background:var(--brand);color:#fff;border-color:var(--brand);border-radius:16px 16px 4px 16px}.bubble p{margin:4px 0}.bubble small{opacity:.72}.chat-form{display:grid;grid-template-columns:1fr auto;gap:10px}.chat-form textarea{resize:none}

/* Floating chat widget */
.floating-chat{position:fixed;right:20px;bottom:20px;z-index:60;width:min(360px,calc(100vw - 28px));filter:drop-shadow(0 18px 32px rgba(67,31,17,.18))}
.floating-chat-toggle{margin-left:auto;min-width:136px;height:48px;border:0;border-radius:16px;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:center;gap:9px;padding:0 14px;font:inherit;font-weight:900;cursor:pointer;box-shadow:0 10px 24px rgba(184,62,23,.25)}
.floating-chat-toggle:hover{background:var(--brand-dark)}
.chat-toggle-icon{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.16);font-size:.78rem}.chat-count{min-width:22px;height:22px;border-radius:999px;background:#fff;color:var(--brand);display:grid;place-items:center;font-size:.72rem;padding:0 6px}.chat-chevron{font-size:1rem;transition:transform .18s ease}.floating-chat.is-open .chat-chevron{transform:rotate(180deg)}
.floating-chat-panel{position:absolute;right:0;bottom:58px;width:100%;max-height:min(460px,68vh);overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 24px 55px rgba(67,31,17,.2)}
.floating-chat-head{padding:16px 16px 13px;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px}.floating-chat-head strong,.floating-chat-head small{display:block}.floating-chat-head small{opacity:.82;font-size:.72rem;margin-top:2px}.chat-close{width:32px;height:32px;border:1px solid rgba(255,255,255,.35);border-radius:10px;background:transparent;color:#fff;font-size:1.25rem;line-height:1;cursor:pointer}
.floating-chat-list{max-height:min(380px,56vh);overflow:auto}.floating-chat-item{display:flex;gap:11px;padding:13px 14px;border-bottom:1px solid var(--line);color:var(--ink);background:#fff}.floating-chat-item:hover{background:#fff8f5;color:var(--ink)}.chat-avatar{width:42px;height:42px;flex:0 0 42px;border-radius:50%;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand);font-weight:900}.chat-item-copy{min-width:0;display:block}.chat-item-copy strong,.chat-job-title,.chat-item-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-item-copy strong{font-size:.9rem}.chat-job-title{font-size:.78rem;color:var(--brand);font-weight:800;margin:1px 0}.chat-item-copy small{font-size:.75rem;color:var(--muted)}
.floating-chat-empty{text-align:center;padding:34px 24px 38px;color:var(--muted)}.floating-chat-empty strong{display:block;color:var(--ink);margin:8px 0 4px}.floating-chat-empty p{margin:0;font-size:.84rem}.empty-chat-icon{width:48px;height:48px;margin:auto;border-radius:50%;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand);font-size:1.1rem}

footer{text-align:center;color:var(--muted);padding:22px;font-size:.85rem}@media(max-width:780px){.topbar{height:72px;padding:0 14px}.brand{height:60px}.brand img{height:78px}.hello{display:none}.navtabs{top:72px;overflow:auto;justify-content:flex-start}.page-shell{width:min(100% - 18px,1180px);margin-top:18px}.two-col,.two-col.narrow{grid-template-columns:1fr}.card{border-radius:16px;padding:18px}.job-top,.offer-header{gap:10px}.job-meta{flex-direction:column;gap:4px}.profile-hero{grid-template-columns:auto 1fr}.profile-stat{grid-column:1/-1}.portfolio-grid{grid-template-columns:repeat(2,1fr)}.action-row{flex-wrap:wrap}.chat-head{flex-direction:column}.bubble{width:88%}.floating-chat{right:10px;bottom:10px;width:calc(100vw - 20px)}.floating-chat-panel{bottom:56px}.floating-chat-toggle{height:46px}}

/* Unread counters + live visual notification */
.floating-chat-item{position:relative;align-items:center}.floating-chat-item.is-unread{background:#fff9f6}.floating-chat-item.is-unread .chat-item-copy strong{font-weight:900}.chat-item-copy{flex:1}.chat-unread-badge{flex:0 0 auto;min-width:22px;height:22px;border-radius:999px;background:var(--brand);color:#fff;display:grid;place-items:center;padding:0 6px;font-size:.7rem;font-weight:900;box-shadow:0 5px 12px rgba(184,62,23,.18)}.chat-unread-badge[hidden]{display:none}.chat-count[hidden]{display:none}
.floating-chat-toggle.has-unread{box-shadow:0 10px 28px rgba(184,62,23,.34)}
.floating-chat-toggle.new-message-pop{animation:chat-pop .72s ease both}.floating-chat-toggle.new-message-pop .chat-count{animation:chat-badge-pulse .72s ease both}
@keyframes chat-pop{0%{transform:scale(1)}35%{transform:scale(1.08)}70%{transform:scale(.98)}100%{transform:scale(1)}}
@keyframes chat-badge-pulse{0%,100%{transform:scale(1)}45%{transform:scale(1.3)}}
.chat-notification{position:fixed;right:20px;top:104px;z-index:90;width:min(390px,calc(100vw - 28px));display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:11px;background:#fff;color:var(--ink);border:1px solid var(--line);border-left:5px solid var(--brand);border-radius:16px;padding:13px 14px;box-shadow:0 20px 46px rgba(67,31,17,.2)}.chat-notification:hover{color:var(--ink);background:#fffaf7}.chat-notification[hidden]{display:none}.chat-notification.is-showing{animation:chat-toast-in .3s ease both}.chat-notification-icon{width:36px;height:36px;border-radius:50%;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-size:.85rem}.chat-notification-copy{min-width:0}.chat-notification-copy strong,.chat-notification-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-notification-copy strong{font-size:.9rem}.chat-notification-copy small{color:var(--muted);margin-top:2px}.chat-notification-open{font-size:.78rem;font-weight:900;color:var(--brand)}
@keyframes chat-toast-in{from{opacity:0;transform:translateY(-12px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:780px){.chat-notification{right:10px;top:82px;width:calc(100vw - 20px)}}

/* PWA + notification center */
.notification-center{position:relative}.notification-toggle{position:relative;width:42px;height:42px;border-radius:13px;border:1px solid rgba(255,255,255,.4);background:rgba(255,255,255,.08);color:#fff;display:grid;place-items:center;font-size:1rem;cursor:pointer}.notification-toggle:hover{background:rgba(255,255,255,.16)}.notification-count{position:absolute;right:-6px;top:-7px;min-width:21px;height:21px;border-radius:999px;background:#fff;color:var(--brand);display:grid;place-items:center;padding:0 5px;font-size:.68rem;font-weight:900;box-shadow:0 4px 10px rgba(65,20,5,.22)}.notification-count[hidden]{display:none}
.notification-panel{position:absolute;right:0;top:52px;width:min(390px,calc(100vw - 24px));background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:18px;box-shadow:0 22px 55px rgba(67,31,17,.2);overflow:hidden;z-index:85}.notification-panel[hidden]{display:none}.notification-panel-head{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:15px 16px;background:#fff8f5;border-bottom:1px solid var(--line)}.notification-panel-head strong,.notification-panel-head small{display:block}.notification-panel-head small{color:var(--muted);font-size:.72rem;margin-top:2px}.notification-read-all{border:0;background:transparent;color:var(--brand);font-weight:800;font-size:.76rem;cursor:pointer}.notification-list{max-height:min(420px,62vh);overflow:auto}.notification-item{display:grid;grid-template-columns:8px 1fr;gap:9px;padding:13px 15px;border-bottom:1px solid var(--line);color:var(--ink);background:#fff}.notification-item:hover{color:var(--ink);background:#fffaf7}.notification-item.is-unread{background:#fff7f3}.notification-dot{width:7px;height:7px;border-radius:50%;background:#d8d0cc;margin-top:7px}.notification-item.is-unread .notification-dot{background:var(--brand);box-shadow:0 0 0 4px rgba(184,62,23,.1)}.notification-copy{min-width:0}.notification-copy strong,.notification-copy small,.notification-copy time{display:block}.notification-copy strong{font-size:.88rem}.notification-copy small{color:var(--muted);font-size:.78rem;margin:2px 0}.notification-copy time{font-size:.69rem;color:#9c8d85}.notification-empty{text-align:center;padding:30px 22px;color:var(--muted)}.notification-empty strong{display:block;color:var(--ink);margin-bottom:5px}.notification-empty p{margin:0;font-size:.8rem}.notification-panel-foot{padding:11px 14px;background:#fff;border-top:1px solid var(--line)}.compact{padding:8px 11px;font-size:.78rem;width:100%}

.pwa-onboarding{position:fixed;inset:0;z-index:120;background:rgba(36,20,13,.48);display:grid;place-items:center;padding:18px;backdrop-filter:blur(4px)}.pwa-onboarding[hidden]{display:none}.pwa-onboarding-card{position:relative;width:min(470px,100%);background:#fff;border-radius:24px;padding:28px;box-shadow:0 30px 75px rgba(43,19,10,.28);text-align:center}.pwa-close{position:absolute;right:13px;top:12px;width:35px;height:35px;border-radius:11px;border:1px solid var(--line);background:#fff;color:var(--muted);font-size:1.35rem;cursor:pointer}.pwa-app-icon{width:84px;height:84px;margin:0 auto 14px;border-radius:20px;overflow:hidden;box-shadow:0 10px 24px rgba(184,62,23,.2)}.pwa-app-icon img{width:100%;height:100%;object-fit:cover}.pwa-onboarding-card h2{margin-top:5px}.pwa-benefits{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:18px 0}.pwa-benefits span{background:#fff6f2;border:1px solid #f2d6cb;padding:7px 9px;border-radius:999px;color:#664b40;font-size:.76rem;font-weight:750}.pwa-actions{display:grid;gap:9px}.pwa-later{border:0;background:transparent;color:var(--muted);font-weight:750;padding:8px;cursor:pointer}.pwa-ios-help{margin-top:13px;background:#fff4dc;border-radius:12px;padding:11px;color:#785800;font-size:.79rem;text-align:left}.pwa-ios-help[hidden]{display:none}.pwa-status{min-height:20px;margin-top:9px;font-size:.78rem;font-weight:750}.pwa-status.success{color:var(--success)}.pwa-status.warning{color:#8a6200}

.push-toast{position:fixed;left:50%;top:102px;transform:translateX(-50%);z-index:110;width:min(430px,calc(100vw - 28px));display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:11px;background:#fff;color:var(--ink);border:1px solid var(--line);border-left:5px solid var(--brand);border-radius:16px;padding:13px 14px;box-shadow:0 20px 50px rgba(67,31,17,.22)}.push-toast:hover{color:var(--ink)}.push-toast[hidden]{display:none}.push-toast.is-showing{animation:push-toast-in .3s ease both}.push-toast-icon{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--brand-soft)}.push-toast-copy{min-width:0}.push-toast-copy strong,.push-toast-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.push-toast-copy small{color:var(--muted);margin-top:2px}.push-toast-open{font-size:.77rem;font-weight:900;color:var(--brand)}@keyframes push-toast-in{from{opacity:0;transform:translate(-50%,-10px) scale(.98)}to{opacity:1;transform:translate(-50%,0) scale(1)}}

@media(max-width:780px){.top-actions{gap:9px}.notification-toggle{width:39px;height:39px}.notification-panel{position:fixed;right:10px;left:10px;top:78px;width:auto}.pwa-onboarding-card{padding:24px 18px 20px}.pwa-app-icon{width:72px;height:72px;border-radius:18px}.push-toast{top:82px}.pwa-benefits{justify-content:flex-start;text-align:left}.notification-center{position:static}}

/* Chat -> trabajo context */
.chat-head-actions{display:flex;align-items:center;flex:0 0 auto}.chat-job-link{gap:7px;white-space:nowrap}.selected-job-card{max-width:820px;margin:auto}.selected-job-top{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.selected-job-top h1{margin-top:10px}.selected-job-description{margin-top:22px}.accepted-offer-summary{margin-top:20px;padding:18px;border:1px solid var(--line);border-radius:16px;background:#fffaf7}.accepted-offer-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.accepted-offer-head h2{margin:5px 0 2px}.selected-job-bottom-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
@media(max-width:780px){.chat-head-actions{width:100%}.chat-job-link{width:100%}.selected-job-top{flex-direction:column}.selected-job-top>.secondary{width:100%}.accepted-offer-head{gap:10px}.selected-job-bottom-actions>.primary,.selected-job-bottom-actions>.secondary{width:100%}}
