/**
 * Logotipo alegaTot — PNG oficiales (icono + wordmark), sin fondos añadidos.
 */

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    line-height: 1;
    background: transparent;
}

.brand-logo:hover {
    text-decoration: none;
}

.brand-logo__img {
    display: block;
    width: auto;
    object-fit: contain;
    background: transparent;
}

.brand-logo__img--icon-part {
    height: 2.35rem;
    max-width: 2.35rem;
    flex-shrink: 0;
}

.brand-logo__img--wordmark-part {
    height: 1.55rem;
    max-width: min(100%, 11rem);
}

.brand-logo__img--icon {
    height: 2.5rem;
    max-width: 2.5rem;
}

.brand-logo__img--wordmark {
    height: 2.1rem;
    max-width: min(100%, 16rem);
}

.brand-logo__img--stacked {
    height: auto;
    max-width: min(100%, 11rem);
}

.brand-logo--stacked-dark,
.brand-logo--login {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
}

.brand-logo--login {
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.brand-logo--login .brand-logo__img--icon-part {
    height: 3.25rem;
    max-width: 3.25rem;
}

.brand-logo--login .brand-logo__img--wordmark-part {
    height: 1.35rem;
    max-width: min(100%, 10rem);
}

.brand-logo--stacked-dark .brand-logo__img--icon-part {
    height: 3rem;
    max-width: 3rem;
}

.brand-logo--stacked-dark .brand-logo__img--wordmark-part {
    height: 1.4rem;
    max-width: min(100%, 10rem);
}

.login-brand .brand-logo--login + p,
.login-brand > p {
    margin-top: 0.5rem;
}

@media (max-width: 480px) {
    .brand-logo__img--icon-part {
        height: 2rem;
        max-width: 2rem;
    }

    .brand-logo__img--wordmark-part {
        height: 1.35rem;
    }

    .brand-logo__img--wordmark {
        height: 1.85rem;
    }

    .dwbi-hero-logo .brand-logo__img--icon-part {
        height: 2.75rem;
        max-width: 2.75rem;
    }

    .dwbi-hero-logo .brand-logo__img--wordmark-part {
        height: 1.4rem;
    }
}

/* Marca tipográfica inline (alegaTot) */
.brand-mark {
    display: inline-flex;
    align-items: baseline;
    font-family: var(--font-body, 'Archivo', system-ui, sans-serif);
    font-weight: 700;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.brand-mark__alega {
    color: inherit;
    text-transform: lowercase;
}

.brand-mark__tot {
    color: var(--brand-orange, #E8590C);
}

.site-footer .brand-mark__alega {
    color: #fff;
}

.site-footer .brand-mark__tot {
    color: var(--brand-orange, #E8590C);
}

.brand-mark--footer {
    text-decoration: none;
}

.brand-mark--footer:hover {
    text-decoration: none;
}

.brand-mark--footer:hover .brand-mark__tot {
    color: var(--brand-orange-hover, #F2670F);
}

.brand-logo--nav {
    gap: 0.5rem;
}

.brand-mark--nav {
    font-size: 1.125rem;
    letter-spacing: -0.02em;
}

.brand-mark--nav .brand-mark__alega {
    color: var(--on-surface, #1a1715);
}

.brand-mark--nav .brand-mark__tot {
    color: var(--brand-orange, #E8590C);
}

.dwbi-nav-logo.brand-logo--nav .brand-logo__img--icon-part {
    height: 2.35rem;
    max-width: 2.35rem;
}

.brand-mark-img {
    display: inline-flex;
    vertical-align: middle;
}

.brand-mark-img--light .brand-logo__img--icon-part {
    height: 1.35rem;
    max-width: 1.35rem;
}

.brand-mark-img--light .brand-logo__img--wordmark-part {
    height: 1.1rem;
}

.brand-mark-img--dark .brand-logo__img--wordmark {
    height: 1.35rem;
    max-width: 8rem;
}
