:root{
  --teal:#0f766e;--teal-d:#115e59;--teal-l:#ccfbf1;--orange:#f97316;--orange-d:#ea580c;
  --ink:#0f172a;--muted:#64748b;--bg:#f5f7fa;--card:#fff;--line:#e2e8f0;
  --bs-body-font-family:'Plus Jakarta Sans',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  --bs-primary:#0f766e;--bs-primary-rgb:15,118,110;--bs-link-color:#0f766e;--bs-link-hover-color:#115e59;
}
body{background:var(--bg);color:var(--ink);min-height:100vh;display:flex;flex-direction:column}
main{flex:1}
.text-bg-primary{background:var(--teal)!important}
.btn-primary{--bs-btn-bg:var(--teal);--bs-btn-border-color:var(--teal);--bs-btn-hover-bg:var(--teal-d);--bs-btn-hover-border-color:var(--teal-d);--bs-btn-active-bg:var(--teal-d)}
.btn-teal{background:var(--teal);color:#fff;border:0;font-weight:600}
.btn-teal:hover,.btn-teal:focus{background:var(--teal-d);color:#fff}
.btn-orange{background:var(--orange);color:#fff;border:0;font-weight:700;box-shadow:0 6px 18px -6px rgba(249,115,22,.6)}
.btn-orange:hover,.btn-orange:focus{background:var(--orange-d);color:#fff}
.btn-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;border:1px solid var(--line);background:#fff;font-size:1.15rem}
.alert-teal{background:var(--teal-l);border:0;color:var(--teal-d)}
.text-teal{color:var(--teal)!important}.text-orange{color:var(--orange)!important}
.bg-teal-l{background:var(--teal-l)}
.fw-800{font-weight:800}

/* Nav */
.app-nav{background:rgba(255,255,255,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.brand{font-weight:800;color:var(--ink)!important;display:flex;align-items:center;gap:.5rem;letter-spacing:-.02em}
.brand-mark{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,var(--teal),#14b8a6);color:#fff;display:grid;place-items:center}
.app-nav .nav-link{font-weight:500;color:#334155;border-radius:10px;padding:.5rem .75rem!important}
.app-nav .nav-link.active{background:var(--teal-l);color:var(--teal-d)}
.notif-dot{position:absolute;top:-4px;right:-4px;background:var(--orange);color:#fff;font-size:.68rem;font-weight:700;min-width:19px;height:19px;border-radius:10px;display:grid;place-items:center;padding:0 5px;border:2px solid #fff}
.notif-menu{width:340px;max-height:440px;overflow:auto;border-radius:14px;border:0;padding:0}
.notif-item{display:flex;gap:.7rem;padding:.75rem 1rem;border-bottom:1px solid var(--line);text-decoration:none;color:var(--ink)}
.notif-item:hover{background:#f8fafc}.notif-item.unread{background:#f0fdfa}
.notif-ico{width:34px;height:34px;flex:0 0 34px;border-radius:10px;display:grid;place-items:center;background:var(--teal-l);color:var(--teal)}
.app-footer{border-top:1px solid var(--line);padding:1.25rem 0;color:var(--muted);background:#fff}
.app-footer a{color:var(--muted)}

/* Cards */
.card-soft{border:1px solid var(--line);border-radius:18px;background:var(--card);box-shadow:0 1px 2px rgba(15,23,42,.04)}
.card-soft>.card-header{border-bottom:1px solid var(--line);border-radius:18px 18px 0 0}
.stat{padding:1.1rem 1.2rem}.stat .v{font-size:1.6rem;font-weight:800;letter-spacing:-.02em}.stat .l{color:var(--muted);font-size:.85rem}
.stat .ico{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;font-size:1.3rem}
.page-title{font-weight:800;letter-spacing:-.02em}
.stars{color:#f59e0b;letter-spacing:1px}
.muted{color:var(--muted)}

/* Hero */
.hero{background:radial-gradient(1200px 500px at 85% -10%,#99f6e4 0,transparent 60%),radial-gradient(800px 400px at -10% 110%,#fed7aa 0,transparent 55%),#f0fdfa;padding:4rem 0 3rem;border-bottom:1px solid var(--line)}
.hero h1{font-weight:800;letter-spacing:-.035em;font-size:clamp(2rem,5vw,3.3rem);line-height:1.05}
.hero .lead{color:#334155}
.hero-phone{background:#fff;border-radius:28px;box-shadow:0 30px 60px -20px rgba(15,118,110,.35);padding:1.25rem;max-width:360px;margin:auto}
.chip{display:inline-flex;align-items:center;gap:.4rem;background:#fff;border:1px solid var(--line);border-radius:30px;padding:.35rem .8rem;font-size:.85rem;font-weight:600}
.how .n{width:44px;height:44px;border-radius:14px;background:var(--teal);color:#fff;display:grid;place-items:center;font-weight:800;font-size:1.1rem}

/* Asistente */
.wizard{max-width:760px;margin:auto}
.wiz-progress{height:8px;border-radius:8px;background:#e2e8f0;overflow:hidden}
.wiz-progress>div{height:100%;background:linear-gradient(90deg,var(--teal),#14b8a6);transition:width .35s}
.wiz-step{display:none;animation:fade .3s}.wiz-step.active{display:block}
@keyframes fade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.opt-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:.6rem}
.opt{border:2px solid var(--line);border-radius:14px;padding:.85rem .6rem;background:#fff;text-align:center;cursor:pointer;font-weight:600;transition:.15s;user-select:none}
.opt i{display:block;font-size:1.5rem;color:var(--teal);margin-bottom:.25rem}
.opt:hover{border-color:#5eead4}
.opt.sel{border-color:var(--teal);background:#f0fdfa;box-shadow:0 0 0 3px rgba(15,118,110,.15)}
.otp-input{letter-spacing:.6em;font-size:1.6rem;text-align:center;font-weight:700}
.photo-prev{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.5rem}
.photo-prev img{width:72px;height:72px;object-fit:cover;border-radius:10px;border:1px solid var(--line)}
.dropzone{border:2px dashed #94a3b8;border-radius:14px;padding:1.2rem;text-align:center;color:var(--muted);cursor:pointer;background:#fff}
.dropzone:hover{border-color:var(--teal);color:var(--teal)}

/* Stepper */
.stepper{display:flex;justify-content:space-between;position:relative;margin:1rem 0 .5rem}
.stepper:before{content:'';position:absolute;top:17px;left:6%;right:6%;height:3px;background:#e2e8f0}
.step{position:relative;text-align:center;flex:1;z-index:1}
.step .dot{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;margin:auto;background:#fff;border:3px solid #e2e8f0;font-weight:700;color:#94a3b8;font-size:.85rem}
.step small{display:block;margin-top:.35rem;color:var(--muted);font-size:.72rem;font-weight:600}
.step.done .dot{background:var(--teal);border-color:var(--teal);color:#fff}
.step.current .dot{border-color:var(--orange);color:var(--orange);animation:pulse 1.6s infinite}
.step.current small{color:var(--ink)}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(249,115,22,.45)}70%{box-shadow:0 0 0 10px rgba(249,115,22,0)}100%{box-shadow:0 0 0 0 rgba(249,115,22,0)}}

/* Cotizaciones */
.quote{border:2px solid var(--line);border-radius:18px;background:#fff;padding:1.1rem;transition:.2s;position:relative}
.quote.best{border-color:#f59e0b;box-shadow:0 10px 30px -12px rgba(245,158,11,.5)}
.quote .price{font-size:1.8rem;font-weight:800;letter-spacing:-.03em}
.quote.new{animation:pop .6s}
@keyframes pop{0%{transform:scale(.96);background:#fff7ed}100%{transform:none}}
.countdown{font-variant-numeric:tabular-nums;font-weight:800}
.countdown.urgent{color:#dc2626}
.req-card{border:1px solid var(--line);border-radius:16px;background:#fff;padding:1rem;transition:.2s}
.req-card.new{border-color:var(--orange);box-shadow:0 0 0 4px rgba(249,115,22,.15)}
.thumbs img{width:56px;height:56px;object-fit:cover;border-radius:10px}

.gal{display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:.5rem}
.gal img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px;border:1px solid var(--line)}
.port-card img{width:100%;aspect-ratio:4/3;object-fit:cover}
.ba{display:grid;grid-template-columns:1fr 1fr;gap:2px;background:var(--line)}
.ba .lbl{position:absolute;left:8px;top:8px;background:rgba(15,23,42,.7);color:#fff;font-size:.7rem;padding:2px 8px;border-radius:20px}

/* Chat */
.chat-msgs{height:300px;overflow:auto;padding:1rem;background:#f8fafc;display:flex;flex-direction:column;gap:.45rem}
.msg{max-width:80%;padding:.5rem .8rem;border-radius:14px;background:#fff;border:1px solid var(--line);font-size:.92rem}
.msg.me{align-self:flex-end;background:var(--teal);color:#fff;border-color:var(--teal)}
.msg .who{font-size:.7rem;font-weight:700;opacity:.75;display:block}

/* Firma */
.sig-wrap{border:2px dashed #94a3b8;border-radius:14px;background:#fff;position:relative}
.sig-wrap canvas{width:100%;height:180px;touch-action:none;display:block}
.sig-wrap .clear{position:absolute;right:8px;top:8px}

.rating-input{display:flex;flex-direction:row-reverse;justify-content:center;gap:.3rem}
.rating-input input{display:none}
.rating-input label{font-size:2.2rem;color:#cbd5e1;cursor:pointer;transition:.1s}
.rating-input input:checked~label,.rating-input label:hover,.rating-input label:hover~label{color:#f59e0b}

.task{border-left:5px solid var(--orange)}
.table>:not(caption)>*>*{padding:.7rem .75rem}
.table thead th{font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:700}
.empty{padding:3rem 1rem;text-align:center;color:var(--muted)}
.empty i{font-size:2.5rem;display:block;margin-bottom:.5rem;color:#94a3b8}
@media (max-width:576px){.stepper small{font-size:.6rem}.quote .price{font-size:1.5rem}.hero{padding:2.5rem 0 2rem}}
h1,h2,h3,h4,h5,h6{color:var(--ink)}
a{color:var(--teal)}
section[id],#cotizar{scroll-margin-top:72px}
