/* === Happy Host theme — Base gris neutra / color solo en detalles === */
:root{
  /* ── Acentos: SOLO botones, estados, links, gráficos ──── */
  --hh-primary:      #5BA4B0;   /* Teal — links / detalles activos */
  --hh-primary-dark: #23262B;   /* Carbón — botón primario / acento*/
  --hh-primary-soft: #EAF4F6;   /* Teal suave — chips de marca     */
  --hh-ink-accent:   #23262B;   /* Carbón — sidebar activo / dark   */
  --hh-ink-accent-d: #16181C;   /* Carbón hover                     */
  --hh-accent:       #E25843;   /* Coral — alertas / pendientes    */
  --hh-accent-soft:  #FAEAE7;   /* Coral soft — badge bg           */
  --hh-ok:           #3F7D5A;   /* Verde — tendencia positiva      */
  --hh-ok-soft:      #E7F0EA;
  --hh-down:         #C0492F;   /* Rojo terracota — tendencia neg. */

  /* ── Base neutra (gris cálido / vintage) ──────────────── */
  --hh-text:  #2B2A27;          /* Tinta casi negra cálida         */
  --hh-muted: #82796E;          /* Gris cálido — texto secundario  */
  --hh-faint: #A9A49A;          /* Gris tenue — labels / hints     */
  --hh-line:  #E6E3DC;          /* Borde gris cálido               */
  --hh-soft:  #F4F2EC;          /* Superficie / header de sección  */
  --hh-bg:    #FAF9F5;          /* Fondo de página                 */
  --hh-card:  #FFFFFF;          /* Cards / tablas                  */

  --hh-shadow-sm: 0 1px 8px rgba(30, 63, 78, .06);
  --hh-shadow-md: 0 4px 20px rgba(30, 63, 78, .10);
  --hh-radius-sm: 10px;
  --hh-radius-md: 16px;
  --hh-radius-lg: 20px;
}

html {
  font-size: 16px;
  background: var(--hh-bg);
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--hh-bg);
  color: var(--hh-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* =========================
   Navbar
   ========================= */
.bg-hh {
  background: var(--hh-primary-dark) !important;
}

.navbar {
  padding-top: .9rem;
  padding-bottom: .9rem;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255,255,255,.92);
  font-weight: 500;
  letter-spacing: .01em;
  border-radius: 999px;
  padding: .45rem .85rem !important;
  transition: all .2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: #fff;
  background: rgba(255,255,255,.10);
}

.navbar-brand {
  display: flex;
  align-items: center;
  margin-right: 1rem;
}

/* Marca: ícono + wordmark (contexto define el color del texto) */
.hh-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.hh-brand-ico {
  width: 56px;
  height: 56px;
  display: block;
  flex-shrink: 0;
}
.hh-brand-word {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -.01em;
  line-height: 1;
  white-space: nowrap;
}

/* Navbar mobile (fondo carbón) → texto blanco */
.navbar-brand .hh-brand-word { color: #fff; }

@media (max-width: 575.98px){
  .navbar-brand .hh-brand-ico{ width: 28px; height: 28px; }
  .navbar-brand .hh-brand-word{ font-size: 1rem; }
}

/* =========================
   Layout general
   ========================= */
.container {
  position: relative;
}

main.pb-3 {
  padding-top: 1.5rem;
}

footer.footer {
  background: transparent;
  color: var(--hh-muted) !important;
  font-size: .96rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-color: var(--hh-line) !important;
}

/* =========================
   Tipografía
   ========================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--hh-text);
  letter-spacing: -.02em;
}

h1 {
  font-weight: 700;
}

h2 {
  font-weight: 700;
}

h3, h4 {
  font-weight: 600;
}

p, li, span, label, td, th, input, select, textarea, button {
  font-weight: 400;
}

/* Links */
a {
  color: var(--hh-primary);
  transition: color .2s ease;
}

a:hover {
  color: var(--hh-primary-dark);
}

/* =========================
   Botones
   ========================= */
.btn {
  border-radius: 12px;
  font-weight: 600;
  padding: .55rem .95rem;
  box-shadow: none;
  transition: all .2s ease;
}

.btn-primary {
  background-color: var(--hh-primary-dark);
  border-color: var(--hh-primary-dark);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #15303B !important;
  border-color: #15303B !important;
  transform: translateY(-1px);
}

.btn-outline-primary {
  color: var(--hh-primary);
  border-color: var(--hh-primary);
  border-radius: 12px;
}

.btn-outline-primary:hover {
  background-color: var(--hh-primary);
  border-color: var(--hh-primary);
}

.btn-secondary {
  border-radius: 12px;
}

/* =========================
   Formularios
   ========================= */
.form-control,
.form-select {
  border-radius: 12px;
  border: 1px solid var(--hh-line);
  background: #ffffff;
  color: var(--hh-text);
  padding: .65rem .85rem;
  box-shadow: none;
}

.form-control:focus,
.form-select:focus {
  background: #ffffff;
  border-color: rgba(91, 164, 176, .55);
  box-shadow: 0 0 0 .2rem rgba(91, 164, 176, .14);
}

.form-check-input:checked {
  background-color: var(--hh-primary);
  border-color: var(--hh-primary);
}

/* =========================
   Alertas / badges
   ========================= */
.alert {
  border-radius: 14px;
}

.alert-info {
  background-color: var(--hh-primary-soft);
  border-color: rgba(91,164,176,.25);
  color: var(--hh-text);
}

.badge {
  border-radius: 999px;
  padding: .42rem .65rem;
  font-weight: 600;
}

/* =========================
   Cards reutilizables
   ========================= */
.hh-card{
  border: 1px solid var(--hh-line);
  border-radius: var(--hh-radius-lg);
  background: var(--hh-card);
  box-shadow: var(--hh-shadow-sm);
  margin-bottom: 18px;
  overflow: hidden;
}

.hh-card-header{
  padding: 16px 18px;
  font-weight: 700;
  color: var(--hh-text);
  border-bottom: 1px solid var(--hh-line);
  background: var(--hh-soft);
}

.hh-card-body{
  padding: 18px;
}

/* Cards Bootstrap en general */
.card {
  border: 1px solid var(--hh-line);
  border-radius: var(--hh-radius-lg);
  box-shadow: var(--hh-shadow-sm);
  overflow: hidden;
  background: var(--hh-card);
}

.card-header {
  background: var(--hh-soft);
  border-bottom: 1px solid var(--hh-line);
  font-weight: 700;
}

/* =========================
   Tablas globales
   ========================= */
.table{
  background: var(--hh-card);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--hh-shadow-sm);
  margin: 0 auto 18px auto;
  font-size: .92rem;
  width: 100%;
}

