:root {
    --mf-negro: #020403;
    --mf-negro-2: #070b08;
    --mf-negro-3: #101713;
    --mf-verde: #28e07f;
    --mf-verde-fuerte: #0fa457;
    --mf-blanco: #ffffff;
    --mf-blanco-suave: #dbe6df;
    --mf-linea: rgba(255, 255, 255, 0.14);
    --mf-panel: rgba(255, 255, 255, 0.055);

    /* Compatibilidad con variables ya usadas en las páginas. */
    --verde: var(--mf-verde);
    --verde-fuerte: var(--mf-verde-fuerte);
    --azul-claro: var(--mf-negro-3);
    --azul-medio: var(--mf-negro-2);
    --azul-oscuro: var(--mf-negro);
    --texto-suave: var(--mf-blanco-suave);
    --fondo-profundo: var(--mf-negro);
    --fondo-medio: var(--mf-negro-2);
    --fondo-claro: var(--mf-negro-3);
    --fondo-1: var(--mf-negro);
    --fondo-2: var(--mf-negro-2);
    --fondo-3: var(--mf-negro-3);
    --acento: var(--mf-verde);
    --acento-suave: #99efbd;
    --mf-enlace: #8ef7bc;
    --mf-enlace-hover: #b9ffd5;
}

html {
    background: var(--mf-negro);
}

/*
 * Tamaño base del logo en cabeceras/pantallas de cuenta. Varias páginas usan
 * <a class="logo"><img ...></a>; sin esta regla el PNG se muestra a tamaño
 * nativo y ocupa casi toda la pantalla. Las reglas locales más específicas
 * pueden ajustar el ancho cuando una página lo necesite.
 */
