/* Un índice abierto y una respuesta en primer plano, con una sola fuente de contenido. */
#faq.faq-studio {
  --faq-ink: #102437;
  --faq-muted: #536c80;
  --faq-rule: #cddde8;
  --faq-surface: #f7fafc;
  --pijama-bg: #f7fafc;
  background: var(--faq-surface);
  color: var(--faq-ink);
  padding-block: clamp(75px, 8vw, 120px);
  overflow: clip;
}
#faq.faq-studio::before, #faq.faq-studio::after { display: none; }
#faq .faq-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 52px;
}
#faq .faq-kicker {
  color: var(--faq-muted);
  font-size: 14px;
  margin: 0 0 22px;
}
#faq.faq-studio .section-title {
  max-width: none;
  font-size: clamp(44px, 4.8vw, 70px);
  letter-spacing: -.055em;
  font-weight: 500;
  line-height: 1.09;
  color: var(--faq-ink);
  margin: 0;
}
#faq .faq-intro {
  max-width: 34ch;
  margin: 0 0 7px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--faq-muted);
}
#faq .faq-topics[hidden], #faq .faq-entry[hidden] { display: none; }
#faq .faq-entry {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--faq-rule);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  min-width: 0;
}
#faq .faq-entry:last-child { border-bottom: 1px solid var(--faq-rule); }
#faq .faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 0;
  cursor: pointer;
  list-style: none;
  color: var(--faq-ink);
  font-family: var(--heading);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
}
#faq .faq-question::-webkit-details-marker { display: none; }
#faq .faq-question::after {
  content: '+';
  flex: 0 0 30px;
  text-align: center;
  font: 300 30px/1 var(--body);
  color: #2287d9;
  transition: transform .3s;
}
#faq .faq-entry[open] > .faq-question::after { transform: rotate(45deg); }
#faq .faq-question:focus-visible, #faq .faq-tab:focus-visible, #faq .faq-outro a:focus-visible {
  outline: 2px solid #2287d9;
  outline-offset: 5px;
  border-radius: 2px;
}
#faq .faq-reply { padding-bottom: 30px; }
#faq .faq-answer {
  color: var(--faq-muted);
  font-size: 16px;
  line-height: 1.85;
  max-width: 69ch;
  padding: 0;
  margin: 0;
}
#faq .faq-visual, #faq .faq-answer-title, #faq .faq-subject { display: none; }
#faq .faq-outro {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding-top: 38px;
  color: var(--faq-muted);
  font-size: 15px;
}
#faq .faq-outro p { margin: 0; }
#faq .faq-outro a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--faq-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #9bbdd6;
  text-underline-offset: 6px;
}
#faq .faq-outro a:hover { color: #1674bc; }
#faq .faq-outro i { font-size: 17px; color: #2287d9; }

@media (min-width: 1001px) {
  #faq.faq-tabbed .faq-workspace {
    display: grid;
    grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
    gap: clamp(35px, 5.5vw, 80px);
    align-items: stretch;
  }
  #faq.faq-tabbed .faq-topics { position: relative; align-self: start; }
  #faq .faq-tab {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    width: 100%;
    min-height: 82px;
    padding: 20px 15px 20px 24px;
    border: 0;
    border-bottom: 1px solid var(--faq-rule);
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    color: var(--faq-muted);
    font: 400 clamp(14px, 1.2vw, 17px)/1.55 var(--heading);
    text-align: left;
    cursor: pointer;
    transition: color .25s, background .25s;
  }
  #faq .faq-tab:first-of-type { border-top: 1px solid var(--faq-rule); }
  #faq .faq-tab svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    opacity: .5;
    transition: transform .3s, opacity .3s;
  }
  #faq .faq-tab:hover { color: var(--faq-ink); }
  #faq .faq-tab[aria-selected="true"] {
    color: var(--faq-ink);
    background: linear-gradient(90deg, #2287d90b, transparent 90%);
    font-weight: 600;
  }
  #faq .faq-tab[aria-selected="true"] svg { color: #1687d9; opacity: 1; transform: translateX(4px); }
  #faq .faq-active-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: var(--faq-marker-height, 82px);
    transform: translateY(var(--faq-marker-y, 0));
    background: #2287d9;
    box-shadow: 0 0 18px #2287d940;
    pointer-events: none;
    transition: transform .45s cubic-bezier(.22,.7,.2,1), height .45s;
    z-index: 1;
  }
  #faq.faq-tabbed .faq-answers {
    position: relative;
    display: grid;
    min-width: 0;
    background: #081e33;
    border: 1px solid #20435e;
    border-radius: 3px 36px 3px 3px;
    box-shadow: 0 25px 55px -35px #102f4b70;
    isolation: isolate;
  }
  #faq.faq-tabbed .faq-answers::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at 70% 8%, #278bd92b, transparent 60%);
    z-index: -1;
  }
  #faq.faq-tabbed .faq-entry, #faq.faq-tabbed .faq-entry:last-child { border: 0; }
  #faq.faq-tabbed .faq-entry > .faq-question { display: none; }
  #faq.faq-tabbed .faq-reply:focus-visible { outline: 2px solid #80d2ff; outline-offset: -7px; }
  #faq.faq-tabbed .faq-reply {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 26px clamp(28px, 3vw, 44px) 38px;
    animation: faq-response .5s cubic-bezier(.2,.7,.2,1) both;
  }
  #faq.faq-tabbed .faq-visual {
    position: relative;
    display: grid;
    place-items: center;
    height: 188px;
    flex: 0 0 188px;
    margin: -2px -12px 18px;
    overflow: hidden;
  }
  #faq .faq-visual::before {
    content: '';
    position: absolute;
    inset: 15% 10%;
    background: radial-gradient(ellipse, #3ca3ed23, transparent 65%);
  }
  #faq .faq-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  #faq .faq-wire {
    fill: none;
    stroke: #79cfff;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    animation: faq-trace 1s cubic-bezier(.2,.65,.25,1) both;
  }
  #faq .faq-wire-muted { fill: none; stroke: #76c8ff38; stroke-width: 1; }
  #faq .faq-glass { fill: #419ed422; stroke: #88d6ffad; stroke-width: 1; stroke-linejoin: round; }
  #faq .faq-glass-side { fill: #2e75ab33; stroke: #88d6ff75; stroke-width: 1; stroke-linejoin: round; }
  #faq .faq-point { fill: #99e0ff; filter: drop-shadow(0 0 5px #39b9ff); }
  #faq .faq-piece { transform-origin: center; animation: faq-assemble .7s cubic-bezier(.18,.7,.2,1) both; }
  #faq .faq-piece:nth-child(2n) { animation-delay: .07s; }
  #faq .faq-piece:nth-child(3n) { animation-delay: .14s; }
  #faq.faq-tabbed .faq-subject {
    display: block;
    margin: 0 0 15px;
    color: #80d2ff;
    font-size: 13px;
    line-height: 1.4;
  }
  #faq.faq-tabbed .faq-answer-title {
    display: block;
    margin: 0 0 22px;
    color: #f2f8ff;
    font: 500 clamp(23px, 2.1vw, 30px)/1.3 var(--heading);
    letter-spacing: -.035em;
    max-width: 28ch;
    text-wrap: pretty;
  }
  #faq.faq-tabbed .faq-answer {
    color: #bed1e0;
    font-size: 15px;
    line-height: 1.85;
    max-width: 60ch;
  }
}
@keyframes faq-response { from { opacity: 0; transform: translateX(15px); } to { opacity: 1; transform: none; } }
@keyframes faq-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes faq-assemble { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }

