/* ===== Backdrop del FAQ ===== */
#faqBackdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 1000;
}

#faqBackdrop.open {
  display: block;
}

/* ===== Modal FAQ con estilo neon ===== */
#faqModal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: min(950px, 95%);
  max-height: 90vh;
  overflow-y: auto; /* scroll si contenido largo */
  background: #000;
  border-radius: 16px;
  padding: 40px;
  z-index: 1001;
  opacity: 0;
  transition: all 0.4s ease;

  /* Glow neon */
  border: 1px solid var(--neon);
  box-shadow: 0 0 10px rgba(0, 255, 128, 0.4);

  /* Scroll oculto en PC */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

#faqModal::-webkit-scrollbar {
  width: 0; /* Chrome, Edge, Safari */
}

#faqModal.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: modalEnter 0.5s ease forwards;
}

/* Animación entrada tipo rebote */
@keyframes modalEnter {
  0% {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.8);
  }
  60% {
    opacity: 1;
    transform: translate(-50%, -52%) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ===== FAQ Sheet estilo acordeón ===== */
.faq-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -100%;
  z-index: 1001;

  height: 85vh;
  max-height: 90vh;
  overflow-y: auto;
  
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0.96), rgba(0,0,0,0.94));
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom: none;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.6),
              0 0 0 1px rgba(255,255,255,0.03) inset;
  padding: 30px;
  transition: bottom 0.45s cubic-bezier(.22,1,.36,1);

  scrollbar-width: none; /* oculto en PC */
  -ms-overflow-style: none;
}

.faq-sheet::-webkit-scrollbar {
  width: 0;
}

.faq-sheet.open {
  bottom: 0;
}

/* ===== Cabecera FAQ ===== */
.faq-sheet h2 {
  text-align: center;
  color: var(--neon);
  margin-bottom: 25px;
}

/* Lista de preguntas */
.faq-list {
  text-align: left;
  margin-top: 10px;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 0;
}

/* Preguntas */
.faq-question {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 16px;
  color: var(--neon);
  cursor: pointer;
  font-weight: bold;
  padding: 10px 0;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--neon-2);
}

/* Respuestas */
.faq-answer {
  display: none;
  color: #ccc;
  font-size: 10px !important;
  line-height: 1.0;
  padding: 6px 0 0 0;
}

/* Abrir respuestas con animación */
.faq-item.open .faq-answer {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Animación suave */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Botón de cerrar modal */
.sheet-close {
  background: transparent;
  border: none;
  color: var(--neon);
  font-size: 24px;
  float: right;
  cursor: pointer;
}

/* ===== Responsive móviles ===== */
@media (max-width: 600px) {
  #faqModal,
  .faq-sheet {
    max-height: 85vh;
    scrollbar-width: thin; /* scroll visible en móviles */
  }

  #faqModal::-webkit-scrollbar,
  .faq-sheet::-webkit-scrollbar {
    width: 6px;
  }

  #faqModal::-webkit-scrollbar-thumb,
  .faq-sheet::-webkit-scrollbar-thumb {
    background-color: rgba(0,255,128,0.4);
    border-radius: 3px;
  }

  #faqModal::-webkit-scrollbar-track,
  .faq-sheet::-webkit-scrollbar-track {
    background: transparent;
  }
}
