/* ============================================================
   LianTech - FAQ Styles
   Buscador + acordeón limpio y moderno
   ============================================================ */

.faq-section {
    min-height: 80vh;
    padding: 80px 20px 60px;
    background: linear-gradient(180deg, rgba(15, 15, 35, 0) 0%, rgba(15, 15, 35, 0.4) 100%);
}

.faq-container {
    max-width: 880px;
    margin: 0 auto;
}

/* Header */
.faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin: 0 0 12px;
    background: linear-gradient(135deg, #667eea, #764ba2 60%, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Buscador */
.faq-search-wrap {
    position: relative;
    margin-bottom: 28px;
}

.faq-search-input {
    width: 100%;
    padding: 16px 50px 16px 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: #fff;
    font-size: 15px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.faq-search-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.faq-search-input:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.6);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.faq-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 20px;
    pointer-events: none;
}

.faq-search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.15s;
}
.faq-search-clear:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}
.faq-search-clear.is-visible { display: inline-flex; }

/* Chips de categorías */
.faq-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    justify-content: center;
}

.faq-chip {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
}

.faq-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.faq-chip.is-active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
}

/* Lista de FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.faq-item.is-open {
    background: rgba(102, 126, 234, 0.06);
    border-color: rgba(102, 126, 234, 0.3);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    font-family: inherit;
    transition: color 0.15s;
}

.faq-question:hover { color: #a5b4fc; }

.faq-question-text {
    flex: 1;
}

.faq-question-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.faq-item.is-open .faq-question-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s ease;
    padding: 0 24px;
}

.faq-item.is-open .faq-answer {
    max-height: 800px;
    padding: 0 24px 22px;
}

.faq-answer-content {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14.5px;
    line-height: 1.7;
}

.faq-answer-content p { margin: 0 0 10px; }
.faq-answer-content p:last-child { margin-bottom: 0; }

.faq-answer-content ul, .faq-answer-content ol {
    padding-left: 22px;
    margin: 10px 0;
}

.faq-answer-content li { margin-bottom: 6px; }

.faq-answer-content strong { color: #fff; }

.faq-answer-content a {
    color: #a5b4fc;
    text-decoration: none;
    border-bottom: 1px dashed rgba(165, 180, 252, 0.4);
}
.faq-answer-content a:hover { color: #c7d2fe; border-bottom-style: solid; }

/* Categoría label dentro de cada item */
.faq-category-tag {
    display: inline-block;
    padding: 3px 9px;
    background: rgba(102, 126, 234, 0.15);
    color: #a5b4fc;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

/* Estado vacío */
.faq-empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
}
.faq-empty .iconify {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
}
.faq-empty p { margin: 0; font-size: 15px; }
.faq-empty .faq-empty-suggestion {
    margin-top: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

/* CTA al final */
.faq-cta {
    margin-top: 50px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 18px;
    text-align: center;
}
.faq-cta h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}
.faq-cta p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
}
.faq-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.15s, box-shadow 0.15s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.faq-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

/* Highlight de búsqueda */
.faq-highlight {
    background: rgba(251, 191, 36, 0.25);
    color: #fef3c7;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 640px) {
    .faq-section { padding: 60px 16px 40px; }
    .faq-question { padding: 16px 18px; font-size: 14px; }
    .faq-item.is-open .faq-answer { padding: 0 18px 18px; }
    .faq-answer { padding: 0 18px; }
    .faq-cta { padding: 24px 18px; }
    .faq-chips { gap: 6px; }
    .faq-chip { padding: 7px 13px; font-size: 12px; }
}