/**
 * FAQ Section Styles
 * Estilos para la sección de preguntas frecuentes
 */

/* ============================================================================
   FAQ SECTION
   ============================================================================ */

.faq-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  position: relative;
}

.faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* ============================================================================
   FAQ ITEMS
   ============================================================================ */

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.faq-item.active {
  border-color: rgba(102, 126, 234, 0.5);
  background: rgba(102, 126, 234, 0.05);
}

/* ============================================================================
   FAQ QUESTION
   ============================================================================ */

.faq-question {
  width: 100%;
  padding: 1.75rem 2rem;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.5;
  flex: 1;
}

.faq-question i {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: #667eea;
}

/* ============================================================================
   FAQ ANSWER
   ============================================================================ */

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer > * {
  padding: 0 2rem 1.75rem 2rem;
}

.faq-answer p {
  margin: 0 0 1rem 0;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

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

.faq-answer ul,
.faq-answer ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.faq-answer li {
  margin: 0.75rem 0;
  line-height: 1.7;
}

.faq-answer li i {
  margin-right: 0.5rem;
  color: #667eea;
  width: 20px;
  display: inline-block;
}

.faq-answer strong {
  color: #fff;
  font-weight: 600;
}

.faq-answer em {
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.faq-answer a {
  color: #667eea;
  text-decoration: none;
  border-bottom: 1px solid rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.faq-answer a:hover {
  color: #764ba2;
  border-bottom-color: rgba(118, 75, 162, 0.5);
}

/* ============================================================================
   PRICING IN FAQ
   ============================================================================ */

.pricing-faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.price-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.price-item:hover {
  border-color: rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
}

.price-item h4 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: #fff;
}

.price-item .price {
  margin: 0.5rem 0;
  font-size: 1.5rem;
  color: #667eea;
}

.price-item .price-usd {
  margin: 0.25rem 0 1rem 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.price-item p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================================================
   SCHEMA.ORG FAQ (For SEO - hidden but readable by search engines)
   ============================================================================ */

.faq-item[itemscope] {
  /* These attributes are for Schema.org FAQPage structured data */
  /* They don't affect visual styling but help SEO and LLMs */
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
  .faq-section {
    padding: 3rem 0;
  }

  .faq-container {
    padding: 1rem 0;
  }

  .faq-question {
    padding: 1.25rem 1.5rem;
    gap: 1rem;
  }

  .faq-question h3 {
    font-size: 1rem;
  }

  .faq-question i {
    font-size: 1rem;
  }

  .faq-answer > * {
    padding: 0 1.5rem 1.25rem 1.5rem;
  }

  .faq-answer p,
  .faq-answer li {
    font-size: 0.95rem;
  }

  .pricing-faq {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .price-item {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .faq-question {
    padding: 1rem 1.25rem;
  }

  .faq-question h3 {
    font-size: 0.95rem;
  }

  .faq-answer > * {
    padding: 0 1.25rem 1rem 1.25rem;
  }

  .faq-answer ul,
  .faq-answer ol {
    padding-left: 1.25rem;
  }
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes fadeInAnswer {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-item.active .faq-answer > * {
  animation: fadeInAnswer 0.4s ease forwards;
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
  .faq-question i {
    display: none;
  }

  .faq-answer {
    max-height: none !important;
  }

  .faq-item {
    page-break-inside: avoid;
  }
}
