/* Cabecera del buscador */
.kb-header-card {
    background: #0284c7; /* Azul corporativo M&M */
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.kb-header-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.kb-header-card p {
    margin: 0 0 25px;
    font-size: 15px;
    opacity: 0.9;
}

.kb-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.kb-search-box i {
    color: #64748b;
    font-size: 20px;
}

.kb-search-box input {
    border: none;
    outline: none;
    width: 100%;
    margin-left: 15px;
    font-size: 16px;
    color: #1e293b;
}

/* Grilla de Categorías */
.kb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.kb-category {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    align-self: start;
}

.category-title {
    margin: 0 0 20px;
    color: #1e293b;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

.category-title i {
    color: #0284c7;
    font-size: 20px;
}

/* Acordeón (Preguntas Frecuentes) */
.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: #f8fafc;
    border: none;
    padding: 15px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f1f5f9;
}

.icon-arrow {
    transition: transform 0.3s ease;
    color: #94a3b8;
}

.faq-answer {
    max-height: 0; /* Oculto por defecto */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fff;
}

.faq-answer p {
    margin: 0;
    padding: 15px;
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
    border-top: 1px solid #e2e8f0;
}

/* Clases activas controladas por JS */
.faq-item.active .faq-answer {
    max-height: 200px; /* Suficiente para mostrar el texto */
}

.faq-item.active .icon-arrow {
    transform: rotate(180deg);
}

.hidden-item {
    display: none !important;
}