/* LEONES — identidad funcional de portada.
   Regla: la cara/base JPG de LEONES se reutiliza en todos los iconos funcionales;
   el distintivo textual identifica la función. No se usan SVG funcionales aquí. */
.wrap {
    width: min(var(--site-max), calc(100% - 2rem));
    margin: 0 auto;
    padding: 1rem 0;
}
.leones-identity {
    background: var(--site-bg, #f3f6f9);
}
.leones-section-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 58px;
    margin-bottom: 0.75rem;
}
.leones-section-brand img {
    display: block;
    width: 58px !important;
    height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
    min-width: 58px;
    min-height: 58px;
    object-fit: contain;
    flex: 0 0 58px;
}
.leones-section-brand strong {
    color: var(--site-heading);
}
.leones-section-brand .small {
    color: var(--site-muted);
    font-size: 0.82rem;
}
.leones-logo-rail {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
    align-items: stretch;
}
.leones-logo-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    min-width: 0;
    min-height: 48px;
    padding: 0.45rem 0.5rem;
    border: 1px solid var(--site-border);
    border-radius: 0.55rem;
    background: var(--site-surface);
    color: var(--site-heading);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 750;
}
.leones-logo-link:hover {
    background: var(--site-soft);
    border-color: var(--site-accent);
}
.leones-logo-link img {
    display: block;
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    min-width: 30px;
    min-height: 30px;
    flex: 0 0 30px;
    object-fit: cover;
    border-radius: 50%;
}
.leones-function-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 3px;
    box-sizing: border-box;
    border-radius: 50%;
    background: var(--site-heading);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 900;
    line-height: 1;
    flex: 0 0 auto;
}
.leones-logo-link span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 900px) {
    .leones-logo-rail {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .wrap {
        width: min(100% - 1rem, var(--site-max));
    }
    .leones-section-brand img {
        width: 48px !important;
        height: 48px !important;
        max-width: 48px !important;
        max-height: 48px !important;
        flex-basis: 48px;
    }
    .leones-logo-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
