/* Sistema de diseño del módulo Hoteles.
 *
 * Los valores NO son nuestros: están copiados del tema Altum de la instalación
 * de 66analytics (themes/altum/assets/css/bootstrap.min.css) para que el módulo
 * parezca una pantalla más del mismo producto. Si el look de 66 cambia, se
 * vuelven a copiar de ahí. No inventar colores nuevos aquí.
 */
:root {
  --bg:        hsl(204, 12%, 97%);
  --surface:   #fff;
  --line:      hsl(214, 12%, 91%);
  --line-soft: hsl(210, 12%, 95%);
  --ink:       hsl(220, 12%, 13%);
  --ink-soft:  hsl(216, 12%, 48%);
  --ink-faint: hsl(214, 12%, 65%);
  --primary:      hsl(219, 85%, 45%);
  --primary-dark: hsl(219, 80%, 37%);
  --primary-bg:   hsl(219, 90%, 95%);
  --success:    #5ec269;
  --success-bg: #e9f6ea;
  --warning:    #b28704;
  --warning-bg: #fdf6dd;
  --danger:     #dc3545;
  --danger-bg:  #fbecee;
  --r: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --mono: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.container { max-width: 1060px; margin: 0 auto; padding: 26px 20px 64px; }

/* Miga de pan, mismo formato que custom-breadcrumbs de 66. */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-faint); margin: 0 0 14px; padding: 0; list-style: none; flex-wrap: wrap; }
.crumbs a { color: var(--ink-soft); }
.crumbs .sep { color: var(--ink-faint); }
.crumbs .on { color: var(--ink); }

h1 { font-size: 21px; font-weight: 600; margin: 0 0 4px; }
.sub { color: var(--ink-soft); font-size: 14px; margin: 0 0 22px; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 20px 22px; margin-bottom: 16px;
}
.card h2 { font-size: 15.5px; font-weight: 600; margin: 0 0 14px; }

.btn {
  display: inline-block; padding: 9px 18px; border: 1px solid var(--primary);
  border-radius: 6px; background: var(--primary); color: #fff;
  font: 500 14px var(--font); cursor: pointer; text-align: center;
}
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn.ghost { background: var(--surface); color: var(--primary); }
.btn.ghost:hover { background: var(--primary-bg); }
.btn.sm { padding: 6px 13px; font-size: 13px; }
.btn:disabled { opacity: .6; cursor: default; }

.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
}
.badge.blue  { background: var(--primary-bg); color: var(--primary-dark); }
.badge.green { background: var(--success-bg); color: #2e7d3a; }
.badge.amber { background: var(--warning-bg); color: var(--warning); }
.badge.grey  { background: var(--line-soft); color: var(--ink-soft); }

/* Aviso de demo / errores. Estilo alerta Bootstrap. */
.note { border-radius: var(--r); padding: 12px 16px; font-size: 13.5px; margin-bottom: 16px; }
.note.demo { background: var(--warning-bg); border: 1px solid #f0e2b2; color: var(--warning); }
.note.err  { background: var(--danger-bg);  border: 1px solid #efc4ca; color: var(--danger); }
.note.ok   { background: var(--success-bg); border: 1px solid #cbe8cf; color: #2e7d3a; }

/* KPIs en fila, tarjetas pequeñas como los cards de stats de 66. */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.kpi .lbl { font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
.kpi .val { font-size: 23px; font-weight: 700; line-height: 1.1; }
.kpi .sub { font-size: 12.5px; color: var(--ink-soft); margin: 4px 0 0; }
.kpi.hero { border-color: var(--primary); background: var(--primary-bg); }
.kpi.hero .val { color: var(--primary-dark); }

/* Embudo: tres barras horizontales, la anchura es el dato. */
.funnel .frow { margin-bottom: 14px; }
.funnel .ftop { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 5px; }
.funnel .ftop b { font-weight: 600; }
.funnel .fbar { height: 26px; border-radius: 5px; background: var(--line-soft); overflow: hidden; }
.funnel .fill { height: 100%; border-radius: 5px; min-width: 2px; }
.funnel .f1 .fill { background: var(--ink-faint); }
.funnel .f2 .fill { background: var(--warning); }
.funnel .f3 .fill { background: var(--primary); }
.funnel .drop { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--ink-faint); padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Lista de hoteles. */
.hotelgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.hotelcard { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; color: inherit; }
.hotelcard:hover { border-color: var(--primary); color: inherit; }
.hotelcard .hname { font-size: 16px; font-weight: 600; }
.hotelcard .hdom { font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; }
.hotelcard .hstats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; font-size: 13px; }
.hotelcard .hstats b { display: block; font-size: 16px; }
.hotelcard .hstats span { color: var(--ink-faint); font-size: 11.5px; text-transform: uppercase; letter-spacing: .02em; }

/* Formularios, mismo aire que los form-control de 66. */
label { display: block; font-size: 13.5px; font-weight: 600; margin: 14px 0 6px; }
input, select {
  width: 100%; height: 42px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 14px;
}
input:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px hsla(219, 85%, 45%, .14); }
.hint { font-size: 12.5px; color: var(--ink-faint); margin-top: 5px; line-height: 1.5; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

pre {
  background: hsl(220, 12%, 13%); color: hsl(204, 12%, 92%);
  padding: 14px 16px; border-radius: var(--r);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6;
  overflow-x: auto; white-space: pre; margin: 0;
}
code { font-family: var(--mono); font-size: .92em; background: var(--line-soft); padding: 1px 5px; border-radius: 4px; }

.topline { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; flex-wrap: wrap; }
.topline .spacer { flex: 1; }

@media (max-width: 640px) {
  .row2 { grid-template-columns: 1fr; }
  .kpi .val { font-size: 20px; }
}
