:root{
  --ch-primary:#236247;
  --ch-primary-2:#2f7659;
  --ch-primary-dark:#184936;
  --ch-accent:#dff3e8;
  --ch-ink:#17231d;
  --ch-muted:#7a847e;
  --ch-bg:#f6f8f5;
  --ch-card:#ffffff;
  --ch-border:#e6ebe7;
  --ch-success:#159b58;
  --ch-warning:#f3a61a;
  --ch-danger:#e34c68;
  --ch-shadow:0 12px 30px rgba(21,45,34,.07);
  --ch-shadow-lg:0 20px 48px rgba(20,46,35,.11);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 10% -4%,rgba(92,164,124,.12),transparent 26%),
    linear-gradient(180deg,#fbfcfb 0%,#f4f7f4 100%);
  color:var(--ch-ink);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  padding-bottom:92px;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit}
.ch-container{max-width:1120px}

/* ---------- App header / Platta-inspired shell ---------- */
.ch-nav{
  background:rgba(26,69,52,.97)!important;
  border:0;
  box-shadow:0 8px 26px rgba(16,48,36,.12);
  backdrop-filter:blur(16px);
}
.ch-nav .navbar-brand{
  font-weight:900;
  letter-spacing:-.035em;
  display:flex;
  align-items:center;
  gap:10px;
}
.ch-brand-mark{
  width:36px;height:36px;border-radius:13px;
  display:grid;place-items:center;
  background:rgba(255,255,255,.13);
  color:#fff;
  border:1px solid rgba(255,255,255,.12);
}
.ch-nav .btn{
  border-radius:14px;
  min-height:42px;
  font-weight:800;
}
.ch-nav .btn-outline-light{border-color:rgba(255,255,255,.44)}
.ch-nav .btn-outline-light:hover{background:rgba(255,255,255,.1)}
.nav-profile-chip{
  display:flex;align-items:center;gap:10px;
  color:#fff;
  padding:7px 8px 7px 7px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.08);
  border-radius:16px;
}
.nav-avatar{
  width:34px;height:34px;border-radius:12px;
  display:grid;place-items:center;
  background:#dff3e8;color:var(--ch-primary-dark);
  font-size:.92rem;font-weight:900;
}
.nav-profile-chip small{display:block;color:rgba(255,255,255,.62);font-size:.67rem;line-height:1}
.nav-profile-chip strong{display:block;font-size:.82rem;line-height:1.2;margin-top:3px}

main.container{position:relative;z-index:1}
.home-spacer{height:2px}

