/* =====================================================================
   CAPACITACIONES · Grupo Garcha · estilos propios
   Calendario, plan de capacitación, DC-3, credenciales, biblioteca,
   aula virtual, verificación y sitio público. La base está en app.css.
   ===================================================================== */

/* ============================ GENERALES ============================ */
.form-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-2 > .toda { grid-column: 1 / -1; }
.lista { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.lista.palomas { list-style: none; padding-left: 0; }
.lista.palomas li { padding-left: 24px; position: relative; }
.lista.palomas li::before { content: ''; position: absolute; left: 3px; top: 5px; width: 11px; height: 6px; border-left: 2.5px solid var(--brand-600); border-bottom: 2.5px solid var(--brand-600); transform: rotate(-45deg); }
.estrellas { display: inline-flex; gap: 2px; color: var(--steel-200); vertical-align: middle; }
.estrellas svg { width: 16px; height: 16px; display: block; }
.estrellas .on { color: #E0A800; }
.estrellas .on svg { fill: currentColor; }
.velo-menu { display: none; }
.barra-movil-titulo { font-family: var(--f-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 17px; }
.codigo { font-family: var(--f-mono); font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.nota-pie { color: var(--tx-mute); font-size: 12px; margin-top: 10px; }
.enlace-btn { background: none; border: 0; padding: 0; color: var(--info-ink); cursor: pointer; font-weight: 600; }
.enlace-btn:hover { text-decoration: underline; }
.separador { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.sub-titulo { font-family: var(--f-display); font-size: 17px; font-weight: 600; letter-spacing: .02em; margin: 14px 0 6px; }
.tarjeta p { margin: 0 0 8px; }
.tarjeta p:last-child { margin-bottom: 0; }

.datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 18px; }
.dato { min-width: 0; }
.dato span { display: block; font-size: 12px; color: var(--tx-mute); }
.dato strong { display: block; overflow-wrap: anywhere; }

.selector-foto { display: flex; gap: 14px; align-items: center; }
.foto-vista { width: 96px; height: 120px; border: 1px solid var(--line); border-radius: var(--r); background: var(--steel-50); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--steel-400); }
.foto-vista img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-vista svg { width: 40px; height: 40px; }
.avatar { width: 40px; height: 48px; border-radius: var(--r); object-fit: cover; background: var(--steel-100); display: block; flex: none; }

.progreso { height: 10px; background: var(--steel-100); border-radius: 999px; overflow: hidden; }
.progreso > span { display: block; height: 100%; background: var(--ok); border-radius: 999px; }
.progreso.warn > span { background: var(--warn); }
.progreso.crit > span { background: var(--crit); }
.anillo { --p: 0; --c: var(--ok); width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--steel-100) 0); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.anillo::before { content: ''; grid-area: 1 / 1; width: 100px; height: 100px; border-radius: 50%; background: var(--surface); }
.anillo b { grid-area: 1 / 1; z-index: 1; font-family: var(--f-display); font-size: 34px; font-weight: 700; }
.resumen-cumplimiento { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.leyenda-estados { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }

.rejilla-tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.tarjeta.clic { cursor: pointer; transition: border-color .15s, box-shadow .15s; text-align: left; width: 100%; font: inherit; color: inherit; display: block; }
.tarjeta.clic:hover { border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-soft); }
.tarjeta .etq { font-family: var(--f-mono); font-size: 12px; font-weight: 700; color: var(--brand-ink); letter-spacing: .03em; }
.tarjeta h3 { font-family: var(--f-display); font-size: 19px; font-weight: 600; margin: 3px 0 6px; }
.tarjeta .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tarjeta.borde-marca { border-left: 4px solid var(--brand); }

details.acordeon { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
details.acordeon + details.acordeon { margin-top: 8px; }
details.acordeon > summary { cursor: pointer; padding: 11px 14px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
details.acordeon > summary::-webkit-details-marker { display: none; }
details.acordeon > summary::after { content: '+'; font-family: var(--f-mono); font-size: 18px; color: var(--tx-mute); }
details.acordeon[open] > summary::after { content: '–'; }
details.acordeon > .cuerpo { padding: 2px 14px 14px; color: var(--tx-soft); }
.prosa { max-width: 78ch; color: var(--tx-soft); }
.prosa p { margin: 0 0 10px; }
.prosa strong { color: var(--tx); }

/* ============================ CALENDARIO ============================ */
.cal-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cal-nav h2 { font-family: var(--f-display); font-size: 24px; font-weight: 700; text-transform: capitalize; min-width: 190px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--line); gap: 1px; }
.cal-cabeza { background: var(--steel-950); color: #C9D3DD; font-family: var(--f-display); letter-spacing: .12em; text-transform: uppercase; font-size: 13px; padding: 7px 8px; text-align: center; }
.cal-dia { background: var(--surface); min-height: 104px; padding: 5px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-dia.fuera { background: var(--steel-50); }
.cal-dia.fuera .n { color: var(--steel-400); }
.cal-dia .n { font-weight: 600; font-size: 13px; align-self: flex-start; padding: 1px 6px; border-radius: 999px; border: 0; background: none; cursor: pointer; }
.cal-dia .n:hover { background: var(--steel-100); }
.cal-dia.hoy .n { background: var(--brand); color: var(--on-brand); }
.cal-ev { border: 0; text-align: left; font-size: 12px; line-height: 1.25; padding: 3px 6px; border-radius: 3px; cursor: pointer; background: var(--steel-100); color: var(--tx); border-left: 3px solid var(--steel-400); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cal-ev:hover { filter: brightness(.96); }
.cal-ev.solicitada { background: var(--warn-soft); border-left-color: var(--warn); color: var(--warn-ink); }
.cal-ev.confirmada { background: var(--ok-soft); border-left-color: var(--ok); color: var(--ok-ink); }
.cal-ev.impartida { background: var(--info-soft); border-left-color: var(--info-ink); color: var(--info-ink); }
.cal-ev.cancelada { text-decoration: line-through; color: var(--tx-mute); }
.cal-ev b { font-weight: 700; }
.agenda-dia { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--steel-100); }
.agenda-dia:last-child { border-bottom: 0; }
.agenda-fecha { text-align: center; font-family: var(--f-display); line-height: 1; }
.agenda-fecha b { display: block; font-size: 30px; }
.agenda-fecha span { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--tx-mute); }
.agenda-item { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.agenda-item .t { font-weight: 600; }

/* ============================ PLAN DE CAPACITACIÓN (matriz) ============================ */
.matriz-wrap { overflow: auto; max-height: 70vh; border-top: 1px solid var(--line); }
table.matriz { border-collapse: separate; border-spacing: 0; font-size: 13px; }
.matriz th, .matriz td { border-bottom: 1px solid var(--steel-100); border-right: 1px solid var(--steel-100); padding: 6px 8px; background: var(--surface); }
.matriz thead th { position: sticky; top: 0; z-index: 2; background: var(--steel-50); vertical-align: bottom; text-align: left; font-weight: 600; min-width: 112px; max-width: 150px; }
.matriz thead th .etq { font-family: var(--f-mono); font-size: 11px; color: var(--brand-ink); display: block; }
.matriz thead th button { margin-top: 4px; }
.matriz .fija { position: sticky; left: 0; z-index: 1; min-width: 210px; max-width: 260px; text-align: left; }
.matriz thead .fija { z-index: 3; }
.matriz td.celda { text-align: center; padding: 4px; }
.pastilla { display: inline-block; min-width: 82px; padding: 3px 6px; border-radius: 3px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pastilla.vigente { background: var(--ok-soft); color: var(--ok-ink); }
.pastilla.por_vencer { background: var(--warn-soft); color: var(--warn-ink); }
.pastilla.vencida, .pastilla.faltante { background: var(--crit-soft); color: var(--crit-ink); }
.pastilla.extra { background: var(--steel-100); color: var(--tx-soft); }
.matriz td.celda .vacia { color: var(--steel-200); }

/* ============================ DIAGNÓSTICO Y NORMAS ============================ */
.diag-grupo { margin-bottom: 16px; }
.diag-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 8px; }
.diag-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; }
.diag-item:hover { border-color: var(--steel-400); }
.diag-item input { width: 19px; height: 19px; flex: none; margin-top: 1px; accent-color: var(--steel-950); }
.diag-item:has(input:checked) { border-color: var(--brand-600); background: #FFFBE6; }
.diag-item .t { font-weight: 600; }
.diag-item .a { font-size: 12px; color: var(--tx-mute); }
.norma-cabeza { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.norma-bloques { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.bloque h4 { font-family: var(--f-display); font-size: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--tx-soft); margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.bloque h4 svg { width: 16px; height: 16px; color: var(--brand-ink); }
.curso-norma { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-top: 10px; background: var(--steel-50); }
.curso-norma .cab { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.curso-norma .n { font-weight: 700; font-size: 15px; }
.temario { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.temario li { break-inside: avoid; margin-bottom: 3px; }
.pendiente { display: flex; gap: 10px; align-items: flex-start; padding: 9px 2px; border-bottom: 1px solid var(--steel-100); cursor: pointer; }
.pendiente:last-child { border-bottom: 0; }
.pendiente input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--ok); }
.pendiente:has(input:checked) .t { color: var(--tx-mute); text-decoration: line-through; }
.pendiente .a { font-size: 12px; color: var(--tx-mute); }

/* ============================ VIDEO Y BIBLIOTECA ============================ */
.video-marco { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r-lg); overflow: hidden; }
.video-marco iframe, .video-marco video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.video-vacio { aspect-ratio: 16 / 9; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--steel-900), var(--steel-700)); color: #C9D3DD; display: grid; place-items: center; text-align: center; padding: 20px; }
.video-vacio svg { width: 54px; height: 54px; color: var(--brand); display: block; margin: 0 auto 8px; }
.medio { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; text-align: left; padding: 0; font: inherit; color: inherit; }
.medio:hover { border-color: var(--brand-600); }
.medio-mini { aspect-ratio: 16 / 9; background: var(--steel-900); position: relative; display: grid; place-items: center; color: var(--brand); overflow: hidden; }
.medio-mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.medio-mini svg { width: 44px; height: 44px; position: relative; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.medio-mini.texto { background: var(--steel-950); aspect-ratio: auto; padding: 16px; place-items: start; color: #fff; min-height: 96px; }
.medio-mini.texto svg { width: 26px; height: 26px; }
.medio-cuerpo { padding: 11px 13px 13px; display: grid; gap: 5px; align-content: start; flex: 1; }
.medio-cuerpo .t { font-weight: 700; line-height: 1.25; }
.medio-cuerpo .d { font-size: 13px; color: var(--tx-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.foto-grande { width: 100%; max-height: 70vh; object-fit: contain; background: var(--steel-950); border-radius: var(--r); display: block; }
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.galeria button { padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; cursor: zoom-in; background: var(--steel-50); aspect-ratio: 4 / 3; }
.galeria img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================ INSTRUCTOR Y COMENTARIOS ============================ */
.presentacion { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.cv-cabeza { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.cv-foto { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid var(--brand); flex: none; background: var(--steel-100); }
.cv-nombre { font-family: var(--f-display); font-size: 30px; font-weight: 700; line-height: 1.05; }
.cv-titulo { color: var(--tx-soft); }
.cv h4 { font-family: var(--f-display); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-ink); margin: 14px 0 5px; }
.testimonios { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.testimonio { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 10px; align-content: start; border-top: 3px solid var(--brand); box-shadow: var(--sh-sm); }
.testimonio blockquote { margin: 0; font-size: 15px; line-height: 1.5; color: var(--tx); }
.testimonio .autor { font-weight: 700; }
.testimonio .cargo { font-size: 13px; color: var(--tx-mute); }

/* ============================ DC-3 ============================ */
.dc3 { background: #fff; color: #000; width: 196mm; max-width: 100%; margin: 0 auto; padding: 8mm; border: 1px solid var(--line); font-family: Arial, Helvetica, sans-serif; font-size: 10.5px; line-height: 1.3; }
.dc3-cabeza { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 3mm; }
.dc3-cabeza img { height: 13mm; }
.dc3-titulo { text-align: center; flex: 1; }
.dc3-titulo b { display: block; font-size: 13px; letter-spacing: .02em; }
.dc3-formato { text-align: right; font-size: 10px; white-space: nowrap; }
.dc3-formato b { display: block; font-size: 15px; }
.dc3-seccion { background: #000; color: #fff; font-weight: 700; text-align: center; padding: 1.2mm; font-size: 10.5px; letter-spacing: .04em; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.dc3-fila { display: flex; border: 1px solid #000; border-top: 0; }
.dc3-campo { flex: 1; padding: 1mm 1.8mm 1.4mm; border-right: 1px solid #000; min-height: 10.5mm; min-width: 0; }
.dc3-campo:last-child { border-right: 0; }
.dc3-campo span { display: block; font-size: 8.5px; color: #222; }
.dc3-campo b { display: block; font-size: 12px; overflow-wrap: anywhere; min-height: 4.5mm; }
.dc3-campo.falta b { color: #a42727; font-weight: 400; font-style: italic; font-size: 10.5px; }
.dc3-curp { display: flex; gap: 0; margin-top: .6mm; }
.dc3-curp i { font-style: normal; font-weight: 700; font-size: 12px; width: 5.2mm; height: 6mm; border: 1px solid #000; border-right: 0; display: grid; place-items: center; }
.dc3-curp i:last-child { border-right: 1px solid #000; }
.dc3-protesta { border: 1px solid #000; border-top: 0; padding: 2mm; text-align: center; font-size: 10px; }
.dc3-firmas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6mm; border: 1px solid #000; border-top: 0; padding: 15mm 4mm 3mm; }
.dc3-firma { text-align: center; border-top: 1px solid #000; padding-top: 1mm; font-size: 9.5px; }
.dc3-firma b { display: block; font-size: 10.5px; min-height: 4mm; }
.dc3-pie { display: flex; justify-content: space-between; gap: 6mm; align-items: center; margin-top: 3mm; font-size: 9px; color: #222; }
.dc3-pie img { width: 21mm; height: 21mm; flex: none; }
.dc3-instrucciones { margin-top: 3mm; font-size: 8px; color: #333; columns: 2; column-gap: 6mm; }
.dc3-instrucciones p { margin: 0 0 1mm; }
.dc3.anulada { position: relative; }
.dc3.anulada::after { content: 'ANULADA'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 90px; font-weight: 700; color: rgba(208, 59, 59, .28); transform: rotate(-24deg); pointer-events: none; }

/* ============================ CREDENCIAL / LICENCIA (CR80: 85.6 × 54 mm) ============================ */
.cred-par { display: flex; gap: 6mm; flex-wrap: wrap; justify-content: center; }
.cred { --acento: var(--brand); width: 85.6mm; height: 54mm; border-radius: 3.2mm; overflow: hidden; background: #fff; color: #0A0E13; position: relative; flex: none;
  font-family: var(--f-body); box-shadow: 0 2px 10px rgba(10, 14, 19, .18); border: .2mm solid #c9d0d8; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.cred-banda { background: #0E141B; color: #fff; height: 12.5mm; display: flex; align-items: center; justify-content: space-between; gap: 2mm; padding: 0 3.2mm; border-bottom: 1.3mm solid var(--acento); }
.cred-banda img { height: 6.4mm; width: auto; display: block; }
.cred-tipo { text-align: right; font-family: var(--f-display); line-height: 1.02; min-width: 0; }
.cred-tipo b { display: block; font-size: 9.4pt; letter-spacing: .03em; text-transform: uppercase; }
.cred-tipo span { display: block; font-size: 6pt; color: #C9D3DD; letter-spacing: .04em; }
.cred-cuerpo { display: grid; grid-template-columns: 22mm minmax(0, 1fr); gap: 3mm; padding: 2.6mm 3.2mm 0; }
.cred-foto { width: 22mm; height: 27.5mm; border-radius: 1.2mm; background: #E9EDF1; object-fit: cover; display: grid; place-items: center; color: #7C8B9C; border: .3mm solid #0E141B; overflow: hidden; }
.cred-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cred-foto svg { width: 11mm; height: 11mm; }
.cred-nombre { font-family: var(--f-display); font-weight: 700; font-size: 12.5pt; line-height: 1.02; text-transform: uppercase; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cred-dato { margin-top: 1.1mm; line-height: 1.1; min-width: 0; }
.cred-dato span { display: block; font-size: 4.8pt; text-transform: uppercase; letter-spacing: .06em; color: #4E5C6B; }
.cred-dato b { display: block; font-size: 7.2pt; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cred-dos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 2mm; }
.cred-dos.curp { grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); }
.cred-pie { position: absolute; left: 0; right: 0; bottom: 0; height: 7.2mm; display: flex; align-items: center; justify-content: space-between; padding: 0 3.2mm; background: #F4F6F8; border-top: .2mm solid #D3DAE1; font-size: 6pt; }
.cred-pie b { font-family: var(--f-mono); font-size: 7.4pt; }
.cred-vig { background: var(--acento); color: #0A0E13; font-weight: 700; padding: .7mm 2mm; border-radius: .8mm; font-size: 6.6pt; white-space: nowrap; }
.cred-reverso .cred-banda { height: 7mm; border-bottom-width: 1mm; font-family: var(--f-display); font-size: 8pt; letter-spacing: .1em; text-transform: uppercase; }
.cred-atras { display: grid; grid-template-columns: minmax(0, 1fr) 21mm; gap: 3mm; padding: 2.2mm 3.2mm 0; }
.cred-campos { min-width: 0; max-height: 27mm; overflow: hidden; }
.cred-campos .cred-dato b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cred-qr { text-align: center; }
.cred-qr img { width: 20mm; height: 20mm; display: block; margin: 0 auto .6mm; }
.cred-qr b { font-family: var(--f-mono); font-size: 6.2pt; display: block; }
.cred-qr span { font-size: 4.6pt; color: #4E5C6B; display: block; line-height: 1.1; }
.cred-firma { position: absolute; left: 3.2mm; width: 52mm; bottom: 6.2mm; border-top: .25mm solid #0A0E13; padding-top: .5mm; font-size: 5pt; text-align: center; color: #4E5C6B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cred-firma b { display: block; font-size: 6.2pt; color: #0A0E13; }
.cred-leyenda { position: absolute; left: 3.2mm; right: 3.2mm; bottom: 1.4mm; font-size: 4.3pt; line-height: 1.15; color: #4E5C6B; text-align: center; }
.cred.anulada::after, .cred.vencida::after { content: 'ANULADA'; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-size: 30pt; font-weight: 700; color: rgba(208, 59, 59, .4); transform: rotate(-20deg); pointer-events: none; }
.cred.vencida::after { content: 'VENCIDA'; }
.cred-escala { transform-origin: top left; }

/* ============================ VERIFICACIÓN POR CÓDIGO ============================ */
.publica { min-height: 100vh; background: var(--page); }
.publica-barra { background: var(--steel-950); color: #fff; padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 3px solid var(--brand); }
.publica-barra img { height: 30px; display: block; }
.publica-barra span { font-family: var(--f-display); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; font-size: 15px; }
.publica-cuerpo { max-width: 760px; margin: 0 auto; padding: 20px 14px 60px; display: grid; gap: 14px; }
.veredicto { display: flex; align-items: center; gap: 14px; padding: 15px 20px; border-radius: var(--r-lg); font-family: var(--f-display); font-weight: 700; font-size: 27px; line-height: 1.1; }
.veredicto svg { width: 38px; height: 38px; flex: none; }
.veredicto small { display: block; font-family: var(--f-body); font-size: 14px; font-weight: 500; margin-top: 2px; }
.veredicto.ok { background: var(--ok); color: #fff; }
.veredicto.warn { background: var(--warn); color: var(--on-brand); }
.veredicto.crit { background: var(--crit); color: #fff; }
.persona-verif { display: flex; gap: 16px; align-items: center; }
.persona-verif img, .persona-verif .sin-foto { width: 92px; height: 115px; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); flex: none; background: var(--steel-100); display: grid; place-items: center; color: var(--steel-400); }
.persona-verif .sin-foto svg { width: 40px; height: 40px; }
.persona-verif .nombre { font-family: var(--f-display); font-size: 28px; font-weight: 700; line-height: 1.05; }
.buscador-codigo { display: flex; gap: 8px; flex-wrap: wrap; }
.buscador-codigo input { flex: 1; min-width: 180px; font-family: var(--f-mono); font-size: 20px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 11px 14px; border: 2px solid var(--steel-950); border-radius: var(--r); background: #fff; }
.buscador-codigo input::placeholder { font-family: var(--f-body); font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--tx-mute); }
.buscador-codigo input:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 4px var(--brand-soft); }
.qr-caja { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.qr-caja img { width: 132px; height: 132px; border: 1px solid var(--line); padding: 6px; background: #fff; border-radius: var(--r); }
.qr-caja .codigo { font-size: 24px; }

/* ============================ AULA VIRTUAL ============================ */
.aula { max-width: 1180px; margin: 0 auto; padding: 16px 14px 60px; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.aula-indice { position: sticky; top: 12px; }
.leccion-item { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--steel-100); background: none; cursor: pointer; font: inherit; color: inherit; }
.leccion-item:last-child { border-bottom: 0; }
.leccion-item:hover { background: var(--steel-50); }
.leccion-item.activa { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand-600); }
.leccion-item:disabled { opacity: .5; cursor: not-allowed; }
.leccion-item .marca { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--steel-200); flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--tx-mute); }
.leccion-item.vista .marca { background: var(--ok); border-color: var(--ok); color: #fff; }
.leccion-item .marca svg { width: 13px; height: 13px; }
.leccion-item .t { font-weight: 600; line-height: 1.25; }
.leccion-item .m { font-size: 12px; color: var(--tx-mute); }
.aula-titulo { font-family: var(--f-display); font-size: 27px; font-weight: 700; margin-bottom: 10px; }
.aula-texto { font-size: 15.5px; line-height: 1.6; max-width: 74ch; }
.aula-texto p { margin: 0 0 12px; }
.pregunta { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin: 0 0 10px; min-width: 0; }
.pregunta legend { font-weight: 700; padding: 0 6px; font-size: 15px; float: left; width: 100%; margin-bottom: 8px; }
.opcion { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: var(--r); cursor: pointer; clear: both; }
.opcion:hover { background: var(--steel-50); }
.opcion input { width: 18px; height: 18px; flex: none; margin-top: 1px; accent-color: var(--steel-950); }
.resultado-aula { text-align: center; padding: 26px 16px; }
.resultado-aula .cal { display: block; border: 0; background: none; font-family: var(--f-display); font-size: 70px; font-weight: 700; line-height: 1; }

/* ============================ EDITOR DE CONTENIDO VIRTUAL ============================ */
.bloque-editor { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; background: var(--steel-50); display: grid; gap: 10px; }
.bloque-editor .cab { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bloque-editor .cab b { font-family: var(--f-display); font-size: 17px; }
.opciones-editor { display: grid; gap: 6px; }
.opciones-editor label { display: flex; gap: 8px; align-items: center; }
.opciones-editor input[type=radio] { width: 18px; height: 18px; flex: none; accent-color: var(--ok); }
.opciones-editor input[type=text] { flex: 1; min-width: 0; padding: 7px 9px; border: 1px solid var(--steel-200); border-radius: var(--r); }

/* ============================ SITIO PÚBLICO ============================ */
.sitio { background: #fff; }
.sitio-nav { position: sticky; top: 0; z-index: 50; background: rgba(14, 20, 27, .96); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px clamp(14px, 4vw, 44px); border-bottom: 3px solid var(--brand); }
.sitio-nav img { height: 34px; display: block; }
.sitio-nav nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.sitio-nav nav a { color: #C9D3DD; padding: 7px 11px; border-radius: var(--r); font-weight: 600; }
.sitio-nav nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.sitio-nav nav a.btn { color: var(--on-brand); }
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(255, 209, 0, .16), transparent 60%), linear-gradient(160deg, #0E141B 0%, #1B242F 100%); color: #fff; padding: clamp(40px, 8vw, 92px) clamp(14px, 4vw, 44px); }
.hero-caja { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 34px; align-items: center; }
.hero .sobre { font-family: var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.hero h1 { font-family: var(--f-display); font-size: clamp(38px, 6vw, 68px); font-weight: 700; line-height: .98; margin: 8px 0 14px; text-transform: uppercase; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p { font-size: 17px; color: #C9D3DD; max-width: 56ch; margin: 0 0 22px; }
.hero-cifras { display: grid; gap: 10px; }
.hero-cifra { border: 1px solid rgba(255, 255, 255, .14); border-left: 4px solid var(--brand); border-radius: var(--r); padding: 12px 16px; background: rgba(255, 255, 255, .04); }
.hero-cifra b { display: block; font-family: var(--f-display); font-size: 21px; }
.hero-cifra span { color: #9fb0c1; font-size: 13px; }
.seccion { padding: clamp(36px, 6vw, 70px) clamp(14px, 4vw, 44px); }
.seccion > .caja { max-width: 1180px; margin: 0 auto; }
.seccion.gris { background: var(--page); }
.seccion.oscura { background: var(--steel-950); color: #fff; }
.seccion.oscura .sub-seccion { color: #9fb0c1; }
.sobre-seccion { font-family: var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--brand-ink); font-weight: 600; font-size: 14px; }
.seccion.oscura .sobre-seccion { color: var(--brand); }
.titulo-seccion { font-family: var(--f-display); font-size: clamp(28px, 4vw, 42px); font-weight: 700; text-transform: uppercase; line-height: 1.02; margin: 4px 0 8px; }
.sub-seccion { color: var(--tx-soft); max-width: 70ch; margin: 0 0 24px; font-size: 16px; }
.rasgos { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.rasgo { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; background: #fff; }
.rasgo svg { width: 30px; height: 30px; color: var(--steel-950); background: var(--brand); border-radius: var(--r); padding: 5px; }
.rasgo h3 { font-family: var(--f-display); font-size: 21px; font-weight: 600; margin: 10px 0 4px; }
.rasgo p { margin: 0; color: var(--tx-soft); }
.cursos-sitio { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.curso-sitio { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; background: #fff; border-left: 4px solid var(--brand); }
.curso-sitio b { display: block; line-height: 1.25; }
.curso-sitio span { font-size: 12px; color: var(--tx-mute); }
.contacto-caja { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.contacto-caja .tarjeta { color: var(--tx); }
.pie-sitio { background: #0A0E13; color: #8796a7; padding: 22px clamp(14px, 4vw, 44px); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pie-sitio a { color: #C9D3DD; }

/* ============================ IMPRESIÓN ============================ */
#zona-impresion { display: none; }
@media print {
  @page { size: letter; margin: 9mm 10mm; }
  body.imprimiendo { background: #fff; }
  body.imprimiendo > *:not(#zona-impresion) { display: none !important; }
  body.imprimiendo #zona-impresion { display: block; }
  #zona-impresion .dc3 { border: 0; padding: 0; width: auto; break-after: page; }
  #zona-impresion .dc3:last-child { break-after: auto; }
  #zona-impresion .cred { box-shadow: none; }
  #zona-impresion .cred-par { break-inside: avoid; margin-bottom: 8mm; justify-content: flex-start; }
  #zona-impresion .hoja-tarjeta { break-after: page; }
  #zona-impresion .hoja-tarjeta .cred { border: 0; border-radius: 0; }
  #zona-impresion .hoja-tarjeta:last-child { break-after: auto; }
  #zona-impresion .solo-pantalla { display: none; }
}

/* ============================ PANTALLAS CHICAS ============================ */
@media screen and (max-width: 1080px) {
  .presentacion, .hero-caja, .contacto-caja { grid-template-columns: minmax(0, 1fr); }
  .norma-bloques { grid-template-columns: minmax(0, 1fr); }
  .aula { grid-template-columns: minmax(0, 1fr); }
  .aula-indice { position: static; }
}
@media screen and (max-width: 860px) {
  .velo-menu { display: none; position: fixed; inset: 0; background: rgba(10, 14, 19, .5); z-index: 39; }
  .lateral.abierto + .velo-menu { display: block; }
  .form-2 { grid-template-columns: minmax(0, 1fr); }
  .temario { columns: 1; }
  .cal-dia { min-height: 64px; padding: 3px; }
  .cal-ev { font-size: 10.5px; padding: 2px 3px; -webkit-line-clamp: 1; }
  .cal-ev .hora { display: none; }
  .cal-cabeza { font-size: 11px; padding: 5px 2px; letter-spacing: .04em; }
  .encabezado h1 { font-size: 26px; }
  .modal-fondo { padding: 0; align-items: stretch; }
  .modal, .modal.ancho { max-width: none; border-radius: 0; min-height: 100%; display: flex; flex-direction: column; }
  .modal-cuerpo { flex: 1; }
  .modal-pie { position: sticky; bottom: 0; background: #fff; }
  .sitio-nav nav a:not(.btn) { display: none; }
  .persona-verif .nombre { font-size: 23px; }
  .tabla th, .tabla td { padding: 9px 10px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi .v { font-size: 26px; }
  .dc3 { font-size: 9px; padding: 4mm; }
}
