/* Todo el ancho, como las secciones de arriba; en computadora, dos columnas. */
.faq-list {
    display: grid;
    gap: 12px;
}

@media (min-width: 992px) {
    .faq-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 12px 20px;
    }
}

.faq-item {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #ffffff;
}

.faq-item[open] {
    border-color: #c8272f;
    box-shadow: 0 6px 18px rgba(23, 23, 23, .06);
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 14px 20px;
    color: #171717;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
}

.faq-item__question::-webkit-details-marker {
    display: none;
}

.faq-item__question::after {
    content: "+";
    flex: 0 0 28px;
    height: 28px;
    border-radius: 50%;
    background: #f7f7f7;
    color: #c8272f;
    font-size: 2rem;
    line-height: 28px;
    text-align: center;
}

.faq-item[open] .faq-item__question::after {
    content: "\2212";
    background: #c8272f;
    color: #ffffff;
}

.faq-item__question:focus-visible {
    outline: 3px solid #f8ca48;
    outline-offset: 2px;
    border-radius: 10px;
}

.faq-item__answer {
    padding: 0 20px 18px;
    color: #5e6070;
    font-size: 1.5rem;
    line-height: 1.7;
}

.faq-item__answer p {
    margin: 0;
}

.faq-item__link {
    display: inline-block;
    margin-top: 10px;
    color: #c8272f;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 575px) {
    .faq-item__question {
        padding: 12px 16px;
        font-size: 1.5rem;
    }

    .faq-item__answer {
        padding: 0 16px 16px;
        font-size: 1.4rem;
    }
}

/* El encabezado fijo no tapa el título al llegar desde el enlace del pie de página. */
#faq-title {
    scroll-margin-top: 175px;
}
