/* =========================================
   Estilos Generales del Plugin SP FAQs
   ========================================= */

/* --- Buscador --- */
.faq-busqueda-wrapper {
    margin-bottom: 20px;
}

#faq-busqueda {
    width: 100%;
    padding: 12px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 30px;
    box-sizing: border-box;
}

/* --- Grupos de Temas --- */
.faq-tema-grupo {
    margin-bottom: 20px;
}

.faq-tema-header {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 16px;
    line-height: 20px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #1f1f27;
    color: #FCC026;
    border-radius: 8px;
}

/* --- Contenedor Principal Acordeón --- */
.faqs-acordeon {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 4px;
    overflow: hidden;
}

/* Estilos específicos para la versión Home */
.faqs-acordeon.home-acordeon {
    border: 0 0 2px 0 solid #ddd;
}

.faq-item {
    border-bottom: 1px solid #1f1f27;
}

.faq-item + .faq-item {
    border-top: 1px solid #ddd;
}

.faq-tema-grupo .faq-item + .faq-item {
    border-top: none;
}

.faqs-acordeon.home-acordeon .faq-item:last-child {
    margin-bottom: 0;
}

/* --- Cabecera del Item (Pregunta) --- */
.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    font-family: 'Merriweather', serif;
    font-size: 23px;
    font-weight: 700;
    line-height: 33px;
    color: rgb(31, 33, 36);
    background: #fff;
    transition: background 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.faq-header:hover {
    background: #f9f9f9;
}

.faq-title {
    flex: 1;
}

/* --- Icono --- */
.faq-icon {
    width: 24px;
    height: 24px;
    margin-left: 10px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* Icono más grande en Home */
.faqs-acordeon.home-acordeon .faq-icon {
    width: 30px;
    height: 30px;
}

/* --- Contenido (Respuesta) --- */
.faq-content {
    width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
    color: rgb(5, 11, 32);
    background: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faqs-acordeon.home-acordeon .faq-content {
    line-height: 24px !important;
}

.faq-item.open .faq-content {
    padding-top: 15px;
    padding-bottom: 15px;
}

/* --- Responsive --- */
@media screen and (max-width: 768px) {
    .faq-header {
        font-size: 18px;
        line-height: 24px;
        padding: 12px;
    }

    .faq-icon {
        width: 24px;
        height: 24px;
    }

    .faq-content {
        font-size: 12px;
        line-height: 24px;
    }
}