.table > :not(caption) > * > *{
  padding: .55rem .75rem;
}

.table thead th{
  font-size: .80rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--hh-muted);
  background: var(--hh-soft) !important;
  border-bottom: 1.5px solid var(--hh-line) !important;
  white-space: nowrap;
  font-weight: 700;
}

.table tbody td{
  vertical-align: middle;
  border-color: var(--hh-line) !important;
  background-color: transparent !important;
}

.table tbody tr{
  background: var(--hh-card);
}

.table tbody tr:hover{
  background: var(--hh-soft) !important;
}

.table tfoot td{
  font-weight: 700;
  border-top: 2px solid var(--hh-line) !important;
  background: var(--hh-soft) !important;
}

.table .btn{
  padding: .28rem .55rem;
  font-size: .80rem;
  border-radius: 10px;
}

.table .badge,
.table .chip{
  font-size: .72rem;
  padding: .16rem .45rem;
}

.table.table-sm > :not(caption) > * > *{
  padding: .40rem .55rem;
}

.table.sticky-first th:first-child,
.table.sticky-first td:first-child{
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--hh-card);
  box-shadow: 2px 0 0 0 #E3ECEF;
}

.table.table-striped tbody tr[class*="table-"] > *,
.table.table-striped tbody tr[class*="table-"]:nth-of-type(odd) > *{
  --bs-table-accent-bg: transparent;
  background-color: inherit !important;
}

/* Estados de filas más alineados al estilo Happy Host */
.table > tbody > tr.table-success > td,
.table > tbody > tr.table-success > th {
  background-color: #D2E8EC !important;
  color: #1E3F4E !important;
  border-color: #BBDCE2 !important;
}

.table > tbody > tr.table-warning > td,
.table > tbody > tr.table-warning > th {
  background-color: #FBE3DC !important;
  color: #8A3A28 !important;
  border-color: #F4D0C6 !important;
}

/* =========================
   Utilidades
   ========================= */
.hh-num{
  text-align: right;
}

.truncate{
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================
   Owner page – estilos
   ========================= */
.owner-page .summary-card{
  background: #ffffff;
  border: 1px solid rgba(91,164,176,.25);
  border-radius: 18px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1rem;
  box-shadow: var(--hh-shadow-sm);
}

.owner-page .summary-title{
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hh-text);
}

.owner-page .summary-kv{
  margin-right: 1.25rem;
}

.owner-page .summary-note{
  color: var(--hh-muted);
  font-size: .92rem;
}

.owner-page .summary-rendir-label{
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 800;
  color: var(--hh-primary-dark);
  margin-bottom: .25rem;
  font-size: .82rem;
}

.owner-page .summary-rendir-amount{
  font-weight: 800;
  font-size: 1.95rem;
  line-height: 1.1;
  color: var(--hh-primary-dark);
}

@media (max-width: 767.98px){
  .owner-page .summary-rendir-amount{
    font-size: 1.6rem;
  }
}

/* Chips portal */
.owner-page .chip{
  display: inline-block;
  padding: .18rem .55rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .82rem;
}

.owner-page .chip-directa{
  background: #DFF0F3;
  color: #1E5560;
}

.owner-page .chip-booking{
  background: #dbe7f6;
  color: #26456b;
}

.owner-page .chip-airbnb{
  background: #f6dddd;
  color: #7a2f37;
}

.owner-page .table{
  border-radius: 16px;
  overflow: hidden;
}

/* =========================
   Dropdown usuario
   ========================= */
.hh-user-dropdown .dropdown-toggle {
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  background: transparent;
  box-shadow: none !important;
  border-radius: 999px;
  padding: .5rem .85rem;
}

.hh-user-dropdown .dropdown-toggle:hover,
.hh-user-dropdown .dropdown-toggle:focus,
.hh-user-dropdown .dropdown-toggle:active {
  color: #fff;
  background: rgba(255,255,255,.10);
}

.hh-user-dropdown .dropdown-menu {
  min-width: 220px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--hh-shadow-md);
  padding: .5rem 0;
  margin-top: .5rem;
  background: #ffffff;
}

.hh-user-dropdown .dropdown-item {
  padding: .75rem 1rem;
  font-weight: 600;
  color: var(--hh-text);
}

.hh-user-dropdown .dropdown-item:hover {
  background-color: var(--hh-primary-soft);
}

.hh-user-dropdown .dropdown-divider {
  margin: .35rem 0;
}

.hh-user-dropdown .logout-btn {
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  padding: .75rem 1rem;
  font-weight: 600;
  color: var(--hh-text);
}

.hh-user-dropdown .logout-btn:hover {
  background-color: var(--hh-primary-soft);
}

/* =========================
   Títulos principales de páginas
   ========================= */
.display-4,
h1.display-4 {
  font-weight: 400;
  letter-spacing: -.03em;
  color: var(--hh-text);
}

/* =========================
   Contenedores de tabla
   ========================= */
