Menú Espectacular
<
* {
* {
m
*
margin: 0;
padding: 0;
box-sizing: border-box;
}
}
body {
font-family: ‘Arial’, sans-serif;
backgr
bac
background: linear-gradient(135deg, #6a11cb, #2575fc);
col
color: white;
height: 100vh;
display: flex;
align-it
align
al
align-items: center;
justify-cont
justify
justify-content: center;
}
}
.
}
.navbar {
position: fixed;
top: 0;
wid
width: 100%;
display: flex;
justify-cont
justify-
jus
justify-content: space-between;
align-ite
align
align-items: center;
padding: 10px 20px;
background: rgba(0, 0, 0, 0.7);
backdrop-
backdrop-filte
backdrop-fi
backdrop
backd
ba
filter: blur(10px);
}
.logo {
font-size: 1.8rem;
fon
font-weight: bold;
}
.nav-links {
list-styl
list-s
lis
list-style: none;
display: flex;
gap: 20px;
}
.nav-links li {
positi
po
position: relative;
}
.nav-links a {
te
text-decoration: none;
co
color: white;
font-size: 1.2rem;
transition: color 0.3s ease;
}
.nav-links a:hover {
co
color: #ffdd57;
}
.nav-links a::after {
content: »;
position: absolute;
w
width: 0;
height: 2px;
background: #ffdd57;
left: 50%;
bottom: -5px;
transition: width 0.3s ease, left 0.3s ease;
}
.nav-links a:hover::after {
width: 100%;
left: 0;
}
}
.burger {
display: none;
fle
flex-direction: column;
g
gap: 5px;
curs
cursor: pointer;
}
}
.burger .line {
widt
w
width: 25px;
height: 3px;
back
background: white;
}
}
@
@media (max-width: 768px) {
.nav-links {
display: none;
fle
flex-direction: column;
background: rgba(0, 0, 0, 0.9);
position: absolute;
top: 60px;
right: 20px;
width: 200px;
padding: 10px;
border-radius: 10px;
}
}
.
.nav-links.active {
display: flex;
}
}
.burger {
displ
di
display: flex;
}
}
Funciona gracias a WordPress