﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

#navbar {
    z-index: 1 !important;
}

/* ACTIVADOR DE CHATBOT */
.chatbot-toggler {
    outline: none;
    border: none;
    height: 50px;
    width: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.show-chatbot .chatbot {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

/* TODO EL CHATBOT */
.chatbot {
    position: fixed;
    right: 35px;
    bottom: 110px;
    width: 420px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5);
    transform-origin: bottom right;
    box-shadow: 0 0 128px 0 rgba(0,0,0,0.1), 0 32px 64px -48px rgba(0,0,0,0.5);
    transition: all 0.1s ease;
    z-index: 2 !important;
}

    /* ENCABEZADO DEL CHATBOT */
    .chatbot .header {
        display: flex;
        color: #fff;
        background-image: linear-gradient(360deg, #961517,#e22026);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

        .chatbot .header span {
            display: none;
        }

        .chatbot .header h3 {
            font-style: italic;
            padding: 0;
            top: 0;
            left: 30px;
            display: flex;
            align-items: flex-end;
            position: relative;
            bottom: 10px;
            margin: 0;
            font-family: 'Archivo Black', sans-serif;
            font-weight: 500;
            text-align: center;
        }

        .chatbot .header .redes-sociales {
            display: flex;
            justify-content: space-evenly;
            align-items: center;
            padding: 15px 20px;
            max-width: 236px;
        }

    /* CUERPO DEL CHATBOT */
    .chatbot .chatbox {
        display: flex;
        flex-direction: column;
        overflow-y: scroll;
        height: 510px;
        padding: 30px 20px 100px;
    }

#menuOpciones {
    padding: 8px;
    margin: 0 20px;
    color: black;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 5px;
    width: 320px;
}

    #menuOpciones:hover {
        background-color: #333333;
        color: #FFFFFF;
    }

/* Estilos para mensajes del bot / */
#robot {
    display: flex;
    flex-direction: column-reverse;
    margin-right: 5px;
    width: 20px;
    height: 20px;
}

.bot-message > .mensajeIntroductorio {
    display: flex;
    background-image: linear-gradient(0deg,#050505,#151515); /* Color de fondo para mensajes del bot */
    color: #fff; /* Color de texto para mensajes del bot */
    padding: 10px;
    width: 80%;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
}

.estiloBox {
    background-image: linear-gradient(0deg,#525252,#151515);
    color: #fff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    padding: 10px;
    width: 85%;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
}

.bot-message {
    display: flex;
    margin-bottom: 10px;
}

.allMessageBot {
    position: relative;
    display: flex;
    align-items: flex-end;
    float: left;
}

.mensajeIntroductorio {
    margin-left: 10px;
    width: 205px;
}

.bot-message > .hideButtons #btnSiYNo {
    display: flex;
    position: relative;
    flex-direction: row;
    justify-content: center;
    background: linear-gradient(0deg,#525252,#151515);
    color: #fff;
    border: 0px solid red;
    border-radius: 10px;
    width: 40px;
}

#btnSiYNo:hover {
    cursor: pointer;
}

.hideButtons {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    left: 35px;
    width: 100px;
}

.estiloBox a {
    color: #FFFFFF;
    text-decoration: underline
}

    .estiloBox a:hover {
        color: rgb(158, 158, 158);
    }

/* Estilos para mensajes del usuario */
.user-message {
    position: relative;
    bottom: 10px;
    background-image: linear-gradient(0deg,#525252,#151515);
    color: #fff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    padding: 10px;
    max-width: 260px;
    margin-top: 10px;
    margin-right: 0px;
    margin-left: auto;
    overflow-wrap: break-word;
}

/* INPUT DEL CHATBOT */
.chatbot .textoAEnviar {
    display: flex;
    border-top: 1px solid #ddd;
    padding: 15px;
}

.chatbot #userInput {
    border-color: #f5f5f5;
    border-radius: 7px;
    margin-right: 20px;
    width: 62%;
    height: 40px;
}

#userInput:focus {
    outline-color: #000000;
    outline-style: hidden
}

#btnEnviar {
    display: flex;
    justify-content: center;
    background: linear-gradient(#1f9451,#0b3b1f);
    border: 0px solid red;
    align-items: center;
    border-radius: 10px;
    width: 40px;
}

    #btnEnviar:hover {
        background-color: #1d47aa;
        color: #FFFFFF;
    }

