/* ==========================================================================
   OTEC L&J — Diplomas y certificados · panel, ingreso y verificación
   Estilo sobrio de herramienta de trabajo: un solo color de acción (azul
   marino del escudo), superficies planas y la información como protagonista.
   Todo acotado a .otec-lj para no chocar con el tema del sitio.
   ========================================================================== */
.otec-lj {
	--o-navy: #1B365D;
	--o-navy-h: #142A49;
	--o-side: #13294B;
	--o-gold: #C9A35B;
	--o-bg: #F6F7F9;
	--o-card: #FFFFFF;
	--o-line: #E5E7EB;
	--o-line-2: #F0F2F5;
	--o-input: #D1D5DB;
	--o-text: #111827;
	--o-muted: #6B7280;
	--o-ok: #15803D;
	--o-ok-bg: #F0FDF4;
	--o-ok-line: #BBF7D0;
	--o-bad: #B91C1C;
	--o-bad-bg: #FEF2F2;
	--o-bad-line: #FECACA;
	--o-r: 8px;
	--o-r-sm: 6px;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: var(--o-text);
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}
.otec-lj *, .otec-lj *::before, .otec-lj *::after { box-sizing: border-box; }
.otec-lj svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.otec-lj h1, .otec-lj h2, .otec-lj h3 { color: var(--o-text); margin: 0; line-height: 1.25; font-family: inherit; font-weight: 600; letter-spacing: -.01em; }
.otec-lj p { margin: 0 0 .6em; }
.otec-lj a { color: var(--o-navy); }
.otec-lj button, .otec-lj input, .otec-lj select, .otec-lj textarea { font: inherit; letter-spacing: normal; }
.otec-lj [hidden] { display: none !important; }

