:root {
  /* --teal-dark/--amber NO se redeclaran aquí -- este archivo carga
     después de landing.css, que ya define los valores institucionales
     reales (#024F52/#EB7A01). Esta página los sobreescribía con un tono
     viejo (#086278/#f58220), afectando el navbar/footer compartidos
     (que viven en landing.css y usan var(--teal-dark)/var(--amber)) --
     bug real encontrado por el dueño (2026-09-30), confirmado con
     getComputedStyle: #086278 aquí vs. #024F52 en el resto del sitio. */
  --teal: #036469;
  --teal-soft: #e8f3f1;
  --ink: #263b43;
  --muted: #687a80;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { height: auto; overflow-y: auto; scroll-snap-type: none; }
/* .snap-sec--footer trae min-height:50vh de landing.css (plomería del
   scroll-snap de la landing original, para que el footer sea "alcanzable"
   como punto de parada) -- sin sentido en una página standalone con
   scroll normal, dejaba un hueco en blanco enorme después del footer
   real. Bug real encontrado por el dueño (2026-09-30), presente desde
   la primera página standalone (FAQ/Privacidad), nunca corregido del
   todo -- confirmado con captura real en /simulador antes de corregirlo
   aquí y en el resto de páginas standalone. */
.snap-sec--footer { min-height: 0; }
body {
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(circle at 8% 5%, rgba(3, 100, 105,.11), transparent 28%), #f4f8f7;
  font-family: var(--font-body);
}
.faq-page { min-height: 100vh; overflow-x: hidden; }
.faq-page .navbar { position: fixed; }
main { width: min(1180px, calc(100% - 34px)); margin: 0 auto; padding: 178px 0 52px; }
.faq-layout { display: grid; grid-template-columns: minmax(260px, .68fr) minmax(440px, 1.32fr); gap: 38px; align-items: start; }
.faq-hero {
  position: sticky;
  top: 24px;
  padding: 35px 30px;
  text-align: left;
  border: 1px solid rgba(3, 100, 105,.18);
  border-top: 5px solid var(--teal);
  border-radius: 25px;
  background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(232,243,241,.92));
  box-shadow: 0 20px 48px rgba(15,78,85,.1);
}
.faq-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a8580f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
/* El h1 usa la clase compartida .page-hero-title (public/css/landing.css)
   -- .faq-hero ya es text-align: left, coincide con su default, sin
   ajuste propio necesario aquí. */
