﻿@charset "UTF-8";

*, *::before, *::after {
    box-sizing: border-box;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

html, body, #chatBotComponents {
    font-family: 'Cabin', sans-serif;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}
#box {
    background: #11111108;
    border-radius: 7px;
    box-shadow: 0 2px 4px rgb(121 121 121 / 25%);
    padding: 0 8px;
}

.contenedor {
    position: relative;
    max-height: 65vh;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .contenedor::-webkit-scrollbar {
        display: none; 
    }

.hint {
    position: sticky;
    bottom: 0;
    height: 10px;
    pointer-events: none;
    transition: opacity .25s;

}

    .hint::after {
        content: "▼";
        position: absolute;
        left: 50%;
        bottom: 4px;
        transform: translateX(-50%);
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: rgb(22 91 126 / 87%);
        display: flex;
        align-items: center;
        justify-content: center;
        animation: bounce 1.5s infinite;
        font-size: 12px;
        color: #ffffff;
        font-weight: 100;
    }

    .hint.hidden {
        opacity: 0;
    }

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(4px);
    }
}
.info-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.info-icon {
    font-size: 18px;
    cursor: pointer;
    margin-left: 70px;
}

    .info-icon.active {
        color: #ffffff;
        text-shadow: 0 0 4px rgb(113 200 236 / 50%), 0 0 12px rgb(59 234 255);
        transform: scale(1.15);
    }

.main-item {
    background: #1673a20f;
    border-radius: 9px;
    padding: 6px;
    margin: 0px -6px;
}

.chatbot__message-window {
    padding: 20px;
    font-family: 'Cabin', sans-serif;
}

.chatbot__consent {
    position: absolute;
    top: calc(100% + 20px);
    right: -60px;
    width: 340px;
    max-height: 65vh;

    @media (max-width: 768px) {
        max-height: 80dvh;
    }

    padding: 10px 12px;
    background: #fff;
    border-radius: 7px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    z-index: 999999;
    display: flex;
    flex-direction: column;
}

    .chatbot__consent.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
.chatbot__consent-icon {
    font-size: 32px;
    color: #165B7E;
    text-align: center;
}

.chatbot__consent-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #374151;
}

    .chatbot__consent-list li i {
        font-size: 20px;
        color: #165B7E;
    }
.chatbot__consent-title {
    font-size: 16px;
    margin-bottom: 12px;
    color: #111827;
    font-weight: bold;
    display: block !important;
    text-align: center;
    margin: 0 0 !important;
    margin-bottom: 7px !important;
}

.chatbot__consent-text {
    font-size: 13px;
    line-height: 1.2;
    color: #374151;
    text-align: left;
}

.chatbot__consent-subtitle {
    font-size: 14px;
    margin-bottom: 10px;
    color: #165B7E;
    text-align: left;
}

.chatbot__consent-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
}

    .chatbot__consent-list li {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 8px;
        font-size: 13px;
        color: #374151;
    }

        .chatbot__consent-list li span {
            color: #2563eb;
            font-weight: bold;
        }

.chatbot__consent-privacy {
    display: block !important;
    font-size: 13px;
    color: #374151;
    margin-left: 5px !important;
    margin-top: -5px;
    margin-bottom: 5px !important;
    margin-top: 8px !important;
}

    .chatbot__consent-privacy a {
        color: #2563eb;
        text-decoration: none;
    }

.chatbot__consent-button {
    width: 100%;
    border: none;
    background: #165B7E;
    color: white;
    padding: 14px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background .25s ease, transform .2s ease, box-shadow .25s ease, opacity .25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    margin-top: 12px;
}

    .chatbot__consent-button:hover {
        background: #26729a;
        transform: translateY(-1px);
    }

    .chatbot__consent-button:active {
        transform: scale(.98);
    }

    .chatbot__consent-button.accepted {
        background: #1a8067;
        box-shadow: 0 2px 8px rgba(26, 128, 103, .25);
        animation: acceptedPop .45s ease;
    }

        .chatbot__consent-button.accepted:hover {
            background: #279479;
        }

        .chatbot__consent-button.accepted:disabled {
            cursor: default;
            opacity: 1;
        }

.chatbot__consent-icon {
    font-size: 18px;
    animation: checkAppear .35s ease;
}