.table-responsive {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table.table-sm{
  width: 100%;
  table-layout: auto;
}

h4 + p.text-muted.small + .table,
h4 + .table,
h4 + p + .table {
  margin-top: 0.75rem;
}

/* =========================
   Sombras y paneles suaves
   ========================= */
.shadow-sm {
  box-shadow: var(--hh-shadow-sm) !important;
}

.shadow {
  box-shadow: var(--hh-shadow-md) !important;
}

/* =========================
   Dropzones / uploads
   ========================= */
.dropzone{
  border: 2px dashed #B9CDD3;
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  color: #6c757d;
  cursor: pointer;
  background: var(--hh-soft);
  transition: all .2s ease;
}

.dropzone.dz-hover{
  border-color: var(--hh-primary);
  background: var(--hh-primary-soft);
  color: var(--hh-primary-dark);
}

.dropzone img{
  max-height: 140px;
  max-width: 100%;
  border-radius: 10px;
}

/* =========================
   Mobile / tablet
   ========================= */
@media (max-width: 991.98px){
  .navbar-collapse{
    padding-top: .75rem;
  }

  .navbar-dark .navbar-nav .nav-link {
    padding: .55rem .7rem !important;
    border-radius: 10px;
  }
}

@media (max-width: 768px){
  main.pb-3 {
    padding-top: 1rem;
  }

  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hh-card-header{
    font-size: .95rem;
    padding: 14px 14px;
  }

  .hh-card-body{
    padding: 14px;
  }

  .table{
    font-size: .88rem;
    border-radius: 14px;
  }

  .table > :not(caption) > * > *{
    padding: .48rem .58rem;
  }

  .table thead th{
    font-size: .74rem;
  }

  .btn {
    padding: .52rem .85rem;
  }

  .form-control,
  .form-select {
    padding: .6rem .78rem;
  }

  .owner-page .summary-card{
    padding: 1rem;
    border-radius: 16px;
  }

  .hh-user-dropdown .dropdown-toggle {
    margin-top: .5rem;
  }
}

@media (max-width: 575.98px){
  html {
    font-size: 15px;
  }

  h1.display-4,
  .display-4 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.45rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hh-card{
    border-radius: 16px;
  }

  .table{
    font-size: .84rem;
  }

  .table > :not(caption) > * > *{
    padding: .42rem .48rem;
  }

  .badge {
    font-size: .68rem;
  }

  .dropzone{
    padding: .85rem;
    font-size: .95rem;
  }
}
/* =========================
   Página Alojamientos
   ========================= */

/* Fila de propiedad inactiva — atenuada */
.aloj-row-inactiva td {
  opacity: .48;
}

/* Botón ojo — visibilidad web */
.aloj-btn-ojo {
  border: none;
  background: transparent;
  padding: .25rem .4rem;
  border-radius: 8px;
  line-height: 1;
  transition: all .18s ease;
}

.aloj-btn-ojo.visible {
  color: var(--hh-primary);
}

.aloj-btn-ojo.visible:hover {
  background: var(--hh-primary-soft);
  color: var(--hh-primary-dark);
}

.aloj-btn-ojo.oculto {
  color: var(--hh-muted);
  opacity: .55;
}

.aloj-btn-ojo.oculto:hover {
  background: #EFF4F5;
  color: var(--hh-text);
  opacity: 1;
}

/* Chips de OTA en el encabezado de columna */
.aloj-ota-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  font-size: .62rem;
  font-weight: 800;
  line-height: 1;
  margin-right: 2px;
}

.aloj-ota-chip.airbnb {
  background: #f6dddd;
  color: #7a2f37;
}

.aloj-ota-chip.booking {
  background: #dbe7f6;
  color: #26456b;
}

/* Precio OTA en celdas */
.aloj-precio-ota {
  font-weight: 600;
  font-size: .88rem;
}

/* fw-600 utility */
.fw-600 {
  font-weight: 600;
}

/* =====================================================
   FASE 1 — Layout v2 (mockup)
   Nuevas variables y clases — NO modifica las existentes
   ===================================================== */

:root {
  /* Paleta v2 — Gris neutro / acentos en detalles */
  --hh-olive:  #5BA4B0;
  --hh-dark:   #23262B;
  --hh-cream:  #FFFFFF;
  --hh-terra:  #E25843;
  --hh-border: #E6E3DC;
  --hh-ink:    #2B2A27;

  /* Dimensiones del layout */
  --sidebar-w: 220px;
  --nav-h:     56px;
}

/* ── Navbar: fondo sólido en lugar de gradiente ──────── */
.bg-hh {
  background: var(--hh-dark) !important;
}

/* ── Logo compacto en la nueva navbar ───────────────── */
.hh-logo-nav {
  height: 40px !important;
  width: auto !important;
  max-width: 160px;
  object-fit: contain;
  filter: none !important;
}

/* ── Wrapper flex principal (post-navbar) ────────────── */
.app-layout {
  display: flex;
  min-height: calc(100vh - var(--nav-h));
}

/* ── Sidebar (claro) ─────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: #FFFFFF;
  border-right: 1px solid var(--hh-line);
  display: flex;
  flex-direction: column;
  padding: 10px 0 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

/* Etiquetas de sección */
.sb-section {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--hh-faint);
  padding: 14px 18px 5px;
  margin-top: 2px;
}

/* Ítem de navegación */
.sb-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  margin: 1px 8px;
  border-radius: 8px;
  font-size: .83rem;
  font-weight: 500;
  color: var(--hh-muted);
  text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
  line-height: 1.3;
  position: relative;
}

.sb-item:hover {
  background: var(--hh-soft);
  color: var(--hh-text);
  text-decoration: none;
}

