/* ==========================================================================
   FAQ PAGE V2 - CLEAN, MODERN, REUTILIZABLE
   Hero blanco minimalista + FAQs limpios + Grid perfecto
   ========================================================================== */

:root {
    --faq-primary: #FF914D;
    --faq-secondary: #1746FF;
    --faq-text-dark: #2d3436;
    --faq-text-light: #636e72;
    --faq-border: #e0e0e0;
    --faq-bg-light: #f8f9fa;
    --faq-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --faq-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --faq-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --faq-radius: 16px;
    --faq-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-page {
    background: #ffffff;
    min-height: 100vh;
    /* No padding-top - el body global de 120px ya aplica */
}

/* ==========================================================================
   HERO SECTION - Limpio y Profesional (matching Pricing)
   ========================================================================== */

.faq-hero-white {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 100px 0 60px 0;
    text-align: center;
    overflow: hidden;
}

/* Hero Content */
.hero-content-white {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 145, 77, 0.08);
    border: 1px solid rgba(255, 145, 77, 0.2);
    border-radius: 50px;
    color: var(--faq-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    transition: var(--faq-transition);
}

.hero-badge:hover {
    background: rgba(255, 145, 77, 0.12);
    border-color: rgba(255, 145, 77, 0.3);
    transform: translateY(-2px);
}

.hero-badge svg {
    flex-shrink: 0;
}

.hero-content-white h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--faq-text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--faq-text-light);
    margin-bottom: 0; /* Sin margen porque no hay search box */
    line-height: 1.6;
}

/* ==========================================================================
   FAQ CONTENT V2 - Grid System
   ========================================================================== */

.faq-content-v2 {
    padding: 80px 0;
    background: #ffffff;
}

/* FAQ Grid - 2 Columns on Desktop */
.faq-grid-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* SOLUCIÓN AL OVERFLOW */
.faq-category-section {
    grid-column: span 1;
    min-width: 0; /* CRÍTICO para evitar overflow */
}

/* Category Title */
.category-title-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--faq-text-dark);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--faq-primary);
}

.category-emoji {
    font-size: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(255, 145, 77, 0.08), rgba(255, 145, 77, 0.15));
    border-radius: 12px;
}

/* FAQ List */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* FAQ Item V2 - Clean & Modern */
.faq-item-v2 {
    background: #ffffff;
    border: 2px solid var(--faq-border);
    border-radius: var(--faq-radius);
    overflow: hidden;
    transition: var(--faq-transition);
}

.faq-item-v2:hover {
    border-color: rgba(255, 145, 77, 0.4);
    box-shadow: var(--faq-shadow-md);
    transform: translateX(4px);
}

.faq-item-v2.active {
    border-color: var(--faq-primary);
    box-shadow: 0 6px 24px rgba(255, 145, 77, 0.2);
}

/* FAQ Question */
.faq-question-v2 {
    width: 100%;
    padding: 24px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--faq-text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: var(--faq-transition);
    font-family: inherit;
}

.question-text {
    flex: 1;
    line-height: 1.5;
}

/* Toggle Icon - Plus/Minus */
.toggle-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 145, 77, 0.1);
    border-radius: 50%;
    transition: var(--faq-transition);
}

.toggle-icon svg {
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: var(--faq-primary);
}

/* Estado activo */
.faq-item-v2.active .toggle-icon {
    background: var(--faq-primary);
}

.faq-item-v2.active .toggle-icon svg {
    transform: rotate(45deg);
    color: #ffffff;
}

/* Hover states */
.faq-question-v2:hover {
    background: linear-gradient(90deg, rgba(255, 145, 77, 0.03), transparent);
}

.faq-item-v2.active .faq-question-v2 {
    background: linear-gradient(90deg, rgba(255, 145, 77, 0.08), transparent);
    color: var(--faq-primary);
}

/* FAQ Answer */
.faq-answer-v2 {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item-v2.active .faq-answer-v2 {
    max-height: 1000px;
}

.answer-content {
    padding: 0 24px 24px;
    border-top: 1px solid rgba(255, 145, 77, 0.15);
}

.answer-content p {
    margin: 16px 0 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--faq-text-light);
}

.answer-content ul {
    margin: 12px 0;
    padding-left: 24px;
}

.answer-content li {
    margin-bottom: 8px;
    color: var(--faq-text-light);
    line-height: 1.6;
}

