/* Blog de Anklatest: claro, legible y con el mismo lenguaje que la portada. */
body.akb-body { --akb-ink: #101a36; --akb-muted: #5c6578; --akb-line: #dfe4ee; --akb-bg: #fbfaf7; --akb-surface: #fff; --akb-red: #e30620; --akb-navy: #101a36; --akb-blue: #1f4fd8;
  background: var(--akb-bg) !important; color: var(--akb-ink) !important; }
body.akb-body .wp-site-blocks { padding: 0; }
body.akb-body main.akb { width: min(100% - 32px, 1120px); max-width: none !important; margin: 0 auto !important; padding: 2.5rem 0 4rem; }
body.akb-body a { color: var(--akb-blue); }

/* Cabecera del listado */
.akb-hero { padding: 1.5rem 0 1.8rem; }
.akb-eyebrow { margin: 0 0 .6rem; color: var(--akb-red); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.akb-hero__title { margin: 0; max-width: 46rem; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.1; letter-spacing: -.03em; color: var(--akb-ink); }
.akb-hero__lead { max-width: 42rem; margin: 1rem 0 0; color: var(--akb-muted); font-size: 1.1rem; line-height: 1.6; }
.akb-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.akb-chip { padding: .45rem .9rem; border: 1px solid var(--akb-line); border-radius: 999px; background: var(--akb-surface); color: var(--akb-ink) !important; font-size: .9rem; font-weight: 600; text-decoration: none; transition: border-color .15s, background-color .15s; }
.akb-chip:hover { border-color: var(--akb-navy); }
.akb-chip.is-on { border-color: var(--akb-navy); background: var(--akb-navy); color: #fff !important; }

/* Tarjetas */
.akb-grid, .akb-grid-wrap .wp-block-post-template { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.1rem; margin: 0 !important; padding: 0 !important; list-style: none; }
.akb-grid-wrap .wp-block-post-template > li { margin: 0 !important; }
.akb-card { display: flex; flex-direction: column; gap: .55rem; height: 100%; box-sizing: border-box; padding: 1.4rem; border: 1px solid var(--akb-line); border-radius: 1.2rem; background: var(--akb-surface); text-decoration: none; color: var(--akb-ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.akb-card:hover { transform: translateY(-3px); border-color: #c9d2e3; box-shadow: 0 18px 44px rgba(16, 26, 54, .09); }
.akb-card__cat, .akb-card__cat a { color: var(--akb-red) !important; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.akb-card__title, .akb-card__title a { margin: 0 !important; color: var(--akb-ink) !important; font-size: 1.2rem !important; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; text-decoration: none; }
.akb-card__title a::after { content: ""; position: absolute; inset: 0; }
.akb-grid-wrap .akb-card { position: relative; }
.akb-card__excerpt, .akb-card__excerpt p { margin: 0 !important; color: var(--akb-muted); font-size: .95rem; line-height: 1.55; }
.akb-card__foot { margin-top: auto; padding-top: .6rem; color: var(--akb-muted); font-size: .82rem; }
.akb-card__more { color: var(--akb-navy) !important; font-weight: 700; text-decoration: none; }
.akb-pager { display: flex; justify-content: center; gap: 1rem; margin-top: 2rem; }

/* Artículo */
.akb-article { width: min(100%, 46rem); margin: 0 auto; }
.akb-crumbs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.2rem; color: var(--akb-muted); font-size: .85rem; }
.akb-crumbs a { color: var(--akb-muted) !important; text-decoration: none; }
.akb-crumbs a:hover { color: var(--akb-ink) !important; }
.akb-article__cat a { color: var(--akb-red) !important; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.akb-article__title { margin: .5rem 0 0 !important; color: var(--akb-ink) !important; font-size: clamp(2rem, 5.5vw, 2.9rem) !important; line-height: 1.12 !important; letter-spacing: -.03em; }
.akb-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 1rem 0 2rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--akb-line); color: var(--akb-muted); font-size: .88rem; }
.akb-meta__author { color: var(--akb-ink); font-weight: 700; }
.akb-content { color: #26314d; font-size: 1.08rem; line-height: 1.75; }
.akb-content > * { max-width: none !important; }
.akb-content h2 { margin: 2.6rem 0 .9rem; color: var(--akb-ink); font-size: 1.65rem; line-height: 1.25; letter-spacing: -.02em; }
.akb-content h3 { margin: 2rem 0 .6rem; color: var(--akb-ink); font-size: 1.25rem; line-height: 1.3; }
.akb-content p { margin: 0 0 1.15rem; }
.akb-content ul, .akb-content ol { margin: 0 0 1.3rem; padding-left: 1.3rem; }
.akb-content li { margin-bottom: .45rem; }
.akb-content strong { color: var(--akb-ink); }
.akb-content a { color: var(--akb-blue) !important; text-decoration: underline; text-underline-offset: 3px; }
.akb-content table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; font-size: .95rem; background: var(--akb-surface); border: 1px solid var(--akb-line); border-radius: .8rem; overflow: hidden; display: block; overflow-x: auto; }
.akb-content th, .akb-content td { padding: .7rem .85rem; border-bottom: 1px solid var(--akb-line); text-align: left; vertical-align: top; }
.akb-content th { background: #f2f4f9; color: var(--akb-ink); font-weight: 700; white-space: nowrap; }
.akb-content tr:last-child td { border-bottom: 0; }
.akb-content blockquote, .akb-note { margin: 1.6rem 0; padding: 1rem 1.2rem; border-left: 4px solid var(--akb-blue); border-radius: 0 .8rem .8rem 0; background: #eef3ff; color: var(--akb-ink); }
.akb-note.is-warn { border-color: #d97706; background: #fffbeb; }
.akb-content blockquote p:last-child, .akb-note p:last-child { margin-bottom: 0; }
.akb-toc { margin: 0 0 2rem; padding: 1.1rem 1.3rem; border: 1px solid var(--akb-line); border-radius: 1rem; background: var(--akb-surface); }
.akb-toc strong { display: block; margin-bottom: .4rem; }
.akb-toc ol { margin: 0; }
.akb-toc a { text-decoration: none !important; }
.akb-keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; margin: 1.5rem 0; }
.akb-keys div { padding: 1rem; border: 1px solid var(--akb-line); border-radius: 1rem; background: var(--akb-surface); }
.akb-keys b { display: block; color: var(--akb-ink); font-size: 1.6rem; line-height: 1.1; letter-spacing: -.02em; }
.akb-keys span { color: var(--akb-muted); font-size: .85rem; }
.akb-sources { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--akb-line); color: var(--akb-muted); font-size: .9rem; }
.akb-sources h2 { font-size: 1.05rem !important; margin: 0 0 .5rem !important; }

/* Preguntas frecuentes */
.akb-faq { margin-top: 2.6rem; }
.akb-faq h2 { margin-bottom: 1rem; }
.akb-faq details { margin-bottom: .6rem; border: 1px solid var(--akb-line); border-radius: .9rem; background: var(--akb-surface); }
.akb-faq summary { padding: 1rem 1.2rem; color: var(--akb-ink); font-weight: 700; cursor: pointer; list-style: none; }
.akb-faq summary::-webkit-details-marker { display: none; }
.akb-faq summary::after { content: "+"; float: right; color: var(--akb-muted); font-weight: 400; }
.akb-faq details[open] summary::after { content: "–"; }
.akb-faq details > div { padding: 0 1.2rem 1rem; }

/* Llamada a registrarse */
.akb-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin: 3rem 0 0; padding: 1.8rem; border-radius: 1.4rem; background: radial-gradient(30rem 16rem at 100% 0%, rgba(227, 6, 32, .35), transparent 70%), linear-gradient(135deg, #0b1120, #1b2740); color: #f1f5f9; }
.akb-cta__eyebrow { margin: 0 0 .4rem; color: #fda4af; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.akb-cta__title { margin: 0 0 .5rem; color: #fff; font-size: 1.4rem; font-weight: 800; line-height: 1.25; }
.akb-cta__text { margin: 0; color: #cbd5e1; font-size: .98rem; line-height: 1.55; }
.akb-cta__btn { flex: none; padding: 1rem 1.5rem; border-radius: 999px; background: linear-gradient(135deg, #ff4d3d, #e30620 55%, #b00418); color: #fff !important; font-weight: 800; text-decoration: none !important; box-shadow: 0 12px 28px rgba(227, 6, 32, .35); transition: transform .15s; }
.akb-cta__btn:hover { transform: translateY(-2px); }
.akb-sticky { display: none; }
.akb-related { margin-top: 3rem; }
.akb-related h2 { margin: 0 0 1rem; font-size: 1.4rem; color: var(--akb-ink); }
.akb-related .akb-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.akb-related .akb-card__title { font-size: 1.02rem !important; }

/* Pie y cabecera del sitio en páginas claras */
body.akb-body .ak-site-footer { background: #fff; color: var(--akb-muted); border-top: 1px solid var(--akb-line); }

@media (max-width: 700px) {
  body.akb-body main.akb { width: calc(100% - 28px); padding: 1.5rem 0 5.5rem; }
  .akb-cta { flex-direction: column; align-items: stretch; padding: 1.4rem; }
  .akb-cta__btn { text-align: center; }
  .akb-content { font-size: 1.03rem; }
  .akb-content h2 { font-size: 1.4rem; }
  .akb-sticky { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: block; padding: .95rem 1rem; border-radius: 999px; background: linear-gradient(135deg, #ff4d3d, #e30620 55%, #b00418); color: #fff !important; font-weight: 800; text-align: center; text-decoration: none !important; box-shadow: 0 12px 30px rgba(227, 6, 32, .4); }
  .akb-cta ~ .akb-sticky ~ .akb-sticky { display: none; }
}
body.akb-body .ak-site-nav__links { display: inline-flex; gap: 22px; }
@media (max-width: 800px) { body.akb-body .ak-site-nav__links { display: none; } }

/* ---- Arreglos: los estilos generales del artículo no deben pisar el test ni los botones ---- */
body.akb-body .akb-cta__btn, body.akb-body .akb-side__btn { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; line-height: 1.2; color: #fff !important; text-decoration: none !important; }
body.akb-body .akb-content .akq a.akq__cta { display: inline-block; color: #fff !important; text-decoration: none !important; }
body.akb-body .akb-content .akq a.akq__share, body.akb-body .akb-content .akq .akq__again { color: #f1f5f9 !important; text-decoration: none !important; }
body.akb-body .akb-content .akq strong.akq__mark { color: #fff; }
body.akb-body .akb-content .akq .akq__end strong, body.akb-body .akb-content .akq .akq__pitch b { color: #fff; }
body.akb-body .akb-content .akq .akq__verdict { color: #fff; }
body.akb-body .akb-content .akq h2.akq__title { margin-top: .7rem !important; }
body.akb-body .akb-content .akq__q .akq__feedback strong { color: inherit; }
body.akb-body .akb-content .akq__q.is-good .akq__feedback strong { color: #0e9f6e; }
body.akb-body .akb-content .akq__q.is-bad .akq__feedback strong { color: #e5484d; }
body.akb-body .akb-content .akq ol, body.akb-body .akb-content .akq ul { padding-left: 0; }

/* ---- Barra lateral ---- */
.akb-layout { display: grid; grid-template-columns: minmax(0, 46rem) 300px; justify-content: center; gap: 3rem; align-items: start; }
.akb-layout .akb-article { width: 100%; margin: 0; }
.akb-side { position: sticky; top: 1.5rem; display: grid; gap: 1rem; max-height: calc(100vh - 3rem); overflow-y: auto; padding-bottom: 1rem; scrollbar-width: thin; }
.admin-bar .akb-side { top: calc(1.5rem + 32px); }
.akb-side__box { padding: 1.2rem; border: 1px solid var(--akb-line); border-radius: 1.1rem; background: var(--akb-surface); }
.akb-side__title { margin: 0 0 .7rem; color: var(--akb-ink); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.akb-side__toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.akb-side__toc li { margin: 0; }
.akb-side__toc a { display: block; padding: .35rem 0 .35rem .8rem; border-left: 2px solid var(--akb-line); color: var(--akb-muted) !important; font-size: .9rem; line-height: 1.35; text-decoration: none; transition: color .15s, border-color .15s; }
.akb-side__toc a:hover, .akb-side__toc a.is-on { border-color: var(--akb-red); color: var(--akb-ink) !important; font-weight: 600; }
.akb-side__cta { border: 0; background: radial-gradient(18rem 12rem at 100% 0%, rgba(227, 6, 32, .4), transparent 70%), linear-gradient(150deg, #0b1120, #1b2740); color: #e2e8f0; }
.akb-side__eyebrow { margin: 0 0 .35rem; color: #fda4af; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.akb-side__big { margin: 0 0 .7rem; color: #fff; font-size: 1.25rem; font-weight: 800; line-height: 1.25; }
.akb-side__cta ul { margin: 0 0 1rem; padding: 0; list-style: none; font-size: .9rem; }
.akb-side__cta li { position: relative; margin: 0 0 .4rem; padding-left: 1.4rem; }
.akb-side__cta li::before { content: "✓"; position: absolute; left: 0; color: #34d399; font-weight: 800; }
.akb-side__btn { width: 100%; box-sizing: border-box; padding: .85rem 1rem; border-radius: 999px; background: linear-gradient(135deg, #ff4d3d, #e30620 55%, #b00418); font-weight: 800; box-shadow: 0 10px 24px rgba(227, 6, 32, .35); transition: transform .15s; }
.akb-side__btn:hover { transform: translateY(-2px); }
.akb-side__links { margin: 0; padding: 0; list-style: none; }
.akb-side__links li { margin: 0; border-top: 1px solid var(--akb-line); }
.akb-side__links li:first-child { border-top: 0; }
.akb-side__links a { display: block; padding: .55rem 0; color: var(--akb-ink) !important; font-size: .9rem; font-weight: 600; line-height: 1.35; text-decoration: none; }
.akb-side__links a:hover { color: var(--akb-red) !important; }
.akb-side .akb-chips { margin: 0; }
.akb-side .akb-chip { font-size: .82rem; }
@media (max-width: 1100px) {
  .akb-layout { grid-template-columns: minmax(0, 46rem); }
  .akb-side { display: none; }
}

/* ---- Móvil ---- */
@media (max-width: 700px) {
  body.akb-body .akb-cta__btn { display: flex; width: 100%; box-sizing: border-box; }
  .akb-hero__title { font-size: 2rem; }
  .akb-article__title { font-size: 1.9rem !important; }
  .akb-content th { white-space: normal; }
  .akb-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .akb-keys b { font-size: 1.3rem; }
  body.akb-body .ak-site-footer { padding-bottom: 5rem; }
}

body.akb-body .akb-sticky { display: none; }
@media (max-width: 700px) { body.akb-body .akb-sticky { display: flex; align-items: center; justify-content: center; color: #fff !important; text-decoration: none !important; } }

/* Barra lateral sin scroll propio: el índice y los enlaces van en el flujo normal
   y solo la llamada a la prueba se queda fija al bajar. */
.akb-layout { align-items: stretch; }
.akb-side { position: static; max-height: none; overflow: visible; padding-bottom: 0; align-content: start; }
.akb-side .akb-side__cta { position: sticky; top: 1.5rem; }
.admin-bar .akb-side .akb-side__cta { top: calc(1.5rem + 32px); }
.akb-side__toc a { padding-top: .28rem; padding-bottom: .28rem; font-size: .86rem; }
