/* Estilos para FAQs */

/* Hero FAQs */


/* Buscador */
.search-section {
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

.search-box {
  display: flex;
  gap: 0.5rem;
  background: white;
  border: 3px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.search-box:focus-within {
  border-color: #2b40a0;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

#faq-search {
  flex: 1;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  outline: none;
}

.search-btn {
  padding: 0.75rem 1.5rem;
  background: #1e40af;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.search-hint {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Selector de Categorías */
.category-selector {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.category-btn {
  padding: 0.875rem 1.5rem;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-btn:hover {
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-btn.active {
  background: #1e40af;
  color: white;
  border-color: #667eea;
}

/* Categoría */
.faq-category {
  margin-bottom: 3rem;
}

.category-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 3px solid #e5e7eb;
}

.category-header h2 {
  font-size: 2.25rem;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.category-header p {
  font-size: 1.125rem;
  color: #6b7280;
  margin: 0;
}

/* Accordion */
.faqs-accordion {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-item.active {
  border-color: #667eea;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.75rem;
  background: white;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #1f2937;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: #f9fafb;
}

.faq-item.active .faq-question {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  color: #0c4a6e;
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.75rem;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 0 1.75rem 1.75rem 1.75rem;
}

.faq-answer p {
  font-size: 1rem;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 1rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
  margin: 0.75rem 0 1rem 0;
  padding-left: 2rem;
}

.faq-answer li {
  font-size: 1rem;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 0.5rem;
}

.faq-answer strong {
  color: #1f2937;
  font-weight: 700;
}

/* CTA Contacto */
.cta-contacto {
  margin: 4rem 0;
}

.cta-contacto-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 3px solid #0ea5e9;
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
}

.cta-contacto-box h2 {
  margin: 0 0 1rem 0;
  font-size: 2rem;
  color: #0c4a6e;
}

.cta-contacto-box p {
  font-size: 1.125rem;
  color: #374151;
  margin-bottom: 1.5rem;
}

/* Recursos Relacionados */
.recursos-relacionados {
  margin: 4rem 0;
}

.recursos-relacionados h2 {
  text-align: center;
  font-size: 2rem;
  color: #1f2937;
  margin-bottom: 2.5rem;
}

.recursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.recurso-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
}

.recurso-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.recurso-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.recurso-card h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.125rem;
  color: #1f2937;
}

.recurso-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: #6b7280;
}

/* Footer */
.footer-active {
  color: #667eea !important;
  font-weight: 700;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  font-weight: 700;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.footer-credits {
  text-align: center;
  font-size: 0.875rem;
  color: #9ca3af;
  margin-top: 1rem;
}

/* Estados de búsqueda */
.faq-item.hidden {
  display: none;
}

.no-results {
  text-align: center;
  padding: 3rem 2rem;
  background: #f9fafb;
  border-radius: 12px;
  margin: 2rem 0;
}

.no-results h3 {
  font-size: 1.5rem;
  color: #1f2937;
  margin-bottom: 1rem;
}

.no-results p {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .category-selector {
    flex-direction: column;
  }

  .category-btn {
    width: 100%;
  }

  .category-header h2 {
    font-size: 1.75rem;
  }

  .category-header p {
    font-size: 1rem;
  }

  .faq-question {
    padding: 1.25rem;
    font-size: 1rem;
  }

  .faq-answer {
    padding: 0 1.25rem;
  }

  .faq-item.active .faq-answer {
    padding: 0 1.25rem 1.25rem 1.25rem;
  }

  .cta-contacto-box {
    padding: 2rem 1.5rem;
  }

  .cta-contacto-box h2 {
    font-size: 1.75rem;
  }

  .recursos-grid {
    grid-template-columns: 1fr;
  }

  .search-box {
    flex-direction: column;
  }

  .search-btn {
    width: 100%;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-item {
  animation: fadeIn 0.3s ease;
}