/* Marca circular: reglas independientes de los estilos generales del sitio. */
.brand.patrimonio-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  max-width: none;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #092b48;
  line-height: 1.15;
  text-decoration: none;
  vertical-align: middle;
}
.brand.patrimonio-brand picture { display: block; flex: 0 0 auto; }
.rd-navbar .rd-navbar-brand .brand.patrimonio-brand picture img {
  display: block;
  width: 52px;
  height: 52px;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.brand.patrimonio-brand-footer { display: inline-block; line-height: 0; }
.brand.patrimonio-brand-footer img {
  display: block;
  width: 128px;
  height: 128px;
  max-width: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
}
.patrimonio-sello-portada {
  width: 364px;
  height: auto;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}
@media (max-width: 991px) {
  .brand.patrimonio-brand { gap: 0; padding: 0; }
  .rd-navbar .rd-navbar-brand .brand.patrimonio-brand picture img { width: 44px; height: 44px; }
}

/* Evitar el tamaño automático del tema y su separador sobre la fotografía. */
.rd-navbar.rd-navbar-classic.rd-navbar-static {
  border-bottom: 0;
}
.rd-navbar.rd-navbar-classic.rd-navbar-static .rd-navbar-main {
  padding-top: 12px;
  padding-bottom: 12px;
}

/* La misma composición del título en el centro y en sus fichas. */
.breadcrumbs-custom-title .cabecera-patrimonio {
  display: block;
  font-size: clamp(16px, 4.5vw, 22px);
  line-height: 1.3;
  white-space: nowrap;
}
.breadcrumbs-custom-title .cabecera-centro {
  display: block;
  margin-top: 6px;
  font-size: clamp(25px, 6.5vw, 38px);
  line-height: 1.2;
  font-weight: 700;
  text-transform: none;
  text-shadow: 0 1px 0 #bbb, 0 2px 0 #777, 0 3px 5px rgba(0,0,0,.65);
}

/* Menú móvil claro y controles con contraste suficiente. */
.rd-navbar.rd-navbar-fixed .rd-navbar-panel,
.rd-navbar.rd-navbar-fixed .rd-navbar-nav-wrap {
  background: #fff;
  color: #092b48;
  border-color: #e0e5ea;
  box-shadow: 0 1px 6px rgba(0,0,0,.15);
}
.rd-navbar.rd-navbar-fixed .rd-nav-link,
.rd-navbar.rd-navbar-fixed .rd-megamenu-list > li > a,
.rd-navbar.rd-navbar-fixed .rd-navbar-dropdown > li > a,
.rd-navbar.rd-navbar-fixed .rd-megamenu-title,
.rd-navbar.rd-navbar-fixed .rd-megamenu-title a,
.rd-navbar.rd-navbar-fixed .rd-navbar-submenu-toggle {
  color: #092b48;
}
.rd-navbar.rd-navbar-fixed .rd-nav-item:hover > .rd-nav-link,
.rd-navbar.rd-navbar-fixed .rd-nav-item.active > .rd-nav-link,
.rd-navbar.rd-navbar-fixed .rd-nav-item.opened > .rd-nav-link {
  color: #092b48;
  background: #e9f0f5;
}
.rd-navbar.rd-navbar-fixed .rd-navbar-toggle span,
.rd-navbar.rd-navbar-fixed .rd-navbar-toggle span::before,
.rd-navbar.rd-navbar-fixed .rd-navbar-toggle span::after {
  background-color: #092b48;
}
