@font-face {
    font-family: 'ShinePersonalUse';
    src: url('../fonts/fontawesome/ShinePersonalUse.ttf') format('truetype');
}

@font-face {
    font-family: 'KlinicSlabLight';
    src: url('../fonts/fontawesome/KlinicSlabLight.otf') format('truetype');
}

:root {
    --bg-verde: #9dcd24;
    --bg-marron: #3E261A;
    --style-font: "KlinicSlabLight", cursive;
}

* {
    font-family: var(--style-font);
}


.bot-btn {
    padding: 6px 12px;
    margin: 5px 5px 0 0;
    border: none;
    border-radius: 20px;
    background-color: var(--bg-marron);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.bot-btn:hover {
    background-color: var(--bg-verde);
}


.demo-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    color: white;
    text-align: center;
}

.demo-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.demo-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* CHATBOX STYLES */
.chatbox-container {
    position: fixed;
    bottom: 20px;
    right: 20px !important;
    z-index: 1000;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: var(--bg-verde);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 8px 25px #3e261ac4;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.chat-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px #3e261ac4;
}

.chatbox {
    position: absolute;
    bottom: 80px;
    left: -310px;
    width: 350px;
    /* height: 500px; */
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.chatbox.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: var(--bg-verde);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.chat-header h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.chat-header p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.chat-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    height: 240px;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-end;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.bot .message-bubble {
    background: white;
    color: #333;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.message.user .message-bubble {
    background: linear-gradient(357deg, var(--bg-marron), #3e261ac4);
    color: white;
    border-bottom-right-radius: 5px;
}

.chat-input-container {
    padding: 20px;
    background: white;
    border-top: 1px solid #eee;
}

.chat-input-form {
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #eee;
    border-radius: 25px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

.chat-input:focus {
    border-color: var(--bg-verde);
}

.chat-send {
    width: 45px;
    height: 45px;
    background: linear-gradient(357deg, var(--bg-marron), #3e261ac4);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send:hover {
    transform: scale(1.05);
}

.typing-indicator {
    display: none;
    padding: 15px 20px;
    color: #999;
    font-style: italic;
    font-size: 0.85rem;
}

/* Scrollbar personalizado */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Responsive */
@media (max-width: 400px) {
    .chatbox {
        width: calc(100vw - 40px);
        left: -290px;
        right: 20px;
    }
}

/* Botones de preguntas frecuentes */
.quick-questions {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #eee;
    max-height: 100px;
    overflow-y: auto;
}

.quick-questions h4 {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.question-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.question-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 6px 12px;
    font-size: 0.8rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.question-btn:hover {
    background: linear-gradient(357deg, var(--bg-marron), #3e261ac4);
    color: white;
    transform: translateY(-1px);
}

/* Indicador de estado online */
.online-indicator {
    position: absolute;
    top: 15px;
    left: 20px;
    width: 10px;
    height: 10px;
    background: var(--bg-marron);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 var(--bg-marron);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}