/* ==========================================================================
   PAGE: TEST PSICOLÓGICOS
   Descripció: Pàgina de test psicològics amb grid de targetes i FAQ
   ========================================================================= */

/* ═══════════════════════════════════════════════════════
   1. HERO SECTION
   ═══════════════════════════════════════════════════════ */

.test-hero {
    background: linear-gradient(135deg, var(--color-cream, #faf8f5) 0%, var(--color-beige, #f9f8f4) 100%);
    padding: 8rem 2rem 6rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.test-hero__inner {
    max-width: 800px;
    margin: 0 auto;
}

.test-hero__overline {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent, #e87d52);
    display: block;
    margin-bottom: 1.5rem;
}

.test-hero__title {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--color-black-soft, #1a1a1a);
    line-height: 1.1;
    margin: 0 0 2rem;
    letter-spacing: -0.02em;
}

.test-hero__divider {
    width: 60px;
    height: 3px;
    background-color: var(--color-accent, #e87d52);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

.test-hero__intro {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-grey-muted, #555);
    margin: 0 0 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.test-hero__disclaimer {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-dark-grey, #333);
    margin: 0;
    padding: 1.5rem;
    background-color: rgba(232, 125, 82, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--color-accent, #e87d52);
}

/* ═══════════════════════════════════════════════════════
   2. TEST GRID
   ═══════════════════════════════════════════════════════ */

.test-grid {
    padding: 6rem 2rem;
    background-color: var(--color-white, #fff);
}

.test-grid__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* ═══════════════════════════════════════════════════════
   3. TEST CARDS
   ═══════════════════════════════════════════════════════ */

.test-card {
    background-color: var(--color-white, #fff);
    border-radius: 16px;
    box-shadow: var(--shadow-card, 0 2px 10px rgba(0, 0, 0, 0.05));
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.test-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover, 0 15px 40px rgba(186, 120, 107, 0.12));
}

.test-card__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--color-beige, #f9f8f4);
}

.test-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.test-card:hover .test-card__image img {
    transform: scale(1.05);
}

.test-card__content {
    padding: 2rem;
}

.test-card__title {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-black-soft, #1a1a1a);
    margin: 0 0 1rem;
    line-height: 1.3;
}

.test-card__meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.test-card__duration,
.test-card__questions {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-accent, #e87d52);
    background-color: rgba(232, 125, 82, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
}

.test-card__description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-grey-muted, #555);
    margin: 0 0 1.5rem;
}

.test-card__link {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent, #e87d52);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--color-accent, #e87d52);
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.test-card__link:hover {
    background-color: var(--color-accent, #e87d52);
    color: var(--color-white, #fff);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════
   4. FAQ SECTION
   ═══════════════════════════════════════════════════════ */

.test-faq {
    padding: 6rem 2rem;
    background-color: var(--color-cream, #faf8f5);
}

.test-faq__title {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--color-black-soft, #1a1a1a);
    text-align: center;
    margin: 0 0 3rem;
}

.test-faq__grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.faq-item {
    background-color: var(--color-white, #fff);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-card, 0 2px 10px rgba(0, 0, 0, 0.05));
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.faq-item__question {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-black-soft, #1a1a1a);
    margin: 0 0 1rem;
    line-height: 1.4;
}

.faq-item__answer {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-grey-muted, #555);
    margin: 0;
}

/* ═══════════════════════════════════════════════════════
   5. CTA SECTION
   ═══════════════════════════════════════════════════════ */

.test-cta {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--color-terracotta, #e87d52) 0%, var(--color-terracotta-light, #f0b357) 100%);
    color: var(--color-white, #fff);
    text-align: center;
}

.test-cta__inner {
    max-width: 600px;
    margin: 0 auto;
}

.test-cta__title {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 600;
    margin: 0 0 1rem;
    line-height: 1.3;
}

.test-cta__text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 2rem;
    opacity: 0.95;
}

.test-cta__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn--primary {
    background-color: var(--color-white, #fff);
    color: var(--color-accent, #e87d52);
}

.btn--primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-white, #fff);
    border-color: var(--color-white, #fff);
}

.btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .test-hero {
        padding: 6rem 1rem 4rem;
    }

    .test-hero__title {
        font-size: 2.2rem;
    }

    .test-grid {
        padding: 4rem 1rem;
    }

    .test-grid__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .test-card__content {
        padding: 1.5rem;
    }

    .test-faq {
        padding: 4rem 1rem;
    }

    .test-faq__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .test-cta {
        padding: 4rem 1rem;
    }

    .test-cta__buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .test-hero__title {
        font-size: 1.8rem;
    }

    .test-card__meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .test-card__title {
        font-size: 1.2rem;
    }
}