/*
 * Musica para Disfrutar — unified editorial header.
 * Contact supplies the serif/italic signature; Home supplies the brand scale.
 * Header-only styles are complete so older translated templates use precisely
 * the same component without inheriting unrelated system CSS.
 */
body.mpd-module-platform {
  --mpd-core-font-serif: Georgia, "Times New Roman", Times, serif;
  --mpd-core-font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mpd-core-wide: 1240px;
  --mpd-core-editorial: 900px;
  --mpd-core-gutter: 48px;
  --mpd-core-background: #fbfaf7;
  --mpd-core-surface: #fff;
  --mpd-core-surface-muted: #f1eee8;
  --mpd-core-text: #17242d;
  --mpd-core-text-secondary: #46535b;
  --mpd-core-border: #d8d5cf;
  --mpd-core-focus: #b36d12;
  --mpd-core-header-height: 72px;
  --mpd-core-local-height: 48px;
}

body.mpd-module-platform .mpd-system-skip,
body.mpd-module-platform .mpd-system-header,
body.mpd-module-platform .mpd-system-header *,
body.mpd-module-platform .mpd-system-overlay,
body.mpd-module-platform .mpd-system-mobile-panel,
body.mpd-module-platform .mpd-system-mobile-panel *,
body.mpd-module-platform .mpd-system-local-nav,
body.mpd-module-platform .mpd-system-local-nav * {
  box-sizing: border-box;
}

body.mpd-module-platform .mpd-system-skip {
  position: fixed;
  z-index: 9999;
  top: 8px;
  left: 16px;
  padding: 11px 16px;
  border-radius: 8px;
  background: var(--mpd-core-text);
  color: #fff !important;
  font: 700 .875rem/1.4 var(--mpd-core-font-sans);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .15s ease;
}

body.mpd-module-platform .mpd-system-skip:focus,
body.mpd-module-platform .mpd-system-skip:focus-visible {
  transform: translateY(0) !important;
}

body.mpd-module-platform .mpd-system-header {
  position: sticky;
  z-index: 9500;
  top: 0;
  width: 100%;
  height: var(--mpd-core-header-height);
  margin: 0;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--mpd-core-border) 78%, transparent);
  background: rgba(251, 250, 247, .96);
  color: var(--mpd-core-text);
  font-family: var(--mpd-core-font-sans);
  backdrop-filter: saturate(160%) blur(18px);
  transition: box-shadow .2s ease, background .2s ease;
}

body.mpd-module-platform .mpd-system-header.is-scrolled {
  box-shadow: 0 7px 24px rgba(23, 36, 45, .07);
  background: rgba(251, 250, 247, .985);
}

body.mpd-module-platform .mpd-system-header__inner {
  width: min(100%, calc(var(--mpd-core-wide) + (2 * var(--mpd-core-gutter))));
  height: 100%;
  margin: 0 auto;
  padding-inline: var(--mpd-core-gutter);
  display: flex;
  align-items: center;
  gap: 28px;
}

body.mpd-module-platform .mpd-system-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 7px;
  color: inherit !important;
  text-decoration: none !important;
}

body.mpd-module-platform .mpd-system-brand strong {
  margin: 0;
  color: inherit;
  font: 700 20.48px/1.1 var(--mpd-core-font-serif) !important;
  letter-spacing: -.015em;
  white-space: nowrap;
}

body.mpd-module-platform .mpd-system-brand span {
  display: block;
  margin-left: 0;
  color: #9a7140;
  font: italic 400 14px/1.1 var(--mpd-core-font-serif) !important;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

body.mpd-module-platform .mpd-system-desktop-nav {
  height: 100%;
  margin-left: auto;
  display: flex;
  align-items: stretch;
  gap: 26px;
}

body.mpd-module-platform .mpd-system-desktop-nav > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: inherit !important;
  font: 650 .875rem/1.3 var(--mpd-core-font-sans);
  text-decoration: none !important;
  white-space: nowrap;
}

body.mpd-module-platform .mpd-system-desktop-nav > a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 12px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform .18s ease;
}

