/* ==========================================================
   DOCTORASO — FAQ COMÚN PREMIUM
   Acordeón reutilizable sin JavaScript, compatible con:
   - .aso-faq
   - .aso-home-faq
   Archivo sugerido: /wp-content/uploads/doctoraso-css/faqs-comun.css
   ========================================================== */

:is(.aso-faq, .aso-home-faq) {
  --aso-faq-blue: #1f6f98;
  --aso-faq-blue-dark: #155a7d;
  --aso-faq-blue-deep: #0f4866;
  --aso-faq-sky: #eaf7ff;
  --aso-faq-sky-soft: #f7fcff;
  --aso-faq-coral: #ef6b67;
  --aso-faq-purple: #7b4bb3;
  --aso-faq-text: #263846;
  --aso-faq-muted: #667789;
  --aso-faq-border: rgba(31,111,152,.15);
  --aso-faq-shadow: 0 24px 58px rgba(31,111,152,.12);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 76px 22px 82px;
  background:
    radial-gradient(circle at 8% 10%, rgba(31,111,152,.08), transparent 30%),
    radial-gradient(circle at 92% 88%, rgba(239,107,103,.065), transparent 32%),
    linear-gradient(135deg, #fff 0%, #f7fcff 54%, #eaf7ff 100%);
}

:is(.aso-faq, .aso-home-faq),
:is(.aso-faq, .aso-home-faq) *,
:is(.aso-faq, .aso-home-faq) *::before,
:is(.aso-faq, .aso-home-faq) *::after {
  box-sizing: border-box;
}

:is(.aso-faq, .aso-home-faq)::before,
:is(.aso-faq, .aso-home-faq)::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
}

:is(.aso-faq, .aso-home-faq)::before {
  top: -135px;
  right: -145px;
  width: 380px;
  height: 380px;
  background: rgba(31,111,152,.07);
}

:is(.aso-faq, .aso-home-faq)::after {
  left: -170px;
  bottom: -180px;
  width: 430px;
  height: 430px;
  background: rgba(234,247,255,.95);
}

:is(.aso-faq, .aso-home-faq) :is(.aso-faq__wrap, .aso-home-faq__wrap) {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
}

:is(.aso-faq, .aso-home-faq) :is(.aso-faq__head, .aso-home-faq__head) {
  max-width: 840px;
  margin: 0 auto 36px;
  text-align: center;
}

:is(.aso-faq, .aso-home-faq) :is(.aso-faq__kicker, .aso-home-faq__kicker) {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--aso-faq-coral);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

:is(.aso-faq, .aso-home-faq) :is(.aso-faq__kicker, .aso-home-faq__kicker)::before,
:is(.aso-faq, .aso-home-faq) :is(.aso-faq__kicker, .aso-home-faq__kicker)::after {
  content: "";
  width: 26px;
  height: 1px;
  background: rgba(239,107,103,.58);
}

:is(.aso-faq, .aso-home-faq) :is(.aso-faq__head, .aso-home-faq__head) h2 {
  margin: 0 0 16px;
  color: var(--aso-faq-blue-dark);
  text-align: center !important;
  font-family: Alice, Georgia, serif;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.06;
  font-weight: 400;
  letter-spacing: -.035em;
}

:is(.aso-faq, .aso-home-faq) :is(.aso-faq__lead, .aso-home-faq__lead) {
  max-width: 760px;
  margin: 0 auto;
  color: var(--aso-faq-text);
  text-align: center !important;
  font-size: 18px;
  line-height: 1.68;
}

:is(.aso-faq, .aso-home-faq) :is(.aso-faq__list, .aso-home-faq__list) {
  display: grid;
  gap: 13px;
}

:is(.aso-faq, .aso-home-faq) :is(.aso-faq__list, .aso-home-faq__list) > details {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(31,111,152,.14);
  border-radius: 17px;
  box-shadow: 0 16px 38px rgba(31,111,152,.08);
  transition:
    border-color .22s ease,
    box-shadow .22s ease,
    background-color .22s ease,
    transform .22s ease;
}

:is(.aso-faq, .aso-home-faq) :is(.aso-faq__list, .aso-home-faq__list) > details::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--aso-faq-blue-dark), var(--aso-faq-blue));
  opacity: .9;
}

