/* ========================================
   ESTILOS DEL ACORDEÓN - Lead Magnet
   ======================================== */

/* Contenedor principal del acordeón */
.accordion-container {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.accordion-header {
  text-align: center;
  margin-bottom: 4rem;
}

.accordion-header h2 {
  color: var(--accent);
}

/* FAQ Section */
.faq-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.faq-section .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.faq-section .section-header h2.mono {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  color: var(--accent);
}

.faq-section .section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary, #a1a1aa);
}

/* FAQ Section */
.faq-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.accordion-header p {
  font-size: 1.1rem;
  color: var(--text-secondary, #a1a1aa);
}

/* Wrapper del acordeón */
.accordion-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 10px;
}

/* Items del acordeón */
.accordion-item {
  background: var(--card-bg, #27272a);
  border-radius: 12px;
  margin-bottom: 0.1rem;
  overflow: hidden;
  border: 1px solid #222;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.light-mode .accordion-item {
  border-color: #eee;
}

.accordion-item:hover {
  border-color: #222;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.light-mode .accordion-item:hover {
  border-color: #eee;
}

.accordion-item.active {
  border-color: #222;
}

.light-mode .accordion-item.active {
  border-color: #eee;
}

/* Botón del acordeón */
.accordion-button {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.3s ease;
}

.accordion-button:hover {
  background: #222;
}

.light-mode .accordion-button:hover {
  background: #eee;
}

.accordion-item.active .accordion-button {
  background: #222;
}

.light-mode .accordion-item.active .accordion-button {
  background: #eee;
}

.accordion-button-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.accordion-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Modo Dark: fondo color de acento, icono negro */
.dark-mode .accordion-icon {
  background: var(--accent, #AAF71D);
}

.dark-mode .accordion-icon svg {
  color: #000000;
  width: 16px;
  height: 16px;
}

/* Modo Light: fondo negro, icono blanco */
.light-mode .accordion-icon {
  background: #000000;
}

.light-mode .accordion-icon svg {
  color: #ffffff;
  width: 16px;
  height: 16px;
}

.accordion-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary, #e4e4e7);
  margin: 0;
}

.accordion-arrow {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.accordion-arrow svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary, #a1a1aa);
}

.accordion-item.active .accordion-arrow {
  transform: rotate(180deg);
}

/* Contenido del acordeón - transición suave */
.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease-out;
  overflow: hidden;
}

.accordion-content>* {
  overflow: hidden;
}

.accordion-item.active .accordion-content {
  grid-template-rows: 1fr;
  margin-top: 10px;
}

/* FAQ Section */
.faq-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.accordion-body {
  padding: 10px 1.5rem 1.5rem;
  padding-left: calc(1.5rem + 32px + 1rem);
  color: var(--text-secondary, #a1a1aa);
  line-height: 1.7;
  font-size: 0.95rem;
}

.accordion-body ul {
  margin: 0;
  padding-left: 1.25rem;
}

.accordion-body li {
  margin-bottom: 0.5rem;
  position: relative;
}

.accordion-body li::marker {
  color: #222;
}

.light-mode .accordion-body li::marker {
  color: #eee;
}

/* Responsive */
@media (max-width: 768px) {
  .faq-section {
    padding: 60px 0;
  }

  .faq-section .section-header {
    margin-bottom: 2rem;
  }

  .faq-section .section-header h2.mono {
    font-size: 1.75rem;
  }

  .faq-section .section-header p {
    font-size: 1rem;
  }

  .accordion-container {
    margin: 3rem auto;
    padding: 0 1rem;
  }

  .accordion-header h2 {
    font-size: 1.75rem;
  }

  .accordion-button {
    padding: 1rem;
  }

  .accordion-button-left {
    gap: 0.75rem;
  }

  .accordion-icon {
    width: 28px;
    height: 28px;
  }

  .accordion-icon svg {
    width: 14px;
    height: 14px;
  }

  .accordion-title {
    font-size: 1rem;
  }

  .accordion-body {
    padding: 0 1rem 1rem;
    padding-left: calc(1rem + 28px + 0.75rem);
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .faq-section {
    padding: 40px 0;
  }

  .faq-section .section-header h2.mono {
    font-size: 1.5rem;
  }

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

  .accordion-container {
    margin: 2rem auto;
  }

  .accordion-header {
    margin-bottom: 2rem;
  }

  .accordion-header h2 {
    font-size: 1.5rem;
  }

  .accordion-header p {
    font-size: 1rem;
  }
}

/* Animación de entrada */
@keyframes accordionFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.accordion-item {
  animation: accordionFadeIn 0.5s ease forwards;
}

.accordion-item:nth-child(1) {
  animation-delay: 0.1s;
}

.accordion-item:nth-child(2) {
  animation-delay: 0.2s;
}

.accordion-item:nth-child(3) {
  animation-delay: 0.3s;
}

.accordion-item:nth-child(4) {
  animation-delay: 0.4s;
}

.accordion-item:nth-child(5) {
  animation-delay: 0.5s;
}

.accordion-item:nth-child(6) {
  animation-delay: 0.6s;
}