/**
 * FAQ — Fungiverse Crecienta
 * Acordeón de preguntas frecuentes con grupos temáticos.
 * Diseño premium dark.
 *
 * @package Fungiverse
 */

/* ═══════════════════════════════════════════════════════════
   WRAPPER + HERO
   ═══════════════════════════════════════════════════════════ */
.fv-faq {
    background: #111;
    color: #fafaf5;
}

.fv-faq__hero {
    position: relative;
    padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 5rem);
    background: #0a0a0a;
    text-align: center;
    overflow: hidden;
}

.fv-faq__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(232, 77, 68, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 80% 100%, rgba(232, 77, 68, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   HEADER (inside hero OR standalone)
   ═══════════════════════════════════════════════════════════ */
.fv-faq__header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    max-width: 700px;
    margin-inline: auto;
}

.fv-faq__eyebrow {
    display: inline-block;
    font-family: var(--fv-font-body, 'Inter', sans-serif);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--fv-red, #e84d44);
    margin-bottom: 1rem;
}

.fv-faq__title {
    font-family: var(--fv-font-heading, 'Cubano', sans-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin: 0 0 1rem;
    color: #fafaf5;
}

.fv-faq__subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    color: rgba(250, 250, 245, 0.6);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   CONTENT AREA
   ═══════════════════════════════════════════════════════════ */
.fv-faq__content {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

/* ═══════════════════════════════════════════════════════════
   GRUPOS TEMÁTICOS
   ═══════════════════════════════════════════════════════════ */
.fv-faq__groups {
    max-width: 800px;
    margin: 0 auto;
}

.fv-faq__group {
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.fv-faq__group:last-child {
    margin-bottom: 0;
}

.fv-faq__group-title {
    font-family: var(--fv-font-body, 'Inter', sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--fv-red, #e84d44);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fv-faq__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
}

/* ═══════════════════════════════════════════════════════════
   ITEMS — ACORDEÓN
   ═══════════════════════════════════════════════════════════ */
.fv-faq__item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.fv-faq__item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.fv-faq__item--open {
    border-color: rgba(232, 77, 68, 0.35);
    background: rgba(232, 77, 68, 0.04);
}

/* Question button */
.fv-faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--fv-font-body, 'Inter', sans-serif);
    font-size: clamp(0.9rem, 1vw, 1rem);
    font-weight: 600;
    color: #fafaf5;
    gap: 1rem;
    transition: color 0.2s ease;
}

.fv-faq__question:hover {
    color: var(--fv-red, #e84d44);
}

/* Chevron icon */
.fv-faq__icon {
    width: 20px;
    height: 20px;
    color: var(--fv-red, #e84d44);
    transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
    flex-shrink: 0;
}

.fv-faq__item--open .fv-faq__icon {
    transform: rotate(180deg);
}

/* Answer panel */
.fv-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.fv-faq__item--open .fv-faq__answer {
    max-height: 600px;
}

.fv-faq__answer-inner {
    padding: 0 1.5rem 1.5rem;
    color: rgba(250, 250, 245, 0.6);
    line-height: 1.7;
    font-size: 0.9rem;
}

.fv-faq__answer-inner p {
    margin: 0 0 0.75rem;
}

.fv-faq__answer-inner p:last-child {
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════════════ */
.fv-faq__cta {
    margin-top: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    max-width: 800px;
    margin-inline: auto;
}

.fv-faq__cta-text {
    font-size: 1.1rem;
    color: rgba(250, 250, 245, 0.7);
    margin: 0 0 1.25rem;
}

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

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 639px) {
    .fv-faq__question {
        padding: 1rem 1.25rem;
    }

    .fv-faq__answer-inner {
        padding: 0 1.25rem 1.25rem;
    }
}