body.mpd-module-platform .mpd-system-desktop-nav > a:hover::after,
body.mpd-module-platform .mpd-system-desktop-nav > a:focus-visible::after,
body.mpd-module-platform .mpd-system-desktop-nav > a[aria-current="page"]::after {
  transform: scaleX(1);
}

body.mpd-module-platform .mpd-system-desktop-nav > a[aria-current="page"] {
  font-weight: 780;
}

body.mpd-module-platform .mpd-system-language {
  position: relative;
  flex: 0 0 auto;
}

body.mpd-module-platform .mpd-system-language > button {
  min-width: 104px;
  min-height: 44px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--mpd-core-border);
  border-radius: 999px;
  background: var(--mpd-core-surface);
  color: inherit;
  font: 650 .8125rem/1.2 var(--mpd-core-font-sans);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

body.mpd-module-platform .mpd-system-language > button .mpd-system-language-label {
  display: block;
  margin: 0;
}

body.mpd-module-platform .mpd-system-language > button .mpd-system-language-chevron {
  display: block;
  width: 7px;
  height: 7px;
  margin: 0;
  flex: 0 0 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

body.mpd-module-platform .mpd-system-language > div {
  position: absolute;
  z-index: 2;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  padding: 8px;
  border: 1px solid var(--mpd-core-border);
  border-radius: 14px;
  background: var(--mpd-core-surface);
  box-shadow: 0 12px 34px rgba(23, 36, 45, .10);
}

body.mpd-module-platform .mpd-system-language > div a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: inherit !important;
  font: 400 .875rem/1.35 var(--mpd-core-font-sans);
  text-decoration: none !important;
}

body.mpd-module-platform .mpd-system-language > div a:hover {
  background: var(--mpd-core-surface-muted);
}

body.mpd-module-platform .mpd-system-language > div a[aria-current="page"] {
  font-weight: 750;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

body.mpd-module-platform .mpd-system-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--mpd-core-border);
  border-radius: 50%;
  background: var(--mpd-core-surface);
  color: inherit;
  cursor: pointer;
  place-items: center;
}

body.mpd-module-platform .mpd-system-menu-button span,
body.mpd-module-platform .mpd-system-menu-button span::before,
body.mpd-module-platform .mpd-system-menu-button span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

body.mpd-module-platform .mpd-system-menu-button span { position: relative; }
body.mpd-module-platform .mpd-system-menu-button span::before { position: absolute; top: -6px; }
body.mpd-module-platform .mpd-system-menu-button span::after { position: absolute; top: 6px; }

body.mpd-module-platform .mpd-system-overlay {
  position: fixed;
  z-index: 9600;
  inset: 0;
  background: rgba(12, 21, 27, .34);
  backdrop-filter: blur(2px);
}

body.mpd-module-platform .mpd-system-mobile-panel {
  position: fixed;
  z-index: 9700;
  top: 0;
  right: 0;
  width: min(88vw, 390px);
  height: 100dvh;
  margin: 0;
  padding: 18px 20px 28px;
  overflow: auto;
  border: 0;
  background: var(--mpd-core-surface);
  box-shadow: -24px 0 70px rgba(23, 36, 45, .2);
  color: var(--mpd-core-text);
  font-family: var(--mpd-core-font-sans);
}

body.mpd-module-platform .mpd-system-mobile-panel__top {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--mpd-core-border);
  font-weight: 750;
}

body.mpd-module-platform .mpd-system-mobile-panel__top button {
  display: inline-grid;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  margin: 0;
  padding: 0 !important;
  place-items: center;
  border: 1px solid var(--mpd-core-border) !important;
  border-radius: 50% !important;
  background: var(--mpd-core-surface) !important;
  color: var(--mpd-core-text) !important;
  font: 400 1.65rem/1 var(--mpd-core-font-sans) !important;
  cursor: pointer;
}

body.mpd-module-platform .mpd-system-mobile-panel > nav {
  display: grid;
  padding-top: 20px;
}

