/**
 * Dharma — Footer premium (Design System)
 * body:is(.page-id-3974, .page-id-2155, .page-id-4358, .page-id-5936, .dharma-chrome) · reemplaza Avada footer + WPML estático
 */

/* Ocultar footer Avada + selector idiomas inferior + floats legacy */
body.dharma-chrome .fusion-footer,
body.dharma-chrome .fusion-footer-widget-area,
body.dharma-chrome .fusion-footer-copyright-area,
body.dharma-chrome .wpml-ls-statics-footer,
body.dharma-chrome footer .wpml-ls,
body.dharma-chrome .fusion-secondary-menu .wpml-ls-item,
body.dharma-chrome .joinchat,
body.dharma-chrome .joinchat__button,
body.dharma-chrome .joinchat__button__open,
body.dharma-chrome #callnowbutton,
body.dharma-chrome .call-now-button,
body.dharma-chrome #cnb-container,
body.dharma-chrome .whatsapp-float,
body.dharma-chrome .floating-wpp,
body.dharma-chrome #toTop,
body.dharma-chrome .to-top-container,
body.dharma-chrome .fusion-top-top-link,
body.dharma-chrome .pswp:not(.pswp--open),
body.dharma-masaje-page .fusion-footer,
body.dharma-mas-profile .fusion-footer,
body.dharma-carta-page .fusion-footer,
body.dharma-mas-catalog .fusion-footer {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.dharma-footer {
  --df-bg: #0f0f0f;
  --df-bg-deep: #0a0908;
  --df-panel: #15110e;
  --df-cream: #f5f2ec;
  --df-cream-dim: rgba(245, 242, 236, 0.68);
  --df-cream-ghost: rgba(245, 242, 236, 0.42);
  --df-gold: #b4a269;
  --df-gold-line: rgba(180, 162, 105, 0.32);
  --df-gold-soft: rgba(180, 162, 105, 0.72);
  position: relative;
  background: var(--df-bg);
  color: var(--df-cream);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  border-top: 1px solid rgba(250, 249, 247, 0.06);
}

.dharma-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dharma-footer a:hover {
  color: var(--df-gold);
}

/* ── Nivel 1: cierre de marca ── */
.dharma-footer__brand {
  padding: clamp(80px, 11vw, 128px) clamp(24px, 5.5vw, 72px) clamp(64px, 8vw, 96px);
  border-bottom: 1px solid rgba(250, 249, 247, 0.06);
}

.dharma-footer__brand-inner {
  max-width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: end;
}

.dharma-footer__eyebrow {
  margin: 0 0 clamp(18px, 2.5vh, 28px);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--df-gold-soft);
}

.dharma-footer__title {
  margin: 0 0 clamp(20px, 3vh, 32px);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 300;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--df-cream);
  text-wrap: balance;
}

.dharma-footer__lead {
  margin: 0 0 clamp(32px, 4vh, 48px);
  max-width: 34rem;
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 300;
  line-height: 1.7;
  color: var(--df-cream-dim);
}

.dharma-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.dharma-footer__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(250, 249, 247, 0.28);
  color: var(--df-gold-soft);
  background: transparent;
  transition: border-color 0.45s ease, color 0.45s ease, background 0.45s ease;
}

.dharma-footer__icon-btn svg {
  width: 20px;
  height: 20px;
}

.dharma-footer__icon-btn--wa,
.dharma-footer__icon-btn--tg {
  color: var(--df-gold);
}

.dharma-footer__icon-btn--wa svg,
.dharma-footer__icon-btn--tg svg {
  fill: currentColor;
  stroke: none;
}

.dharma-footer__icon-btn--mail svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.dharma-footer__icon-btn:hover {
  border-color: var(--df-gold-soft);
  color: var(--df-gold);
  background: rgba(180, 162, 105, 0.08);
}

.dharma-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99980;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.dharma-dock__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: #15110e;
  color: #f5f2ec;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.dharma-dock__btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