.sb-item.active {
  background: var(--sb-color, #5BA4B0);
  color: var(--sb-ink, #fff);
  font-weight: 600;
}

.sb-icon {
  font-size: 0;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: inline-block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 32px 32px;
  filter: brightness(0);
  opacity: .5;
}

.sb-item:hover .sb-icon { opacity: .8; }
/* Ítem activo: glifo legible sobre el color elegido (blanco por defecto,
   negro si el color es claro; el tono lo decide el JS via --sb-glyph). */
.sb-item.active .sb-icon { filter: var(--sb-glyph, brightness(0) invert(1)); opacity: 1; cursor: pointer; }

/* Badge de no-leídos en el ítem de menú (ej: Mensajes) */
.sb-badge {
  position: absolute;
  top: 4px;
  right: 12px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background: #e53e3e;
  color: #fff;
  border-radius: 9px;
  font-size: .63rem;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--hh-bg, #fff);
}
/* Colapsado: el badge se apoya en la esquina del ícono */
.sidebar--collapsed .sb-badge {
  top: 4px;
  right: 6px;
}

/* ── Color elegible del ítem activo ──
   El fondo del ítem seleccionado (= cuadrado del ícono en modo colapsado)
   toma el color que elige el usuario. Se guarda por página en el navegador
   y se aplica tocando el ícono (abre el selector de color nativo). */
/* Expandido: píldora del color elegido con una sombra suave. */
.sb-item.active { box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
/* Colapsado: círculo centrado detrás del ícono (como la maqueta), del color
   elegido. Sin caja rectangular ni sombra para que se vea el círculo limpio. */
.sidebar--collapsed .sb-item.active {
  background: radial-gradient(circle at 50% 50%,
              var(--sb-color, #5BA4B0) 0 21px, transparent 22px);
  box-shadow: none;
}

.sb-item[data-title="Inicio"] .sb-icon { background-image: url('/img/nav/inicio.svg'); }
.sb-item[data-title="Reservas"] .sb-icon { background-image: url('/img/nav/reservas.svg'); }
.sb-item[data-title="Calendario"] .sb-icon { background-image: url('/img/nav/calendario.svg'); }
.sb-item[data-title="Mensajes"] .sb-icon { background-image: url('/img/nav/mensajes.svg'); }
.sb-item[data-title="Propietario"] .sb-icon,
.sb-item[data-title="Mi cuenta"] .sb-icon { background-image: url('/img/nav/propietario.svg'); }
.sb-item[data-title="Alojamientos"] .sb-icon { background-image: url('/img/nav/alojamientos.svg'); }
.sb-item[data-title="Comisiones"] .sb-icon { background-image: url('/img/nav/comisiones.svg'); }
.sb-item[data-title="Gastos"] .sb-icon,
.sb-item[data-title="Señas / Transf."] .sb-icon { background-image: url('/img/nav/gastos.svg'); }
.sb-item[data-title="Promociones"] .sb-icon { background-image: url('/img/nav/promociones.svg'); }
.sb-item[data-title="Config. Moneda"] .sb-icon { background-image: url('/img/nav/moneda.svg'); }
.sb-item[data-title="Iconos / Badges"] .sb-icon { background-image: url('/img/nav/badges.svg'); }
.sb-item[data-title="Reseñas"] .sb-icon { background-image: url('/img/nav/resenas.svg'); }
.sb-item[data-title="Objetivo"] .sb-icon,
.sb-item[data-title="Rendimiento"] .sb-icon { background-image: url('/img/nav/objetivo.svg'); }
.sb-item[data-title="Configuración"] .sb-icon { background-image: url('/img/nav/configuracion.svg'); }
.sb-item[data-title="Grupos de props."] .sb-icon { background-image: url('/img/nav/grupos.svg'); }
.sb-item[data-title="Herramientas"] .sb-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E"); }
.sb-logout-btn .sb-icon {
  background-image: url("data:image/svg+xml,%3Csvg width='96' height='96' viewBox='0 0 96 96' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M39 18H23a7 7 0 0 0-7 7v46a7 7 0 0 0 7 7h16' stroke='%23EAF4F6' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M47 48h31m0 0L66 36m12 12L66 60' stroke='%23EAF4F6' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Área de logout en el fondo del sidebar */
.sb-logout-wrap {
  margin-top: auto;
  padding: 12px 8px 0;
  border-top: 1px solid var(--hh-line);
}

.sb-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .83rem;
  font-weight: 500;
  color: rgba(234,244,246,.6);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--hh-muted);
  font-family: 'Space Grotesk', sans-serif;
  transition: background .15s, color .15s;
}

.sb-logout-btn:hover {
  background: var(--hh-accent-soft);
  color: var(--hh-down);
}

/* ── Contenido principal ─────────────────────────────── */
.app-main {
  flex: 1;
  min-width: 0;
  background: transparent;
  padding: 0 32px 28px;
  overflow-x: hidden;
}

/* ── Barra superior (utility bar, solo desktop) ──────── */
.app-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0 16px;
  margin-bottom: 8px;
  position: sticky;
  top: 0;
  background: var(--hh-bg);
  z-index: 50;
}

.app-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--hh-line);
  border-radius: 99px;
  padding: 8px 15px;
  color: var(--hh-faint);
  min-width: 230px;
}

.topbar-search svg { width: 15px; height: 15px; flex-shrink: 0; }

.topbar-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: .84rem;
  color: var(--hh-text);
  width: 100%;
  font-family: inherit;
}

.topbar-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--hh-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hh-muted);
  cursor: pointer;
  transition: background .15s, color .15s;
}

.topbar-icon-btn:hover { background: var(--hh-soft); color: var(--hh-text); }

.topbar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--hh-line);
  border-radius: 99px;
  padding: 4px 12px 4px 5px;
  cursor: pointer;
  color: var(--hh-text);
}

.topbar-user:hover,
.topbar-user:focus { background: var(--hh-soft); }

.topbar-avatar {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--hh-ink-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: .82rem;
  flex-shrink: 0;
}

.topbar-user-meta { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.topbar-user-name { font-size: .8rem; font-weight: 600; color: var(--hh-text); }
.topbar-user-role { font-size: .66rem; color: var(--hh-muted); }

@media (max-width: 991.98px) {
  .app-topbar { display: none; }
  .app-main { padding: 20px 18px; }
}
@media (max-width: 575.98px) {
  .app-main { padding: 14px 12px; }
}

/* Footer dentro del app-main */
.app-main .footer {
  font-size: .88rem;
  padding-top: .75rem;
  padding-bottom: .75rem;
  color: var(--hh-muted) !important;
}

/* ── Botón hamburger (visible solo en mobile) ────────── */
.sb-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, .85);
  padding: 7px 9px;
  border-radius: 7px;
  cursor: pointer;
  line-height: 1;
  transition: background .15s;
  margin-right: 6px;
  flex-shrink: 0;
}

.sb-toggle:hover {
  background: rgba(255, 255, 255, .13);
}

/* ── Overlay oscuro (mobile) ─────────────────────────── */
.sb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 1049;
}

.sb-overlay.sb-open {
  display: block;
}

