/* ── RESET Y BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #f8fafd; /* Fondo sutilmente azulado */
    color: #1a1a18;
    font-family: 'DM Sans', sans-serif;
}

/* ── CONTENEDOR DE PÁGINA ── */
.faq-container-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

.faq-page-title {
    font-family: 'DM Serif Display', serif;
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    color: #1a1a18;
    text-align: center;
}

.faq-container {
    width: 100%;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(24,95,165,0.2);
    box-shadow: 0 4px 20px rgba(8,43,146,0.06);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1.05rem;
    color: #1a1a18;
    transition: color 0.2s ease;
}

.faq-item.active .faq-question {
    color: #185FA5;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-content {
    padding: 0 24px 24px;
    color: #6b6b67;
    line-height: 1.7;
}

.arrow {
    font-style: normal;
    font-size: 0.8rem;
    color: #aaa;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Suficiente para el contenido */
    opacity: 1;
    visibility: visible;
}

.faq-item.active .arrow {
    transform: rotate(180deg);
    color: #185FA5;
}