:root{
  --cmh-bg:#e8edf6;
  --cmh-bg-2:#f5f7fb;
  --cmh-card:#fbfcff;
  --cmh-text:#0d2148;
  --cmh-muted:#4f617f;
  --cmh-line:rgba(13,33,72,.10);
  --cmh-line-2:rgba(13,33,72,.16);
  --cmh-shadow:0 18px 42px rgba(9,25,53,.10);
  --cmh-shadow-sm:0 10px 26px rgba(9,25,53,.08);
  --cmh-radius:18px;
  --cmh-radius-sm:14px;
  --cmh-primary:#0b2f78;
  --cmh-primary-2:#143f96;
  --cmh-accent:#d8b652;
  --cmh-accent-soft:rgba(216,182,82,.16);
  --cmh-ok:#11805f;
  --cmh-ok-soft:rgba(17,128,95,.10);
  --cmh-warn:#b26d12;
  --cmh-warn-soft:rgba(210,156,29,.12);
  --cmh-danger:#b42340;
  --cmh-danger-soft:rgba(180,35,64,.10);
  --cmh-navh:78px;
  --cmh-max:960px;
}
*{box-sizing:border-box}
html,body{height:100%}
body.cmh-body{margin:0;background:radial-gradient(circle at top, rgba(11,47,120,.10), transparent 26%), linear-gradient(135deg,#e4ebf6 0%,#edf2fa 42%,#f6f8fc 100%);background-attachment:fixed;color:var(--cmh-text);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
.cmh-shell{min-height:100vh;padding:18px 14px 110px}
.cmh-wrap{padding:24px}
.cmh-center{max-width:560px;margin:56px auto;text-align:center}
.cmh-link{color:var(--cmh-primary);text-decoration:none;font-weight:700}
.cmh-muted{color:var(--cmh-muted)}
.cmh-app{min-height:100vh;padding-bottom:calc(var(--cmh-navh) + env(safe-area-inset-bottom));position:relative}
@media (min-width:760px){
  .cmh-app{max-width:var(--cmh-max);margin:28px auto;border-radius:30px;background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(251,252,255,.98));box-shadow:0 28px 70px rgba(9,25,53,.16);overflow:hidden;min-height:calc(100vh - 56px);border:1px solid rgba(13,33,72,.08)}
  .cmh-app::before{content:"";position:absolute;inset:0 0 auto 0;height:220px;background:linear-gradient(180deg, rgba(11,47,120,.08), rgba(216,182,82,.05), transparent);pointer-events:none}
}
 .cmh-top{position:sticky;top:0;z-index:30;background:rgba(251,252,255,.90);backdrop-filter:saturate(180%) blur(14px);border-bottom:1px solid var(--cmh-line)}
.cmh-top-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px}
.cmh-title{font-weight:800;font-size:15px;letter-spacing:-.02em;color:var(--cmh-text)}
.cmh-subtitle{margin-top:5px;color:var(--cmh-muted);font-size:13px;font-weight:600}
.cmh-ghost{border:1px solid var(--cmh-line-2);background:#fff;color:var(--cmh-primary);border-radius:999px;min-width:46px;height:46px;display:grid;place-items:center;cursor:pointer;font-size:16px;font-weight:900}
.cmh-ghost:active{transform:scale(.98)}
.cmh-main{padding:16px 14px 20px;position:relative;z-index:1}
@media (min-width:768px){.cmh-main{padding:22px}}
.cmh-loading{padding:18px;border:1px dashed var(--cmh-line-2);border-radius:var(--cmh-radius);text-align:center;color:var(--cmh-muted);background:rgba(255,255,255,.55)}
.cmh-card{background:var(--cmh-card);border:1px solid var(--cmh-line);border-radius:var(--cmh-radius);box-shadow:var(--cmh-shadow-sm);padding:16px;transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease}
.cmh-card + .cmh-card{margin-top:12px}
.cmh-card-warn{border-color:rgba(216,182,82,.45);box-shadow:0 14px 34px rgba(184,139,36,.10)}
.cmh-card-title{font-weight:800;font-size:14px;letter-spacing:-.02em;color:var(--cmh-text)}
.cmh-card-value{font-weight:900;font-size:22px;line-height:1.06;margin-top:10px;letter-spacing:-.04em;color:var(--cmh-text);font-variant-numeric:tabular-nums}
.cmh-card-sub{margin-top:6px;color:var(--cmh-muted);font-size:13px;line-height:1.45}
.cmh-grid{display:grid;gap:12px}
.cmh-grid-2{grid-template-columns:1fr}
.cmh-grid-4{grid-template-columns:1fr 1fr}
.cmh-grid-home{grid-template-columns:1fr}
@media (min-width:700px){
  .cmh-grid-2{grid-template-columns:1fr 1fr}
  .cmh-grid-4{grid-template-columns:repeat(4,1fr)}
  .cmh-grid-home{grid-template-columns:1.05fr .95fr}
}
.cmh-kpi{padding:16px;border-radius:var(--cmh-radius);background:linear-gradient(180deg,rgba(11,47,120,.08),rgba(216,182,82,.08));border:1px solid rgba(11,47,120,.12)}
.cmh-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:14px;padding:12px 16px;border:1px solid var(--cmh-line-2);background:#fff;color:var(--cmh-text);font-weight:800;cursor:pointer;box-shadow:0 2px 0 rgba(0,0,0,.02)}
.cmh-btn:active{transform:scale(.99)}
.cmh-btn-primary{background:linear-gradient(180deg,var(--cmh-primary-2),var(--cmh-primary));color:#fff;border-color:transparent}
.cmh-btn-secondary{background:#fff;color:var(--cmh-text)}
.cmh-btn-sm{padding:10px 12px;font-size:12px}
.cmh-row{display:flex;gap:10px;flex-wrap:wrap}
.cmh-divider{height:1px;background:var(--cmh-line);margin:14px 0}
.cmh-chip-row{display:flex;gap:8px;flex-wrap:wrap}
.cmh-field{margin-top:10px}
.cmh-label{display:block;font-size:12px;color:var(--cmh-text);margin-bottom:7px;font-weight:800;letter-spacing:-.01em}
.cmh-input,.cmh-select,.cmh-textarea{width:100%;border:1px solid var(--cmh-line-2);border-radius:14px;padding:12px 13px;background:#fff;color:var(--cmh-text);outline:none;font-size:15px}
.cmh-input::placeholder,.cmh-textarea::placeholder{color:#96a0b4}
.cmh-input:focus,.cmh-select:focus,.cmh-textarea:focus{border-color:rgba(11,47,120,.35);box-shadow:0 0 0 4px rgba(11,47,120,.10)}
.cmh-textarea{min-height:96px;resize:vertical}
.cmh-seg{display:flex;border:1px solid var(--cmh-line-2);border-radius:999px;overflow:hidden;background:#fff}
.cmh-seg button{flex:1;border:0;background:transparent;padding:12px 12px;font-weight:900;color:rgba(13,33,72,.68);cursor:pointer;letter-spacing:.05em;text-transform:uppercase}
.cmh-seg button.is-active{background:var(--cmh-accent-soft);color:var(--cmh-primary)}
.cmh-list{display:flex;flex-direction:column;gap:10px}
.cmh-item{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.cmh-item-left{min-width:0;flex:1}
.cmh-item-title{font-weight:900;font-size:14px;letter-spacing:-.02em;color:var(--cmh-text)}
.cmh-item-sub{margin-top:4px;color:var(--cmh-muted);font-size:13px;line-height:1.45}
.cmh-pill{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--cmh-line-2);border-radius:999px;padding:7px 12px;font-size:12px;font-weight:900;color:var(--cmh-text);background:#fff;white-space:nowrap}
.cmh-pill.ok{border-color:rgba(17,128,95,.28);background:var(--cmh-ok-soft);color:var(--cmh-ok)}
.cmh-pill.warn{border-color:rgba(178,109,18,.28);background:var(--cmh-warn-soft);color:var(--cmh-warn)}
.cmh-pill.bad{border-color:rgba(180,35,64,.25);background:var(--cmh-danger-soft);color:var(--cmh-danger)}
.cmh-progress{height:10px;border-radius:999px;background:rgba(13,33,72,.08);overflow:hidden;margin-top:8px}
.cmh-progress>i{display:block;height:100%;background:linear-gradient(90deg,var(--cmh-primary),var(--cmh-accent));width:0%}
.cmh-mini-breakdown{display:flex;flex-direction:column;gap:4px;margin-top:10px;font-size:12px;color:var(--cmh-muted);font-weight:600}
.cmh-inline-stat{border:1px solid var(--cmh-line);border-radius:14px;padding:12px;background:#fff;display:flex;flex-direction:column;gap:6px}
.cmh-inline-stat-label{font-size:12px;color:var(--cmh-muted);font-weight:700}
.cmh-inline-stat-value{font-size:18px;font-weight:900;letter-spacing:-.03em;color:var(--cmh-text)}
.cmh-hero{padding:8px 2px 6px}
.cmh-hero-overline{text-transform:uppercase;letter-spacing:.14em;font-size:11px;font-weight:800;color:var(--cmh-primary);opacity:.75}
.cmh-hero-title{margin:4px 0 0;font-size:28px;line-height:1.05;letter-spacing:-.05em;color:var(--cmh-text)}
.cmh-hero-sub{margin-top:8px;color:var(--cmh-muted);max-width:54ch;font-size:14px;line-height:1.55}
.cmh-activity-card,.cmh-order-card,.cmh-room{appearance:none;text-align:left;color:inherit;width:100%;cursor:pointer}
.cmh-activity-card{padding:16px}
 .cmh-nav{position:fixed;left:0;right:0;bottom:0;z-index:40;height:calc(var(--cmh-navh) + env(safe-area-inset-bottom));padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,.96);backdrop-filter:saturate(180%) blur(16px);border-top:1px solid var(--cmh-line-2);box-shadow:0 -12px 30px rgba(9,25,53,.10);display:flex;gap:8px;align-items:center;justify-content:space-between}
@media (min-width:760px){
  .cmh-app{max-width:calc(var(--cmh-max) + 148px);padding-left:134px;padding-bottom:24px}
  .cmh-nav{left:18px;right:auto;top:90px;bottom:18px;transform:none;max-width:none;width:100px;height:auto;padding:18px 12px;background:linear-gradient(180deg,#163b80 0%,#0a2459 100%);border:1px solid rgba(216,182,82,.34);box-shadow:0 22px 54px rgba(9,25,53,.34);border-radius:28px;display:flex;flex-direction:column;gap:12px;align-items:stretch;justify-content:flex-start}
  .cmh-navbtn{flex:none;min-height:74px;color:#fff;font-size:11px;padding:10px 8px}
  .cmh-navbtn .cmh-ico,.cmh-navbtn svg,.cmh-navbtn svg *{color:#fff;fill:currentColor;stroke:currentColor}
  .cmh-navbtn span:last-child{color:#fff;opacity:1}
  .cmh-navbtn.is-active{background:linear-gradient(180deg,rgba(216,182,82,.28),rgba(216,182,82,.18));color:#fff;border-color:rgba(255,255,255,.18);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
  .cmh-main{padding-bottom:40px}
  .cmh-toast{bottom:24px}
}
.cmh-navbtn{flex:1;min-width:0;border:1px solid transparent;background:transparent;border-radius:16px;padding:8px 8px;display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer;color:rgba(13,33,72,.70);font-weight:800;font-size:11px;letter-spacing:.05em;text-transform:uppercase}
.cmh-navbtn .cmh-ico{display:flex;align-items:center;justify-content:center;line-height:18px;color:rgba(13,33,72,.86)}
.cmh-navbtn svg{width:20px;height:20px}
.cmh-navbtn.is-active{background:rgba(216,182,82,.16);color:var(--cmh-primary);border-color:rgba(216,182,82,.28)}
.cmh-sheet{position:fixed;inset:0;z-index:60;display:none}
.cmh-sheet.is-open{display:block}
.cmh-sheet-backdrop{position:absolute;inset:0;background:rgba(8,17,34,.42)}
.cmh-sheet-panel{position:absolute;left:0;right:0;bottom:0;background:#fff;border-top-left-radius:24px;border-top-right-radius:24px;box-shadow:0 -20px 60px rgba(0,0,0,.22);max-height:86vh;overflow:hidden;display:flex;flex-direction:column}
@media (min-width:760px){.cmh-sheet-panel{left:50%;transform:translateX(-50%);max-width:var(--cmh-max)}}
.cmh-sheet-handle{width:92px;height:6px;border-radius:99px;background:rgba(13,33,72,.15);margin:10px auto 4px}
.cmh-sheet-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-bottom:1px solid var(--cmh-line)}
.cmh-sheet-title{font-weight:900;font-size:18px;letter-spacing:-.03em;color:var(--cmh-text)}
.cmh-sheet-body{padding:14px;overflow:auto}
.cmh-carousel{display:flex;gap:12px;overflow:auto;padding:2px 2px 8px;scroll-snap-type:x mandatory}
.cmh-room{min-width:240px;max-width:260px;scroll-snap-align:start;border-radius:18px;border:1px solid var(--cmh-line);background:#fff;overflow:hidden;box-shadow:var(--cmh-shadow-sm)}
.cmh-room img{width:100%;height:132px;object-fit:cover;display:block;background:#f0f2f4}
.cmh-imgph{width:100%;height:132px;background:linear-gradient(135deg,#edf1f5,#d9e0ea);position:relative}
.cmh-imgph::after{content:'Habitación';position:absolute;inset:auto 14px 12px 14px;color:#71809c;font-weight:700;font-size:13px}
.cmh-room-body{padding:14px}
.cmh-room-name{font-weight:900;font-size:14px;line-height:1.45;color:var(--cmh-text)}
.cmh-bars{display:flex;gap:6px;margin-top:12px}
.cmh-bar{flex:1;height:10px;border-radius:99px;background:rgba(13,33,72,.10)}
.cmh-bar.is-occ{background:rgba(180,35,64,.42)}
.cmh-bar.is-free{background:rgba(17,128,95,.45)}
.cmh-cal{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;margin-top:10px}
.cmh-cal .cmh-cal-h{font-size:11px;color:var(--cmh-muted);text-align:center;font-weight:900;padding-bottom:4px}
.cmh-cal .cmh-day{height:46px;border-radius:14px;border:1px solid var(--cmh-line-2);display:grid;place-items:center;font-weight:900;font-size:13px;background:#fff;color:rgba(13,33,72,.86);cursor:pointer}
.cmh-cal .cmh-day.is-empty{border-color:transparent;background:transparent;pointer-events:none}
.cmh-cal .cmh-day.is-occ{background:rgba(180,35,64,.10);border-color:rgba(180,35,64,.24);color:var(--cmh-danger)}
.cmh-cal .cmh-day.is-free:hover{border-color:rgba(11,47,120,.26)}
.cmh-cal .cmh-day.is-today{outline:3px solid rgba(216,182,82,.22)}
.cmh-splits{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.cmh-split-row{display:flex;gap:8px;align-items:center}
.cmh-iconbtn{width:38px;height:38px;border-radius:12px;border:1px solid var(--cmh-line-2);background:#fff;color:var(--cmh-text);cursor:pointer;font-size:22px;line-height:1}
.cmh-footnote{padding:12px 16px 6px}
.cmh-toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--cmh-navh) + 14px + env(safe-area-inset-bottom));z-index:70;max-width:min(520px,92vw);display:none}
.cmh-toast.is-show{display:block}
.cmh-toast>div{background:#0f172a;color:#fff;padding:10px 12px;border-radius:14px;box-shadow:0 12px 34px rgba(0,0,0,.30);font-weight:800;font-size:13px}
@media (max-width:520px){
  .cmh-card-value{font-size:20px}
  .cmh-hero-title{font-size:26px}
  .cmh-btn{width:100%}
  .cmh-row>.cmh-btn{flex:1 1 100%}
}

.cmh-help-ico{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:999px;background:rgba(11,47,120,.10);color:var(--cmh-primary);font-size:13px;font-weight:900}

.cmh-activity-card:hover,.cmh-order-card:hover,.cmh-room:hover{border-color:rgba(11,47,120,.20);box-shadow:0 16px 34px rgba(9,25,53,.12)}
.cmh-activity-card:active,.cmh-order-card:active{background:rgba(11,47,120,.04)}
.cmh-activity-card:focus-visible,.cmh-order-card:focus-visible,.cmh-room:focus-visible{outline:0;box-shadow:0 0 0 3px rgba(11,47,120,.12),0 16px 34px rgba(9,25,53,.12)}

@media (min-width:760px){.cmh-top{border-top-left-radius:30px;border-top-right-radius:30px}}

.cmh-res-form-grid{display:grid;grid-template-columns:1fr;gap:12px}.cmh-floating-res{position:static;z-index:1;align-self:flex-start}.cmh-list .cmh-card{overflow:hidden}.cmh-sheet-body{padding-bottom:24px}.cmh-toast>div.is-ok{background:#0f5f47}.cmh-toast>div.is-warn{background:#8a5a11}.cmh-cal-wrap{overflow-x:auto;padding-bottom:4px}.cmh-cal-wrap .cmh-cal{min-width:336px}.cmh-top-inner{gap:16px}

@media (max-width:700px){.cmh-cal{grid-template-columns:repeat(7,minmax(40px,1fr));min-width:336px}}
@media (min-width:760px){.cmh-footnote{padding-bottom:18px}.cmh-main{padding-bottom:40px}}


.cmh-res-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap}
.cmh-res-head .cmh-floating-res{margin-left:auto}
@media (max-width:700px){
  .cmh-item{flex-wrap:wrap}
  .cmh-pill{align-self:flex-start}
  .cmh-res-head .cmh-floating-res{width:100%;margin-left:0}
}

.cmh-res-actions .cmh-btn{min-width:220px}
@media (min-width:760px){
  .cmh-res-actions .cmh-btn{min-width:0}
  .cmh-navbtn:hover{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.12)}
  .cmh-navbtn.is-active .cmh-ico, .cmh-navbtn.is-active span:last-child{color:#fff}
}
