/*
Versión: 0.26.0524.7
Fecha: 2026-05-24
Cambio:
- Se agrega CSS global para header y footer reutilizables sin alterar el catálogo.
- Se agrega estilo para botón icon-only de compartir en header.
- Se agrega navegación móvil hamburguesa compacta y desplegable.
- Se agrega firma tipográfica RCM con nombre secundario en header.
*/

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  padding: 20px 40px;
  color: #fff;
  background: rgba(8, 12, 22, .48);
  backdrop-filter: blur(14px);
}

.header__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.header__brand,
.header a {
  color: #fff;
  text-decoration: none;
}

.header__brand-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}

.header__brand-mark {
  font-family: "Cinzel", Georgia, "Times New Roman", serif;
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: .28em;
  line-height: 1;
}

.header__brand-name {
  color: rgba(255,255,255,.62);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
}

.header__nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.header__toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.06);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, opacity .18s ease;
}

.header__toggle span {
  width: 17px;
  height: 1px;
  display: block;
  background: currentColor;
  transform-origin: center;
  transition: transform .2s ease, opacity .2s ease;
}

.header__toggle:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.3);
}

.header__nav a {
  margin-left: 20px;
  opacity: .8;
}

.header__nav a:hover {
  opacity: 1;
}

.share-icon-button {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.06);
  cursor: pointer;
  opacity: .82;
  transition: opacity .18s ease, background .18s ease, border-color .18s ease;
}

.share-icon-button:hover,
.share-icon-button.is-shared {
  opacity: 1;
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.34);
}

.share-icon-button i {
  font-size: 1rem;
  line-height: 1;
}

.footer {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 80px auto 0;
  padding: 40px 20px;
  color: rgba(255,255,255,.6);
  font-size: 14px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.14);
}

.footer strong,
.footer span,
.footer a {
  display: block;
}

.footer strong {
  color: rgba(255,255,255,.78);
  font-weight: 600;
}

.footer a {
  color: rgba(255,255,255,.66);
  text-decoration: none;
  margin-top: 8px;
}

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

@media (max-width: 760px) {
  .header {
    padding: 14px 18px;
  }

  .header__inner {
    position: relative;
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }

  .header__brand-group {
    min-width: 0;
  }

  .header__brand {
    max-width: calc(100vw - 116px);
    overflow: hidden;
    text-overflow: ellipsis;
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .header__brand-mark {
    font-size: 1.08rem;
    letter-spacing: .26em;
  }

  .header__brand-name {
    max-width: 176px;
    overflow: hidden;
    font-size: .66rem;
    letter-spacing: .02em;
    text-overflow: ellipsis;
  }

  .header__toggle {
    display: inline-flex;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .header__nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(260px, calc(100vw - 36px));
    max-height: 0;
    overflow: hidden;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 0;
    border: 1px solid rgba(255,255,255,0);
    border-radius: 8px;
    background: rgba(9, 13, 24, .94);
    box-shadow: 0 24px 48px rgba(0,0,0,.34);
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: max-height .24s ease, opacity .2s ease, transform .2s ease, border-color .2s ease, padding .2s ease;
  }

  .header__nav a {
    margin: 0;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .header__nav a:last-child {
    border-bottom: 0;
  }

  .header.is-nav-open .header__nav {
    max-height: 220px;
    padding: 6px;
    border-color: rgba(255,255,255,.14);
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .header.is-nav-open .header__toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .header.is-nav-open .header__toggle span:nth-child(2) {
    opacity: 0;
  }

  .header.is-nav-open .header__toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}
