@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* =====================================================================
   Panel Hotel Risely — sistema visual
   Fondo oscuro con foto del hotel desenfocada, superficies de vidrio,
   acentos dorados. Basado en los mockups del equipo (oct. 2026).
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0908;
  --surface:   rgba(17, 15, 13, 0.78);   /* barras y paneles */
  --card:      rgba(24, 21, 18, 0.62);   /* tarjetas de vidrio */
  --card-solid:#18150f;
  --elev:      rgba(255, 255, 255, 0.04);
  --border:    rgba(255, 255, 255, 0.07);
  --border-2:  rgba(255, 255, 255, 0.12);
  --text:      #f4efe7;
  --muted:     #9c958b;
  --gold:      #e2b862;
  --gold-lt:   #f2d38f;
  --gold-dk:   #b48b45;
  --gold-soft: rgba(226, 184, 98, 0.14);
  --green:     #5cc48d;
  --red:       #e86a5f;
  --amber:     #e2b862;
  --blue:      #6f9cf0;
  --radius:    12px;
  --radius-lg: 18px;
  --sidebar-w: 248px;
  --topbar-h:  76px;
  --shadow:    0 18px 50px rgba(0, 0, 0, 0.45);
  --blur:      blur(18px) saturate(1.1);
}

/* El fondo va solo en <html>: si <body> tuviera fondo propio taparía las capas con z-index negativo */
html { background: var(--bg); }
body {
  color: var(--text);
  font-family: 'Inter', sans-serif; font-size: 14px; line-height: 1.55;
  min-height: 100vh; -webkit-font-smoothing: antialiased;
}

/* Fondo: lobby del hotel muy desenfocado + viñeta cálida */
body.panel::before, .login-page::before {
  content: ''; position: fixed; inset: -40px; z-index: -2;
  background: url('/public/img/lobby.jpg') center / cover no-repeat;
  filter: blur(34px) brightness(0.32) saturate(1.2);
}
body.panel::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(226, 184, 98, 0.10), transparent 60%),
    radial-gradient(900px 700px at 100% 100%, rgba(226, 184, 98, 0.07), transparent 60%),
    linear-gradient(180deg, rgba(10, 9, 8, 0.35), rgba(10, 9, 8, 0.75));
}

a { color: inherit; }
::selection { background: rgba(226, 184, 98, 0.35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.10); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(226, 184, 98, 0.35); }
::-webkit-scrollbar-track { background: transparent; }

/* ── Layout ─────────────────────────────────────────────────────────── */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, rgba(14, 12, 10, 0.92), rgba(10, 9, 8, 0.94));
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; height: 100vh; z-index: 100;
  overflow: hidden;
}
/* Resplandor dorado en la base del menú (como las plantas iluminadas del mockup) */
.sidebar::after {
  content: ''; position: absolute; left: -60px; right: -60px; bottom: -80px; height: 320px;
  background:
    radial-gradient(160px 140px at 30% 70%, rgba(226, 184, 98, 0.22), transparent 70%),
    radial-gradient(220px 160px at 70% 90%, rgba(226, 184, 98, 0.12), transparent 70%);
  filter: blur(6px); pointer-events: none;
}
.sidebar-brand {
  height: var(--topbar-h); padding: 0 24px;
  display: flex; align-items: center; justify-content: center;
}
.sidebar-logo { height: 46px; width: auto; object-fit: contain; display: block; filter: drop-shadow(0 4px 14px rgba(226, 184, 98, 0.25)); }

.sidebar-nav { flex: 1; padding: 18px 0; overflow-y: auto; position: relative; z-index: 1; }
.nav-section { padding: 14px 28px 6px; font-size: 10.5px; color: rgba(156, 149, 139, 0.75); text-transform: uppercase; letter-spacing: 1.6px; font-weight: 600; }
.nav-divider { height: 1px; margin: 10px 24px; background: linear-gradient(90deg, transparent, var(--border-2), transparent); }

