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

:root {
    --clr: #01005d;
}

body {
    /* CORRECCIÓN: Eliminamos el display: flex; que rompía el scroll vertical */
    background: var(--clr);
    min-height: 100vh;
    padding-top: 100px; /* Deja respirar al reproductor de arriba */
    padding-bottom: 100px; /* Deja respirar a la barra inferior */
}

.fondo-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    /* CORRECCIÓN: Eliminado el padding que colapsaba la caja en el modo estándar */
    height: 80px;
    background: var(--clr);
    display:grid;
    border-radius: 10px;
    z-index: 1000; 
}

.navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    /* CORRECCIÓN: Eliminado el padding para que la altura de 70px sea real */
    height: 70px;
    background: #fff;
    display:grid ;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    z-index: 1001;
}

.navigation ul {
    display: flex;
    width: 350px;
    position: relative; /* ¡LA CLAVE! Sin esto, el círculo amarillo no sabe dónde anclarse */
}

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

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

.navigation ul li a .icon {
    position: relative;
    display: block;
    line-height: 70px; /* Ajustado a la altura real de la barra */
    font-size: 1.5em;
    text-align: center;
    transition: 0.5s;
    color: var(--clr);
}

.navigation ul li.active a .icon {
    transform: translateY(-30px); /* Empuja el icono hacia el círculo amarillo */
}

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

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

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

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

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

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