/* ==========================================
   AYUDA.PHP - ESTILOS ESPECÍFICOS
   ========================================== */

/* Help Hero Section */
.help-hero {
    position: relative;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--card-bg) 100%);
    overflow: hidden;
}

.help-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.help-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.help-label {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.help-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}
[data-theme="dark"] .help-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #FFF;
}

.help-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}
[data-theme="dark"] .help-description {
    font-size: 1.25rem;
    color: #FFF;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Search Form */
.help-search-form {
    max-width: 700px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1), 0 10px 40px rgba(0, 0, 0, 0.1);
}

.search-icon {
    color: var(--text-secondary);
    margin-left: 1rem;
    flex-shrink: 0;
}

.help-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 1rem;
    font-size: 1.125rem;
    color: var(--text-color);
    outline: none;
}

.help-search-input::placeholder {
    color: var(--text-secondary);
}

.search-submit-btn {
    padding: 0.875rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.search-submit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.search-suggestions {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.search-suggestions span {
    margin-right: 0.5rem;
}

.search-suggestions a {
    display: inline-block;
    margin: 0 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.search-suggestions a:hover {
    background: rgba(99, 102, 241, 0.2);
}

/* Quick Links */
.quick-links {
    padding: 40px 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.quick-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.quick-link-icon {
    font-size: 2rem;
}

.quick-link-text {
    font-weight: 600;
    color: var(--text-color);
}
[data-theme="dark"] .quick-link-text {
    font-weight: 600;
    color: #FFF;
}

/* Categories Section */
.help-categories {
    padding: 80px 0;
    background: var(--bg-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

.category-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-header {
    margin-bottom: 1.5rem;
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}
[data-theme="dark"] .category-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #FFF;
}

.category-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
[data-theme="dark"] .category-description {
    font-size: 0.95rem;
    color: #FFF;
    line-height: 1.5;
}

.category-articles {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex: 1;
}
[data-theme="dark"] .category-articles {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex: 1;
    color: #FFF;
}

.category-articles li {
    margin-bottom: 0.75rem;
}

.article-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.article-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.article-link svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.category-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

.category-more:hover {
    transform: translateX(5px);
}

/* Video Section */
.video-section {
    padding: 80px 0;
    background: var(--card-bg);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.video-card {
    background: var(--bg-color);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.video-card:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: white;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

.video-title {
    padding: 1.25rem 1.5rem 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.4;
}

.video-meta {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: var(--bg-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-item summary {
    padding: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-item summary:hover {
    background: rgba(99, 102, 241, 0.05);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-icon {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-icon::before {
    width: 2px;
    height: 12px;
    top: 6px;
    left: 11px;
}

.faq-icon::after {
    width: 12px;
    height: 2px;
    top: 11px;
    left: 6px;
}

.faq-item[open] .faq-icon::before {
    transform: rotate(90deg);
}

.faq-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-content p {
    margin-bottom: 1rem;
}

.faq-feedback {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.feedback-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.feedback-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.feedback-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.faq-more {
    text-align: center;
    margin-top: 3rem;
}

/* Support CTA Section */
.support-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-color) 100%);
}

.support-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    overflow: hidden;
    position: relative;
}

@media (max-width: 968px) {
    .support-card {
        grid-template-columns: 1fr;
    }
}

.support-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.support-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}
[data-theme="dark"] .support-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #FFF;
}

.support-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}
[data-theme="dark"] .support-text {
    font-size: 1.125rem;
    color: #FFF;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.support-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.support-buttons .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.support-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.support-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
[data-theme="dark"] .support-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #FFF;
}

.support-visual {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 300px;
}

.support-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Dark Mode Adjustments */
[data-theme="dark"] .search-input-wrapper {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .quick-link-card {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .category-card {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .video-card {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .faq-item {
    background: rgba(255, 255, 255, 0.03);
    color: #FFF;
}

[data-theme="dark"] .support-card {
    background: rgba(255, 255, 255, 0.03);
}

/* Text center utility */
.text-center {
    text-align: center;
}