.faq-hero p { color: var(--muted); font-size: clamp(15px, 2vw, 18px); line-height: 1.65; }
.faq-hero-note { margin-top: 28px; padding-top: 20px; display: flex; align-items: center; gap: 11px; border-top: 1px solid rgba(3, 100, 105,.17); color: #62777b; font-size: 12px; line-height: 1.5; }
.faq-hero-note > i { width: 37px; height: 37px; flex: 0 0 37px; display: grid; place-items: center; color: #a8580f; background: #fff3df; border-radius: 11px; font-size: 18px; }
.faq-hero-note strong { display: block; color: var(--teal-dark); }
.faq-content { display: grid; gap: 12px; }
.faq-item {
  overflow: hidden;
  border: 1px solid rgba(3, 100, 105,.17);
  border-radius: 17px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 30px rgba(15,78,85,.07);
}
.faq-question {
  width: 100%;
  min-height: 70px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 38px 1fr 32px;
  align-items: center;
  gap: 14px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.faq-question:hover { background: #f6fbfa; }
.faq-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 11px;
  font-size: 12px;
  font-weight: 800;
}
.faq-question strong { font-size: 15px; line-height: 1.4; }
.faq-question > i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 50%;
  transition: transform .2s ease;
}
.faq-question[aria-expanded="true"] > i { transform: rotate(45deg); }
.faq-empty-public { padding: 65px 22px; text-align: center; border: 1px dashed rgba(3, 100, 105,.3); border-radius: 20px; background: #fff; }
.faq-content:has(.faq-empty-public) { grid-template-columns: minmax(0, 680px); justify-content: center; }
.faq-empty-public { width: 100%; min-height: 330px; display: grid; align-content: center; justify-items: center; }
.faq-empty-public i { color: var(--teal); font-size: 42px; }
.faq-empty-public h2 { margin: 10px 0 5px; color: var(--teal-dark); font-family: var(--font-display); }
.faq-empty-public p { color: var(--muted); }

/* Composición propia de FAQ: conserva la identidad de la landing sin repetir
   el esquema editorial de texto lateral + acordeón de la página anterior. */
.faq-page main {
  position: relative;
  width: min(1480px, calc(100% - 42px));
  padding-top: 128px;
  padding-bottom: 8px;
}
.faq-page main::before,
.faq-page main::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.faq-page main::before {
  width: 330px;
  height: 330px;
  top: 120px;
  right: -160px;
  border: 46px solid rgba(3, 100, 105,.07);
}
.faq-page main::after {
  width: 180px;
  height: 180px;
  left: -95px;
  bottom: 95px;
  background: rgba(235,122,1,.055);
}
.faq-layout {
  display: block;
}
.faq-hero {
  position: static;
  width: min(760px, 100%);
  margin: 0 auto 24px;
  padding: 0;
  text-align: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.faq-eyebrow { justify-content: center; }
.faq-hero h1 {
  margin: 5px 0 15px;
  font-size: clamp(38px, 4vw, 54px);
}
.faq-hero h1::after {
  margin-inline: auto;
  width: 76px;
  border-radius: 99px;
}
.faq-hero p { max-width: 690px; margin: 0 auto; }
.faq-hero-note {
  width: fit-content;
  margin: 13px auto 0;
  padding: 7px 12px;
  gap: 8px;
  border: 1px solid rgba(3, 100, 105,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.76);
}
.faq-hero-note > i {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  border-radius: 50%;
  font-size: 14px;
}
.faq-hero-note span { display: flex; gap: 4px; }
.faq-hero-note strong { display: inline; }
.faq-explorer {
  width: min(1040px, 100%);
  margin: 30px auto 26px;
  display: grid;
  gap: 14px;
}
.faq-search {
  position: relative;
  width: min(620px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.faq-search > i {
  position: absolute;
  left: 17px;
  color: var(--teal);
  font-size: 20px;
  pointer-events: none;
}
.faq-search input {
  width: 100%;
  height: 50px;
  padding: 0 50px 0 49px;
  border: 1px solid rgba(3, 100, 105,.24);
  border-radius: 15px;
  outline: 0;
  color: var(--ink);
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 28px rgba(15,78,85,.07);
  font: inherit;
  font-size: 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-search input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(3, 100, 105,.1), 0 10px 28px rgba(15,78,85,.08);
}
.faq-search button {
  position: absolute;
  right: 10px;
  width: 32px;
  height: 32px;
  display: none;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: var(--teal-soft);
  cursor: pointer;
}
.faq-search button.is-visible { display: grid; }
.faq-category-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.faq-category-tabs button {
  min-height: 62px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(3, 100, 105,.19);
  border-radius: 15px;
  color: #50666d;
  background: rgba(255,255,255,.82);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}
.faq-category-tabs button:hover { transform: translateY(-2px); color: var(--teal-dark); }
.faq-category-tabs button > span {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 10px;
  color: var(--teal);
  background: var(--teal-soft);
  font-size: 11px;
  font-weight: 800;
}
.faq-category-tabs button.is-active {
  color: #fff;
  border-color: var(--teal);
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  box-shadow: 0 12px 26px rgba(8,98,120,.2);
}
.faq-category-tabs button.is-active > span { color: var(--teal-dark); background: #fff; }
.faq-content {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.faq-item {
  position: relative;
  border-radius: 19px;
  border-color: rgba(3, 100, 105,.21);
  box-shadow: 0 13px 30px rgba(15,78,85,.08);
}
.faq-item::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--teal);
}
.faq-item:nth-child(4n+2)::before,
.faq-item:nth-child(4n+3)::before { background: var(--amber); }
.faq-question {
  min-height: 82px;
  grid-template-columns: 1fr 38px;
  padding: 16px 18px 16px 23px;
}
.faq-number { display: none; }
.faq-question strong { font-size: 15px; }

@media (max-width: 980px) {
  .faq-page main { width: min(100% - 28px, 640px); padding-top: 135px; }
  .faq-content { grid-template-columns: 1fr; }
  .faq-hero { margin-bottom: 28px; }
  .faq-hero-note span { display: block; }
  .faq-question { grid-template-columns: 1fr 34px; }
}

/* Ajuste final al lenguaje visual existente de la landing. */
.faq-page main::before,
.faq-page main::after { content: none; }
.faq-content {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}
.faq-item {
  min-height: 104px;
  border: 1px solid rgba(3, 100, 105,.2);
  border-top: 4px solid var(--teal);
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 15px 34px rgba(15,78,85,.09);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.faq-item::before { content: none; }
.faq-item:nth-child(3n+2) { border-top-color: var(--amber); }
.faq-item:hover {
  transform: translateY(-4px);
  border-color: rgba(3, 100, 105,.36);
  box-shadow: 0 20px 42px rgba(15,78,85,.14);
}
.faq-item[hidden],
.faq-no-results[hidden] { display: none !important; }
.faq-no-results {
  width: min(560px, 100%);
  min-height: 190px;
  margin: 18px auto 0;
  padding: 28px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed rgba(3, 100, 105,.3);
  border-radius: 20px;
  background: rgba(255,255,255,.78);
}
.faq-no-results i { color: var(--teal); font-size: 34px; }
.faq-no-results strong { color: var(--teal-dark); font-size: 17px; }
.faq-no-results span { font-size: 13px; }
.faq-question {
  min-height: 100px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: 1fr auto;
  align-items: start;
  gap: 13px;
}
.faq-card-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--teal);
  background: var(--teal-light);
  border-radius: 12px;
  font-size: 18px;
}
.faq-question strong { padding-top: 5px; font-size: 14px; line-height: 1.4; }
.faq-bottom-wave,
.faq-page .sec-wave-top--desktop {
  display: block !important;
  position: absolute !important;
  bottom: 0 !important;
  /* El main está centrado y tiene ancho máximo; la onda debe llegar al viewport. */
  left: calc(50% - 50vw) !important;
  right: auto !important;
  width: 100vw !important;
  height: 90px !important;
  z-index: 1 !important;
  margin: 0 !important;
  pointer-events: none !important;
  line-height: 0 !important;
  overflow: hidden !important;
  transition: opacity 0.35s ease, transform 0.35s ease !important;
}
.faq-bottom-wave svg,
.faq-page .sec-wave-top--desktop svg {
  height: 90px !important;
  width: 100% !important;
  display: block !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
}
.faq-bottom-wave__front { z-index: 1; }

.is-footer-approaching .faq-bottom-wave,
.is-footer-approaching .sec-wave-top--desktop {
  opacity: 0 !important;
  transform: translateY(20px) !important;
  pointer-events: none !important;
}


@media (max-width: 1050px) {
  .faq-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .faq-explorer { margin-top: 24px; }
  .faq-category-tabs {
    display: flex;
    padding: 2px 1px 9px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }
  .faq-category-tabs button { flex: 0 0 min(280px, 82vw); scroll-snap-align: start; }
}
@media (max-width: 650px) {
  .faq-content { grid-template-columns: 1fr; }
  .faq-item,
  .faq-question { min-height: 126px; }
  .faq-bottom-wave { height: 88px; }
  .faq-empty-public { min-height: 270px; }
}

.faq-page main {
  position: relative;
  min-height: 100dvh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 96px;
  padding-bottom: 90px;
}
.faq-page .faq-layout {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}
.faq-hero { width: min(720px, 100%); margin: 0 auto 12px; text-align: center; }
.faq-hero h1,
.page-hero-title {
  margin: 2px 0 8px;
  font-size: 28px !important;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  color: var(--teal-dark);
}
.faq-hero h1::after,
.page-hero-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  margin: 6px auto 0;
  border-radius: 999px;
  background: var(--amber);
}
.faq-hero p { font-size: 14px; line-height: 1.45; color: var(--muted); max-width: 580px; margin: 0 auto; }
.faq-hero-note { margin: 8px auto 0; padding: 4px 12px; font-size: 11.5px; border-radius: 999px; }
.faq-explorer { margin: 14px auto 16px; gap: 14px; }
.faq-search {
  width: min(760px, 100%);
  display: none;
}
.faq-search input { height: 42px; border-radius: 12px; box-shadow: 0 7px 20px rgba(15,78,85,.055); }
.faq-category-tabs {
  max-width: 740px;
  margin: 0 auto;
  gap: 8px;
}
.faq-category-tabs button {
  min-height: 40px;
  padding: 6px 16px;
  justify-content: center;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.faq-category-tabs button > span {
  min-width: 31px;
  height: 31px;
  flex-basis: 31px;
  border-radius: 9px;
}
.faq-category-tabs button.is-active { box-shadow: 0 8px 20px rgba(8,98,120,.16); }
.faq-content { gap: 10px 13px; }
.faq-item {
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(3, 100, 105,.18);
  border-left: 3px solid var(--teal);
  border-top-width: 1px;
  border-radius: 13px;
  box-shadow: 0 7px 20px rgba(15,78,85,.055);
}
.faq-item:nth-child(3n+2) { border-top-color: rgba(3, 100, 105,.18); }
.faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(3, 100, 105,.34);
  border-left-color: var(--amber);
  box-shadow: 0 11px 26px rgba(15,78,85,.09);
}
.faq-question {
  min-height: 70px;
  padding: 11px 13px;
  grid-template-columns: 34px minmax(0, 1fr) 30px;
  grid-template-rows: 1fr;
  align-items: center;
  gap: 11px;
}
.faq-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 16px;
}
.faq-question strong { padding: 0; font-size: 13px; line-height: 1.35; }

@media (max-width: 650px) {
  .faq-page main { padding-top: 132px; }
  .faq-hero h1 { font-size: clamp(30px, 10vw, 38px); }
  .faq-item,
  .faq-question { min-height: 68px; }
  .faq-question { grid-template-columns: 32px minmax(0, 1fr) 28px; padding: 10px 11px; gap: 9px; }
  .faq-card-icon { width: 30px; height: 30px; }
}

/* Baraja interactiva de preguntas y respuestas. */
.faq-content {
  min-height: 190px;
  padding: 4px 7px 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  overflow: visible;
}
.faq-item {
  position: relative;
  z-index: 1;
  width: auto;
  height: 114px;
  min-width: 0;
  margin-left: -3px;
  display: grid;
  grid-template-columns: minmax(0, 268px) minmax(0, 1fr);
  flex: 1 1 262px;
  max-width: 280px;
  overflow: hidden;
  border: 0;
  border-radius: 0 !important;
  background: #fff;
  clip-path: polygon(28px 0, 100% 0, calc(100% - 28px) 100%, 0 100%);
  box-shadow: none;
  filter:
    drop-shadow(0 0 1px rgba(3, 100, 105,.5))
    drop-shadow(0 6px 7px rgba(8,74,84,.1));
  transition: flex-basis .26s cubic-bezier(.2,.75,.25,1),
              flex-grow .26s cubic-bezier(.2,.75,.25,1),
              height .26s cubic-bezier(.2,.75,.25,1),
              transform .2s ease,
              filter .2s ease;
}
.faq-item:first-child { margin-left: 0; }
.faq-item:not(.is-active)::after {
  content: '';
  position: absolute;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  background: rgba(3, 100, 105,.3);
  clip-path: polygon(calc(100% - 1px) 0, 100% 0, calc(100% - 28px) 100%, calc(100% - 29px) 100%);
}
.faq-item.is-active {
  position: absolute;
  z-index: 30;
  top: 50%;
  left: 50%;
  width: min(820px, 64vw);
  flex: none;
  height: 184px;
  max-width: none;
  transform: translate(-50%, -50%);
  box-shadow: none;
  filter:
    drop-shadow(10px 12px 9px rgba(8,74,84,.22))
    drop-shadow(2px 3px 2px rgba(8,74,84,.1));
  animation: faq-card-reveal .22s ease-out both;
}
@keyframes faq-card-reveal {
  from { opacity: .72; transform: translate(-50%, -50%) scale(.975); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item { transition: none; }
  .faq-item.is-active { animation: none; }
}
.faq-content:has(.faq-item.is-active) .faq-item:not(.is-active) {
  pointer-events: none;
}
.faq-item.is-active::after {
  content: '';
  position: absolute;
  z-index: 40;
  inset: 0;
  pointer-events: none;
  background: rgba(3, 100, 105,.34);
  clip-path: polygon(calc(100% - 2px) 0, 100% 0, calc(100% - 28px) 100%, calc(100% - 30px) 100%);
}
.faq-question {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 11px 35px 11px 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 10px;
  border-right: 0;
  background: transparent;
}
.faq-question::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(155deg, #ffffff 0%, #edf6f4 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
  box-shadow:
    inset 0 1px rgba(3, 100, 105,.3),
    inset 0 -1px rgba(3, 100, 105,.3);
}
.faq-question::after {
  content: '';
  position: absolute;
  z-index: 3;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: var(--amber);
  clip-path: polygon(calc(100% - 3px) 0, 100% 0, calc(100% - 18px) 100%, calc(100% - 21px) 100%);
  transform: none;
  box-shadow: 1px 0 0 rgba(255,255,255,.28);
  opacity: 0;
}
.faq-item.is-active .faq-question::after { opacity: 1; }
.faq-question:hover { background: transparent; }
.faq-question:hover::before { background: linear-gradient(155deg, #168b89 0%, #086278 100%); }
.faq-item.is-active .faq-question::before {
  background: linear-gradient(155deg, #168b89 0%, #086278 100%);
}
.faq-item.is-active .faq-question {
  padding-inline: 27px;
}
.faq-question strong {
  position: relative;
  z-index: 2;
  align-self: stretch;
  margin: auto 0;
  padding: 0;
  overflow: visible;
  color: var(--teal-dark);
  font-family: var(--font-display);
  font-size: 15.5px;
  line-height: 1.28;
  text-wrap: balance;
  text-align: center;
}
.faq-question:hover strong,
.faq-item.is-active .faq-question strong { color: #fff; }
.faq-item.is-active .faq-question strong {
  max-width: 230px;
  margin-inline: auto;
  font-size: 17.5px;
  line-height: 1.25;
  text-align: center;
}
.faq-inline-answer {
  position: relative;
  min-width: 0;
  padding: 20px 28px 18px;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  overflow-y: auto;
  opacity: 0;
  color: #536970;
  background: linear-gradient(105deg, #fff 0%, #fff 82%, #f5faf9 100%);
  box-shadow: inset 0 1px rgba(3, 100, 105,.22), inset 0 -1px rgba(3, 100, 105,.22);
  transform: translateX(22px);
  pointer-events: none;
  scrollbar-width: none;
  transition: opacity .2s ease .06s, transform .32s ease .06s;
}
.faq-inline-answer::-webkit-scrollbar { display: none; }
.faq-item.is-active .faq-inline-answer {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.faq-inline-answer__label {
  display: block;
  margin-bottom: 10px;
  color: #a65a00;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.faq-inline-answer .faq-rich-answer {
  padding-right: 4px;
  font-size: 14.5px;
  line-height: 1.55;
}
.faq-inline-answer .faq-rich-answer::before {
  content: '';
  float: right;
  width: 30px;
  height: 105px;
  shape-outside: polygon(100% 0, 100% 100%, 0 100%);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.faq-inline-answer .faq-rich-answer ul,
.faq-inline-answer .faq-rich-answer ol { padding-left: 20px; }
.faq-inline-answer .faq-rich-answer li + li { margin-top: 5px; }
.faq-inline-answer .rt-teal { color: #036469; }
.faq-inline-answer .rt-amber { color: #9a5c00; }
.faq-inline-answer .rt-ink { color: #263b43; }
.faq-inline-answer .rt-align-left { text-align: left; }
.faq-inline-answer .rt-align-center { text-align: center; }
.faq-inline-answer .rt-align-right { text-align: right; }
.faq-inline-answer .rt-align-justify { text-align: justify; }

@media (max-width: 980px) {
  .faq-content:has(.faq-item.is-active) .faq-item:not(.is-active) {
    pointer-events: auto;
  }
  .faq-content {
    min-height: 0;
    padding: 2px 0 8px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    overflow: visible;
  }
  .faq-item,
  .faq-item.is-active {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    margin-left: 0;
    display: block;
    transform: none;
    clip-path: none;
    border-radius: 13px;
  }
  .faq-item.is-active::after { content: none; }
  .faq-item.is-active { animation: none; filter: drop-shadow(0 7px 9px rgba(8,74,84,.1)); }
  .faq-question {
    height: auto;
    min-height: 66px;
    padding: 11px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr;
    align-items: center;
    border-right: 0;
  }
  .faq-question strong {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    font-size: 13px;
  }
  .faq-question strong::before { content: none; }
  .faq-question::after {
    top: auto;
    right: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    transform: none;
    clip-path: none;
  }
  .faq-question::before { clip-path: none; border-radius: 12px 12px 0 0; }
  .faq-inline-answer {
    max-height: 0;
    padding: 0 17px;
    overflow: hidden;
    opacity: 0;
    border-top: 0 solid rgba(3, 100, 105,.13);
    transform: none;
    justify-content: flex-start;
    transition: max-height .38s ease, padding .3s ease, opacity .2s ease, border-width .2s ease;
  }
  .faq-item.is-active .faq-inline-answer {
    max-height: 520px;
    padding: 17px;
    overflow-y: auto;
    opacity: 1;
    border-top-width: 1px;
  }
  .faq-inline-answer .faq-rich-answer::before { content: none; }
}

/* Tarjetas de preguntas: cuatro por fila equilibradas para 1520x722. */
.faq-content {
  width: min(1180px, calc(100vw - 64px));
  min-height: 0;
  padding: 0 0 10px;
  position: relative;
  left: 50%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 12px 14px;
  transform: translateX(-50%);
}
.faq-content:has(.faq-empty-public) {
  width: 100%;
  left: auto;
  display: grid;
  transform: none;
}
.faq-content:has(.faq-item.is-active) {
  left: auto;
  margin-inline: auto;
  transform: none;
}
.faq-item {
  width: auto;
  height: 86px;
  min-height: 86px;
  max-width: none;
  margin: 0;
  flex: 0 1 calc((100% - 42px) / 4);
  display: block;
  overflow: hidden;
  clip-path: none;
  border: 1px solid rgba(3, 100, 105, .17);
  border-radius: 14px !important;
  background: rgba(255, 255, 255, .96);
  filter: none;
  box-shadow: 0 8px 22px rgba(15, 78, 85, .06);
  transition: transform .2s ease, filter .25s ease, opacity .25s ease, box-shadow .2s ease;
  cursor: pointer;
  position: relative;
}
/* Pedacito de border superior característico aprobado por marketing */
.faq-item::before {
  content: '';
  position: absolute;
  z-index: 2;
  top: 0;
  left: 20px;
  width: 55px;
  height: 3.5px;
  border-radius: 0 0 3px 3px;
  background: var(--amber);
}
.faq-item:not(.is-active)::after,
.faq-item.is-active::after { content: none; }
.faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(3, 100, 105, .32);
  box-shadow: 0 12px 28px rgba(15, 78, 85, .1);
}

.faq-question,
.faq-item.is-active .faq-question {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 10px 14px 10px 12px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.faq-question::before,
.faq-question::after { content: none; }
.faq-card-leading {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
}
.faq-number {
  position: absolute;
  right: 10px;
  bottom: 7px;
  width: 22px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #76aaa9;
  background: #e0efed;
  font-size: 10.5px;
  font-weight: 800;
}
.faq-card-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--teal-dark);
  background: #e4f1ef;
  font-size: 18px;
}
.faq-question strong {
  grid-column: 2;
  grid-row: 1;
  max-width: none;
  margin: 0;
  padding: 0;
  align-self: center;
  color: var(--teal-dark);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.28;
  text-align: left;
}
.faq-question:hover strong { color: var(--teal-dark); }

/* Backdrop del modal */
.faq-backdrop {
  position: fixed;
  inset: 0;
  z-index: 480;
  background: rgba(4, 31, 38, .38);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
body.has-faq-modal-open .faq-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* El diálogo crece con la respuesta; solo los textos extensos desplazan su panel. */
.faq-item.is-active {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 500 !important;
  width: min(560px, 92vw) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: min(650px, calc(100dvh - 48px)) !important;
  flex: none !important;
  display: flex !important;
  flex-direction: column !important;
  border: 1px solid rgba(3, 100, 105, .25) !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 25px 60px rgba(2, 40, 45, .32), 0 0 0 1px rgba(3, 100, 105, .2) !important;
  overflow: hidden !important;
  animation: faqModalPop .22s cubic-bezier(.2, .8, .25, 1) both;
}
@keyframes faqModalPop {
  from { opacity: .7; transform: translate(-50%, -48%) scale(.96); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.faq-item.is-active .faq-question {
  height: auto !important;
  min-height: 100px !important;
  padding: 20px 24px !important;
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 20px !important;
  border-right: 0 !important;
  background: radial-gradient(circle at 5% 0%, #117f82 0%, transparent 56%),
              linear-gradient(155deg, #036469 0%, #024F52 100%) !important;
  cursor: default !important;
}
.faq-item.is-active .faq-card-leading {
  position: relative;
  width: 60px;
  flex: 0 0 60px;
  display: flex;
  justify-content: flex-start;
}
.faq-item.is-active .faq-card-icon {
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 16px;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  font-size: 29px;
}
.faq-item.is-active .faq-number { display: none; }
.faq-item.is-active .faq-question strong {
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  flex: 1 1 auto;
  font-size: 24px !important; /* REGLA INSTITUCIONAL: 24px dentro de cards */
  font-family: var(--font-display) !important;
  font-weight: 750 !important;
  line-height: 1.25 !important;
  color: #fff !important;
  text-align: left !important;
}

.faq-inline-answer { box-shadow: none; }
.faq-item.is-active .faq-inline-answer {
  position: relative;
  min-height: 0;
  padding: 20px 24px 24px;
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  max-height: min(500px, calc(100dvh - 174px));
  background: #fff;
  color: #435b62;
  scrollbar-width: thin;
  scrollbar-color: rgba(3, 100, 105, .3) transparent;
}
.faq-item.is-active .faq-inline-answer::-webkit-scrollbar {
  width: 5px;
}
.faq-item.is-active .faq-inline-answer::-webkit-scrollbar-thumb {
  background: rgba(3, 100, 105, .3);
  border-radius: 99px;
}

.faq-card-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(3, 100, 105, .18);
  border-radius: 50%;
  color: var(--teal-dark);
  background: #eef5f4;
  cursor: pointer;
  font-size: 16px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
  z-index: 10;
}
.faq-card-close:hover {
  background: var(--teal);
  color: #fff;
  transform: rotate(90deg);
}

@media (max-width: 1200px) {
  .faq-item { flex-basis: calc((100% - 28px) / 3); }
}
@media (min-width: 981px) {
  .faq-page main { padding-top: 104px; }
  .faq-explorer { margin-top: 14px; margin-bottom: 16px; }
}
@media (max-width: 980px) {
  .faq-content {
    width: 100%;
    left: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    transform: none;
  }
  .faq-item,
  .faq-item.is-active {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 128px !important;
    max-height: none !important;
    display: block !important;
    transform: none !important;
    animation: none !important;
  }
  .faq-question,
  .faq-item.is-active .faq-question {
    height: auto;
    min-height: 128px;
    padding: 14px 17px !important;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 11px;
    border-right: 0;
  }
  .faq-item.is-active .faq-question {
    min-height: 112px !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
  }
  .faq-item.is-active .faq-card-leading { width: 48px; flex: 0 0 48px; }
  .faq-item.is-active .faq-card-icon { width: 48px; height: 48px; font-size: 24px; }
  .faq-item.is-active .faq-number { display: none; }
  .faq-item.is-active .faq-question strong { font-size: 17px !important; }
  .faq-item.is-active .faq-inline-answer { padding: 17px; }
}
@media (max-width: 650px) {
  .faq-content { grid-template-columns: minmax(0, 1fr); }
  .faq-question,
  .faq-item.is-active .faq-question { min-height: 112px; }
  .faq-question strong,
  .faq-item.is-active .faq-question strong { font-size: 15px; }
  .faq-card-icon { width: 46px; height: 46px; font-size: 24px; }
  .faq-number { right: 12px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item { transition: none; }
}
