@font-face{
    font-family: 'Posterama2001W04-Black';
    src: url('/assets/Posterama2001W04-Black.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

div, span{
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-style: normal;
    line-height: normal;
    letter-spacing: -0.32px;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    font-family: 'Posterama2001W04-Black', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: #F5EEE8;
}

nav {
    padding: 1rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    font-style: normal;
    line-height: normal;
    letter-spacing: -0.32px;
}

nav #logo-solventech {
    height: 1.5rem;
    align-self: center;
}

nav .nav-links {
    list-style: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

nav .nav-links li a {
    color: #E9573B;
    text-decoration: none;
    transition: color 0.3s;
}

nav .nav-links li a img {
    height: 1.8rem;
    width: 1.8rem;
    margin: 0;
    padding: 0;
}


.main-content {
    background-image: url("/assets/chatbot_bg.svg");
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    min-height: 100dvh;
    padding: 2rem;
}


.chatbot-intro {
    text-align: center;
    padding: 2rem;
    width: 80%;
    max-width: 1200px;
    margin: 2rem auto;
}

.chatbot-intro .logo-progresa {
    height: 6rem;
}

.chatbot-intro h1 {
    font-size: 4rem;
    color: #FEB412;
    margin-bottom: 1rem;
}

.chatbot-intro p {
    font-size: 1.3rem;
    color: #E9573B;
    margin: 0.5rem 0;
}


/***** Chatbot Container *****/

/* Chatbot montado en la página */
.chatbot-container {
    min-width: 70vw;
    width: auto;
    height: 75vh;
    border-radius: 16px;
    backdrop-filter: blur(5px);
    padding: 0 10rem;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

/* Caja de mensajes con scroll */
.chatbot-messages {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-color: #E9573B transparent;
    gap: 0.8rem;
}

/* Mensajes generales */
.message {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    max-width: 75%;
    word-wrap: break-word;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Mensajes del bot */
.bot-message {
    background: #F5EEE8;
    color: #333;
    align-self: flex-start;
    border-radius: 0 33.908px 33.908px 33.908px;
    border: 2px solid #FEB412;
    background: rgba(248, 242, 237, 0.67);
    backdrop-filter: blur(15.600000381469727px);
}

/* Mensajes del usuario */
.chat-message.user {
    border-radius: 31px 31px 0 31px;
    border: 2px solid brown;
    background: white;
    padding: 0.8rem 1rem;
    backdrop-filter: blur(2px);
    color: black;
    align-self: flex-end;
}

/* Input */
.chatbot-input {
    display: flex;
    border-top: 1px solid #ddd;
    align-self: center;
    width: 98%;
    border-radius: 33.908px;
    border: 2px solid #FFF;
    background: rgba(245, 238, 232, 0.67);
    backdrop-filter: blur(2px);
}

.chatbot-input input {
    flex: 1;
    border: 1px solid #ddd;
    font-family: 'Inter', sans-serif;
    padding: 12px;
    border-radius: 33.908px;
    border: 2px solid #FFF;
    background: rgba(245, 238, 232, 0.67);
    backdrop-filter: blur(2px);
    border: none;
    outline: none;
    font-size: 1rem;
}

.chatbot-input button {
    background: #E9573B;
    margin: 0.4rem;
    border-radius: 30px;
    border: none;
    color: white;
    padding: 0 20px;
    cursor: pointer;
    font-size: 1.2rem;
}

footer { 
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    background-color: #F5EEE8;
    font-family: 'Inter', sans-serif;
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #825036;
    font-size: 1.2rem;
    padding-top: 4rem;
}


footer .footer-content {
    margin-bottom: 3%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 80%;
    height: 100%;
    gap: 3rem;
}

footer .footer-info{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.2rem;
}

footer .footer-info a{
    color: #825036;
    text-decoration: none;
    transition: color 0.3s;
}

footer .footer-logos{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

footer .footer-logos .logo-cumbre{
    width: 16rem;
    height: auto;
}



@media screen and (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    nav .nav-links {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }

    .chatbot-intro {
        width: 95%;
        padding: 1rem;
    }

    .chatbot-intro h1 {
        font-size: 2.5rem;
    }

    .chatbot-container {
        padding: 0;
        height: 70vh;
        min-width: 90vw;
    }

    footer {
        padding-top: 2rem;
    }

    footer .footer-content {
        padding-top: 2rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    footer .footer-info {
        align-items: center;
    }

    footer .footer-logos .logo-cumbre {
        width: 12rem;
    }
    
}


@media screen and (max-height: 600px) {
    .chatbot-container {
        padding: 0;
    }
}