﻿:root {
    /**fuentes*/
    --font-family-label: "segoeuib";
    --font-family-segoeuiLighter: "seguisb";
    --font-family-segoeuiNormal: "SEGOEUI";
    --font-family-botones: "TAHOMA";
    --font-family-verdama: "VERDANA";
    --font-size-11: 11px;
    --ms-5-space: 5px;
    --width-bodyTab: 35.3em;
    --rowGrid-template-auto1fr: auto 1fr;
    --col-spliterOneGrafic: 450px;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 90vh;
    background: #f4f6f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.chat-messages {
    overflow-y: auto;
    height: calc(100vh - 200px);
    scroll-behavior: smooth;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.4;
}

    .message.user {
        align-self: flex-end;
        background-color: #007bff;
        color: white;
    }

    .message.bot {
        align-self: flex-start;
        background-color: white;
        color: #333;
        border: 1px solid #ddd;
    }

.chat-input-area {
    display: flex;
    padding: 10px;
    align-items: center;
}

    .chat-input-area textarea {
        flex: 1;
        border: none;
        resize: none;
        padding: 10px;
        border-radius: 15px;
        font-size: 14px;
        height: 45px;
    }

    .chat-input-area button {
        background-color: #007bff;
        border: none;
        color: white;
        padding: 10px 15px;
        border-radius: 50%;
        margin-left: 10px;
        cursor: pointer;
    }

        .chat-input-area button:hover {
            background-color: #0056b3;
        }

.chat-wrapper {
    position: relative;
    height: 100%;
    min-height: 100vh;
    /*background: url('/img/fondo_chat.png') no-repeat center center;*/
    background-size: cover;
}

.chat-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    z-index: 1;
}

.chat-header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffffcc;
    backdrop-filter: blur(6px);
    padding: 0.75rem 1rem;
    z-index: 4;
    border-bottom: 1px solid #ccc;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #007bff;
}

.info {
    display: flex;
    flex-direction: column;
    font-size: 0.875rem;
}

.name {
    font-weight: bold;
    color: #333;
}

.status {
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.typing-indicator {
    display: flex;
    gap: 3px;
}

    .typing-indicator span {
        display: block;
        width: 6px;
        height: 6px;
        background-color: #007bff;
        border-radius: 50%;
        animation: typing 1.2s infinite ease-in-out;
    }

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

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

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.3;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.header-actions button {
    background: none;
    border: none;
    margin-left: 0.5rem;
    font-size: 1.2rem;
    color: #007bff;
    cursor: pointer;
}

.chat-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-input-area {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
    z-index: 3;
}

.input-container {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    width: 100%;
}

    .input-container textarea {
        border: none;
        resize: none;
        width: 100%;
        padding: 0.5rem;
        border-radius: 1rem;
        outline: none;
        font-size: 1rem;
        background: transparent;
    }

    .input-container button {
        background: #007bff;
        color: white;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 0.5rem;
        cursor: pointer;
    }

        .input-container button:disabled {
            background-color: #ccc;
            cursor: not-allowed;
        }

/* estilos existentes aqu� */
.modal-content {
    border-radius: 1rem;
    overflow: hidden;
}

.modal-body img {
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
    height: 100%;
}

.modal-body {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    justify-content: start;
    flex-wrap: wrap;
}

/* Modal */
.modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100% !important;
    height: 100%;
    margin: 0px !important;
}

.btn-close:focus {
    outline: 0;
    box-shadow: none !important;
    opacity: 1;
}

.max-h500 {
    max-height: 500px
}

.max-w800 {
    max-width: 800px
}

@media(max-width: 767px) {
    .max-h500 {
        max-height: 620px
    }

    .img-fluid {
        height: 418px !important;
        display: block;
    }

    .img-padding {
        padding-top: 30px;
    }
}

@media(max-width: 375px) {
    .img-resp {
        width: 100%;
        height: 300px !important;
        padding-right: 1.5rem !important;
        padding-left: 1.5rem !important;
    }
    .img-padding {
        padding-top: 40px;
    }

    .close-resp {
        margin-top: 25px
    }
}

.img-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: 0;
    opacity: 0.8;
}

.mic-button {
    position: relative;
    margin-right: 0.5rem;
    background: #e1e9ff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mic-button i {
    color: #007bff;
    font-size: 1.2rem;
}

.pulse {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 123, 255, 0.3);
    animation: pulseAnim 1.2s infinite;
}

@keyframes pulseAnim {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.disiabled-opt {
    filter: grayscale(.95);
    pointer-events: none;
    cursor: pointer;
}