/*
Theme Name: Kalendia Theme
Theme URI: https://kalendia.local
Author: Kalendia
Description: Tema base del sistema Kalendia para negocios de servicios.
Version: 0.1.0
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.1
Text Domain: slot-theme
*/

:root {
  --slot-bg: #f4f7fb;
  --slot-bg-dark: #0b1220;
  --slot-text: #1f2c46;
  --slot-primary: #0f5bdd;
  --slot-secondary: #0ea5a3;
  --slot-surface: #ffffff;
  --wp-admin--admin-bar--height: 0px;
  --slot-header-h: 98px;
  --slot-header-offset: var(--slot-header-h);
  --slot-header-gutter: 28px;
  --slot-sidebar-w: 274px;
  --slot-sidebar-collapsed-w: 92px;
}

* {
  box-sizing: border-box;
}

html {
  --wp-admin--admin-bar--height: 0px !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  top: 0 !important;
}

html.wp-toolbar,
body.admin-bar,
body.logged-in {
  --wp-admin--admin-bar--height: 0px !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

html[style*="margin-top"] {
  margin-top: 0 !important;
}

body {
  background:
    radial-gradient(circle at 0% 0%, #d8e8ff, transparent 45%),
    radial-gradient(circle at 90% 10%, #d3fff2, transparent 40%),
    var(--slot-bg);
  color: var(--slot-text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  margin: 0;
  padding-top: 0 !important;
  top: 0 !important;
}

body.admin-bar,
body.logged-in {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body[style*="margin-top"] {
  margin-top: 0 !important;
}

body.slot-has-header {
  padding-top: 0 !important;
}

#wpadminbar {
  display: none !important;
}

a {
  color: var(--slot-primary);
}

.slot-wrap {
  margin: 0 auto;
  max-width: 1120px;
  padding: 0 20px;
}

.slot-wrap--app {
  margin: 0;
  max-width: none;
  padding: 0;
  width: 100%;
}

.slot-header {
  margin-top: 0 !important;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid #deebf8;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 70;
}

body.admin-bar .slot-header,
body.logged-in .slot-header {
  top: 0 !important;
}

.slot-header-inner {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  min-height: calc(var(--slot-header-h) - 20px);
  padding: 10px 0;
}

.slot-header-inner--app {
  margin-left: 0;
  max-width: none;
  padding: 10px var(--slot-header-gutter);
  width: 100%;
}

.slot-header-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.slot-header-actions-primary,
.slot-header-actions-secondary {
  align-items: center;
  display: flex;
  gap: 10px;
}

.slot-header-actions-primary:empty,
.slot-header-actions-secondary:empty {
  display: none;
}

.slot-mobile-menu-toggle {
  align-items: center;
  background: #f2f6ff;
  border: 1px solid #d3ddf5;
  border-radius: 12px;
  color: #1d3769;
  cursor: pointer;
  display: none;
  font-size: 1.05rem;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 36px;
}

.slot-mobile-menu-toggle:hover {
  background: #e8efff;
}

.slot-header-auth {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.slot-header-auth-link {
  align-items: center;
  background: linear-gradient(120deg, #2a5fda, #0cc2be);
  border: 1px solid rgba(17, 73, 170, 0.24);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  min-height: 34px;
  padding: 8px 14px;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.slot-header-auth-link:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.slot-header-auth-link--ghost {
  background: #f2f6ff;
  border-color: #d1def8;
  color: #21427b;
}

.slot-tour-restart {
  align-items: center;
  background: linear-gradient(120deg, #2a5fda, #0cc2be);
  border: 1px solid rgba(17, 73, 170, 0.25);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  padding: 7px 12px;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.slot-tour-restart:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.slot-copy-booking-link {
  align-items: center;
  background: #f2f6ff;
  border: 1px solid #d1def8;
  border-radius: 999px;
  color: #21427b;
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  padding: 8px 12px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.slot-copy-booking-link:hover {
  background: #e6efff;
  transform: translateY(-1px);
}

.slot-copy-booking-link.is-copied {
  background: #e7f7ed;
  border-color: #c5e6d1;
  color: #1d6b36;
}

.slot-copy-booking-link__icon {
  align-items: center;
  display: inline-flex;
  height: 16px;
  justify-content: center;
  width: 16px;
}

.slot-copy-booking-link__icon svg,
.slot-tour-restart__icon svg {
  display: block;
  fill: currentColor;
  height: 100%;
  width: 100%;
}

.slot-tour-restart__icon {
  align-items: center;
  animation: slot-tour-restart-spin 2.4s linear infinite;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  display: inline-flex;
  height: 18px;
  justify-content: center;
  width: 18px;
}

@keyframes slot-tour-restart-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.slot-account-menu {
  position: relative;
}

.slot-account-toggle {
  align-items: center;
  background: #f5f8ff;
  border: 1px solid #d3ddf5;
  border-radius: 999px;
  color: #1d3769;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  padding: 4px 10px 4px 4px;
}

.slot-account-avatar img {
  border-radius: 999px;
  display: block;
  height: 30px;
  width: 30px;
}

.slot-account-name {
  font-size: 0.9rem;
  font-weight: 700;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-account-panel {
  background: #fff;
  border: 1px solid #dce5f6;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(22, 34, 56, 0.16);
  display: none;
  min-width: 190px;
  position: absolute;
  right: 0;
  top: 44px;
  z-index: 20;
}

.slot-account-menu.is-open .slot-account-panel {
  display: grid;
}

.slot-account-panel a {
  color: #1f2c46;
  padding: 10px 12px;
  text-decoration: none;
}

.slot-account-panel a + a {
  border-top: 1px solid #edf2fb;
}

.slot-account-panel a:hover {
  background: #f7faff;
}

.slot-notification-bell {
  position: relative;
}

.slot-notification-toggle {
  align-items: center;
  background: #f2f6ff;
  border: 1px solid #d3ddf5;
  border-radius: 999px;
  color: #1d3769;
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  padding: 6px 10px;
}

.slot-bell-icon {
  font-size: 1rem;
}

.slot-notification-count {
  background: #dd2f3d;
  border-radius: 999px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  min-width: 20px;
  padding: 4px 6px;
  text-align: center;
}

.slot-notification-panel {
  background: #fff;
  border: 1px solid #dce5f6;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(22, 34, 56, 0.16);
  display: none;
  min-width: 320px;
  position: absolute;
  right: 0;
  top: 44px;
  z-index: 20;
}

.slot-notification-bell.is-open .slot-notification-panel {
  display: block;
}

.slot-notification-head {
  align-items: center;
  border-bottom: 1px solid #edf2fb;
  display: flex;
  justify-content: space-between;
  padding: 10px;
}

.slot-notification-list {
  list-style: none;
  margin: 0;
  max-height: 360px;
  overflow: auto;
  padding: 0;
}

.slot-notification-item {
  border-bottom: 1px solid #edf2fb;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
  padding: 10px;
}

.slot-notification-item strong {
  display: block;
  margin-top: 4px;
}

.slot-notification-item p {
  margin: 4px 0;
}

.slot-notification-item small {
  color: #61739a;
  display: block;
  margin-top: 6px;
}

.slot-notification-item.is-unread {
  background: #f8fbff;
}

.slot-notification-summary {
  align-items: center;
  border-bottom: 1px solid #edf2fb;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 10px;
}

.slot-notification-summary strong {
  color: #314b7c;
  font-size: 0.84rem;
}

.slot-notification-summary--todo {
  background: #f0f6ff;
}

.slot-notification-chip {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
  padding: 3px 8px;
  text-transform: uppercase;
}

.slot-notification-chip--activity {
  background: #e8eefc;
  color: #3c578c;
}

.slot-notification-chip--todo {
  background: #fff1d8;
  color: #8a6200;
}

.slot-notification-chip--done {
  background: #ddf4e8;
  color: #2b6a48;
}

.slot-notification-link {
  color: #2158c6;
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 2px;
  text-decoration: none;
}

.slot-notification-link:hover {
  text-decoration: underline;
}

.slot-logo-wrap {
  align-items: center;
  display: inline-flex;
  flex: 1 1 auto;
  gap: 10px;
  max-width: calc(100% - 280px);
  min-width: 0;
}

.slot-kalendia-wrap,
.slot-company-wrap {
  align-items: center;
  color: #152647;
  display: inline-flex;
  min-width: 0;
  text-decoration: none;
}

.slot-company-wrap {
  flex: 1 1 auto;
  gap: 10px;
}

.slot-kalendia-image {
  display: block;
  height: 30px;
  object-fit: contain;
  width: auto;
}

.slot-kalendia-text {
  color: #0f2f69;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.slot-logo-image {
  display: block;
  height: 72px;
  object-fit: contain;
  width: auto;
}

.slot-logo-text {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-menu {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.slot-menu a {
  color: #25395f;
  text-decoration: none;
}

.slot-main {
  min-height: 100vh;
  padding: 20px 0;
}

body.slot-has-header .slot-main {
  min-height: calc(100vh - var(--slot-header-offset, var(--slot-header-h)));
  min-height: calc(100dvh - var(--slot-header-offset, var(--slot-header-h)));
  padding-top: calc(var(--slot-header-offset, var(--slot-header-h)) + 20px);
}

.slot-main--app {
  padding: 0 0 26px;
}

body.slot-has-header .slot-main--app {
  padding-top: var(--slot-header-offset, var(--slot-header-h));
}

body.slot-no-header .slot-main--app {
  padding-top: 0;
}

.slot-app-layout {
  display: block;
  gap: 0;
  min-height: calc(100vh - var(--slot-header-offset, var(--slot-header-h)));
  min-height: calc(100dvh - var(--slot-header-offset, var(--slot-header-h)));
  position: relative;
}

.slot-app-layout.slot-app-layout--collapsed {
  min-height: calc(100vh - var(--slot-header-offset, var(--slot-header-h)));
  min-height: calc(100dvh - var(--slot-header-offset, var(--slot-header-h)));
}

.slot-sidebar {
  background: linear-gradient(180deg, #012150 0%, #082a61 55%, #0c2f6d 100%);
  border: 0;
  border-radius: 0;
  box-shadow: 0 14px 30px rgba(9, 42, 104, 0.26);
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: calc(100vh - var(--slot-header-offset, var(--slot-header-h)));
  height: calc(100dvh - var(--slot-header-offset, var(--slot-header-h)));
  left: 0;
  margin: 0;
  max-height: calc(100vh - var(--slot-header-offset, var(--slot-header-h)));
  max-height: calc(100dvh - var(--slot-header-offset, var(--slot-header-h)));
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px 10px 18px;
  position: fixed;
  scrollbar-color: transparent transparent;
  scrollbar-width: none;
  top: var(--slot-header-offset, var(--slot-header-h));
  transition: width 0.25s ease, padding 0.25s ease;
  width: var(--slot-sidebar-w);
  z-index: 55;
}

.slot-sidebar-overlay {
  background: rgba(8, 23, 54, 0.36);
  border: 0;
  cursor: pointer;
  display: none;
  inset: var(--slot-header-offset, var(--slot-header-h)) 0 0 0;
  opacity: 0;
  pointer-events: none;
  padding: 0;
  position: fixed;
  transition: opacity 0.2s ease;
  z-index: 54;
}

.slot-sidebar::-webkit-scrollbar {
  width: 0;
}

.slot-sidebar:hover,
.slot-sidebar:focus-within {
  scrollbar-color: #21457f #012150;
  scrollbar-width: thin;
}

.slot-sidebar:hover::-webkit-scrollbar,
.slot-sidebar:focus-within::-webkit-scrollbar {
  width: 12px;
}

.slot-sidebar::-webkit-scrollbar-track {
  background: rgba(1, 33, 80, 0.35);
  border: 1px solid rgba(94, 140, 216, 0.22);
  border-radius: 999px;
  margin: 8px 0;
}

.slot-sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2f5aa6 0%, #1f447f 45%, #16396c 100%);
  border: 2px solid rgba(1, 33, 80, 0.55);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 4px 12px rgba(6, 33, 90, 0.45);
}

.slot-sidebar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #3864b0 0%, #244a86 45%, #193a69 100%);
}

.slot-sidebar::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #284e8b 0%, #1c3f76 45%, #14345f 100%);
}

.slot-sidebar::-webkit-scrollbar-corner {
  background: transparent;
}

.slot-sidebar-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.slot-sidebar-brand {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.slot-sidebar-toggle {
  background-image: linear-gradient(180deg, #2a5fda 0%, #0cc2be 100%);
  border: 1px solid rgba(12, 194, 190, 0.7);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  height: 34px;
  width: 34px;
}

.slot-sidebar-nav {
  display: grid;
  gap: 8px;
}

.slot-side-group-toggle,
.slot-side-group a {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 0.93rem;
  gap: 10px;
  min-height: 38px;
  padding: 8px 12px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.slot-side-group-toggle:hover,
.slot-side-group a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.slot-side-group a.is-active {
  background-image: linear-gradient(180deg, #2a5fda 0%, #0cc2be 100%);
  color: #fff;
  font-weight: 700;
}

.slot-side-group a {
  padding-left: 18px;
}

.slot-side-group {
  display: none;
  gap: 3px;
  padding-left: 2px;
}

.slot-side-group.is-open {
  display: grid;
}

.slot-side-icon {
  display: inline-flex;
  height: 16px;
  justify-content: center;
  min-width: 16px;
  opacity: 0.92;
  width: 16px;
}

.slot-side-icon svg {
  fill: currentColor;
  height: 16px;
  width: 16px;
}

.slot-side-text {
  white-space: nowrap;
}

.slot-side-item-icon {
  display: none;
  height: 16px;
  min-width: 16px;
  width: 16px;
}

.slot-side-item-icon svg {
  fill: currentColor;
  height: 16px;
  width: 16px;
}

.slot-app-layout--collapsed .slot-sidebar-brand,
.slot-app-layout--collapsed .slot-side-text {
  display: none;
}

.slot-app-layout--collapsed .slot-side-group-toggle,
.slot-app-layout--collapsed .slot-side-group a {
  justify-content: center;
  min-height: 38px;
  padding: 8px 4px;
}

.slot-app-layout--collapsed .slot-sidebar-top {
  justify-content: center;
  margin-bottom: 8px;
}

.slot-app-layout--collapsed .slot-sidebar-toggle {
  margin: 0 auto;
}

.slot-app-layout--collapsed .slot-side-group {
  padding-left: 0;
}

.slot-app-layout--collapsed .slot-side-item-icon {
  display: inline-flex;
}

.slot-app-layout--collapsed .slot-side-group a.is-active {
  margin: 0 auto;
  width: 56px;
  background-image: linear-gradient(180deg, #2a5fda 0%, #0cc2be 100%);
  color: #fff;
}

.slot-content {
  min-width: 0;
  margin-left: var(--slot-sidebar-w);
  padding: 22px 24px 0;
}

body.slot-sidebar-collapsed .slot-sidebar {
  width: var(--slot-sidebar-collapsed-w);
}

body.slot-sidebar-collapsed .slot-content {
  margin-left: var(--slot-sidebar-collapsed-w);
}

.slot-content > .slot-card:first-child,
.slot-content > .slot-hero:first-child,
.slot-content > article:first-child {
  margin-top: 0;
}

.slot-hero {
  background: linear-gradient(135deg, #0b2048, #0f5bdd 55%, #0ea5a3);
  border-radius: 24px;
  color: #ffffff;
  overflow: hidden;
  padding: 44px;
  position: relative;
}

.slot-hero::after {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 65%);
  content: "";
  height: 360px;
  position: absolute;
  right: -80px;
  top: -120px;
  width: 360px;
}

.slot-hero h1 {
  font-size: clamp(1.8rem, 2.6vw, 3rem);
  margin: 0 0 10px;
  max-width: 620px;
}

.slot-hero p {
  margin: 0;
  max-width: 660px;
}

.slot-cta {
  background: #fff;
  border-radius: 10px;
  color: #12326f;
  display: inline-block;
  font-weight: 700;
  margin-top: 18px;
  padding: 12px 18px;
  text-decoration: none;
}

.slot-footer {
  border-top: 1px solid #deebf8;
  margin-top: 20px;
  padding: 18px 0 30px;
}

.slot-footer--app .slot-wrap {
  margin-left: var(--slot-sidebar-w);
  max-width: none;
  padding: 0 24px;
  width: calc(100% - var(--slot-sidebar-w));
}

body.slot-sidebar-collapsed .slot-footer--app .slot-wrap {
  margin-left: var(--slot-sidebar-collapsed-w);
  width: calc(100% - var(--slot-sidebar-collapsed-w));
}

.slot-footer p {
  color: #4f5f7f;
  margin: 0;
}

@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden;
  }

  body.slot-has-header,
  body.slot-has-header.admin-bar,
  body.slot-has-header.logged-in {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .slot-wrap {
    padding: 0 12px;
  }

  .slot-main {
    padding: 0;
  }

  .slot-header-inner {
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: auto;
    padding: 8px 0;
  }

  .slot-header-inner--app {
    padding-left: 12px;
    padding-right: 12px;
    width: 100%;
  }

  .slot-logo-wrap {
    flex: 1 1 100%;
    gap: 8px;
    max-width: 100%;
  }

  .slot-logo-image {
    height: 56px;
  }

  .slot-kalendia-image {
    height: 24px;
  }

  .slot-logo-text {
    font-size: 0.88rem;
  }

  .slot-account-name {
    display: none;
  }

  .slot-mobile-menu-toggle {
    display: inline-flex;
  }

  .slot-header-actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
    overflow-x: auto;
    padding-bottom: 2px;
    width: 100%;
  }

  .slot-header-actions::-webkit-scrollbar {
    display: none;
  }

  .slot-header-auth {
    width: 100%;
  }

  .slot-header-auth-link {
    flex: 1 1 0;
    justify-content: center;
  }

  .slot-tour-restart {
    font-size: 0.78rem;
    padding: 6px 10px;
  }

  .slot-tour-restart__text {
    display: none;
  }

  .slot-copy-booking-link {
    font-size: 0.78rem;
    padding: 6px 10px;
    white-space: nowrap;
  }

  .slot-copy-booking-link--header {
    min-height: 34px;
  }

  .slot-copy-booking-link__text {
    display: inline;
  }

  .slot-copy-booking-link--header .slot-copy-booking-link__text {
    max-width: 40vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .slot-hero {
    padding: 28px;
  }

  .slot-sidebar {
    border-radius: 0 18px 18px 0;
    bottom: 0;
    box-shadow: 0 24px 40px rgba(9, 30, 73, 0.35);
    height: calc(100dvh - var(--slot-header-offset, var(--slot-header-h)));
    left: 0;
    max-width: calc(100vw - 56px);
    overflow-y: auto;
    padding: 14px 10px 16px;
    position: fixed;
    top: var(--slot-header-offset, var(--slot-header-h));
    transform: translateX(-110%);
    transition: transform 0.22s ease;
    width: min(280px, calc(100vw - 56px));
    z-index: 90;
  }

  body.slot-sidebar-open .slot-sidebar {
    transform: translateX(0);
  }

  .slot-sidebar-overlay {
    display: none;
  }

  body.slot-sidebar-open .slot-sidebar-overlay {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  body.slot-sidebar-open {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .slot-sidebar-top {
    margin-bottom: 10px;
  }

  .slot-sidebar-toggle {
    margin-left: auto;
  }

  .slot-content,
  body.slot-sidebar-collapsed .slot-content {
    margin-left: 0;
    padding: 14px 12px 0;
  }

  .slot-footer--app .slot-wrap,
  body.slot-sidebar-collapsed .slot-footer--app .slot-wrap {
    margin-left: 0;
    padding: 0 12px;
    width: 100%;
  }

  .slot-card {
    border-radius: 14px;
    margin: 0 auto 14px;
    max-width: 100%;
    padding: 16px;
    width: 100%;
  }

  .slot-notification-panel {
    max-width: calc(100vw - 20px);
    min-width: 0;
    right: 0;
    width: min(340px, calc(100vw - 20px));
  }

  .slot-app-layout--collapsed .slot-sidebar-brand,
  .slot-app-layout--collapsed .slot-side-text {
    display: inline;
  }

  .slot-app-layout--collapsed .slot-side-group-toggle,
  .slot-app-layout--collapsed .slot-side-group a {
    justify-content: flex-start;
    padding: 10px;
  }

  .slot-app-layout--collapsed .slot-side-item-icon {
    display: none;
  }
}

/* Professional layout pass: stronger hierarchy + cleaner rhythm */
.slot-header {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 20px rgba(16, 37, 73, 0.08);
}

.slot-header-inner {
  min-height: 70px;
  padding: 10px 0;
}

.slot-header-inner--app {
  padding-left: var(--slot-header-gutter);
  padding-right: var(--slot-header-gutter);
}

.slot-logo-wrap {
  gap: 12px;
}

.slot-kalendia-image {
  filter: drop-shadow(0 2px 6px rgba(15, 42, 91, 0.14));
  height: 32px;
}

.slot-logo-image {
  filter: drop-shadow(0 2px 6px rgba(15, 42, 91, 0.14));
  height: 78px;
}

.slot-logo-text {
  color: #152a4f;
  font-size: 1.03rem;
  letter-spacing: -0.008em;
}

.slot-sidebar {
  background: linear-gradient(180deg, #012150 0%, #082a61 55%, #0c2f6d 100%);
  box-shadow: 0 16px 30px rgba(8, 35, 90, 0.28);
}

.slot-sidebar-top {
  margin-bottom: 12px;
}

.slot-sidebar-toggle {
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.slot-sidebar-toggle:hover {
  filter: brightness(1.05);
  box-shadow: 0 8px 16px rgba(6, 31, 86, 0.28);
  transform: translateY(-1px);
}

.slot-side-group-toggle,
.slot-side-group a {
  transition: background-color 0.15s ease, color 0.15s ease;
}

.slot-side-group a.is-active {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.slot-content {
  padding-top: 24px;
}

.slot-footer {
  padding-top: 16px;
}

.slot-footer p {
  color: #52658f;
}

@media (max-width: 760px) {
  .slot-header-inner {
    min-height: auto;
  }

  .slot-kalendia-image {
    height: 27px;
  }

  .slot-logo-image {
    height: 66px;
  }

  .slot-sidebar {
    border-radius: 0;
  }
}

/* Mobile hardening pass */
@media (max-width: 980px) {
  .slot-header-inner--app {
    padding-left: 14px;
    padding-right: 14px;
  }

  .slot-logo-wrap {
    max-width: min(100%, calc(100vw - 26px));
  }

  .slot-logo-text {
    max-width: min(100%, calc(100vw - 210px));
  }

  .slot-content {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 760px) {
  html,
  body {
    overscroll-behavior-x: none;
    overscroll-behavior-y: auto;
  }

  body {
    -webkit-overflow-scrolling: touch;
  }

  .slot-header {
    left: 0;
    right: 0;
    top: 0 !important;
    width: 100%;
  }

  .slot-header-inner {
    align-items: center;
    gap: 8px;
  }

  .slot-logo-wrap {
    flex: 1 1 100%;
    width: 100%;
  }

  .slot-logo-text {
    font-size: 0.86rem;
    line-height: 1.2;
    max-width: calc(100vw - 130px);
  }

  .slot-header-actions {
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  .slot-header-actions > * {
    flex: 0 0 auto;
  }

  .slot-copy-booking-link--header,
  .slot-tour-restart,
  .slot-notification-toggle,
  .slot-account-toggle,
  .slot-mobile-menu-toggle {
    min-height: 36px;
  }

  .slot-sidebar {
    border-radius: 0 16px 16px 0;
    top: var(--slot-header-offset, var(--slot-header-h));
    width: min(292px, calc(100vw - 52px));
    z-index: 90;
  }

  .slot-sidebar-nav {
    gap: 6px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }

  .slot-side-group-toggle,
  .slot-side-group a {
    min-height: 40px;
  }

  .slot-content,
  body.slot-sidebar-collapsed .slot-content {
    margin-left: 0 !important;
    padding: 14px 12px 0;
    width: 100%;
  }

  .slot-footer--app .slot-wrap,
  body.slot-sidebar-collapsed .slot-footer--app .slot-wrap {
    margin-left: 0 !important;
    width: 100%;
  }

  .slot-card {
    margin-bottom: 12px;
  }

  .slot-account-panel,
  .slot-notification-panel {
    right: 0;
  }
}

@media (max-width: 520px) {
  .slot-wrap,
  .slot-content,
  body.slot-sidebar-collapsed .slot-content,
  .slot-footer--app .slot-wrap,
  body.slot-sidebar-collapsed .slot-footer--app .slot-wrap {
    padding-left: 10px;
    padding-right: 10px;
  }

  .slot-logo-image {
    height: 48px;
  }

  .slot-kalendia-image {
    height: 22px;
  }

  .slot-logo-text {
    font-size: 0.82rem;
  }

  .slot-header-actions {
    gap: 6px;
  }

  .slot-header-actions > * {
    flex: 0 0 auto;
  }

  .slot-sidebar {
    width: min(276px, calc(100vw - 44px));
  }
}

/* Top alignment hardening */
html,
body,
html.wp-toolbar,
body.admin-bar,
body.logged-in {
  margin-top: 0 !important;
  padding-top: 0 !important;
  top: 0 !important;
}

.slot-header {
  left: 0;
  right: 0;
  top: 0 !important;
}

/* Mobile scroll fail-safe */
@media (max-width: 980px) {
  html,
  body {
    height: auto !important;
    max-height: none !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body,
  body.slot-sidebar-open,
  body.slot-form-modal-open,
  body.slot-confirm-open,
  body.slot-day-modal-open {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    position: static !important;
  }

  .slot-main,
  body.slot-has-header .slot-main,
  .slot-main--app,
  body.slot-has-header .slot-main--app,
  .slot-app-layout,
  .slot-content {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .slot-content {
    margin-left: 0 !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    width: 100% !important;
  }

  .slot-header-inner--app {
    padding-left: 12px;
    padding-right: 12px;
  }

  .slot-logo-wrap {
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .slot-kalendia-image {
    height: clamp(22px, 6vw, 28px);
  }

  .slot-logo-image {
    height: clamp(40px, 11vw, 56px);
  }

  .slot-logo-text {
    display: -webkit-box;
    font-size: clamp(0.8rem, 3.4vw, 0.92rem);
    line-height: 1.2;
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .slot-header-actions {
    align-items: center;
    gap: 8px;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .slot-logo-wrap {
    gap: 6px;
  }

  .slot-logo-image {
    height: 42px;
  }

  .slot-logo-text {
    font-size: 0.8rem;
    line-height: 1.18;
  }
}

/* Mobile header composition: 3 rows (Kalendia / negocio+cuenta / menu+copiar+tour) */
@media (max-width: 900px) {
  .slot-header-inner--app {
    align-items: center;
    display: grid !important;
    gap: 8px 10px;
    grid-template-areas:
      "kal kal"
      "company primary"
      "secondary secondary";
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .slot-logo-wrap,
  .slot-header-actions {
    display: contents !important;
  }

  .slot-kalendia-wrap {
    border-bottom: 1px solid #dce7f8;
    grid-area: kal;
    justify-content: center;
    justify-self: center;
    min-width: 0;
    padding-bottom: 6px;
    width: 100%;
  }

  .slot-kalendia-image {
    height: clamp(24px, 6.5vw, 30px);
  }

  .slot-company-wrap {
    gap: 8px;
    grid-area: company;
    min-width: 0;
  }

  .slot-company-wrap .slot-logo-image {
    height: clamp(40px, 9vw, 56px);
  }

  .slot-company-wrap .slot-logo-text {
    display: -webkit-box;
    font-size: clamp(0.92rem, 3.3vw, 1.02rem);
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .slot-header-actions-primary {
    gap: 8px;
    grid-area: primary;
    justify-content: flex-end;
    justify-self: end;
  }

  .slot-header-actions-primary .slot-account-name {
    display: none;
  }

  .slot-header-actions-primary .slot-header-auth {
    width: auto;
  }

  .slot-header-actions-primary .slot-header-auth-link {
    flex: 0 0 auto;
    justify-content: center;
  }

  .slot-header-actions-secondary {
    align-items: center;
    display: flex;
    gap: 8px;
    grid-area: secondary;
    justify-content: flex-start;
    min-width: 0;
    width: 100%;
  }

  .slot-header-actions-secondary > * {
    flex: 0 0 auto;
  }

  .slot-header-actions-secondary .slot-mobile-menu-toggle {
    display: inline-flex !important;
    flex: 0 0 42px;
    height: 42px;
    width: 42px;
  }

  .slot-header-actions-secondary .slot-copy-booking-link--header {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
    padding: 8px 10px;
  }

  .slot-header-actions-secondary .slot-copy-booking-link--header .slot-copy-booking-link__text {
    display: inline !important;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .slot-header-actions-secondary .slot-tour-restart {
    flex: 0 0 42px;
    justify-content: center;
    min-width: 42px;
    padding: 0;
    width: 42px;
  }

  .slot-header-actions-secondary .slot-tour-restart__text {
    display: none;
  }
}