/* ---------- Hero / dashboard cards ---------- */
.hero{
  border-radius:30px;
  background:linear-gradient(135deg,#1a4d3a 0%,#246349 56%,#3a7d60 100%);
  color:#fff;
  box-shadow:var(--ch-shadow-lg);
  overflow:hidden;
  position:relative;
}
.hero:before{
  content:"";position:absolute;right:-85px;top:-95px;
  width:270px;height:270px;border-radius:50%;
  background:rgba(255,255,255,.085);
}
.hero:after{
  content:"";position:absolute;left:-80px;bottom:-115px;
  width:220px;height:220px;border-radius:50%;
  background:rgba(255,255,255,.035);
}
.hero>*{position:relative;z-index:1}
.hero h1,.hero h2,.hero h3{letter-spacing:-.045em}
.hero .btn-light{
  color:var(--ch-primary-dark)!important;
  border:0;border-radius:16px;
  box-shadow:0 10px 22px rgba(0,0,0,.1);
}
.hero .btn-light:hover{transform:translateY(-1px)}

.glass{
  background:rgba(255,255,255,.9);
  border:1px solid rgba(255,255,255,.95);
  border-radius:26px;
  box-shadow:var(--ch-shadow);
}
.section-title{font-size:1.04rem;font-weight:900;letter-spacing:-.02em}
.muted{color:var(--ch-muted)!important}
.small-label,.eyebrow,.kpi .label{
  font-size:.70rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:850;
}

/* ---------- Work cards ---------- */
.work-card{
  border:1px solid var(--ch-border);
  background:var(--ch-card);
  border-radius:24px;
  padding:18px;
  box-shadow:0 8px 24px rgba(24,54,41,.055);
  height:100%;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.work-card:hover{transform:translateY(-2px);box-shadow:0 16px 32px rgba(24,54,41,.095);border-color:#d9e4dd}
.work-icon,.avatar{
  display:grid;place-items:center;
  border-radius:18px;
  background:var(--ch-accent);
  color:var(--ch-primary);
  font-size:1.34rem;font-weight:900;
}
.work-icon{width:50px;height:50px}
.avatar{width:52px;height:52px}
.badge-soft{
  background:#edf7f1;color:#1f674b;border:1px solid #d4ebdd;
  border-radius:999px;padding:.42rem .72rem;
  font-weight:850;font-size:.73rem;
}
.badge-live{background:#e9f8ef;color:#16804a;border-color:#cbead7}
.badge-warn{background:#fff6df;color:#ae6d0b;border-color:#f3e0a8}
.badge-danger{background:#fff0f3;color:#bf3c57;border-color:#f5ccd4}

/* ---------- Buttons ---------- */
.btn-ch-primary{
  background:linear-gradient(135deg,#236247,#2f7659);
  color:#fff;border:0;border-radius:16px;font-weight:850;
  box-shadow:0 10px 22px rgba(35,98,71,.18);
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}
.btn-ch-primary:hover{background:linear-gradient(135deg,#1d573f,#286c50);color:#fff;transform:translateY(-1px);box-shadow:0 14px 28px rgba(35,98,71,.24)}
.btn-ch-secondary{
  background:#fff;color:var(--ch-ink);border:1px solid var(--ch-border);
  border-radius:16px;font-weight:800;
  box-shadow:0 5px 15px rgba(26,43,34,.035);
}
.btn-ch-secondary:hover{background:#f8faf8;border-color:#dbe4df;color:var(--ch-ink)}
.btn-action{min-height:68px;border:0;border-radius:20px;font-weight:850;font-size:1rem;transition:transform .18s,box-shadow .18s}
.btn-action:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(27,42,35,.12)}
.btn-action.primary{background:linear-gradient(135deg,#256a4c,#3a8261);color:#fff}
.btn-action.manual{background:#fff;border:1px solid var(--ch-border);color:var(--ch-ink)}
.btn-action.danger{background:linear-gradient(135deg,#e34c68,#ee667f);color:#fff}
.btn-whatsapp{background:#159b58;color:#fff;border:0;border-radius:16px;font-weight:850;box-shadow:0 10px 22px rgba(21,155,88,.18)}
.btn-whatsapp:hover{background:#117f49;color:#fff}

/* ---------- KPI / report ---------- */
.kpi{
  background:#fff;border:1px solid var(--ch-border);border-radius:19px;
  padding:15px;height:100%;box-shadow:0 5px 18px rgba(27,47,38,.04);
}
.kpi .label{color:#808983}
.kpi .value{font-size:1.02rem;font-weight:900;margin-top:6px;line-height:1.25;color:var(--ch-ink)!important}
.metric-big{font-size:clamp(2.4rem,9vw,4rem);font-weight:950;letter-spacing:-.06em;line-height:1}
.estimated{border-radius:24px;background:linear-gradient(135deg,#edf7f1,#fbfdfb);border:1px solid #d9ebdf;box-shadow:0 12px 28px rgba(30,85,61,.05)}
.report-card .kpi,.report-card .kpi .value{color:var(--ch-ink)!important}
.report-card .kpi .label{color:#747e77!important}

/* ---------- Forms ---------- */
.form-control,.form-select{
  border-radius:14px;padding:.82rem 1rem;border-color:#dfe7e1;
  background:#fff;color:var(--ch-ink)
}
.form-control:focus,.form-select:focus{border-color:#7db59a;box-shadow:0 0 0 .22rem rgba(35,98,71,.10)}
.form-check-input:checked{background-color:var(--ch-primary);border-color:var(--ch-primary)}
.input-group-text{border-color:#dfe7e1;background:#f8faf8;color:#68736d}
.info-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #eef1ef}
.info-row:last-child{border-bottom:0}.info-row .label{color:var(--ch-muted);font-size:.86rem}.info-row .value{font-weight:850;text-align:right}

/* ---------- Mobile bottom app nav ---------- */
.mobile-nav{
  position:fixed;z-index:1030;left:10px;right:10px;bottom:10px;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(218,225,220,.95);
  backdrop-filter:blur(20px);
  border-radius:24px;
  box-shadow:0 16px 40px rgba(19,42,31,.15);
  padding:8px;
  display:grid;grid-template-columns:repeat(4,1fr);gap:4px;
}
.mobile-nav a{
  color:#919a94;text-align:center;font-size:.66rem;font-weight:850;
  padding:8px 4px;border-radius:16px;transition:.18s ease
}
.mobile-nav a.active{color:var(--ch-primary);background:#edf7f1}
.mobile-nav i{font-size:1.15rem;display:block;margin-bottom:3px}
.mobile-nav .nav-new{
  position:relative;isolation:isolate;
}
.mobile-nav .nav-new:before{
  content:"";position:absolute;left:50%;top:-13px;transform:translateX(-50%);
  width:46px;height:46px;border-radius:50%;
  background:linear-gradient(135deg,#236247,#3f8a68);
  box-shadow:0 10px 22px rgba(35,98,71,.22);z-index:-1
}
.mobile-nav .nav-new i{color:#fff}
.mobile-nav .nav-new span{position:relative;color:var(--ch-primary);display:block;margin-top:1px}

/* ---------- Subscription / payments ---------- */
.subscription-hero-chip{display:flex;align-items:center;gap:12px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.14);border-radius:20px;padding:14px 16px;min-width:210px}
.subscription-hero-chip>i{font-size:1.5rem}.subscription-hero-chip strong{display:block}.subscription-hero-chip small{display:block;color:rgba(255,255,255,.68);margin-top:2px}
.premium-plan{overflow:hidden}.plan-icon{width:52px;height:52px;border-radius:18px;background:var(--ch-accent);color:var(--ch-primary);display:grid;place-items:center;font-size:1.3rem}.plan-card{background:#fff;border:1px solid var(--ch-border);border-radius:24px;padding:22px;box-shadow:0 10px 30px rgba(29,54,43,.06);height:100%;position:relative}.plan-card.featured{border:2px solid #4f926f;box-shadow:0 18px 38px rgba(34,105,74,.13)}.plan-card.featured .plan-icon{background:linear-gradient(135deg,#236247,#3d8363);color:#fff}.plan-price{font-size:2.2rem;font-weight:950;letter-spacing:-.05em}.plan-feature{display:flex;gap:9px;align-items:flex-start;margin:10px 0;color:#4c5751}.plan-feature i{color:var(--ch-success);margin-top:3px}.plan-hero{border-radius:28px;padding:24px;background:linear-gradient(135deg,#1a4d3a 0%,#2e7053 58%,#3b8463 100%);color:#fff;display:flex;justify-content:space-between;align-items:end;gap:18px;box-shadow:0 20px 55px rgba(39,83,61,.18)}.plan-hero-price{font-size:2.4rem;font-weight:950;white-space:nowrap}.plan-hero-price small{font-size:.78rem;font-weight:750;color:rgba(255,255,255,.66)}
.pay-options{display:grid;gap:10px}.pay-option{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--ch-border);border-radius:18px;background:#fff;cursor:pointer;transition:.18s}.pay-option.selected{border-color:#8fbea6;box-shadow:0 8px 24px rgba(35,98,71,.1);background:#f8fcf9}.pay-option input{display:none}.pay-check{color:#c8ceca}.pay-option.selected .pay-check{color:var(--ch-primary)}.pay-brand{min-width:58px;height:38px;border-radius:12px;display:grid;place-items:center;font-size:.7rem;font-weight:950;letter-spacing:.04em}.pay-brand.yape{background:#7a2cff;color:#fff}.pay-brand.plin{background:#27b6ff;color:#fff}
.qr-panel{border:1px solid var(--ch-border);border-radius:20px;padding:15px;background:#fafcfb}.qr-panel-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.qr-button{display:block;width:100%;border:0;background:#fff;border-radius:18px;padding:16px;min-height:240px;box-shadow:inset 0 0 0 1px #edf1ee;position:relative;cursor:pointer}.qr-button img{max-width:230px;width:100%;height:auto;display:block;margin:auto}.qr-button.qr-missing{display:grid;place-items:center;color:#747a92}.qr-button.qr-missing img{display:none}.qr-button .d-none{display:block!important}.qr-modal-body{display:flex;justify-content:center;padding:8px 4px 18px}.qr-modal-body img{width:min(390px,92vw);height:auto;border-radius:18px;background:#fff}
.upload-drop{border:1.5px dashed #cdd9d0;background:#fafcfb;border-radius:20px;padding:26px 18px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:5px;cursor:pointer;min-height:190px;transition:.18s}.upload-drop:hover,.upload-drop.has-file{border-color:#7eae94;background:#f4faf6}.upload-drop input{display:none}.upload-icon{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;background:var(--ch-accent);color:var(--ch-primary);font-size:1.4rem;margin-bottom:5px}.file-name{font-size:.78rem;color:#4a4f63;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.proof-preview{margin-top:12px;position:relative;border-radius:18px;overflow:hidden;border:1px solid var(--ch-border);background:#fff}.proof-preview img{width:100%;max-height:300px;object-fit:contain;display:block}.proof-preview button{position:absolute;right:10px;top:10px}
.summary-box{border:1px solid var(--ch-border);border-radius:18px;padding:14px 16px;display:flex;justify-content:space-between;align-items:center;background:#fafcfb}.summary-box strong{display:block;font-size:1.35rem}.summary-box>i{font-size:1.6rem;color:var(--ch-primary)}
.request-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid #eef1ef}.request-row:last-child{border-bottom:0}

/* ---------- Data / empty states ---------- */
.table-wrap{border:1px solid var(--ch-border);border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 8px 24px rgba(25,52,40,.045)}.table-wrap .table{margin:0}.table>:not(caption)>*>*{padding:14px 15px}.table thead th{background:#f8faf8;color:#69736d;font-size:.74rem;text-transform:uppercase;letter-spacing:.06em;border-bottom-color:#e8ece9}.table tbody tr{border-bottom-color:#eef1ef}
.empty{padding:46px 20px;text-align:center}.empty .icon{width:68px;height:68px;border-radius:22px;margin:0 auto 14px;display:grid;place-items:center;background:var(--ch-accent);color:var(--ch-primary);font-size:1.6rem}

/* ---------- Motion / accessibility ---------- */
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

@media(max-width:767px){
  body{padding-bottom:98px}
  .desktop-only{display:none!important}
  .mobile-hide{display:none!important}
  .mobile-full{width:100%}
  .ch-container{padding-left:12px;padding-right:12px}
  .hero{border-radius:24px}
  .glass{border-radius:22px}
  .hero h1{font-size:2rem}
  .hero p{font-size:.93rem;line-height:1.55}
  .nav-profile-chip .profile-copy{display:none}
  .ch-nav .container{padding-left:12px;padding-right:12px}
  .ch-nav .navbar-brand{font-size:1rem}
  .ch-nav .navbar-brand .brand-copy{display:inline}
  .ch-nav .btn{min-height:40px;padding:.4rem .65rem}
  .ch-nav .btn .btn-copy{display:none}
  .kpi{padding:13px 12px;border-radius:17px}
  .kpi .label{font-size:.64rem}
  .kpi .value{font-size:.95rem}
  .work-card{padding:15px;border-radius:21px}
  .btn-action{min-height:64px;font-size:.95rem}
  .estimated{border-radius:20px}
  .info-row{align-items:flex-start}
  .info-row .value{max-width:60%}
  .plan-card{padding:18px;border-radius:21px}
  .table-wrap{box-shadow:none}
}
@media(min-width:768px){.mobile-nav{display:none}.mobile-only{display:none!important}}
