/**
 * ============================================================================
 * GORILLA NUTRITION SINALOA - FAQ CSS (Preguntas Frecuentes - v2 Responsive)
 * ============================================================================
 *
 * Estilos para la sección de Preguntas Frecuentes.
 * Acordeones interactivos con diseño dark/gold, bordes resplandecientes y
 * adaptabilidad perfecta para móviles (evita desbordamientos y optimiza touch).
 *
 * @package Gorilla_Nutrition
 * @since   2.2.0
 */

/* ════════════════════════════════════════════════════════════════════════════
   SECCIÓN BASE
   ════════════════════════════════════════════════════════════════════════════ */

.faq-section {
  padding: 110px 0 100px;
  background-color: var(--color-bg-primary);
  position: relative;
  overflow: hidden;
}

/* ── Elementos decorativos de fondo ── */
.faq-section__bg-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-overlay);
}

.faq-section__deco-line {
  position: absolute;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 169, 79, 0.08),
    transparent
  );
  height: 1px;
  width: 100%;
}
.faq-section__deco-line--top { top: 0; }
.faq-section__deco-line--bottom { bottom: 0; }

.faq-section__deco-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.04;
}
.faq-section__deco-orb--left {
  width: 500px;
  height: 500px;
  background: var(--color-gold);
  top: -100px;
  left: -150px;
}
.faq-section__deco-orb--right {
  width: 500px;
  height: 500px;
  background: var(--color-red);
  bottom: -100px;
  right: -150px;
}

/* ════════════════════════════════════════════════════════════════════════════
   ENCABEZADO
   ════════════════════════════════════════════════════════════════════════════ */

.faq-section__header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 60px;
  position: relative;
  z-index: var(--z-content);
}

.faq-section__subtitle {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  overflow-wrap: break-word;
}

/* ════════════════════════════════════════════════════════════════════════════
   GRID DE ACORDEONES (2 columnas en desktop, 1 en mobile)
   ════════════════════════════════════════════════════════════════════════════ */

.faq-section__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  position: relative;
  z-index: var(--z-content);
  align-items: start;
}

/* ════════════════════════════════════════════════════════════════════════════
   TARJETA / ITEM DE ACORDEÓN
   ════════════════════════════════════════════════════════════════════════════ */

.faq-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.faq-card:hover {
  border-color: rgba(201, 169, 79, 0.35);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(201, 169, 79, 0.08);
}

.faq-card.is-active {
  border-color: var(--color-gold);
  box-shadow:
    0 6px 28px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(201, 169, 79, 0.15);
  background: linear-gradient(
    180deg,
    rgba(20, 20, 20, 1) 0%,
    rgba(14, 14, 14, 1) 100%
  );
}

/* ── Botón Trigger (Pregunta) ── */
.faq-card__trigger {
  width: 100%;
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: transparent;
  border: none;
  color: var(--color-text-primary);
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: background-color 0.25s ease;
}

.faq-card__trigger:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: -2px;
}

/* ── Bloque Izquierdo (Número + Ícono) ── */
.faq-card__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.faq-card__badge-num {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--color-gold);
  opacity: 0.7;
  letter-spacing: 1px;
}

.faq-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(201, 169, 79, 0.08);
  border: 1px solid rgba(201, 169, 79, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  flex-shrink: 0;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.faq-card:hover .faq-card__icon,
.faq-card.is-active .faq-card__icon {
  background: rgba(201, 169, 79, 0.16);
  border-color: var(--color-gold);
  transform: scale(1.05);
}

/* ── Bloque Central (Categoría + Pregunta) ── */
.faq-card__center {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.faq-card__cat-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-gold-light);
  margin-bottom: 4px;
  opacity: 0.85;
}

.faq-card__question {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text-primary);
  margin: 0;
  transition: color 0.25s ease;
  overflow-wrap: break-word;
  word-break: break-word;
}

.faq-card.is-active .faq-card__question {
  color: #FFFFFF;
}

/* ── Flecha (Chevron) ── */
.faq-card__arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  flex-shrink: 0;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease,
    color 0.25s ease,
    background 0.25s ease;
}

.faq-card:hover .faq-card__arrow {
  color: var(--color-gold);
  border-color: rgba(201, 169, 79, 0.3);
}

.faq-card.is-active .faq-card__arrow {
  transform: rotate(180deg);
  background: var(--color-gold);
  color: #070707;
  border-color: var(--color-gold);
}

/* ── Panel de Contenido (Respuesta) ── */
.faq-card__content {
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-card__body {
  padding: 0 24px 22px 80px;
  border-top: 1px dashed rgba(201, 169, 79, 0.12);
  margin-top: -2px;
  padding-top: 16px;
}

.faq-card__answer {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ════════════════════════════════════════════════════════════════════════════
   CTA DE ASISTENCIA (FOOTER DE SECCIÓN)
   ════════════════════════════════════════════════════════════════════════════ */

.faq-section__cta {
  margin-top: 56px;
  position: relative;
  z-index: var(--z-content);
}

.faq-section__cta-inner {
  background: linear-gradient(
    135deg,
    rgba(201, 169, 79, 0.08) 0%,
    rgba(17, 17, 17, 0.95) 50%,
    rgba(212, 32, 32, 0.08) 100%
  );
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.faq-section__cta-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}

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

.faq-section__cta-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: var(--color-text-primary);
  margin: 0 0 4px;
}

.faq-section__cta-desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin: 0;
}

.faq-section__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.faq-section__cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  color: #FFFFFF;
}

/* ════════════════════════════════════════════════════════════════════════════
   RESPONSIVE (TABLETS Y MÓVILES)
   ════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 991px) {
  .faq-section {
    padding: 90px 0 80px;
  }

  .faq-section__header {
    margin-bottom: 44px;
  }

  .faq-section__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .faq-section__cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    gap: 16px;
  }

  .faq-section__cta-text {
    margin-bottom: 4px;
  }

  .faq-section__cta-btn {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 576px) {
  .faq-section {
    padding: 70px 0 60px;
  }

  .faq-section__header {
    margin-bottom: 36px;
  }

  .faq-section__subtitle {
    font-size: 0.875rem;
  }

  .faq-card__trigger {
    padding: 16px 14px;
    gap: 10px;
  }

  .faq-card__badge-num {
    font-size: 0.72rem;
  }

  .faq-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
  }

  .faq-card__icon svg {
    width: 18px;
    height: 18px;
  }

  .faq-card__cat-tag {
    font-size: 0.62rem;
    letter-spacing: 1px;
  }

  .faq-card__question {
    font-size: 0.875rem;
    line-height: 1.35;
  }

  .faq-card__arrow {
    width: 28px;
    height: 28px;
  }

  .faq-card__arrow svg {
    width: 16px;
    height: 16px;
  }

  .faq-card__body {
    padding: 14px 16px 18px 16px;
  }

  .faq-card__answer {
    font-size: 0.85rem;
    line-height: 1.55;
  }

  .faq-section__cta {
    margin-top: 40px;
  }

  .faq-section__cta-title {
    font-size: 1.25rem;
  }

  .faq-section__cta-desc {
    font-size: 0.8rem;
  }
}
