/* Base: colores, letra, encabezado, menú, pie y títulos */

:root {
  --header-h: 72px;
  --bg: #fff;
  --text: #111;
  --muted: #666;
  --panel: #ececec;
  --line: #e6e6e6;
  --esperanza-footer-h: 46px;
  --esperanza-title-size: 50px;
  --esperanza-title-mobile: 50px;
  --esperanza-public-title-size: 50px;
  --esperanza-public-title-mobile: 50px;
  --esperanza-page-gutter: 24px;
  --esperanza-page-gutter-mobile: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
}

button,
a {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

.brand {
  font-size: 22px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -.02em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-version {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .06em;
  color: #777;
}

.brand-name {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  font-weight: 400;
  white-space: nowrap;
}

.brand-name b {
  font-weight: 600;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  text-decoration: none;
  font-size: 18px;
}

nav a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.lang-switch,
.theme-switch {
  display: flex;
  gap: 6px;
}

.lang-switch button,
.theme-switch button {
  border: 1px solid #111;
  background: #fff;
  color: #111;
  padding: 7px 9px;
  min-width: 38px;
  font: 600 11px/1 Poppins,Arial,sans-serif;
}

.lang-switch button.active,
.theme-switch button.active {
  background: #111;
  color: #fff;
}

.menu-btn {
  display: none;
  border: 0;
  background: none;
  font-size: 26px;
}

img.bw {
  filter: grayscale(1);
}

html[data-theme="dark"] {
  --bg: #111;
  --text: #f4f4f4;
  --panel: #2a2a2a;
  --line: #333;
  color-scheme: dark;
}

html[data-theme="dark"] body {
  background: #111;
  color: #f4f4f4;
}

html[data-theme="dark"] header {
  background: rgba(17,17,17,.96);
  border-bottom-color: #2b2b2b;
}

html[data-theme="dark"] .lang-switch button,
html[data-theme="dark"] .theme-switch button {
  border-color: #f4f4f4;
  background: #111;
  color: #f4f4f4;
}

html[data-theme="dark"] .lang-switch button.active,
html[data-theme="dark"] .theme-switch button.active {
  background: #f4f4f4;
  color: #111;
}

body.admin-open {
  overflow: hidden;
}

.nav-about-button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 18px;
  padding: 0;
  cursor: pointer;
}

.about-choice {
  position: fixed;
  top: calc(var(--header-h,64px) + 10px);
  left: 50%;
  transform: translate(-50%,-10px);
  z-index: 95;
  width: min(720px,calc(100% - 48px));
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(245,245,245,.97);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0,0,0,.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease,transform .22s ease;
}

.about-choice.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,0);
}

.about-choice button {
  flex: 1;
  border: 0;
  background: transparent;
  color: #111;
  padding: 15px 18px;
  border-radius: 9px;
  font-size: clamp(17px,2vw,24px);
  font-weight: 500;
  letter-spacing: -.025em;
  cursor: pointer;
}

.about-choice button:hover {
  background: #111;
  color: #fff;
}

html[data-theme="dark"] .about-choice {
  background: rgba(28,28,28,.97);
  border-color: #333;
}

html[data-theme="dark"] .about-choice button {
  color: #f4f4f4;
}

html[data-theme="dark"] .about-choice button:hover {
  background: #f4f4f4;
  color: #111;
}

.zume-word {
  font-family: Poppins,sans-serif;
  font-weight: 600;
}

.zume-divider {
  display: inline-block;
  font-family: Poppins,sans-serif;
  font-weight: 400;
  margin: 0 .28em;
  transform: translateY(-.015em);
}

@media (max-width: 1024px) {
  body>header {
    height: var(--header-h);
    padding: 0 16px;
    z-index: 220;
  }

  body>header .brand {
    font-size: 20px;
    min-width: 0;
    white-space: nowrap;
  }

  body>header .menu-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
  }

  #publicNavigation {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    max-height: calc(100dvh - var(--header-h) - var(--esperanza-footer-h,46px));
    overflow-y: auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px;
    background: var(--bg);
    color: var(--text);
    border-bottom: 1px solid var(--line);
  }

  header.mobile-open #publicNavigation {
    display: flex;
  }

  #publicNavigation>a,
  #publicNavigation>.nav-about-button {
    display: flex;
    align-items: center;
    min-height: 48px;
    width: 100%;
    padding: 12px 4px;
    font-size: 20px;
    text-align: left;
    border: 0;
    background: transparent;
  }

  #publicNavigation .lang-switch,
  #publicNavigation .theme-switch {
    display: flex;
    padding: 8px 0;
  }

  #publicNavigation .lang-switch button,
  #publicNavigation .theme-switch button {
    min-height: 44px;
    min-width: 44px;
  }

  :root {
    --header-h: 64px;
    --esperanza-footer-h: 48px;
    --esperanza-title-mobile: 50px;
  }
}

body {
  margin: 0;
  font-family: Poppins,Arial,sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-bottom: var(--esperanza-footer-h);
}

.esperanza-fixed-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--esperanza-footer-h);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 16px;
  background: #111;
  color: #fff;
  font-family: Poppins,Arial,sans-serif;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
}

.esperanza-fixed-footer a,
.esperanza-fixed-footer button {
  color: #fff;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
}

.esperanza-fixed-footer a:hover,
.esperanza-fixed-footer button:hover {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

#adminHost {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h,64px);
  z-index: 80;
  display: none;
  background: #ececec;
  overflow: hidden;
  bottom: var(--esperanza-footer-h);
}

@media (max-width: 1024px) {
  .esperanza-fixed-footer {
    justify-content: center !important;
    gap: 10px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }

  .esperanza-fixed-footer a,
  .esperanza-fixed-footer button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
  }

  .esperanza-fixed-footer .footer-detail {
    display: none;
  }

  .esperanza-fixed-footer .footer-sep {
    display: none;
  }
}

@media (max-width: 420px) {
  :root {
    --esperanza-title-mobile: 50px;
    --esperanza-public-title-mobile: 50px;
  }
}

header {
  height: var(--header-h);
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(0,0,0,.04);
  backdrop-filter: blur(10px);
  padding-left: var(--esperanza-page-gutter) !important;
  padding-right: var(--esperanza-page-gutter) !important;
}

@media (max-width: 760px) {
  header {
    padding-left: var(--esperanza-page-gutter-mobile) !important;
    padding-right: var(--esperanza-page-gutter-mobile) !important;
  }
}

#adminHost.open {
  display: block;
}

.lang-switch {
  order: 110;
}

.theme-switch {
  order: 120;
}
