/* ─── FAQ PAGE CSS ────────────────────────────────────── */

.faq-hero { position: relative; overflow: hidden; background: var(--bg); }

.faq-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.faq-link { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.faq-link:hover { color: var(--text-primary); }

/* ─── SEARCH ─────────────────────────────────────────── */
.faq-search-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  stroke: var(--text-muted);
  pointer-events: none;
}

.faq-search-input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  font-size: 1rem;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.faq-search-input::placeholder { color: var(--text-muted); }

.faq-search-input:focus {
  border-color: var(--purple);
  background: rgba(124,58,237,.04);
  box-shadow: 0 0 0 4px rgba(124,58,237,.1);
}

/* ─── CATEGORY FILTERS ───────────────────────────────── */
.faq-filters-section { padding: 32px 0; background: var(--bg-2); border-bottom: 1px solid var(--border-light); }

.faq-filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.faq-filter-btn {
  padding: 9px 18px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.faq-filter-btn:hover { border-color: var(--border); color: var(--text-primary); }

.faq-filter-btn.active {
  background: var(--grad-btn);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-btn);
}

/* ─── MAIN LAYOUT ────────────────────────────────────── */
.faq-main-section { padding: 64px 0; background: var(--bg); }

.faq-layout {
  display: block;
  max-width: 900px;
  margin: 0 auto;
}

/* ─── SIDEBAR REMOVED ─────────────────────────────────── */

/* ─── FAQ SECTIONS ───────────────────────────────────── */
.faq-content-area { display: flex; flex-direction: column; gap: 48px; }

.faq-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-light);
}

.faq-section-icon { font-size: 1.6rem; }

.faq-section-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ─── ACCORDION ──────────────────────────────────────── */
.faq-accordion { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:hover {
  transform: translateX(4px);
  border-color: rgba(124,58,237,.2);
}

.faq-item.open { 
  border-color: rgba(124,58,237,.4);
  background: var(--surface);
  box-shadow: 0 15px 35px -10px rgba(80,40,200,.1);
  transform: scale(1.01);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: inherit;
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover { color: var(--violet); }
.faq-item.open .faq-question { color: var(--violet); }

.faq-chevron {
  font-size: .9rem;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: transform .35s ease;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--violet); }

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

.faq-answer p {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  padding-bottom: 20px;
}

.faq-answer ul { padding-bottom: 16px; }

/* ─── NO RESULTS ─────────────────────────────────────── */
.faq-no-results {
  text-align: center;
  padding: 60px 20px;
}

.no-results-icon { font-size: 3rem; margin-bottom: 16px; }

.faq-no-results h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }

.faq-no-results p { color: var(--text-secondary); font-size: .95rem; }

/* ─── BOTTOM CTA ─────────────────────────────────────── */
.faq-cta-section { padding: 80px 0; background: var(--bg-2); }

.faq-cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.faq-cta-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
}

.faq-cta-card:hover {
  transform: translateY(-8px);
  border-color: var(--border);
  box-shadow: var(--shadow-card-hover);
}

/* Staggered load for FAQ sections */
#sec-general { transition-delay: 0.1s; }
#sec-whatsapp { transition-delay: 0.15s; }
#sec-leads { transition-delay: 0.2s; }
#sec-pricing { transition-delay: 0.25s; }
#sec-integrations { transition-delay: 0.3s; }
#sec-security { transition-delay: 0.35s; }
#sec-support { transition-delay: 0.4s; }


.faq-cta-icon { font-size: 2.5rem; margin-bottom: 16px; }

.faq-cta-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }

.faq-cta-card p { font-size: .875rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; min-height: 60px; }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-sidebar { display: none; }
  .faq-cta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .faq-filter-row { gap: 6px; }
  .faq-filter-btn { padding: 7px 12px; font-size: .8rem; }
}
