/* ================================
   SECCIÓN FAQ
================================= */
.faq-section {
  padding: 130px 32px 80px;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  font-family: 'Poppins', sans-serif;
  position: relative;
  min-height: 100vh;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header de la sección */
.faq-header {
  text-align: center;
  margin-bottom: 40px;
}

.faq-pill {
  display: inline-block;
  background: linear-gradient(135deg, #ff1744 0%, #e91e63 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 20px;
  border-radius: 999px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(255, 23, 68, 0.25);
}

.faq-heading {
  font-size: 42px;
  font-weight: 700;
  color: #111;
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.faq-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Category Tabs */
.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  padding: 0 16px;
}

.faq-tab {
  background: #fff;
  border: 2px solid transparent;
  color: #666;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: hidden;
}

.faq-tab::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(135deg, #ff1744 0%, #e91e63 100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 999px;
}

.faq-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 23, 68, 0.1);
}

.faq-tab.active {
  color: #ff1744;
  background: rgba(255, 23, 68, 0.05);
  border-color: #ff1744;
  box-shadow: 0 4px 16px rgba(255, 23, 68, 0.2);
}

.faq-tab.active::before {
  width: 50%;
}

/* Grid de FAQs */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Item individual */
.faq-item {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: translateY(0);
}

.faq-item.hidden {
  display: none;
}

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 23, 68, 0.15);
}

.faq-item.active {
  box-shadow: 0 8px 28px rgba(255, 23, 68, 0.18);
  border-color: rgba(255, 23, 68, 0.3);
}

/* Pregunta/Botón */
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 24px 28px;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
}

.faq-question:hover {
  background: rgba(255, 23, 68, 0.03);
}

.faq-question:focus {
  outline: none;
  background: rgba(255, 23, 68, 0.05);
}

.faq-question-text {
  font-size: 18px;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
  padding-right: 40px;
  transition: color 0.3s ease;
}

.faq-item.active .faq-question-text {
  color: #ff1744;
}

/* Icono + con rotación de 45° */
.faq-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff1744 0%, #e91e63 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 3px 10px rgba(255, 23, 68, 0.3);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: #fff;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-icon::before {
  width: 16px;
  height: 2.5px;
}

.faq-icon::after {
  width: 2.5px;
  height: 16px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  box-shadow: 0 5px 16px rgba(255, 23, 68, 0.4);
  background: linear-gradient(135deg, #e91e63 0%, #ff1744 100%);
}

/* Respuesta */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
  max-height: 600px;
}

.faq-answer p {
  padding: 0 28px 28px;
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #555;
}

.faq-answer a {
  color: #ff1744;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.faq-answer a:hover {
  color: #e91e63;
  border-bottom-color: #e91e63;
}

/* ================================
   RESPONSIVE - FAQ
================================= */
@media (max-width: 768px) {
  .faq-section {
    padding: 32px 20px 60px;
  }

  .faq-header {
    margin-bottom: 32px;
  }

  .faq-heading {
    font-size: 32px;
  }

  .faq-subtitle {
    font-size: 15px;
  }

  .faq-tabs {
    gap: 8px;
    margin-bottom: 32px;
    padding: 0;
  }

  .faq-tab {
    font-size: 13px;
    padding: 10px 18px;
  }

  .faq-grid {
    gap: 12px;
  }

  .faq-question {
    padding: 20px 20px;
  }

  .faq-question-text {
    font-size: 16px;
    padding-right: 32px;
  }

  .faq-icon {
    width: 32px;
    height: 32px;
  }

  .faq-icon::before {
    width: 14px;
    height: 2px;
  }

  .faq-icon::after {
    width: 2px;
    height: 14px;
  }

  .faq-answer p {
    padding: 0 20px 20px;
    font-size: 14px;
    line-height: 1.7;
  }
}
