/**
 * Modo oscuro global — Chancay Turismo
 * Capas: fondo página → sidebars → publicaciones → header
 */
body.home-theme-dark {
  --bg: #060910;
  --card: #0f1419;
  --text: #e8ecf1;
  --text-muted: #8b9bb0;
  --border: rgba(148, 163, 184, 0.14);
  color-scheme: dark;
}

body.home-theme-dark .app-header {
  background: #0c1018 !important;
  border-bottom-color: rgba(148, 163, 184, 0.12) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35) !important;
}

body.home-theme-dark .header-profile-dropdown {
  background: #121820;
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

body.home-theme-dark .header-profile-item:hover,
body.home-theme-dark .header-profile-theme-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

body.home-theme-dark.page-coastal-nav {
  --cp-surface: #060910;
  --cp-surface-container: #0f1623;
  --cp-surface-container-low: #0c121c;
  --cp-on-surface: #eef2f7;
  --cp-on-surface-variant: #94a3b8;
  --cp-outline-variant: rgba(148, 163, 184, 0.14);
}

body.home-theme-dark.page-coastal-nav .app-header-itunes {
  background: #0c1018 !important;
  border-bottom-color: rgba(148, 163, 184, 0.12) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4) !important;
}

body.home-theme-dark .home-page.home-coastal-pulse {
  --cp-surface: #060910;
  --cp-surface-lowest: #151b28;
  --cp-surface-container: #0f1623;
  --cp-surface-container-low: #0c121c;
  --cp-surface-container-high: #1a2433;
  --cp-on-surface: #eef2f7;
  --cp-on-surface-variant: #94a3b8;
  --cp-outline-variant: rgba(148, 163, 184, 0.14);
  --cp-shadow-card: 0 2px 16px rgba(0, 0, 0, 0.38);
  --cp-secondary-container: #1a2433;
  --cp-on-secondary-container: #b8c5d6;
}

body.home-theme-dark.page-home:has(.home-coastal-pulse) .main-content {
  background: var(--cp-surface) !important;
}

body.home-theme-dark .home-page.home-coastal-pulse .home-left-col,
body.home-theme-dark .home-page.home-coastal-pulse .home-right-col {
  background: transparent;
}

body.home-theme-dark .home-page.home-coastal-pulse .home-profile-card,
body.home-theme-dark .home-page.home-coastal-pulse .home-estabs-card,
body.home-theme-dark .home-page.home-coastal-pulse .home-card-panel,
body.home-theme-dark .home-page.home-coastal-pulse .home-sidebar-card {
  background: var(--cp-surface-container) !important;
  border-color: var(--cp-outline-variant) !important;
}

body.home-theme-dark .home-page.home-coastal-pulse .home-middle-col {
  background: transparent;
}

body.home-theme-dark .home-page.home-coastal-pulse .post-fb,
body.home-theme-dark .feed-list-app .post-fb {
  --post-fb-bg: #151b28;
  --post-fb-text: #eef2f7;
  --post-fb-muted: #94a3b8;
  --post-fb-border: rgba(148, 163, 184, 0.18);
  --post-fb-bar: #1a2232;
  --post-fb-btn: rgba(148, 163, 184, 0.22);
  border-color: rgba(148, 163, 184, 0.14) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2) !important;
}

body.home-theme-dark .home-page.home-coastal-pulse .post-fb__reaction--asset {
  border-color: var(--post-fb-bg) !important;
}

body.home-theme-dark .home-page.home-coastal-pulse .post-fb__stats-left--clickable:hover:not(.is-disabled),
body.home-theme-dark .feed-list-app .post-fb__stats-left--clickable:hover:not(.is-disabled),
body.home-theme-dark .home-page.home-coastal-pulse .post-fb__stats-comments:hover,
body.home-theme-dark .feed-list-app .post-fb__stats-comments:hover {
  background: rgba(255, 255, 255, 0.06);
}

body.home-theme-dark .post-fb__reaction-picker {
  background: #1a2232;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(148, 163, 184, 0.12);
}

body.home-theme-dark .coastal-spa-route-overlay {
  background: #060910;
}

body.home-theme-dark .header-theme-switch-track {
  background: #334155;
}

body.home-theme-dark .reactions-modal-panel {
  background: #121820;
  color: #e8ecf1;
}

body.home-theme-dark .reactions-modal-tab {
  color: #94a3b8;
}

body.home-theme-dark .reactions-modal-name {
  color: #e8ecf1;
}

body.home-theme-dark .home-page.home-coastal-pulse .home-cupon-card,
body.home-theme-dark .home-page.home-coastal-pulse .home-cupon-card--stitch {
  background: var(--cp-surface-lowest) !important;
  border-color: var(--cp-outline-variant) !important;
}

body.home-theme-dark .home-page.home-coastal-pulse .home-promo-ticker,
body.home-theme-dark .home-promo-ticker-bar {
  border-color: var(--cp-outline-variant);
}

body.home-theme-dark .header-theme-switch-track {
  background: #334155;
}

body.home-theme-dark .header-theme-switch[aria-checked="true"] .header-theme-switch-track {
  background: #d90429;
}