/* ============================================================
   preguntas_frecuentes.css
   Estilos exclusivos de la página Preguntas Frecuentes
   ============================================================ */


/* ─────────────────────────────
   FILTRO DE CATEGORÍAS
───────────────────────────── */

.filter-bar {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  background: white;
  border: 1.5px solid var(--gris-claro);
  color: var(--gris-medio);
  padding: 0.42rem 1.1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: 'Mulish', Arial, sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--verde);
  color: var(--verde);
  background: var(--verde-palido);
}

.filter-btn.active {
  background: var(--verde);
  border-color: var(--verde);
  color: white;
}


/* ─────────────────────────────
   FAQ PRINCIPAL
───────────────────────────── */

.faq-main {
  background: white;
}

.faq-main .section-title {
  margin-bottom: 0.5rem;
}

.faq-intro {
  font-size: 0.97rem;
  line-height: 1.85;
  color: var(--gris-medio);
  max-width: 620px;
  margin-bottom: 3rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--gris-claro);
  border-radius: 18px;
  overflow: hidden;
  transition: box-shadow 0.25s;
}

.faq-item:hover {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.06);
}

.faq-item.open {
  border-color: var(--verde-claro);
}

.faq-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.4rem 1.75rem;
  cursor: pointer;
  background: white;
  transition: background 0.2s;
}

.faq-item.open .faq-header {
  background: var(--verde-palido);
}

.faq-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--verde-palido);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  font-weight: bold;
  color: var(--verde);
  flex-shrink: 0;
  transition: background 0.2s;
}

.faq-item.open .faq-num {
  background: var(--verde);
  color: white;
}

.faq-q {
  font-family: 'Nunito', sans-serif;
  font-size: 0.97rem;
  color: var(--tinta);
  line-height: 1.35;
  flex: 1;
}

.faq-chevron {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--gris-medio);
  transition: transform 0.3s, color 0.2s;
}

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

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-body {
  max-height: 600px;
}

.faq-body-inner {
  padding: 1.6rem 1.75rem 1.6rem 5rem;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--gris-medio);
}

.faq-body-inner strong {
  color: var(--tinta);
}

.faq-body-inner a {
  color: var(--verde);
  font-weight: 700;
  text-decoration: none;
}

.faq-body-inner a:hover {
  text-decoration: underline;
}


/* ─────────────────────────────
   TAGS DE CATEGORÍA
───────────────────────────── */

.cat-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: 'Mulish', Arial, sans-serif;
  padding: 0.22rem 0.7rem;
  border-radius: 100px;
  border: 1px solid;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Acento por categoría: verde · naranja · rojo · gris (Precios queda neutro para
   no repetir el verde de Carreras y no romper el ciclo de 3 colores de marca) */
.cat-tag--carreras {
  background: var(--verde-palido);
  color: var(--verde);
  border-color: var(--verde-claro);
}

.cat-tag--formatos {
  background: var(--naranja-palido);
  color: var(--naranja-oscuro);
  border-color: var(--naranja-claro);
}

.cat-tag--dinamica {
  background: var(--rojo-palido);
  color: var(--rojo-oscuro);
  border-color: var(--rojo-claro);
}

.cat-tag--precios {
  background: var(--gris-claro);
  color: var(--gris-medio);
  border-color: var(--gris-claro);
}


/* ─────────────────────────────
   HOTMART
───────────────────────────── */

.hotmart-section {
  background: var(--crema);
}

.hotmart-section .section-title {
  margin-bottom: 0.5rem;
}

.hotmart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.hotmart-card {
  background: white;
  border: 1px solid var(--gris-claro);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
}

.hotmart-card h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 0.97rem;
  color: var(--tinta);
  margin-bottom: 0.6rem;
}

.hotmart-card p {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--gris-medio);
}


/* ─────────────────────────────
   CONTACTO CTA
───────────────────────────── */

.contacto-cta {
  background: var(--verde-fondo);
  padding: 5rem 5%;
}

.contacto-cta-inner {
  max-width: 600px;
}

.contacto-cta .section-label {
  color: var(--verde);
}

.contacto-cta .section-title {
  color: var(--tinta);
  margin-bottom: 0.75rem;
}

.contacto-cta-desc {
  color: var(--gris-medio);
  font-size: 0.97rem;
  line-height: 1.85;
  margin-bottom: 2rem;
}

.contacto-opciones {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}


/* ─────────────────────────────
   NO RESULTS
───────────────────────────── */

.no-results {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gris-medio);
  font-size: 0.95rem;
}

.no-results.visible {
  display: block;
}


/* ─────────────────────────────
   RESPONSIVE
───────────────────────────── */

@media (max-width: 960px) {

  .hotmart-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 600px) {

  .faq-body-inner {
    padding-left: 1.75rem;
  }

  .contacto-opciones {
    flex-direction: column;
    align-items: flex-start;
  }

}