/* ================================================================
   TRIUNFAR 2.0 · PORTAL · Certificados y asistencia
   Va en la consulta del estudiante, entre las tarjetas de saldo y
   el Historial de Pagos. Lo pinta portal.js (seguimientoHtml).
================================================================ */
.seg{display:grid;grid-template-columns:1fr 1.25fr;gap:18px;margin:22px 0 6px;align-items:start}
.seg>.seg-card{margin:0;background:#fff;border:1px solid #e3e9f3;border-radius:16px;padding:18px}
.seg-cab{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:12px}
.seg-cab h4{margin:0}
.seg-cab small{color:#6b7a90;font-size:12px;font-weight:600;white-space:nowrap}

/* Certificados */
.seg-barra{height:8px;background:#eef2f8;border-radius:99px;overflow:hidden;margin-bottom:14px}
.seg-barra span{display:block;height:100%;background:linear-gradient(90deg,#16a34a,#34c374);border-radius:99px}
.seg-certs{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.seg-certs li{display:flex;align-items:center;gap:10px;padding:9px 12px;border:1px solid #e3e9f3;border-radius:10px;font-size:13.5px}
.seg-marca{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;flex:none}
.seg-marca svg{width:13px;height:13px;stroke-width:3}
.seg-certs li.ok{background:#ecfaf1;border-color:#bfe8cf}
.seg-certs li.ok .seg-marca{background:#16a34a;color:#fff}
.seg-certs li.pend .seg-marca{border:2px solid #cbd5e1}
.seg-nom{flex:1;font-weight:600;color:var(--primario,#0b2a5b)}
.seg-est{font-size:12px;font-weight:700}
.seg-certs li.ok .seg-est{color:#16a34a}
.seg-certs li.pend .seg-est{color:#8a97aa}

/* Asistencia */
.seg-nums{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px}
.seg-nums>div{border-radius:10px;padding:8px 6px;text-align:center}
.seg-nums b{display:block;font-size:20px;line-height:1.2}
.seg-nums small{font-size:11px;font-weight:600}
.seg-nums .n-a{background:#ecfaf1;color:#16a34a}
.seg-nums .n-i{background:#fdecee;color:#dc2626}
.seg-nums .n-p{background:#eef3ff;color:var(--primario,#0b2a5b)}
.seg-mes{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.seg-mes strong{color:var(--primario,#0b2a5b);font-size:14px}
.seg-mes strong::first-letter{text-transform:uppercase}
.seg-mes button{border:1px solid #e3e9f3;background:#fff;border-radius:8px;width:32px;height:32px;display:grid;place-items:center;cursor:pointer;color:var(--primario,#0b2a5b);padding:0}
.seg-mes button svg{width:16px;height:16px}
.seg-mes button:disabled{opacity:.35;cursor:default}
.seg-cal{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;text-align:center;font-size:12.5px}
.seg-cal .dow{font-size:11px;color:#6b7a90;font-weight:700;padding:4px 0}
.seg-cal .d{padding:7px 0;border-radius:8px;background:#f8fafc;color:#a3aec0}
.seg-cal .d.clase{background:#eef2f7;color:#334155}
.seg-cal .d.asis{background:#16a34a;color:#fff;font-weight:700}
.seg-cal .d.falta{background:#dc2626;color:#fff;font-weight:700}
.seg-cal .d.hoy{box-shadow:inset 0 0 0 2px var(--acento,#f7931e)}
.seg-ley{display:flex;flex-wrap:wrap;gap:6px 14px;justify-content:center;margin-top:10px;font-size:11.5px;color:#6b7a90}
.seg-ley i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;vertical-align:-1px}
.seg-ley .l-a{background:#16a34a}
.seg-ley .l-i{background:#dc2626}
.seg-ley .l-c{background:#eef2f7;border:1px solid #cbd5e1}

@media (max-width:860px){.seg{grid-template-columns:1fr}}
@media (max-width:420px){.seg>.seg-card{padding:14px}.seg-cal{gap:3px;font-size:12px}}

@media print{
  .seg{grid-template-columns:1fr 1.25fr;break-inside:avoid}
  .seg-mes button{display:none}
  .seg-cal .d,.seg-certs li,.seg-nums>div,.seg-barra span,.seg-ley i{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