[data-theme="dark"] #faq.faq-studio {
  --faq-ink: #dfedf8;
  --faq-muted: #abc1d2;
  --faq-rule: #355066;
  --faq-surface: #10263a;
  --pijama-bg: #10263a;
}
@media (max-width: 1000px) {
  #faq .faq-heading { gap: 28px; margin-bottom: 38px; }
  #faq .faq-intro { font-size: 14px; }
  #faq .faq-question { font-size: 17px; }
  #faq .faq-entry[open] .faq-reply { animation: faq-response .3s ease-out both; }
}
@media (max-width: 600px) {
  #faq.faq-studio { padding-block: 70px 58px; }
  #faq .faq-heading { display: block; margin-bottom: 35px; }
  #faq .faq-kicker { font-size: 12px; margin-bottom: 18px; }
  #faq.faq-studio .section-title { font-size: clamp(35px, 9.5vw, 52px); }
  #faq .faq-intro { margin-top: 24px; font-size: 14px; line-height: 1.75; }
  #faq .faq-question { font-size: 15px; padding: 22px 0; gap: 14px; }
  #faq .faq-question::after { flex-basis: 24px; font-size: 27px; }
  #faq .faq-answer { font-size: 14px; line-height: 1.85; }
  #faq .faq-reply { padding-bottom: 25px; padding-right: 8px; }
  #faq .faq-entry[open] > .faq-question { color: #1674bc; }
  #faq .faq-outro { flex-direction: column; gap: 9px; font-size: 14px; padding-top: 30px; }
  [data-theme="dark"] #faq .faq-entry[open] > .faq-question { color: #80d2ff; }
}
@media (prefers-reduced-motion: reduce) {
  #faq .faq-reply, #faq .faq-wire, #faq .faq-piece { animation: none !important; }
  #faq .faq-tab, #faq .faq-tab svg, #faq .faq-active-line, #faq .faq-question::after { transition: none !important; }
}
@media print {
  #faq.faq-studio, [data-theme="dark"] #faq.faq-studio {
    --faq-ink: #111;
    --faq-muted: #333;
    --faq-rule: #ccc;
    background: white;
    color: black;
    padding: 30px 0;
  }
  #faq .faq-question, [data-theme="dark"] #faq .faq-entry[open] > .faq-question { color: black; }
  #faq.faq-tabbed .faq-workspace { display: block; }
  #faq .faq-topics, #faq .faq-outro, #faq .faq-visual, #faq .faq-subject { display: none !important; }
  #faq.faq-tabbed .faq-answers { display: block; background: white; box-shadow: none; border: 0; }
  #faq .faq-entry[hidden] { display: block !important; }
  #faq .faq-entry::details-content { content-visibility: visible; }
  #faq.faq-tabbed .faq-entry > .faq-question { display: flex; color: black; }
  #faq .faq-answer-title { display: none !important; }
  #faq.faq-tabbed .faq-reply { display: block; padding: 0 0 20px; animation: none; }
  #faq.faq-tabbed .faq-answer { color: #333; }
}