:is(.aso-faq, .aso-home-faq) :is(.aso-faq__list, .aso-home-faq__list) > details:nth-child(3n+2)::before {
  background: linear-gradient(90deg, var(--aso-faq-coral), #f29b96);
}

:is(.aso-faq, .aso-home-faq) :is(.aso-faq__list, .aso-home-faq__list) > details:nth-child(3n+3)::before {
  background: linear-gradient(90deg, var(--aso-faq-purple), #a378ca);
}

:is(.aso-faq, .aso-home-faq) :is(.aso-faq__list, .aso-home-faq__list) > details[open] {
  background: #fff;
  border-color: rgba(31,111,152,.25);
  box-shadow: 0 24px 54px rgba(31,111,152,.14);
}

:is(.aso-faq, .aso-home-faq) :is(.aso-faq__list, .aso-home-faq__list) > details:hover {
  transform: translateY(-2px);
  border-color: rgba(31,111,152,.23);
  box-shadow: 0 22px 48px rgba(31,111,152,.12);
}

:is(.aso-faq, .aso-home-faq) :is(.aso-faq__list, .aso-home-faq__list) > details > summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 16px;
  align-items: center;
  min-height: 68px;
  padding: 20px 22px 18px;
  color: var(--aso-faq-blue-dark);
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  line-height: 1.32;
  font-weight: 850;
}

:is(.aso-faq, .aso-home-faq) summary::-webkit-details-marker {
  display: none;
}

:is(.aso-faq, .aso-home-faq) :is(.aso-faq__list, .aso-home-faq__list) > details > summary::after {
  content: "+";
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--aso-faq-blue-dark), var(--aso-faq-blue));
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(31,111,152,.18);
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  transition: transform .22s ease;
}

:is(.aso-faq, .aso-home-faq) :is(.aso-faq__list, .aso-home-faq__list) > details[open] > summary::after {
  content: "–";
  transform: rotate(180deg);
}

:is(.aso-faq, .aso-home-faq) :is(.aso-faq__list, .aso-home-faq__list) > details > summary:hover,
:is(.aso-faq, .aso-home-faq) :is(.aso-faq__list, .aso-home-faq__list) > details > summary:focus-visible {
  color: var(--aso-faq-blue-deep);
  outline: none;
}

:is(.aso-faq, .aso-home-faq) :is(.aso-faq__answer, .aso-home-faq__answer) {
  padding: 0 22px 22px;
  color: var(--aso-faq-muted);
}

:is(.aso-faq, .aso-home-faq) :is(.aso-faq__answer-inner, .aso-home-faq__answer-inner) {
  padding: 18px 20px 20px;
  background:
    radial-gradient(circle at 98% 0%, rgba(31,111,152,.055), transparent 35%),
    linear-gradient(135deg, #fff, #f7fcff);
  border: 1px solid rgba(31,111,152,.10);
  border-radius: 13px;
}

:is(.aso-faq, .aso-home-faq) :is(.aso-faq__answer, .aso-home-faq__answer) p,
:is(.aso-faq, .aso-home-faq) :is(.aso-faq__answer, .aso-home-faq__answer) li {
  color: var(--aso-faq-muted);
  text-align: left !important;
  font-size: 16px;
  line-height: 1.68;
}

:is(.aso-faq, .aso-home-faq) :is(.aso-faq__answer, .aso-home-faq__answer) p {
  margin: 0 0 14px;
}

:is(.aso-faq, .aso-home-faq) :is(.aso-faq__answer, .aso-home-faq__answer) p:last-child {
  margin-bottom: 0;
}

:is(.aso-faq, .aso-home-faq) :is(.aso-faq__answer, .aso-home-faq__answer) ul,
:is(.aso-faq, .aso-home-faq) :is(.aso-faq__answer, .aso-home-faq__answer) ol {
  margin: 13px 0 16px;
  padding-left: 21px;
}

:is(.aso-faq, .aso-home-faq) :is(.aso-faq__answer, .aso-home-faq__answer) li {
  margin-bottom: 10px;
}

:is(.aso-faq, .aso-home-faq) :is(.aso-faq__answer, .aso-home-faq__answer) strong {
  color: var(--aso-faq-blue-dark);
  font-weight: 850;
}

:is(.aso-faq, .aso-home-faq) :is(.aso-faq__cta, .aso-home-faq__cta) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 32px;
  padding: 23px 26px;
  background:
    radial-gradient(circle at 96% 12%, rgba(255,255,255,.14), transparent 32%),
    linear-gradient(135deg, var(--aso-faq-blue-deep), var(--aso-faq-blue-dark) 52%, var(--aso-faq-blue));
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px;
  box-shadow: 0 24px 58px rgba(21,90,125,.20);
}