/* ── Desktop: ocultar navbar superior (el sidebar ya provee navegación) ── */
@media (min-width: 992px) {
  header {
    display: none;
  }
  .app-layout {
    min-height: 100vh;
  }
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 991.98px) {
  .sb-toggle {
    display: inline-flex;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: calc(-1 * var(--sidebar-w));
    height: 100vh;
    z-index: 1050;
    box-shadow: none;
    transition: left .25s ease;
  }

  .sidebar.sb-open {
    left: 0;
    box-shadow: 4px 0 24px rgba(0, 0, 0, .13);
  }

  .app-main {
    padding: 20px 18px;
  }
}

@media (max-width: 575.98px) {
  .app-main {
    padding: 14px 12px;
  }
}

/* =====================================================
   FASE 2 — Componentes visuales base reutilizables
   Solo variables y clases nuevas. No modifica nada anterior.
   ===================================================== */

:root {
  --hh-gray:  #E6E3DC;
  --font-h:   'Space Grotesk', sans-serif;
  --font-b:   'Space Grotesk', sans-serif;
}

/* ── 1. PAGE HEADER ──────────────────────────────────── */

.hh-ph {
  margin-bottom: 20px;
}

.hh-ph-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hh-ph-eye {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--hh-terra);
  margin-bottom: 4px;
}

.hh-ph-title {
  font-family: var(--font-h);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--hh-dark);
  line-height: 1.15;
  margin: 0;
}

.hh-ph-title span {
  color: var(--hh-olive);
}

.hh-ph-sub {
  font-size: .85rem;
  color: var(--hh-muted);
  margin-top: 4px;
  margin-bottom: 0;
}

.hh-ph-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── 2. KPI / METRIC CARDS ───────────────────────────── */

.hh-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .hh-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hh-kpi-grid { grid-template-columns: 1fr; }
}

.hh-kpi {
  background: var(--hh-cream);
  border: 1px solid var(--hh-border);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 10px rgba(30, 63, 78, .07);
}

.hh-kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Variantes de ícono — solo paleta Happy Host */
.hh-kpi-icon--olive { background: #EAF4F6; }
.hh-kpi-icon--dark  { background: #DFEAEE; }
.hh-kpi-icon--terra { background: #FAEAE7; }
.hh-kpi-icon--gray  { background: #F0F4F5; }

.hh-kpi-body {
  min-width: 0;
  flex: 1;
}

.hh-kpi-lbl {
  font-size: .63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--hh-muted);
  margin-bottom: 3px;
}

.hh-kpi-val {
  font-family: var(--font-h);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--hh-dark);
  line-height: 1;
}

.hh-kpi-sub {
  font-size: .68rem;
  color: var(--hh-muted);
  margin-top: 3px;
}

/* ── 3. SURFACE (card blanca) ────────────────────────── */

.hh-surface {
  background: var(--hh-cream);
  border: 1px solid var(--hh-border);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(30, 63, 78, .07);
  overflow: hidden;
}

/* Acento lateral izquierdo */
.hh-surface--olive {
  border-left: 3px solid var(--hh-olive);
}

.hh-surface--terra {
  border-left: 3px solid var(--hh-terra);
}

/* Header interno */
.hh-surface-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--hh-border);
  gap: 10px;
}

.hh-surface-hd-title {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: .92rem;
  color: var(--hh-dark);
  margin: 0;
}

/* Body interno */
.hh-surface-bd {
  padding: 18px;
}

/* ── 4. TABLAS ───────────────────────────────────────── */

.hh-tbl {
  width: 100%;
  border-collapse: collapse;
}

.hh-tbl th {
  font-size: .64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--hh-muted);
  padding: 9px 14px;
  border-bottom: 1.5px solid var(--hh-line);
  background: var(--hh-soft);
  white-space: nowrap;
}

.hh-tbl td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--hh-border);
  color: var(--hh-ink);
  font-size: .84rem;
  vertical-align: middle;
}

.hh-tbl tbody tr:last-child td {
  border-bottom: none;
}

.hh-tbl tbody tr:hover td {
  background: var(--hh-soft);
  transition: background .1s;
}

/* Utilidades de celda */
.hh-tbl-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hh-tbl-bold {
  font-weight: 700;
}

.hh-tbl-muted {
  color: var(--hh-muted);
  font-size: .78rem;
}

/* Filas especiales */
.hh-tbl-subtotal td {
  background: var(--hh-soft);
  font-weight: 700;
  font-size: .82rem;
  border-top: 1px solid var(--hh-line);
}

.hh-tbl-total td {
  background: var(--hh-dark);
  color: var(--hh-cream);
  font-weight: 700;
  font-size: .84rem;
  border: none;
}

.hh-tbl-total .hh-tbl-num {
  text-align: right;
}

.hh-tbl-fam td {
  background: var(--hh-soft);
  font-weight: 700;
  font-size: .82rem;
  color: var(--hh-dark);
  border-top: 2px solid var(--hh-border);
}

/* ── 5. BADGES ───────────────────────────────────────── */

.hh-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  font-family: var(--font-b);
  line-height: 1.4;
}

