:root {
    --qa-primary: #1b6ef3;
    --qa-dark: #0d1b2a;
    --qa-bg-light: #f8fbff;
    --qa-card-bg: #ffffff;
    --qa-text-main: #333333;
    --qa-text-muted: #666666;
    --qa-answer-bg: #f0f7ff;
    --qa-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --qa-radius: 16px;
}

.qa-plugin-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    font-family: 'Poppins', sans-serif;
    color: var(--qa-text-main);
}

.qa-section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--qa-dark);
}

/* Search Bar */
.qa-search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px;
}

.qa-search-box {
    width: 100%;
    padding: 16px 50px 16px 25px;
    border: 2px solid #e1e8f0;
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--qa-shadow);
}

.qa-search-box:focus {
    outline: none;
    border-color: var(--qa-primary);
    box-shadow: 0 0 15px rgba(27, 110, 243, 0.2);
}

.qa-search-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--qa-primary);
    font-size: 18px;
}

/* Grid Layout 60/40 */
.qa-main-grid {
    display: grid;
    grid-template-columns: 6fr 4fr;
    gap: 40px;
    align-items: start;
    height: 480px;
    /* Reducido para ajustarse a 4 preguntas */
}

/* Questions Column */
.qa-questions-column {
    height: 100%;
    overflow: hidden;
}

.qa-scroll-container {
    height: 100%;
    overflow-y: auto;
    padding-right: 15px;
    scroll-snap-type: y mandatory;
    /* Habilita el "snapping" para posiciones fijas */
}

/* Custom Scrollbar */
.qa-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.qa-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.qa-scroll-container::-webkit-scrollbar-thumb {
    background: var(--qa-primary);
    border-radius: 10px;
}

/* FAQ Item Styles */
.qa-faq-item {
    background: var(--qa-card-bg);
    border-radius: var(--qa-radius);
    margin-bottom: 15px;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    overflow: hidden;
    scroll-snap-align: start;
    /* Alinea cada item al inicio al hacer scroll */
    min-height: 105px;
    /* Altura fija para mantener consistencia de 4 slots */
}

.qa-faq-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--qa-shadow);
    border-color: var(--qa-primary);
}

.qa-faq-toggle {
    display: none;
}

.qa-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    color: var(--qa-dark);
}

.qa-faq-question::after {
    font-family: "Font Awesome 6 Free";
    content: "\f078";
    font-weight: 900;
    font-size: 14px;
    color: var(--qa-primary);
    transition: transform 0.3s ease;
}

.qa-faq-toggle:checked+.qa-faq-question::after {
    transform: rotate(180deg);
}

.qa-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--qa-answer-bg);
}

.qa-faq-toggle:checked~.qa-faq-answer {
    max-height: 500px;
}

.qa-answer-content {
    padding: 20px 25px;
    line-height: 1.6;
    color: var(--qa-text-muted);
}

.qa-extra-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--qa-primary);
    text-decoration: underline;
    font-weight: 500;
}

/* Image Column */
.qa-image-column {
    height: 100%;
}

.qa-sticky-image {
    position: sticky;
    top: 20px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qa-side-img {
    width: 100%;
    height: auto;
    border-radius: var(--qa-radius);
    box-shadow: var(--qa-shadow);
    object-fit: cover;
    max-height: 100%;
}

/* Responsive */
/* Responsive */
@media (max-width: 992px) {
    .qa-plugin-wrapper {
        margin: 20px auto;
        padding: 0 15px;
    }

    .qa-section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .qa-search-wrapper {
        margin-bottom: 30px;
    }

    .qa-main-grid {
        grid-template-columns: 1fr;
        height: auto;
        gap: 30px;
    }

    /* Reverse order on mobile to show image first if desired, or keep logic. 
       Usually content first is better for FAQ. */
    .qa-questions-column {
        height: auto;
        order: 2;
        /* Validar preguntas al final? No, dejamos natural. */
    }

    .qa-scroll-container {
        height: auto;
        max-height: 500px;
        /* Allow scroll but don't force full height */
    }

    .qa-image-column {
        display: block;
        /* Show image */
        height: 250px;
        /* Fixed height for mobile image container */
        order: 1;
        /* Show image on top? Let's check user preference. Usually image sets context. */
        margin-bottom: 20px;
    }

    .qa-sticky-image {
        position: relative;
        /* No sticky on stack */
        top: 0;
    }

    .qa-side-img {
        max-height: 100%;
        width: auto;
        display: block;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .qa-section-title {
        font-size: 24px;
    }

    .qa-search-box {
        font-size: 14px;
        padding: 12px 40px 12px 20px;
    }

    .qa-faq-question {
        padding: 15px 20px;
        font-size: 16px;
    }

    .qa-image-column {
        height: 200px;
    }
}