/* Sección Preguntas Frecuentes (FAQ) */
.section-preguntas-frecuentes {
  background-color: #ffffff;
  padding: 4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
}

.faq-container {
  max-width: 900px;
  width: 100%;
}

.faq-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary);
  text-align: center;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.faq-subtitle {
  font-size: 1rem;
  color: var(--color-primary);
  text-align: center;
  margin: 0 0 3rem 0;
  opacity: 0.8;
  font-weight: 500;
}

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

.faq-item {
  border: 1px solid var(--color-primary);
  border-radius: 0.8rem;
  background-color: #ffffff;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(1, 0, 128, 0.15);
  border-color: var(--color-secondary);
}

.faq-header {
  width: 100%;
  background-color: #ffffff;
  border: none;
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.faq-header:hover {
  background-color: #f9f9f9;
}

.faq-header.active {
  background-color: var(--color-primary);
}

.faq-header.active .faq-question {
  color: #ffffff;
}

.faq-header.active .faq-icon {
  color: #ffffff;
  transform: rotate(180deg);
}

.faq-question {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  text-align: left;
  flex: 1;
  transition: color 0.3s ease;
}

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
  transition: all 0.3s ease;
}

.faq-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff;
}

.faq-content.active {
  max-height: 500px;
  padding: 1rem 1.5rem 1.5rem 1.5rem;
}

.faq-content p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-primary);
  line-height: 1.6;
  font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
  .section-preguntas-frecuentes {
    padding: 3rem 1rem;
  }

  .faq-title {
    font-size: 1.8rem;
  }

  .faq-subtitle {
    font-size: 0.95rem;
  }

  .faq-header {
    padding: 1.2rem;
  }

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

  .faq-content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .section-preguntas-frecuentes {
    padding: 2rem 1rem;
  }

  .faq-title {
    font-size: 1.5rem;
  }

  .faq-subtitle {
    font-size: 0.9rem;
  }

  .faq-header {
    padding: 1rem;
  }

  .faq-question {
    font-size: 0.9rem;
  }

  .faq-content p {
    font-size: 0.85rem;
  }

  .faq-grid {
    gap: 1rem;
  }
}
