/* Comparación rediseñada (maqueta aprobada) */
.cmpdlg{background:#eef6ff;border-radius:20px;border:1px solid #e2e8f0}
.cmp-top{background:#fff;border-bottom:1px solid #e2e8f0;padding:18px 22px}
.cmp-top .ph .note{font-size:12px}
.cmp-scroll{padding:14px 22px 22px}
.c2-resumen{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.c2-pill{display:inline-flex;align-items:center;gap:8px;padding:7px 12px 7px 8px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;font-size:12px;color:#334155}
.c2-pill svg.i{width:14px;height:14px}
.c2-pill b{color:#0f172a;font-weight:700}
.c2-pill i{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#eef6ff;color:#0b63c4;font-style:normal}
.c2-pill.ok i{background:#ecfdf5;color:#0e9f6e}
.c2-grid{display:grid;gap:0 12px;min-width:min-content;align-items:stretch}
.c2-corner{grid-column:1;grid-row:1;align-self:stretch;padding:0 0 12px}
.c2-mios{height:100%;background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:12px;box-shadow:0 1px 2px rgba(11,29,66,.04),0 10px 24px -16px rgba(11,29,66,.22)}
.c2-mios .mh{display:flex;align-items:center;gap:8px}
.c2-mios .mh b{font-size:12.5px;font-weight:700}
.c2-ajustar,.c2-listo,.c2-hist-min,.c2-hoja-hist{display:none}
.c2-hist-full{display:contents}
.c2-mios .mg{display:flex;flex-direction:column;gap:6px}
.c2-mios .ma{display:flex;align-items:center;gap:8px}
.c2-mios .mi{width:26px;height:26px;border-radius:8px;background:var(--cs);color:var(--c);display:grid;place-items:center;flex:none}
.c2-mios .mi svg.i{width:14px;height:14px}
.c2-mios .mt{flex:1;min-width:0}
.c2-mios .mt span{display:block;font-size:11px;font-weight:600;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.c2-mios .mv{font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;min-width:22px;text-align:right}
.c2-mios .rg{-webkit-appearance:none;appearance:none;display:block;width:100%;height:14px;margin:2px 0 0;padding:0;background:transparent;cursor:pointer;border:0}
.c2-mios .rg::-webkit-slider-runnable-track{height:4px;border-radius:999px;background:linear-gradient(90deg,var(--c) var(--v),#e6edf7 var(--v))}
.c2-mios .rg::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;border-radius:50%;background:#fff;border:2.5px solid var(--c);margin-top:-5px;box-shadow:0 1px 3px rgba(11,29,66,.25)}
.c2-mios .rg::-moz-range-track{height:4px;border-radius:999px;background:linear-gradient(90deg,var(--c) var(--v),#e6edf7 var(--v))}
.c2-mios .rg::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:#fff;border:2.5px solid var(--c);box-shadow:0 1px 3px rgba(11,29,66,.25)}
.c2-mios .mf{margin-top:auto;display:flex;align-items:baseline;justify-content:space-between;border-top:1px solid #e2e8f0;padding-top:10px}
.c2-mios .mf small{font-size:11.5px;color:#64748b}
.c2-mios .mf b{font-size:18px;font-weight:700;color:#1a7de0}
.c2-head{grid-row:1;align-self:start;position:relative;background:#fff;border:1px solid #e2e8f0;border-radius:16px;overflow:hidden;box-shadow:0 1px 2px rgba(11,29,66,.04),0 10px 24px -16px rgba(11,29,66,.22);margin-bottom:12px;display:flex;flex-direction:column;color:#0f172a}
.c2-head .rm{position:absolute;top:10px;right:10px;width:30px;height:30px;border-radius:50%;border:0;background:transparent;color:#64748b;display:grid;place-items:center;cursor:pointer;z-index:1}
.c2-head .rm:hover{background:#f4f7fb;color:#0f172a}
.c2-head .rm svg.i{width:16px;height:16px}
.c2-head .ch-top{display:flex;gap:12px;align-items:center;padding:14px 14px 0}
.c2-head .ch-top .logo{width:46px;height:46px;border-radius:12px;border:1px solid #e2e8f0;background:#fff}
.c2-head .ch-top b{display:block;font-size:15px;padding-right:28px;font-weight:700;line-height:1.2}
.c2-head .ch-top span{display:block;font-size:12px;color:#64748b;line-height:1.3;margin-top:1px}
.c2-head .ch-top small{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:#64748b;margin-top:4px}
.c2-head .ch-top .un-c{display:none}
.c2-head .ch-top small svg.i{width:12px;height:12px}
.c2-head .ch-bar{padding:14px 14px 0}
.c2-head .track{position:relative;height:8px;border-radius:999px;background:#f4f7fb;border:1px solid #e2e8f0}
.c2-head .track .fill{position:absolute;left:0;top:0;bottom:0;border-radius:999px;background:#1a7de0}
.c2-head .track .mark{position:absolute;top:-5px;width:2px;height:16px;background:#0f172a;transform:translateX(-1px);border-radius:2px}
.c2-head .ch-leg{display:flex;justify-content:space-between;font-size:11px;color:#64748b;margin-top:6px}
.c2-head .ch-leg b{color:#0f172a;font-weight:700}
.c2-head .ch-gap{padding:10px 14px 14px;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.c2-head .ch-gap b{font-size:24px;font-weight:700;color:#dc2626;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.c2-head .ch-gap.ok b{color:#0e9f6e}
.c2-head .ch-gap span{font-size:11.5px;color:#64748b}
.c2-head .ch-gap em{flex-basis:100%;justify-content:center;margin-top:4px;display:inline-flex;align-items:center;gap:4px;font-style:normal;font-size:11px;font-weight:600;color:#0e9f6e;background:#ecfdf5;padding:3px 8px;border-radius:999px}
.c2-head .ch-gap em svg.i{width:12px;height:12px}
.c2-add{grid-column:-2;grid-row:1 / span 40;border:1.5px dashed #cbd5e1;border-radius:16px;background:rgba(255,255,255,.55);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#64748b;font-size:12px;cursor:pointer;min-height:300px;font-family:inherit}
.c2-add:hover{border-color:#1a7de0;background:#eef6ff;color:#0b63c4}
.c2-add svg.i{width:22px;height:22px;padding:10px;box-sizing:content-box;border-radius:50%;background:#fff;border:1px solid #e2e8f0;color:#1a7de0}
.c2-add b{color:#0f172a;font-weight:700;font-size:13px}
.c2-sec{grid-column:1;margin:12px 4px 4px;font-size:11px;font-weight:700;color:#64748b;letter-spacing:.02em}
.c2-lab{grid-column:1;align-self:center;height:52px;display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #e2e8f0;border-radius:999px;padding:6px 12px 6px 6px;margin:4px 0;box-shadow:0 1px 2px rgba(11,29,66,.05);transition:background .15s,border-color .15s}
.c2-lab .ic{width:32px;height:32px;border-radius:50%;background:#eef6ff;color:#0b63c4;display:grid;place-items:center;flex:none}
.c2-lab .ic svg.i{width:16px;height:16px}
.c2-lab b{display:block;font-size:12.5px;font-weight:700;line-height:1.2;color:#0f172a}
.c2-lab.hl{background:#eef6ff;border-color:#1a7de0}
.c2-lab.hl .ic{background:#1a7de0;color:#fff}
.c2-cell{background:#fff;border-left:1px solid #e2e8f0;border-right:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;padding:12px 14px;min-height:60px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:2px;font-weight:400;font-size:13px;color:#0f172a}
.c2-cell.gt{border-top:1px solid #e2e8f0;border-radius:14px 14px 0 0;margin-top:2px}
.c2-cell.gb{border-radius:0 0 14px 14px;margin-bottom:10px}
.c2-cell.gt.gb{border-radius:14px}
.c2-cell small{font-size:11px;color:#64748b}
.c2-cell .c2-num{font-size:14px;font-variant-numeric:tabular-nums}
.c2-cell b.c2-num{font-size:17px;font-weight:700}
.c2-cell .brand{color:#1a7de0}.c2-cell .okc{color:#0e9f6e}.c2-cell .badc{color:#dc2626}
.c2-muted{color:#64748b}
.c2-cell:has(.c2-best){flex-direction:row;gap:10px}
.c2-best{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:600;color:#0e9f6e;background:#ecfdf5;padding:2px 8px;border-radius:999px}
.c2-best svg.i{width:12px;height:12px}
.c2-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:600}
.c2-chip svg.i{width:13px;height:13px}
.c2-chip.bad{background:#fef2f2;color:#dc2626}.c2-chip.ok{background:#ecfdf5;color:#0e9f6e}
.c2-trend{display:inline-flex;align-items:center;gap:5px;font-weight:500}
.c2-trend svg.i{width:14px;height:14px}.c2-trend.up{color:#0e9f6e}.c2-trend.down{color:#dc2626}
.c2-spark{width:100%;max-width:240px;height:auto;display:block}
.c2-pesos{display:flex;gap:8px;align-items:flex-end;height:44px}
.c2-pesos span{display:flex;flex-direction:column;align-items:center;gap:3px;width:26px}
.c2-pesos i{display:block;width:100%;border-radius:4px 4px 2px 2px;background:#1a7de0;opacity:.85}
.c2-pesos b{font-size:9.5px;font-weight:600;color:#64748b}
.cmp-foot{padding:0 22px 18px}
@media (max-width:760px){.c2-grid{grid-template-columns:120px repeat(var(--cols),minmax(180px,1fr))!important}.c2-lab b{font-size:11px}.c2-lab .ic{width:26px;height:26px}.c2-lab .ic svg.i{width:14px;height:14px}.c2-corner{display:none}}

/* ===== Móvil (≤720px): filtros en un botón, navegación segmentada ===== */
@media (max-width:720px){
  .band .nav{min-height:0}
  .brand .mark{width:34px;height:34px}
  .brand b{font-size:14px}.brand small{font-size:10px}
  .hero{margin:10px 0 14px}
  .hero h1{font-size:24px;line-height:1.15}
  .hero .lede{font-size:13px;line-height:1.5;margin-top:8px}
  .hero .steps{display:none}
  .band{padding-bottom:18px}
  .page{padding-top:0}
  .layout{display:block}
  /* navegación segmentada */
  .m-seg{display:flex;background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:4px;gap:4px;margin:-8px 0 12px;box-shadow:0 1px 2px rgba(11,29,66,.06)}
  .m-seg a{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;padding:9px 6px;border-radius:10px;font-size:12px;font-weight:600;color:#334155;text-decoration:none;white-space:nowrap}
  .m-seg a svg.i{width:14px;height:14px}
  .m-seg a[aria-current="page"]{background:#eef6ff;color:#0b63c4;box-shadow:inset 0 0 0 1px #bfdbfe}
  .nav-panel{display:none}
  /* barra de filtros */
  .m-bar{position:sticky;top:0;z-index:35;display:flex;align-items:center;gap:8px;padding:8px 0 10px;margin:0 0 6px;background:#eef6ff;box-shadow:0 8px 8px -8px rgba(11,29,66,.12)}
  .m-filtros{display:inline-flex;align-items:center;gap:8px;min-height:56px;padding:0 14px 0 10px;border-radius:12px;border:1px solid #1a7de0;background:#1a7de0;color:#fff;font:inherit;font-size:13px;font-weight:600;box-shadow:0 8px 20px -10px rgba(26,125,224,.7)}
  .m-filtros svg.i{width:18px;height:18px}
  .m-filtros b{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#fff;color:#1a7de0;font-size:11px;font-weight:700}
  .m-resumen{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:1px}
  .m-resumen b{font-size:13px;font-weight:700;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .m-resumen small{font-size:11px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .m-resumen{display:none}
  .m-bar{justify-content:space-between}
  .m-hoja .mh-top b small{display:block;font-size:11.5px;font-weight:400;color:#64748b;margin-top:2px}
  .m-global{flex:1;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:8px;height:56px;padding:0 10px 0 8px;overflow:hidden;border-radius:12px;background:#fff;border:1px solid #e2e8f0;font:inherit;text-align:left;cursor:pointer;box-shadow:0 1px 2px rgba(11,29,66,.05)}
  .m-global:active{background:#f4f7fb}
  .m-global .mg-est{display:flex;flex-direction:column;gap:3px;flex:none;padding-left:8px;border-left:1px solid #e2e8f0}
  .m-global .mg-est span{display:flex;align-items:center;gap:4px;font-size:10px;color:#64748b;line-height:1;white-space:nowrap}
  .m-global .mg-est i{width:7px;height:7px;border-radius:50%;background:var(--c);flex:none}
  .m-global .mg-est b{font-size:11px;font-weight:700;color:#0f172a;min-width:10px}
  .m-global .mg-der{display:flex;align-items:center;gap:6px;flex:none}
  .m-global .mg-ring{position:relative;width:34px;height:34px;flex:none}
  .m-global .mg-ring svg{width:34px;height:34px;transform:rotate(-90deg)}
  .m-global .mg-ring .pista{fill:none;stroke:#e6edf7;stroke-width:4}
  .m-global .mg-ring .valor{fill:none;stroke:url(#gradAnilloM);stroke-width:4;stroke-linecap:round;transition:stroke-dashoffset .4s}
  .m-global .mg-txt{display:flex;flex-direction:column;line-height:1;min-width:0}
  .m-global .mg-txt small{font-size:10px;color:#64748b;white-space:nowrap;font-weight:600}
  .m-global .mg-txt b{font-size:18px;font-weight:700;color:#0f172a;margin-top:2px;white-space:nowrap;line-height:1.1}
  .m-global .mg-txt b i{font-style:normal;font-size:11px;font-weight:400;color:#64748b;margin-left:3px}
  .m-global .mg-areas{margin-left:auto;display:flex;align-items:flex-end;gap:5px;height:30px;flex:none}
  .m-global .mg-areas span{display:flex;flex-direction:column;align-items:center;gap:2px;width:14px}
  .m-global .mg-areas i{display:block;width:100%;border-radius:3px 3px 1px 1px;background:var(--c);min-height:3px}
  .m-global .mg-areas small{font-size:7.5px;font-weight:700;color:#64748b;line-height:1}
  /* hoja de filtros */
  .m-velo{position:fixed;inset:0;z-index:60;background:rgba(15,23,42,.35);opacity:0;pointer-events:none;transition:opacity .25s}
  .m-velo.on{opacity:1;pointer-events:auto}
  .m-hoja{position:fixed;left:0;right:0;bottom:0;z-index:61;max-height:90dvh;display:flex;flex-direction:column;background:#f4f7fb;border-radius:22px 22px 0 0;box-shadow:0 -20px 50px -20px rgba(2,24,54,.5);transform:translateY(100%);transition:transform .35s cubic-bezier(.22,1,.36,1)}
  .m-hoja.on{transform:none}
  .m-hoja .mh-top{display:flex;align-items:center;gap:10px;padding:14px 16px 10px;border-bottom:1px solid #e2e8f0;background:#fff;border-radius:22px 22px 0 0}
  .m-hoja .mh-top::before{content:"";position:absolute;top:8px;left:50%;width:38px;height:4px;border-radius:999px;background:#cbd5e1;transform:translateX(-50%)}
  .m-hoja .mh-top b{flex:1;font-size:15px;font-weight:700;margin-top:6px}
  .m-hoja .mh-top .x{width:34px;height:34px;border-radius:999px;border:1px solid #e2e8f0;background:#fff;color:#64748b;margin-top:6px}
  .m-hoja .mh-body{flex:1;overflow-y:auto;padding:12px 16px 16px;-webkit-overflow-scrolling:touch}
  .m-hoja .panel.scores{margin:0;border:0;box-shadow:none;background:transparent;padding:0}
  .m-hoja .mh-foot{padding:10px 16px calc(12px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e2e8f0}
  .m-hoja .mh-foot .btn{width:100%;min-height:46px;border-radius:12px;background:#1a7de0;color:#fff;font-weight:600;font-size:14px;border:0}
  /* puntajes más compactos dentro de la hoja */
  .m-hoja .ph{margin-bottom:8px}.m-hoja .ph h2{font-size:15px}.m-hoja .ph .note{font-size:11px}
  .m-hoja .gauge{padding:10px 12px;margin-bottom:8px}
  .m-hoja .ring{width:56px;height:56px}
  .m-hoja .area{padding:8px 0}
  .m-hoja .area .ab{width:30px;height:30px}
  .m-hoja .area label{font-size:12.5px}
  .m-hoja .area .num{width:54px;min-height:40px;font-size:15px}
  .m-hoja .uni-row{padding:7px 8px}
  /* resultados */
  .toolbar{margin:0 0 8px;flex-wrap:nowrap;gap:8px;align-items:center}
  .toolbar .count{font-size:12px;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .sortw{flex:none;display:flex;align-items:center;gap:6px}
  .sortw label{display:none}
  .sortw .desp{min-width:150px}
  .sortw .desp-btn{min-height:40px;padding:0 10px;font-size:12.5px}
  .card.res{padding:12px}
  .card.res .logo{width:40px;height:40px}
  .card.res h3{font-size:15px}
  .card.res > .metrics{gap:8px;margin-top:10px}
  .card.res .metric{flex-direction:column;align-items:center;text-align:center;gap:6px;padding:12px 6px 10px;border:1px solid #e2e8f0;background:#fff;border-radius:12px}
  .card.res .metric .mi{display:grid;width:30px;height:30px;border-radius:8px}
  .card.res .metric .mi svg.i{width:15px;height:15px}
  .card.res .metric .ml{font-size:10.5px;white-space:normal;line-height:1.15;font-weight:600;color:#64748b}
  .card.res .metric .mv{font-size:17px;margin-top:1px;line-height:1.1}
  .card.res .metric > div{display:flex;flex-direction:column;align-items:center;gap:2px}
  .acts{flex-direction:row;flex-wrap:wrap}
  .acts .btn{flex:1 1 100%;min-height:42px}
  .acts .btn:not(.primary){flex:1 1 calc(50% - 4px)}
  .asst-fab{width:56px;height:56px;padding:0!important;gap:0!important;justify-content:center;right:14px;bottom:calc(16px + env(safe-area-inset-bottom))}
  .asst-fab span{display:none}
  .asst-fab img{width:44px;height:44px}
  body.has-cmp .asst-fab{bottom:calc(84px + env(safe-area-inset-bottom))}
  body.m-hoja-abierta{overflow:hidden}
  body:has(dialog[open]){overflow:hidden}
  /* ficha (carrera / universidad): cabecera azul centrada */
  .dlg-head{position:relative;top:auto;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:44px 16px 18px}
  .dlg-head .logo.lg{width:64px;height:64px;border-radius:16px;align-self:center;background:#fff;border:2px solid rgba(255,255,255,.9)}
  .dlg-head .dh{width:100%;display:flex;flex-direction:column;align-items:center}
  .dlg-head .dh-e{justify-content:center;font-size:10px;letter-spacing:0;background:rgba(255,255,255,.16);color:#fff;padding:3px 9px;border-radius:999px}
  .dlg-head h2{font-size:18px;line-height:1.2;margin-top:8px;text-wrap:balance}
  .dlg-head .dh-s{justify-content:center;font-size:12px;color:rgba(255,255,255,.88);margin-top:6px}
  .dlg-head .dh-s > *{justify-content:center}
  .dlg-head .x{position:absolute;top:10px;right:10px;width:34px;height:34px;border-radius:999px;background:rgba(255,255,255,.2);color:#fff}
  dialog{scrollbar-width:none}
  dialog::-webkit-scrollbar{display:none}
  @media (max-width:380px){
    .m-filtros{padding:0 10px 0 8px;font-size:12px;gap:6px}
    .m-filtros b{min-width:18px;height:18px;font-size:10px}
    .m-global{gap:6px;padding:0 8px 0 6px}
    .m-global .mg-ring,.m-global .mg-ring svg{width:30px;height:30px}
    .m-global .mg-txt small{font-size:9px}
    .m-global .mg-txt b{font-size:16px}
    .m-global .mg-est span{font-size:9.5px;gap:3px}
    .m-global .mg-est{padding-left:6px}
  }
  /* Sobre los datos: la primera tarjeta ancha, las otras dos lado a lado */
  .sources .src-grid{display:grid;grid-template-columns:1fr;gap:10px}
  .sources .src{flex-direction:row;gap:12px;padding:12px;font-size:12px;line-height:1.45}
  .sources .src .si{width:32px;height:32px}
  .sources .src b{font-size:13px}
}

/* ===== Comparación en móvil: tabla con rótulos a la izquierda y una columna por programa ===== */
@media (max-width:720px){
  .cmpdlg{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0;border:0;background:#f4f7fb}
  .cmp-top{padding:12px 14px;gap:10px;flex-wrap:nowrap;align-items:center}
  .cmp-top .ph{flex:1;min-width:0;gap:8px}
  .cmp-top .ph .phi{width:32px;height:32px;border-radius:9px}
  .cmp-top .ph h2{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .cmp-top .ph .note{display:none}
  .cmp-top .ct-r{gap:8px;flex:none}
  .cmp-top .switch{font-size:0;gap:0}
  .cmp-top .switch .sw{width:36px;height:22px}
  .cmp-top .switch .sw::after{width:14px;height:14px}
  .cmp-top .x{width:34px;height:34px}
  .cmp-scroll{padding:12px 12px 20px;overflow-x:hidden}
  .c2-scroller{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:14px}
  .c2-resumen{gap:6px;margin-bottom:12px;flex-direction:column}
  .c2-pill{font-size:10.5px;padding:7px 10px 7px 8px;width:100%;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.35}
  .c2-pill b{white-space:nowrap}
  .c2-pill i{display:inline-grid;vertical-align:middle;margin-right:5px;width:18px;height:18px}
  @media (max-width:380px){.c2-pill{font-size:9.5px}}
  .c2-grid.c2-abierta .c2-listo{display:inline-flex}
  .c2-lab,.c2-corner{position:sticky;left:0;z-index:2;background:#fff;box-shadow:1px 0 0 #e2e8f0}
  .c2-sec{position:sticky;left:0;justify-self:start;width:calc(100vw - 26px);box-sizing:border-box}
  .c2-pill i{width:20px;height:20px}
  .c2-pill svg.i{width:12px;height:12px}
  /* la tabla */
  .c2-grid{grid-template-columns:104px repeat(var(--n),minmax(96px,1fr))!important;gap:0;min-width:min-content;background:#fff;align-items:stretch}
  .c2-scroller{border:1px solid #e2e8f0;background:#fff}
  .c2-add{display:none}
  .c2-corner{display:flex;align-items:center;justify-content:center;padding:8px;border-bottom:1px solid #e2e8f0}
  .c2-ajustar{display:flex;flex-direction:column;align-items:center;gap:4px;width:100%;padding:8px 4px;border:1px solid #bfdbfe;border-radius:12px;background:#eef6ff;color:#0b63c4;font:inherit;cursor:pointer}
  .c2-ajustar svg.i{width:18px;height:18px}
  .c2-ajustar span{display:flex;flex-direction:column;align-items:center;line-height:1}
  .c2-ajustar small{font-size:9.5px;font-weight:600;color:#0b63c4}
  .c2-ajustar b{font-size:16px;font-weight:700;color:#0f172a;margin-top:2px}
  .c2-ajustar b::after{content:" / 500";font-size:9px;font-weight:400;color:#64748b}
  .c2-mios{display:none}
  .c2-grid.c2-abierta .c2-mios{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:90;height:auto;max-height:80dvh;overflow-y:auto;border-radius:22px 22px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom));box-shadow:0 -20px 50px -20px rgba(2,24,54,.5)}
  .c2-grid.c2-abierta::after{content:"";position:fixed;inset:0;z-index:89;background:rgba(15,23,42,.35)}
  .c2-grid.c2-abierta .c2-corner{z-index:200}
  .c2-mios .mh b{font-size:14px}
  .c2-listo{margin-left:auto;padding:6px 14px;border-radius:999px;border:0;background:#1a7de0;color:#fff;font:inherit;font-size:12.5px;font-weight:600}
  .c2-mios .ma{gap:10px}.c2-mios .mi{width:30px;height:30px}.c2-mios .mt span{font-size:12px}.c2-mios .mv{font-size:14px}
  .c2-mios .mf b{font-size:20px}
  .c2-head{grid-column:calc(var(--ci) + 2)}
  .c2-head{align-self:stretch;margin:0;border:0;border-radius:0;box-shadow:none;background:#fff;border-bottom:1px solid #e2e8f0;border-left:1px solid #eef2f7;padding:10px 8px 10px}
  .c2-head .rm{top:4px;right:4px;width:22px;height:22px}
  .c2-head .rm svg.i{width:12px;height:12px}
  .c2-head .ch-top{flex-direction:column;align-items:center;text-align:center;gap:5px;padding:0}
  .c2-head .ch-top .logo{width:32px;height:32px;border-radius:9px}
  .c2-head .ch-top b{font-size:11.5px;padding:0;line-height:1.2}
  .c2-head .ch-top span{font-size:10px;line-height:1.2;margin:0}
  .c2-head .ch-top .un-l{display:none}.c2-head .ch-top .un-c{display:block}
  .c2-head .ch-top small{display:none}
  .c2-head .ch-bar,.c2-head .ch-leg{display:none}
  .c2-head .ch-gap{padding:6px 0 0;justify-content:center;gap:0 4px;text-align:center}
  .c2-head .ch-gap b{font-size:15px}
  .c2-head .ch-gap span{display:none}
  .c2-head .ch-gap em{font-size:8.5px;padding:1px 5px;margin-top:4px;white-space:nowrap}
  .c2-gen .c2-corner{display:block;visibility:hidden}
  .c2-head-gen{padding:10px 8px}
  .c2-head-gen .logo{width:32px;height:32px;border-radius:9px;margin:0 auto}
  .c2-head-gen .pn{font-size:11px;text-align:center;padding:0;margin-top:6px;white-space:normal;overflow-wrap:break-word}
  .c2-head-gen .pi{font-size:10px;text-align:center}
  .c2-head-gen .price{font-size:15px;text-align:center;margin-top:6px;padding-top:6px}
  .c2-head-gen .price small{font-size:9px}
  .c2-cell.c2-cta{padding:8px 4px!important;border-left:0!important}
  .c2-cell.c2-cta .btn{min-height:38px;font-size:12px;padding:0 8px}
  .c2-sec{grid-column:1 / -1;margin:0;padding:7px 10px;font-size:10.5px;background:#f4f7fb;border-bottom:1px solid #e2e8f0;color:#334155}
  .c2-lab{grid-column:1;height:auto;min-height:0;background:#fff;border:0;border-bottom:1px solid #eef2f7;box-shadow:none;border-radius:0;padding:8px 8px 8px 10px;margin:0;gap:6px;align-self:stretch;align-items:center}
  .c2-lab .ic{display:none}
  .c2-lab b{font-size:11px;font-weight:600;color:#334155;line-height:1.2}
  .c2-cell{padding:8px 6px;min-height:0;font-size:12.5px;border:0!important;border-left:1px solid #eef2f7!important;border-bottom:1px solid #eef2f7!important;border-radius:0!important;margin:0!important;gap:2px;justify-content:center}
  .c2-cell small{font-size:9.5px;line-height:1.2}
  .c2-cell .c2-num{font-size:13px}
  .c2-cell b.c2-num{font-size:14px}
  .c2-cell:has(.c2-best){flex-direction:column;gap:3px}
  .c2-best{font-size:9px;padding:1px 5px}
  .c2-chip{font-size:10px;padding:2px 6px;gap:3px}
  .c2-chip svg.i{width:10px;height:10px}
  .c2-trend{font-size:11px}
  .c2-hist-full{display:none}
  .c2-hist-min{display:flex;flex-direction:column;align-items:center;gap:2px}
  .c2-hist-min b.c2-num{font-size:14px;font-weight:700}
  .c2-ver{margin-top:3px;padding:3px 9px;border-radius:999px;border:1px solid #bfdbfe;background:#eef6ff;color:#0b63c4;font:inherit;font-size:10px;font-weight:600}
  .c2-hoja-hist{display:block;position:fixed;inset:0;z-index:95;pointer-events:none}
  .c2-hoja-hist .c2-hoja-velo{position:absolute;inset:0;background:rgba(15,23,42,.35);opacity:0;transition:opacity .25s}
  .c2-hoja-hist .c2-hoja-caja{position:absolute;left:0;right:0;bottom:0;max-height:85dvh;overflow-y:auto;background:#fff;border-radius:22px 22px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom));box-shadow:0 -20px 50px -20px rgba(2,24,54,.5);transform:translateY(100%);transition:transform .35s cubic-bezier(.22,1,.36,1)}
  .c2-hoja-hist.on{pointer-events:auto}
  .c2-hoja-hist.on .c2-hoja-velo{opacity:1}
  .c2-hoja-hist.on .c2-hoja-caja{transform:none}
  .c2-hoja-hist .mh{display:flex;align-items:center;gap:8px;margin-bottom:12px}
  .c2-hoja-hist .mh b{font-size:15px;font-weight:700}
  .c2-hoja-hist .c2-listo{display:inline-flex;margin-left:auto;padding:6px 14px;border-radius:999px;border:0;background:#1a7de0;color:#fff;font:inherit;font-size:12.5px;font-weight:600}
  .c2-hist-item{display:flex;align-items:center;gap:10px;margin-top:14px}
  .c2-hist-item .logo{width:34px;height:34px;border-radius:9px;border:1px solid #e2e8f0}
  .c2-hist-item b{display:block;font-size:13px;font-weight:700}
  .c2-hist-item small{display:block;font-size:11px;color:#64748b}
  .c2-hist-g{margin-top:6px;border:1px solid #e2e8f0;border-radius:12px;padding:8px}
  .c2-hist-g .c2-spark{max-width:100%;width:100%}
  .c2-pesos{gap:3px;height:34px}
  .c2-pesos span{width:14px}
  .c2-pesos b{font-size:7.5px}
  .cmp-foot{padding:0 14px 14px;font-size:10.5px}
  @media (max-width:380px){.c2-grid{grid-template-columns:92px repeat(var(--n),minmax(88px,1fr))!important}}
}

/* Comparación genérica (Carreras y Becas) con la tabla nueva */
.c2-head-gen{padding:14px}
.c2-head-gen .logo{width:46px;height:46px;border-radius:12px;border:1px solid #e2e8f0;background:#fff}
.c2-head-gen .pn{font-size:15px;font-weight:700;line-height:1.2;margin-top:10px;padding-right:28px}
.c2-head-gen .pi{font-size:12px;color:#64748b;line-height:1.3;margin-top:2px}
.c2-head-gen .price{margin-top:12px;padding-top:12px;border-top:1px solid #e2e8f0;font-size:22px;font-weight:700;color:#0f172a;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.c2-head-gen .price small{display:block;font-size:11px;font-weight:400;color:#64748b;margin-top:3px;letter-spacing:0}
.c2-gen .c2-corner{visibility:hidden}
.c2-cell .c2-num.c2-big{font-size:16px;font-weight:700}
.c2-cell.c2-cta{border:0;background:transparent;padding:10px 0 0}
.c2-cell.c2-cta .btn{width:100%;background:#1a7de0;color:#fff;border:0;border-radius:12px;min-height:42px;font-weight:600}
.c2-lab-vacio{visibility:hidden}

/* Asesor 500: mismo diseño que el widget de Quini en la plataforma */
.asst-fab{right:16px;bottom:20px;height:56px;padding:0 16px 0 6px;gap:6px;border:1px solid #e2e8f0;background:#fff;color:#0f172a;font-size:13px;font-weight:600;box-shadow:0 12px 30px -10px rgba(21,32,58,.45);transition:transform .3s cubic-bezier(.34,1.56,.64,1),box-shadow .3s cubic-bezier(.34,1.56,.64,1)}
.asst-fab:hover{transform:none;box-shadow:0 16px 34px -10px rgba(21,32,58,.6)}
.asst-fab:focus-visible{box-shadow:0 0 0 3px rgba(26,125,224,.35),0 12px 30px -10px rgba(21,32,58,.45)}
.asst-fab img{width:44px;height:44px;background:transparent;object-fit:contain}
.asst-fab span small{display:none}
.asst-fab::after{display:none}
body.has-cmp .asst-fab{bottom:20px}
body.has-cmp .cmpbar{width:min(920px,calc(100% - 232px));transform:translateX(calc(-50% - 92px))}
@media (max-width:980px){body.has-cmp .asst-fab{bottom:calc(84px + env(safe-area-inset-bottom))}body.has-cmp .cmpbar{width:min(920px,calc(100% - var(--s6)));transform:translateX(-50%)}}
.asst{right:20px;bottom:20px;width:440px;height:min(720px,calc(100dvh - 40px));border-radius:16px;border:1px solid #e2e8f0;background:#f4f7fb;box-shadow:0 24px 60px -20px rgba(21,32,58,.5)}
.asst-h{gap:10px;padding:12px 14px;background:#fff;color:#0f172a;border-bottom:1px solid #e2e8f0}
.asst-h::before{display:none}
.asst-h img{width:40px;height:40px;background:transparent;object-fit:contain}
.asst-h b{font-size:14px;font-weight:600;line-height:1.2}
.asst-h small{font-size:11px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.asst-h .x{width:32px;height:32px;border-radius:999px;background:transparent;color:#64748b}
.asst-h .x:hover{background:#eef2f7}
.asst-h .x svg{width:16px;height:16px}
.asst-prog{display:none}
.asst-log{padding:16px 14px;gap:12px}
.bub{border-radius:16px;padding:10px 14px;font-size:13px;line-height:1.55;box-shadow:none}
.bub.bot{border:1px solid #e2e8f0;background:#fff;color:#0f172a;border-bottom-left-radius:6px}
.bub.me{background:#1a7de0;color:#fff;border-bottom-right-radius:6px;box-shadow:none}
.asst-in{border-top:1px solid #e2e8f0;background:#fff;padding:12px}
.asst-in input[type=text],.asst-in input[type=tel],.asst-in input[type=email],.asst-in input[type=number],.asst-in input[type=search]{border-radius:16px;border-color:#e2e8f0;background:#f4f7fb;min-height:44px;padding:10px 14px;font-size:14px}
.asst-in input:focus{border-color:#1a7de0;box-shadow:none}
.asst-in .send{width:44px;height:44px;border-radius:999px;background:#1a7de0;box-shadow:none}
.asst-in .send svg{width:16px;height:16px}
@media (max-width:640px){.asst{inset:auto 0 0 0;width:100%;height:72dvh;border-radius:22px 22px 0 0}}

/* Términos: cita textual de la autorización */
.cita{border-left:3px solid var(--brand,#2094ff);padding:8px 14px;margin:8px 0;background:var(--surface-2,#f2f8ff);border-radius:0 10px 10px 0;font-style:italic}