body.mpd-module-platform .mpd-system-mobile-panel > nav > a {
  padding: 13px 2px;
  border-bottom: 1px solid var(--mpd-core-border);
  color: inherit !important;
  font: 650 1.05rem/1.35 var(--mpd-core-font-sans);
  text-decoration: none !important;
}

body.mpd-module-platform .mpd-system-mobile-panel > nav > a[aria-current="page"] {
  padding-left: 14px;
  border-left: 3px solid var(--mpd-family-accent, #9a7140);
  font-weight: 780;
}

body.mpd-module-platform .mpd-system-mobile-languages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
}

body.mpd-module-platform .mpd-system-mobile-languages span {
  flex: 1 0 100%;
  color: var(--mpd-core-text-secondary);
  font: 750 .75rem/1.3 var(--mpd-core-font-sans);
  letter-spacing: .1em;
  text-transform: uppercase;
}

body.mpd-module-platform .mpd-system-mobile-languages a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--mpd-core-border);
  border-radius: 999px;
  color: inherit !important;
  font: 400 .875rem/1.3 var(--mpd-core-font-sans);
  text-decoration: none !important;
}

body.mpd-module-platform .mpd-system-mobile-languages a[aria-current="page"] {
  border-color: var(--mpd-core-text);
  background: var(--mpd-core-text);
  color: #fff !important;
}

body.mpd-module-platform .mpd-system-overlay[hidden],
body.mpd-module-platform .mpd-system-mobile-panel[hidden],
body.mpd-module-platform .mpd-system-language > div[hidden] {
  display: none !important;
}

body.mpd-module-platform.mpd-system-menu-open { overflow: hidden !important; }

body.mpd-module-platform .mpd-system-local-nav {
  position: sticky;
  z-index: 9400;
  top: var(--mpd-core-header-height);
  width: 100%;
  height: var(--mpd-core-local-height);
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--mpd-core-border);
  background: rgba(255, 255, 255, .96);
  color: var(--mpd-core-text);
  font-family: var(--mpd-core-font-sans);
  backdrop-filter: saturate(140%) blur(14px);
}

body.mpd-module-platform .mpd-system-local-nav > div {
  width: min(100%, calc(var(--mpd-core-editorial) + (2 * var(--mpd-core-gutter))));
  height: 100%;
  margin: auto;
  padding-inline: var(--mpd-core-gutter);
  display: flex;
  align-items: center;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-padding-inline: var(--mpd-core-gutter);
}

body.mpd-module-platform .mpd-system-local-nav > div::-webkit-scrollbar { display: none; }

body.mpd-module-platform .mpd-system-local-nav a {
  position: relative;
  display: inline-flex;
  height: 100%;
  align-items: center;
  padding: 0;
  color: inherit !important;
  font: 650 .8125rem/1.3 var(--mpd-core-font-sans);
  text-decoration: none !important;
  white-space: nowrap;
}

body.mpd-module-platform .mpd-system-local-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--mpd-family-accent, #9a7140);
  transform: scaleX(0);
  transition: transform .18s ease;
}

body.mpd-module-platform .mpd-system-local-nav a:hover::after,
body.mpd-module-platform .mpd-system-local-nav a:focus-visible::after,
body.mpd-module-platform .mpd-system-local-nav a[aria-current="location"]::after {
  transform: scaleX(1);
}

body.mpd-module-platform .mpd-system-main-anchor {
  position: relative;
  display: block;
  width: 1px;
  height: 1px;
  margin-bottom: -1px;
}

body.mpd-module-platform :where(main) [id] {
  scroll-margin-top: calc(var(--mpd-core-header-height) + var(--mpd-core-local-height) + 16px);
}

body.mpd-module-platform:not(:has(.mpd-system-local-nav)) :where(main) [id] {
  scroll-margin-top: calc(var(--mpd-core-header-height) + 16px);
}

