/* =========================================================
   FAQ PREMIUM - STELLA TV
========================================================= */

.faq {
  position: relative;
  overflow: hidden;
}

/* =========================================================
   LUCES DE FONDO
========================================================= */

.faq::before,
.faq::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(12px);
}

.faq::before {
  width: 480px;
  height: 480px;
  left: -180px;
  top: 80px;
  background: radial-gradient(circle, rgba(255,80,170,0.12), transparent 68%);
}

.faq::after {
  width: 420px;
  height: 420px;
  right: -140px;
  bottom: 60px;
  background: radial-gradient(circle, rgba(255,138,0,0.12), transparent 70%);
}

/* =========================================================
   LAYOUT
========================================================= */

.faq-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  align-items: start;
}

/* =========================================================
   PANEL
========================================================= */

.faq-panel {
  position: sticky;
  top: 120px;
  padding: 28px;
  border-radius: 30px;
  overflow: visible;
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.42),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.faq-panel::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  top: -100px;
  right: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,80,170,0.16), transparent 70%);
  pointer-events: none;
}

/* =========================================================
   TÍTULOS
========================================================= */

.faq-panel h3 {
  margin: 18px 0 10px;
  font-size: 2rem;
  line-height: 1.05;
}

.faq-panel p {
  color: var(--muted);
  line-height: 1.75;
}

/* =========================================================
   BUSCADOR
========================================================= */

.faq-search {
  position: relative;
  margin-top: 26px;
}

.faq-search span {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.4);
}

.faq-search input {
  width: 100%;
  height: 60px;
  padding: 0 18px 0 52px;
  border-radius: 18px;
  outline: none;
  color: white;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  transition: 0.3s ease;
}

.faq-search input:focus {
  border-color: rgba(255,80,170,0.28);
  box-shadow: 0 0 0 4px rgba(255,80,170,0.12);
}

/* =========================================================
   CATEGORÍAS DESKTOP
========================================================= */

.faq-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.faq-category {
  padding: 10px 14px;
  border-radius: 999px;
  color: white;
  font-size: 0.84rem;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
  transition: 0.3s ease;
  cursor: pointer;
}

.faq-category:hover,
.faq-category.active {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(255,80,170,0.26), rgba(255,138,0,0.18));
  border-color: rgba(255,255,255,0.12);
}

/* =========================================================
   FILTRO MOBILE CUSTOM
========================================================= */

.faq-mobile-filter {
  display: none;
  position: relative;
  margin-top: 20px;
  z-index: 20;
}

.faq-mobile-trigger {
  width: 100%;
  height: 58px;
  padding: 0 20px;
  border-radius: 18px;
  color: white;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background:
    radial-gradient(circle at 82% 50%, rgba(255,138,0,0.24), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 18px 45px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.07);
  cursor: pointer;
  transition: 0.3s ease;
}

.faq-mobile-trigger:hover {
  border-color: rgba(255,255,255,0.16);
}

.faq-mobile-trigger i {
  font-style: normal;
  transition: 0.3s ease;
}

.faq-mobile-filter.open .faq-mobile-trigger i {
  transform: rotate(180deg);
}

.faq-mobile-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 12px);
  width: 100%;
  padding: 10px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 80% 0%, rgba(255,80,170,0.16), transparent 35%),
    linear-gradient(180deg, #14141d, #07070c);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 28px 70px rgba(0,0,0,0.65);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px) scale(0.96);
  transition: 0.3s ease;
  z-index: 999;
}

.faq-mobile-filter.open .faq-mobile-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.faq-mobile-menu button {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  color: white;
  font-weight: 900;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: 0.25s ease;
}

.faq-mobile-menu button:hover,
.faq-mobile-menu button.active {
  background: linear-gradient(135deg, rgba(255,80,170,0.26), rgba(255,138,0,0.18));
}

/* =========================================================
   CARD AYUDA
========================================================= */

.faq-help-card {
  margin-top: 28px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,80,170,0.12), rgba(255,138,0,0.08));
  border: 1px solid rgba(255,255,255,0.08);
}

.faq-help-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.faq-help-card p {
  margin-bottom: 18px;
}

/* Botón WhatsApp */

.faq-help-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 18px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, #00d757, #009c3f);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 18px 40px rgba(0,215,87,0.28),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transition: 0.3s ease;
}

.faq-help-card a::before {
  content: "";
  width: 22px;
  height: 22px;
  background: url("https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/whatsapp.svg") center / contain no-repeat;
  filter: brightness(0) invert(1);
}

.faq-help-card a:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    0 24px 60px rgba(0,215,87,0.38),
    0 0 24px rgba(0,255,100,0.22);
}

/* =========================================================
   LISTA FAQ
========================================================= */

.faq-list {
  display: grid;
  gap: 16px;
}

/* =========================================================
   ITEM FAQ
========================================================= */

.faq-item {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  box-shadow:
    0 18px 45px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.05);
  transition: 0.35s ease;
}

.faq-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.14);
}

.faq-item.active {
  border-color: rgba(255,80,170,0.18);
  box-shadow:
    0 28px 70px rgba(0,0,0,0.38),
    0 0 26px rgba(255,80,170,0.08);
}

/* =========================================================
   PREGUNTA
========================================================= */

.faq-question {
  width: 100%;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: white;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 900;
  cursor: pointer;
}

.faq-question i {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-style: normal;
  font-size: 1.5rem;
  background: rgba(255,255,255,0.06);
  transition: 0.35s ease;
}

.faq-item.open .faq-question i {
  transform: rotate(45deg);
  background: linear-gradient(135deg, rgba(255,80,170,0.22), rgba(255,138,0,0.18));
}

/* =========================================================
   RESPUESTA
========================================================= */

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 26px;
  color: var(--muted);
  line-height: 1.8;
  transition:
    max-height 0.45s ease,
    padding 0.35s ease;
}

.faq-answer p {
  padding-bottom: 24px;
}

.faq-item.open .faq-answer {
  max-height: 240px;
  padding: 0 26px 4px;
}

/* =========================================================
   EMPTY
========================================================= */

.faq-empty {
  display: none;
  padding: 34px;
  text-align: center;
  border-radius: 24px;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.faq-empty.show {
  display: block;
}