/* === Layout nuevo === */
.headerZone{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
  margin-bottom:14px;
}
@media (max-width: 1100px){
  .headerZone{grid-template-columns:1fr}
}

.headerCard{
  border:1px solid var(--border);
  border-radius:18px;
  padding:16px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
}
.hcTitle{font-weight:1100; color:#dbe6ff; margin-bottom:8px}
.hcBody{font-size:13px; line-height:1.35}

.calendarTop{margin-bottom:14px}

/* grid de abajo */
.gridBelow{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:14px;
}
@media (max-width: 1100px){
  .gridBelow{grid-template-columns:1fr}
}

/* Haz el calendario aún más “grande” */
.cal{
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  min-width: 1050px;
}
.day{
  min-height: 130px;
}



:root{
  --bg:#0b1220;
  --muted:#9cb0da;
  --text:#eaf0ff;
  --border:rgba(255,255,255,.10);

  --good:#22c55e;
  --warn:#f59e0b;
  --bad:#ef4444;
  --accent:#7aa2ff;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(122,162,255,.18), transparent 60%),
    radial-gradient(900px 500px at 80% 10%, rgba(34,197,94,.10), transparent 55%),
    var(--bg);
  color:var(--text);
}

.muted{color:var(--muted)}
code{font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color:#cfe0ff}

.topbar{border-bottom:1px solid var(--border); padding: 22px 18px}
.topbar__inner{
  max-width: 1600px; margin: 0 auto;
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:18px; flex-wrap:wrap;
}

.brand h1{margin:0; font-size:24px; letter-spacing:.2px}
.brand p{margin:8px 0 0; color:var(--muted); font-size:14px; line-height:1.35}
.brand__title{display:flex; align-items:center; gap:10px}

.badge{
  padding: 6px 10px; border:1px solid var(--border);
  border-radius:999px; background: rgba(255,255,255,.03);
  color:#cfe0ff; font-weight:900; font-size:12px;
}

.company{
  padding: 10px 12px; border:1px solid var(--border);
  border-radius:14px; background: rgba(255,255,255,.02);
}
.company__name{font-weight:1000; font-size:14px}
.company__meta{margin-top:6px; color:var(--muted); font-size:12px; display:flex; gap:8px; align-items:center; flex-wrap:wrap}
.dotSep{opacity:.7}

.wrap{max-width:1600px; margin:0 auto; padding:18px}

.grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:14px;
}
@media (max-width: 1100px){
  .grid{grid-template-columns:1fr}
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
  border:1px solid var(--border);
  border-radius:18px;
  padding:16px;
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
}
.innerCard{padding:12px}

h2{margin:0 0 12px; font-size:15px; color:#dbe6ff; font-weight:1000}

.controls{
  display:grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap:12px;
  align-items:end;
}
@media (max-width: 1300px){
  .controls{grid-template-columns: repeat(3, minmax(0,1fr))}
}
@media (max-width: 700px){
  .controls{grid-template-columns: repeat(1, minmax(0,1fr))}
}

.span2{grid-column: span 2;}
.span3{grid-column: span 3;}
@media (max-width: 1300px){
  .span2,.span3{grid-column: span 1;}
}

label{display:block; font-size:12px; color:var(--muted); margin-bottom:7px}

input, select, button, summary{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.20);
  color:var(--text);
  outline:none;
  font-size:14px;
}
.bigSelect{font-weight:900}

.btnPrimary{
  cursor:pointer; font-weight:1000;
  background: linear-gradient(180deg, rgba(122,162,255,.34), rgba(122,162,255,.16));
}
.btnPrimary:hover{filter:brightness(1.08)}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  margin-top:14px;
}
@media (max-width: 1100px){
  .split{grid-template-columns:1fr}
}

.error{
  margin-top:10px; padding:12px; border-radius:14px;
  border:1px solid rgba(239,68,68,.40);
  background: rgba(239,68,68,.12);
  color:#ffd0d8; font-size:13px; line-height:1.35;
}
.hidden{display:none}

.kpis{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:12px;
}
@media (max-width: 1300px){
  .kpis{grid-template-columns: repeat(3, minmax(0,1fr))}
}
@media (max-width: 700px){
  .kpis{grid-template-columns: repeat(2, minmax(0,1fr))}
}

.kpi{
  padding:14px;
  border:1px solid var(--border);
  border-radius:16px;
  background: rgba(255,255,255,.02);
  position:relative; overflow:hidden;
}
.kpi::before{
  content:"";
  position:absolute; left:0; top:0; bottom:0; width:7px;
  background: rgba(122,162,255,.55);
}
.kpi.good::before{background: rgba(34,197,94,.90)}
.kpi.warn::before{background: rgba(245,158,11,.95)}
.kpi.bad::before{background: rgba(239,68,68,.92)}
.kpi .t{font-size:12px; color:var(--muted); font-weight:900}
.kpi .v{font-size:24px; font-weight:1100; margin-top:8px}
.kpi .s{font-size:12px; color:var(--muted); margin-top:7px}

