@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:'Poppins', sans-serif;
}

:root
{
    --clr:#202133;
}

body
{
    display:flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--clr);
}

.navegacion
{
    position:relative;
    width:400px;
    height:70px;
    background: #fff;
    display:flex;
    justify-content:center;
    align-items:center;
    border-radius:10px;
}

.navegacion ul{
    display:flex;
    width:350px;
}
.navegacion ul li{
    position:relative;
    list-style:none;
    width:70px;
    height:70px;
    z-index:1;
}

.navegacion ul li a{
    position:relative;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-direction:column;
    width:100;
    text-align:center;
    font-weight:500; 

}

.navegacion ul li a .icon{
    position: relative;
    display:block;
    line-height:75px;
    font-size:1.5em;
    text-align: center;
    transition: 0.5s;
    color: var(--clr);

}

.navegacion ul li.active a .icon
{
    transform: translateY(-32px);
}

.navegacion ul li a .text{
    position:absolute;
    color: var(--clr);
    font-weight: 400;
    font-size:0.75en;
    letter-spacing: 0.05en;
    transition: 0.5s;
    opacity:0;
    transform: translateY(20px);
    
}

.navegacion ul li.active a .text
{
    opacity:1;
    transform: translateY(10px);
}


.check{
    position:absolute;
    top:-50%;
    width:70px;
    height:70px;
    background: #b52424;
    border-radius:50%;
    border:6px solid var(--clr);
    transition:0.5s;
}

.check::before
{
    content:'';
    position:absolute;
    top:50%;
    left:-22px;
    width:20px;
    height:20px;
    background:white;
    border-top-right-radius: 20px;
    box-shadow: 0px -10px 0 0 var(--clr);
}


.check::after
{
    content:'';
    position:absolute;
    top:50%;
    right:-22px;
    width:20px;
    height:20px;
    background:white;
    border-top-left-radius: 20px;
    box-shadow: 0px -10px 0 0 var(--clr);
}

.navegacion ul li:nth-child(1).active ~ .check{
    transform: translateX(calc(70px *0));
}

.navegacion ul li:nth-child(2).active ~ .check{
    transform: translateX(calc(70px *1));
}
.navegacion ul li:nth-child(3).active ~ .check{
    transform: translateX(calc(70px *2));
}
.navegacion ul li:nth-child(4).active ~ .check{
    transform: translateX(calc(70px *3));
}
.navegacion ul li:nth-child(5).active ~ .check{
    transform: translateX(calc(70px *4));
}