body.mpd-module-platform .mpd-system-header a:focus-visible,
body.mpd-module-platform .mpd-system-header button:focus-visible,
body.mpd-module-platform .mpd-system-mobile-panel a:focus-visible,
body.mpd-module-platform .mpd-system-mobile-panel button:focus-visible,
body.mpd-module-platform .mpd-system-local-nav a:focus-visible {
  outline: 3px solid var(--mpd-core-focus) !important;
  outline-offset: 3px !important;
}

/* Pointer activation must not inherit a dotted browser/theme outline. Keyboard
   navigation keeps the solid, high-contrast focus treatment immediately below. */
body.mpd-module-platform .mpd-system-language > div a:focus {
  outline: none !important;
  box-shadow: none !important;
}

body.mpd-module-platform .mpd-system-language > div a:focus-visible {
  outline: 2px solid var(--mpd-core-focus) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px rgba(179, 109, 18, .13) !important;
}

/* The Home's approved compact footer is now the single editorial footer on
   every redesigned route and language. These selectors are intentionally
   independent of historical page-footer class names. */
body.mpd-module-platform .mpd-global-footer,
body.mpd-module-platform .mpd-global-footer * {
  box-sizing: border-box;
}

body.mpd-module-platform .mpd-global-footer {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 46px max(26px, calc((100vw - 1180px) / 2)) 34px;
  border: 0;
  border-radius: 0;
  background: #101a24;
  box-shadow: none;
  color: #dce6f2;
  font-family: var(--mpd-core-font-sans);
  font-size: 15px;
  line-height: 1.857142857;
}

body.mpd-module-platform .mpd-global-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.mpd-module-platform .mpd-global-footer__brand {
  min-width: 0;
  margin: 0;
  padding: 0;
  color: #dce6f2;
  font: 700 21px/1.3 var(--mpd-core-font-serif);
}

body.mpd-module-platform .mpd-global-footer__brand small {
  display: block;
  margin: 8px 0 0;
  padding: 0;
  color: #9ca7b8;
  font: 400 12px/1.857142857 var(--mpd-core-font-sans);
}

body.mpd-module-platform .mpd-global-footer__navs {
  display: grid;
  gap: 15px;
  justify-items: end;
  width: auto;
  max-width: 720px;
  min-width: 0;
  margin: 0;
  padding: 0;
}

body.mpd-module-platform .mpd-global-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.mpd-module-platform .mpd-global-footer__primary a {
  color: #fff !important;
  font-weight: 650;
}

body.mpd-module-platform .mpd-global-footer__legal {
  align-items: center;
  justify-content: flex-end;
}

body.mpd-module-platform .mpd-global-footer__legal a,
body.mpd-module-platform .mpd-global-footer__legal .mpd-consent-footer-button {
  color: #aeb8c5 !important;
  font-size: 11px !important;
  font-weight: 400 !important;
}

body.mpd-module-platform .mpd-global-footer a,
body.mpd-module-platform .mpd-global-footer button {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-width: 0;
  min-height: 32px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit;
  font-family: var(--mpd-core-font-sans);
  font-size: 12px;
  line-height: 1.857142857;
  text-align: left;
  text-decoration: none !important;
  text-transform: none !important;
  white-space: normal;
  cursor: pointer;
}

body.mpd-module-platform .mpd-global-footer a:hover,
body.mpd-module-platform .mpd-global-footer button:hover {
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 4px !important;
}

body.mpd-module-platform .mpd-global-footer a:focus-visible,
body.mpd-module-platform .mpd-global-footer button:focus-visible {
  outline: 2px solid #d8bd87 !important;
  outline-offset: 4px !important;
  box-shadow: none !important;
}

body.mpd-module-platform .mpd-global-footer__bottom {
  width: 100%;
  max-width: none;
  margin: 28px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid #ffffff2a;
  color: #a8b5c3;
  font: 400 12px/1.857142857 var(--mpd-core-font-sans);
}

