    body {
        margin: 0;
        padding: 0;
        height: 100%;
        width: 100%;
        font-family: Arial, sans-serif;
        background-color: dimgray;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        margin: 0;
        padding: 0;
        background-image: url("../img/fondo.webp");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-color: #333;
    }

    a {
        text-decoration: none;
        color: white;
    }

    .loader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: #333;
        display: flex;
        justify-content: center;
        /* Centra horizontalmente */
        align-items: center;
        /* Centra verticalmente */
        z-index: 9999;
    }

    .loader img {
        width: 140px;
        height: 140px;
        animation: spin 2s linear infinite;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }


    .logo {
        position: fixed;
        top: 5px;
        left: 70px;
        width: 70px;
        z-index: 1001;
        cursor: pointer;
    }

    /* Botón hamburguesa */
    .toggle-btn {
        position: fixed;
        top: 22px;
        left: 20px;
        width: 35px;
        height: 35px;
        background: #a42322;
        border: none;
        cursor: pointer;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        z-index: 1001;
    }

    .toggle-btn .bar {
        position: relative;
        width: 25px;
        height: 2px;
        background: white;
        transition: 0.3s;
    }

    .toggle-btn .bar::before,
    .toggle-btn .bar::after {
        content: "";
        position: absolute;
        width: 25px;
        height: 2px;
        background: white;
        transition: 0.3s;
    }

    .toggle-btn .bar::before {
        top: -8px;
        left: 0;
    }

    .toggle-btn .bar::after {
        top: 8px;
        left: 0;
    }

    .toggle-btn.active .bar {
        background: transparent;
    }

    .toggle-btn.active .bar::before {
        transform: rotate(45deg);
        top: 0;
    }

    .toggle-btn.active .bar::after {
        transform: rotate(-45deg);
        top: 0;
    }

    /* Menú vertical */
    .vertical-menu {
        width: 200px;
        height: 100vh;
        background-color: #1e1e1e;
        position: fixed;
        top: 0;
        left: 0;
        padding-top: 80px;
        overflow: hidden;
        transition: width 0.3s, padding 0.3s;
        z-index: 1000;
    }

    /* Estado plegado */
    .vertical-menu.collapsed {
        width: 0;
        padding: 60px 0;
    }

    .vertical-menu a {
        display: block;
        padding: 12px 20px;
        color: #fff;
        text-decoration: none;
        transition: background 0.3s;
        white-space: nowrap;
    }

    .vertical-menu a:hover {
        background-color: #333;
    }

    .vertical-menu a.active {
        background-color: #a42322;
        color: white;
    }

    /*menu-horizontal*/
    .horizontal-menu {
        display: flex;
        background-color: #1e1e1e;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 80px;
        z-index: 999;
    }

    .escudo img {
        position: fixed;
        top: 10px;
        right: 10px;
        text-align: right;
        width: 70px;
    }

    /* Opciones del equipo */
    .menu-equipo {
        position: fixed;
        top: 26px;
        right: 0;
        margin-right: 90px;
        color: white;
    }

    .menu-equipo:hover {
        color: #a42322;
        transition-duration: .5s;
    }

    .menu-equipo-btn {
        all: unset;
        cursor: pointer;
        font-size: 22px;
        font-weight: bold;
    }

    .menu-equipo-items {
        position: absolute;
        margin-top: 10px;
        top: 100%;
        left: 0;
        color: white;
        background: #1e1e1edb;
        border-radius: 6px;
        box-shadow: 0 4px 10px rgb(0, 0, 0);
        overflow: hidden;
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.25s ease;
    }

    .menu-equipo.active .menu-equipo-items {
        transform: scaleY(1);
    }

    .menu-equipo-item {
        padding: 12px 18px;
        cursor: pointer;
        white-space: nowrap;
    }

    .menu-equipo-item:hover {
        background: #a42322;
        color: white;
    }

    /* Contenido */
    .contenido {
        margin-left: 200px;
        padding: 10px;
        transition: margin-left 0.3s;
        margin-top: 80px;
    }

    .contenido.collapsed {
        margin: 0 auto;
        margin-top: 80px;
    }


    /* Footer */
    footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #1e1e1e;
        color: #fff;
        text-align: center;
        padding: 15px 0;
        font-family: Arial, sans-serif;
    }

    @media (max-width: 550px) {

        /* Escudo */
        .escudo img {
            margin-top: -5px;
            width: 60px;
        }

        .menu-equipo {
            margin-right: 90px;
        }

        /* Menú cerrado por defecto */
        .vertical-menu {
            width: 0;
            padding: 60px 0;
        }

        /* Cuando NO está colapsado → abrir menú */
        .vertical-menu:not(.collapsed) {
            width: 100%;
            padding-top: 80px;
        }

        .contenido {
            margin-left: 0;
        }

        .contenido:not(.collapsed) {
            margin-left: 200px;
        }

        .contenido.collapsed {
            margin: 0 auto;
            margin-top: 80px;
        }

        .jugador-card {
            width: 70vw;
            height: 110vw;
        }

        .jugador-rating {
            font-size: 32px;
        }

        .jugador-position {
            font-size: 16px;
        }

        .jugador-name {
            font-size: 18px;
        }

        .jugador-stats {
            font-size: 14px;
            padding: 0 12px 10px;
            gap: 6px 10px;
        }

        .btn-glass {
            font-size: 20px;
            padding: 6px 10px;
            border-radius: 10px;
        }

        .prev-glass {
            left: 5px;
        }

        .next-glass {
            right: 5px;
        }

    }