/**
 * FAQcat - estilos alineados con el tema child_at_movic de rufinodiaz.com
 * Paleta: beige/taupe #D1CDC3, texto #414141, acento oliva #8CA757
 * Tipografia: ChronicleDisplayRoman (serif, titulos) + Poppins (sans, cuerpo)
 */
.faqcat-wrapper {
    margin: 3rem 0;
    font-family: 'Poppins', Arial, sans-serif;
    color: #414141;
}

.faqcat-heading {
    font-family: 'ChronicleDisplayRoman', 'Poppins', Georgia, serif;
    font-size: 1.875rem;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    margin: 0 0 2rem;
    color: #414141;
    letter-spacing: .02em;
    position: relative;
    padding-bottom: 1rem;
}

.faqcat-heading::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #D1CDC3;
}

.faqcat-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    border-top: 0;
}

.faqcat-item {
    border: 1px solid #ebebeb;
    border-radius: 6px;
    background: #fff;
    transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
    overflow: hidden;
}

.faqcat-item:hover {
    border-color: #d9d4c7;
}

.faqcat-item[open] {
    background-color: #faf9f6;
    border-color: #D1CDC3;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.faqcat-question {
    list-style: none;
    cursor: pointer;
    padding: 1.5rem 1.75rem;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1.0625rem;
    font-weight: 500;
    color: #414141;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    user-select: none;
    transition: color .2s ease;
    outline: none;
}

.faqcat-question:hover,
.faqcat-question:focus-visible {
    color: #8CA757;
}

.faqcat-question::-webkit-details-marker { display: none; }
.faqcat-question::marker { content: ''; }

.faqcat-q-text {
    flex: 1;
    text-align: left;
    text-transform: none;
    letter-spacing: .01em;
}
/* HTML inline en el titulo (estilo blog) */
.faqcat-q-text p { display: inline; margin: 0; }
.faqcat-q-text strong, .faqcat-q-text b { font-weight: 700; color: #2d2d2d; }
.faqcat-q-text em, .faqcat-q-text i { font-style: italic; }
.faqcat-q-text u { text-decoration: underline; }
.faqcat-q-text a {
    color: #8CA757;
    text-decoration: none;
    border-bottom: 1px solid #8CA757;
}
.faqcat-q-text a:hover { color: #5e7a2e; border-bottom-color: #5e7a2e; }
.faqcat-q-text br { display: none; } /* evitar saltos accidentales en el titulo */

/* Titulos <h2>-<h4> pegados dentro de la pregunta (editor estilo blog):
   heredan el tamano/peso de .faqcat-question en vez del h3 grande del tema */
.faqcat-q-text h2,
.faqcat-q-text h3,
.faqcat-q-text h4 {
    display: inline;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    letter-spacing: inherit;
    text-transform: none;
}

.faqcat-toggle {
    width: 16px;
    height: 16px;
    position: relative;
    flex-shrink: 0;
    color: #757167;
    transition: color .2s ease, transform .3s ease;
}

.faqcat-toggle::before,
.faqcat-toggle::after {
    content: '';
    position: absolute;
    background-color: currentColor;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1.5px;
    margin-top: -.75px;
    transition: transform .3s ease;
}

.faqcat-toggle::after {
    transform: rotate(90deg);
}

.faqcat-item[open] .faqcat-toggle {
    color: #8CA757;
}

.faqcat-item[open] .faqcat-toggle::after {
    transform: rotate(0deg);
}

.faqcat-answer {
    padding: 0 1.75rem 1.75rem;
    border-top: 1px solid #ece9e0;
    margin-top: 0;
}

.faqcat-answer-text {
    padding: 1.25rem 0 0;
    line-height: 1.75;
    font-size: .9375rem;
    color: #555;
    max-width: 100%;
}

.faqcat-answer-text p {
    margin: 0 0 1rem;
}
.faqcat-answer-text p:last-child { margin-bottom: 0; }

.faqcat-answer-text a {
    color: #8CA757;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}
.faqcat-answer-text a:hover {
    border-bottom-color: #8CA757;
}

.faqcat-answer-text ul,
.faqcat-answer-text ol {
    padding-left: 1.25rem;
    margin: 0 0 1rem;
}

.faqcat-answer-text strong { color: #414141; }

/* h2-h4 dentro de las respuestas: tamano contenido, jerarquia visual sin gigantismos */
.faqcat-answer-text h2,
.faqcat-answer-text h3,
.faqcat-answer-text h4 {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 1.25rem 0 .5rem;
    color: #414141;
}
.faqcat-answer-text h2:first-child,
.faqcat-answer-text h3:first-child,
.faqcat-answer-text h4:first-child { margin-top: 0; }

@media (max-width: 575px) {
    .faqcat-wrapper { margin: 2rem 0; }
    .faqcat-heading { font-size: 1.5rem; }
    .faqcat-question { font-size: .9375rem; padding: 1.15rem 1.15rem; gap: 1rem; }
    .faqcat-answer { padding: 0 1.15rem 1.15rem; }
    .faqcat-answer-text { font-size: .875rem; padding-top: 1rem; line-height: 1.65; }
}