/* Estados de liquidación */
.hh-badge--pend      { background: #FAEAE7; color: var(--hh-terra); }
.hh-badge--ok        { background: #E2F0F3; color: #2E7280;         }
.hh-badge--sinrendir { background: #fae8e2; color: #9e4a30;         }
.hh-badge--active    { background: #E2F0F3; color: #2E7280;         }
.hh-badge--neutral   { background: #F0F4F5; color: var(--hh-muted); }

/* Portales */
.hh-badge--airbnb    { background: #fde8e2; color: #b83729; }
.hh-badge--booking   { background: #e8edf5; color: #2c4a80; }
.hh-badge--directa   { background: #E2F0F3; color: #2E7280; }

/* ── 6. BOTONES ──────────────────────────────────────── */

.hh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  font-family: var(--font-b);
  font-weight: 600;
  font-size: .84rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
  line-height: 1.3;
}

.hh-btn:focus {
  outline: 2px solid var(--hh-olive);
  outline-offset: 2px;
}

/* Primario — tinta oscura */
.hh-btn--primary {
  background: var(--hh-dark);
  color: #fff;
  border-color: var(--hh-dark);
}

.hh-btn--primary:hover {
  background: #15303B;
  border-color: #15303B;
  color: #fff;
  text-decoration: none;
}

/* Outline teal */
.hh-btn--outline {
  background: transparent;
  color: var(--hh-olive);
  border-color: var(--hh-olive);
}

.hh-btn--outline:hover {
  background: #EAF4F6;
  color: var(--hh-olive);
  text-decoration: none;
}

/* Coral / acento */
.hh-btn--terra {
  background: var(--hh-terra);
  color: #fff;
  border-color: var(--hh-terra);
}

.hh-btn--terra:hover {
  background: #C94434;
  border-color: #C94434;
  color: #fff;
  text-decoration: none;
}

/* Ghost / neutro */
.hh-btn--ghost {
  background: transparent;
  color: var(--hh-muted);
  border-color: var(--hh-border);
}

.hh-btn--ghost:hover {
  background: #fdf0ec;
  color: var(--hh-terra);
  border-color: var(--hh-terra);
  text-decoration: none;
}

/* Modificador de tamaño */
.hh-btn--sm {
  padding: 5px 12px;
  font-size: .78rem;
}

/* =====================================================
   FASE 2b — Sidebar: colapso desktop + ajustes
   ===================================================== */

/* ── Área superior del sidebar (botón colapsar) ────── */
.sb-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px 8px;
  border-bottom: 1px solid var(--hh-line);
  margin-bottom: 6px;
  flex-shrink: 0;
}

.sb-logo {
  display: block;
  transition: opacity .15s;
}

.sb-logo .hh-brand { padding: 2px 4px; }
.sb-logo .hh-brand-word { color: var(--hh-text); }

.sidebar--collapsed .sb-logo {
  display: none;
}

.sb-collapse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--hh-soft);
  border: 1px solid var(--hh-line);
  color: var(--hh-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, color .15s, border-color .15s;
}

.sb-collapse-btn:hover {
  background: var(--hh-ink-accent);
  color: #fff;
  border-color: var(--hh-ink-accent);
}

.sb-collapse-btn svg {
  transition: transform .25s ease;
  display: block;
}

/* ── Label de texto en ítems (permite ocultarlo al colapsar) */
.sb-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity .15s;
}

/* ── Ítem deshabilitado (Mensajes, páginas no implementadas) */
.sb-item--disabled {
  opacity: .3;
  cursor: not-allowed;
  pointer-events: auto;
}

/* ── Estado COLAPSADO (desktop) ──────────────────────── */
.sidebar--collapsed {
  width: 52px;
  overflow: visible;
}

/* Colapsado: centrar verticalmente el grupo de íconos (el logout queda abajo).
   El primer bloque tras el logo empuja con margen automático arriba; el
   .sb-logout-wrap ya tiene margin-top:auto → el espacio libre se reparte y
   los íconos quedan en el centro. */
.sidebar--collapsed .sb-top + .sb-section,
.sidebar--collapsed .sb-top + .sb-item {
  margin-top: auto;
}

/* Ocultar labels de texto */
.sidebar--collapsed .sb-label {
  display: none;
}

/* Centrar ítems, solo ícono */
.sidebar--collapsed .sb-item {
  justify-content: center;
  padding: 10px 0;
  margin: 1px 4px;
  gap: 0;
  position: relative;
}

.sidebar--collapsed .sb-icon {
  width: 28px;
  height: 28px;
  background-size: 26px 26px;
}

.sidebar--collapsed .sb-item[data-title]::after,
.sidebar--collapsed .sb-logout-btn[data-title]::after {
  content: attr(data-title);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  background: #16313D;
  color: #F2F7F8;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
  box-shadow: 0 8px 22px rgba(22,49,61,.25);
  font-size: .74rem;
  font-weight: 700;
  line-height: 1;
  padding: 8px 10px;
  white-space: nowrap;
  transition: opacity .14s ease, transform .14s ease;
}

.sidebar--collapsed .sb-item[data-title]::before,
.sidebar--collapsed .sb-logout-btn[data-title]::before {
  content: "";
  position: absolute;
  left: calc(100% + 4px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  z-index: 1201;
  opacity: 0;
  pointer-events: none;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 6px solid #16313D;
  transition: opacity .14s ease, transform .14s ease;
}

.sidebar--collapsed .sb-item[data-title]:hover::after,
.sidebar--collapsed .sb-item[data-title]:focus-visible::after,
.sidebar--collapsed .sb-logout-btn[data-title]:hover::after,
.sidebar--collapsed .sb-logout-btn[data-title]:focus-visible::after,
.sidebar--collapsed .sb-item[data-title]:hover::before,
.sidebar--collapsed .sb-item[data-title]:focus-visible::before,
.sidebar--collapsed .sb-logout-btn[data-title]:hover::before,
.sidebar--collapsed .sb-logout-btn[data-title]:focus-visible::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Ocultar etiquetas de sección */
.sidebar--collapsed .sb-section {
  font-size: 0;
  padding: 6px 0;
  text-align: center;
  overflow: hidden;
}

/* Rotar la flecha del botón colapsar */
.sidebar--collapsed .sb-collapse-btn svg {
  transform: rotate(180deg);
}

/* Botón logout colapsado */
.sidebar--collapsed .sb-logout-btn {
  justify-content: center;
  padding: 10px 0;
  gap: 0;
  position: relative;
}

/* Transición suave del ancho */
.sidebar {
  transition: width .25s ease;
}

/* ── Mobile: el colapso de desktop no aplica ─────────── */
@media (max-width: 991.98px) {
  /* Ocultar botón colapsar en mobile (el hamburger en navbar lo reemplaza) */
  .sb-top {
    display: none;
  }

  /* Resetear cualquier estado colapsado si el usuario redujo la ventana */
  .sidebar--collapsed {
    width: var(--sidebar-w);
  }

  .sidebar--collapsed .sb-label {
    display: inline;
  }

  .sidebar--collapsed .sb-item {
    justify-content: flex-start;
    padding: 8px 14px;
    gap: 9px;
  }

  .sidebar--collapsed .sb-icon {
    width: 20px;
  }

  .sidebar--collapsed .sb-section {
    font-size: .6rem;
    padding: 14px 18px 5px;
    text-align: left;
  }

  .sidebar--collapsed .sb-logout-btn {
    justify-content: flex-start;
    padding: 8px 14px;
    gap: 9px;
  }
}

/* ═══════════════════════════════════════════════════════════
   CALENDARIO — Fase 3C (grid por mes — clases de apoyo)
   ═══════════════════════════════════════════════════════════ */

/* ── Controles (selector + navegación) ─────────────────────── */
.hh-cal-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 18px;
}

.hh-cal-prop-select {
  flex: 1;
  min-width: 200px;
}
.hh-cal-prop-select select {
  width: 100%;
  border: 1.5px solid var(--hh-border);
  border-radius: 8px;
  padding: 8px 32px 8px 11px;
  font-size: .84rem;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--hh-ink);
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B8A95' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color .15s;
}
.hh-cal-prop-select select:focus { border-color: var(--hh-olive); }

/* ── Navegación de mes ─────────────────────────────────────── */
.hh-cal-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hh-cal-nav-label {
  min-width: 190px;
  text-align: center;
  font-family: 'Space Grotesk', 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--hh-dark);
}

/* Botones ‹ / › / Hoy */
.hh-cal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border: 1.5px solid var(--hh-border);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--hh-ink);
  text-decoration: none;
  background: #fff;
  transition: border-color .15s, background .15s, color .15s;
  cursor: pointer;
  white-space: nowrap;
}
.hh-cal-btn:hover {
  border-color: var(--hh-olive);
  background: #f0f4ec;
  color: var(--hh-olive);
  text-decoration: none;
}
.hh-cal-btn--today {
  padding: 0 14px;
  font-size: .82rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
}

