/* =========================================================
   RUM · SECCIÓN 3
   PREGUNTAS FRECUENTES
   ========================================================= */

.rum-final-s3 {
    --rum-primary: #2C306C;
    --rum-secondary: #CEEBEE;
    --rum-accent: #00A7E1;
    --rum-text-soft: #5E6270;
    --rum-border: #DDE1E8;

    width: 100%;
    margin: 0;
    padding: 72px 0;
    background: #FFFFFF;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    box-sizing: border-box;
    border-radius: 18px;
    overflow: hidden;
}

.rum-final-s3 *,
.rum-final-s3 *::before,
.rum-final-s3 *::after {
    box-sizing: border-box;
}

.rum-final-s3__container {
    width: min(calc(100% - 40px), 1180px);
    margin: 0 auto;
}

/* =========================================================
   ENCABEZADO
   ========================================================= */

.rum-final-s3__header {
    max-width: 820px;
    margin: 0 auto 34px;
    text-align: center;
}

.rum-final-s3__heading {
    margin: 0;
    color: var(--rum-primary);
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 730;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.rum-final-s3__lead {
    margin: 16px 0 0;
    color: var(--rum-text-soft);
    font-size: 1.03rem;
    line-height: 1.78;
}

/* =========================================================
   LISTADO DE PREGUNTAS
   ========================================================= */

.rum-final-s3__faq {
    display: grid;
    gap: 11px;
    max-width: 980px;
    margin: 0 auto;
}

.rum-final-s3__item {
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--rum-border);
    background: #FFFFFF;
    border-radius: 12px;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.rum-final-s3__item:hover {
    border-color: rgba(44, 48, 108, 0.24);
}

.rum-final-s3__item[open] {
    border-color: rgba(44, 48, 108, 0.32);
    box-shadow: 0 7px 20px rgba(44, 48, 108, 0.06);
}

/* =========================================================
   PREGUNTA
   ========================================================= */

.rum-final-s3__question {
    position: relative;
    display: block;
    margin: 0;
    padding: 16px 56px 16px 18px;
    color: var(--rum-primary);
    background: #FFFFFF;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    list-style: none;
}

.rum-final-s3__question::-webkit-details-marker {
    display: none;
}

.rum-final-s3__question::after {
    position: absolute;
    top: 50%;
    right: 17px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: var(--rum-primary);
    background: var(--rum-secondary);
    border-radius: 50%;
    content: "+";
    font-size: 1.18rem;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-50%);
}

.rum-final-s3__item[open] .rum-final-s3__question::after {
    content: "−";
}

.rum-final-s3__question:focus-visible {
    outline: 3px solid rgba(0, 167, 225, 0.28);
    outline-offset: -4px;
}

/* =========================================================
   RESPUESTA
   ========================================================= */

.rum-final-s3__answer {
    padding: 0 18px 17px;
    color: var(--rum-text-soft);
}

.rum-final-s3__answer p {
    margin: 0;
    line-height: 1.75;
}

.rum-final-s3__answer a {
    color: var(--rum-primary);
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 600px) {
    .rum-final-s3 {
        padding: 54px 0;
    }

    .rum-final-s3__container {
        width: min(calc(100% - 28px), 1180px);
    }

    .rum-final-s3__header {
        margin-bottom: 28px;
    }

    .rum-final-s3__question {
        padding: 15px 52px 15px 16px;
    }

    .rum-final-s3__question::after {
        right: 15px;
        width: 27px;
        height: 27px;
    }

    .rum-final-s3__answer {
        padding: 0 16px 16px;
    }
}

/* =========================================================
   REDUCCIÓN DE MOVIMIENTO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .rum-final-s3__item {
        transition: none;
    }
}