/* ============================================================
   WPBakery FAQ Schema — Estilos del acordeón
   Compatible con el diseño de plazatorosmallorca.com
   ============================================================ */

.wbfs-faq-block {
    margin: 2em 0;
    font-family: inherit;
}

.wbfs-faq-titulo {
    margin-bottom: 1.2em;
    font-size: 1.6em;
    font-weight: 700;
    color: inherit;
}

/* Lista de items */
.wbfs-faq-lista {
    border-top: 2px solid #f07800; /* naranja */
}

/* Item individual */
.wbfs-faq-item {
    border-bottom: 1px solid #e0e0e0;
}

/* Botón pregunta */
.wbfs-faq-pregunta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.1em 0.5em;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1.05em;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.wbfs-faq-pregunta:hover,
.wbfs-faq-pregunta:focus {
    color: #f07800;
    outline: none;
}

.wbfs-faq-pregunta[aria-expanded="true"] {
    color: #f07800;
}

/* Icono +/- */
.wbfs-faq-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-left: 1em;
    position: relative;
    border: 2px solid #f07800;
    border-radius: 50%;
}

.wbfs-faq-icon::before,
.wbfs-faq-icon::after {
    content: '';
    position: absolute;
    background: #f07800;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Línea horizontal */
.wbfs-faq-icon::before {
    width: 10px;
    height: 2px;
}

/* Línea vertical (se oculta cuando está abierto) */
.wbfs-faq-icon::after {
    width: 2px;
    height: 10px;
}

.wbfs-faq-pregunta[aria-expanded="true"] .wbfs-faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

/* Respuesta */
.wbfs-faq-respuesta {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 0.5em;
}

.wbfs-faq-respuesta:not([hidden]) {
    max-height: 600px;
    padding: 0 0.5em 1.2em;
}

/* Quitar el hidden nativo y usar JS */
.wbfs-faq-respuesta[hidden] {
    display: block !important; /* override hidden para la animación CSS */
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}

.wbfs-faq-respuesta p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .wbfs-faq-pregunta {
        font-size: 0.98em;
        padding: 1em 0.25em;
    }
}