.nav-item {
  position: relative; display: flex; align-items: center; gap: 12px;
  margin: 3px 14px; padding: 11px 14px; border-radius: 12px;
  color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 500;
  transition: color .2s, background .2s; border: 1px solid transparent; background: none;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item:hover { color: var(--text); background: rgba(255, 255, 255, 0.035); }
.nav-item.active {
  color: var(--gold-lt);
  background: linear-gradient(90deg, rgba(226, 184, 98, 0.20), rgba(226, 184, 98, 0.04) 85%);
  border-color: rgba(226, 184, 98, 0.18);
  box-shadow: 0 6px 24px rgba(226, 184, 98, 0.08);
}
.nav-item.active::before {
  content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--gold); box-shadow: 0 0 12px var(--gold);
}
.nav-item.active svg { color: var(--gold); }

.main { margin-left: var(--sidebar-w); flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ── Barra superior (la arma Utils.initSidebar) ─────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--topbar-h);
  display: flex; align-items: center; gap: 14px; padding: 0 36px;
  background: linear-gradient(180deg, rgba(10, 9, 8, 0.82), rgba(10, 9, 8, 0.55));
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
}
.topbar .spacer { flex: 1; }
.top-search {
  position: relative; width: min(420px, 100%); flex: 0 1 420px;
}
.top-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.top-search input {
  width: 100%; height: 44px; padding: 0 16px 0 44px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--border);
  color: var(--text); font: 13.5px 'Inter', sans-serif; outline: none; transition: border-color .2s, background .2s;
}
.top-search input::placeholder { color: var(--muted); }
.top-search input:focus { border-color: rgba(226, 184, 98, 0.5); background: rgba(255, 255, 255, 0.06); }

.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--border); color: var(--text);
  cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { border-color: rgba(226, 184, 98, 0.45); color: var(--gold-lt); }
.icon-btn .dot {
  position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%;
  background: #f0603c; box-shadow: 0 0 0 2px #14110e; display: none;
}
.icon-btn.has-dot .dot { display: block; }
.icon-btn.spinning svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.user-chip {
  display: flex; align-items: center; gap: 12px; padding: 5px 14px 5px 5px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--border); cursor: pointer;
  color: var(--text); font-family: inherit; text-align: left; transition: border-color .2s;
}
.user-chip:hover { border-color: rgba(226, 184, 98, 0.4); }
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 30%, var(--gold-lt), var(--gold-dk));
  color: #1a1308; font-weight: 700; font-size: 14px;
  box-shadow: 0 0 0 2px rgba(226, 184, 98, 0.25);
}
.user-name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.user-role { font-size: 11.5px; color: var(--muted); text-transform: capitalize; line-height: 1.2; }
.user-chip .chev { width: 14px; height: 14px; color: var(--muted); }

/* Menús desplegables (usuario, notificaciones, acciones de fila) */
.dropdown {
  position: absolute; z-index: 400; min-width: 220px; padding: 6px;
  background: rgba(22, 19, 16, 0.97); border: 1px solid var(--border-2); border-radius: 14px;
  box-shadow: var(--shadow); backdrop-filter: var(--blur);
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .15s, transform .15s;
}
.dropdown.open { opacity: 1; transform: none; pointer-events: auto; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px;
  background: none; border: none; color: var(--text); font: 13px 'Inter', sans-serif; text-align: left;
  cursor: pointer; text-decoration: none;
}
.dropdown-item svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.dropdown-item:hover { background: rgba(226, 184, 98, 0.10); }
.dropdown-item:hover svg { color: var(--gold); }
.dropdown-item.danger { color: var(--red); }
.dropdown-item.danger svg { color: var(--red); }
.dropdown-sep { height: 1px; margin: 6px 4px; background: var(--border); }
.dropdown-head { padding: 10px 12px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); }
.notif-list { max-height: 360px; overflow-y: auto; }
.notif-item { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 13px; }
.notif-item:hover { background: rgba(226, 184, 98, 0.08); }
.notif-item .sub { font-size: 11.5px; color: var(--muted); }

