/* Header — pastel gradient theme */

/* Reserve space before chrome.js paints (reduces CLS) */
header[data-chrome="header"] {
  min-height: calc(var(--header-h) + var(--safe-top));
  background: var(--header-grad);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-grad);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding-top: var(--safe-top);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: min(100% - 1.25rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  padding: 0.28rem 0.75rem 0.28rem 0.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(253, 235, 241, 0.95) 55%, rgba(237, 229, 255, 0.9) 100%);
  border: 1.5px solid rgba(180, 140, 190, 0.45);
  box-shadow:
    0 4px 14px rgba(65, 43, 71, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.brand:hover {
  border-color: rgba(214, 51, 132, 0.4);
  box-shadow:
    0 6px 18px rgba(65, 43, 71, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.brand:focus-visible {
  outline: 2px solid rgba(214, 51, 132, 0.55);
  outline-offset: 2px;
}

.brand-symbol {
  height: 46px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  line-height: 1.05;
  white-space: nowrap;
  min-width: 0;
  padding-right: 0.15rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 700;
  color: #d63384;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-tag {
  font-family: Montserrat, "Segoe UI", Tahoma, sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #6b5b95;
  line-height: 1.2;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-desktop a {
  padding: 0.4rem 0.7rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #000;
  border-radius: var(--radius-pill);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  background: rgba(255, 255, 255, 0.45);
  color: #222;
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

/* Mobile menu (drawer) — desktop uses top nav */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #222;
  border-radius: 2px;
  position: relative;
  transition: background 0.2s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #222;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), top 0.25s;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-drawer {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: calc(var(--header-h) + var(--safe-top));
  bottom: 0;
  z-index: 95;
  background: rgba(255, 255, 255, 0.98);
  padding: 1rem 1.15rem calc(6.75rem + var(--safe-bottom));
  flex-direction: column;
  gap: 0.4rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.nav-drawer.is-open {
  display: flex;
}

body.nav-open {
  overflow: hidden;
}

.nav-drawer .drawer-title {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin: 0.15rem 0 0.4rem;
}

.nav-drawer a {
  padding: 0.95rem 1rem;
  font-weight: 650;
  color: var(--ink);
  border-radius: 14px;
  font-size: 1.05rem;
  min-height: 48px;
  display: flex;
  align-items: center;
  background: var(--bg);
}

.nav-drawer a:active,
.nav-drawer a.is-active {
  background: var(--pink-wash);
  color: var(--pink-deep);
}

.nav-drawer .drawer-cta {
  margin-top: 0.35rem;
  text-align: center;
  justify-content: center;
}

.nav-drawer a.btn-primary.drawer-cta {
  background: linear-gradient(180deg, #fb7abf, #d63384);
  color: #fff;
}

.nav-drawer a.btn-secondary.drawer-cta {
  background: #fff;
  color: var(--pink-deep);
  border: 2px solid var(--pink-soft);
}

/* Bottom tab bar — iPhone home-indicator safe */
.app-tabbar {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  height: auto;
  min-height: 56px;
  padding: 6px 4px calc(8px + var(--safe-bottom));
  align-items: stretch;
  justify-content: space-around;
  gap: 2px;
  border-radius: 18px 18px 0 0;
  background: rgba(255, 255, 255, 0.96);
  border: none;
  border-top: 1px solid rgba(249, 201, 224, 0.9);
  box-shadow: 0 -8px 28px rgba(65, 43, 71, 0.12);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.app-tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--muted);
  border-radius: 14px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s var(--spring);
  min-width: 0;
  min-height: 48px;
  padding: 0.15rem 0.1rem;
  -webkit-tap-highlight-color: transparent;
}

.app-tabbar a > span:not(.tab-fab) {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.1;
}

.app-tabbar a svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.85;
  flex-shrink: 0;
}

.app-tabbar a.is-active {
  color: var(--pink-deep);
  background: var(--accent-soft);
}

.app-tabbar a:active {
  transform: scale(0.94);
}

.app-tabbar a.tab-book {
  color: var(--pink-deep);
}

.app-tabbar a.tab-book .tab-fab {
  width: 44px;
  height: 44px;
  margin-top: -14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #fb7abf, #d63384);
  color: #fff;
  box-shadow: 0 8px 20px rgba(214, 51, 132, 0.4);
}

.app-tabbar a.tab-book .tab-fab svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
}

.app-tabbar a.tab-book span.label {
  margin-top: 0.05rem;
  color: var(--pink-deep);
}

/* Footer */
.site-footer {
  margin-top: var(--space-6);
  background: var(--footer-grad);
  color: rgba(255, 255, 255, 0.9);
  padding: var(--space-7) 0 calc(var(--space-5) + 0.25rem);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

.footer-brand .brand {
  margin-bottom: 0.85rem;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.footer-brand .brand:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.14);
}

.footer-brand .brand-symbol {
  height: 48px;
  /* Force symbol to solid white on dark footer */
  filter: brightness(0) invert(1);
}

.footer-brand .brand-name,
.footer-brand .brand-tag {
  color: #ffffff;
}

.footer-brand .brand-name {
  color: #ffd0e6;
}

.footer-brand .brand-tag {
  opacity: 1;
  color: #fff;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 18rem;
}

.footer-col h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  color: #ffe0ee;
}

.footer-col ul {
  display: grid;
  gap: 0.45rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.35rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  min-height: 42px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff !important;
  transition: transform 0.2s var(--spring), opacity 0.2s;
}

.social-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.social-btn:active {
  transform: scale(0.97);
}

.social-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
}

.social-whatsapp {
  background: #25d366;
}

.social-whatsapp-channel {
  background: #128c7e;
}

.contact-info .social-btn {
  width: 100%;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.82);
}

