:root {
    --faq-transition: all 0.3s ease;
}

#faq-section {
    background-color: var(--wp--preset--color--secondary);
    position: relative;
    overflow: hidden;

    /* Dot grid — evoca una estructura de datos/preguntas */
    &::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(circle,
                color-mix(in srgb, var(--wp--preset--color--primary) 28%, transparent) 1px,
                transparent 1px);
        background-size: 28px 28px;
        mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
        pointer-events: none;
        z-index: 0;
    }
}

.faq-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 2;
    /* Elevated to remain above background grid */
}


/* --- Left Column --- */

.faq-main-title {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 700;
    color: var(--wp--preset--color--contrast);
    margin-bottom: 48px;
    letter-spacing: -0.03em;
}

.faq-cta-card {
    background: var(--wp--preset--color--base);
    padding: 2rem;
    box-shadow: var(--wp--preset--shadow--post-shadow-light);
    position: relative;
    z-index: 1;
}

.faq-cta-avatar-wrapper {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.faq-cta-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faq-cta-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--wp--preset--color--contrast);
    letter-spacing: -0.01em;
}

.faq-cta-desc {
    color: var(--faq-text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
    font-size: 0.95rem;
}

/* --- Right Column Accordion --- */

.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion-item {
    background: var(--wp--preset--color--tertiary);
    border: 1px solid rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: var(--faq-transition);
    box-shadow: var(--wp--preset--shadow--post-shadow-light);
    transition: box-shadow 0.3s ease, background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.accordion-item:hover {
    background: var(--wp--preset--color--base);
    box-shadow: var(--wp--preset--shadow--post-shadow-light-hover);
}

.accordion-item.active {
    background: var(--wp--preset--color--base);
    box-shadow: var(--wp--preset--shadow--post-shadow-light-hover);
    border-color: transparent;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    background: none;
    border: none;
    padding: 24px 32px;
    cursor: pointer;
    outline: none;
}

.accordion-question {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--wp--preset--color--contrast);
    font-family: var(--wp--preset--font-family--manrope);
    flex: 1;
    padding-right: 20px;
    transition: color 0.3s ease;
}

.accordion-item.active .accordion-question {
    color: var(--wp--preset--color--contrast);
    /* Keeps same as mock */
}

.accordion-icon {
    font-size: 1.75rem;
    line-height: 1;
    font-weight: 300;
    color: var(--wp--preset--color--contrast);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s linear;
}

.accordion-inner {
    padding: 0 32px 32px 32px;
    color: var(--wp--preset-color--contrast);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 90%;
}

/* --- Responsive Styles --- */

@media (max-width: 1024px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .faq-column-info {
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
    }

    .faq-pretext {
        justify-content: center;
    }

    .faq-cta-card {
        text-align: left;
    }

    .faq-cta-avatar-wrapper {
        margin-left: auto;
        margin-right: auto;
    }

    .faq-cta-card {
        text-align: center;
    }
}

@media (max-width: 768px) {
    #faq-section {
        padding: 60px 0;
    }

    .faq-main-title {
        font-size: 2.2rem;
        margin-bottom: 32px;
    }

    .accordion-header {
        padding: 20px 24px;
    }

    .accordion-inner {
        padding: 0 24px 24px 24px;
    }

    .accordion-question {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   FAQ SECTION — BACKGROUND ELEMENTS
   ========================================================================== */

.faq-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;

    /* Marca de agua: "?" como referencia temática */
    &::before {
        content: '?';
        position: absolute;
        right: -2rem;
        top: 50%;
        transform: translateY(-55%);
        font-size: clamp(18rem, 28vw, 32rem);
        font-weight: 900;
        line-height: 1;
        color: transparent;
        -webkit-text-stroke: 1px color-mix(in srgb, var(--wp--preset--color--primary) 8%, transparent);
        letter-spacing: -0.05em;
        user-select: none;
    }

    /* Línea de acento superior */
    &::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(to right,
                transparent 0%,
                color-mix(in srgb, var(--wp--preset--color--primary) 50%, transparent) 30%,
                color-mix(in srgb, var(--wp--preset--color--focus) 40%, transparent) 70%,
                transparent 100%);
    }
}

/* Halos de profundidad — dan dimensión sin distraer */
.faq-bg__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.faq-bg__glow--tl {
    width: 460px;
    height: 460px;
    top: -140px;
    left: -80px;
    background: color-mix(in srgb, var(--wp--preset--color--primary) 10%, transparent);
}

.faq-bg__glow--br {
    width: 380px;
    height: 380px;
    bottom: -120px;
    right: -60px;
    background: color-mix(in srgb, var(--wp--preset--color--focus) 8%, transparent);
}

/* Clusters de puntos — refuerzan la cuadrícula base */
.faq-bg__dots {
    position: absolute;
    width: 180px;
    height: 240px;
    background-image: radial-gradient(circle,
            color-mix(in srgb, var(--wp--preset--color--primary) 30%, transparent) 1.5px,
            transparent 1.5px);
    background-size: 18px 18px;
}

.faq-bg__dots--left {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    opacity: 0.35;
    mask-image: linear-gradient(to right, black 0%, transparent 100%);
}

.faq-bg__dots--right {
    bottom: 2rem;
    right: 0;
    opacity: 0.2;
    mask-image: linear-gradient(to left, black 0%, transparent 100%);
}

/* Scanline → línea separadora editorial en la base del header */
.faq-bg__scanline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: color-mix(in srgb, var(--wp--preset--color--line) 40%, transparent);
}

/* Corners → ocultos (no aplican a FAQ) */
.faq-bg__corner {
    display: none;
}