body.otec-lj-fullscreen { margin: 0; background: #F6F7F9; }

/* ── Estructura del panel ───────────────────────────────────────────────── */
.otec-lj-app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; background: var(--o-bg); }
.otec-lj-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--o-side); color: #fff; display: flex; flex-direction: column; padding: 20px 14px 16px; }
.otec-lj-side__brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 18px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 8px; }
.otec-lj-side__brand strong { display: block; font-size: 14.5px; font-weight: 600; color: #fff; }
.otec-lj-side__brand small { color: #8193AE; font-size: 12px; }
/* Escudo de la OTEC sobre un recuadro blanco (para leerse sobre el azul). */
.otec-lj-escudo { --s: 40px; width: var(--s); height: var(--s); border-radius: 6px; flex: none; display: grid; place-items: center; background: #fff; }
.otec-lj-escudo img { width: 82%; height: 82%; object-fit: contain; display: block; }
.otec-lj-side__nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.otec-lj-side__label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8193AE; padding: 14px 10px 6px; }
.otec-lj-side__nav button, .otec-lj .otec-lj-side__ext { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; color: #D6DEEA; text-align: left; padding: 8px 10px; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; }
.otec-lj-side__nav button:hover, .otec-lj .otec-lj-side__ext:hover { background: rgba(255,255,255,.06); color: #fff; }
.otec-lj-side__nav button.is-active { background: rgba(255,255,255,.08); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--o-gold); }
.otec-lj .otec-lj-side__ext { margin-top: auto; }
.otec-lj-side__nav button:focus-visible, .otec-lj-side__ext:focus-visible, .otec-lj-side__logout:focus-visible { outline: 2px solid var(--o-gold); outline-offset: 1px; }
.otec-lj-side__user { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 14px 8px 0; border-top: 1px solid rgba(255,255,255,.1); }
.otec-lj-side__user > div { flex: 1; min-width: 0; }
.otec-lj-side__user strong { display: block; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.otec-lj-side__user small { color: #8193AE; font-size: 12px; }
.otec-lj-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; font-weight: 600; font-size: 12.5px; flex: none; }
.otec-lj .otec-lj-side__logout { width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; color: #8193AE; text-decoration: none; }
.otec-lj-side__logout:hover { background: rgba(255,255,255,.08); color: #fff; }
.otec-lj-backdrop { display: none; }

.otec-lj-content { min-width: 0; display: flex; flex-direction: column; }
/* La barra superior solo se usa en pantallas chicas (botón del menú). */
.otec-lj-topbar { display: none; position: sticky; top: 0; z-index: 20; align-items: center; gap: 12px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--o-line); }
.otec-lj-burger { display: inline-grid; width: 38px; height: 38px; border-radius: 6px; border: 1px solid var(--o-line); background: #fff; color: var(--o-text); cursor: pointer; place-items: center; }
.otec-lj-topbar__crumb { display: flex; align-items: center; gap: 6px; color: var(--o-muted); font-size: 14px; }
.otec-lj-topbar__crumb svg { width: 14px; height: 14px; }
.otec-lj-topbar__crumb strong { color: var(--o-text); font-weight: 600; }
.otec-lj-topbar__right { display: none; }
.otec-lj-main { padding: 28px 36px 44px; max-width: 1320px; width: 100%; }

/* ── Encabezado de página ───────────────────────────────────────────────── */
.otec-lj-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.otec-lj-page-head__crumb { color: var(--o-muted); font-size: 13px; margin-bottom: 4px; }
.otec-lj-page-head h2 { font-size: 22px; font-weight: 600; margin: 0 0 4px; }
.otec-lj-page-head p { color: var(--o-muted); margin: 0; }
.otec-lj-page-head__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Botones ────────────────────────────────────────────────────────────── */
.otec-lj-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; background: var(--o-navy); color: #fff !important; border: 1px solid var(--o-navy); border-radius: var(--o-r-sm); padding: 7px 14px; font-weight: 500; font-size: 14px; cursor: pointer; text-decoration: none !important; line-height: 1.25; transition: background .12s, border-color .12s; }
.otec-lj-btn svg { width: 16px; height: 16px; }
.otec-lj-btn:hover { background: var(--o-navy-h); border-color: var(--o-navy-h); }
.otec-lj-btn:focus-visible, .otec-lj-icon-btn:focus-visible, .otec-lj-link:focus-visible, .otec-lj-act:focus-visible { outline: 2px solid rgba(27, 54, 93, .45); outline-offset: 2px; }
.otec-lj-btn[disabled] { opacity: .5; cursor: not-allowed; }
.otec-lj-btn--ghost { background: #fff; color: var(--o-text) !important; border-color: var(--o-line); }
.otec-lj-btn--ghost:hover { background: #F9FAFB; border-color: var(--o-input); }
.otec-lj-btn--danger { background: var(--o-bad); border-color: var(--o-bad); }
.otec-lj-btn--danger:hover { background: #991B1B; border-color: #991B1B; }
.otec-lj-btn--sm { min-height: 30px; padding: 4px 10px; font-size: 13px; }
.otec-lj-btn--lg { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.otec-lj-btn--block { width: 100%; }
.otec-lj-icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--o-line); background: #fff; color: var(--o-muted); border-radius: var(--o-r-sm); cursor: pointer; text-decoration: none; font-size: 16px; line-height: 1; }
.otec-lj-icon-btn:hover { background: #F9FAFB; color: var(--o-text); }
.otec-lj-link { background: none; border: 0; padding: 0; color: var(--o-navy); font-weight: 500; cursor: pointer; }
.otec-lj-link[disabled] { color: var(--o-muted); cursor: default; }

/* Acciones de cada fila: texto separado por líneas finas. */
.otec-lj-acts { display: inline-flex; align-items: center; justify-content: flex-end; white-space: nowrap; }
.otec-lj-act { background: none; border: 0; padding: 2px 0; color: var(--o-navy); font-weight: 500; font-size: 14px; cursor: pointer; text-decoration: none; }
.otec-lj-act:hover { text-decoration: underline; }
.otec-lj-act[disabled] { color: #C4C9D2; cursor: default; text-decoration: none; }
.otec-lj-act--bad { color: var(--o-bad); }
.otec-lj-acts > * + *::before { content: ""; display: inline-block; width: 1px; height: 14px; background: var(--o-line); margin: 0 10px; vertical-align: -2px; }

/* ── Indicadores ────────────────────────────────────────────────────────── */
.otec-lj-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--o-card); border: 1px solid var(--o-line); border-radius: var(--o-r); margin-bottom: 20px; }
.otec-lj-stat { padding: 14px 18px; border-left: 1px solid var(--o-line); }
.otec-lj-stat:first-child { border-left: 0; }
.otec-lj-stat span { display: block; color: var(--o-muted); font-size: 12.5px; margin-bottom: 2px; }
.otec-lj-stat strong { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ── Tarjetas y tablas ──────────────────────────────────────────────────── */
.otec-lj-card { background: var(--o-card); border: 1px solid var(--o-line); border-radius: var(--o-r); padding: 20px 22px; margin-bottom: 18px; }
.otec-lj-card > h3 { font-size: 15px; font-weight: 600; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--o-line-2); }
.otec-lj-card--table { padding: 0; overflow: hidden; }
.otec-lj-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--o-line); }
.otec-lj .otec-lj-toolbar input[type=search] { flex: 0 1 380px; margin: 0; padding-left: 36px !important; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px 50%; }
.otec-lj .otec-lj-toolbar select { flex: 0 1 300px; width: auto; max-width: 340px; margin: 0; }
.otec-lj-toolbar__right { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--o-muted); font-size: 13px; }
.otec-lj-inline { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.otec-lj-table-wrap { overflow-x: auto; }
.otec-lj-table { width: 100%; border-collapse: collapse; min-width: 720px; background: #fff; margin: 0; }
.otec-lj-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--o-muted); background: #FAFBFC; padding: 10px 16px; border-bottom: 1px solid var(--o-line); white-space: nowrap; }
.otec-lj-table td { padding: 11px 16px; border-bottom: 1px solid var(--o-line-2); vertical-align: middle; }
.otec-lj-table tbody tr:hover td { background: #FAFBFC; }
.otec-lj-table tr:last-child td { border-bottom: 0; }
.otec-lj-table td small { display: block; color: var(--o-muted); font-size: 12.5px; margin-top: 1px; }
.otec-lj-table td strong { font-weight: 500; }
.otec-lj-table--compact td { padding: 8px 12px; font-size: 13.5px; }
.otec-lj-report .otec-lj-table-wrap { border: 1px solid var(--o-line); border-radius: var(--o-r); }
.otec-lj-table tr.is-error td, .otec-lj-table tr.is-alert td { background: #FFFBFB !important; }
.otec-lj-right { text-align: right !important; }
.otec-lj-row-actions { display: inline-flex; gap: 6px; align-items: center; justify-content: flex-end; }
.otec-lj-mono { font-family: "Cascadia Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; white-space: nowrap; }
a.otec-lj-mono { font-weight: 500; }
.otec-lj-badge { font-weight: 500; color: var(--o-muted); white-space: nowrap; }
.otec-lj-badge--ok { color: var(--o-ok); }
.otec-lj-badge--bad { color: var(--o-bad); }
/* Enviado al alumno: verde oscuro sólido */
.otec-lj-enviado { display: inline-flex; align-items: center; gap: 5px; background: #166534; color: #fff; font-weight: 600; font-size: 12.5px; line-height: 1; padding: 5px 9px 5px 7px; border-radius: 4px; white-space: nowrap; }
.otec-lj .otec-lj-enviado svg { width: 13px; height: 13px; stroke-width: 2.6; }
.otec-lj-table td small.otec-lj-enviado__fecha { margin-top: 4px; }
.otec-lj-envio-col { white-space: nowrap; }
.otec-lj-envio-col .otec-lj-mono { margin-right: 6px; }
.otec-lj-envio-col .otec-lj-enviado { margin-top: 4px; }
.otec-lj-empty { padding: 36px 16px; text-align: center; color: var(--o-muted); }
.otec-lj-muted { color: var(--o-muted); font-size: 13.5px; }
.otec-lj-error { color: var(--o-bad) !important; }
.otec-lj-total, .otec-lj-pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 0; padding: 12px 16px; border-top: 1px solid var(--o-line); color: var(--o-muted); font-size: 13px; }
.otec-lj-pager div { display: flex; gap: 6px; }

/* ── Formularios ────────────────────────────────────────────────────────── */
.otec-lj-form label { display: block; font-weight: 500; font-size: 13.5px; margin-bottom: 14px; color: var(--o-text); }
.otec-lj-form label small { display: block; font-weight: 400; color: var(--o-muted); margin-top: 5px; }
.otec-lj input[type=text], .otec-lj input:not([type]), .otec-lj input[type=email], .otec-lj input[type=number], .otec-lj input[type=date], .otec-lj input[type=search], .otec-lj input[type=password], .otec-lj select, .otec-lj textarea {
	display: block; width: 100%; margin-top: 6px; padding: 8px 11px; border: 1px solid var(--o-input); border-radius: var(--o-r-sm); background: #fff; color: var(--o-text); font-weight: 400; font-size: 14px; min-height: 38px; box-shadow: none; transition: border-color .12s, box-shadow .12s;
}
.otec-lj-inline select { margin-top: 0; }
.otec-lj input:focus, .otec-lj select:focus, .otec-lj textarea:focus { outline: none; border-color: var(--o-navy); box-shadow: 0 0 0 3px rgba(27, 54, 93, .12); }
.otec-lj input[readonly] { background: #F9FAFB; color: #4B5563; }
.otec-lj textarea { resize: vertical; line-height: 1.5; }
.otec-lj input[type=file] { display: block; margin-top: 8px; font-size: 13.5px; }
.otec-lj-check { display: flex !important; align-items: center; gap: 9px; font-weight: 400 !important; }
.otec-lj-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--o-navy); flex: none; }
.otec-lj-form fieldset { border: 1px solid var(--o-line); border-radius: var(--o-r); padding: 12px 16px 2px; margin: 0 0 14px; }
.otec-lj-form legend { font-weight: 600; font-size: 13px; padding: 0 6px; color: var(--o-text); }
.otec-lj-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.otec-lj-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.otec-lj-config .otec-lj-grid3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.otec-lj-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.otec-lj-actions--sticky { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--o-bg) 40%); padding: 20px 0 6px; }
.otec-lj-hint { font-size: 13px; color: var(--o-muted); margin: -8px 0 12px; min-height: 1em; }
.otec-lj-preview { background: #F9FAFB; border: 1px solid var(--o-line); border-radius: var(--o-r-sm); padding: 10px 12px; font-size: 13.5px; margin-bottom: 14px; color: var(--o-muted); }
.otec-lj-preview.is-ok { background: var(--o-ok-bg); border-color: var(--o-ok-line); color: var(--o-ok); }
.otec-lj-preview.is-bad { background: var(--o-bad-bg); border-color: var(--o-bad-line); color: var(--o-bad); }
.otec-lj-list-actions { display: grid; gap: 8px; margin: 12px 0; }
.otec-lj-list-actions .otec-lj-btn { justify-content: flex-start; }
.otec-lj-list-actions .otec-lj-btn--danger { background: #fff; color: var(--o-bad) !important; border-color: var(--o-bad-line); }
.otec-lj-list-actions .otec-lj-btn--danger:hover { background: var(--o-bad-bg); border-color: var(--o-bad-line); }
.otec-lj-img-field { display: flex; gap: 18px; align-items: center; padding: 14px 0; border-top: 1px solid var(--o-line-2); }
.otec-lj-img-field:first-of-type { border-top: 0; }
.otec-lj-img-field__prev { width: 160px; height: 90px; border: 1px solid var(--o-line); border-radius: var(--o-r); display: grid; place-items: center; background: repeating-conic-gradient(#F6F7F9 0 25%, #fff 0 50%) 0 0 / 14px 14px; flex: none; }
.otec-lj-img-field__prev img { max-width: 148px; max-height: 80px; object-fit: contain; }
.otec-lj-img-field small { display: block; color: var(--o-muted); }
.otec-lj-report { margin-top: 16px; border-top: 1px solid var(--o-line); padding-top: 14px; }

/* ── Modal, avisos y carga ──────────────────────────────────────────────── */
.otec-lj-modal { position: fixed; inset: 0; z-index: 99999; background: rgba(17, 24, 39, .45); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; overflow-y: auto; }
.otec-lj-modal__box { background: #fff; border-radius: 10px; width: 100%; max-width: 580px; box-shadow: 0 20px 50px rgba(17, 24, 39, .25); overflow: hidden; }
.otec-lj-modal__box--wide { max-width: 780px; }
.otec-lj-modal__box--xl { max-width: 1120px; }

/* Ventana de envío: datos a la izquierda, documento a la derecha */
.otec-lj-envio { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 22px; }
.otec-lj-envio__datos { min-width: 0; }
.otec-lj-envio__datos section { padding: 12px 0; border-bottom: 1px solid var(--o-line-2); }
.otec-lj-envio__datos section:first-of-type { padding-top: 0; }
.otec-lj-envio__datos h4 { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--o-muted); }
.otec-lj-envio dl { display: grid; grid-template-columns: 92px 1fr; gap: 4px 10px; margin: 0; font-size: 13.5px; }
.otec-lj-envio dt { color: var(--o-muted); }
.otec-lj-envio dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.otec-lj-envio .otec-lj-form label, .otec-lj-envio label { margin: 10px 0 0; }
.otec-lj-envio__aviso { margin: 0 0 12px !important; padding: 9px 12px; border-radius: var(--o-r-sm); background: var(--o-ok-bg); border: 1px solid var(--o-ok-line); color: var(--o-ok); font-size: 13.5px; }
.otec-lj-envio__folio { margin: 0 !important; }
.otec-lj-envio__folio .otec-lj-mono { font-size: 14px; font-weight: 600; }
.otec-lj-envio__folio small { display: block; color: var(--o-muted); font-size: 12.5px; margin-top: 3px; }
.otec-lj-envio__mensaje { margin-top: 8px; padding: 10px 12px; max-height: 150px; overflow: auto; white-space: pre-wrap; font-size: 13px; background: #F9FAFB; border: 1px solid var(--o-line); border-radius: var(--o-r-sm); color: #374151; }
.otec-lj-envio__adjuntos { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.otec-lj-envio__adjuntos li { display: flex; align-items: center; gap: 6px; }
.otec-lj .otec-lj-envio__adjuntos svg { width: 15px; height: 15px; color: var(--o-bad); }
.otec-lj-envio__doc { display: flex; flex-direction: column; min-width: 0; }
.otec-lj-envio__tabs { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--o-line); margin-bottom: 10px; }
.otec-lj-envio__tabs button { border: 0; background: none; padding: 8px 12px; font-weight: 500; color: var(--o-muted); cursor: pointer; box-shadow: inset 0 -2px 0 transparent; }
.otec-lj-envio__tabs button.is-active { color: var(--o-text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--o-navy); }
.otec-lj-envio__tabs a { margin-left: auto; font-size: 13px; }
.otec-lj-envio__doc iframe { width: 100%; flex: 1; min-height: 600px; border: 1px solid var(--o-line); border-radius: var(--o-r-sm); background: #F3F4F6; }
.otec-lj-envio__acciones { grid-column: 1 / -1; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--o-line); }
.otec-lj-modal__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--o-line); }
.otec-lj-modal__head h3 { font-size: 16px; font-weight: 600; }
.otec-lj-modal__head .otec-lj-icon-btn { border: 0; width: 30px; height: 30px; }
.otec-lj-modal__body { padding: 20px 22px 22px; }
body.otec-lj-noscroll { overflow: hidden; }
.otec-lj-toasts { position: fixed; right: 18px; bottom: 18px; z-index: 100000; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 36px)); font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.otec-lj-toast { background: #1F2937; color: #fff; padding: 12px 16px; border-radius: 8px; box-shadow: 0 10px 26px rgba(17,24,39,.25); font-size: 14px; transition: opacity .3s, transform .3s; }
.otec-lj-toast--error { background: var(--o-bad); }
.otec-lj-toast.is-out { opacity: 0; transform: translateY(8px); }
.otec-lj-spin { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: otec-lj-spin .7s linear infinite; vertical-align: -2px; }
.otec-lj-spin--dark, .otec-lj-btn--ghost .otec-lj-spin { border-color: rgba(17,24,39,.15); border-top-color: var(--o-navy); }
@keyframes otec-lj-spin { to { transform: rotate(360deg); } }
.otec-lj-loading { grid-column: 1 / -1; padding: 80px; text-align: center; color: var(--o-muted); }

/* ── Ingreso ────────────────────────────────────────────────────────────── */
.otec-lj-auth { min-height: 100vh; color: var(--o-text);
	background:
		radial-gradient(55% 45% at 18% 12%, rgba(255,255,255,.13), transparent 70%),
		radial-gradient(45% 40% at 92% 100%, rgba(201,163,91,.20), transparent 72%),
		linear-gradient(160deg, #0B1E3D 0%, #13325F 48%, #2B5C9E 100%); }
.otec-lj-auth__main { min-height: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 48px 20px; }
.otec-lj-auth__card { width: 100%; max-width: 420px; background: #fff; border-radius: 14px; padding: 32px 32px 26px; box-shadow: 0 30px 80px rgba(4,14,32,.45), 0 2px 6px rgba(4,14,32,.18); }
.otec-lj-auth__oficial { display: flex; justify-content: center; margin: -4px 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--o-line-2); }
.otec-lj-auth__oficial img { width: 150px; height: auto; display: block; }
.otec-lj-auth__card h2, .otec-lj-auth__card .otec-lj-auth__lead { text-align: center; }
.otec-lj-auth__foot { margin: 0; color: rgba(255,255,255,.78); font-size: 13px; text-align: center; }
.otec-lj-auth__card h2 { font-size: 22px; font-weight: 600; margin: 0 0 6px; }
.otec-lj-auth__lead { color: var(--o-muted); margin-bottom: 22px !important; }
.otec-lj-auth__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: -2px 0 16px; font-size: 13.5px; }
.otec-lj-auth__row label { margin: 0 !important; }
.otec-lj-auth__row--center { justify-content: center; margin: 16px 0 0; color: var(--o-muted); }
.otec-lj-auth__msg { min-height: 0; margin: 0 0 12px; font-size: 13.5px; border-radius: var(--o-r-sm); }
.otec-lj-auth__msg.is-error { padding: 10px 12px; background: var(--o-bad-bg); color: var(--o-bad); }
.otec-lj-auth__msg.is-ok { padding: 10px 12px; background: var(--o-ok-bg); color: var(--o-ok); }
.otec-lj-auth__verify { text-align: center; margin: 22px 0 0 !important; font-size: 13.5px; padding-top: 18px; border-top: 1px solid var(--o-line-2); }
.otec-lj-auth input[type=text], .otec-lj-auth input:not([type]), .otec-lj-auth input[type=password] { min-height: 42px; }
.otec-lj-pass { position: relative; display: block; }
.otec-lj-pass input { padding-right: 84px !important; }
.otec-lj-pass__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); margin-top: 3px; border: 0; background: transparent; color: var(--o-navy); font-weight: 500; font-size: 13px; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.otec-lj-pass__toggle:hover { background: #F3F4F6; }
.otec-lj-otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.otec-lj-otp input { margin: 0 !important; height: 52px; text-align: center; font-size: 22px !important; font-weight: 600 !important; padding: 0 !important; font-variant-numeric: tabular-nums; }

/* ── Verificación pública ───────────────────────────────────────────────── */
.otec-lj-verificar { display: flex; justify-content: center; padding: 36px 16px; }
.otec-lj-verificar__card { width: 100%; max-width: 600px; background: #fff; border: 1px solid var(--o-line); border-radius: 10px; overflow: hidden; }
.otec-lj-verificar__top { padding: 22px 26px 20px; border-bottom: 1px solid var(--o-line); }
.otec-lj-verificar__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.otec-lj-verificar__brand .otec-lj-escudo { --s: 44px; border: 1px solid var(--o-line); }
.otec-lj-verificar__brand strong { display: block; font-weight: 600; }
.otec-lj-verificar__brand small { color: var(--o-muted); font-size: 13px; }
.otec-lj-verificar__top h2 { font-size: 22px; font-weight: 600; margin: 0 0 4px; }
.otec-lj-verificar__top p { color: var(--o-muted); margin: 0; }
.otec-lj-verificar__body { padding: 22px 26px 26px; }
.otec-lj-verificar__form label { display: block; font-weight: 500; font-size: 13.5px; }
.otec-lj-verificar__row { display: flex; gap: 8px; margin-top: 6px; }
.otec-lj-verificar__row input { margin-top: 0 !important; flex: 1; min-height: 44px !important; font-size: 15px !important; }
.otec-lj-verificar__row .otec-lj-btn { min-height: 44px; padding-left: 18px; padding-right: 18px; }
.otec-lj-verificar__form small { display: block; color: var(--o-muted); margin-top: 8px; font-size: 13px; }
.otec-lj-result { margin-top: 20px; border-radius: var(--o-r); padding: 16px 18px; border: 1px solid; }
.otec-lj-result h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.otec-lj-result h3 svg { width: 22px; height: 22px; }
.otec-lj-result--ok { background: var(--o-ok-bg); border-color: var(--o-ok-line); }
.otec-lj-result--ok h3 { color: var(--o-ok); }
.otec-lj-result--anulado, .otec-lj-result--error { background: var(--o-bad-bg); border-color: var(--o-bad-line); }
.otec-lj-result--anulado h3, .otec-lj-result--error h3 { color: var(--o-bad); }
.otec-lj-result p { color: #374151; }
.otec-lj-result dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 12px 0 0; background: #fff; border-radius: var(--o-r-sm); padding: 14px 16px; border: 1px solid var(--o-line); }
.otec-lj-result dt { color: var(--o-muted); font-size: 13.5px; }
.otec-lj-result dd { margin: 0; font-weight: 500; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
	.otec-lj-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.otec-lj-stat:nth-child(3) { border-left: 0; }
	.otec-lj-stat:nth-child(n+3) { border-top: 1px solid var(--o-line); }
}
@media (max-width: 1024px) {
	.otec-lj-app { grid-template-columns: 1fr; }
	.otec-lj-side { position: fixed; z-index: 1000; left: 0; top: 0; bottom: 0; width: 272px; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(0,0,0,.3); }
	.otec-lj-app.is-side-open .otec-lj-side { transform: none; }
	.otec-lj-app.is-side-open .otec-lj-backdrop { display: block; position: fixed; inset: 0; z-index: 999; background: rgba(17,24,39,.45); }
	.otec-lj-topbar { display: flex; }
	.otec-lj-page-head__crumb { display: none; }
	.otec-lj-main { padding: 20px 16px 36px; }
	.otec-lj-envio { grid-template-columns: 1fr; }
	.otec-lj-envio__doc iframe { min-height: 460px; }
}
@media (max-width: 680px) {
	.otec-lj-page-head__actions, .otec-lj-page-head__actions .otec-lj-btn { width: 100%; }
	.otec-lj-stat { padding: 12px 14px; }
	.otec-lj-stat strong { font-size: 20px; }
	.otec-lj-card { padding: 16px; }
	.otec-lj-card--table { padding: 0; }
	.otec-lj .otec-lj-toolbar input[type=search], .otec-lj .otec-lj-toolbar select { flex: 1 1 100%; width: 100%; max-width: 100%; min-width: 0; }
	.otec-lj-toolbar__right { margin-left: 0; }
	.otec-lj-grid2, .otec-lj-grid3, .otec-lj-config .otec-lj-grid3 { grid-template-columns: 1fr; }
	.otec-lj-img-field { flex-direction: column; align-items: flex-start; }
	.otec-lj-auth__main { padding: 28px 16px; gap: 20px; }
	.otec-lj-auth__card { padding: 26px 20px 22px; }
	.otec-lj-auth__oficial img { width: 128px; }
	.otec-lj-otp { gap: 6px; }
	.otec-lj-otp input { height: 48px; font-size: 20px !important; }
	.otec-lj-verificar { padding: 16px 0; }
	.otec-lj-verificar__row { flex-direction: column; }
	.otec-lj-verificar__top, .otec-lj-verificar__body { padding-left: 18px; padding-right: 18px; }
	.otec-lj-result dl { grid-template-columns: 1fr; gap: 2px; }
	.otec-lj-result dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
	.otec-lj *, .otec-lj *::before, .otec-lj *::after { animation: none !important; transition: none !important; }
}

/* Con la barra de administración de WordPress visible (solo administradores del sitio) */
body.admin-bar .otec-lj-side { top: 32px; height: calc(100vh - 32px); }
body.admin-bar .otec-lj-topbar { top: 32px; }
body.admin-bar .otec-lj-app, body.admin-bar .otec-lj-auth { min-height: calc(100vh - 32px); }
@media (max-width: 1024px) {
	body.admin-bar .otec-lj-side { top: 0; height: 100vh; z-index: 100001; }
}
@media (max-width: 782px) {
	body.admin-bar .otec-lj-topbar { top: 46px; }
	body.admin-bar .otec-lj-app, body.admin-bar .otec-lj-auth { min-height: calc(100vh - 46px); }
}
