/* Estilo de imagen de perfil */
.profile-pic {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
    border: 2px solid white;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 50px;
    right: 5%;
    z-index: 100;
}

.whatsapp-float a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    font-size: 2rem;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
}

/* Contenedor del chat */
.chat-container {
    position: fixed;
    bottom: 150px;
    right: 20px;
    width: 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
    display: none;
    flex-direction: column;
}

.chat-container.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgb(0, 128, 105);;
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.support {
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    max-height: 60px;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -moz-box-orient: vertical;
    overflow: hidden;
    color: rgb(255, 255, 255);
}

.online-status {
    font-size: 13px;
    line-height: 18px;
    color: rgb(255, 255, 255);
}

.chat-info {
    display: flex;
    align-items: center;
    position: relative;
}

.btn-aviso {
    height: 15px;
    width: 15px;
    background-color: #25D366;
    border-radius: 50%;
    position: absolute;
    left: 28px;
    bottom: 1px
}

.chat-info .status-dot {
    width: 10px;
    height: 10px;
    background-color: #1ec700;
    border-radius: 50%;
    margin-right: 5px;
}

.chat-full {
    background: url(./IMG/background-whatsapp.jpg) center center / cover no-repeat;
}

.chat-body {
    position: relative;
    padding: 10px 20px 12px;
    overflow: auto;
    max-height: 382px;
    color: #333;
}

.chat-message {
    position: relative;
    background-color: #dcf8c6;
    margin-bottom: 15px;
    padding: 8px 10px;
    border-radius: 8px;
    max-width: 80%;
    font-size: 14px;
}

/* Estilo de la hora encima del mensaje */
.message-time {
    display: block; /* Hace que la hora aparezca en una nueva línea */
    font-size: 10px;
    color: gray;
    margin-bottom: 5px; /* Espacio entre hora y mensaje */
    text-align: center;
}

.chat-footer {
    display: flex;
    justify-content: center;
}


.chat-btn {
    border-radius: 24px;
    border-color: rgba(0, 0, 0, 0);
    width: auto;
    line-height: 1.32;
    color: rgb(255, 255, 255);
    font-family: inherit;
    font-weight: bold;
    font-size: 16px;
    background-color: rgb(37, 211, 102);
    border-width: 0px;
    padding: 20px;
    margin: 20px;
    max-width: 100%;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 1px 0px 0px;
    gap:10px;
}

.chat-btn:hover {
    background-color: #20b05e;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.chat-btn .btn-text {
    margin-left: 10px; /* Ajusta la separación específica del texto */
}