/* ── Estadísticas del mes ──────────────────────────────────── */
.hh-cal-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.hh-cal-stat {
  background: #fff;
  border: 1px solid var(--hh-border);
  border-radius: 10px;
  padding: 12px 18px;
  text-align: center;
  flex: 1;
  min-width: 100px;
  box-shadow: 0 1px 4px rgba(47, 62, 47, .05);
}
.hh-cal-stat-val {
  font-family: 'Space Grotesk', 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--hh-olive);
  line-height: 1;
}
.hh-cal-stat-lbl {
  font-size: .68rem;
  color: var(--hh-muted, #6b7468);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── Leyenda de temporadas ─────────────────────────────────── */
.hh-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 11px 18px;
}
.hh-cal-legend-label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--hh-muted, #6b7468);
  margin-right: 2px;
}
.hh-cal-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  color: var(--hh-ink);
}
.hh-cal-legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ── Cabecera del card de grilla ───────────────────────────── */
.hh-cal-grid-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--hh-border);
  flex-wrap: wrap;
  gap: 8px;
}
.hh-cal-grid-hd-title {
  font-family: 'Space Grotesk', 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: var(--hh-dark);
}

/* ── Contenedor scrollable de la grilla ────────────────────── */
.hh-cal-grid-wrap {
  overflow-x: auto;
  padding: 14px 16px 18px;
}

/* ── Grid 7 columnas ───────────────────────────────────────── */
.hh-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(100px, 1fr));
  gap: 4px;
  min-width: 680px;
}

/* Encabezado días de semana */
.hh-cal-dow {
  text-align: center;
  font-size: .67rem;
  font-weight: 700;
  color: var(--hh-olive);
  padding: 6px 0 8px;
  text-transform: uppercase;
  letter-spacing: .07em;
}

/* ── Celda de día ──────────────────────────────────────────── */
.hh-cal-day {
  min-height: 90px;
  border: 1px solid var(--hh-border);
  border-radius: 8px;
  padding: 5px 7px 7px;
  background: #fff;
  position: relative;
  overflow: hidden;
  transition: box-shadow .15s;
}
.hh-cal-day:hover {
  box-shadow: 0 2px 12px rgba(47, 62, 47, .12);
}

/* Celda vacía (inicio / fin de mes) */
.hh-cal-day-empty {
  min-height: 90px;
  border-radius: 8px;
  background: var(--hh-cream);
  opacity: .45;
}

/* Día de hoy: borde oliva */
.hh-cal-day--hoy {
  border: 2px solid var(--hh-olive) !important;
}

/* Franja superior de temporada */
.hh-cal-temp-strip {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 8px 8px 0 0;
}

/* ── Número y precio del día ───────────────────────────────── */
.hh-cal-num {
  font-size: .78rem;
  font-weight: 700;
  color: var(--hh-ink);
  margin-top: 5px;
  line-height: 1;
}
.hh-cal-num--hoy { color: var(--hh-olive); }

.hh-cal-hoy-tag {
  font-size: .52rem;
  font-weight: 400;
  color: var(--hh-olive);
  margin-left: 3px;
}

