/* AC Header Mansion 1.0.2. Misma ilustracion. Escritorio centrado; movil distribuido. */
.topbar:has(> a.brand > .brand__img) {
    --ac-mansion-width: 68px;
    display: grid;
    grid-template-columns: var(--ac-mansion-width) minmax(0, 1fr) var(--ac-mansion-width);
    column-gap: 10px;
    align-items: center;
}
.topbar:has(> a.brand > .brand__img) > #openDrawer { justify-self: start; }
.topbar:has(> a.brand > .brand__img) > .topbar__center {
    min-width: 0;
    width: 100%;
    justify-content: center;
}
.topbar > a.brand:has(> .brand__img) {
    position: relative;
    display: block;
    justify-self: end;
    width: var(--ac-mansion-width);
    height: calc(var(--ac-mansion-width) * .853333333333);
    border-radius: 0;
}
.topbar > a.brand:has(> .brand__img)::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    background-image: url("mansion-source-v1.webp");
    background-repeat: no-repeat;
    background-size: 170.666666666667% 133.333333333333%;
    background-position: calc(var(--ac-mansion-width) * -.355555555556) 0;
    clip-path: polygon(22.222222% 0,100% 0,100% 100%,0 100%,0 14.322917%,22.222222% 14.322917%);
    mix-blend-mode: multiply;
}
/* El PNG adjuntado se conserva completo, sin redibujarlo ni depender del CDN.
 * El ovalo ocupa solo el interior del medallon; conserva el marco rosado.
 * Coordenadas en el encuadre de 900 x 768: x=285, y=326, w=369, h=351. */
.topbar > a.brand:has(> .brand__img) > .brand__img {
    content: url("logo-original-v101.png");
    visibility: visible;
    position: absolute;
    z-index: 1;
    left: 31.666666666667%;
    top: 42.447916666667%;
    width: 41%;
    height: 45.703125%;
    max-width: none;
    object-fit: fill;
    border: 0;
    border-radius: 50%;
    background: #ffd1df;
    pointer-events: none;
}
.topbar > a.brand:has(> .brand__img):focus-visible {
    outline: 2px solid #ff4da6;
    outline-offset: 2px;
}
/* En movil, cada lateral ocupa solo su propio ancho. El menu usa el espacio
 * disponible; no se reserva una columna vacia junto al boton desplegable. */
@media (max-width: 860px) {
    .topbar:has(> a.brand > .brand__img) {
        --ac-mansion-width: 60px;
        grid-template-columns: max-content minmax(0, 1fr) var(--ac-mansion-width);
        column-gap: 6px;
        padding-inline: 8px;
    }
    .topbar:has(> a.brand > .brand__img) .nav {
        width: 100%;
        justify-content: space-between;
        gap: 4px;
        overflow: visible;
    }
    .topbar:has(> a.brand > .brand__img) .nav__link {
        font-size: 13px;
        font-weight: 700;
        padding: 8px clamp(3px, calc(12.5vw - 37px), 10px);
        white-space: nowrap;
    }
    .topbar:has(> a.brand > .brand__img) .nav__searchBtn {
        min-width: 32px;
        font-size: 13px;
        padding: 8px clamp(6px, calc(10vw - 26px), 10px);
    }
}
@media (max-width: 380px) {
    .topbar:has(> a.brand > .brand__img) { --ac-mansion-width: 54px; column-gap: 4px; }
    .topbar:has(> a.brand > .brand__img) .nav { gap: 2px; }
    .topbar:has(> a.brand > .brand__img) .topSearch { gap: 3px; padding-inline: 4px; }
}
@media (max-width: 340px) {
    .topbar:has(> a.brand > .brand__img) { padding-inline: 6px; }
}
@supports not (clip-path: polygon(0 0,100% 0,100% 100%)) {
    .topbar > a.brand:has(> .brand__img) { width: 40px; height: 40px; }
    .topbar > a.brand:has(> .brand__img)::after { content: none; }
    .topbar > a.brand:has(> .brand__img) > .brand__img {
        position: static; width: 40px; height: 40px; object-fit: cover;
    }
}
