.barra-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 50px;
}

.barra-msg {
    background-color: #f2f2f2;
    height: 50px;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contenedor-animacion {
    display: flex;
    width: 200%;
}

.msg-mov {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: deslizar 15s linear infinite;
    width: 50%;
}

.barra-msg:hover .msg-mov {
    animation-play-state: paused;
}

.txt-msg {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    display: inline-block;
    padding: 0 30px;
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease;
}

.txt-msg:hover {
    color: #000;
}

.txt-msg::after {
    content: '';
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: -5px;
    height: 2px;
    background-color: #000;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.txt-msg:hover::after {
    transform: scaleX(1);
}

.separador {
    color: #bbb;
    font-size: 14px;
    padding: 0 15px;
}

@keyframes deslizar {
    0% {
        opacity: 0;
        transform: translateX(0);
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(-50%);
    }
}

.barra-msg::before,
.barra-msg::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;  
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.barra-msg::before {
    left: 0;
    background: linear-gradient(to right, #f2f2f2, rgba(242, 242, 242, 0));
    margin-bottom: 30px;
}

.barra-msg::after {
    right: 0;
    background: linear-gradient(to left, #f2f2f2, rgba(242, 242, 242, 0));
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .barra-msg {
        height: 50px;
    }
}