.tableWrap{overflow:auto}
.table{
  width:100%;
  border-collapse:collapse;
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--border);
}
.table th,.table td{
  padding:11px; font-size:13px;
  border-bottom:1px solid var(--border);
  white-space:nowrap;
}
.table th{background: rgba(255,255,255,.04); color:#cfe0ff; text-align:left; font-weight:1000}
.table tr:last-child td{border-bottom:none}

.foot{margin-top:12px; font-size:12.5px; color:var(--muted)}

.calHead{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; margin-bottom:12px; flex-wrap:wrap;
}
.calTitle{font-weight:1100; font-size:16px}
.calSub{color:var(--muted); font-size:13px}

.pill{
  padding:8px 12px;
  border:1px solid var(--border);
  border-radius:999px;
  background: rgba(255,255,255,.02);
  font-size:12.5px;
  color:var(--muted);
  font-weight:900;
}

.legend{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; font-size:12.5px; color:var(--muted)}
.dot{width:10px; height:10px; border-radius:999px; display:inline-block; margin-right:6px; vertical-align:middle}
.dot.lvl1{background:rgba(122,162,255,.18)}
.dot.lvl2{background:rgba(122,162,255,.34)}
.dot.lvl3{background:rgba(122,162,255,.50)}
.dot.lvl4{background:rgba(122,162,255,.66)}

/* Calendario mejor responsive: scroll horizontal en móvil */
.calWrap{
  overflow-x:auto;
  padding-bottom: 6px;
}
.cal{
  display:grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap:10px;
  min-width: 950px; /* para mantener 7 columnas legibles */
}
@media (max-width: 1100px){
  .cal{min-width: 900px}
}
@media (max-width: 700px){
  .cal{min-width: 860px}
}

.dow{
  font-size:12px; color:var(--muted); text-align:center;
  padding:6px 0; font-weight:1000;
  position: sticky; top: 0; backdrop-filter: blur(6px);
}

.day{
  border:1px solid var(--border);
  border-radius:16px;
  min-height:118px;
  padding:10px;
  background: rgba(255,255,255,.02);
  position:relative;
  cursor:pointer;
  transition: transform .06s ease;
}
.day:hover{transform: translateY(-1px)}
.day .d{font-weight:1100; font-size:13px}
.day .mini{margin-top:8px; font-size:12px; color:var(--muted); line-height:1.25}
.day .tag{
  position:absolute; top:10px; right:10px;
  font-size:11px; padding:4px 8px;
  border-radius:999px; border:1px solid var(--border);
  background: rgba(0,0,0,.18); color:#cfe0ff; font-weight:1000;
}
.day .bar{
  margin-top:10px; height:7px; border-radius:999px;
  background: rgba(255,255,255,.06); overflow:hidden;
}
.day .bar > div{
  height:100%;
  background: rgba(122,162,255,.70);
  width:0%;
}

/* Multi-select (habitaciones) */
.multi{position:relative}
.multi > summary{
  list-style:none;
  cursor:pointer;
  font-weight:1000;
}
.multi > summary::-webkit-details-marker{display:none}
.multi__panel{
  margin-top:10px;
  border:1px solid var(--border);
  border-radius:14px;
  background: rgba(0,0,0,.22);
  padding:10px;
  max-height: 240px;
  overflow:auto;
}
.multi__opt{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 6px;
  border-radius:10px;
}
.multi__opt:hover{background: rgba(255,255,255,.04)}
.multi__opt input{width:18px; height:18px; margin:0}
.multi__footer{
  display:flex;
  gap:8px;
  margin-top:10px;
}
.btnSmall{
  padding:10px 10px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(122,162,255,.14);
  font-weight:1000;
  cursor:pointer;
}
.btnSmallSecondary{
  background: rgba(255,255,255,.08);
}

/* Day detail panel */
.dayDetail{
  margin-top:14px;
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px;
  background: rgba(255,255,255,.02);
}
.dayDetail__title{font-weight:1100; color:#dbe6ff; margin-bottom:6px}
.dayDetail__body{font-size:13px; color:var(--muted); line-height:1.35}
.dayDetail__list{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.dayRow{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:10px;
  border:1px solid var(--border);
  border-radius:14px;
  background: rgba(0,0,0,.16);
}

/* === Layout: Sidebar === */
.page-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 1000px) {
  .page-grid { grid-template-columns: 1fr; }
}

.sidebar {
  position: sticky;
  top: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar h2 {
  font-size: 14px; margin-bottom: 10px; color: #fff;
}

.filter-box {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}


/* Navigation Shared */
.mainNav {
  display: flex;
  gap: 20px; 
  font-size: 0.95rem; 
  font-weight: 600; 
  margin-left: 40px; 
}
.navLink { 
  color: var(--muted); 
  text-decoration: none; 
  padding: 5px 0; 
  border-bottom: 2px solid transparent; 
  transition: all 0.2s; 
}
.navLink:hover, .navLink.active { 
  color: #fff; 
  border-bottom-color: var(--accent); 
}
@media (max-width: 768px) { 
  .mainNav { 
      margin-left: 0; 
      margin-top: 10px; 
      flex-wrap: wrap; 
      gap: 15px; 
  } 
}
