/* =====================================================
   AYUDA STYLES
   Estilos para la página de ayuda
===================================================== */

/* Header específico de ayuda */
.help-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 3rem 0 2rem;
    margin-bottom: -2rem;
    position: relative;
    overflow: hidden;
}

.help-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="help-pattern" patternUnits="userSpaceOnUse" width="100" height="20"><circle cx="15" cy="8" r="1.5" fill="white" opacity="0.1"/><circle cx="85" cy="12" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="5" r="0.8" fill="white" opacity="0.1"/><circle cx="25" cy="15" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="20" fill="url(%23help-pattern)"/></svg>');
    animation: helpPatternMove 25s linear infinite;
}

@keyframes helpPatternMove {
    from { transform: translateX(-100px); }
    to { transform: translateX(0); }
}

.help-icon-header {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.help-icon-header i {
    font-size: 2.5rem;
    color: white;
}

.help-stats .stat-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 80px;
}

.help-stats .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.help-stats .stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Contenedor principal */
.help-wrapper {
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.help-main-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    background: white;
}

/* Sidebar de ayuda */
.help-sidebar {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-right: 1px solid rgba(0,0,0,0.05);
}

.sidebar-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.help-icon-container {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

/* Buscador de ayuda */
.help-search {
    margin-top: 1.5rem;
}

.help-search .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px 0 0 10px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.help-search .form-control:focus {
    border-color: #28a745;
    box-shadow: none;
}

.help-search .btn {
    border-radius: 0 10px 10px 0;
    border: 2px solid #e9ecef;
    border-left: none;
    background: white;
    color: #6c757d;
}

.help-search .btn:hover {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

/* Navegación del sidebar */
.help-nav {
    margin-top: 1.5rem;
}

.side-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: #495057;
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.side-nav-link:hover {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    transform: translateX(5px);
}

.side-nav-link.active {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.side-nav-link i {
    font-size: 1.1rem;
    width: 20px;
}

.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
    margin: 1.5rem 0;
}

/* Ayuda rápida */
.quick-help {
    margin-top: 1.5rem;
}

.quick-help h6 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.help-method {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.help-method:hover {
    background: rgba(40, 167, 69, 0.05);
    transform: scale(1.02);
}

.help-method-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.help-method-info p {
    margin: 0;
    line-height: 1.3;
}

.help-method-info .fw-bold {
    color: #495057;
    font-size: 0.85rem;
}

.help-method-info .text-muted {
    color: #6c757d !important;
    font-size: 0.8rem;
}

/* Contenido principal */
.help-content {
    padding: 2rem;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: helpFadeIn 0.5s ease-in-out;
}

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

.section-header {
    margin-bottom: 2rem;
}

.section-header h5 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
}

/* Artículos destacados */
.featured-articles h6 {
    color: #495057;
    font-size: 1.1rem;
}

.article-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
    cursor: pointer;
}

.article-card:hover {
    border-color: #28a745;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.15);
    transform: translateY(-2px);
}

.article-icon {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.article-content h6 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.article-content p {
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-meta {
    font-size: 0.75rem;
    color: #28a745;
    font-weight: 600;
}

/* Video tutorial */
.video-tutorial {
    margin-top: 2rem;
}

.video-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.video-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.video-thumbnail {
    position: relative;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-play-btn:hover {
    background: rgba(0,0,0,0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.video-info h6 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.video-stats .badge {
    font-size: 0.75rem;
}

/* Categorías de ayuda */
.help-categories {
    margin-top: 1rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.help-category-card {
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.help-category-card:hover {
    border-color: #28a745;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.15);
    transform: translateY(-2px);
}

.help-category-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.help-category-card h6 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.help-category-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-category-card ul li {
    margin-bottom: 0.5rem;
}

.help-category-card ul li a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.help-category-card ul li a:hover {
    color: #28a745;
}

/* FAQ Section */
.faq-section .accordion-item {
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-section .accordion-button {
    background: white;
    border: none;
    padding: 1.25rem;
    font-weight: 600;
    color: #495057;
    border-radius: 12px !important;
}

.faq-section .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: none;
}

.faq-section .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2328a745'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-section .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-section .accordion-body {
    padding: 1.25rem;
    background: #f8f9fa;
    color: #6c757d;
    line-height: 1.6;
}

/* Acciones rápidas */
.quick-actions h6 {
    color: #495057;
}

.action-card {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.action-card:hover {
    border-color: #28a745;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.15);
    transform: translateY(-2px);
}

.action-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.action-card h6 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Problemas comunes */
.troubleshooting h6 {
    color: #495057;
}

.problem-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.problem-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.problem-item:hover {
    border-color: #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.1);
}

.problem-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.problem-content {
    flex: 1;
}

.problem-content h6 {
    color: #2c3e50;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

/* Funciones empresariales */
.business-features {
    margin-top: 1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: #28a745;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.15);
    transform: translateY(-2px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.8rem;
}

.feature-card h6 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Ayuda de facturación */
.billing-help .help-section-card {
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    height: 100%;
}

.billing-help .help-section-card h6 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.help-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-list li {
    margin-bottom: 0.75rem;
}

.help-list li a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-list li a:before {
    content: '→';
    color: #28a745;
    font-weight: bold;
}

.help-list li a:hover {
    color: #28a745;
}

/* Soporte técnico */
.technical-support {
    margin-top: 1rem;
}

.support-categories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.support-category {
    border: 1px solid #e9ecef;
    border-radius: 15px;
    overflow: hidden;
}

.category-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.category-header h6 {
    margin: 0;
    color: #2c3e50;
}

.category-content {
    padding: 1rem 1.5rem;
}

.support-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.support-item:last-child {
    border-bottom: none;
}

.support-title {
    color: #495057;
    font-size: 0.95rem;
}

/* Herramienta de diagnóstico */
.diagnostic-tool h6 {
    color: #495057;
}

.diagnostic-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    align-items: center;
    transition: all 0.3s ease;
}

.diagnostic-card:hover {
    border-color: #28a745;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.15);
}

.diagnostic-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.diagnostic-content h6 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Ayuda adicional */
.additional-help {
    margin-top: 3rem;
}

.help-cta-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    align-items: center;
    text-align: left;
    height: 100%;
    transition: all 0.3s ease;
}

.help-cta-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.help-cta-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.help-cta-content h5 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.help-cta-content p {
    color: #6c757d;
    margin-bottom: 1rem;
}

/* Botones */
.btn-primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.btn-outline-primary {
    border: 2px solid #28a745;
    color: #28a745;
    padding: 0.65rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #28a745;
    color: white;
    transform: translateY(-1px);
}

/* Estados de búsqueda */
.search-results {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #28a745;
}

.search-results.no-results {
    border-left-color: #ffc107;
}

.search-highlight {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 991.98px) {
    .help-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .quick-help {
        display: none;
    }
    
    .help-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .side-nav-link {
        flex: 1;
        min-width: 150px;
        justify-content: center;
        padding: 0.75rem 0.5rem;
        margin-bottom: 0;
    }
    
    .side-nav-link span {
        display: none;
    }
    
    .side-nav-link i {
        margin: 0;
    }
    
    .video-card {
        flex-direction: column;
        text-align: center;
    }
    
    .category-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .help-header {
        padding: 2rem 0 1rem;
        text-align: center;
    }
    
    .help-stats {
        justify-content: center !important;
        margin-top: 1rem;
    }
    
    .help-stats .stat-item {
        min-width: 70px;
        padding: 0.75rem;
    }
    
    .help-main-card {
        margin: 1rem;
    }
    
    .help-content,
    .help-sidebar {
        padding: 1.5rem;
    }
    
    .help-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .article-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
}

@media (max-width: 575.98px) {
    .help-icon-header {
        width: 60px;
        height: 60px;
    }
    
    .help-icon-header i {
        font-size: 2rem;
    }
    
    .help-stats .stat-number {
        font-size: 1.2rem;
    }
    
    .row.g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
    
    .support-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}