/*! (c) 2026 LAWIT Venezuela · Juriscademia. Tema propietario, todos los derechos reservados. Archivo assets/tema.css · Ref. JT-1.0.2 · Marca 13C7BF57B8. Protegido por la Ley sobre el Derecho de Autor de Venezuela y el Convenio de Berna; licenciado solo para juriscademia.com. Copiarlo, adaptarlo o usarlo en otro sitio sin autorización escrita podrá dar lugar a acciones legales. info@lawit.org */
/* Juriscademia · Tema 1.0
   Mismos colores y tipografía que la plataforma. Oscuro por defecto; claro si
   la persona lo eligió (html.lw-light). */

:root {
  --jt-bg: #ffffff;
  --jt-bg2: #f4f6f9;
  --jt-card: #ffffff;
  --jt-ink: #15181f;
  --jt-mute: #5b6473;
  --jt-line: #e3e7ee;
  --jt-acc: #1d73b8;
  --jt-gold: #f5c400;
  --jt-on-gold: #15181f;
  --jt-top: rgba(255, 255, 255, .86);
  --jt-r: 14px;
  --jt-font: Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --jt-display: "Inter Tight", Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
html.lw-dark {
  --jt-bg: #121419;
  --jt-bg2: #15181f;
  --jt-card: #1d2129;
  --jt-ink: #ffffff;
  --jt-mute: rgba(255, 255, 255, .72);
  --jt-line: rgba(255, 255, 255, .12);
  --jt-acc: #5aa9ef;
  --jt-top: rgba(18, 20, 25, .86);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--jt-bg);
  color: var(--jt-ink);
  font: 400 17px/1.65 var(--jt-font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
#page-container { min-height: 100vh; display: flex; flex-direction: column; }
#page-container > main { flex: 1 0 auto; }
img, video, iframe, embed, object { max-width: 100%; height: auto; }
a { color: var(--jt-acc); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--jt-gold); outline-offset: 2px; border-radius: 4px; }

.jt-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.jt-narrow { max-width: 780px; }
.jt-wide { max-width: 1180px; }
@media (max-width: 640px) { .jt-wrap { padding: 0 16px; } }

/* Accesibilidad */
.jt-skip, .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.jt-skip:focus {
  position: fixed !important; z-index: 1000; top: 8px; left: 8px; width: auto; height: auto;
  clip: auto; clip-path: none; padding: 10px 14px; border-radius: 10px;
  background: var(--jt-gold); color: var(--jt-on-gold); font-weight: 700; text-decoration: none;
}

/* ---------- Cabecera ---------- */
.jt-top {
  position: sticky; top: 0; z-index: 50;
  background: var(--jt-top);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--jt-line);
}
.admin-bar .jt-top { top: 32px; }
@media (max-width: 782px) { .admin-bar .jt-top { top: 46px; } }
@media (max-width: 600px) { .admin-bar .jt-top { top: 0; } }
.jt-top-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.jt-brand, .custom-logo-link {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  color: var(--jt-ink); text-decoration: none; font: 800 18px/1 var(--jt-display); letter-spacing: -.01em;
}
.custom-logo { max-height: 36px; width: auto; }
html.lw-light .jt-iso { filter: brightness(0); opacity: .88; }
.jt-nav { flex: 1 1 auto; min-width: 0; }
.jt-menu { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.jt-menu::-webkit-scrollbar { display: none; }
.jt-menu a {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: var(--jt-mute); text-decoration: none; font: 600 15px/1.2 var(--jt-font); white-space: nowrap;
}
.jt-menu a:hover, .jt-menu .current-menu-item > a { color: var(--jt-ink); background: var(--jt-bg2); }
.jt-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.jt-theme {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--jt-line); border-radius: 999px; background: transparent; color: var(--jt-ink); cursor: pointer;
}
.jt-theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
html.lw-dark .jt-i-moon, html.lw-light .jt-i-sun { display: none; }
.jt-cta, .jt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 0;
  background: var(--jt-gold); color: var(--jt-on-gold) !important;
  font: 800 14px/1 var(--jt-font); text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 20px -12px rgba(245, 196, 0, .8);
}
.jt-btn.is-ghost { background: transparent; color: var(--jt-ink) !important; border: 1px solid var(--jt-line); box-shadow: none; }
@media (max-width: 640px) {
  .jt-top-in { gap: 10px; min-height: 58px; }
  .jt-brand img + span { display: none; }
  .jt-cta { padding: 10px 14px; }
}

