/* Preguntas frecuentes (fqx-*) */
.fqx-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Hero */
.fqx-hero { padding: 60px 0 52px; }
.fqx-hero h1 { max-width: 18ch; }
.fqx-hero .px-lead { max-width: 60ch; }
.fqx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 900px;
  margin-top: 30px;
}
.fqx-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 15px 6px 6px;
  border: 1px solid #e4e7f2;
  border-radius: 999px;
  background: #fff;
  color: #2b3160;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, color .2s ease;
}
.fqx-chip .mi { width: 26px; height: 26px; border-radius: 999px; background-size: 15px 15px; }
.fqx-chip:hover {
  border-color: #d3d8ef;
  color: #070d38;
  box-shadow: 0 10px 24px rgb(16 24 64 / 8%);
  transform: translateY(-1px);
}

/* Cuerpo: índice + preguntas */
.fqx-sec { padding-top: 64px; }
.fqx-grid {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.fqx-nav {
  position: sticky;
  top: 132px;
  display: grid;
  gap: 2px;
  padding: 18px 14px;
  border: 1px solid #eceef5;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgb(16 24 64 / 5%);
}
.fqx-nav .px-k { margin: 0 8px 8px; }
.fqx-nav a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 11px;
  color: #3a4170;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.fqx-nav a .mi { width: 26px; height: 26px; border-radius: 8px; background-size: 15px 15px; }
.fqx-nav a b {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f1f2f6;
  color: #6b7190;
  font-size: 11.5px;
  font-weight: 800;
  text-align: center;
}
.fqx-nav a:hover { background: #f5f6fb; color: #070d38; }
.fqx-grid:has(#fq-que:target) .fqx-nav a[href="#fq-que"],
.fqx-grid:has(#fq-planes:target) .fqx-nav a[href="#fq-planes"],
.fqx-grid:has(#fq-tarjeta:target) .fqx-nav a[href="#fq-tarjeta"],
.fqx-grid:has(#fq-firma:target) .fqx-nav a[href="#fq-firma"],
.fqx-grid:has(#fq-contactos:target) .fqx-nav a[href="#fq-contactos"],
.fqx-grid:has(#fq-equipo:target) .fqx-nav a[href="#fq-equipo"],
.fqx-grid:has(#fq-analitica:target) .fqx-nav a[href="#fq-analitica"],
.fqx-grid:has(#fq-datos:target) .fqx-nav a[href="#fq-datos"] { background: #f1edff; color: #4a1fd6; }

.fqx-body { display: grid; gap: 64px; min-width: 0; }
.fqx-cat { display: grid; gap: 12px; scroll-margin-top: 140px; }
.fqx-cat__h {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.fqx-cat__h .mi { width: 44px; height: 44px; border-radius: 13px; background-size: 24px 24px; }
.fqx-sec .fqx-cat__h h2 {
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -.6px;
}
.fqx-cat__n {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f1f2f6;
  color: #6b7190;
  font-size: 12.5px;
  font-weight: 800;
}

/* Acordeón */
.fqx-qa {
  border: 1px solid #eceef5;
  border-radius: 18px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.fqx-qa:hover { border-color: #dde1f0; }
.fqx-qa summary {
  position: relative;
  display: block;
  padding: 20px 64px 20px 22px;
  color: #070d38;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
  border-radius: 18px;
}
.fqx-qa summary::-webkit-details-marker { display: none; }
.fqx-qa summary::before,
.fqx-qa summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  transition: transform .25s ease, background-color .2s ease;
}
.fqx-qa summary::before { background: #f3f4f9; }
.fqx-qa summary::after {
  background:
    linear-gradient(#5b6280, #5b6280) center / 12px 2px no-repeat,
    linear-gradient(#5b6280, #5b6280) center / 2px 12px no-repeat;
}
.fqx-qa summary:hover::before { background: #eceefa; }
.fqx-qa summary:focus-visible { outline: 2px solid #6D4AFF; outline-offset: 2px; }
.fqx-qa[open] {
  border-color: #d9d0ff;
  background: linear-gradient(180deg, #faf8ff 0%, #fff 70%);
  box-shadow: 0 16px 36px rgb(76 46 200 / 8%);
}
.fqx-qa[open] summary::before { background: #6D4AFF; }
.fqx-qa[open] summary::after {
  background: linear-gradient(#fff, #fff) center / 12px 2px no-repeat;
  transform: rotate(180deg);
}
.fqx-qa__a { padding: 0 64px 22px 22px; }
.fqx-qa__a p { margin: 0; color: #4b5372; font-size: 16px; line-height: 1.65; }
.fqx-qa__a .fqx-qa__tag { margin-top: 14px; }
.fqx-qa[open] .fqx-qa__a { animation: fqx-in .25s ease; }
@keyframes fqx-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* Tabla de planes */
.fqx-plans {
  margin: 8px 0;
  padding: 24px;
  border-radius: 22px;
  background: #f6f7fb;
}
.fqx-plans__t {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.2px;
}
.fqx-plans__wrap { -webkit-overflow-scrolling: touch; }
.fqx-matrix { min-width: 660px; }
.fqx-matrix thead th:first-child { width: 30%; }
.fqx-matrix th,
.fqx-matrix td { padding: 13px 14px; font-size: 14.5px; }
.fqx-matrix tbody th { color: #1f2547; font-weight: 700; }
.fqx-matrix tbody tr:first-child th,
.fqx-matrix tbody tr:first-child td { background: #fbfbfe; }
.fqx-matrix tbody tr:first-child b { color: #070d38; font-weight: 800; }
.fqx-matrix th:last-child,
.fqx-matrix td:last-child { background: #eff6ff; }
.fqx-matrix tbody tr:first-child td:last-child { background: #eff6ff; }
.fqx-matrix thead .fqx-matrix__ent {
  background: #2563eb;
  color: #fff;
}
.fqx-matrix tbody td:last-child { color: #1d4ed8; font-weight: 700; }
.fqx-plans__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 14px 0 0;
  color: #5b6280;
  font-size: 14px;
}
.fqx-plans__foot a {
  color: #4a1fd6;
  font-weight: 800;
  text-decoration: none;
}
.fqx-plans__foot a::after { content: " →"; }
.fqx-plans__foot a:hover { text-decoration: underline; }

/* Ayuda */
.fqx-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  padding: 24px 26px;
  border: 1px dashed #d7dbf0;
  border-radius: 20px;
  background: #fff;
}
.fqx-help__copy { display: grid; flex: 1 1 280px; gap: 4px; }
.fqx-help__copy b { font-size: 17px; }
.fqx-help__copy span { color: #4b5372; font-size: 15px; line-height: 1.5; }
.fqx-help .a-btn { border-radius: 999px; }

.fqx-next { padding-top: 24px; }

@media (max-width: 1080px) {
  .fqx-grid { grid-template-columns: 228px minmax(0, 1fr); gap: 36px; }
  .fqx-nav a { font-size: 14px; }
}
@media (max-width: 899px) {
  .fqx-hero { padding: 40px 0 36px; }
  .fqx-hero .fqx-chips { display: none; }
  .fqx-sec { padding-top: 28px; }
  .fqx-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .fqx-nav {
    position: static;
    display: flex;
    gap: 8px;
    margin: 0 -20px;
    padding: 2px 20px 8px;
    overflow-x: auto;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .fqx-nav::-webkit-scrollbar { display: none; }
  .fqx-nav .px-k { display: none; }
  .fqx-nav a {
    flex: none;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    border: 1px solid #e4e7f2;
    border-radius: 999px;
    background: #fff;
    white-space: nowrap;
  }
  .fqx-nav a .mi { border-radius: 999px; }
  .fqx-body { gap: 48px; }
  .fqx-cat { scroll-margin-top: 110px; }
  .fqx-plans { padding: 18px 14px; margin-inline: -6px; }
}
@media (max-width: 560px) {
  .fqx-cat__h { gap: 12px; }
  .fqx-cat__h .mi { width: 38px; height: 38px; border-radius: 11px; background-size: 20px 20px; }
  .fqx-qa summary { padding: 17px 56px 17px 18px; font-size: 16px; }
  .fqx-qa summary::before,
  .fqx-qa summary::after { right: 16px; width: 28px; height: 28px; margin-top: -14px; }
  .fqx-qa__a { padding: 0 18px 18px; }
  .fqx-qa__a p { font-size: 15.5px; }
  .fqx-help { padding: 20px; }
}