.answer-content a {
    color: var(--faq-primary);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.answer-content a:hover {
    color: var(--faq-secondary);
}

/* ==========================================================================
   RESPONSIVE - Mobile First
   ========================================================================== */

/* Tablet (992px and below) */
@media (max-width: 992px) {
    .faq-hero-white {
        padding: 80px 0 50px;
    }

    .hero-content-white h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* Grid → 1 columna en tablet */
    .faq-grid-v2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .category-title-v2 {
        font-size: 1.5rem;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .faq-hero-white {
        padding: 105px 20px 40px; /* Aumentado padding top para mobile */
    }

    .hero-content-white h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0; /* Sin search box */
    }

    .faq-grid-v2 {
        gap: 32px;
    }

    .category-title-v2 {
        font-size: 1.35rem;
        gap: 10px;
    }

    .category-emoji {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .faq-question-v2 {
        padding: 20px;
        font-size: 1rem;
    }

    .toggle-icon {
        width: 28px;
        height: 28px;
    }

    .answer-content {
        padding: 0 20px 20px;
    }

    .answer-content p {
        font-size: 0.95rem;
    }
}

/* Small mobile (480px and below) */
@media (max-width: 480px) {
    .hero-content-white h1 {
        font-size: 1.75rem;
    }

    .hero-badge {
        font-size: 13px;
        padding: 6px 16px;
    }

    .faq-question-v2 {
        padding: 16px;
        font-size: 0.95rem;
    }

    .answer-content p {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   FAQ ITEM STYLE (Simple Format - Used in Pricing & Other Pages)
   ========================================================================== */

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    border: 1px solid #ff914d;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: white;
    color: #000;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #ff914d !important;
    color: white;
}

.faq-question:active,
.faq-question:focus {
    background: #ff914d !important;
    color: white;
}

.faq-toggle {
    font-size: 1.5rem;
    transition: all 0.3s ease;
    color: #ff914d;
}

.faq-question:hover .faq-toggle,
.faq-question:active .faq-toggle,
.faq-question:focus .faq-toggle {
    color: white;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p {
    margin: 0;
    color: var(--faq-text-dark);
    line-height: 1.6;
}

/* ==========================================================================
   FAQ CONTACT SECTION & CTA BUTTONS
   ========================================================================== */

.faq-contact {
    background: linear-gradient(135deg, #121E35 0%, #1a2847 100%);
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.faq-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.faq-contact .contact-card {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.faq-contact .contact-content {
    text-align: center;
}

.faq-contact .contact-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.2;
}

.faq-contact .contact-content > p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 50px;
    line-height: 1.6;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.contact-method {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 145, 77, 0.5);
    transform: translateY(-5px);
}

.contact-method .method-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.contact-method .method-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: white;
}

.contact-method .method-info p {
    font-size: 1.05rem;
    font-weight: 600;
    color: #FF914D;
    margin: 0 0 6px;
}

.contact-method .method-info span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* CTA Buttons Container */
.contact-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-cta .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-cta .cta-text {
    color: inherit;
}

.contact-cta .cta-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.contact-cta .cta-btn:hover .cta-icon {
    transform: translateX(5px);
}

.contact-cta .cta-btn-primary {
    background: #FF914D;
    color: white;
    border-color: #FF914D;
}

.contact-cta .cta-btn-primary:hover {
    background: #ff7a2e;
    border-color: #ff7a2e;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 145, 77, 0.4);
}

.contact-cta .cta-btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.contact-cta .cta-btn-secondary:hover {
    background: white;
    color: #121E35;
    transform: translateY(-2px);
}

.contact-cta .cta-price {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 3px;
}

/* ==========================================================================
   FAQ CONTACT - RESPONSIVE
   ========================================================================== */

@media (max-width: 992px) {
    .faq-contact {
        padding: 60px 0;
    }

    .faq-contact .contact-content h2 {
        font-size: 2.2rem;
    }

    .contact-methods {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .faq-contact {
        padding: 50px 0;
    }

    .faq-contact .contact-content h2 {
        font-size: 1.9rem;
    }

    .faq-contact .contact-content > p {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }

    .contact-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .contact-cta .cta-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 32px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .faq-contact {
        padding: 40px 0;
    }

    .faq-contact .contact-content h2 {
        font-size: 1.7rem;
    }

    .faq-contact .contact-content > p {
        font-size: 1rem;
    }

    .contact-method {
        padding: 25px 15px;
    }

    .contact-method .method-icon {
        font-size: 2rem;
    }

    .contact-method .method-info h3 {
        font-size: 1.1rem;
    }

    .contact-cta .cta-btn {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
}
