/**
 * FAQ Manager - Estilos
 */

.faq-container {
    max-width: 1140px;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* Item del FAQ */
.faq-item {
    background: #ffffff;
}

/* Botón de pregunta */
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 30px;
    background: transparent;
    border: none !important;
    border-bottom: 1px solid #635752;
    border-radius: 0px !important;
    cursor: pointer;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #635752;
    transition: opacity 0.2s ease;
    gap: 20px;
}

.faq-question:hover, .faq-question:focus {
    opacity: 0.8;
    background-color: transparent !important;
}

.faq-question[aria-expanded="true"] {
    background: transparent;
}

.faq-question-text {
    flex: 1;
    line-height: 1.5;
}

/* Icono + / − */
.faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #635752;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    margin-top: -2px;
}

/* Respuesta */
.faq-answer {
    overflow: hidden;
}

.faq-answer[hidden] {
    display: none;
}

.faq-answer-content {
    padding: 20px 30px 25px 30px;
    color: #635752;
    line-height: 1.7;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.faq-answer-content p {
    margin: 0 0 12px 0;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content ul,
.faq-answer-content ol {
    margin: 10px 0;
    padding-left: 25px;
}

.faq-answer-content li {
    margin: 5px 0;
}

.faq-answer-content a {
    color: #635752;
    text-decoration: underline;
    word-break: break-all;
}

.faq-answer-content a:hover {
    opacity: 0.7;
}

.faq-answer-content strong {
    font-weight: 600;
}

/* Mensaje de error */
.faq-error {
    padding: 30px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

/* Animación suave */
.faq-answer:not([hidden]) {
    animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-question {
        padding: 18px 20px;
        font-size: 15px;
    }
    
    .faq-answer-content {
        padding: 15px 20px 20px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .faq-container {
        padding: 10px;
    }
    
    .faq-question {
        padding: 15px;
        font-size: 14px;
    }
    
    .faq-answer-content {
        padding: 12px 15px 18px 15px;
        font-size: 13px;
    }
}

/* Accesibilidad */
.faq-question:focus {
    outline: 2px solid #635752;
    outline-offset: -2px;
}

.faq-question:focus:not(:focus-visible) {
    outline: none;
}
