.chat-perfil {
    position: relative;
    height: 5rem;
    width: 5rem;
    border-radius: 50%;
    overflow: visible;
    /* allow border to show */
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.chat-perfil::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    /* thickness of border */
    border-radius: 50%;
    background: conic-gradient(rgb(0, 169, 156) 180deg 90deg,
            /* left half */
            rgb(33, 22, 112) 90deg 270deg
            /* right half */
        );
    z-index: 1;
}

.chat-perfil::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    /* ajusta para el grosor del círculo blanco */
    border-radius: 50%;
    background: #fff;
    z-index: 2;
}

.chat-perfil img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 3;
    background: white;
}


.chat-bubble::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1.5rem;
    width: 80%;
    height: 3px;
    /* grosor del borde */
    background: rgb(0, 169, 156);
    /* color del borde */

}

.chat-bubble {
    position: relative;
    margin-left: -4rem;
    background-color: rgba(235, 232, 232, 0.829);
    width: 20rem;
    height: 5.6rem;
    border-radius: 3rem;
    padding-left: 5.5rem;
    /* deja espacio para la imagen */
    display: flex;
    align-items: center;
}

.chat-text {
    font-family: 'Franklin Gothic Medium';
    position: static;
    /* quita el absolute */
    margin-top: 1rem;
    /* espacio entre la imagen y el texto */
    width: 100%;
    font-size: 1.2rem;
    color: black;
}

.chat-row {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    /* Espacio entre mensajes */

}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 5rem;
    background-color: rgb(0, 169, 156);
    color: white;
    font-size: 1.5rem;
    font-weight: 100;
}



/* --------------- RENATO ---------------- */
.chat-perfil-renato {
    position: relative;
    height: 5rem;
    width: 5rem;
    border-radius: 50%;
    overflow: visible;
    /* allow border to show */
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.chat-perfil-renato::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    /* thickness of border */
    border-radius: 50%;
    background: conic-gradient(rgb(33, 22, 112) 180deg 90deg,
            /* left half */
            rgb(0, 169, 156) 90deg 270deg
            /* right half */
        );
    z-index: 1;
}

.chat-perfil-renato::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    /* ajusta para el grosor del círculo blanco */
    border-radius: 50%;
    background: #fff;
    z-index: 2;
}

.chat-perfil-renato img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 3;
    background: white;
}


.chat-bubble-renato::before {
    content: "";
    position: absolute;
    top: 0;
    left: 3rem;
    width: 80%;
    height: 3px;
    /* grosor del borde */
    background: rgb(0, 169, 156);
    /* color del borde */

}

.chat-bubble-renato {
    position: relative;
    margin-left: -4rem;
    background-color: rgba(235, 232, 232, 0.829);
    width: 23rem;
    min-height: 5.6rem;
    /* Use min-height instead of height */
    border-radius: 3rem;
    padding-left: 2rem;
    padding-right: 5.5rem;
    /* space for the image at the right */
    display: flex;
    align-items: flex-start;
    /* Align text to the top */
    word-break: break-word;
    /* Ensures long words wrap */
}

.chat-text-renato {
    margin-top: 0;
    font-family: 'Franklin Gothic Medium';
    position: static;
    /* quita el absolute */
    margin-top: 1rem;
    /* espacio entre la imagen y el texto */
    width: 100%;
    font-size: 1.2rem;
    color: black;

}

.chat-row-renato {
    flex-direction: row-reverse;
    align-items: flex-start;
}

.chat-row-renato .chat-bubble-renato {
    margin-left: 0;
    margin-right: -4rem;
    /* igual que el margin-left de los otros */
    padding-left: 2rem;
    padding-right: 5.5rem;
    /* espacio para la imagen a la derecha */
}

@media screen and (max-width: 540px) {

    .chat-bubble {
        position: relative;
        margin-left: -4rem;
        background-color: rgba(235, 232, 232, 0.829);
        width: 15rem;
        height: 5.6rem;
        border-radius: 3rem;
        padding-left: 5.5rem;
        /* deja espacio para la imagen */
        display: flex;
        align-items: center;
    }

    .chat-text {
        font-family: 'Franklin Gothic Medium';
        position: static;
        /* quita el absolute */
        margin-top: 1rem;
        /* espacio entre la imagen y el texto */
        width: 100%;
        font-size: 0.9rem;
        color: black;
    }

    .chat-bubble::before {
        content: "";
        position: absolute;
        top: 0;
        left: 1.5rem;
        width: 70%;
        height: 3px;
        /* grosor del borde */
        background: rgb(0, 169, 156);
        /* color del borde */

    }

    .chat-text-renato {
        margin-top: 0;
        font-family: 'Franklin Gothic Medium';
        position: static;
        /* quita el absolute */
        margin-top: 1rem;
        /* espacio entre la imagen y el texto */
        width: 100%;
        font-size: 0.9rem;
        color: black;

    }

    .chat-bubble-renato {
        position: relative;
        margin-left: -4rem;
        background-color: rgba(235, 232, 232, 0.829);
        width: 17rem;
        min-height: 5.6rem;
        /* Use min-height instead of height */
        border-radius: 3rem;
        padding-left: 2rem;
        padding-right: 5.5rem;
        /* space for the image at the right */
        display: flex;
        align-items: flex-start;
        /* Align text to the top */
        word-break: break-word;
        /* Ensures long words wrap */
    }
}