@keyframes acceptedPop {

    0% {
        transform: scale(.92);
    }

    60% {
        transform: scale(1.04);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes checkAppear {

    0% {
        opacity: 0;
        transform: scale(.2) rotate(-40deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}
.chatbot__consent.hide {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-button-floating {
    position: absolute;
    bottom: 15px;
    right: 25px;
    width: 80px;
    height: 80px;
    border: none;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: visible;
}

.avatar-wrapper {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 3;
    background: white;
    box-shadow: 0 0 14px rgba(28,103,134,.35);
    animation: avatarPulse 10s cubic-bezier(.4,0,.2,1) infinite;
}

    .avatar-wrapper img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: inherit;
        transform: scale(1.12);
    }

.energy-ring {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid #1c6786;
    opacity: 0;
    z-index: 10;
    box-shadow: 0 0 14px rgba(79,209,255,.6);
    animation: ringPulse 10s cubic-bezier(.4,0,.2,1) infinite;
    will-change: transform, opacity;
    transform-origin: center;
    box-shadow: 0 0 8px rgba(79,209,255,.75), 0 0 16px rgba(79,209,255,.45);
}

    .energy-ring::before {
        content: "";
        position: absolute;
        inset: -6px;
        border-radius: 50%;
        background: radial-gradient( circle, rgba(79,209,255,.35) 0%, rgba(79,209,255,.18) 35%, rgba(79,209,255,0) 70% );
        filter: blur(20px);
        z-index:99;
    }

@keyframes avatarPulse {

    0% {
        transform: rotate(0deg);
    }

    20% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes ringPulse {

    0% {
        transform: scale(.45);
        opacity: 0;
    }

    14% {
        transform: scale(1.20);
        opacity: 1;
    }

    24% {
        transform: scale(.45);
        opacity: 0;
    }

    100% {
        transform: scale(.45);
        opacity: 0;
    }
}

.ai-button-visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.ai-button-hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.ai-button-ready {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.fa-icon-custom {
    font-size: 18px;
    color: #D64000;
}

.fa-icon-custom {
    font-weight: bolder;
    font-size: large;
    margin: 0px 10px 3px 0px;
    background: -webkit-gradient(linear, left top, left bottom, from(#00e2d5), to(#00e2d5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-button-text {
    background: linear-gradient(to right, #1a93cc, #000607);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 16px;
    font-weight: 600;
    background-size: 200% auto;
    background-position: 0% 50%;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 2s linear infinite alternate;
}

.ai-popover {
    position: absolute;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%);
    background: #262626;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    animation: attentionLoop 6s ease-in-out infinite;
    font-size: x-small;
    font-weight: 600;
}

.ai-popover::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #262626 transparent transparent transparent;
}/*
@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,600");*/


.chatbot__header {
    flex-shrink: 0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #165B7E;
    height: 3.2rem;
    padding: 0 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.chatbot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-family: system-ui;
}

@media (max-width: 768px) {

    .chatbot {
        transform: none !important;
        transition: opacity .25s ease !important;
    }
}

    .chatbot.chatbot--visible {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .chatbot.chatbot--closed {
        opacity: 0;
        pointer-events: none;
    }

@media screen and (min-width: 640px) {
    .chatbot {
        max-width: 360px;
        max-height: 540px;
        border-radius: 8px;
        box-shadow: -1px 2px 9px -3px #979797;
        bottom: 15px;
        right: 15px;
    }
}

    .chatbot__header p {
        display: flex;
        align-items: center; 
        margin: 0;
    }

    .chatbot__header img {
        display: block;
    }

    .chatbot__header svg {
        display: block;
    }

    .chatbot__header:hover {
        background-color: #007098;
    }

    .chatbot__header p {
    }

.chatbot__close-button {
    fill: white;
}

    .chatbot__close-button.icon-speech {
        width: 20px;
        display: none;
    }

.chatbot--closed .chatbot__close-button.icon-speech {
    display: block;
}

.chatbot__close-button.icon-close {
    width: 14px;
}

.chatbot--closed .chatbot__close-button.icon-close {
    display: none;
}

.chatbot__message-window {
    flex: 1 1 auto;
    overflow-y: auto;
    background-color: #f8fafb;
    padding: 20px 15px 15px;
}

@media screen and (min-width: 640px) {
    .chatbot__message-window {
        height: 380px;
    }
}

.chatbot__message-window::-webkit-scrollbar {
    display: none;
}

.chatbot--closed .chatbot__message-window {
    display: none;
}

.chatbot__messages {
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    width: auto;
}

    .chatbot__messages li {
        margin-bottom: 20px;
    }

        .chatbot__messages li.is-ai {
            display: inline-flex;
            align-items: flex-start;
        }

        .chatbot__messages li.is-user {
            text-align: right;
            display: inline-flex;
            align-self: flex-end;
        }

        .chatbot__messages li .is-ai__profile-picture {
            margin-right: 8px;
        }

            .chatbot__messages li .is-ai__profile-picture .icon-avatar {
                width: 40px;
                height: 40px;
                padding-top: 6px;
            }

.chatbot__message {
    display: inline-block;
    padding: 12px 20px;
    word-break: break-word;
    margin: 0;
    border-radius: 6px;
    letter-spacing: -0.01em;
    line-height: 1.45;
    overflow: hidden;
}

.is-ai .chatbot__message {
    background-color: #a3bfce1a;
    margin-right: 30px;
    color: black;
}

.is-user .chatbot__message {
    background-color: #e7ebee;
    margin-left: 55px;
    color: #333;
}

.chatbot__message p:first-child {
    margin-top: 0;
}

.chatbot__message p:last-child {
    margin-bottom: 0;
}

.chatbot__message button {
    background-color: #fff;
    font-weight: 300;
    border: 2px solid #7226e0;
    border-radius: 50px;
    padding: 8px 20px;
    margin: -8px 10px 18px 0;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

    .chatbot__message button:hover {
        background-color: #1f5238;
    }

    .chatbot__message button:focus {
        outline: none;
    }

.chatbot__message img {
    max-width: 100%;
}

.chatbot__message .card {
    background-color: #fff;
    text-decoration: none;
    overflow: hidden;
    border-radius: 6px;
    color: black;
    word-break: normal;
}

    .chatbot__message .card .card-content {
        padding: 20px;
    }

    .chatbot__message .card .card-title {
        margin-top: 0;
    }

    .chatbot__message .card .card-button {
        color: #7226e0;
        text-decoration: underline;
    }

.chat-link {
    color: #296fb9;
    text-decoration: none;
    font-weight: 500;
    transition: .2s ease;
    word-break: break-word;
}

    .chat-link:hover {
        color: #538ecd;
        text-decoration: underline;
    }

.animation:last-child {
    animation: fadein 0.25s;
    animation-timing-function: all 200ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.chatbot__arrow {
    width: 0;
    height: 0;
    margin-top: 18px;
}

.chatbot__arrow--right {
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #e7ebee;
}

.chatbot__arrow--left {
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid #0000000f;
}

.chatbot__entry {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.2rem;
    padding: 5px 20px;
    background-color: #e7ebee;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}


.chatbot--closed .chatbot__entry {
    display: none;
}

.chatbot__input {
    height: 100%;
    width: 92%;
    border: 0;
    padding-left: 10px;
    margin-left: -16px;
    font-size: 15px;
    border-radius: 5px;
    background: #ffffff8f;
}

/*.chatbot__input {
    background: #ffffff6e;
    transition: opacity .25s ease, background .25s ease, transform .2s ease;
}*/

    /**
 * Estado deshabilitado
 */
    .chatbot__input.disabled {
        opacity: .55;
        cursor: not-allowed;
        background: #ffffffd9;
        user-select: none;
    }

    /**
 * Estado habilitado
 */
    .chatbot__input:not(.disabled) {
        animation: inputEnable .35s ease;
    }

@keyframes inputEnable {

    0% {
        transform: scale(.98);
        opacity: .6;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}
    .chatbot__input:focus {
        outline: none;
    }

    .chatbot__input::-webkit-input-placeholder {
        color: #7f7f7f;
    }

    .chatbot__input::-moz-placeholder {
        color: #7f7f7f;
    }

    .chatbot__input::-ms-input-placeholder {
        color: #7f7f7f;
    }

    .chatbot__input::-moz-placeholder {
        color: #7f7f7f;
    }

.chatbot__submit {
    fill: #165B7E;
    height: 22px;
    width: 22px;
    transition: fill 0.2s ease;
    cursor: pointer;
    position: relative;
    z-index: 99999 !important;
    /*    pointer-events: auto !important;*/
    pointer-events: all;
}
    .chatbot__submit use,
    .chatbot__submit path {
        pointer-events: all;
    }

    .chatbot__submit:hover {
        fill: #007098;
    }

.u-text-highlight {
    color: #7ee0d2;
}

.loaderMsg {
    margin-bottom: -2px;
    text-align: center;
    opacity: 0.3;
}

.loaderMsg__dot {
    display: inline-block;
    vertical-align: middle;
    width: 6px;
    height: 6px;
    margin: 0 1px;
    background: black;
    border-radius: 50px;
    animation: loaderMsg 0.45s infinite alternate;
}

    .loaderMsg__dot:nth-of-type(2) {
        animation-delay: 0.15s;
    }

    .loaderMsg__dot:nth-of-type(3) {
        animation-delay: 0.35s;
    }

@keyframes loaderMsg {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-5px);
    }
}

@keyframes fadein {
    from {
        opacity: 0;
        margin-top: 10px;
        margin-bottom: 0;
    }

    to {
        opacity: 1;
        margin-top: 0;
        margin-bottom: 10px;
    }
}
