/* ============================================ */
/* REDBOT FAQs - ESTILOS CSS                    */
/* ============================================ */

/* ----- BOTÓN FLOTANTE NUEVO ----- */
.redbot-faqs-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: auto;
    height: auto;
    background: #0f172a;
    border: 2px solid #f97316;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    transition: all 0.3s ease;
}

.redbot-faqs-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.55);
    border-color: #fb923c;
}

.redbot-faqs-btn-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    position: relative;
}

.redbot-faqs-btn-icon::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    border: 2px solid #0f172a;
}

.redbot-faqs-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.redbot-faqs-btn-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #f97316;
    letter-spacing: 0.5px;
}

.redbot-faqs-btn-subtitle {
    font-size: 0.65rem;
    color: #94a3b8;
}

.redbot-faqs-badge {
    display: none;
}

/* ----- MODAL ----- */
.redbot-faqs-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

.redbot-faqs-overlay.show {
    display: block;
}

.redbot-faqs-modal {
    position: fixed;
    top: 70px;
    right: 0;
    width: 400px;
    max-width: 100vw;
    height: calc(100vh - 70px);
    max-height: calc(100vh - 70px);
    background: #0f172a;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    flex-direction: column;
    border-left: 1px solid #334155;
    overflow: hidden;
}

.redbot-faqs-modal.open {
    display: flex;
    animation: redbot-slide-in 0.3s ease;
}

@keyframes redbot-slide-in {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.redbot-faqs-header {
    background: linear-gradient(135deg, #f97316, #ea580c);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.redbot-faqs-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.redbot-faqs-avatar {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.redbot-faqs-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.redbot-faqs-status {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 5px;
}

.redbot-faqs-status-dot {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
}

.redbot-faqs-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.redbot-faqs-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.redbot-faqs-body {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
}

.redbot-faqs-welcome {
    background: #1e293b;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 3px solid #f97316;
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.redbot-faqs-welcome strong {
    color: #f97316;
}

.redbot-faqs-search {
    position: relative;
    margin-bottom: 1rem;
}

.redbot-faqs-search input {
    width: 100%;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    color: #e2e8f0;
    font-size: 0.85rem;
}

.redbot-faqs-search input:focus {
    outline: none;
    border-color: #f97316;
}

.redbot-faqs-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

.redbot-faqs-no-results {
    display: none;
    text-align: center;
    padding: 1.5rem;
    color: #64748b;
    font-size: 0.85rem;
}

.redbot-faqs-no-results.show {
    display: block;
}

.redbot-faqs-category {
    margin-bottom: 0.75rem;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #1e293b;
}

.redbot-faqs-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    cursor: pointer;
}

.redbot-faqs-category-header:hover {
    background: #263348;
}

.redbot-faqs-category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
}

.redbot-faqs-category-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.redbot-faqs-category-arrow {
    color: #64748b;
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.redbot-faqs-category.open .redbot-faqs-category-arrow {
    transform: rotate(180deg);
}

.redbot-faqs-category-questions {
    display: none;
    border-top: 1px solid #334155;
}

.redbot-faqs-category.open .redbot-faqs-category-questions {
    display: block;
}

.redbot-faqs-question {
    padding: 0.7rem 1rem 0.7rem 3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #263348;
    font-size: 0.83rem;
    color: #cbd5e1;
    position: relative;
}

.redbot-faqs-question:last-child {
    border-bottom: none;
}

.redbot-faqs-question:hover {
    background: #263348;
}

.redbot-faqs-question.active {
    background: rgba(249, 115, 22, 0.1);
    border-left: 3px solid #f97316;
    color: #f97316;
}

.redbot-faqs-question-check {
    position: absolute;
    left: 1rem;
    font-size: 0.7rem;
    color: #64748b;
}

.redbot-faqs-question-text {
    flex: 1;
}

.redbot-faqs-question-arrow {
    color: #64748b;
    font-size: 0.7rem;
}

.redbot-faqs-answer {
    background: #1e293b;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
    display: none;
    border-left: 3px solid #10b981;
}

.redbot-faqs-answer.show {
    display: block;
}

.redbot-faqs-answer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.redbot-faqs-answer-avatar {
    width: 28px;
    height: 28px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    font-size: 0.8rem;
}

.redbot-faqs-answer-title {
    color: #10b981;
    font-weight: 600;
    font-size: 0.9rem;
}

.redbot-faqs-answer p {
    margin: 0 0 0.5rem 0;
    color: #cbd5e1;
    font-size: 0.83rem;
    line-height: 1.6;
}

.redbot-faqs-answer strong {
    color: #10b981;
}

.redbot-faqs-answer a {
    color: #f97316;
    text-decoration: underline;
}

.redbot-faqs-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #334155;
    flex-wrap: wrap;
}

.redbot-faqs-btn-action {
    background: #263348;
    color: #cbd5e1;
    border: 1px solid #334155;
    padding: 0.5rem 0.9rem;
    border-radius: 0.5rem;
    font-size: 0.78rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.redbot-faqs-btn-action:hover {
    background: #334155;
    color: #f97316;
}

.redbot-faqs-back {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.8rem;
    cursor: pointer;
    margin-bottom: 1rem;
    background: none;
    border: none;
    padding: 0;
}

.redbot-faqs-back:hover {
    color: #f97316;
}

.redbot-faqs-typing {
    display: none;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
}

.redbot-faqs-typing.show {
    display: flex;
    align-items: center;
    gap: 8px;
}

.redbot-faqs-typing-dot {
    width: 7px;
    height: 7px;
    background: #64748b;
    border-radius: 50%;
    animation: redbot-typing 1.4s infinite;
}

.redbot-faqs-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.redbot-faqs-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes redbot-typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

.redbot-faqs-footer {
    padding: 0.7rem 1rem;
    border-top: 1px solid #334155;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #64748b;
}

.redbot-faqs-footer a {
    color: #f97316;
    text-decoration: none;
}

.redbot-faqs-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .redbot-faqs-modal {
        top: 60px;
        width: 100vw;
        max-width: 100vw;
        height: calc(100vh - 60px);
        max-height: calc(100vh - 60px);
        border-radius: 0;
        border-left: none;
    }

    .redbot-faqs-btn {
        bottom: 16px;
        right: 16px;
        padding: 8px 14px;
        gap: 8px;
    }

    .redbot-faqs-btn-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
        border-radius: 10px;
    }

    .redbot-faqs-btn-title {
        font-size: 0.78rem;
    }

    .redbot-faqs-btn-subtitle {
        font-size: 0.6rem;
    }
}