﻿/* ============================================= */
/* BOTÓN FLOTANTE DE AYUDA */
/* ============================================= */
.help-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
    font-size: 28px;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .help-float-btn:hover {
        transform: scale(1.1) rotate(-10deg);
        box-shadow: 0 6px 25px rgba(13, 110, 253, 0.6);
    }

    .help-float-btn .help-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background: #dc3545;
        color: white;
        font-size: 10px;
        border-radius: 50%;
        width: 22px;
        height: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
    }

/* ============================================= */
/* PANEL LATERAL DE AYUDA */
/* ============================================= */
.help-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .help-panel-overlay.active {
        display: block;
        opacity: 1;
    }

.help-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100%;
    background: white;
    z-index: 10000;
    transition: right 0.3s ease;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

    .help-panel.open {
        right: 0;
    }

.help-panel-header {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

    .help-panel-header h5 {
        margin: 0;
        font-weight: 600;
    }

    .help-panel-header .btn-close {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        padding: 8px;
        opacity: 1;
    }

.help-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

    .help-panel-body .help-section {
        margin-bottom: 20px;
    }

        .help-panel-body .help-section h6 {
            color: #0d6efd;
            font-weight: 600;
            border-bottom: 2px solid #e9ecef;
            padding-bottom: 8px;
            margin-bottom: 12px;
        }

    .help-panel-body .help-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 12px;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
        text-decoration: none;
        color: #212529;
    }

        .help-panel-body .help-item:hover {
            background: #f0f7ff;
            text-decoration: none;
            color: #0d6efd;
        }

        .help-panel-body .help-item .help-icon {
            font-size: 20px;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #e9ecef;
            border-radius: 8px;
            flex-shrink: 0;
        }

        .help-panel-body .help-item .help-text {
            flex: 1;
        }

            .help-panel-body .help-item .help-text small {
                color: #6c757d;
            }

.help-panel-footer {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    flex-shrink: 0;
}

/* ============================================= */
/* CENTRO DE AYUDA */
/* ============================================= */
.help-hero {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: white;
    padding: 40px 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
}

    .help-hero h1 {
        font-size: 2.5rem;
        font-weight: 700;
    }

    .help-hero p {
        opacity: 0.9;
        max-width: 600px;
        margin: 0 auto;
    }

.help-search-box {
    max-width: 500px;
    margin: 20px auto 0;
    position: relative;
}

    .help-search-box input {
        padding: 12px 20px;
        border-radius: 30px;
        border: none;
        width: 100%;
        font-size: 16px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .help-search-box .search-icon {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        color: #6c757d;
    }

.help-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    cursor: pointer;
}

    .help-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }

    .help-card .card-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .help-card .card-title {
        font-weight: 600;
        margin-bottom: 10px;
    }

    .help-card .card-text {
        color: #6c757d;
        font-size: 0.9rem;
    }

/* ============================================= */
/* MANUAL DE USUARIO */
/* ============================================= */
.manual-section {
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

    .manual-section:last-child {
        border-bottom: none;
    }

    .manual-section h4 {
        color: #0d6efd;
        margin-bottom: 15px;
    }

.manual-step {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    align-items: flex-start;
}

    .manual-step .step-number {
        width: 32px;
        height: 32px;
        background: #0d6efd;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 14px;
        flex-shrink: 0;
    }

    .manual-step .step-content {
        flex: 1;
    }

        .manual-step .step-content p {
            margin: 0;
            color: #495057;
        }

        .manual-step .step-content .step-image {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 20px;
            margin-top: 8px;
            border: 1px dashed #dee2e6;
            text-align: center;
            color: #6c757d;
        }

/* ============================================= */
/* FAQ */
/* ============================================= */
.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}

    .faq-item .faq-question {
        padding: 15px 20px;
        background: #f8f9fa;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 500;
        transition: background 0.2s ease;
    }

        .faq-item .faq-question:hover {
            background: #e9ecef;
        }

        .faq-item .faq-question .faq-icon {
            transition: transform 0.3s ease;
        }

        .faq-item .faq-question.active .faq-icon {
            transform: rotate(180deg);
        }

    .faq-item .faq-answer {
        padding: 0 20px;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }

        .faq-item .faq-answer.open {
            padding: 15px 20px;
            max-height: 500px;
        }

/* ============================================= */
/* RESPONSIVE */
/* ============================================= */
@media (max-width: 576px) {
    .help-panel {
        width: 100%;
        right: -100%;
    }

    .help-float-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
        bottom: 20px;
        right: 20px;
    }

    .help-hero h1 {
        font-size: 1.8rem;
    }
}