/* ---------- Contenido ---------- */
.jt-main { padding: 48px 0 72px; }
@media (max-width: 640px) { .jt-main { padding: 28px 0 56px; } }
.jt-head { margin: 0 0 28px; }
.jt-title {
  margin: 0; font: 800 clamp(30px, 4.4vw, 46px)/1.1 var(--jt-display); letter-spacing: -.02em; color: var(--jt-ink);
}
.jt-kicker { margin: 0 0 8px; color: var(--jt-gold); font: 800 13px/1 var(--jt-font); letter-spacing: .08em; text-transform: uppercase; }
html.lw-light .jt-kicker { color: #9a7b00; }
.jt-meta { margin: 10px 0 0; color: var(--jt-mute); font-size: 14px; }
.jt-thumb { margin: 0 0 28px; }
.jt-thumb img { width: 100%; border-radius: var(--jt-r); }

.jt-content > *:first-child { margin-top: 0; }
.jt-content h2, .jt-content h3, .jt-content h4 { font-family: var(--jt-display); line-height: 1.2; letter-spacing: -.01em; margin: 1.8em 0 .6em; }
.jt-content h2 { font-size: 1.6em; }
.jt-content h3 { font-size: 1.3em; }
.jt-content p, .jt-content ul, .jt-content ol { margin: 0 0 1.1em; }
.jt-content li { margin: .3em 0; }
.jt-content blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--jt-gold); color: var(--jt-mute); font-style: italic;
}
.jt-content figure { margin: 1.6em 0; }
.jt-content figcaption, .wp-caption-text { color: var(--jt-mute); font-size: 14px; margin-top: 8px; }
.jt-content img { border-radius: 10px; }
.jt-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; display: block; overflow-x: auto; }
.jt-content th, .jt-content td { padding: 10px 12px; border-bottom: 1px solid var(--jt-line); text-align: left; }
.jt-content code, .jt-content pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.jt-content pre { padding: 16px; border-radius: 10px; background: var(--jt-bg2); overflow-x: auto; }
.jt-content hr { border: 0; border-top: 1px solid var(--jt-line); margin: 2.4em 0; }
.jt-content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 10px; }
.alignwide { margin-left: auto; margin-right: auto; max-width: 1080px; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
@media (max-width: 640px) { .alignleft, .alignright { float: none; margin: 1em 0; } }
.jt-pages { margin: 2em 0; display: flex; gap: 8px; }

/* Páginas antiguas hechas con Divi: el contenido sin el constructor. */
.jt-divi { overflow-wrap: anywhere; }
.jt-divi .jt-fig img { border-radius: 10px; }

/* ---------- Listados ---------- */
.jt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.jt-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--jt-card); border: 1px solid var(--jt-line); border-radius: var(--jt-r);
  transition: transform .15s, border-color .15s;
}
.jt-card:hover { transform: translateY(-2px); border-color: rgba(245, 196, 0, .6); }
.jt-card-img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.jt-card-tx { padding: 18px 20px 22px; }
.jt-card h2 { margin: 0; font: 800 19px/1.3 var(--jt-display); }
.jt-card h2 a { color: var(--jt-ink); text-decoration: none; }
.jt-card p { margin: 10px 0 0; color: var(--jt-mute); font-size: 15px; line-height: 1.55; }
.navigation.pagination { margin-top: 36px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers {
  display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--jt-line);
  color: var(--jt-ink); text-decoration: none; font-weight: 600; font-size: 15px;
}
.page-numbers.current { background: var(--jt-gold); color: var(--jt-on-gold); border-color: transparent; }
.jt-empty { padding: 32px; border: 1px dashed var(--jt-line); border-radius: var(--jt-r); color: var(--jt-mute); }

/* Buscador */
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form label { flex: 1; }
.search-field {
  width: 100%; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--jt-line);
  background: var(--jt-card); color: var(--jt-ink); font: 500 16px/1.2 var(--jt-font);
}
.search-submit {
  padding: 12px 18px; border-radius: 999px; border: 0; background: var(--jt-gold); color: var(--jt-on-gold);
  font: 800 14px/1 var(--jt-font); cursor: pointer;
}

/* 404 */
.jt-404 { padding: 40px 0; }
.jt-404 p { color: var(--jt-mute); }
.jt-404-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---------- Pie ---------- */
.jt-foot { border-top: 1px solid var(--jt-line); background: var(--jt-bg2); color: var(--jt-mute); font-size: 14px; }
.jt-foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 22px; }
.jt-foot p { margin: 0; }
.jt-foot-menu { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; list-style: none; }
.jt-foot-menu a { color: var(--jt-mute); text-decoration: none; }
.jt-foot-menu a:hover { color: var(--jt-ink); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
