/* Clase para elementos ocultos - debe estar al principio para mayor prioridad */
.amarillofaqs-hidden {
  display: none !important;
}

.amarillofaqs-container {
  margin: 20px 0;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  padding-top: 30px;
  padding-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.amarillofaqs-faqs-block,
.amarillofaqs-recipes-block {
  flex: 1;
  min-width: 300px;
}

.amarillofaqs-title {
  font-size: 1.125rem;
  margin-bottom: 20px;
  font-weight: 600;
  color: #623412;
}

.amarillofaqs-list ul {
  list-style: none;
  margin: 0;
}

.amarillofaqs-list li {
  position: relative;
  margin-bottom: 15px;
  line-height: 1.4;
  padding-bottom: 0;
  border-bottom: none;
}

.amarillofaqs-question-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 10px 15px;
  background-color: #f8f8f8;
  border-radius: 5px;
  transition: background-color 0.2s ease;
}

.amarillofaqs-question-container:hover {
  background-color: #f0f0f0;
}

.amarillofaqs-question {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  flex: 1;
}

.amarillofaqs-toggle-icon {
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.4s ease;
  margin-left: 10px;
  transform-origin: center;
}

.amarillofaqs-toggle-icon:before,
.amarillofaqs-toggle-icon:after {
  content: '';
  position: absolute;
  background-color: #009ad4;
  transition: transform 0.3s ease;
}

.amarillofaqs-toggle-icon:before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.amarillofaqs-toggle-icon:after {
  width: 2px;
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.amarillofaqs-item.active .amarillofaqs-toggle-icon:after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

/* Definición ya incluida arriba */

.amarillofaqs-item.active .amarillofaqs-toggle-icon {
  transform: rotate(180deg);
}

.amarillofaqs-item.active .amarillofaqs-question-container {
  background-color: #009ad4;
  color: white;
  border-radius: 5px 5px 0 0;
}

.amarillofaqs-item.active .amarillofaqs-question {
  color: white;
}

.amarillofaqs-item.active .amarillofaqs-toggle-icon:before,
.amarillofaqs-item.active .amarillofaqs-toggle-icon:after {
  background-color: white;
}

.amarillofaqs-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  color: #666;
  line-height: 1.5;
  font-size: 0.95rem;
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-top: none;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  visibility: hidden;
}

.amarillofaqs-item.active .amarillofaqs-answer {
  max-height: 2000px; /* Valor suficientemente alto para contener cualquier respuesta */
  padding: 15px;
  visibility: visible;
  transition: max-height 0.6s ease-in-out, padding 0.3s ease;
}

.amarillofaqs-link-container {
  margin-top: 10px;
}

.amarillofaqs-link {
  color: #009ad4;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.amarillofaqs-link:hover {
  color: #623412;
  text-decoration: underline;
}

/* Botón Ver más */
.amarillofaqs-show-more {
  margin-top: 15px;
  text-align: left;
}

.amarillofaqs-show-more-btn {
  background: transparent;
  border: none;
  color: #009ad4;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.amarillofaqs-show-more-btn:hover {
  text-decoration: underline;
}

.amarillofaqs-show-more-btn:before {
  content: '+';
  margin-right: 5px;
  font-weight: bold;
}

.amarillofaqs-show-more-btn.active:before {
  content: '-';
}

.amarillofaqs-count {
  margin-left: 5px;
  font-size: 0.85em;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
  .amarillofaqs-container {
    flex-direction: column;
  }
}
