/* colegio-dash.css — Dashboard compacto de rector, coordinador y docente (js/colegio-dashboard.js). Prefijo cdb- */
.cdb { --ink: #0f1f4d; --mut: #5b6785; --line: #e3e9f7; display: grid; gap: 12px; min-width: 0; }
.cdb * { box-sizing: border-box; }
/* saludo en la MISMA línea del título (cabecera de la página) */
.adm-top--dash { align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.adm-top--dash .adm-top__title { font-size: 1.25rem; white-space: nowrap; } .adm-top--dash .adm-top__sub { display: none; }
.adm-top__slot { margin-left: auto; min-width: 0; flex: 1 1 520px; }
.cdb-top { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 6px 10px; border-radius: 14px; color: #fff; background: linear-gradient(120deg, #13327f, #1d4ed8 60%, #5b3fd0); flex-wrap: wrap; }
.cdb-top__t { flex: 1 1 200px; min-width: 0; line-height: 1.2; } .cdb-top__t b { display: block; font-size: .95rem; } .cdb-top__t small { display: block; font-size: .7rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cdb-top__g { display: flex; gap: 4px; flex-wrap: wrap; } .cdb-top__g span { padding: 1px 8px; border-radius: 999px; font-size: .7rem; font-weight: 800; background: rgba(255,255,255,.16); }
.cdb-top__cta { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 8px; align-items: center; padding: 5px 11px; border-radius: 10px; background: #fff; color: #13327f; font-size: .76rem; font-weight: 700; max-width: 100%; }
.cdb-top__cta b { color: #1d4ed8; white-space: nowrap; } .cdb-top__cta:hover { box-shadow: 0 6px 16px rgba(0,0,0,.25); } .cdb-top__cta:focus-visible { outline: 3px solid #fcd34d; }
@media (max-width: 720px) { .cdb-top__cta { width: 100%; justify-content: space-between; } .adm-top--dash .adm-top__title { font-size: 1.1rem; } }
/* indicadores pequeños */
.cdb-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(126px, 1fr)); gap: 8px; }
.cdb-k { all: unset; box-sizing: border-box; position: relative; display: flex; gap: 7px; align-items: center; padding: 7px 8px 7px 13px; border-radius: 13px; background: #fff; border: 1px solid var(--line); min-width: 0; }
.cdb-k::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 4px; background: var(--c, #2563eb); }
.cdb-k.is-link { cursor: pointer; transition: transform .12s, box-shadow .12s; } .cdb-k.is-link:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -12px rgba(15,31,77,.55); } .cdb-k.is-link:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }
.cdb-k__i { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 10px; font-size: 1rem; background: color-mix(in srgb, var(--c) 13%, #fff); }
.cdb-k div { min-width: 0; } .cdb-k strong { display: block; font-size: 1.3rem; line-height: 1; color: var(--ink); } .cdb-k b { display: block; font-size: .68rem; overflow-wrap: normal; color: var(--ink); margin-top: 2px; line-height: 1.15; } .cdb-k small { display: block; font-size: .66rem; color: var(--mut); }
.cdb-t-azul { --c: #2563eb; } .cdb-t-verde { --c: #16a34a; } .cdb-t-ambar { --c: #d97706; } .cdb-t-rojo { --c: #dc2626; } .cdb-t-violeta { --c: #7c3aed; } .cdb-t-gris { --c: #94a3b8; }
/* filas de paneles (rejilla de 12) */
.cdb-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.cdb-p { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 11px 14px 12px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cdb-p header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 8px; } .cdb-p h4 { white-space: nowrap; margin: 0; font-size: .92rem; color: var(--ink); } .cdb-p header small { color: var(--mut); font-size: .68rem; text-align: right; }
.cdb-w3 { grid-column: span 3; } .cdb-w4 { grid-column: span 4; } .cdb-w5 { grid-column: span 5; }
@media (max-width: 1180px) { .cdb-w3, .cdb-w4, .cdb-w5 { grid-column: span 6; } }
@media (max-width: 720px) { .cdb-w3, .cdb-w4, .cdb-w5 { grid-column: 1 / -1; } .cdb-top__cta { width: 100%; justify-content: space-between; } }
.cdb-nada { margin: 0; padding: 14px 6px; text-align: center; color: var(--mut); font-size: .82rem; } .cdb-nada span { display: block; font-size: 1.4rem; margin-bottom: 2px; }
.cdb-link { all: unset; cursor: pointer; margin-top: auto; font-size: .78rem; font-weight: 800; color: #1d4ed8; } .cdb-link:hover { text-decoration: underline; }
/* columnas por grado */
.cdb-cols { display: flex; align-items: flex-end; justify-content: space-around; gap: 8px; height: 150px; padding-top: 4px; }
.cdb-col { flex: 1; max-width: 70px; height: 100%; display: grid; grid-template-rows: auto 1fr auto auto; justify-items: center; gap: 2px; }
.cdb-col__v { font-size: .76rem; font-weight: 800; color: var(--ink); } .cdb-col__b { width: 100%; background: #eef2fb; border-radius: 8px 8px 3px 3px; display: flex; align-items: flex-end; overflow: hidden; } .cdb-col__b i { display: block; width: 100%; border-radius: 8px 8px 0 0; transition: height .5s; }
.cdb-col__t { font-weight: 800; font-size: .82rem; color: var(--ink); } .cdb-col small { font-size: .62rem; color: var(--mut); }
/* anillo */
.cdb-don { display: flex; gap: 12px; align-items: center; }
.cdb-don__r { width: 92px; height: 92px; border-radius: 50%; flex: none; display: grid; place-items: center; } .cdb-don__r > div { width: 62px; height: 62px; border-radius: 50%; background: #fff; display: grid; align-content: center; justify-items: center; } .cdb-don__r b { font-size: 1.2rem; color: var(--ink); line-height: 1; } .cdb-don__r small { font-size: .58rem; color: var(--mut); }
.cdb-don ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; flex: 1; min-width: 0; } .cdb-don li { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--ink); } .cdb-don li i { width: 9px; height: 9px; border-radius: 50%; flex: none; } .cdb-don li b { margin-left: auto; } .cdb-sin i { background: #cbd5e1; }
/* en vivo (tarjeta oscura como la del administrador) */
.cdb-vivo { background: linear-gradient(150deg, #064e3b, #0f766e); border-color: #0f766e; color: #ecfdf5; }
.cdb-vivo h4, .cdb-vivo .cdb-link { color: #fff; }
.cdb-vivo__b { display: grid; gap: 8px; }
.cdb-vivo__n { display: flex; align-items: center; gap: 10px; } .cdb-vivo__n b { font-size: 2.4rem; line-height: 1; } .cdb-vivo__n span { font-size: .76rem; line-height: 1.2; opacity: .9; } .cdb-vivo__n em { margin-left: auto; font-style: normal; font-size: .76rem; background: rgba(255,255,255,.15); padding: 3px 9px; border-radius: 999px; }
.cdb-vivo__g { display: flex; align-items: flex-end; gap: 7px; height: 52px; } .cdb-vivo__g span { flex: 1; max-width: 34px; height: 100%; display: grid; grid-template-rows: 1fr auto auto; justify-items: center; font-size: .6rem; } .cdb-vivo__g i { width: 100%; align-self: end; border-radius: 5px 5px 2px 2px; background: #6ee7b7; } .cdb-vivo__g b { font-size: .68rem; } .cdb-vivo__g small { opacity: .8; }
.cdb-vivo__l { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; } .cdb-vivo__l li { display: flex; align-items: center; gap: 7px; font-size: .76rem; background: rgba(255,255,255,.1); padding: 3px 8px; border-radius: 9px; } .cdb-vivo__l b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; } .cdb-vivo__l small { opacity: .85; white-space: nowrap; }
.cdb-vivo .cdb-nada, .cdb-vivo__v { color: #a7f3d0; margin: 0; font-size: .8rem; }
/* mapa de calor */
.cdb-heat { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: .78rem; } .cdb-heat th { font-weight: 700; color: var(--mut); text-align: center; font-size: .72rem; } .cdb-heat tbody th { text-align: left; white-space: nowrap; color: var(--ink); } .cdb-heat tbody th span { margin-right: 4px; }
.cdb-h { text-align: center; font-weight: 800; padding: 7px 4px; border-radius: 8px; color: #fff; cursor: default; } .cdb-h[data-m] { cursor: pointer; transition: transform .1s; } .cdb-h[data-m]:hover { transform: scale(1.07); } .cdb-h[data-m]:focus-visible { outline: 3px solid #1d4ed8; }
.cdb-h--ok { background: #16a34a; } .cdb-h--mid { background: #f59e0b; } .cdb-h--low { background: #dc2626; } .cdb-h--gris { background: #eef2fb; color: #94a3b8; font-weight: 600; }
/* participación */
.cdb-bars { display: grid; gap: 7px; } .cdb-bars > div { display: grid; grid-template-columns: 28px 1fr 38px; gap: 8px; align-items: center; font-size: .78rem; color: var(--ink); } .cdb-bars span { font-weight: 800; } .cdb-bars b { text-align: right; }
.cdb-bars i { height: 9px; border-radius: 9px; background: #e8edf8; overflow: hidden; } .cdb-bars u { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #2563eb, #60a5fa); }
/* simulacros */
.cdb-sim { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .cdb-sim li { display: flex; gap: 9px; align-items: center; padding: 6px 9px; border-radius: 11px; border: 1px solid var(--line); background: #fafbff; }
.cdb-sim li.is-on { background: #f0fbf4; border-color: #86d3a0; } .cdb-sim li.is-pend { background: #fffbeb; border-color: #f4d9a0; }
.cdb-sim__f { width: 34px; flex: none; text-align: center; font-size: .6rem; text-transform: uppercase; color: var(--mut); line-height: 1.05; } .cdb-sim__f b { display: block; font-size: 1.1rem; color: var(--ink); }
.cdb-sim div { flex: 1; min-width: 0; } .cdb-sim div b { display: block; font-size: .8rem; color: var(--ink); } .cdb-sim small { font-size: .68rem; color: var(--mut); } .cdb-sim em { font-style: normal; font-weight: 800; font-size: .78rem; color: var(--ink); }
.cdb-mini { display: block; height: 5px; border-radius: 5px; background: #e5e9f5; overflow: hidden; margin-top: 3px; } .cdb-mini u { display: block; height: 100%; background: #16a34a; }
/* alertas, a quién acompañar, equipo */
.cdb-al { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .cdb-al li { display: flex; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 11px; background: #fafbff; border: 1px solid var(--line); font-size: .78rem; color: var(--ink); } .cdb-al li div { flex: 1; min-width: 0; } .cdb-al button { all: unset; cursor: pointer; font-size: .7rem; font-weight: 800; color: #1d4ed8; padding: 2px 8px; border-radius: 8px; background: #eef3ff; }
.cdb-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .cdb-trio span { text-align: center; padding: 6px 2px; border-radius: 11px; background: color-mix(in srgb, var(--c) 10%, #fff); font-size: .64rem; color: var(--mut); line-height: 1.15; } .cdb-trio b { display: block; font-size: 1.25rem; color: var(--c); }
.cdb-est { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; } .cdb-est li { display: flex; align-items: center; gap: 8px; font-size: .78rem; } .cdb-est li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: .64rem; font-weight: 800; background: #eef3ff; color: #1d4ed8; } .cdb-est b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); } .cdb-est small { color: var(--mut); white-space: nowrap; font-size: .68rem; }
.cdb-chips { display: flex; flex-wrap: wrap; gap: 5px; } .cdb-chip { display: inline-flex; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; } .cdb-chip--ok { background: #e7f7ec; color: #166534; } .cdb-chip--no { background: #fef2f2; color: #b91c1c; }
.cdb-nota { margin: 0; font-size: .76rem; color: var(--mut); }
/* accesos rápidos */
.cdb-acc { display: flex; flex-wrap: wrap; gap: 7px; } .cdb-acc button { all: unset; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; padding: 7px 13px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-size: .78rem; font-weight: 700; color: var(--ink); transition: border-color .12s, background .12s; } .cdb-acc button:hover { border-color: #93a8e6; background: #eef3ff; } .cdb-acc button:focus-visible { outline: 3px solid #93a8e6; }
.cdb-priv { margin: 0; text-align: center; color: var(--mut); font-size: .68rem; }

/* ===== Listado de estudiantes (js/colegio-listado.js) ===== */
.cl-lt { display: grid; gap: 12px; min-width: 0; --ink: #0f1f4d; --mut: #5b6785; --line: #e3e9f7; }
.cl-lt__k { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 8px; }
.cl-lt__kp { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 9px; align-items: center; padding: 8px 12px; border-radius: 13px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--c, #94a3b8); transition: transform .12s, box-shadow .12s; }
.cl-lt__kp:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -12px rgba(15,31,77,.5); } .cl-lt__kp:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }
.cl-lt__kp span { grid-row: span 2; font-size: 1.3rem; } .cl-lt__kp b { font-size: 1.3rem; line-height: 1; color: var(--ink); } .cl-lt__kp small { font-size: .7rem; color: var(--mut); }
.cl-lt--violeta { --c: #7c3aed; } .cl-lt--verde { --c: #16a34a; } .cl-lt--ambar { --c: #d97706; } .cl-lt--rojo { --c: #dc2626; } .cl-lt--gris { --c: #94a3b8; }
.cl-lt__bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.cl-lt__bar input, .cl-lt__bar select { font: inherit; font-size: .85rem; padding: 8px 10px; border: 1.5px solid #dbe3f5; border-radius: 10px; background: #fff; min-width: 0; }
.cl-lt__bar input { flex: 1 1 230px; } .cl-lt__bar select { flex: 0 1 170px; }
.cl-lt__acc { margin-left: auto; display: flex; gap: 6px; }
.cl-lt__c { font-size: .8rem; color: var(--mut); margin: 0 2px 6px; }
.cl-lt__w { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.cl-lt__tb { width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 880px; }
.cl-lt__tb th { position: sticky; top: 0; background: #f4f7ff; color: var(--mut); font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; text-align: left; padding: 9px 10px; white-space: nowrap; }
.cl-lt__tb td { padding: 8px 10px; border-top: 1px solid #eef2fb; vertical-align: middle; } .cl-lt__tb tbody tr:hover { background: #f8faff; }
.cl-lt__i { color: #94a3b8; font-size: .74rem; width: 34px; } .cl-lt__d { white-space: nowrap; font-variant-numeric: tabular-nums; } .cl-lt__d span { display: inline-block; min-width: 26px; padding: 1px 6px; margin-right: 4px; border-radius: 6px; background: #eef3ff; color: #1d4ed8; font-size: .68rem; font-weight: 800; text-align: center; }
.cl-lt__may { font-style: normal; font-size: .62rem; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: #e0f2fe; color: #075985; text-transform: uppercase; }
.cl-lt__s, .ce2-s { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.cl-lt__s--ok, .ce2-s--ok { background: #dcfce7; color: #166534; } .cl-lt__s--info, .ce2-s--info { background: #dbeafe; color: #1e40af; } .cl-lt__s--bad, .ce2-s--bad { background: #fee2e2; color: #991b1b; } .cl-lt__s--mut, .ce2-s--mut { background: #e5e7eb; color: #475569; } .cl-lt__s--warn { background: #fef3c7; color: #92400e; }
.cl-lt__f { white-space: nowrap; font-variant-numeric: tabular-nums; } .cl-lt__f b { font-weight: 700; color: var(--ink); } .cl-lt__f small { display: block; font-size: .68rem; color: var(--mut); } .cl-lt__f small.is-bad { color: #b91c1c; font-weight: 700; } .cl-lt__f small.is-warn { color: #b45309; font-weight: 700; }
.cl-lt__v { text-align: center; padding: 26px; color: var(--mut); background: #fff; border: 1px dashed #cdd8f1; border-radius: 14px; }
.cl-lt__g { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 14px; } .cl-lt__g summary { cursor: pointer; font-weight: 800; color: var(--ink); font-size: .9rem; } .cl-lt__gb { margin-top: 8px; overflow-x: auto; }
.cl-lt__n { margin: 0; text-align: center; font-size: .7rem; color: var(--mut); }
/* ===== Docentes (js/colegio-equipo.js) ===== */
.ce2 { display: grid; gap: 12px; min-width: 0; --ink: #0f1f4d; --mut: #5b6785; --line: #e3e9f7; }
.ce2-k { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.ce2-kp { display: grid; grid-template-columns: auto 1fr; column-gap: 9px; align-items: center; padding: 8px 12px; border-radius: 13px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--c, #94a3b8); }
.ce2-kp span { grid-row: span 2; font-size: 1.3rem; } .ce2-kp b { font-size: 1.3rem; line-height: 1; color: var(--ink); } .ce2-kp small { font-size: .7rem; color: var(--mut); }
.ce2-kp--violeta { --c: #7c3aed; } .ce2-kp--verde { --c: #16a34a; } .ce2-kp--ambar { --c: #d97706; } .ce2-kp--rojo { --c: #dc2626; } .ce2-kp--gris { --c: #94a3b8; }
.ce2-p { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 11px 14px 12px; overflow-x: auto; } .ce2-p header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; } .ce2-p h4 { margin: 0; font-size: .92rem; color: var(--ink); } .ce2-p small { color: var(--mut); font-size: .7rem; }
.ce2-cob { border-collapse: separate; border-spacing: 3px; width: 100%; font-size: .78rem; } .ce2-cob th { color: var(--mut); font-size: .72rem; text-align: center; font-weight: 700; } .ce2-cob tbody th { text-align: left; white-space: nowrap; color: var(--ink); } .ce2-cob tbody th span { margin-right: 4px; }
.ce2-cob td { text-align: center; font-weight: 800; padding: 6px 4px; border-radius: 8px; min-width: 42px; } .ce2-cob td.ok { background: #dcfce7; color: #166534; } .ce2-cob td.no { background: #fee2e2; color: #b91c1c; }
.ce2-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.ce2-bar input, .ce2-bar select { font: inherit; font-size: .85rem; padding: 8px 10px; border: 1.5px solid #dbe3f5; border-radius: 10px; background: #fff; min-width: 0; } .ce2-bar input { flex: 1 1 230px; } .ce2-bar select { flex: 0 1 190px; } .ce2-acc { margin-left: auto; display: flex; gap: 6px; }
.ce2-cuenta { font-size: .8rem; color: var(--mut); margin: 0 2px; }
.ce2-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.ce2-d { display: flex; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); min-width: 0; }
.ce2-d__av { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #2563eb, #7c3aed); }
.ce2-d__b { flex: 1; min-width: 0; display: grid; gap: 6px; } .ce2-d__h { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .ce2-d__h b { color: var(--ink); font-size: .95rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ce2-d__m, .ce2-d__g { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; } .ce2-chip { padding: 3px 10px; border-radius: 999px; background: #eef3ff; color: #1e3a8a; font-size: .74rem; font-weight: 700; } .ce2-g { padding: 2px 9px; border-radius: 8px; background: #fef3c7; color: #92400e; font-size: .74rem; font-weight: 800; }
.ce2-d__g small, .ce2-d__f small { color: var(--mut); font-size: .72rem; } .ce2-d__f { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; border-top: 1px dashed #e3e9f7; padding-top: 6px; } .ce2-d__f a { font-size: .74rem; color: #1d4ed8; text-decoration: none; word-break: break-all; }
.ce2-v { grid-column: 1 / -1; text-align: center; padding: 26px; color: var(--mut); background: #fff; border: 1px dashed #cdd8f1; border-radius: 14px; } .ce2-n { margin: 0; font-size: .74rem; color: var(--mut); text-align: center; }

.cdb-w12 { grid-column: 1 / -1; } .cdb-w12 .cdb-est { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); column-gap: 14px; }
/* ubicación (rector): departamento ampliado, municipio marcado */
.cdb-ub { background: linear-gradient(160deg, #f4f8ff, #ffffff 55%); }
.cdb-map { position: relative; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 30% 20%, #e8f0ff, #dbe7fb 70%); aspect-ratio: 1.25; display: grid; }
.cdb-map svg { width: 100%; height: 100%; display: block; }
.cdb-map__o { fill: #cfd9ee; stroke: #fff; stroke-width: .8; vector-effect: non-scaling-stroke; opacity: .85; }
.cdb-map__d { stroke: #fff; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.cdb-pin__c { fill: #f59e0b; stroke: #fff; stroke-width: 2; } .cdb-pin__w { fill: #f59e0b; opacity: .35; transform-box: fill-box; transform-origin: center; animation: cdb-pulso 1.8s ease-out infinite; }
@keyframes cdb-pulso { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(2.4); opacity: 0; } }
.cdb-map__tag { position: absolute; left: 8px; bottom: 8px; display: flex; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 12px; background: rgba(255,255,255,.94); box-shadow: 0 6px 16px -8px rgba(15,31,77,.6); max-width: calc(100% - 16px); }
.cdb-map__tag span { font-size: 1.2rem; } .cdb-map__tag b { display: block; font-size: .82rem; color: var(--ink); line-height: 1.1; } .cdb-map__tag small { display: block; font-size: .68rem; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cdb-ub__f { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .cdb-ub__f span { text-align: center; font-size: .62rem; color: var(--mut); line-height: 1.15; } .cdb-ub__f b { display: block; font-size: .8rem; color: var(--ink); overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .cdb-pin__w { animation: none; } }

/* pila de la izquierda (acierto + niveles + inglés) y panel de inglés */
.cdb-stack { grid-column: span 8; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; align-content: start; min-width: 0; }
.cdb-stack > .cdb-w5 { grid-column: span 5; } .cdb-stack > .cdb-w3 { grid-column: span 3; } .cdb-stack > .cdb-w8 { grid-column: 1 / -1; }
@media (max-width: 1180px) { .cdb-stack { grid-column: 1 / -1; } }
@media (max-width: 720px) { .cdb-stack { grid-template-columns: 1fr; } .cdb-stack > .cdb-w5, .cdb-stack > .cdb-w3 { grid-column: 1 / -1; } }
.cdb-en { display: grid; gap: 8px; } .cdb-en__r { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 10px; align-items: center; } .cdb-en__r > b { font-size: .86rem; color: var(--ink); grid-row: span 2; }
.cdb-en__b { display: flex; height: 22px; border-radius: 8px; overflow: hidden; background: #eef2fb; gap: 2px; } .cdb-en__b i { display: grid; place-items: center; color: #fff; font-style: normal; font-size: .68rem; font-weight: 800; min-width: 0; } .cdb-en__b em { align-self: center; margin: 0 auto; font-size: .7rem; color: #94a3b8; font-style: normal; }
.cdb-en__r small { font-size: .68rem; color: var(--mut); }
.cdb-en__l { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .72rem; color: var(--mut); } .cdb-en__l span { display: inline-flex; align-items: center; gap: 5px; } .cdb-en__l i { width: 10px; height: 10px; border-radius: 3px; }
/* mapa: municipios y marcador titilante */
.cdb-map__mu { fill: rgba(255,255,255,.16); stroke: rgba(255,255,255,.75); stroke-width: .7; vector-effect: non-scaling-stroke; transition: fill .15s; } .cdb-map__mu:hover { fill: rgba(255,255,255,.4); }
.cdb-map__me { stroke: #fff; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.cdb-pin__w2 { animation-delay: .9s !important; } .cdb-pin__c { animation: cdb-blink 1.2s ease-in-out infinite; }
@keyframes cdb-blink { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .cdb-pin__c { animation: none; } }

/* ===== Mapa y alertas (js/colegio-panorama.js) ===== */
.mp { --ink: #0f1f4d; --mut: #5b6785; --line: #e3e9f7; display: grid; gap: 12px; min-width: 0; }
.mp * { box-sizing: border-box; }
.mp-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(250px, 1fr); gap: 12px; }
@media (max-width: 1000px) { .mp-row { grid-template-columns: 1fr; } }
.mp .cdb-p header { flex-wrap: wrap; }
.mp-modos { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: #eef2fb; }
.mp-modos button { all: unset; cursor: pointer; padding: 4px 12px; border-radius: 999px; font-size: .74rem; font-weight: 800; color: var(--mut); } .mp-modos button.is-on { background: #1d4ed8; color: #fff; box-shadow: 0 4px 10px -4px #1d4ed8; } .mp-modos button:focus-visible { outline: 3px solid #93a8e6; }
.mp-sc { overflow-x: auto; }
.mp-heat { width: 100%; border-collapse: separate; border-spacing: 5px; min-width: 520px; }
.mp-heat th { font-size: .74rem; color: var(--mut); font-weight: 700; text-align: center; } .mp-heat tbody th, .mp-heat tfoot th { text-align: left; white-space: nowrap; color: var(--ink); font-size: .8rem; } .mp-heat tbody th span { margin-right: 5px; }
.mp-c { position: relative; text-align: center; padding: 9px 4px 7px; border-radius: 12px; color: #fff; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.mp-c b { display: block; font-size: 1.1rem; line-height: 1.1; } .mp-c small { display: block; font-size: .64rem; opacity: .92; margin-top: 2px; } .mp-c em { position: absolute; top: -6px; right: -3px; font-style: normal; font-size: .58rem; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(15,31,77,.3); }
.mp-c:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 20px -10px rgba(15,31,77,.7); } .mp-c:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.mp-c--ok { background: linear-gradient(135deg, #16a34a, #22c55e); } .mp-c--mid { background: linear-gradient(135deg, #d97706, #f59e0b); } .mp-c--low { background: linear-gradient(135deg, #dc2626, #ef4444); } .mp-c--gris { background: #eef2fb; color: #94a3b8; cursor: default; } .mp-c--gris:hover { transform: none; box-shadow: none; }
.mp-c--top { box-shadow: 0 0 0 3px #fde68a; } .mp-c--bajo { box-shadow: 0 0 0 3px #fecaca; }
.mp-avg { text-align: center; font-size: .86rem; color: var(--ink); background: #f4f7ff; border-radius: 10px; padding: 7px 4px; } .mp-avg--t { background: #e0e9ff; } th.mp-avg { background: transparent; }
.mp-ley { margin: 6px 0 0; font-size: .72rem; color: var(--mut); } .mp-d { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 8px; } .mp-d--ok { background: #16a34a; } .mp-d--mid { background: #f59e0b; } .mp-d--low { background: #dc2626; }
.mp-lec ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .mp-lec li { padding: 8px 10px; border-radius: 12px; background: #f6f9ff; border: 1px solid var(--line); font-size: .8rem; color: var(--ink); line-height: 1.35; }
.mp-inf { margin-top: auto; display: grid; gap: 2px; padding: 8px 10px; border-radius: 12px; background: #fffbeb; border: 1px solid #f4d9a0; font-size: .78rem; } .mp-inf span { color: var(--mut); font-size: .72rem; }
.mp-al { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } @media (max-width: 1100px) { .mp-al { grid-template-columns: 1fr; } }
.mp-col { border-radius: 14px; padding: 10px 12px 12px; background: color-mix(in srgb, var(--c) 6%, #fff); border: 1px solid color-mix(in srgb, var(--c) 30%, #fff); border-top: 4px solid var(--c); display: grid; gap: 8px; align-content: start; }
.mp-col--low { --c: #dc2626; } .mp-col--mid { --c: #f59e0b; } .mp-col--ok { --c: #16a34a; }
.mp-col header { display: flex; align-items: center; justify-content: space-between; } .mp-col h4 { margin: 0; font-size: .9rem; color: var(--ink); } .mp-col header span { min-width: 24px; text-align: center; padding: 1px 8px; border-radius: 999px; background: var(--c); color: #fff; font-weight: 800; font-size: .76rem; } .mp-col > small { color: var(--mut); font-size: .7rem; margin-top: -4px; }
.mp-a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 9px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.mp-a__i { font-size: 1.1rem; } .mp-a b { display: block; font-size: .82rem; color: var(--ink); } .mp-a p { margin: 1px 0; font-size: .74rem; color: var(--mut); } .mp-a small { display: block; font-size: .68rem; color: #94a3b8; } .mp-a em { display: block; margin-top: 3px; font-style: normal; font-size: .72rem; color: #1e3a8a; }
.mp-a__b { all: unset; cursor: pointer; font-size: .7rem; font-weight: 800; color: #1d4ed8; padding: 3px 9px; border-radius: 8px; background: #eef3ff; } .mp-a__b:hover { background: #dbe7ff; } .mp-a__b:focus-visible { outline: 3px solid #93a8e6; }
.mp-vacia { margin: 0; padding: 12px 6px; text-align: center; font-size: .78rem; color: var(--mut); }
