﻿:root {
    --variable-collection-primary-color: rgba(191, 28, 28, 1);
    --variable-collection-secondary-color: rgba(25, 26, 35, 1);
    --variable-collection-background-color: rgba(217, 217, 217, 1);
    --variable-collection-color: rgba(255, 255, 255, 1);
    --variable-collection-whatsapp: rgba(37, 211, 102, 1);
}

/** -- Root -- */

h1 {
    font-family: "Space Grotesk", Helvetica;
    font-weight: 500;
    font-size: 36px;
    text-align: center;
}

h2 {
    font-family: "Space Grotesk", Helvetica;
    font-weight: 500;
    font-size: 24px;
    text-align: center;
}

h3 {
    font-family: "Space Grotesk", Helvetica;
    font-weight: 500;
    font-size: 20px;
    text-align: center;
}

h4 {
    font-family: "Space Grotesk", Helvetica;
    font-weight: 500;
    font-size: 16px;
    text-align: center;
}


/* -- Navbar -- */
#brand-logo {
    margin-left: 50px;
    width: 50px;
    height: 50px;
}

#registro-navbar-small-screen {
    display: none;
}

a {
    font-family: "Space Grotesk", Helvetica;
    text-decoration: none;
    color: rgba(0,0,0,.9);
}

/* -- Media 578px -- */
@media (max-width: 578px) {

    #registro-navbar-small-screen {
        display: initial;
    }

    .registro-navbar-lg-screen {
        display: none;
    }

    /* CHAT EN CELULARES */
    #chatbot {
        width: 95%;
        height: 80vh;
        right: 2.5%;
        bottom: 10px;
        border-radius: 12px;
    }

    #chatbot.minimizado {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        background: #25d366;
    }

    #chatbot.minimizado #chat-header {
        justify-content: center;
    }

    #chatbot.minimizado span {
        display: none;
    }

    #chat-header span {
        font-size: 14px;
    }

    #chat-opciones button {
        flex: 1 1 100%;
        font-size: 14px;
        padding: 8px;
    }
}

.hover-underline {
    position: relative;
    display: inline-block;
    margin-right: 5px;
}

    .hover-underline::after,
    .hover-underline::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background: linear-gradient(to right, #ff0000, #00ffff);
        bottom: -5px;
        left: 0;
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.4s ease-out;
    }

    .hover-underline::before {
        top: -5px;
        transform-origin: left;
    }

    .hover-underline:hover::after,
    .hover-underline:hover::before {
        transform: scaleX(1);
    }

/* CHAT */
#chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    height: 450px;
    background: #ece5dd;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

#chat-header {
    background: #075e54;
    color: white;
    padding: 10px;
    font-weight: bold;
}

#chat-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.msg-user {
    background: #dcf8c6;
    align-self: flex-end;
    padding: 8px 12px;
    border-radius: 10px;
    margin: 5px 0;
    max-width: 80%;
}

.msg-bot {
    background: white;
    align-self: flex-start;
    padding: 8px 12px;
    border-radius: 10px;
    margin: 5px 0;
    max-width: 80%;
}

#chat-opciones {
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

#chat-opciones button {
    flex: 1 1 45%;
    border: none;
    background: #25d366;
    color: white;
    padding: 6px;
    border-radius: 8px;
    cursor: pointer;
}

#chat-header {
    background: #075e54;
    color: white;
    padding: 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

#btn-minimizar {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

#chatbot.minimizado {
    height: 45px;
}

#chatbot.minimizado #chat-body,
#chatbot.minimizado #chat-opciones {
    display: none;
}