body .logo img {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

body {
    color: var(--mf-blanco) !important;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    background:
        radial-gradient(
            circle at 50% -8%,
            rgba(40, 224, 127, 0.13),
            transparent 32%
        ),
        radial-gradient(
            circle at 84% 16%,
            rgba(40, 224, 127, 0.045),
            transparent 22%
        ),
        linear-gradient(
            155deg,
            #0f1511 0%,
            #060907 45%,
            #010202 100%
        ) !important;
}

/*
 * Cabecera global. Se usan !important porque estilos.css tiene una regla
 * genérica para todos los <header> que antes pintaba un rectángulo verde.
 */
body .mf-cabecera-global {
    width: min(1240px, calc(100% - 40px)) !important;
    min-height: 58px !important;
    margin: 0 auto !important;
    padding: 12px 0 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    position: relative !important;
    z-index: 20 !important;
    background: transparent !important;
    color: var(--mf-blanco) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body .mf-cabecera-global .mf-logo {
    display: inline-flex !important;
    align-items: baseline !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: clamp(27px, 2.6vw, 35px) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: -1.5px !important;
    color: var(--mf-blanco) !important;
    transition: transform 0.18s ease, filter 0.18s ease !important;
}

body .mf-cabecera-global .mf-logo span {
    color: var(--mf-verde) !important;
}

body .mf-cabecera-global .mf-logo:hover,
body .mf-cabecera-global .mf-logo:focus-visible {
    transform: translateY(-1px);
    filter: drop-shadow(0 0 11px rgba(40, 224, 127, 0.34));
    outline: none;
}

/* Ruta Ligas > Clubes > Categorías > Plantel. */
body .mf-ruta {
    width: min(1240px, calc(100% - 40px)) !important;
    margin: 10px auto 24px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 9px !important;
    position: relative !important;
    z-index: 19 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    font-size: clamp(13px, 1.05vw, 15px) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.015em !important;
    text-transform: none !important;
}

body .mf-ruta a {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
    color: rgba(255, 255, 255, 0.76) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    font-size: inherit !important;
    font-weight: 800 !important;
    transition: color 0.18s ease, text-shadow 0.18s ease !important;
}

body .mf-ruta a:hover,
body .mf-ruta a:focus-visible,
body .mf-ruta a.activo {
    color: var(--mf-verde) !important;
    text-shadow: 0 0 12px rgba(40, 224, 127, 0.28);
    outline: none;
}

body .mf-ruta .separador {
    color: rgba(255, 255, 255, 0.38) !important;
}

/* Ya no usamos el viejo botón Inicio/Volver en estas pantallas. */
.barra-superior > .volver,
.pagina-club > .volver,
.pagina-album > .barra-superior .volver,
.pagina-jugador > .barra-superior .volver {
    display: none !important;
}

/* Tipografía de las pantallas de club/categorías. */
body .pagina-club .datos-club h1 {
    color: #ffffff !important;
    font-size: clamp(38px, 5vw, 62px) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: -0.035em !important;
}

body .pagina-club .datos-club p {
    color: var(--mf-blanco-suave) !important;
    font-size: 17px !important;
    line-height: 1.45 !important;
}

body .pagina-club .titulo-categorias,
body .pagina-album .titulo-seccion h2 {
    color: #ffffff !important;
    font-size: clamp(25px, 2.5vw, 34px) !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
}

body .pagina-club .categoria h2 {
    color: #ffffff !important;
    font-size: 21px !important;
    font-weight: 850 !important;
}

body .pagina-club .categoria p {
    color: var(--mf-blanco-suave) !important;
    font-size: 14px !important;
}

/* Álbum: mantener encabezado y textos legibles sin heredar el header verde. */
body .pagina-album > header.cabecera-album {
    color: #ffffff !important;
}

body .pagina-album .cabecera-album h1 {
    font-size: clamp(40px, 5.2vw, 64px) !important;
    font-weight: 900 !important;
    line-height: 0.98 !important;
    letter-spacing: -0.035em !important;
}

body .pagina-album .cabecera-album p {
    color: var(--mf-blanco-suave) !important;
    font-size: 18px !important;
}

/* Ficha del jugador: conservar el diseño aprobado y nunca volver al header verde. */
body .pagina-jugador > header.cabecera-jugador {
    background: transparent !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body .pagina-jugador .nombre-jugador {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(46px, 7vw, 82px) !important;
}

body .pagina-jugador .subtitulo-jugador {
    font-size: clamp(17px, 2vw, 21px) !important;
}

/* Negro, verde y blanco como identidad dominante. */
body .buscador input,
body .buscador-clubes,
body form input,
body form select,
body form textarea {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.52);
}

body .buscador input::placeholder,
body .buscador-clubes::placeholder,
body form input::placeholder,
body form textarea::placeholder {
    color: rgba(255, 255, 255, 0.56);
}

body .boton-principal,
body .buscador button,
body form button {
    color: #041008 !important;
    background: var(--mf-verde) !important;
    border-color: var(--mf-verde) !important;
}

body .boton-principal:hover,
body .buscador button:hover,
body form button:hover {
    background: #45eb91 !important;
}

body .boton-secundario {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.075) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

body .emblema,
body .escudo,
body .escudo-principal {
    background:
        radial-gradient(
            circle at 35% 28%,
            rgba(255, 255, 255, 0.14),
            rgba(0, 0, 0, 0.68) 67%
        ) !important;
}

body .liga.activa .emblema,
body .club.activo .escudo {
    border-color: var(--mf-verde) !important;
    box-shadow:
        0 0 0 1px rgba(40, 224, 127, 0.20),
        0 0 34px rgba(40, 224, 127, 0.19),
        0 24px 60px rgba(0, 0, 0, 0.55) !important;
}

body .contexto-liga,
body .mensaje,
body .sin-categorias,
body .error,
body .descripcion,
body .dato,
body .tarjeta-club {
    color: #ffffff;
    background: rgba(4, 7, 5, 0.82) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
}

body .tarjeta-club p,
body .datos-club p,
body .cabecera-album p,
body .subtitulo-jugador,
body .contexto-liga {
    color: var(--mf-blanco-suave) !important;
}

body .pagina-club .cabecera-club {
    background: rgba(4, 7, 5, 0.76) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
}

body .pagina-club .categoria {
    background: rgba(6, 10, 7, 0.90) !important;
    border-color: rgba(255, 255, 255, 0.11) !important;
}

body .pagina-club .categoria:hover,
body .pagina-club .categoria:focus {
    background: rgba(40, 224, 127, 0.105) !important;
    border-color: rgba(40, 224, 127, 0.48) !important;
}

body .panel-datos .dato,
body .descripcion,
body .video-item,
body .panel-video {
    background: rgba(5, 8, 6, 0.86) !important;
}

.marca-enlace {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
}

.marca-enlace:hover,
.marca-enlace:focus-visible {
    outline: none;
    filter: drop-shadow(0 0 16px rgba(40, 224, 127, 0.26));
}

@media (max-width: 700px) {
    body .mf-cabecera-global {
        width: min(100% - 28px, 1240px) !important;
        min-height: 50px !important;
    }

    body .mf-cabecera-global .mf-logo {
        font-size: 27px !important;
    }

    body .mf-ruta {
        width: min(100% - 24px, 1240px) !important;
        gap: 7px !important;
        font-size: 12px !important;
    }
}

/* V2.7 · logotipo gráfico compartido */
.logo img,
.marca img,
.mf-logo img,
.mf-logo-marca img {
    display: block;
    width: clamp(150px, 18vw, 240px);
    height: auto;
    max-height: 70px;
    object-fit: contain;
}

.logo:has(img),
.mf-logo:has(img),
.mf-logo-marca {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    text-decoration: none !important;
}

body .mf-cabecera-global .mf-logo:has(img) {
    align-items: center !important;
}

body .mf-cabecera-global .mf-logo img {
    width: clamp(165px, 19vw, 250px);
    max-height: 72px;
}

@media (max-width: 700px) {
    .logo img,
    .marca img,
    .mf-logo img,
    .mf-logo-marca img,
    body .mf-cabecera-global .mf-logo img {
        width: 150px;
        max-height: 54px;
    }
}


/* V2.7.2 · la marca siempre se ubica arriba a la izquierda. */
.marca-wrap {
    text-align: left !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
}
.marca-wrap > a.marca:has(img) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}


@media (max-width: 600px) {
    body .logo img {
        width: 165px;
    }
}

/* ================================================================
 * V2.7.3 · Explorador jerárquico compartido
 * Replica el selector de Ligas por Provincia en AFA, Liga Metro,
 * Liga Buenos Aires y en los pasos siguientes (clubes/categorías).
 * ================================================================ */
.mf-explorador {
    width: min(100% - 44px, 1100px);
    margin: 0 auto;
}

.mf-explorador-buscador {
    width: min(100%, 680px);
    margin: 8px auto 20px;
}

.mf-explorador-buscador input {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    font: inherit;
    font-size: 16px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.mf-explorador-buscador input::placeholder {
    color: rgba(255,255,255,.55);
}

.mf-explorador-buscador input:focus {
    border-color: rgba(40, 224, 127, .72);
    box-shadow: 0 0 0 3px rgba(40,224,127,.10);
}

.mf-explorador-seleccion {
    min-height: 112px;
    text-align: center;
    padding-top: 4px;
}

.mf-explorador-seleccion h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(28px, 4.8vw, 54px);
    line-height: 1.02;
    letter-spacing: -.04em;
}

.mf-explorador-seleccion p {
    margin: 9px 0 0;
    color: var(--mf-blanco-suave);
    font-size: 15px;
}

.mf-explorador-zona {
    position: relative;
    width: 100%;
    min-height: 350px;
    overflow: hidden;
}

.mf-explorador-track {
    height: 326px;
    display: flex;
    align-items: center;
    gap: 28px;
    overflow: hidden;
    padding: 20px calc(50% - 100px);
    scroll-behavior: smooth;
}

.mf-explorador-item {
    flex: 0 0 200px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    opacity: .42;
    transform: scale(.82);
    transition: transform .24s ease, opacity .24s ease, filter .24s ease;
    cursor: pointer;
    border-radius: 24px;
    color: #ffffff;
    text-decoration: none;
}

.mf-explorador-item[hidden] {
    display: none !important;
}

.mf-explorador-item:visited {
    color: #ffffff;
}

.mf-explorador-item:hover {
    color: #ffffff;
    opacity: .72;
}

.mf-explorador-item:focus-visible {
    outline: 2px solid var(--mf-verde);
    outline-offset: 8px;
}

.mf-explorador-item.activo {
    opacity: 1;
    transform: scale(1.08);
}

.mf-explorador-emblema {
    width: 178px;
    height: 178px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.38);
    background:
        radial-gradient(circle at 35% 28%, rgba(255,255,255,.14), rgba(0,0,0,.68) 67%);
    box-shadow: 0 20px 44px rgba(0,0,0,.28);
    color: #ffffff;
    font-size: 42px;
    font-weight: 950;
    letter-spacing: -.04em;
    text-align: center;
    padding: 12px;
}