#btnInicio {
    display: flex;
    justify-content: center;
    background: linear-gradient(#1f9451,#0b3b1f);
    border: 0px solid red;
    align-items: center;
    position: relative;
    left: 10px;
    border-radius: 10px;
    width: 40px;
}

#btnBorrar {
    display: flex;
    justify-content: center;
    background: linear-gradient(#1f9451,#0b3b1f);
    border: 0px solid red;
    align-items: center;
    position: relative;
    left: 5px;
    border-radius: 10px;
    width: 40px;
}
/* BOTON DEL CHATBOT */
.fab {
    position: relative;
    height: 70px;
    width: 70px;
    background-image: linear-gradient(#1f9451,#0b3b1f);
    border-radius: 50%;
    z-index: 30000;
    transition: transform 0.3s ease;
}

    .fab:hover {
        background-image: linear-gradient(#18723f,#082c17);
    }

    .fab::before {
        content: " ";
        position: absolute;
        bottom: 0;
        right: 0;
        height: 35px;
        width: 35px;
        background-color: inherit;
        border-radius: 0 0 10px 0;
        z-index: -1;
    }


.fab-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    user-select: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
}

    .fab-container:hover {
        height: 100%;
    }

.fab-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    border-radius: 50%;
}

    .fab-content .material-icons {
        color: white;
        font-size: 48px;
    }


/*HORIZONTAL*/

.horizontal-orientation .chatbot-toggler {
    right: 20px;
    bottom: 20px;
}

.horizontal-orientation {
    right: 0;
    bottom: 0;
    height: 100%;
    border-radius: 0;
    width: 100%;
}

    .horizontal-orientation .chatbox {
        display: flex;
        flex-direction: column;
        overflow-y: scroll;
        padding: 30px 20px 100px;
        width: 100vw;
        height: calc(96vh - 100px);
    }

    .horizontal-orientation .header {
        display: flex;
        color: #fff;
        background-image: linear-gradient(360deg, #961517,#e22026);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        height: 47px;
    }

        .horizontal-orientation .header span {
            position: absolute;
            bottom: 18px;
            left: 30px;
            display: flex;
            cursor: pointer;
        }

        .horizontal-orientation .header h3 {
            position: relative;
            float: left;
            left: 24px;
            top: -20px;
            margin: 0;
            padding: 15px 20px;
            font-family: 'Archivo Black', sans-serif;
            font-weight: 500;
            text-align: center;
            bottom: 15px;
        }

        .horizontal-orientation .header .redes-sociales {
            position: relative;
            float: right;
            display: flex;
            justify-content: space-evenly;
            align-items: center;
            right: 0;
            bottom: 6px;
        }

            .horizontal-orientation .header .redes-sociales a {
                margin-right: 10px;
            }

    .horizontal-orientation .textoAEnviar {
        position: relative;
        display: flex;
        flex-direction: row;
        justify-content: center;
        border-top: 1px solid #ddd;
        bottom: 0;
        width: 100vw;
    }


/* RESPONSIVE */

@media (max-width: 480px) {
    .chatbot-toggler {
        right: 20px;
        bottom: 20px;
    }

    .chatbot {
        right: 0;
        bottom: 0;
        height: 100%;
        border-radius: 0;
        width: 100%;
    }

        .chatbot .chatbox {
            display: flex;
            flex-direction: column;
            overflow-y: scroll;
            padding: 30px 20px 100px;
            width: 100vw;
            height: calc(96vh - 100px);
        }

        .chatbot .header {
            display: flex;
            color: #fff;
            background-image: linear-gradient(360deg, #000,#000);
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            height: 47px;
        }

            .chatbot .header span {
                position: absolute;
                bottom: 18px;
                left: 30px;
                display: flex;
                cursor: pointer;
            }

            .chatbot .header h3 {
                position: relative;
                top: -20px;
                left: 24px;
                margin: 0;
                padding: 15px 20px;
                font-family: 'Archivo Black', sans-serif;
                font-weight: 500;
                text-align: center;
            }

            .chatbot .header .redes-sociales {
                display: flex;
                justify-content: space-evenly;
                align-items: center;
                position: relative;
                padding: 15px 20px;
                bottom: 6px;
            }

        .chatbot .textoAEnviar {
            position: absolute;
            display: flex;
            border-top: 1px solid #ddd;
            bottom: 0;
            width: 100vw;
        }
}
