/* ===================================================
   FAQS PAGE — css/faqs.css
   Página: Preguntas Frecuentes
   =================================================== */

.faqs-section {
    padding: 70px 0 35px;
    background-color: var(--bg-white);
}

.faqs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.faqs-accordion {
    width: 100%;
}

.accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.accordion-item:first-child {
    border-top: 1px solid #e0e0e0;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 22px 0;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.accordion-header .chevron {
    flex-shrink: 0;
    transition: transform 0.3s ease, stroke 0.3s ease;
    stroke: #000;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out, visibility 0.4s ease-out;
}

.accordion-content p {
    padding-bottom: 22px;
    color: #444;
    font-size: 15px;
    line-height: 1.6;
}

/* Active State */
.accordion-item.active .accordion-header {
    color: var(--primary-green);
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    opacity: 1;
    visibility: visible;
}

.accordion-item.active .accordion-header .chevron {
    transform: rotate(180deg);
    stroke: var(--primary-green);
}

.faqs-image {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    /* Sticky effect could be cool here */
    position: sticky;
    top: 120px;
}

.faqs-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
    .faqs-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .faqs-image {
        position: static;
        order: -1; /* Move image to top on mobile */
    }
}

@media (max-width: 480px) {
    .accordion-header {
        font-size: 15px;
        padding: 18px 0;
    }
}