.dharma-dock__btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.dharma-dock__btn--wa {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.dharma-dock__btn--wa svg {
  fill: #fff;
  stroke: none;
}

.dharma-dock__btn--tg {
  background: #2aabee;
  border-color: #2aabee;
  color: #fff;
}

.dharma-dock__btn--tg svg {
  fill: #fff;
  stroke: none;
}

.dharma-dock__btn--mail {
  background: #b4a269;
  border-color: #b4a269;
  color: #121212;
}

.dharma-dock__btn--mail svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.dharma-footer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 clamp(28px, 3.5vw, 44px);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid transparent;
  transition: background 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.45s ease, color 0.45s ease;
}

.dharma-footer__btn--primary {
  background: var(--df-gold);
  border-color: var(--df-gold);
  color: #121212 !important;
}

.dharma-footer__btn--primary:hover {
  background: #c9b882;
  border-color: #c9b882;
  color: #121212 !important;
}

.dharma-footer__btn--ghost {
  background: transparent;
  border-color: rgba(250, 249, 247, 0.28);
  color: rgba(250, 249, 247, 0.78) !important;
}

.dharma-footer__btn--ghost:hover {
  border-color: var(--df-gold-soft);
  color: var(--df-cream) !important;
}

.dharma-footer__signals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}

.dharma-footer__signal {
  padding: 18px 20px;
  border: 1px solid var(--df-gold-line);
  background: rgba(21, 17, 14, 0.55);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--df-cream-dim);
  line-height: 1.4;
}

/* ── Nivel 2: columnas ── */
.dharma-footer__main {
  padding: clamp(64px, 8vw, 96px) clamp(24px, 5.5vw, 72px);
}

.dharma-footer__grid {
  max-width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.9fr 1.05fr;
  gap: clamp(36px, 4.5vw, 56px);
}

.dharma-footer__col-title {
  margin: 0 0 22px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(250, 249, 247, 0.78);
}

.dharma-footer__logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  line-height: 0;
  text-decoration: none;
}

.dharma-footer__logo-img {
  display: block;
  width: auto;
  height: 52px;
  max-width: 120px;
  object-fit: contain;
}

.dharma-footer__blurb {
  margin: 0 0 28px;
  max-width: 22rem;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--df-cream-dim);
}

.dharma-footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dharma-footer__contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--df-cream-dim);
}

.dharma-footer__contact svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  stroke: var(--df-gold);
  fill: none;
  stroke-width: 1.25;
  opacity: 0.85;
}

.dharma-footer__contact a {
  color: var(--df-cream-dim);
}

.dharma-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dharma-footer__links a {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.45;
  color: var(--df-cream-dim);
}

.dharma-footer__posts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dharma-footer__post {
  border-bottom: 1px solid rgba(250, 249, 247, 0.08);
}

.dharma-footer__post:first-child {
  border-top: 1px solid rgba(250, 249, 247, 0.08);
}

.dharma-footer__post a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 14px 0;
  align-items: start;
}

.dharma-footer__post-date {
  grid-column: 1 / -1;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--df-cream-ghost);
}

.dharma-footer__post-title {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.45;
  color: var(--df-cream-dim);
}

.dharma-footer__post-arrow {
  color: var(--df-gold-soft);
  font-size: 14px;
  line-height: 1.45;
}

.dharma-footer__post a:hover .dharma-footer__post-title {
  color: var(--df-gold);
}

.dharma-footer__all-posts {
  display: inline-block;
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--df-gold-soft);
}

/* Mapa premium */
.dharma-footer__map-wrap {
  max-width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0 clamp(24px, 5.5vw, 72px) clamp(56px, 7vw, 80px);
}

.dharma-footer__map {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  position: relative;
  min-height: 220px;
  border: 1px solid var(--df-gold-line);
  border-radius: 2px;
  background: #0a0a0a;
  overflow: hidden;
  transition: border-color 0.45s ease, box-shadow 0.45s ease;
}

.dharma-footer__map:hover {
  border-color: rgba(180, 162, 105, 0.55);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.dharma-footer__map-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  padding: clamp(28px, 4vw, 40px);
  max-width: none;
}

.dharma-footer__map-pin {
  width: 18px;
  height: 18px;
  color: var(--df-gold);
}

.dharma-footer__map-addr {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 300;
  line-height: 1.3;
  color: var(--df-cream);
}