/* ── Contenido ──────────────────────────────────────────────────────── */
.content { padding: 34px 36px 48px; flex: 1; }

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 28px;
}
.page-title { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 600; line-height: 1.15; letter-spacing: .2px; }
.page-subtitle { font-size: 14px; color: var(--muted); margin-top: 6px; }
.page-subtitle:first-letter { text-transform: uppercase; }
.page-actions, .topbar-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.greet-sun { display: inline-block; width: 30px; height: 30px; vertical-align: -3px; margin-left: 10px; color: var(--gold); filter: drop-shadow(0 0 10px rgba(226,184,98,.6)); }

/* ── Tarjetas de vidrio ─────────────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-title { font-size: 16px; font-weight: 600; letter-spacing: .1px; }
.card-body { padding: 24px; }

/* Indicadores */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-bottom: 28px; }
.stat-card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px 24px; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.stat-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(260px 120px at 100% 0%, rgba(226, 184, 98, 0.07), transparent 70%);
}
.stat-card:hover { transform: translateY(-2px); border-color: rgba(226, 184, 98, 0.25); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35); }
.stat-head { display: flex; align-items: center; gap: 10px; }
.stat-icon {
  width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold-soft); color: var(--gold); flex-shrink: 0;
}
.stat-icon svg { width: 17px; height: 17px; }
.stat-label { font-size: 13.5px; color: #cfc8bd; font-weight: 500; }
.stat-value { font-size: 36px; font-weight: 600; line-height: 1.15; margin: 12px 0 4px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.stat-value.gold { color: var(--gold); }
.stat-value.green { color: var(--green); }
.stat-value.red { color: var(--red); }
.stat-note { font-size: 12px; color: var(--muted); }
.stats-grid.compact { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stats-grid.cinco { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1200px) { .stats-grid.cinco { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }
.stats-grid.compact .stat-value { font-size: 26px; }
.kpi-delta { display: inline-block; margin-top: 6px; }

/* ── Tablas ─────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 14px 18px; text-align: left; font-size: 12.5px; font-weight: 500; color: var(--muted);
  border-bottom: 1px solid var(--border); white-space: nowrap; background: rgba(255, 255, 255, 0.015);
}
tbody td { padding: 16px 18px; border-bottom: 1px solid var(--border); font-size: 13.5px; vertical-align: middle; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: rgba(226, 184, 98, 0.045); }
tbody tr:last-child td { border-bottom: none; }
.id-cell { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cell-sub { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.money-neg { color: var(--red); }

/* ── Estados ────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; justify-content: center; padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; white-space: nowrap;
  border: 1px solid transparent;
}
.badge-green { background: rgba(92, 196, 141, 0.14); color: #7fdcaa; border-color: rgba(92, 196, 141, 0.35); }
.badge-red   { background: rgba(232, 106, 95, 0.16); color: #f28b80; border-color: rgba(232, 106, 95, 0.38); }
.badge-amber { background: rgba(226, 184, 98, 0.12); color: var(--gold-lt); border-color: rgba(226, 184, 98, 0.38); }
.badge-gray  { background: rgba(255, 255, 255, 0.07); color: #bdb6ab; border-color: rgba(255, 255, 255, 0.10); }
.badge-blue  { background: rgba(111, 156, 240, 0.14); color: #9dbcf6; border-color: rgba(111, 156, 240, 0.35); }

/* ── Botones ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px; font: 500 13.5px 'Inter', sans-serif;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-primary {
  background: linear-gradient(180deg, var(--gold-lt), var(--gold) 55%, var(--gold-dk));
  color: #1d1408; font-weight: 600; box-shadow: 0 8px 24px rgba(226, 184, 98, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(226, 184, 98, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-outline { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: var(--border-2); }
.btn-outline:hover { border-color: rgba(226, 184, 98, 0.5); color: var(--gold-lt); }
.btn-soft { background: rgba(226, 184, 98, 0.12); color: var(--gold-lt); border-color: rgba(226, 184, 98, 0.30); }
.btn-soft:hover { background: rgba(226, 184, 98, 0.2); }
.btn-danger { background: rgba(232, 106, 95, 0.14); color: #f28b80; border-color: rgba(232, 106, 95, 0.35); }
.btn-danger:hover { background: rgba(232, 106, 95, 0.24); }
.btn-success { background: rgba(92, 196, 141, 0.14); color: #7fdcaa; border-color: rgba(92, 196, 141, 0.35); }
.btn-success:hover { background: rgba(92, 196, 141, 0.24); }
.btn-sm { padding: 7px 13px; font-size: 12.5px; border-radius: 10px; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-group { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ── Formularios ────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 12.5px; font-weight: 500; color: #c9c2b7; margin-bottom: 8px; }
.form-control {
  width: 100%; height: 44px; background: rgba(255, 255, 255, 0.045); border: 1px solid var(--border-2);
  border-radius: 12px; padding: 0 14px; color: var(--text); font: 13.5px 'Inter', sans-serif;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
textarea.form-control { height: auto; padding: 12px 14px; resize: vertical; }
.form-control:focus { border-color: rgba(226, 184, 98, 0.6); box-shadow: 0 0 0 3px rgba(226, 184, 98, 0.12); }
.form-control::placeholder { color: rgba(156, 149, 139, 0.8); }
.form-control:disabled { opacity: .6; }
select.form-control { appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239c958b' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
select.form-control option { background: #1b1814; color: var(--text); }
input[type=date].form-control { color-scheme: dark; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.input-icon { position: relative; }
.input-icon > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.input-icon > .form-control { padding-left: 42px; }

/* ── Modales ────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; padding: 12px; display: none; align-items: center; justify-content: center;
  background: rgba(5, 4, 3, 0.68); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.modal-overlay.open { display: flex; }
.modal {
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  background: linear-gradient(180deg, rgba(30, 26, 22, 0.98), rgba(20, 18, 15, 0.98));
  border: 1px solid var(--border-2); border-radius: 20px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
  animation: modalIn .2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.modal-lg { max-width: 760px; }
.modal-header { padding: 22px 26px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-family: 'Playfair Display', serif; font-size: 21px; font-weight: 600; }
.modal-close { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; padding: 6px; border-radius: 8px; }
.modal-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.modal-body { padding: 24px 26px; }
.modal-footer { padding: 16px 26px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* ── Avisos ─────────────────────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: 12px; font-size: 13px; margin-bottom: 16px; display: none; }
.alert.show { display: block; }
.alert-success { background: rgba(92, 196, 141, 0.14); color: #8fe2b5; border: 1px solid rgba(92, 196, 141, 0.32); }
.alert-error { background: rgba(232, 106, 95, 0.14); color: #f6a199; border: 1px solid rgba(232, 106, 95, 0.32); }
#hh-toast { box-shadow: var(--shadow); backdrop-filter: var(--blur); }

/* ── Filtros tipo píldora ───────────────────────────────────────────── */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.toolbar .spacer { flex: 1; }
.toolbar .input-icon { min-width: 240px; flex: 0 1 320px; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-btn {
  padding: 9px 20px; border-radius: 999px; font: 500 13px 'Inter', sans-serif;
  border: 1px solid var(--border-2); background: rgba(255, 255, 255, 0.035); color: #cfc8bd; cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover { border-color: rgba(226, 184, 98, 0.5); color: var(--gold-lt); }
.filter-btn.active {
  background: linear-gradient(180deg, var(--gold-lt), var(--gold) 60%, var(--gold-dk)); color: #1d1408; font-weight: 600;
  border-color: transparent; box-shadow: 0 6px 20px rgba(226, 184, 98, 0.25);
}
.filter-btn .count { opacity: .7; margin-left: 4px; font-weight: 500; }

/* ── Habitaciones ───────────────────────────────────────────────────── */
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.room-card {
  position: relative; overflow: hidden; cursor: pointer;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  backdrop-filter: var(--blur); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.room-card:hover { transform: translateY(-3px); border-color: rgba(226, 184, 98, 0.35); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45); }
.room-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #1b1814; }
.room-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.room-card:hover .room-photo img { transform: scale(1.05); }
.room-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 9, 8, 0.55)); }
.room-info { padding: 16px 18px 18px; }
.room-number { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; line-height: 1.1; }
.room-type { font-size: 13px; color: #cfc8bd; margin-top: 2px; text-transform: capitalize; }
.room-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.room-price { font-size: 14px; color: var(--gold); font-weight: 600; margin-top: 10px; }
.room-price span { color: var(--muted); font-weight: 400; font-size: 12px; }
.room-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.room-card.inactiva { opacity: .55; border-style: dashed; }
/* Tarjetas compactas (selección en "Nueva reserva") */
.room-card.selectable { padding: 14px 16px; }
.room-card.selectable input[type=checkbox] { display: none; }
.room-card.selectable.selected { border-color: var(--gold); background: rgba(226, 184, 98, 0.10); box-shadow: 0 0 0 1px var(--gold) inset; }
.rooms-grid.compact { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }

/* ── Login ──────────────────────────────────────────────────────────── */
.login-page { position: relative; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); }
.login-page::before { background-image: url('/public/img/hero-clean.png'); filter: blur(38px) brightness(0.28) saturate(1.2); }
.login-left { position: relative; display: flex; align-items: center; justify-content: center; padding: 96px 32px 48px; }
.login-corner-logo { position: absolute; top: 36px; left: 44px; height: 56px; width: auto; filter: drop-shadow(0 4px 14px rgba(226, 184, 98, .3)); }
.login-card {
  position: relative; width: 100%; max-width: 420px; padding: 44px 40px 40px;
  background: linear-gradient(180deg, rgba(36, 31, 26, 0.72), rgba(18, 16, 13, 0.82));
  border: 1px solid var(--border-2); border-radius: 26px;
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); box-shadow: 0 40px 100px rgba(0, 0, 0, .55);
}
.login-card::before {
  content: ''; position: absolute; left: 20%; right: 20%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-lt), transparent);
}
.login-brand { text-align: center; margin-bottom: 28px; }
.login-brand img { height: 70px; width: auto; display: block; margin: 0 auto 22px; filter: drop-shadow(0 6px 18px rgba(226, 184, 98, .35)); }
.login-brand h1 { font-family: 'Inter', sans-serif; font-size: 25px; font-weight: 600; color: var(--text); }
.login-brand p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.password-wrap { position: relative; }
.password-wrap .form-control { padding-right: 46px; }
.password-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 8px; border: none; background: none; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.password-toggle:hover { color: var(--gold-lt); }
.password-toggle svg { width: 18px; height: 18px; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: #cfc8bd; cursor: pointer; user-select: none; }
.check input { width: 17px; height: 17px; accent-color: var(--gold); cursor: pointer; }
.login-right { position: relative; margin: 14px 14px 14px 0; border-radius: 26px; overflow: hidden; border: 1px solid var(--border); }
.login-right img { width: 100%; height: 100%; object-fit: cover; object-position: 68% center; display: block; }
.login-right::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 9, 8, .55), transparent 35%), linear-gradient(0deg, rgba(10, 9, 8, .45), transparent 40%); }
.login-tagline { position: absolute; left: 36px; bottom: 32px; z-index: 1; font-family: 'Playfair Display', serif; font-size: 22px; font-style: italic; color: #fff; max-width: 360px; text-shadow: 0 4px 18px rgba(0, 0, 0, .6); }

/* ── Dashboard ──────────────────────────────────────────────────────── */
.dash-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; margin-bottom: 28px; align-items: start; }
.dash-side { display: grid; gap: 20px; }
.quote-card { position: relative; min-height: 300px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.quote-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quote-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 9, 8, 0) 30%, rgba(10, 9, 8, 0.88)); }
.quote-card p { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; font-family: 'Playfair Display', serif; font-size: 22px; line-height: 1.3; color: #fff; }
.dash-triple { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-bottom: 28px; }
.list-item { padding: 13px 24px; border-bottom: 1px solid var(--border); font-size: 13.5px; display: block; color: inherit; text-decoration: none; }
.list-item:last-child { border-bottom: none; }
a.list-item:hover { background: rgba(226, 184, 98, 0.06); }
.list-item .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.list-empty { padding: 28px 24px; text-align: center; color: var(--muted); font-size: 13.5px; }
.section-title { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 600; margin: 12px 0 18px; }
.section-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 12px 0 18px; }
.section-row .section-title { margin: 0; }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-bottom: 28px; }
.chart-grid.principal { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.chart-box { position: relative; height: 270px; }
.chart-card-wide { grid-column: 1 / -1; }
.floor-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.floor-row:last-child { border-bottom: none; }
.floor-label { min-width: 54px; font-size: 13px; font-weight: 600; }
.progress-wrap { flex: 1; height: 6px; background: rgba(255, 255, 255, 0.07); border-radius: 6px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; border-radius: 6px; background: linear-gradient(90deg, var(--gold-dk), var(--gold-lt)); transition: width .8s cubic-bezier(.4, 0, .2, 1); }
.floor-pct { min-width: 40px; text-align: right; font-size: 14px; color: var(--gold); font-weight: 600; }
.floor-detail { font-size: 11.5px; color: var(--muted); min-width: 64px; text-align: right; }
.updated-at { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.updated-at .live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(92, 196, 141, .18); }

/* ── Calendario ─────────────────────────────────────────────────────── */
.cal-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.cal-toolbar .spacer { flex: 1; }
.cal-toolbar .form-control { width: auto; height: 38px; font-size: 13px; }
.cal-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.cal-check input { accent-color: var(--gold); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: #cfc8bd; margin-bottom: 18px; }
.cal-legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 0; }
.cal-scroll { overflow: auto; max-height: calc(100vh - 330px); min-height: 220px; border-radius: var(--radius-lg); }
.cal-grid { position: relative; min-width: calc(var(--label-w) + var(--n) * 44px); }
.cal-row { display: grid; grid-template-columns: var(--label-w) repeat(var(--n), minmax(0, 1fr)); }
.cal-head { position: sticky; top: 0; z-index: 6; background: rgba(20, 17, 14, 0.97); }
.cal-label {
  position: sticky; left: 0; z-index: 4; background: rgba(22, 19, 16, 0.97);
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 8px 14px; font-size: 12.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.cal-head .cal-label { z-index: 7; background: rgba(20, 17, 14, 0.97); font-size: 12px; color: var(--muted); }
.cal-label .num-hab { font-weight: 700; font-size: 14px; }
.cal-label .tipo { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.cal-label .tipo::before { content: '· '; }
.cal-label .badge { padding: 1px 8px; font-size: 9.5px; }
.cal-row.inactiva .cal-label > *:not(.badge) { opacity: .55; }
.cal-row.inactiva .cal-cell { background: rgba(255, 255, 255, 0.025); }
.cal-day { padding: 8px 2px; text-align: center; font-size: 11.5px; color: var(--muted); border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); line-height: 1.3; }
.cal-day strong { display: block; font-size: 15px; color: var(--text); font-weight: 600; }
.cal-day.today { color: var(--gold); background: rgba(226, 184, 98, 0.14); }
.cal-day.today strong { color: var(--gold); }
.cal-cell { border-left: 1px solid rgba(255, 255, 255, 0.045); border-bottom: 1px solid var(--border); min-height: 40px; }
.cal-cell.weekend { background: rgba(255, 255, 255, 0.018); }
.cal-cell.today { background: rgba(226, 184, 98, 0.08); }
.cal-floor { background: rgba(226, 184, 98, 0.06); border-bottom: 1px solid var(--border); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.6px; color: var(--gold); }
.cal-floor span { position: sticky; left: 0; display: inline-block; padding: 8px 14px; }
.cal-today-line { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--gold); opacity: .6; z-index: 3; pointer-events: none; box-shadow: 0 0 10px var(--gold); }
.cal-bar {
  z-index: 2; margin: 5px 2px; padding: 0 10px; border-radius: 8px; font: 600 11.5px 'Inter', sans-serif;
  display: block; line-height: 28px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  cursor: pointer; border: none; text-align: left; min-width: 0; box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
  transition: filter .15s ease, transform .15s ease;
}
.cal-bar:hover { filter: brightness(1.12); transform: translateY(-1px); }
.cal-bar.clip-l { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; }
.cal-bar.clip-r { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; }
.cal-bar.PENDIENTE  { background: linear-gradient(180deg, var(--gold-lt), var(--gold)); color: #1d1408; }
.cal-bar.CONFIRMADA { background: linear-gradient(180deg, #8fb3f6, #5f8de6); color: #0b1530; }
.cal-bar.EN_CURSO   { background: linear-gradient(180deg, #78d6a3, #47b07a); color: #07170e; }
.cal-bar.FINALIZADA { background: linear-gradient(180deg, #6d6862, #57534e); color: var(--text); }
.cal-bar.CANCELADA  {
  background: repeating-linear-gradient(45deg, rgba(232, 106, 95, .28) 0 6px, rgba(232, 106, 95, .1) 6px 12px);
  color: #f28b80; outline: 1px dashed rgba(232, 106, 95, .6); outline-offset: -1px; opacity: .85;
}
.cal-tip {
  position: fixed; z-index: 300; display: none; max-width: 270px; pointer-events: none;
  background: rgba(20, 17, 14, 0.97); border: 1px solid rgba(226, 184, 98, 0.45); border-radius: 12px;
  padding: 11px 13px; font-size: 12.5px; line-height: 1.5; box-shadow: var(--shadow);
}
.cal-tip .t { font-weight: 600; margin-bottom: 4px; }
.cal-tip .m { color: var(--muted); }

/* ── Pestañas (admin, facturación) ──────────────────────────────────── */
.tab-bar { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 28px; overflow-x: auto; }
.tab-btn {
  padding: 12px 20px; background: none; border: none; color: var(--muted); font: 500 14px 'Inter', sans-serif;
  cursor: pointer; border-bottom: 2px solid transparent; transition: all .2s; margin-bottom: -1px; white-space: nowrap;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--gold-lt); border-bottom-color: var(--gold); text-shadow: 0 0 18px rgba(226, 184, 98, .35); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: modalIn .2s ease; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.section-header h3 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 600; }

/* ── Facturación / filtros en tarjeta ───────────────────────────────── */
.filters-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.filters-row .form-group { margin: 0; flex: 1 1 160px; min-width: 140px; }
.total-row td { font-weight: 600; border-top: 1px solid rgba(226, 184, 98, 0.5); color: var(--gold); background: rgba(226, 184, 98, 0.04); }

/* ── Varios ─────────────────────────────────────────────────────────── */
.muted { color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.detail-grid .form-label { color: var(--muted); margin-bottom: 4px; }
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.row-highlight { background: rgba(226, 184, 98, 0.12) !important; box-shadow: inset 3px 0 0 var(--gold); }
.empty-state { text-align: center; padding: 64px 32px; color: var(--muted); }
.empty-state svg { width: 42px; height: 42px; margin-bottom: 14px; opacity: .45; }
.char-count { font-size: 11.5px; color: var(--muted); text-align: right; margin-top: 6px; }
.char-count.bad { color: var(--red); }
.menu-toggle { display: none; }
.subhead { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 16px; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.fade-in > * { animation: fadeInUp .4s ease both; }
.fade-in > *:nth-child(2) { animation-delay: .05s; }
.fade-in > *:nth-child(3) { animation-delay: .10s; }
.fade-in > *:nth-child(4) { animation-delay: .15s; }
.fade-in > *:nth-child(5) { animation-delay: .20s; }
.fade-in > *:nth-child(6) { animation-delay: .25s; }

/* ── Nueva reserva: selección por cantidad y resumen ────────────────── */
.gold { color: var(--gold); }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 6px; min-height: 1em; }
.quick-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 12px; margin-bottom: 12px;
  border: 1px dashed rgba(226, 184, 98, .28); border-radius: var(--radius); background: rgba(226, 184, 98, .04); }
.quick-pick-label { font-size: 12px; color: var(--muted); }
.quick-pick label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.quick-pick input { width: 74px; padding: 6px 8px; }
.reserva-resumen { margin-top: 12px; font-size: 13px; line-height: 1.6; color: #cfc8bd; }
.resumen-alerta { margin-top: 6px; color: var(--red); font-weight: 500; }

/* ── Semáforo de ocupación ──────────────────────────────────────────── */
.sem-leyenda { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.sem-chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border); font-size: 13px; color: var(--text); font-family: inherit; cursor: pointer; transition: border-color .2s, background .2s; }
.sem-chip strong { font-size: 18px; font-weight: 600; }
.sem-chip.activo { border-color: rgba(226, 184, 98, .55); background: rgba(226, 184, 98, .08); }
.sem-luz { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.sem-luz.VERDE    { background: #4fc57f; box-shadow: 0 0 0 4px rgba(79, 197, 127, .16), 0 0 14px rgba(79, 197, 127, .55); }
.sem-luz.AMARILLO { background: #f0c04a; box-shadow: 0 0 0 4px rgba(240, 192, 74, .16), 0 0 14px rgba(240, 192, 74, .55); }
.sem-luz.ROJO     { background: #ec5f55; box-shadow: 0 0 0 4px rgba(236, 95, 85, .16), 0 0 14px rgba(236, 95, 85, .55); }
.sem-luz.GRIS     { background: #8a847c; box-shadow: 0 0 0 4px rgba(138, 132, 124, .14); }
.sem-piso { margin-bottom: 26px; }
.sem-piso-titulo { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.sem-piso-titulo h3 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600; }
.sem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.sem-hab { position: relative; padding: 14px 14px 12px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--border); border-left-width: 4px; cursor: default; min-height: 132px; display: flex; flex-direction: column; gap: 4px; }
.sem-hab.VERDE    { border-left-color: #4fc57f; }
.sem-hab.AMARILLO { border-left-color: #f0c04a; }
.sem-hab.ROJO     { border-left-color: #ec5f55; }
.sem-hab.GRIS     { border-left-color: #8a847c; opacity: .75; }
.sem-hab.con-reserva { cursor: pointer; }
.sem-hab.con-reserva:hover { border-color: rgba(226, 184, 98, .35); }
.sem-hab-top { display: flex; align-items: center; justify-content: space-between; }
.sem-hab-num { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; }
.sem-hab-tipo { font-size: 11.5px; color: var(--muted); text-transform: lowercase; }
.sem-hab-estado { font-size: 12px; font-weight: 600; letter-spacing: .3px; }
.sem-hab-quien { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sem-hab-pie { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11.5px; color: var(--muted); }

/* Dashboard: barra apilada por piso (disponible / reservada / ocupada / fuera de servicio) */
.stack-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .05); }
.stack-bar span { display: block; height: 100%; transition: width .8s ease; }
.stack-bar .VERDE { background: #4fc57f; } .stack-bar .AMARILLO { background: #f0c04a; }
.stack-bar .ROJO { background: #ec5f55; }  .stack-bar .GRIS { background: #8a847c; }
.floor-stack { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 6px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.floor-stack:last-child { border-bottom: none; }
.floor-stack .floor-cuenta { grid-column: 2; font-size: 11.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.floor-cuenta i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .dash-main { grid-template-columns: minmax(0, 1fr); }
  .dash-side { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .chart-grid.principal { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .login-page { grid-template-columns: 1fr; }
  .login-right { display: none; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform .3s; }
  .sidebar.open { transform: none; box-shadow: var(--shadow); }
  .main { margin-left: 0; }
  .menu-toggle { display: inline-flex; }
  .topbar { padding: 0 14px; gap: 8px; }
  .top-search { flex: 1 1 auto; }
  .user-chip .user-text, .user-chip .chev, .topbar .hide-sm { display: none; }
  .user-chip { padding: 4px; }
  .content { padding: 22px 16px 36px; }
  .page-title { font-size: 26px; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .card-header { flex-wrap: wrap; padding: 16px; }
  .modal-header, .modal-body { padding: 16px; }
  .modal-footer { padding: 12px 16px; }
  .stat-value { font-size: 30px; }
  .tab-btn { padding: 12px 14px; }
  .chart-grid { grid-template-columns: 1fr; }
  .cal-scroll { max-height: calc(100vh - 240px); }
  .toolbar .input-icon { flex: 1 1 100%; }
  .login-corner-logo { left: 24px; top: 24px; height: 44px; }
  .login-card { padding: 34px 24px 28px; }
}
@media (max-width: 480px) {
  .stats-grid, .stats-grid.compact { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-value, .stats-grid.compact .stat-value { font-size: 22px; }
  .detail-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 23px; }
  .top-search { display: none; }
  .topbar .spacer { display: block; }
}
