.flotante {
    position: fixed;
    right: 5px;
    bottom: 10px;
    z-index: 999;
    animation-name: whats;
    animation-direction: alternate;
    animation-play-state: running;
    animation-iteration-count: infinite;
    animation-duration: .9s;
    animation-delay: .20s;
    width: 270px;
    height: 150px;
    text-align: right;
    overflow: hidden;
}
.flotante-wtsp {
    position: fixed;
    right: 20px;
    bottom: 120px;
    z-index: 999;
    animation-name: whats;
    animation-direction: alternate;
    animation-play-state: running;
    animation-iteration-count: infinite;
    animation-duration: .9s;
    animation-delay: .20s;
    width: 270px;
    height: 150px;
    text-align: right;
    overflow: hidden;
}
.flotante-wtsp a img {
    width: 100px;
    padding: 10px;
    font-size: 35px;
    color: white;
    background-position: center;
    background-size: cover;
}
.flotante a , .flotante-wtsp a{
    text-decoration: none;
    position: relative;
}

.flotante a img {
    width: 130px;
    padding: 10px;
    border-radius: 50%;
    font-size: 35px;
    color: white;
    background-position: center;
    background-size: cover;
}

.flotante .float-message {
    background-color: #8F1F36;
    color: white;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 15px;
    position: absolute;
    left: -140px;
    top: 0px;
    opacity: 0;
    transition: .5s;

}
.flotante-wtsp .float-message {
    background-color: #8F1F36;
    color: white;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 15px;
    position: absolute;
    left: -100px;
    top: 0px;
    opacity: 0;
    transition: .5s;
}
.flotante-wtsp a:hover .float-message {
    opacity: 100%;
    transition: .5s;
}

.flotante a:hover .float-message {
    opacity: 100%;
    transition: .5s;
}

/* Fondo oscuro del modal */
.modal-custom {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

/* Contenedor del contenido del modal (chatbot) */
.modal-contenidoChatBot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 460 / 650; /* Mantiene proporción */
    background-image: url('../image/chatBot/fondoModalChatBot.png');
    background-size: contain; /* No distorsiona la imagen */
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10001;
}

/* Botón de cerrar */
.modal-contenidoChatBot .cerrar {
    color: #333;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10002;
}

.modal-contenidoChatBot .cerrar:hover {
    color: #000;
}

/* Contenido interno opcional (si agregas texto o inputs) */
.modal-contenidoChatBot .contenido-chatbot {
    position: absolute;
    bottom: 30px;
    left: 20px;
    right: 20px;
    color: #000;
    font-family: 'Poppins', sans-serif;
    text-align: left;
}

/* Texto dentro del modal (puedes personalizar más) */
.modal-contenidoChatBot .contenido-chatbot h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.modal-contenidoChatBot .contenido-chatbot p {
    font-size: 15px;
}

.loader-bubble {
  display: inline-block;
  width: 60px;
  text-align: center;
  margin-bottom: 20px;
}

.loader-bubble > div {
  width: 10px;
  height: 10px;
  background-color: #3f3f3f;
  border-radius: 100%;
  display: inline-block;
  animation: loader-bounce 1.4s infinite ease-in-out both;
}

.loader-bubble > div:nth-child(1) {
  animation-delay: -0.32s;
}

.loader-bubble > div:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes loader-bounce {
  0%, 80%, 100% {
    transform: scale(0);
  } 
  40% {
    transform: scale(1);
  }
}



.contentModalChatBot {
    display: flex;
    flex-direction: column;
    height: 100%;
}


.chatBotMessage {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.imputChatBot {
    padding: 10px 20px;
}
.historialChats{
    position: absolute;
    border-radius: 150px 0 0 0 ;
    height: 70%;
    width: 90%;
    padding: 40px 30px 0px 90px;
    left: 8%;
    margin-top: 20px;
    overflow-y: scroll;
}
.sofiaImg {
    background-image: url('../image/chatBot/sofiaImg.png');
    background-size: contain;
    background-position: bottom left;
    background-repeat: no-repeat;
    height: 40%; /* Ajusta esta proporción según lo necesario */
    width: 100%;
    position: relative; /* ya no fixed */
    margin-bottom: -10px;
}

.chat-entry {
    font-family: 'Poppins', sans-serif;
    width: 95%;
    padding-top: 10px;
    border-top: solid 1px rgb(177, 175, 175);
}

.input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid rgb(177, 175, 175);
    border-radius: 10px;
    padding: 8px 16px;
    background-color: #efecec;
}

.input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    background-color: transparent;
    color: #333;
}

.input-wrapper button {
    background: none;
    border: none;
    color: #7b0e29; /* Vino oscuro */
    font-size: 18px;
    cursor: pointer;
    margin-left: 10px;
}

.info-text {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    text-align: center;
}

.info-text i {
    margin-right: 5px;
    font-size: 12px;
}

.info-text a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.info-text a:hover {
    text-decoration: underline;
}


/* Media query para pantallas medianas */
@media (max-width: 768px) {
    .modal-contenidoChatBot {
        right: 10px;
        bottom: 10px;
        max-width: 95%;
        aspect-ratio: 460 / 650;
    }
}

/* Media query para pantallas muy pequeñas */
@media (max-width: 480px) {
    .modal-contenidoChatBot {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: calc(100% - 20px);
        max-width: none;
        aspect-ratio: 460 / 650;
    }

    .modal-contenidoChatBot .contenido-chatbot {
        left: 15px;
        right: 15px;
        bottom: 20px;
    }

    .modal-contenidoChatBot .cerrar {
        font-size: 20px;
        top: 8px;
        right: 10px;
    }
}