.hh-cal-price {
  font-size: .67rem;
  color: var(--hh-muted, #6b7468);
  margin-top: 3px;
  line-height: 1;
}
.hh-cal-price--temp {
  font-weight: 600;
  color: var(--hh-ink);
}

/* ── Chips IN / OUT ────────────────────────────────────────── */
.hh-cal-chips {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.hh-cal-chip {
  display: inline-block;
  font-size: .55rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: .04em;
}
.hh-cal-chip--in  { background: #d4edda; color: #1a5c2e; }
.hh-cal-chip--out { background: #fff3cd; color: #7a5300; }

/* ── Bloque de reserva ─────────────────────────────────────── */
.hh-cal-reserva {
  margin-top: 5px;
  padding: 3px 6px;
  border-radius: 5px;
  font-size: .63rem;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  word-break: break-word;
  overflow: hidden;
  transition: opacity .12s;
}
.hh-cal-reserva:hover { opacity: .85; cursor: default; }

/* Directa — verde oliva */
.hh-cal-reserva--directa { background: var(--hh-olive); }

/* Airbnb — terracota */
.hh-cal-reserva--airbnb  { background: var(--hh-terra); }

/* Booking — verde oscuro */
.hh-cal-reserva--booking { background: var(--hh-dark); }

/* ── Responsive: stats en 2 columnas en móvil ──────────────── */
@media (max-width: 600px) {
  .hh-cal-stat { min-width: calc(50% - 5px); }
  .hh-cal-nav-label { min-width: 140px; font-size: .9rem; }
}

/* Tokens temáticos (reemplazan colores fijos por CONTEXTO: fondo vs texto vs borde).
   En claro valen los originales; en oscuro los pisa html.hh-dark → sin texto invisible. */
:root {
  --hh-surface:  #ffffff;   /* fondo de tarjeta */
  --hh-surface2: #F4F2EC;   /* fondo suave / crema */
  --hh-ink2:     #2B2A27;   /* texto principal */
  --hh-muted2:   #82796E;   /* texto secundario */
  --hh-line2:    #E6E3DC;   /* bordes */
  --gcal-active: #F1EFEA;   /* fila de propiedad seleccionada en el calendario */
}

/* ═══════════════════════════════════════════════════════════════
   MODO OSCURO — global. Todo bajo html.hh-dark; el modo claro
   (sin la clase) queda intacto. Toggle en la barra superior.
   ═══════════════════════════════════════════════════════════════ */
html.hh-dark {
  /* Superficies (blanco → oscuro) */
  --hh-bg:    #15171b;
  --hh-card:  #20232a;
  --hh-soft:  #22262e;
  --hh-cream: #20232a;
  --hh-surface:  #20232a;
  --hh-surface2: #262a31;
  --hh-ink2:     #e8e5df;
  --hh-muted2:   #a8a29a;
  --hh-line2:    #34383f;
  --gcal-active: #26333a;
  /* Texto (oscuro → claro) */
  --hh-text:  #e8e5df;
  --hh-ink:   #e8e5df;
  --hh-muted: #a8a29a;
  --hh-faint: #807a71;
  /* Bordes */
  --hh-line:   #34383f;
  --hh-border: #34383f;
  --hh-gray:   #34383f;
  /* Tintes suaves de acento */
  --hh-primary-soft: #1e3238;
  --hh-accent-soft:  #3a241f;
  --hh-ok-soft:      #1e3227;
  --hh-shadow-sm: 0 1px 8px rgba(0,0,0,.40);
  --hh-shadow-md: 0 4px 20px rgba(0,0,0,.50);
}
html.hh-dark body { background: var(--hh-bg); color: var(--hh-text); }

/* Chrome */
html.hh-dark .sidebar { background: var(--hh-card); border-right-color: var(--hh-line); }
html.hh-dark .sb-icon,
html.hh-dark .sb-item.active .sb-icon { filter: brightness(0) invert(1); opacity: .92; }
html.hh-dark .app-topbar { background: transparent; }
html.hh-dark .topbar-search { background: var(--hh-card); border-color: var(--hh-line); }
html.hh-dark .topbar-search input { color: var(--hh-text); }
html.hh-dark .topbar-icon-btn { background: var(--hh-card); border-color: var(--hh-line); color: var(--hh-text); }
html.hh-dark .topbar-user { color: var(--hh-text); background: var(--hh-card); border-color: var(--hh-line); }
html.hh-dark .topbar-user:hover,
html.hh-dark .topbar-user:focus { background: var(--hh-soft); }
html.hh-dark .topbar-user-name { color: var(--hh-text); }
html.hh-dark .topbar-user-role { color: var(--hh-muted); }

/* Superficies y componentes comunes */
html.hh-dark .hh-card,
html.hh-dark .card,
html.hh-dark .modal-content,
html.hh-dark .dropdown-menu,
html.hh-dark .list-group-item { background: var(--hh-card); border-color: var(--hh-line); color: var(--hh-text); }
html.hh-dark .hh-card-body,
html.hh-dark .card-body,
html.hh-dark .card-header,
html.hh-dark .card-footer { background: var(--hh-card); color: var(--hh-text); }
html.hh-dark .table,
html.hh-dark .table > :not(caption) > * > * { color: var(--hh-text); border-color: var(--hh-line); background-color: transparent; }
html.hh-dark .form-control,
html.hh-dark .form-select,
html.hh-dark .input-group-text { background: #1b1e24; border-color: var(--hh-line); color: var(--hh-text); }
html.hh-dark .form-control::placeholder { color: var(--hh-faint); }

/* Inputs/selects/textarea de cualquier página → siempre oscuros en modo oscuro */
html.hh-dark input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=submit]):not([type=button]),
html.hh-dark textarea,
html.hh-dark select { background: #1b1e24 !important; color: var(--hh-text) !important; border-color: var(--hh-line) !important; }
html.hh-dark input::placeholder,
html.hh-dark textarea::placeholder { color: var(--hh-faint) !important; }
html.hh-dark input[type=date]::-webkit-calendar-picker-indicator,
html.hh-dark input[type=time]::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.7); }

/* Barras de scroll oscuras en modo oscuro (Chrome/Edge + Firefox) */
html.hh-dark ::-webkit-scrollbar { width: 11px; height: 11px; }
html.hh-dark ::-webkit-scrollbar-track { background: #15171b; }
html.hh-dark ::-webkit-scrollbar-thumb { background: #3a3f47; border-radius: 7px; border: 2px solid #15171b; }
html.hh-dark ::-webkit-scrollbar-thumb:hover { background: #4a505a; }
html.hh-dark ::-webkit-scrollbar-corner { background: #15171b; }
html.hh-dark * { scrollbar-color: #3a3f47 #15171b; }
html.hh-dark hr { border-color: var(--hh-line); opacity: .5; }
html.hh-dark .bg-white   { background: var(--hh-card) !important; }
html.hh-dark .text-dark  { color: var(--hh-text) !important; }
html.hh-dark .text-muted { color: var(--hh-muted) !important; }
html.hh-dark .text-body  { color: var(--hh-text) !important; }

/* Botón de cambio de tema (barra superior) */
.hh-theme-btn {
  background: transparent; border: none; cursor: pointer; font-size: 1.15rem;
  line-height: 1; padding: 6px 8px; border-radius: 9px; color: inherit;
}
.hh-theme-btn:hover { background: rgba(128,128,128,.16); }