.footer-staff-note {
  margin-top: 0.65rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-staff a {
  font-weight: 600;
}

/* Floating action buttons — consistent size, shadow, hover across the site */
.float-actions {
  position: fixed;
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(var(--tab-h) + var(--safe-bottom) + 18px);
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.float-actions.is-hidden-by-footer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
}

.float-actions.is-hidden-by-footer > *,
.float-actions.is-hidden-by-footer .float-wa-cluster {
  pointer-events: none;
}

.float-actions > *,
.float-actions .float-wa-cluster {
  pointer-events: auto;
}

.float-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(31, 36, 40, 0.2);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  color: #333;
  transition: transform 0.2s var(--spring), box-shadow 0.2s ease, opacity 0.2s ease;
}

.float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(31, 36, 40, 0.26);
}

.float-btn:active {
  transform: scale(0.92);
}

.float-btn:focus-visible {
  outline: 2px solid var(--pink-deep);
  outline-offset: 3px;
}

.float-btn img,
.float-btn svg {
  width: 24px;
  height: 24px;
}

.float-btn.linkedin {
  background: #fff;
}

.float-btn.instagram {
  background: #fff;
  color: #c13584;
}

.float-btn.call {
  background: linear-gradient(180deg, #fb7abf, #d63384);
  color: #fff;
  border-color: transparent;
}

.float-btn.call svg {
  stroke: #fff;
}

/* Single WA icon → splits into Chat + Channel on hover / tap */
.float-wa-cluster {
  position: relative;
  width: 48px;
  height: 48px;
  z-index: 2;
}

/* Invisible hit pad so the mouse can reach the split icons without closing */
.float-wa-cluster::before {
  content: "";
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  z-index: 0;
  pointer-events: none;
  transition: width 0.15s ease, height 0.15s ease;
}

.float-wa-cluster:hover::before,
.float-wa-cluster:focus-within::before,
.float-wa-cluster.is-open::before {
  width: 130px;
  height: 130px;
  pointer-events: auto;
}

.float-wa-trigger {
  position: relative;
  z-index: 3;
  background: #25d366;
}

.float-wa-menu {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 130px;
  height: 130px;
  z-index: 4;
  pointer-events: none;
}

.float-wa-menu .float-btn {
  position: absolute;
  right: 0;
  bottom: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.55);
  pointer-events: none;
  z-index: 5;
  transition:
    transform 0.28s var(--spring),
    opacity 0.2s ease,
    visibility 0.2s,
    box-shadow 0.2s ease;
}

.float-wa-menu .float-btn.whatsapp {
  background: #25d366;
}

.float-wa-menu .float-btn.whatsapp-channel {
  background: #128c7e;
}

.float-wa-label {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(20, 24, 28, 0.88);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.float-wa-cluster:hover .float-wa-trigger,
.float-wa-cluster:focus-within .float-wa-trigger,
.float-wa-cluster.is-open .float-wa-trigger {
  opacity: 0;
  transform: scale(0.7);
  /* Keep in DOM for layout; do not use visibility:hidden (breaks hover bridge) */
  pointer-events: none;
}

.float-wa-cluster:hover .float-wa-menu,
.float-wa-cluster:focus-within .float-wa-menu,
.float-wa-cluster.is-open .float-wa-menu {
  pointer-events: auto;
}

.float-wa-cluster:hover .float-wa-menu .float-btn,
.float-wa-cluster:focus-within .float-wa-menu .float-btn,
.float-wa-cluster.is-open .float-wa-menu .float-btn {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.float-wa-cluster:hover .float-wa-menu .float-btn.whatsapp,
.float-wa-cluster:focus-within .float-wa-menu .float-btn.whatsapp,
.float-wa-cluster.is-open .float-wa-menu .float-btn.whatsapp {
  transform: translate(-58px, -10px) scale(1);
}

.float-wa-cluster:hover .float-wa-menu .float-btn.whatsapp-channel,
.float-wa-cluster:focus-within .float-wa-menu .float-btn.whatsapp-channel,
.float-wa-cluster.is-open .float-wa-menu .float-btn.whatsapp-channel {
  transform: translate(-18px, -58px) scale(1);
}

.float-wa-cluster:hover .float-wa-label,
.float-wa-cluster:focus-within .float-wa-label,
.float-wa-cluster.is-open .float-wa-label {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .float-wa-cluster:hover .float-wa-menu .float-btn:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  }
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }

  .nav-toggle,
  .nav-drawer,
  .app-tabbar {
    display: none !important;
  }

  .nav-desktop {
    display: flex;
  }

  .header-actions {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr 0.9fr;
  }

  .float-actions {
    bottom: 24px;
  }
}
