/* ------------------------------------
espacio para el header no tape el titulo
------------------------------------- */
html {
  scroll-padding-top: 80px; /* Ajusta según la altura de tu header */
}

main {
  padding-top: 80px; /* Mismo valor que scroll-padding-top */
}

/*----------------------------------------------
menu hambuerguesa y barra de navegacion
---------------------------------------*/

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    padding: 0.5rem;
}

.user-actions, .auth-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-dashboard, .btn-logout, .btn-login, .btn-register {
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.btn-dashboard {
    background-color: #4a6cf7;
    color: white;
}

.btn-logout {
    background-color: #f13c3c;
    color: white;
}

.btn-login {
    background-color: #6d6d6d;
    color: white;
}

.btn-register {
    background-color: #6d6d6d;
    color: white;
}

.btn-dashboard:hover, .btn-logout:hover, .btn-login:hover, .btn-register:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.guest-message {
    margin-right: 15px;
    color: #666;
    font-style: italic;
}

/* Responsive styles */
@media (max-width: 768px) {
    .menu-toggle {
    display: block;
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 1001;
    }
    
    .menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    padding: 70px 20px 20px;
    transition: right 0.3s ease;
    z-index: 1000;
    flex-direction: column;
    display: flex;
    overflow-y: auto;
    }
    
    .menu.active {
    right: 0;
    }
    
    .menu a:not(.btn-login, .btn-register) {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    width: 100%;
    }
    
    .user-auth {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    }
    
    .auth-links, .user-actions {
    flex-direction: column;
    width: 100%;
    }
    
    .auth-links a, .user-actions a {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
    }
    
    .user-auth > div {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px !important;
    }
}

@media (min-width: 769px) {
    .navbar {
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    }
    
    .menu {
    display: flex;
    align-items: center;
    gap: 20px;
    }
    
    .user-auth {
    display: flex;
    align-items: center;
    gap: 15px;
    }
}


    