/* ============================================
   FORDEMA — FAQ / Preguntas Frecuentes
   Acordeón con transición max-height, icono +/−
   ============================================ */

/* Hero */
.faq-hero {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    background-color: #1a2d42;
}

.faq-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.faq-hero .hero-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.faq-hero .video-overlay {
    z-index: 1;
}

.faq-hero .hero-content {
    position: relative;
    z-index: 2;
}

.faq-hero h2 {
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 2.2em;
    font-weight: 300;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.faq-hero p {
    font-size: 1.05em;
    font-weight: 300;
    color: #ddd;
}

/* FAQ Section */
.faq-section {
    padding: 60px 5%;
    background-color: #f5f5f5;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-section-title {
    text-align: center;
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 2em;
    font-weight: 300;
    color: #3b6fa0;
    margin-bottom: 40px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Accordion Item */
.faq-item {
    background: #fff;
    margin-bottom: 8px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: hidden;
    border-left: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.faq-item.active {
    border-left-color: #a8c528;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border: none;
    background: #fff;
    cursor: pointer;
    text-align: left;
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 1em;
    font-weight: 600;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.faq-question:hover {
    background-color: #fafafa;
}

.faq-item.active .faq-question {
    color: #3b6fa0;
    background-color: #fafafa;
}

.faq-icon {
    font-size: 1.4em;
    font-weight: 300;
    color: #a8c528;
    flex-shrink: 0;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer-inner {
    padding: 0 25px 20px;
    font-size: 0.93em;
    line-height: 1.8;
    color: #666;
}

.faq-answer-inner p {
    margin: 0;
}

/* CTA after FAQ */
.faq-cta {
    text-align: center;
    padding: 50px 20px;
    background-color: #f5f5f5;
}

.faq-cta p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
}

.faq-cta a {
    display: inline-block;
    padding: 14px 40px;
    background-color: #ecb94a;
    border: none;
    border-radius: 2px;
    color: #fff;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 700;
    font-family: 'Raleway', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.faq-cta a:hover {
    background-color: #d4a53e;
}

/* Responsive — Mobile */
@media (max-width: 768px) {
    .faq-hero h2 {
        font-size: 1.4em;
    }

    .faq-section {
        padding: 40px 20px;
    }

    .faq-question {
        padding: 16px 18px;
        font-size: 0.93em;
    }

    .faq-answer-inner {
        padding: 0 18px 16px;
    }
}
