/* FAQS */

.faqs {
    width: 100%;
    min-height: 100vh;
    padding: 140px 8% 100px;
    display: flex;
    flex-direction: column;
    gap: 72px;
    background: var(--bg);
}

.faqs-header {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

/* CATEGORÍA */

.faqs-div {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faqs-category {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 14px;
    letter-spacing: -0.5px;
}

.faqs-category::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 52px;
    height: 3px;
    border-radius: 999px;
    background: var(--accent);
}

/* FAQ CARD */

.faq-card {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.4rem 1.75rem;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: border-color .25s, box-shadow .25s;
}

.faq-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(6,235,212,0.08);
}

/* PREGUNTA */

.faqs-question {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.45;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 0;
}

.faqs-question::after {
    content: '▾';
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: transform 0.35s ease;
}

.faq-card.open .faqs-question::after {
    transform: rotate(180deg);
}

/* RESPUESTA */

.faqs-answer {
    font-size: 0.93rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.faq-card.open .faqs-answer {
    max-height: 400px;
    opacity: 1;
    margin-top: 0.9rem;
}

/* CTA FINAL */

.faqs-cta {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 3rem 2rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(6,235,212,0.04);
    text-align: center;
}

.faqs-cta p {
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
    .faqs {
        padding: 120px 6% 80px;
        gap: 56px;
    }

    .faqs-category {
        font-size: 1.6rem;
    }

    .faq-card {
        padding: 1.1rem 1.25rem;
        border-radius: 12px;
    }

    .faqs-question {
        font-size: 0.95rem;
    }

    .faqs-answer {
        font-size: 0.9rem;
        line-height: 1.65;
    }
}
