/* Shared FAQ component used by service detail pages.
   Mirrors the accordion used in the home "Resolvemos tus dudas" section. */

.gea-service-faq {
  overflow: clip;
  background: var(--gea-paper, #f7f9fc);
}

.gea-service-faq > .container {
  display: block;
}

.gea-service-faq .section-heading {
  width: min(760px, 100%);
  margin: 0 auto clamp(30px, 4vw, 46px);
  padding: 0;
  text-align: center;
}

.gea-service-faq .section-heading h2 {
  max-width: none;
  margin-inline: auto;
  text-wrap: balance;
}

.gea-service-faq .section-heading::after {
  display: none;
}

.gea-faq-list {
  width: min(920px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.gea-faq-item {
  min-width: 0;
  margin: 0;
  padding: 0 !important;
  border: 1px solid rgba(1, 25, 73, .14);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(1, 25, 73, .045);
  overflow: hidden;
}

.gea-faq-item summary {
  width: 100%;
  min-width: 0;
  min-height: 84px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 68px;
  gap: 20px;
  align-items: center;
  box-sizing: border-box;
  padding: 20px 28px;
  color: var(--gea-blue, #011949);
  cursor: pointer;
  list-style: none;
  font: 700 clamp(1.03rem, 1.35vw, 1.16rem)/1.42 Archivo, Inter, system-ui, sans-serif;
  transition: background-color .2s ease, color .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.gea-faq-item summary::-webkit-details-marker {
  display: none !important;
}

.gea-faq-item summary::marker {
  content: "" !important;
  display: none !important;
  font-size: 0 !important;
}

.gea-faq-item summary::after,
.gea-faq-item[open] summary::after {
  content: none !important;
  display: none !important;
  position: static !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.gea-faq-index {
  display: block;
  align-self: center;
  justify-self: center;
  min-width: 2.2ch;
  color: var(--gea-copper, #fe8601);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: clamp(1.55rem, 2.5vw, 1.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  text-align: center;
}

.gea-faq-question {
  min-width: 0;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.gea-faq-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  justify-self: center;
  border: 1.5px solid rgba(1, 25, 73, .28);
  border-radius: 50%;
  background: #fff;
  color: var(--gea-blue, #011949);
  box-shadow: none;
  transition:
    background-color .2s ease,
    border-color .2s ease,
    color .2s ease,
    transform .2s ease;
}

.gea-faq-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .24s cubic-bezier(.2, .8, .2, 1);
}

.gea-faq-item[open] {
  border-color: rgba(254, 134, 1, .34);
}

.gea-faq-item[open] summary {
  color: var(--gea-blue-2, #0a2d67);
}

.gea-faq-item[open] .gea-faq-toggle {
  border-color: var(--gea-copper, #fe8601);
  background: var(--gea-copper, #fe8601);
  color: #fff;
}

.gea-faq-item[open] .gea-faq-toggle svg {
  transform: rotate(180deg);
}

.gea-faq-answer {
  overflow: hidden;
}

.gea-faq-answer p {
  max-width: none;
  margin: 0;
  padding: 0 116px 30px;
  color: var(--gea-muted, #607089);
  font-size: .98rem;
  line-height: 1.72;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.gea-faq-item summary:hover {
  background: rgba(1, 25, 73, .025);
}

.gea-faq-item summary:focus-visible {
  outline: 3px solid #ffb52c;
  outline-offset: -3px;
  border-radius: 14px;
}

.gea-faq-item.is-animating {
  overflow: hidden;
  will-change: height;
}

html[data-theme="dark"] .gea-service-faq {
  background: #041630;
}

html[data-theme="dark"] .gea-faq-item {
  border-color: rgba(255, 255, 255, .14);
  background: #071f45;
  box-shadow: none;
}

html[data-theme="dark"] .gea-faq-item[open] {
  border-color: rgba(254, 134, 1, .5);
}

html[data-theme="dark"] .gea-faq-item summary,
html[data-theme="dark"] .gea-faq-item[open] summary {
  color: #fff;
}

html[data-theme="dark"] .gea-faq-toggle {
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .05);
  color: #fff;
}

html[data-theme="dark"] .gea-faq-item[open] .gea-faq-toggle {
  border-color: var(--gea-copper, #fe8601);
  background: var(--gea-copper, #fe8601);
}

html[data-theme="dark"] .gea-faq-answer p {
  color: #c8d2e0;
}

html[data-theme="dark"] .gea-faq-item summary:hover {
  background: rgba(255, 255, 255, .035);
}

@media (max-width: 760px) {
  .gea-service-faq .section-heading {
    margin-bottom: 28px;
  }

  .gea-faq-list {
    gap: 12px;
  }

  .gea-faq-item {
    border-radius: 14px;
  }

  .gea-faq-item summary {
    min-height: 76px;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    gap: 12px;
    padding: 18px 20px;
    font-size: clamp(.98rem, 4.2vw, 1.06rem);
    line-height: 1.4;
  }

  .gea-faq-index {
    font-size: 1.38rem;
  }

  .gea-faq-toggle {
    width: 40px;
    height: 40px;
  }

  .gea-faq-toggle svg {
    width: 18px;
    height: 18px;
  }

  .gea-faq-answer p {
    padding: 0 84px 24px;
    font-size: .94rem;
    line-height: 1.66;
  }
}

@media (max-width: 420px) {
  .gea-faq-item summary {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    gap: 9px;
    padding: 16px;
  }

  .gea-faq-index {
    font-size: 1.3rem;
  }

  .gea-faq-toggle {
    width: 36px;
    height: 36px;
  }

  .gea-faq-answer p {
    padding: 0 70px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gea-faq-item summary,
  .gea-faq-toggle,
  .gea-faq-toggle svg {
    transition: none !important;
  }
}