:is(.aso-faq, .aso-home-faq) :is(.aso-faq__cta, .aso-home-faq__cta) p {
  margin: 0;
  color: #fff;
  text-align: left !important;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 850;
}

:is(.aso-faq, .aso-home-faq) :is(.aso-faq__button, .aso-home-faq__button) {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  color: var(--aso-faq-blue-dark);
  background: #fff;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(7,29,45,.20);
  font-size: 15px;
  line-height: 1.16;
  font-weight: 900;
  text-align: center !important;
  text-decoration: none !important;
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    background-color .22s ease;
}

:is(.aso-faq, .aso-home-faq) :is(.aso-faq__button, .aso-home-faq__button):hover,
:is(.aso-faq, .aso-home-faq) :is(.aso-faq__button, .aso-home-faq__button):focus-visible {
  color: var(--aso-faq-blue-dark);
  background: var(--aso-faq-sky);
  text-decoration: none !important;
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(7,29,45,.26);
}

:is(.aso-faq, .aso-home-faq) :is(.aso-faq__button, .aso-home-faq__button):focus-visible {
  outline: 3px solid rgba(255,255,255,.50);
  outline-offset: 4px;
}

/* Variante opcional para páginas muy largas */
.aso-faq--compact {
  padding-top: 56px;
  padding-bottom: 62px;
}

body.aso-faq-page {
  overflow-x: clip;
}

@supports not (overflow: clip) {
  body.aso-faq-page {
    overflow-x: hidden;
  }
}

@media (max-width: 767px) {
  :is(.aso-faq, .aso-home-faq) {
    padding: 58px 16px 64px;
  }

  :is(.aso-faq, .aso-home-faq) :is(.aso-faq__head, .aso-home-faq__head) {
    margin-bottom: 28px;
  }

  :is(.aso-faq, .aso-home-faq) :is(.aso-faq__head, .aso-home-faq__head) h2 {
    font-size: 38px;
  }

  :is(.aso-faq, .aso-home-faq) :is(.aso-faq__lead, .aso-home-faq__lead) {
    font-size: 16px;
    line-height: 1.58;
  }

  :is(.aso-faq, .aso-home-faq) :is(.aso-faq__list, .aso-home-faq__list) > details > summary {
    grid-template-columns: minmax(0, 1fr) 30px;
    gap: 12px;
    min-height: 62px;
    padding: 17px 16px 15px;
    font-size: 16px;
    line-height: 1.34;
  }

  :is(.aso-faq, .aso-home-faq) :is(.aso-faq__list, .aso-home-faq__list) > details > summary::after {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }

  :is(.aso-faq, .aso-home-faq) :is(.aso-faq__answer, .aso-home-faq__answer) {
    padding: 0 14px 15px;
  }

  :is(.aso-faq, .aso-home-faq) :is(.aso-faq__answer-inner, .aso-home-faq__answer-inner) {
    padding: 16px 15px 17px;
  }

  :is(.aso-faq, .aso-home-faq) :is(.aso-faq__answer, .aso-home-faq__answer) p,
  :is(.aso-faq, .aso-home-faq) :is(.aso-faq__answer, .aso-home-faq__answer) li {
    font-size: 14.7px;
    line-height: 1.58;
  }

  :is(.aso-faq, .aso-home-faq) :is(.aso-faq__cta, .aso-home-faq__cta) {
    grid-template-columns: 1fr;
    padding: 22px 18px;
    text-align: center;
  }

  :is(.aso-faq, .aso-home-faq) :is(.aso-faq__cta, .aso-home-faq__cta) p {
    text-align: center !important;
    font-size: 16.5px;
  }

  :is(.aso-faq, .aso-home-faq) :is(.aso-faq__button, .aso-home-faq__button) {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.aso-faq, .aso-home-faq) :is(.aso-faq__list, .aso-home-faq__list) > details,
  :is(.aso-faq, .aso-home-faq) :is(.aso-faq__list, .aso-home-faq__list) > details > summary::after,
  :is(.aso-faq, .aso-home-faq) :is(.aso-faq__button, .aso-home-faq__button) {
    transition: none;
  }

  :is(.aso-faq, .aso-home-faq) :is(.aso-faq__list, .aso-home-faq__list) > details:hover,
  :is(.aso-faq, .aso-home-faq) :is(.aso-faq__button, .aso-home-faq__button):hover,
  :is(.aso-faq, .aso-home-faq) :is(.aso-faq__button, .aso-home-faq__button):focus-visible {
    transform: none;
  }
}
