/**
 * FAQ Section Styles - BEM Methodology
 * Estudio Defensor
 */

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

.faq {
  padding: 4.5rem 2rem 4rem;
  margin-bottom: 5rem;
}

.faq__container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================
   HEADER
   ============================================ */

.faq__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.faq__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 2rem;
  background-color: #FF6600;
  border-radius: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq__badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.faq__badge-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.faq__badge-link:hover {
  color: #f0f0f0;
}

.faq__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
  color: #333333;
  text-align: center;
}

/* ============================================
   FAQ LIST
   ============================================ */

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

/* ============================================
   FAQ ITEM (Accordion)
   ============================================ */

.faq__item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq__item:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq__question {
  width: 100%;
  padding: 1.5rem 3rem 1.5rem 1.5rem;
  background-color: transparent;
  border: none;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 500;
  color: #333333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.faq__question:hover {
  color: #FF6600;
}

.faq__question::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  font-size: 1.5rem;
  font-weight: 300;
  color: #FF6600;
  transition: transform 0.3s ease;
}

.faq__question--active::after {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq__answer--open {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

.faq__answer-text {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  color: #666666;
}

/* ============================================
   RESPONSIVIDAD
   ============================================ */

@media (max-width: 768px) {
  .faq {
    padding: 3rem 1.5rem;
    margin-bottom: 3rem;
  }

  .faq__header {
    margin-bottom: 2rem;
    gap: 1.25rem;
  }

  .faq__badge {
    padding: 0.25rem 1.5rem;
  }

  .faq__badge-link {
    font-size: 0.75rem;
  }

  .faq__title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .faq__question {
    padding: 1.25rem 2.5rem 1.25rem 1.25rem;
    font-size: 1rem;
  }

  .faq__question::after {
    right: 1.25rem;
    font-size: 1.25rem;
  }

  .faq__answer--open {
    padding: 0 1.25rem 1.25rem;
  }

  .faq__answer-text {
    font-size: 0.9375rem;
  }
}

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

  .faq__header {
    gap: 1rem;
  }

  .faq__badge {
    padding: 0.25rem 1.25rem;
  }

  .faq__title {
    font-size: clamp(1.25rem, 6vw, 1.75rem);
  }

  .faq__question {
    padding: 1rem 2rem 1rem 1rem;
    font-size: 0.9375rem;
  }

  .faq__question::after {
    right: 1rem;
  }

  .faq__answer--open {
    padding: 0 1rem 1rem;
  }

  .faq__answer-text {
    font-size: 0.875rem;
  }
}

/* ============================================
   ACCESIBILIDAD
   ============================================ */

.faq__badge-link:focus-visible,
.faq__question:focus-visible {
  outline: 3px solid rgba(255, 102, 0, 0.5);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ============================================
   ANIMACIONES
   ============================================ */

/* Respetar preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .faq,
  .faq * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
