/* Estilos Generales */
:root {
    --primary: #28a745;
    --primary-dark: #5d4ecb;
    --primary-light: #28a745;
    --secondary: #fdcb6e;
    --accent: #ff7675;
    --light: #f7f7f7;
    --dark: #2d3436;
    --gray: #636e72;
    --light-gray: #dfe6e9;
    --success: #00b894;
    --error: #d63031;
    --transition: all 0.3s ease;
}





/* WhatsApp Button */
.whatsapp-chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    cursor: pointer;
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-chat-button img {
    width: 35px;
    height: 35px;
}

.chat-options {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 250px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: none;
    z-index: 998;
}

.chat-options button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    text-align: left;
    background: none;
    border: none;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--light-gray);
}

.chat-options button:last-child {
    border-bottom: none;
}

.chat-options button:hover {
    background-color: var(--light-gray);
    color: var(--primary);
}



/* Estilos del chatbot (se integran con tu CSS existente) */
.chatbot-container {
    position: fixed;
    color: #28a745;
    bottom: 30px;
    right: 30px;
    width: 380px;
    max-width: 90%;
    z-index: 1000;
    font-family: 'Poppins', sans-serif;
    display: none;
}

.chatbot-header {
    background-color: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.chatbot-header h3 i {
    margin-right: 10px;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.chatbot-body {
    background-color: white;
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    border-left: 1px solid var(--light-gray);
    border-right: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
}

.chatbot-footer {
    background-color: white;
    padding: 15px;
    border-radius: 0 0 15px 15px;
    border-left: 1px solid var(--light-gray);
    border-right: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
    display: flex;
}

.chatbot-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 30px;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

.chatbot-send {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.chatbot-send:hover {
    background-color: var(--primary-dark);
}

.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
    z-index: 999;
    transition: var(--transition);
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    margin-bottom: 15px;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.bot-message {
    background-color: var(--light-gray);
    color: var(--dark);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.user-message {
    background-color: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-reply {
    background-color: white;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.quick-reply:hover {
    background-color: var(--primary-light);
}

.chatbot-options {
    margin-top: 10px;
}

.chatbot-option {
    display: block;
    background-color: var(--light-gray);
    color: var(--dark);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.chatbot-option:hover {
    background-color: var(--primary-light);
    color: white;
}

.chatbot-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Asegurar que el chatbot esté sobre el botón de WhatsApp */
.whatsapp-chat-button {
    bottom: 100px;
}

.chat-options {
    bottom: 170px;
}

@media (max-width: 768px) {
    .chatbot-container {
        width: 90%;
        right: 5%;
        bottom: 80px;
    }

    .chatbot-toggle {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-chat-button {
        bottom: 90px;
        right: 20px;
    }

    .chat-options {
        bottom: 160px;
        right: 20px;
    }
}




/* Estilos para el popup de promoción */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.popup-container {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-container {
    transform: scale(1);
}

.popup-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2;
}

.popup-close-btn:hover {
    color: #333;
}

.popup-content {
    display: flex;
    flex-direction: column;
}

.popup-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.popup-text {
    padding: 25px;
    text-align: center;
}

.popup-title {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
}

.popup-message {
    color: #7f8c8d;
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.popup-action-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.popup-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px) scale(0.95);
    }

    to {
        transform: translateY(0) scale(0.95);
    }
}

/* Efecto al aparecer */
.popup-overlay {
    animation: fadeIn 0.3s forwards;
}

.popup-container {
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .popup-container {
        width: 95%;
    }

    .popup-text {
        padding: 20px 15px;
    }

    .popup-title {
        font-size: 20px;
    }

    .popup-message {
        font-size: 14px;
    }
}