.mf-explorador-item.activo .mf-explorador-emblema {
    border-color: var(--mf-verde);
    box-shadow:
        0 0 0 7px rgba(40,224,127,.10),
        0 22px 55px rgba(0,0,0,.42);
}

.mf-explorador-emblema img {
    width: 86%;
    height: 86%;
    object-fit: contain;
}

.mf-explorador-mini {
    width: 190px;
    min-height: 36px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    color: #dce8e1;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.3;
    text-align: center;
}

.mf-explorador-flecha {
    position: absolute;
    z-index: 5;
    top: 132px;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 50%;
    color: #ffffff !important;
    background: rgba(2,9,5,.78) !important;
    backdrop-filter: blur(8px);
    cursor: pointer;
    font-size: 24px;
    display: grid;
    place-items: center;
    padding: 0;
}

.mf-explorador-flecha:hover,
.mf-explorador-flecha:focus-visible {
    border-color: var(--mf-verde) !important;
    background: rgba(5,20,11,.90) !important;
    outline: none;
}

.mf-explorador-flecha.anterior { left: calc(50% - 150px); }
.mf-explorador-flecha.siguiente { right: calc(50% - 150px); }

.mf-explorador-acciones {
    display: flex;
    justify-content: center;
    margin-top: 2px;
}

