/* ==========================================================
   SAT-18B-02B — CSS V1
   ESTADO: SAT18B_02B_HTML_CSS_V1_FROZEN

   Contrato:
   - CSS exclusivo para la familia psicométrica.
   - Todo queda scoped bajo .apl-psytest.
   - No define #content, .entry-content, H1, hero ni imagen destacada.
   - Resultado visual validado mediante QA humano sobre V0.4.
   - En producción debe vivir fuera del post_content (MU-plugin/CSS dedicado).
   ========================================================== */

.apl-psytest {
  --apl-white: #fff;
  --apl-ink: #ffffff;
  --apl-muted: #cbd9ec;
  --apl-soft: #a9c5e8;
  --apl-accent: #0094ff;
  --apl-accent-open: #0061a7;
  --apl-h2-border: #21539e;
  --apl-panel: linear-gradient(to bottom, #080427, #070d2d, #051434, #031a3a, #001f41);
  --apl-button: linear-gradient(135deg, #00477a 0%, #005893 46%, #003066 100%);
  --apl-button-hover: linear-gradient(135deg, #005893 0%, #0072bc 48%, #003c7d 100%);
  --apl-faq-bg: #010e20;
  --apl-faq-divider: #1e3a8a;
  color: var(--apl-ink);
  box-sizing: border-box;
}

.apl-psytest *,
.apl-psytest *::before,
.apl-psytest *::after {
  box-sizing: border-box;
}

.apl-psytest [id] {
  scroll-margin-top: 80px;
}

.apl-psytest p,
.apl-psytest li,
.apl-psytest dd {
  color: var(--apl-ink);
  line-height: 1.75;
}

.apl-psytest a {
  overflow-wrap: anywhere;
}

.apl-psytest h2.H2Post-Gray-NAlign {
  margin: 120px auto 30px;
  padding: 0 0 10px;
  border-bottom: 2px solid var(--apl-h2-border);
  color: var(--apl-white);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.35;
}

.apl-psytest h3.H3Post-Gray-NAlign {
  margin: 32px 0 14px;
  padding: 0;
  color: #f2f5f8;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
}

.apl-psytest .apl-info-card {
  border-radius: 8px;
  padding: 30px 28px;
  background-image: var(--apl-panel);
  box-shadow: inset 0 0 0 1px rgba(33, 83, 158, .42);
  margin: 18px 0 18px;
}

.apl-psytest .apl-info-card h3 {
  margin-top: 0;
  margin-bottom: 24px;
  color: var(--apl-ink);
  font-size: 21px;
  line-height: 1.25;
  font-weight: 500;
}

.apl-psytest .apl-info-card p {
  margin-bottom: 12px;
  color: var(--apl-ink);
  font-size: 16px;
  line-height: 1.72;
}

.apl-psytest .apl-info-card p:last-child {
  margin-bottom: 0;
}

.apl-psytest a.btn-largo-flecha {
  display: flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 48px;
  padding: 12px 44px 12px 21px;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.45;
  color: var(--apl-white) !important;
  background: var(--apl-button);
  border-radius: 8px;
  text-decoration: none !important;
  text-shadow: none;
  border: 0 !important;
}

.apl-psytest a.btn-largo-flecha:hover {
  background: var(--apl-button-hover);
  text-decoration: none !important;
}

.apl-psytest a.btn-largo-flecha::before {
  content: "›";
  position: absolute;
  right: 19px;
  top: 50%;
  transform: translateY(-50%);
  color: #15a8ff;
  font-size: 30px;
  line-height: 1;
}

.apl-psytest .apl-sat18c-summary {
  margin: 0;
}

.apl-psytest .apl-sat18c-summary dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--apl-h2-border);
  border-radius: 8px;
  background: var(--apl-h2-border);
}

.apl-psytest .apl-sat18c-summary dl > div {
  padding: 16px 18px;
  background: #010e20;
}

.apl-psytest .apl-sat18c-summary dt {
  color: #8fc8ff;
  font-weight: 600;
}

.apl-psytest .apl-sat18c-summary dd {
  margin: .25rem 0 0;
}

/* Espaciado exacto P1 → TOC principal.
   El shortcode aporta 28px inferiores y este wrapper agrega 92px:
   28 + 92 = 120px desktop.
   No usar [break] para esta compensación. */
.apl-psytest .apl-psytest-postad-toc-gap {
  padding-top: 92px;
}

.apl-psytest .apl-psytest-postad-toc-gap > .apl-mini-toc {
  margin-top: 0;
}

.apl-psytest .apl-mini-toc {
  background-image: var(--apl-panel);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(33, 83, 158, .38);
  overflow: hidden;
  padding: 0;
  margin: 15px 0 0;
  letter-spacing: .01em;
}

.apl-psytest .apl-mini-toc-title {
  margin: 0;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(33, 83, 158, .58);
  color: var(--apl-soft);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.apl-psytest .apl-mini-toc ul,
.apl-psytest .apl-mini-toc ol {
  display: grid;
  margin: 0 !important;
  padding: 0 !important;
}

.apl-psytest .apl-mini-toc li {
  list-style: none;
  margin: 0;
  border-bottom: 1px solid rgba(33, 83, 158, .28);
}

.apl-psytest .apl-mini-toc li:last-child {
  border-bottom: 0;
}

.apl-psytest .apl-mini-toc a {
  display: block;
  padding: 13px 22px;
  color: var(--apl-ink) !important;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
  text-decoration: none !important;
  border-bottom: 0;
}

.apl-psytest .apl-mini-toc a:hover {
  background: rgba(0, 148, 255, .08);
  text-decoration: none !important;
}

.apl-psytest .short-list {
  margin: 0 0 0 30px !important;
  padding: 0;
}

.apl-psytest .short-list li {
  margin: 0 0 15px;
}

.apl-psytest .psi-faq {
  margin-top: 35px;
}

.apl-psytest .psi-faq details {
  margin: 20px 0;
  border-radius: 10px;
  background: var(--apl-faq-bg);
  overflow: hidden;
  border: 0;
  transition: border-color .2s, box-shadow .2s;
}

.apl-psytest .psi-faq details[open] {
  box-shadow: 0 2px 8px rgb(0 0 0 / .12);
}

.apl-psytest .psi-faq summary {
  display: block;
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 14px 18px 14px 44px;
  border: 1px solid #003a67;
  border-radius: 8px;
  font-weight: 500;
  color: var(--apl-white);
  background: linear-gradient(180deg, #00477a 0%, #003b68 100%);
  user-select: none;
  font-family: "Segoe UI", Tahoma, sans-serif !important;
  line-height: 1.45;
}

.apl-psytest .psi-faq summary strong {
  font-weight: 500;
}

.apl-psytest .psi-faq summary::-webkit-details-marker,
.apl-psytest .psi-faq summary::marker {
  display: none;
}

.apl-psytest .psi-faq summary::before {
  content: "➤";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%) rotate(0);
  color: #18a8ff;
  transition: transform .25s, color .2s;
}

.apl-psytest .psi-faq details[open] summary::before {
  transform: translateY(-50%) rotate(90deg);
  color: var(--apl-accent-open);
}

.apl-psytest .psi-faq summary:hover {
  background: linear-gradient(180deg, #005893 0%, #00477a 100%);
}

.apl-psytest .psi-faq summary:focus-visible {
  outline: var(--apl-accent) solid 2px;
  outline-offset: 2px;
}

.apl-psytest .psi-faq details > :not(summary) {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--apl-faq-divider);
  background: var(--apl-faq-bg);
  color: var(--apl-white);
  line-height: 1.6;
}

.apl-psytest .psi-faq p {
  margin: 0;
  color: var(--apl-white);
}

.apl-psytest .psi-faq ul,
.apl-psytest .psi-faq ol {
  margin: 10px 0 0 !important;
  padding-left: 35px !important;
}

.apl-psytest .psi-faq li {
  margin: 0 0 10px;
}

.apl-psytest .psi-faq a {
  color: var(--apl-white);
  border-bottom: 1px dotted;
  text-decoration: none;
}

.apl-psytest .psi-faq a:hover {
  color: var(--apl-accent);
  border-bottom-color: var(--apl-accent);
  text-decoration: none;
}

.apl-psytest .apl-study-review {
  display: block;
  margin: 2rem 0;
  padding: 18px 22px;
  border: 1px solid var(--apl-h2-border);
  border-radius: 8px;
  background: rgba(1, 14, 32, .6);
  color: var(--apl-white);
  font-size: 15px;
  font-style: normal;
  line-height: 1.75;
}

.apl-psytest .apl-references {
  margin: 15px 0 0;
  overflow: hidden;
  border-radius: 8px;
  background-image: var(--apl-panel);
  box-shadow: inset 0 0 0 1px rgba(33, 83, 158, .38);
}

.apl-psytest .apl-references ul,
.apl-psytest .apl-references ol {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
}

.apl-psytest .apl-references li {
  list-style: none;
  margin: 0;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(33, 83, 158, .28);
  color: var(--apl-ink);
  font-size: 16px;
  line-height: 1.72;
}

.apl-psytest .apl-references li:last-child {
  border-bottom: 0;
}

.apl-psytest .apl-references a {
  display: inline;
  padding: 0;
  color: var(--apl-ink) !important;
  font-size: inherit;
  line-height: inherit;
  font-weight: 500;
  text-decoration: underline !important;
  border-bottom: 0;
}

.apl-psytest .apl-references a:hover {
  background: transparent;
  color: var(--apl-accent) !important;
}

@media (min-width: 721px) {
  .apl-psytest .psi-faq summary {
    font-size: 19px;
  }
}

@media (max-width: 768px) {
  .apl-psytest .apl-psytest-postad-toc-gap {
    padding-top: 68px;
  }

  .apl-psytest .apl-sat18c-summary dl {
    grid-template-columns: 1fr;
  }

  .apl-psytest h2.H2Post-Gray-NAlign {
    margin-top: 96px;
    font-size: 24px;
  }
}

@media (max-width: 720px) {
  .apl-psytest .psi-faq summary {
    font-size: 18px;
  }
}

@media screen and (max-width: 540px) {
  .apl-psytest .apl-info-card {
    padding: 18px;
  }

  .apl-psytest a.btn-largo-flecha {
    width: 100%;
  }

  .apl-psytest .apl-study-review {
    padding: 16px 18px;
  }
}

@media (max-width: 420px) {
  .apl-psytest .apl-study-review {
    padding: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apl-psytest .psi-faq summary,
  .apl-psytest .psi-faq summary::before {
    transition: none !important;
  }
}
.apl-psytest .apl-references a {
    color: var(--apl-soft, #a9c5e8);
    font-size: inherit;
    text-decoration: underline;
    overflow-wrap: anywhere;
}

.apl-psytest .apl-references a:hover,
.apl-psytest .apl-references a:focus {
    text-decoration: none;
}

.apl-psytest .apl-references a strong {
    color: inherit;
    font-size: inherit;
}
