/* ===== FAQ Page Specific Styles ===== */

/* FAQ Hero Section */
.faq-hero {
    position: relative;
    padding: calc(80px + var(--space-2xl)) 0 var(--space-xl);
    background: var(--gray-100);
    overflow: hidden;
}

.faq-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.faq-hero .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.faq-hero .shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: -150px;
    right: -100px;
}

.faq-hero .shape-2 {
    width: 250px;
    height: 250px;
    background: var(--accent);
    bottom: -100px;
    left: 10%;
}

.faq-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.faq-hero .hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: var(--space-sm);
}

.faq-hero .hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin-bottom: var(--space-xl);
}

/* FAQ Search Bar */
.faq-search {
    position: relative;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.faq-search input {
    width: 100%;
    padding: 1.25rem 3.5rem 1.25rem 1.5rem;
    font-size: 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-full);
    background: var(--white);
    transition: var(--transition);
}

.faq-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.faq-search svg {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    pointer-events: none;
}

/* FAQ Stats */
.faq-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.faq-stats .stat {
    text-align: center;
}

.faq-stats .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
}

.faq-stats .stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-700);
}

/* FAQ Categories Navigation */
.faq-categories-nav {
    background: var(--white);
    border-bottom: 1px solid var(--gray-300);
    position: sticky;
    top: 80px;
    z-index: 100;
    padding: var(--space-md) 0;
}

.categories-nav-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.categories-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: flex;
    gap: var(--space-sm);
    scroll-behavior: smooth;
    flex: 1;
}

.categories-wrapper::-webkit-scrollbar {
    display: none;
}

/* Navigation Arrows */
.nav-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    color: var(--gray-700);
}

.nav-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.nav-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-arrow:disabled:hover {
    background: var(--white);
    border-color: var(--gray-300);
    color: var(--gray-700);
}

.category-btn {
    background: transparent;
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.category-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.category-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* FAQ Content Grid */
.faq-content {
    padding: var(--space-3xl) 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

/* FAQ Sidebar */
.faq-sidebar {
    position: sticky;
    top: 180px;
}

.faq-sidebar h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.faq-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: var(--space-xl);
}

.faq-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: var(--gray-700);
    font-weight: 500;
    transition: var(--transition);
}

.faq-nav-link:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.faq-nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-icon {
    font-size: 1.25rem;
}

/* Quick Help Box */
.quick-help {
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
}

.quick-help h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-xs);
}

.quick-help p {
    color: var(--gray-700);
    margin-bottom: var(--space-md);
}

.quick-help .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-help .btn img {
    filter: brightness(0) invert(1);
}

/* FAQ Sections */
.faq-section {
    margin-bottom: var(--space-3xl);
}

.faq-section:last-child {
    margin-bottom: 0;
}

.faq-section .section-title {
    font-size: 1.75rem;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--gray-300);
}

/* FAQ Items */
.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.1);
}

.faq-question {
    width: 100%;
    padding: var(--space-lg);
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--gray-100);
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    padding-right: var(--space-md);
}

.faq-question svg {
    flex-shrink: 0;
    color: var(--gray-500);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--gray-50);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-answer > * {
    padding: var(--space-lg);
    margin: 0;
}

.faq-answer > *:first-child {
    padding-top: var(--space-xl);
}

.faq-answer > *:last-child {
    padding-bottom: var(--space-xl);
}

.faq-answer p {
    color: var(--gray-700);
    line-height: 1.8;
}

.faq-answer ul,
.faq-answer ol {
    margin-top: var(--space-sm);
    padding-left: var(--space-lg);
}

.faq-answer li {
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.faq-answer h4 {
    font-size: 1rem;
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
    color: var(--dark);
}

.process-list {
    counter-reset: process-counter;
}

.process-list li {
    counter-increment: process-counter;
    position: relative;
    padding-left: 2rem;
}

.process-list li::before {
    content: counter(process-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Search Highlight */
.search-highlight {
    background: rgba(0, 102, 255, 0.2);
    padding: 0.125rem 0.25rem;
    border-radius: 4px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: var(--space-3xl);
    color: var(--gray-700);
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

/* FAQ CTA Section */
.faq-cta-section {
    background: var(--gray-100);
    padding: var(--space-3xl) 0;
}

.faq-cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.faq-cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.faq-cta-content > p {
    font-size: 1.125rem;
    color: var(--gray-700);
    margin-bottom: var(--space-xl);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-xl);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    min-height: 220px;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.contact-card.whatsapp:hover {
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.2);
}

.contact-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-card.whatsapp .contact-icon {
    background: rgba(37, 211, 102, 0.1);
}

.contact-icon svg {
    color: var(--primary);
}

.contact-card h3 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--gray-900);
    white-space: nowrap;
}

.contact-card p {
    font-size: 1.125rem;
    color: var(--primary);
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.contact-schedule {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: auto;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 1024px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .faq-sidebar {
        display: none;
    }
    
    .faq-categories-nav {
        top: 60px;
    }
}

/* Mobile scroll indicator */
.categories-nav-container::after {
    content: '';
    display: none;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.categories-nav-container::after {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 18L15 12L9 6' stroke='%234A5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    animation: pulse 2s ease-in-out infinite;
}

.categories-nav-container.scrolled::after {
    display: none;
}

@keyframes pulse {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(3px);
    }
}

@media (max-width: 768px) {
    .nav-arrow {
        display: none;
    }
    
    .categories-nav-container {
        gap: 0;
    }
    
    .categories-nav-container::after {
        display: block;
    }
    
    .categories-wrapper {
        padding-right: 35px;
    }
    .faq-hero {
        padding: calc(80px + var(--space-xl)) 0 var(--space-lg);
    }
    
    .faq-hero .hero-title {
        font-size: 2rem;
    }
    
    .faq-hero .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .faq-stats {
        gap: var(--space-lg);
    }
    
    .faq-stats .stat-number {
        font-size: 2rem;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .faq-section .section-title {
        font-size: 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .faq-hero,
    .faq-categories-nav,
    .faq-sidebar,
    .faq-cta-section,
    .footer,
    .back-to-top,
    .whatsapp-support {
        display: none;
    }
    
    .faq-item {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .faq-item .faq-answer {
        max-height: none !important;
    }
}