.playball-regular {
    font-family: "Playball", cursive;
    font-weight: 400;
    font-style: normal;
}

/* Estilos para navbar transparente y sticky */
.custom-navbar {
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* Animación desde el centro hacia los lados */
.nav-animated-link {
    position: relative;
    color: #fff;
    transition: color 0.3s ease;
}

/* Hover del carrito */
.checkout-icon {
    color: white;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
}

.checkout-icon:hover {
    background-color: #ffffff;
    color: #000 !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.nav-animated-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease, left 0.3s ease;
    transform: translateX(-50%);
}

.nav-animated-link:hover {
    color: #f8f9fa;
}

.nav-animated-link:hover::after {
    width: 80%;
    left: 50%;
}

/* Animación para los botones iniciar/crear cuenta */ 
.auth-buttons .nav-link {
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

/* Al hacer hover */
.auth-buttons .nav-link:hover {
    background-color: #ffffff;
    color: #000 !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Contenedor principal de auth */
#navAuthContainer {
    display: flex;
    align-items: center;
    min-height: 40px;
    /* Altura fija para evitar saltos */
}

/* Skeleton loader para avatar */
.auth-skeleton {
    display: flex;
    align-items: center;
}

.skeleton-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(90deg, #495057 25%, #6c757d 50%, #495057 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border: 2px solid #dee2e6;
}

/* Botones de auth */
.auth-buttons {
    display: flex;
    align-items: center;
}

/* Dropdown del usuario */
.auth-user {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    border-color: var(--color-btn);
    transform: scale(1.05);
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Estados ocultos */
.hidden {
    display: none !important;
}

/* Transiciones suaves */
.auth-skeleton,
.auth-buttons,
.auth-user {
    transition: opacity 0.3s ease;
}

/* Botones circulares de auth */
.auth-buttons .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid #fff;
}

.auth-buttons .btn:hover {
    background-color: #fff;
    color: #000 !important;
    transform: scale(1.1);
}

/* Asegurar que los estados ocultos funcionen correctamente */
.auth-buttons[style*="display: none"] {
    display: none !important;
}

.auth-user[style*="display: none"] {
    display: none !important;
}