.mf-explorador-boton,
.mf-explorador-boton:visited {
    display: inline-flex;
    min-width: 230px;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 13px;
    color: #06120c !important;
    background: var(--mf-verde);
    text-decoration: none;
    font-weight: 950;
    transition: transform .18s ease, background .18s ease;
}

.mf-explorador-boton:hover,
.mf-explorador-boton:focus-visible {
    color: #06120c !important;
    background: #55eb99;
    transform: translateY(-1px);
    outline: none;
}

.mf-explorador-sin-resultados {
    display: none;
    width: min(100%, 720px);
    margin: 18px auto 0;
    padding: 18px;
    border: 1px dashed rgba(255,255,255,.22);
    border-radius: 16px;
    color: var(--mf-blanco-suave);
    text-align: center;
    background: rgba(3,7,4,.72);
}

.mf-explorador.vacio-busqueda .mf-explorador-seleccion,
.mf-explorador.vacio-busqueda .mf-explorador-zona,
.mf-explorador.vacio-busqueda .mf-explorador-acciones {
    display: none;
}

.mf-explorador.vacio-busqueda .mf-explorador-sin-resultados {
    display: block;
}

/* El violeta de enlaces visitados se corrige SOLO en Crear perfil. */
body.pagina-crear-perfil .rol,
body.pagina-crear-perfil .rol:visited {
    color: var(--mf-verde) !important;
}

body.pagina-crear-perfil .rol:hover,
body.pagina-crear-perfil .rol:focus-visible {
    color: #63eea3 !important;
}

body.pagina-crear-perfil .rol p {
    color: var(--mf-blanco-suave) !important;
}

@media (max-width: 720px) {
    .mf-explorador {
        width: min(100% - 26px, 1100px);
    }

    .mf-explorador-track {
        gap: 16px;
        padding-left: calc(50% - 86px);
        padding-right: calc(50% - 86px);
    }

    .mf-explorador-item {
        flex-basis: 172px;
    }

    .mf-explorador-emblema {
        width: 148px;
        height: 148px;
        font-size: 34px;
    }

    .mf-explorador-flecha {
        top: 122px;
        width: 46px;
        height: 46px;
    }

    .mf-explorador-flecha.anterior { left: calc(50% - 122px); }
    .mf-explorador-flecha.siguiente { right: calc(50% - 122px); }
}



/* ==========================================================
   MASFUTBOL V2.8.8 · SESIÓN PÚBLICA Y NAVEGACIÓN SIMPLIFICADA
   ========================================================== */

/* La antigua ruta Ligas > Clubes > Categorías > Plantel deja de mostrarse. */
body .mf-ruta {
    display: none !important;
}

/* Menú público de sesión, común a las pantallas principales. */
body .mf-sesion-global {
    position: fixed !important;
    top: 18px !important;
    right: 18px !important;
    z-index: 10050 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;
}

body .mf-sesion-invitado {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

body .mf-sesion-invitado .mf-auth-link,
body .mf-sesion-invitado .mf-auth-link:link,
body .mf-sesion-invitado .mf-auth-link:visited {
    display: inline-flex !important;
    min-height: 42px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 9px 14px !important;
    border: 1px solid rgba(40, 224, 127, 0.48) !important;
    border-radius: 12px !important;
    background: rgba(0, 0, 0, 0.70) !important;
    color: var(--mf-verde) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24) !important;
    backdrop-filter: blur(10px);
}

body .mf-sesion-invitado .mf-auth-link:hover,
body .mf-sesion-invitado .mf-auth-link:focus-visible {
    color: #b5ffd3 !important;
    border-color: var(--mf-verde) !important;
    outline: none !important;
}

body .mf-sesion-menu {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
}

body .mf-sesion-menu > summary {
    list-style: none !important;
    display: inline-flex !important;
    min-height: 43px !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 9px 14px !important;
    border: 1px solid rgba(40, 224, 127, 0.48) !important;
    border-radius: 13px !important;
    background: rgba(0, 0, 0, 0.76) !important;
    color: #b2ffd1 !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28) !important;
    backdrop-filter: blur(11px);
}

body .mf-sesion-menu > summary::-webkit-details-marker {
    display: none !important;
}