body.mpd-module-platform > .mpd-consent-footer:empty {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (min-width: 1280px) {
  body.mpd-module-platform .mpd-global-footer__brand small,
  body.mpd-module-platform .mpd-global-footer__bottom,
  body.mpd-module-platform .mpd-global-footer__primary a {
    font-size: 13px;
  }
  body.mpd-module-platform .mpd-global-footer__legal a,
  body.mpd-module-platform .mpd-global-footer__legal .mpd-consent-footer-button {
    font-size: 12px !important;
  }
}

@media (max-width: 860px) {
  body.mpd-module-platform .mpd-global-footer__top { flex-direction: column; }
  body.mpd-module-platform .mpd-global-footer nav { width: 100%; }
}

@media (max-width: 767px) {
  body.mpd-module-platform .mpd-global-footer__legal .mpd-consent-footer-button {
    min-height: 44px !important;
  }
}

@media (max-width: 620px) {
  body.mpd-module-platform .mpd-global-footer { padding: 40px 22px 28px; }
  body.mpd-module-platform .mpd-global-footer__top { gap: 22px; }
  body.mpd-module-platform .mpd-global-footer__brand small { margin-top: 6px; }
  body.mpd-module-platform .mpd-global-footer__navs {
    width: 100%;
    justify-items: start;
  }
  body.mpd-module-platform .mpd-global-footer__primary,
  body.mpd-module-platform .mpd-global-footer__legal {
    justify-content: flex-start;
  }
  body.mpd-module-platform .mpd-global-footer__primary {
    display: grid !important;
    gap: 0 !important;
  }
  body.mpd-module-platform .mpd-global-footer__primary a {
    width: 100%;
    min-height: 44px;
    padding: 13px 0 !important;
    border-bottom: 1px solid #ffffff1f !important;
  }
  body.mpd-module-platform .mpd-global-footer__bottom {
    margin-top: 22px;
    padding-top: 16px;
  }
}

/* The composer-book template reserved 84 px below the document for its former
   mobile bar. Once the global footer is the last layout component that reserve
   becomes a visible blank strip, so remove it only for this family. */
@media (max-width: 700px) {
  body.mpd-module-platform.mpd-sm-family-book {
    padding-bottom: 0 !important;
  }
}

@media (max-width: 1279px) {
  body.mpd-module-platform { --mpd-core-gutter: 32px; }
  body.mpd-module-platform .mpd-system-desktop-nav { gap: 18px; }
  body.mpd-module-platform .mpd-system-brand span { display: none; }
}

@media (max-width: 1023px) {
  body.mpd-module-platform { --mpd-core-header-height: 64px; }
  body.mpd-module-platform .mpd-system-desktop-nav,
  body.mpd-module-platform .mpd-system-language { display: none; }
  body.mpd-module-platform .mpd-system-menu-button { margin-left: auto; display: grid; }
}

/* When navigation moves into the menu button, the descriptor has room again. */
@media (min-width: 431px) and (max-width: 1023px) {
  body.mpd-module-platform .mpd-system-brand span { display: block; }
}

@media (max-width: 767px) {
  body.mpd-module-platform { --mpd-core-gutter: 20px; }
}

@media (max-width: 639px) {
  body.mpd-module-platform {
    --mpd-core-header-height: 56px;
    --mpd-core-local-height: 44px;
  }
  body.mpd-module-platform .mpd-system-header__inner { gap: 14px; }
  body.mpd-module-platform .mpd-system-brand strong { font-size: 17.28px !important; }
  body.mpd-module-platform .mpd-system-brand span { font-size: 12px !important; }
  body.mpd-module-platform .mpd-system-local-nav > div { gap: 24px; }
  body.mpd-module-platform .mpd-system-local-nav a { font-size: .78rem; }
}

/* Protect the wordmark and its 44 px menu target on narrow phones. */
@media (max-width: 430px) {
  body.mpd-module-platform .mpd-system-brand span { display: none; }
}

@media print {
  body.mpd-module-platform .mpd-system-header,
  body.mpd-module-platform .mpd-system-local-nav,
  body.mpd-module-platform .mpd-system-skip,
  body.mpd-module-platform .mpd-system-mobile-panel,
  body.mpd-module-platform .mpd-system-overlay,
  body.mpd-module-platform .mpd-global-footer { display: none !important; }
}
