/* FAQ Chat Widget Styles */
.faq-chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0A76D8 0%, #0056b3 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(10, 118, 216, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 998;
    color: white;
}

.faq-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(10, 118, 216, 0.4);
}

.faq-chat-button.open {
    transform: rotate(90deg);
}

.faq-chat-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 600px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    z-index: 999;
    animation: slideUp 0.3s ease-out;
}

.faq-chat-widget.active {
    display: flex;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.faq-header {
    background: linear-gradient(135deg, #0A76D8 0%, #0056b3 100%);
    color: white;
    padding: 20px;
    border-radius: 16px 16px 0 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.faq-header p {
    margin: 5px 0 0 0;
    font-size: 13px;
    opacity: 0.9;
}

.faq-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-list.hidden {
    display: none;
}

.faq-question-btn {
    background: #f0f7ff;
    border: 1px solid #dde8f5;
    padding: 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #0A76D8;
    font-family: 'Inter', sans-serif;
}

.faq-question-btn:hover {
    background: #e0efff;
    border-color: #0A76D8;
    transform: translateX(4px);
}

.faq-answer-container {
    display: none;
}

.faq-answer-container.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-back-btn {
    background: transparent;
    border: none;
    color: #0A76D8;
    cursor: pointer;
    font-size: 16px;
    padding: 8px 0;
    margin-bottom: 15px;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
}

.faq-back-btn:hover {
    color: #0056b3;
    transform: translateX(-4px);
}

.faq-answer-text {
    background: #f8fbff;
    border-left: 3px solid #0A76D8;
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.faq-answer-text strong {
    color: #0A76D8;
}

.faq-footer {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 0 0 16px 16px;
    border-top: 1px solid #e9ecef;
    text-align: center;
    font-size: 12px;
    color: #999;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .faq-chat-widget {
        width: calc(100% - 30px);
        height: 450px;
        right: 15px;
        bottom: 80px;
    }
    
    .faq-chat-button {
        width: 56px;
        height: 56px;
        right: 15px;
        bottom: 15px;
        font-size: 22px;
    }
    
    .faq-header h3 {
        font-size: 16px;
    }
    
    .faq-header p {
        font-size: 12px;
    }
    
    .faq-content {
        padding: 15px;
    }
    
    .faq-question-btn {
        padding: 12px;
        font-size: 13px;
    }
    
    .faq-list {
        gap: 8px;
    }
    
    .faq-answer-text {
        padding: 14px;
        font-size: 13px;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .faq-chat-widget {
        width: calc(100% - 24px);
        height: auto;
        max-height: 70vh;
        right: 12px;
        bottom: 75px;
    }
    
    .faq-chat-button {
        width: 52px;
        height: 52px;
        right: 12px;
        bottom: 12px;
        font-size: 20px;
    }
    
    .faq-header {
        padding: 14px;
    }
    
    .faq-header h3 {
        font-size: 15px;
        margin-bottom: 2px;
    }
    
    .faq-header p {
        font-size: 11px;
        margin-top: 4px;
    }
    
    .faq-content {
        padding: 12px;
        max-height: calc(70vh - 90px);
    }
    
    .faq-list {
        gap: 6px;
    }
    
    .faq-question-btn {
        padding: 10px 12px;
        font-size: 12px;
        border-radius: 8px;
    }
    
    .faq-back-btn {
        font-size: 14px;
        padding: 6px 0;
        margin-bottom: 10px;
    }
    
    .faq-answer-text {
        padding: 12px;
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 10px;
        border-radius: 6px;
    }
    
    .faq-footer {
        padding: 12px 15px;
        font-size: 11px;
    }
}

/* Responsive - Pantallas muy pequeñas */
@media (max-width: 360px) {
    .faq-chat-widget {
        width: calc(100% - 16px);
        right: 8px;
    }
    
    .faq-chat-button {
        width: 48px;
        height: 48px;
        right: 8px;
        bottom: 8px;
    }
    
    .faq-header {
        padding: 12px;
    }
    
    .faq-header h3 {
        font-size: 14px;
    }
    
    .faq-content {
        padding: 10px;
    }
    
    .faq-question-btn {
        padding: 9px 10px;
        font-size: 11px;
    }
    
    .faq-answer-text {
        padding: 10px;
        font-size: 11px;
    }
}

/* Scroll personalizado para navegadores webkit */
.faq-content::-webkit-scrollbar {
    width: 6px;
}

.faq-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.faq-content::-webkit-scrollbar-thumb {
    background: #0A76D8;
    border-radius: 10px;
}

.faq-content::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}
