/* HERO */

section.hero::before,
section.hero::after {
    content: "";
    position: absolute;
    inset: -20%;
    pointer-events: none;
}

section.hero::before {
    background: radial-gradient(circle 25px at 10% 20%, var(--brand) 98%, transparent 100%) 0 0/300px 300px,
        radial-gradient(circle 30px at 70% 60%, var(--accent) 98%, transparent 100%) 0 0/250px 250px,
        radial-gradient(circle 45px at 40% 80%, var(--brand-2) 98%, transparent 100%) 0 0/280px 280px,
        radial-gradient(circle 55px at 50% 20%, var(--brand-3) 98%, transparent 100%) 0 0/290px 290px;
    opacity: 0.15;
    filter: blur(4px);
    background-repeat: repeat-x repeat-y;
    animation: circlesFall 12s linear infinite;
}

section.hero::after {
    background: radial-gradient(600px 380px at 70% -10%, rgba(255, 255, 255, 0.20), transparent 60%);
    filter: blur(2px);
    opacity: 0.35;
    animation: glowDrift 24s linear infinite alternate;
}

@keyframes circlesFall {
    0% {
        background-position: 0 0;
    }

    25% {
        background-position: 300px 600px, -250px 500px, -280px 280px, 40px 200px;
    }

    50% {
        background-position: 600px 1200px, -500px 1000px, 120px 420px, 100px 580px;
    }

    75% {
        background-position: 900px 1800px, -750px 1500px, 540px 540px, 200px 700px;
    }

    100% {
        background-position: 1200px 2400px, -1000px 2000px, 280px 280px, 290px 870px;
    }
}

@keyframes glowDrift {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(120px);
    }
}

section.hero * {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

section.hero {
    padding-bottom: 0;
}

.faq-title h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    color: var(--text);
}

.faq-title p {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* CONTENT */
.faq-posts {
    padding: clamp(60px, 8vw, 120px) 0;
    background: var(--surface-2);
    position: relative;
    overflow: hidden;
}

.faq-posts::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle 200px at 20% 30%, var(--brand) 0%, transparent 50%),
        radial-gradient(circle 150px at 80% 70%, var(--accent) 0%, transparent 50%);
    opacity: 0.05;
    pointer-events: none;
}

.faq-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 32px 24px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.faq-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-card:hover {
    transform: translateY(-8px);
    border-color: rgba(95, 225, 214, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(95, 225, 214, 0.1);
}

.faq-card:hover::before {
    opacity: 1;
}

.faq-left {
    margin-right: auto;
    margin-left: 0;
    max-width: 70%;
    /* Animación de entrada desde la izquierda */
    animation: faqSlideLeft 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-right {
    margin-left: auto;
    margin-right: 0;
    max-width: 70%;
    /* Animación de entrada desde la derecha */
    animation: faqSlideRight 1s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes faqSlideLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes faqSlideRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.faq-question {
    margin-bottom: 2rem;
    padding-top: 0;
}

.faq-question-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.faq-question-text {
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

.faq-question-text a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.faq-question-text a:hover {
    color: var(--accent);
}

.faq-question-text .valorarinmueble {
    background: linear-gradient(90deg, var(--brand), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

@media (max-width: 768px) {
    .faq-posts {
        padding: clamp(40px, 6vw, 60px) 0;
    }

    .faq-card {
        padding: 24px 20px;
        margin-bottom: 20px;
    }

    .faq-left,
    .faq-right {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .faq-question-title {
        font-size: 18px;
    }

    .faq-question-text {
        font-size: 14px;
    }
}