/**
 * Estilos para el acordeón del chatbot
 */

.chatbot-showcase {
    padding: 160px 0 0;
    background-color: #f8f9fa;
    text-align: center;
}

/* Título y descripción */
.section-title {
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.section-title i {
    margin-right: 10px;
    color: #005670;
}

.section-description {
    margin-bottom: 30px;
    color: #666;
}

/* Tarjeta principal */
.chatbot-demo-card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 40px 0px 40px 0px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 auto 30px;
    border: 1px solid rgba(0, 86, 112, 0.1);
    max-width: 100%;
}

.chatbot-toggle-btn {
    background-color: #005670;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 86, 112, 0.3);
    margin: 20px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    /* Asegurarse de que no hay otros estilos interfiriendo */
    line-height: 1.5;
    text-decoration: none;
    outline: none;
    letter-spacing: normal;
}

.chatbot-toggle-btn:hover {
    background-color: #003a4c;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 86, 112, 0.4);
}

.chatbot-toggle-btn i.fas.fa-robot {
    margin-right: 10px;
    font-size: 18px;
}

.chatbot-toggle-btn i.toggle-icon {
    margin-left: 10px;
    transition: transform 0.3s ease;
    font-size: 14px;
}

.chatbot-toggle-btn.active i.toggle-icon {
    transform: rotate(180deg);
}

/* Asegurarse de que el botón cambia la flecha */
#chatbot-accordion-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

/* Asegurarse de que los estilos de rotación tienen prioridad */
.toggle-icon.rotated {
    transform: rotate(180deg) !important;
}

/* Acordeón del Chatbot */
.chatbot-accordion {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    width: 100%;
    margin: 0 auto;
    max-width: 100%; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
}

.chatbot-accordion.open {
    max-height: 800px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.chatbot-accordion-content {
    background-color: white;
    border-radius: 20px;
    padding: 20px 5px;
   
}

.chatbot-accordion-container {
    /* Basic styles for the main chat UI container within the accordion */
    display: flex;
    flex-direction: column;
    height: 100%; /* Optional: if you want it to fill the accordion content area */
}

/* Contenedor de mensajes */
.chatbot-accordion-messages {
    height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 10px;
}

/* Respondemos mensajes de prueba */
.chatbot-accordion-message {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.chatbot-accordion-message.assistant {
    justify-content: flex-start;
}

.chatbot-accordion-message.user {
    justify-content: flex-end;
}

.chatbot-accordion-message .message-content {
    max-width: 99%;
    padding: 12px 5px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chatbot-accordion-message.assistant .message-content {
    background-color: #f0f2f5;
    color: #333;
    border-top-left-radius: 4px;
}

.chatbot-accordion-message.user .message-content {
    background-color: #005670;
    color: white;
    border-top-right-radius: 4px;
}

.chatbot-accordion-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 10px;
    background-color: #005670;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

/* Sugerencias */
.chatbot-accordion-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.suggestion-btn, .suggestion-button {
    background-color: #f0f2f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-btn:hover, .suggestion-button:hover {
    background-color: #e0e0e0;
}


/* Campo de entrada */
.chatbot-accordion-input {
    display: flex;
    align-items: center;
    background-color: #f0f2f5;
    border-radius: 30px;
    padding: 5px;
    margin-top: 10px;
}

.chatbot-accordion-input-field {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 15px;
    font-size: 15px;
    outline: none;
}

.chatbot-accordion-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #005670;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chatbot-accordion-send:hover {
    background-color: #003a4c;
}











.card-icon {
    font-size: 48px;
    color: #005670;
    margin-bottom: 20px;
}



.chatbot-demo-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.chatbot-demo-image img {
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-height: 300px;
    object-fit: cover;
}


.accordion-chatbot-container {
    display: flex;
    flex-direction: column;
    height: 500px;
}

.accordion-chatbot-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, #005670 0%, #003a4c 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/*

.section-title {
    font-size: 32px;
    color: #005670;
    margin-bottom: 15px;
}

.section-description {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 30px;
}

.chatbot-demo-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chatbot-demo-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #343a40;
}

.chatbot-demo-card p {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 25px;
}

.chatbot-toggle-btn {
    background-color: #005670;
    border: none;
    padding: 10px 20px;
    color: white;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.chatbot-toggle-btn:hover {
    background-color: #003a4e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,86,112,0.3);
}


.chatbot-accordion {
    width: 100%;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: 30px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease-in-out;
}

.chatbot-accordion.active {
    max-height: 600px;
}

.accordion-chatbot-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.accordion-chatbot-title img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.accordion-chatbot-title h3 {
    margin: 0;
    font-size: 18px;
    color: white;
}

.accordion-chatbot-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

.accordion-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: rgba(248, 249, 250, 0.5);
}

.accordion-suggestions-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.accordion-chatbot-input {
    display: flex;
    padding: 15px;
    background-color: white;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0 0 20px 20px;
}

.accordion-chatbot-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    outline: none;
    font-size: 16px;
}

.accordion-chatbot-input input:focus {
    border-color: #005670;
}

.accordion-chatbot-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #005670;
    color: white;
    border: none;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.accordion-chatbot-send:hover {
    background: #003a4e;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 16px;
    line-height: 1.4;
}

.message.user {
    align-self: flex-end;
    background-color: #005670;
    color: white;
    border-bottom-right-radius: 4px;
}

.message.assistant {
    align-self: flex-start;
    background-color: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

 .suggestion-button {
    padding: 8px 16px;
    background-color: #f0f5f7;
    color: #005670;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.suggestion-button:hover {
    background-color: #e0eef2;
    border-color: #005670;
}

 .typing-indicator {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #f8f9fa;
    width: fit-content;
    min-width: 40px;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    float: left;
    margin: 0 2px;
    background-color: #9e9ea1;
    display: block;
    border-radius: 50%;
    opacity: 0.4;
    animation: typing 1s infinite;
}

.typing-indicator span:nth-of-type(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-of-type(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-of-type(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.4); }
    100% { opacity: 0.4; transform: scale(1); }
}
*/

/*movil responsive*/
@media (max-width: 768px) {
    .chatbot-accordion-messages {
        height: 500px;
       
    }
}