/* Página pública de disponibilidad: misma paleta que la app (ver app.css), sin depender de ella. */
:root {
  --bg: #f6f2ea; --surface: #fffdf9; --surface-2: #eaf2f8; --text: #1f3a5f; --muted: #6b7f95;
  --primary: #1f3a5f; --primary-text: #fff; --accent: #2a8cc4; --accent-soft: #dceef8; --ok: #2f8f6a; --danger: #c9503c;
  --border: #e6dfd2; --shadow: 0 2px 12px rgb(31 58 95 / .07); --radius: 16px; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1a28; --surface: #16263a; --surface-2: #1e3148; --text: #e9eff6; --muted: #98abc1; --primary: #8fd0f0; --primary-text: #0f1a28;
    --accent: #8fd0f0; --accent-soft: #223c5a; --ok: #5fd3a0; --danger: #ff8d7a; --border: #2b4059; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1a28; --surface: #16263a; --surface-2: #1e3148; --text: #e9eff6; --muted: #98abc1; --primary: #8fd0f0; --primary-text: #0f1a28;
  --accent: #8fd0f0; --accent-soft: #223c5a; --ok: #5fd3a0; --danger: #ff8d7a; --border: #2b4059; --shadow: none; color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.muted { color: var(--muted); }
.cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 16px 6px; max-width: 1100px; margin: 0 auto; }
.cab h1 { font-size: 22px; margin: 0; }
.cab p { margin: 2px 0 0; font-size: 14px; }
.idiomas { display: flex; gap: 2px; background: var(--surface-2); border-radius: 10px; padding: 3px; flex: 0 0 auto; }
.idiomas button { padding: 4px 9px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.idiomas button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
main { max-width: 1100px; margin: 0 auto; padding: 0 16px 96px; }
.presentacion { margin: 6px 0 12px; font-size: 15px; }
.leyenda { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 10px; font-size: 14px; }
.leyenda .casa { display: flex; align-items: center; gap: 6px; }
.leyenda .sw { width: 22px; height: 9px; border-radius: 3px; background: var(--c); display: inline-block; }
.leyenda .sw.libre { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.leyenda .hor { color: var(--muted); font-size: 13px; }
.hint { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.sel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 14px; margin: 0 0 12px; }
.sel-fechas { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.link-btn { color: var(--accent); font-weight: 600; padding: 4px 6px; }
.sel-casas { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sel-casas li { display: flex; align-items: center; gap: 6px; font-size: 14px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); }
.sel-casas li .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.sel-casas li.ok { color: var(--ok); font-weight: 600; }
.sel-casas li.no { color: var(--danger); font-weight: 600; }
.meses { display: grid; gap: 14px; }
.month { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 8px; }
.month-title { font-size: 15px; margin: 0 0 6px 4px; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.dow { text-align: center; font-size: 11px; color: var(--muted); padding: 2px 0 6px; font-weight: 600; }
.day { position: relative; width: 100%; min-width: 0; border-radius: 8px; padding: 3px 0 0; display: flex; flex-direction: column; align-items: center; font-size: 14px; line-height: 1.3; background: var(--bg); }
.day.empty { background: transparent; }
.day.past { color: var(--muted); opacity: .45; cursor: default; }
.day.today { box-shadow: inset 0 0 0 2px var(--accent); font-weight: 700; }
.day.sel-a { background: var(--ok); color: #fff; }
.day.sel-b { background: var(--danger); color: #fff; }
.day.sel-rango { background: var(--accent-soft); }
.day .bars { display: flex; flex-direction: column; gap: 2px; width: 100%; min-width: 0; padding: 2px 3px 3px; }
.bar { height: 6px; border-radius: 2px; --c: transparent; box-shadow: inset 0 0 0 1px var(--border); }
.bar.ocupado { background: var(--c); box-shadow: none; }
.centro { text-align: center; margin: 14px 0; }
.btn { padding: 10px 18px; border-radius: 12px; font-weight: 600; background: var(--surface-2); }
.btn.primary { background: var(--primary); color: var(--primary-text); box-shadow: 0 4px 14px rgb(31 58 95 / .25); }
.consulta { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; justify-content: center; background: linear-gradient(to top, var(--bg) 70%, transparent); pointer-events: none; }
.consulta .btn { pointer-events: auto; font-size: 16px; padding: 12px 22px; }
.error { color: var(--danger); }
.pie { text-align: center; font-size: 12px; color: var(--muted); padding: 0 0 90px; }
.pie a { color: inherit; }
@media (min-width: 720px) {
  .meses { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  .cab h1 { font-size: 26px; }
}
