/* ===== Barra superior (Opciones del tema > Header) ===== */
.may-header-bar,
.may-header-bar picture,
.may-header-bar__link {
    display: block;
    width: 100%;
}

.may-header-bar {
    background-color: var(--may-header-bar-background, var(--color-primary));
}

.may-header-bar .may-header-bar__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 40px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .may-header-bar .may-header-bar__image {
        max-height: none;
    }
}

.may-header-bar__link:focus-visible {
    outline: 3px solid #111;
    outline-offset: -3px;
}

/* ===== Personaje de cabecera =====
 * Ocupa la misma caja que el personaje predeterminado (Group-7607.png, 141x142 px)
 * y la imagen se ajusta dentro sin deformarse. */
.nav--top .logo--image a .logo-first.logo-first--custom {
    width: 141px;
    height: 142px;
    max-width: none;
    object-fit: contain;
    object-position: center bottom;
}

@media (max-width: 768px) {
    .nav--top .logo--image a .logo-first.logo-first--custom {
        width: 84px;
        height: 84px !important;
    }
}

/* ===== Fondo de cabecera ===== */
.nav--top.nav--top--fondo {
    background-color: var(--color-primary);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
