/* ===== Help Center Styles ===== */

/* Search bar */
.help-search-wrapper {
    max-width: 600px;
    margin: 0 auto 30px;
    position: relative;
}

.help-search-wrapper .form-control {
    border-radius: 25px;
    padding: 12px 20px 12px 45px;
    font-size: 16px;
    border: 2px solid #e7eaec;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.help-search-wrapper .form-control:focus {
    border-color: #1ab394;
    box-shadow: 0 2px 12px rgba(26,179,148,0.2);
}

.help-search-wrapper .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.help-search-wrapper .search-clear {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    display: none;
    font-size: 16px;
}

.help-search-wrapper .search-clear:hover {
    color: #333;
}

/* No results message */
.no-results-msg {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    display: none;
}

.no-results-msg i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    color: #ccc;
}

/* Tabs styling */
.help-tabs .nav-tabs {
    border-bottom: 2px solid #e7eaec;
    margin-bottom: 25px;
}

.help-tabs .nav-tabs .nav-link {
    border: none;
    color: #676a6c;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 24px;
    transition: color 0.2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.help-tabs .nav-tabs .nav-link:hover {
    color: #1ab394;
    border-bottom-color: #e7eaec;
}

.help-tabs .nav-tabs .nav-link.active {
    color: #1ab394;
    border-bottom-color: #1ab394;
    background: transparent;
}

.help-tabs .nav-tabs .nav-link i {
    margin-right: 6px;
}

/* Guide cards */
.guide-card {
    background: #fff;
    border: 1px solid #e7eaec;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s, transform 0.2s;
    overflow: hidden;
}

.guide-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.guide-card .guide-header {
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
    border-bottom: 1px solid #e7eaec;
}

.guide-card .guide-header:hover {
    background: #f3f3f3;
}

.guide-card .guide-header .guide-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #2f4050;
    margin: 0;
    flex: 1;
}

.guide-card .guide-header .guide-title .guide-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}

.guide-icon.bg-primary { background: #1ab394; }
.guide-icon.bg-info { background: #23c6c8; }
.guide-icon.bg-warning { background: #f8ac59; }
.guide-icon.bg-danger { background: #ed5565; }
.guide-icon.bg-blue { background: #1c84c6; }
.guide-icon.bg-purple { background: #9b59b6; }

.guide-card .guide-header .guide-toggle {
    color: #999;
    font-size: 14px;
    transition: transform 0.3s;
}

.guide-card .guide-header[aria-expanded="true"] .guide-toggle {
    transform: rotate(180deg);
}

.guide-card .guide-body {
    padding: 20px;
}

/* Category tags */
.guide-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.guide-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.guide-tag.tag-tramites { background: #e8f5e9; color: #2e7d32; }
.guide-tag.tag-pagos { background: #e3f2fd; color: #1565c0; }
.guide-tag.tag-documentos { background: #fff3e0; color: #e65100; }
.guide-tag.tag-interno { background: #f3e5f5; color: #7b1fa2; }

/* Step list inside guides */
.guide-steps {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    counter-reset: step-counter;
}

.guide-steps li {
    counter-increment: step-counter;
    padding: 12px 12px 12px 55px;
    position: relative;
    border-left: 2px solid #e7eaec;
    margin-left: 18px;
}

.guide-steps li:last-child {
    border-left-color: transparent;
}

.guide-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: -14px;
    top: 10px;
    width: 28px;
    height: 28px;
    background: #1ab394;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.guide-steps li strong {
    display: block;
    margin-bottom: 4px;
    color: #2f4050;
}

.guide-steps li p {
    margin: 0;
    color: #676a6c;
    font-size: 14px;
}

/* Tour launch button inside guide */
.btn-tour {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    background: #1ab394;
    color: #fff;
    border: none;
    transition: background 0.2s, transform 0.2s;
}

.btn-tour:hover {
    background: #18a689;
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-tour i {
    font-size: 16px;
}

/* FAQ section improved */
.faq-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #2f4050;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e7eaec;
}

.faq-item-improved {
    background: #fff;
    border: 1px solid #e7eaec;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-item-improved .faq-question-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 20px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: #2f4050;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-item-improved .faq-question-btn:hover {
    background: #fafafa;
}

.faq-item-improved .faq-question-btn .faq-toggle-icon {
    color: #999;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 10px;
}

.faq-item-improved .faq-question-btn[aria-expanded="true"] .faq-toggle-icon {
    transform: rotate(180deg);
}

.faq-item-improved .faq-answer-body {
    padding: 0 20px 15px;
    color: #676a6c;
    line-height: 1.7;
}

/* WhatsApp banner */
.whatsapp-banner {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    border-radius: 8px;
    padding: 20px 25px;
    margin: 25px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.whatsapp-banner h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.whatsapp-banner p {
    margin: 4px 0 0;
    font-size: 14px;
    opacity: 0.9;
}

.whatsapp-banner .btn-whatsapp {
    background: #fff;
    color: #128c7e;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-banner .btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    text-decoration: none;
    color: #128c7e;
}

/* Floating help button */
.help-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1ab394;
    color: #fff;
    border: none;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(26,179,148,0.4);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s, box-shadow 0.3s;
}

.help-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(26,179,148,0.5);
}

.help-float-btn .tooltip-text {
    position: absolute;
    right: 70px;
    background: #333;
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.help-float-btn:hover .tooltip-text {
    opacity: 1;
}

/* Shepherd.js overrides to match theme */
.shepherd-element {
    z-index: 10000 !important;
}

.shepherd-button {
    border-radius: 4px !important;
    font-weight: 600 !important;
}

.shepherd-button.shepherd-button-primary {
    background: #1ab394 !important;
}

.shepherd-button.shepherd-button-primary:hover {
    background: #18a689 !important;
}

.shepherd-button.shepherd-button-secondary {
    background: #f3f3f4 !important;
    color: #676a6c !important;
}

.shepherd-has-title .shepherd-content .shepherd-header {
    background: #1ab394 !important;
    padding: 10px 15px !important;
}

.shepherd-title {
    color: #fff !important;
    font-weight: 600 !important;
}

.shepherd-cancel-icon {
    color: #fff !important;
}

.shepherd-text {
    padding: 15px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .help-tabs .nav-tabs .nav-link {
        padding: 10px 14px;
        font-size: 13px;
    }

    .guide-card .guide-header .guide-title {
        font-size: 14px;
    }

    .whatsapp-banner {
        flex-direction: column;
        text-align: center;
    }

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