body .mf-sesion-menu > summary::after {
    content: "▾" !important;
    margin-left: 2px !important;
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 11px !important;
}

body .mf-sesion-menu[open] > summary::after {
    content: "▴" !important;
}

body .mf-sesion-punto {
    width: 8px !important;
    height: 8px !important;
    flex: 0 0 8px !important;
    border-radius: 50% !important;
    background: var(--mf-verde) !important;
    box-shadow: 0 0 12px rgba(40, 224, 127, 0.72) !important;
}

body .mf-sesion-panel {
    position: absolute !important;
    right: 0 !important;
    top: calc(100% + 9px) !important;
    width: min(310px, calc(100vw - 28px)) !important;
    padding: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 16px !important;
    background: rgba(4, 7, 5, 0.97) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62) !important;
    backdrop-filter: blur(14px);
}

body .mf-sesion-identidad {
    display: grid !important;
    gap: 3px !important;
    padding: 10px 11px 12px !important;
    margin-bottom: 5px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
}

body .mf-sesion-identidad strong {
    color: #ffffff !important;
    font-size: 14px !important;
}

body .mf-sesion-identidad span {
    overflow: hidden !important;
    color: var(--mf-blanco-suave) !important;
    font-size: 12px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body .mf-sesion-panel > a,
body .mf-sesion-panel > a:link,
body .mf-sesion-panel > a:visited,
body .mf-sesion-cerrar button {
    display: flex !important;
    width: 100% !important;
    min-height: 41px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 9px 11px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #f2f8f4 !important;
    text-align: left !important;
    text-decoration: none !important;
    font: inherit !important;
    font-size: 13px !important;
    font-weight: 820 !important;
    cursor: pointer !important;
}

body .mf-sesion-panel > a:hover,
body .mf-sesion-panel > a:focus-visible,
body .mf-sesion-cerrar button:hover,
body .mf-sesion-cerrar button:focus-visible {
    background: rgba(40, 224, 127, 0.10) !important;
    color: #aaffc9 !important;
    outline: none !important;
}

body .mf-sesion-panel > a.mf-sesion-admin,
body .mf-sesion-panel > a.mf-sesion-admin:visited {
    color: var(--mf-verde) !important;
    background: rgba(40, 224, 127, 0.075) !important;
    border: 1px solid rgba(40, 224, 127, 0.20) !important;
    margin: 5px 0 !important;
}

body .mf-sesion-cerrar {
    margin: 5px 0 0 !important;
    padding: 5px 0 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.10) !important;
}

body .mf-sesion-cerrar button {
    color: #ffb9b9 !important;
}

@media (max-width: 700px) {
    body .mf-sesion-global {
        top: 12px !important;
        right: 12px !important;
    }

    body .mf-sesion-invitado {
        gap: 6px !important;
    }

    body .mf-sesion-invitado .mf-auth-link {
        min-height: 38px !important;
        padding: 8px 10px !important;
        font-size: 12px !important;
    }

    body .mf-sesion-menu > summary {
        min-height: 39px !important;
        max-width: 190px !important;
        padding: 8px 10px !important;
        font-size: 12px !important;
    }

    body .mf-sesion-menu > summary span:nth-child(2) {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
}

/* MASFUTBOL_LOGO_GLOBAL_V1_START */

/*
   Logo general de MasFutbol.
   Replica la ubicacion visual del index:
   esquina superior izquierda y tamaño responsive.

   Se excluyen:
   - .logo-esquina: ya lo controla index.php.
   - .mf-logo: encabezados globales que ya poseen diseño propio.
*/
a:has(> img[src="/assets/img/masfutbol-logo.png"]):not(.logo-esquina):not(.mf-logo){
    position:relative;
    left:calc(50% - 50vw + 24px);
    z-index:15;
    display:inline-flex;
    align-items:center;
    justify-content:flex-start;
    width:clamp(180px,18vw,300px);
    max-width:calc(100vw - 48px);
    height:auto;
    text-decoration:none;
}

a:has(> img[src="/assets/img/masfutbol-logo.png"]):not(.logo-esquina):not(.mf-logo) > img{
    display:block;
    width:100% !important;
    max-width:100%;
    height:auto !important;
    object-fit:contain;
}

@media(max-width:650px){
    a:has(> img[src="/assets/img/masfutbol-logo.png"]):not(.logo-esquina):not(.mf-logo){
        left:calc(50% - 50vw + 14px);
        width:165px;
        max-width:calc(100vw - 28px);
    }
}

/* MASFUTBOL_LOGO_GLOBAL_V1_END */
