.tc-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(17, 17, 17, 0.607);
    z-index: 999;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 16px;
    min-height: 70px;
    box-sizing: border-box;
}

.tc-container {
    width: min(80rem, 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 0.35rem 0.75rem;
}

.tc-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    min-width: 0;
}

.tc-logo img {
    width: 12rem;
    color: white;
}

.tc-center,
.tc-right {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.tc-center {
    flex: 1 1 auto;
    justify-content: center;
}

.tc-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tc-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.25s ease;
}

.tc-menu a:hover {
    color: #7dd3fc;
}

.tc-login-btn {
    background: #5865f2;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    color: white;
    white-space: nowrap;
    transition: transform 0.3s ease; /* Aquí sucede la magia */
}
.tc-login-btn:hover {
    /* En lugar de 1.05, prueba con un valor muy cercano que no rompa el pixel-grid */
    transform: scale(1.030);
}

.tc-user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    cursor: pointer;
    position: relative;
    min-width: 0;
}

.tc-user img {
    width: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tc-user span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.tc-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #111;
    padding: 10px;
    border-radius: 8px;
    min-width: 160px;
    border: 1px solid rgba(255,255,255,0.12);
    z-index: 1200;
}

.tc-dropdown a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 6px;
}

.tc-dropdown a:hover {
    background: rgba(255,255,255,0.08);
}

.tc-user.open .tc-dropdown {
    display: block;
}

.tc-hamburger {
    display: none;
    border: 0;
    background: transparent;
    width: 44px;
    height: 44px;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

.tc-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.tc-navbar.scrolled {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.nombre-jugador {
    color: white;
    font-weight: bold;
    margin-left: 10px;
}
.btn-tienda-drop{
    background-color: transparent;
    border-style: none;
    color: white;
}
/* Activación por hover */
.dropdown:hover > .dropdown-menu {
  display: block;
}

/* Opcional: Ajustar el margen superior para evitar que el menú se cierre al mover el mouse hacia abajo */
.dropdown > .dropdown-menu {
  margin-top: 0px;
}
.dropdown-menu{
    border-style: hidden;
}
.dropdown-menu-tienda{
    display: none;
    min-width: 100%; /*Los botones no quedaran mas pequeños que el label*/
    width: 540px;
    height: 85px;
    background-color: rgba(36, 36, 36, 0.911);
    padding: 10px;
    color: white;
    border: 1px solid #ffffff85; /* Corregido: border-style no acepta colores */
    position: absolute;
    top: 100%;
    margin-top: 15px;
}
.dropdown-item-tienda{
    padding: 10px;
    background-color: transparent;
    height: 100%;
    width: 250px;
    color: white;
    border-radius: 8px;
    display: flex;
}
.dropdown-item-tienda:hover{
    cursor: pointer;
    background-color: rgba(255,255,255,0.08);
    color: aqua;
}
/* Solo cuando el dropdown se activa, se vuelve flex */
.dropdown:hover .dropdown-menu-tienda,
.dropdown.show .dropdown-menu-tienda,
.dropdown-menu-tienda.show {
    display: flex !important; /* El !important asegura que le gane al 'block' */
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.dropdown-item-tienda-titulo{
    position: fixed;
    margin-left: 50px;
}
.dropdown-item-tienda-subtitulo{
    color: #ffffff65;
    font-size: smaller;
    top: -5px;
    margin-left: 10px;
    margin-top: 20px;
}
.logo-rango{
    color: #5865f2;
}
@media (max-width: 1024px) {
    .tc-container {
        padding-inline: 0.25rem;
    }

    .tc-menu {
        gap: 18px;
    }

    .tc-logo span {
        font-size: 1rem;
    }

    .tc-user span {
        max-width: 130px;
    }
}

@media (max-width: 768px) {
    .tc-navbar {
        padding: 8px 14px;
    }

    .tc-container {
        position: relative;
        flex-wrap: wrap;
        gap: 10px;
        padding: 0;
    }

    .tc-logo {
        max-width: calc(100% - 118px);
    }

    .tc-logo span {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .tc-hamburger {
        display: inline-flex;
    }

    .tc-center {
        order: 3;
        width: 100%;
        display: block;
    }

    .tc-menu {
        display: none;
        width: 100%;
        margin-top: 8px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 14px;
        background: rgba(17, 17, 17, 0.96);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 16px;
        backdrop-filter: blur(12px);
    }

    .tc-menu.active {
        display: flex;
    }

    .tc-menu li,
    .tc-menu a {
        width: 100%;
    }

    .tc-menu a {
        display: block;
        padding: 12px 14px;
        border-radius: 12px;
        background: rgba(255,255,255,0.03);
    }

    .tc-right {
        margin-left: auto;
        gap: 10px;
    }

    .tc-user span {
        display: none;
    }

    .tc-login-btn {
        padding: 8px 14px;
        font-size: 0.92rem;
    }

    .tc-dropdown {
        right: -8px;
    }
}

@media (max-width: 480px) {
    .tc-navbar {
        padding-inline: 12px;
    }

    .tc-logo {
        gap: 8px;
        max-width: calc(100% - 104px);
    }

    .tc-logo span {
        font-size: 0.88rem;
    }

    .tc-login-btn {
        padding: 7px 12px;
        font-size: 0.85rem;
    }

    .tc-user img {
        width: 36px;
    }
}