.dharma-footer__map-cta {
  display: inline-block;
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none !important;
  color: var(--df-gold-soft) !important;
  -webkit-text-fill-color: var(--df-gold-soft);
  transition: color 0.3s ease;
}

.dharma-footer__map-cta:hover {
  color: var(--df-cream) !important;
  -webkit-text-fill-color: var(--df-cream);
}

.dharma-footer__map-embed {
  position: relative;
  min-height: 220px;
  background: #161616;
  overflow: hidden;
}

.dharma-footer__map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.35) contrast(1.05) brightness(0.88);
}

@media (min-width: 801px) {
  .dharma-footer__map {
    grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
    min-height: 240px;
  }

  .dharma-footer__map-embed {
    min-height: 100%;
  }
}

/* Legal bar */
.dharma-footer__legal {
  background: var(--df-bg-deep);
  border-top: 1px solid rgba(250, 249, 247, 0.06);
  padding: 22px clamp(24px, 5.5vw, 72px);
}

.dharma-footer__legal-inner {
  max-width: min(1280px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}

.dharma-footer__copy {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--df-cream-ghost);
}

.dharma-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dharma-footer__legal-links a {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--df-cream-ghost);
}

.dharma-footer__social {
  display: flex;
  gap: 10px;
}

.dharma-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(250, 249, 247, 0.14);
  color: var(--df-cream-dim);
}

.dharma-footer__social a:hover {
  border-color: var(--df-gold-line);
  color: var(--df-gold);
}

.dharma-footer__social svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Accordion headers (mobile) */
.dharma-footer__acc-btn {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(250, 249, 247, 0.1);
  color: rgba(250, 249, 247, 0.78);
  font-family: inherit;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
}

.dharma-footer__acc-btn span[aria-hidden] {
  color: var(--df-gold);
  font-size: 16px;
}

@media (max-width: 1024px) {
  .dharma-footer__brand-inner {
    grid-template-columns: 1fr;
  }

  .dharma-footer__signals {
    grid-template-columns: 1fr 1fr;
  }

  .dharma-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .dharma-dock {
    right: max(8px, env(safe-area-inset-right, 0px));
    left: auto;
    top: auto;
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    transform: none;
    flex-direction: column;
    gap: 8px;
    padding: 6px 0;
  }

  .dharma-dock__btn {
    width: 44px;
    height: 44px;
  }

  .dharma-dock__btn svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 700px) {
  .dharma-footer__brand-inner {
    text-align: left;
  }

  .dharma-footer__signals {
    grid-template-columns: 1fr;
  }

  .dharma-footer__grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .dharma-footer__col--brand .dharma-footer__col-title,
  .dharma-footer__col:not(.dharma-footer__col--brand) > .dharma-footer__col-title {
    display: none;
  }

  .dharma-footer__acc-btn {
    display: flex;
  }

  .dharma-footer__col:not(.dharma-footer__col--brand) .dharma-footer__acc-panel {
    display: none;
    padding: 8px 0 20px;
  }

  .dharma-footer__col.is-open .dharma-footer__acc-panel {
    display: block;
  }

  .dharma-footer__col--brand .dharma-footer__acc-panel {
    display: block;
  }

  .dharma-footer__legal-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .dharma-footer__actions {
    width: 100%;
    align-items: center;
  }

  .dharma-footer__icon-btn {
    flex: 0 0 52px;
  }

  .dharma-footer__btn {
    flex: 1 1 auto;
    min-width: calc(50% - 9px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dharma-footer a,
  .dharma-footer__btn,
  .dharma-footer__map {
    transition: none !important;
  }
}

.dharma-footer__jobs a {
  color: #e4d7b0 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
}

.dharma-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10040;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(196, 184, 150, 0.55);
  border-radius: 50%;
  background: rgba(12, 12, 12, 0.92);
  color: #e4d7b0;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.2s ease;
}

.dharma-to-top svg {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0 auto;
}

.dharma-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.dharma-to-top:hover {
  color: #fff;
  border-color: #e4d7b0;
}

body.dharma-mas-profile .dharma-to-top {
  bottom: 92px;
}
