*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:#e9e9e9;color:#111}.top{background:#f7f7f7;border-bottom:1px solid #cfcfcf}.top h1{font-family:Georgia,serif;text-align:center;margin:0;padding:10px 8px 6px;font-size:28px}.toolbar{display:flex;gap:4px;align-items:center;flex-wrap:wrap;padding:6px 8px}.toolbar button,.modal button{padding:6px 10px;border:1px solid #999;background:#eee;border-radius:3px;cursor:pointer}.toolbar button:hover,.modal button:hover{background:#e2e2e2}
.view-switch{display:inline-flex;align-items:center;gap:10px;padding:4px 8px;border:1px solid #c7d2de;border-radius:999px;background:#fff;color:#1f2937;font-size:13px;line-height:1;white-space:nowrap;}
.view-switch-label{font-weight:700;color:#334155;margin-right:2px;}
.view-switch label{display:inline-flex;align-items:center;gap:4px;margin:0;cursor:pointer;user-select:none;}
.view-switch input{margin:0;accent-color:#0f766e;}
.toolbar .toggle.active{background:#222;color:white}.sep{width:1px;height:24px;background:#bbb;margin:0 3px}.curriculum{padding:10px;overflow:auto;padding-bottom:90px}.semester{display:flex;align-items:center;background:white;border:1px solid #aaa;border-radius:6px;margin-bottom:5px;padding:5px;min-height:108px}.sem-label{width:72px;height:72px;display:flex;align-items:center;justify-content:center;background:#141414;color:white;font-size:22px;font-weight:700;margin-right:10px;flex:0 0 72px}.cards{display:flex;gap:5px;align-items:center;flex:1;min-height:90px;overflow-x:auto}.insert-btn{width:44px;height:72px;border:1px dashed #777;background:#fafafa;font-size:24px;flex:0 0 44px}.card{height:86px;min-width:210px;max-width:320px;flex:1 1 235px;border-radius:8px;padding:8px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;cursor:grab;border:1px solid rgba(0,0,0,.35);position:relative;user-select:none}.card.selected{outline:4px solid #00a2ff;outline-offset:2px;box-shadow:0 0 0 4px rgba(0,162,255,.30),0 0 16px rgba(0,162,255,.70)}.card.prereq{animation:blink .85s ease-in-out infinite;outline:4px solid var(--blink,#ff8c00);outline-offset:2px;box-shadow:0 0 0 4px rgba(255,140,0,.35),0 0 18px rgba(255,140,0,.85);z-index:50}.card .name{font-family:Georgia,serif;font-size:16px;line-height:1.1}.card .code{font-weight:700;font-size:16px;margin-top:5px}.card.dragging{opacity:.35}.semester.dropover{border:3px solid #0078d7}.placeholder{height:86px;width:220px;border:2px dashed #0078d7;border-radius:8px;background:#e8f3ff;flex:0 0 220px}
.drop-placeholder{height:86px;min-width:220px;flex:0 0 220px;border:3px dashed #0078d7;border-radius:10px;background:rgba(0,120,215,.08);color:#005a9e;font-weight:700;display:flex;align-items:center;justify-content:center;text-align:center;letter-spacing:.2px;user-select:none}
@keyframes blink{0%,100%{filter:brightness(1);opacity:1}50%{filter:brightness(1.28);opacity:.88}}.footer{position:fixed;bottom:0;left:0;right:0;background:#f5f5f5;border-top:1px solid #ccc}.legend{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;padding:3px 6px}.legend-item{display:flex;align-items:center;gap:5px;font-size:11px}.swatch{width:18px;height:18px;border-radius:50%;border:1px solid #555}.statusbar{display:flex;justify-content:space-between;border-top:1px solid #ccc;padding:6px 8px;font-size:13px}.modal{border:1px solid #999;border-radius:6px;box-shadow:0 10px 45px rgba(0,0,0,.35);max-width:95vw}.subject-modal{width:760px}.wide-modal{width:850px}.modal h2{margin-top:0;font-size:18px}.form-grid{display:grid;grid-template-columns:1fr 1.25fr;gap:14px}.modal label{display:flex;flex-direction:column;font-weight:700;font-size:12px;margin-bottom:12px;text-align:center}.modal input,.modal textarea,.modal select{font:inherit;padding:7px;border:1px solid #9aa7b1;margin-top:4px;width:100%}.modal textarea{height:120px;resize:vertical}.color-row{display:grid;grid-template-columns:auto 90px 1fr;gap:8px;align-items:center;margin-top:8px}.color-row input{height:32px;padding:0}.modal-actions{display:flex;align-items:center;gap:8px;margin:14px 0 0;padding:0}.grow{flex:1}.danger{background:#ffe8e8!important;border-color:#c44!important;color:#900}.type-row{display:grid;grid-template-columns:1fr 90px 36px 36px auto auto auto;gap:8px;align-items:center;margin:8px 0}.type-row button[title="Subir"],.type-row button[title="Bajar"]{padding:6px 8px;min-width:34px;font-weight:bold}.type-row button:disabled{opacity:.45;cursor:not-allowed}.type-row input[type="color"].color-preview-input{width:90px;height:26px;padding:2px;border:1px solid #777;border-radius:4px;background:#fff;cursor:pointer}.type-row input[type="color"].color-preview-input::-webkit-color-swatch-wrapper{padding:0}.type-row input[type="color"].color-preview-input::-webkit-color-swatch{border:0;border-radius:3px}.type-row input[type="color"].color-preview-input::-moz-color-swatch{border:0;border-radius:3px}.add-type{display:flex;gap:8px;align-items:center;margin:10px 0}.comparison{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-height:65vh;overflow:auto}.mini-card{padding:6px;border-radius:5px;border:1px solid #777;margin:4px 0;font-size:12px}.only{background:#ffdcdc}.moved{background:#fff3b3}.same{background:#dcffdc}@media(max-width:800px){.form-grid{grid-template-columns:1fr}.semester{align-items:flex-start}.cards{flex-wrap:nowrap}.statusbar{display:block}.top h1{font-size:22px}}


/* Tooltip de materia: cabecera compacta + métricas en fila + síntesis con espacio completo */
.subject-tooltip-pro{
  position:fixed;
  left:0;
  top:0;
  width:min(680px, calc(100vw - 20px));
  max-height:min(92vh, 920px);
  overflow:auto;
  z-index:2147483647;
  pointer-events:none;
  opacity:0;
  visibility:hidden;
  transform:none;
  transition:opacity .14s ease, visibility .14s ease;
  border-radius:16px;
  background:rgba(255,255,255,.98);
  border:1px solid rgba(15,23,42,.12);
  box-shadow:0 24px 70px rgba(15,23,42,.26), 0 2px 10px rgba(15,23,42,.10);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color:#0f172a;
}
.subject-tooltip-pro.show{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:none;
}
.subject-tooltip-pro .tt-accent{
  height:6px;
  border-radius:16px 16px 0 0;
  background:linear-gradient(90deg, var(--tt-color,#64748b), rgba(255,255,255,.65));
}
.subject-tooltip-pro .tt-body{padding:12px 14px 13px;display:flex;flex-direction:column;gap:8px;min-height:0;}
.subject-tooltip-pro .tt-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start;margin:0;}
.subject-tooltip-pro .tt-head-text{min-width:0;display:grid;gap:6px;}
.subject-tooltip-pro .tt-title{font-size:15px;line-height:1.25;font-weight:800;letter-spacing:-.015em;color:#0f172a;}
.subject-tooltip-pro .tt-code{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 9px;background:#0f172a;color:#fff;font-weight:800;font-size:12px;letter-spacing:.02em;white-space:nowrap;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);}
.subject-tooltip-pro .tt-type{display:flex;align-items:center;gap:8px;margin:0;padding:6px 8px;border-radius:11px;background:linear-gradient(135deg, color-mix(in srgb, var(--tt-color,#64748b) 16%, white), #fff);border:1px solid color-mix(in srgb, var(--tt-color,#64748b) 22%, #e2e8f0);}
.subject-tooltip-pro .tt-dot{width:10px;height:10px;border-radius:50%;background:var(--tt-color,#64748b);box-shadow:0 0 0 3px color-mix(in srgb, var(--tt-color,#64748b) 18%, transparent);flex:0 0 10px;}
.subject-tooltip-pro .tt-type-text{font-size:12px;font-weight:750;color:#1e293b;line-height:1.25;}
.subject-tooltip-pro .tt-metrics{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,.75fr) minmax(0,.7fr);gap:7px;}
.subject-tooltip-pro .tt-metric{min-width:0;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;padding:7px 8px;}
.subject-tooltip-pro .tt-fields{display:grid;grid-template-columns:minmax(220px,.95fr) minmax(0,1.25fr);gap:8px;align-items:stretch;}
.subject-tooltip-pro .tt-grid{display:grid;grid-template-columns:1fr;gap:8px;}
.subject-tooltip-pro .tt-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:2px;}
.subject-tooltip-pro .tt-summary-item{min-width:0;background:linear-gradient(180deg,#f8fafc,#fff);border:1px solid #e2e8f0;border-radius:13px;padding:7px 6px;text-align:center;box-shadow:0 1px 0 rgba(15,23,42,.03);}
.subject-tooltip-pro .tt-summary-icon{display:block;font-size:16px;line-height:1;margin-bottom:3px;}
.subject-tooltip-pro .tt-summary-label{display:block;font-size:9.5px;text-transform:uppercase;letter-spacing:.06em;font-weight:850;color:#64748b;line-height:1.1;}
.subject-tooltip-pro .tt-summary-item strong{display:block;margin-top:3px;font-size:12.5px;line-height:1.22;color:#0f172a;font-weight:900;word-break:break-word;}
.subject-tooltip-pro .tt-summary-item .tt-empty{font-size:11px;font-weight:700;}

.subject-tooltip-pro .tt-section{border:1px solid #e2e8f0;border-radius:12px;background:#fff;padding:8px 10px;box-shadow:0 1px 0 rgba(15,23,42,.03);min-width:0;}
.subject-tooltip-pro .tt-section.compact{background:#f8fafc;}
.subject-tooltip-pro .tt-synth{background:#fff;min-height:88px;}
.subject-tooltip-pro .tt-label{display:flex;align-items:center;gap:6px;font-size:10.5px;text-transform:uppercase;letter-spacing:.065em;font-weight:850;color:#64748b;margin-bottom:4px;}
.subject-tooltip-pro .tt-value{font-size:12.5px;line-height:1.45;color:#0f172a;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-height:none;}
.subject-tooltip-pro .tt-synth .tt-value{font-size:13px;line-height:1.5;}
.subject-tooltip-pro .tt-empty{color:#94a3b8;font-style:italic;}
.subject-tooltip-pro .tt-insp .tt-value{display:flex;flex-direction:column;gap:8px;min-width:0;overflow:visible;}
.subject-tooltip-pro .tt-chips{display:flex;flex-direction:column;flex-wrap:nowrap;gap:6px;align-items:stretch;width:100%;}
.subject-tooltip-pro .tt-chip{display:block;width:100%;box-sizing:border-box;border-radius:10px;padding:7px 10px;background:#eef2ff;border:1px solid #c7d2fe;color:#3730a3;font-size:11.5px;font-weight:750;white-space:normal;line-height:1.4;overflow:visible;overflow-wrap:break-word;word-break:normal;}
.subject-tooltip-pro .tt-insp-note{color:#0f172a;font-size:12.5px;font-weight:500;line-height:1.45;white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;}
.subject-tooltip-pro .tt-footer{margin:2px 0 0;padding-top:8px;border-top:1px dashed #cbd5e1;font-size:10.5px;color:#64748b;display:flex;justify-content:space-between;gap:8px;}
.subject-tooltip-pro::-webkit-scrollbar{width:8px;}
.subject-tooltip-pro::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:99px;}
@media (max-width:640px){
  .subject-tooltip-pro .tt-metrics,
  .subject-tooltip-pro .tt-fields{grid-template-columns:1fr;}
  .subject-tooltip-pro .tt-synth{min-height:0;}
}

/* Botón de ayuda: mismo círculo en la materia y en el semestre */
.sem-label{position:relative}
.card .card-info-btn,
.sem-info-btn{
  position:absolute;
  right:3px;
  bottom:3px;
  width:20px;
  height:20px;
  border-radius:999px;
  border:2px solid rgba(255,255,255,.75);
  background:rgba(14,116,144,.90);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:900;
  line-height:16px;
  box-shadow:0 2px 8px rgba(0,0,0,.25);
  cursor:help;
  opacity:.95;
  transition:opacity .12s ease, transform .12s ease;
  z-index:3;
  padding:0;
  box-sizing:border-box;
}
.card .card-info-btn:hover,
.card .card-info-btn:focus-visible,
.sem-info-btn:hover,
.sem-info-btn:focus-visible{
  opacity:1;
  transform:scale(1.06);
  background:#0f766e;
  outline:none;
  box-shadow:0 3px 10px rgba(0,0,0,.30);
}
.card.dragging .card-info-btn{display:none;}


/* Ventana Acerca de - estilo moderno */
.about-modal{
  width:min(520px, calc(100vw - 32px));
  border:0;
  padding:0;
  border-radius:24px;
  background:transparent;
  box-shadow:none;
}
.about-modal::backdrop{
  background:rgba(15,23,42,.48);
  backdrop-filter:blur(4px);
}
.about-modal form{margin:0;}
.about-card{
  position:relative;
  overflow:hidden;
  padding:30px 30px 24px;
  border-radius:24px;
  background:
    radial-gradient(circle at top left, rgba(14,165,233,.28), transparent 34%),
    radial-gradient(circle at bottom right, rgba(99,102,241,.22), transparent 34%),
    rgba(255,255,255,.98);
  border:1px solid rgba(255,255,255,.78);
  box-shadow:0 28px 80px rgba(15,23,42,.34), 0 4px 18px rgba(15,23,42,.16);
  text-align:center;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.about-card:before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:8px;
  background:linear-gradient(90deg,#0f766e,#0284c7,#4f46e5);
}
.about-close{
  position:absolute;
  top:14px;
  right:14px;
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.12)!important;
  background:rgba(255,255,255,.78)!important;
  color:#334155;
  font-size:22px;
  line-height:1;
  padding:0!important;
  cursor:pointer;
}
.about-close:hover{background:#fff!important;transform:scale(1.04);}
.about-logo{
  width:74px;
  height:74px;
  margin:8px auto 14px;
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-weight:900;
  font-size:25px;
  letter-spacing:.03em;
  background:linear-gradient(135deg,#0f766e,#0284c7 52%,#4f46e5);
  box-shadow:0 14px 34px rgba(2,132,199,.32), inset 0 1px 0 rgba(255,255,255,.28);
}
.about-card h2{
  margin:0 0 6px;
  color:#0f172a;
  font-size:24px;
  letter-spacing:-.025em;
}
.about-author{
  margin:0 0 18px;
  color:#475569;
  font-size:14px;
}
.about-lines{
  display:grid;
  gap:10px;
  margin:0 auto 14px;
  text-align:left;
}
.about-lines div{
  padding:12px 14px;
  border-radius:16px;
  background:rgba(248,250,252,.82);
  border:1px solid #e2e8f0;
  box-shadow:0 1px 0 rgba(15,23,42,.03);
}
.about-lines span{
  display:block;
  margin-bottom:3px;
  color:#64748b;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.07em;
  font-weight:850;
}
.about-lines strong{
  display:block;
  color:#0f172a;
  font-size:14px;
  line-height:1.25;
}
.about-note{
  margin:12px 0 0;
  color:#475569;
  font-size:13px;
  line-height:1.45;
}
.about-actions{
  display:flex;
  justify-content:center;
  margin:20px 0 0;
  padding:0;
}
.about-primary{
  min-width:130px;
  border:0!important;
  border-radius:999px!important;
  padding:10px 22px!important;
  background:linear-gradient(135deg,#0f766e,#0284c7)!important;
  color:#fff!important;
  font-weight:800;
  box-shadow:0 10px 24px rgba(2,132,199,.26);
}
.about-primary:hover{filter:brightness(1.05);transform:translateY(-1px);}

/* Modo colaborativo por clave/sala */
.workspace-panel{
  position:sticky;
  top:0;
  z-index:1200;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 14px;
  background:linear-gradient(135deg,#083344,#0f766e 50%,#1d4ed8);
  color:#fff;
  box-shadow:0 8px 24px rgba(15,23,42,.22);
}
.workspace-brand{display:flex;flex-direction:column;gap:2px;min-width:280px;}
.workspace-brand strong{font-size:15px;letter-spacing:.01em;}
.workspace-brand span{font-size:12px;opacity:.9;line-height:1.25;}
.workspace-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end;}
.workspace-actions button{
  border:1px solid rgba(255,255,255,.38);
  background:rgba(255,255,255,.14);
  color:#fff;
  border-radius:999px;
  padding:7px 12px;
  font-weight:800;
  cursor:pointer;
}
.workspace-actions button:hover:not(:disabled){background:rgba(255,255,255,.24);}
.workspace-actions button:disabled{opacity:.45;cursor:not-allowed;}
.workspace-panel.online{background:linear-gradient(135deg,#064e3b,#0f766e 45%,#0369a1);}
.workspace-panel.local{background:linear-gradient(135deg,#334155,#475569);}
@media(max-width:900px){.workspace-panel{align-items:flex-start;flex-direction:column}.workspace-actions{justify-content:flex-start}.workspace-brand{min-width:0}}

/* Indicadores colaborativos */
.card.remote-updated{
  animation: remoteUpdatedPulse 2.8s ease-in-out 1;
  box-shadow:0 0 0 3px rgba(37,99,235,.95),0 0 0 9px rgba(37,99,235,.18),0 16px 28px rgba(15,23,42,.20)!important;
}
@keyframes remoteUpdatedPulse{
  0%{transform:scale(1);box-shadow:0 0 0 0 rgba(37,99,235,.75),0 10px 20px rgba(15,23,42,.18)}
  22%{transform:scale(1.035);box-shadow:0 0 0 4px rgba(37,99,235,.95),0 0 0 12px rgba(37,99,235,.18),0 18px 34px rgba(15,23,42,.26)}
  58%{transform:scale(1.012);box-shadow:0 0 0 3px rgba(14,165,233,.8),0 0 0 9px rgba(14,165,233,.14),0 15px 28px rgba(15,23,42,.22)}
  100%{transform:scale(1);box-shadow:0 0 0 0 rgba(37,99,235,0),0 10px 20px rgba(15,23,42,.18)}
}
.workspace-panel.online #workspaceStatus{
  font-weight:750;
}
.workspace-panel.online #workspaceStatus::first-letter{
  text-transform:uppercase;
}


/* Mensajes flotantes de confirmación */
#toastContainer{
  position:fixed;
  right:20px;
  bottom:22px;
  z-index:9999;
  display:flex;
  flex-direction:column;
  gap:10px;
  pointer-events:none;
}
.toast{
  min-width:300px;
  max-width:460px;
  padding:13px 16px;
  border-radius:14px;
  color:#fff;
  font-weight:800;
  line-height:1.35;
  box-shadow:0 14px 34px rgba(15,23,42,.28);
  opacity:0;
  transform:translateY(14px) scale(.98);
  transition:opacity .28s ease, transform .28s ease;
}
.toast.show{
  opacity:1;
  transform:translateY(0) scale(1);
}
.toast.ok{background:linear-gradient(135deg,#047857,#0f766e);}
.toast.warn{background:linear-gradient(135deg,#b45309,#d97706);}
.toast.error{background:linear-gradient(135deg,#b91c1c,#dc2626);}
@media(max-width:700px){
  #toastContainer{left:14px;right:14px;bottom:14px;}
  .toast{min-width:0;max-width:none;width:auto;}
}











/* Panel inferior definitivo para agregar/quitar semestres */
#curriculum > #panelSemestresInferior.panel-semestres-inferior{
  grid-column:1 / -1 !important;
  margin:14px 8px 28px 8px !important;
  padding:14px !important;
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  gap:14px !important;
  background:#f1f3f5 !important;
  border:1px solid #c9ced6 !important;
  border-radius:10px !important;
  box-shadow:0 2px 8px rgba(0,0,0,.08) !important;
  width:auto !important;
  min-height:48px !important;
  order:999999 !important;
}
#panelSemestresInferior button,
#btnAgregarSemestreGlobal,
#btnQuitarSemestreGlobal{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  visibility:visible !important;
  opacity:1 !important;
  position:static !important;
  min-width:190px !important;
  padding:10px 18px !important;
  border-radius:9px !important;
  border:1px solid #3e5167 !important;
  background:#3f5268 !important;
  color:#ffffff !important;
  font-weight:700 !important;
  font-size:14px !important;
  cursor:pointer !important;
  box-shadow:0 2px 5px rgba(0,0,0,.12) !important;
}
#panelSemestresInferior button:hover,
#btnAgregarSemestreGlobal:hover,
#btnQuitarSemestreGlobal:hover{
  background:#506982 !important;
}





/* Modo comparativa original */
#btnCargarComparativaOriginal{
  display:inline-block !important;
  margin:3px 4px !important;
  padding:6px 10px !important;
  border-radius:4px !important;
  border:1px solid #777 !important;
  background:#f5f5f5 !important;
  color:#111 !important;
  font-weight:600 !important;
  cursor:pointer !important;
}
#btnCargarComparativaOriginal:hover{
  background:#e8eef7 !important;
}
#avisoComparativaOriginal{
  position:sticky;
  top:0;
  z-index:999999;
  background:#fff3cd;
  border-bottom:1px solid #d6a400;
  color:#4a3a00;
  padding:10px 14px;
  font-weight:700;
  text-align:center;
  box-shadow:0 2px 6px rgba(0,0,0,.12);
}
body.modo-comparativa-original .bloqueado-comparativa{
  opacity:.35 !important;
  cursor:not-allowed !important;
}
body.modo-comparativa-original::after{
  content:"SOLO LECTURA";
  position:fixed;
  right:18px;
  bottom:36px;
  z-index:999999;
  background:rgba(63,82,104,.92);
  color:white;
  padding:8px 14px;
  border-radius:20px;
  font-weight:800;
  letter-spacing:.5px;
  box-shadow:0 2px 8px rgba(0,0,0,.25);
}


/* Botón para eliminar comparativa original */
#btnEliminarComparativaOriginal{
  display:none;
  margin:3px 4px !important;
  padding:6px 10px !important;
  border-radius:4px !important;
  border:1px solid #8a1f1f !important;
  background:#fff0f0 !important;
  color:#8a1f1f !important;
  font-weight:700 !important;
  cursor:pointer !important;
}
#btnEliminarComparativaOriginal:hover{
  background:#ffdede !important;
}


/* Botón visible solo para administrador de sala */
#btnEditarClaveSala{
  display:none;
  margin-left:6px !important;
  padding:7px 13px !important;
  border-radius:18px !important;
  border:1px solid rgba(255,255,255,.55) !important;
  background:#5d4b73 !important;
  color:#ffffff !important;
  font-weight:700 !important;
  cursor:pointer !important;
}
#btnEditarClaveSala:hover{
  background:#725c8f !important;
}


/* Botón real editar clave en barra superior */
#btnEditarClaveSala{
  display:none;
  margin-left:6px !important;
  padding:7px 13px !important;
  border-radius:18px !important;
  border:1px solid rgba(255,255,255,.55) !important;
  background:#6b4e8a !important;
  color:#ffffff !important;
  font-weight:700 !important;
  cursor:pointer !important;
  white-space:nowrap !important;
}
#btnEditarClaveSala:hover{
  background:#815fa6 !important;
}


/* Botón Editar clave visible para administrador */
#btnEditarClaveSala{
  display:none;
  margin-left:6px !important;
  padding:7px 13px !important;
  border-radius:18px !important;
  border:1px solid rgba(255,255,255,.65) !important;
  background:#6b4e8a !important;
  color:#ffffff !important;
  font-weight:700 !important;
  cursor:pointer !important;
  white-space:nowrap !important;
}
#btnEditarClaveSala:hover{
  background:#815fa6 !important;
}


/* Botón Editar clave directo */
#btnEditarClaveSala{
  display:inline-block;
  margin-left:6px !important;
  padding:7px 13px !important;
  border-radius:18px !important;
  border:1px solid rgba(255,255,255,.65) !important;
  background:#6b4e8a !important;
  color:#ffffff !important;
  font-weight:700 !important;
  cursor:pointer !important;
  white-space:nowrap !important;
}
#btnEditarClaveSala:hover{
  background:#815fa6 !important;
}


/* Botón Editar clave estable */
#btnEditarClaveSala{
  display:none;
  margin-left:6px !important;
  padding:7px 13px !important;
  border-radius:18px !important;
  border:1px solid rgba(255,255,255,.65) !important;
  background:#6b4e8a !important;
  color:#ffffff !important;
  font-weight:700 !important;
  cursor:pointer !important;
  white-space:nowrap !important;
}
#btnEditarClaveSala:hover{
  background:#815fa6 !important;
}


/* Botón Editar clave corregido */
#btnEditarClaveSala{
  display:none;
  margin-left:6px !important;
  padding:7px 13px !important;
  border-radius:18px !important;
  border:1px solid rgba(255,255,255,.65) !important;
  background:#6b4e8a !important;
  color:#ffffff !important;
  font-weight:700 !important;
  cursor:pointer !important;
  white-space:nowrap !important;
}
#btnEditarClaveSala:hover{
  background:#815fa6 !important;
}


/* Sistema Mi propuesta */
#btnMiPropuesta,#btnCompartirMiPropuesta{
  display:inline-block!important;margin-left:6px!important;padding:7px 13px!important;border-radius:18px!important;
  border:1px solid rgba(255,255,255,.65)!important;color:#fff!important;font-weight:800!important;cursor:pointer!important;white-space:nowrap!important;
}
#btnMiPropuesta{background:#1f6f63!important}
#btnMiPropuesta:hover{background:#268475!important}
#btnCompartirMiPropuesta{background:#0f766e!important}
#btnCompartirMiPropuesta:hover{background:#119385!important}
#avisoModoPropuesta{position:sticky;top:0;z-index:999999;background:#dff7ef;color:#064e3b;border-bottom:1px solid #80cab4;text-align:center;font-weight:800;padding:9px 12px;box-shadow:0 2px 6px rgba(0,0,0,.12)}
.bloqueado-propuesta-view{opacity:.38!important;cursor:not-allowed!important}


/* Guardar/cargar mi propuesta en servidor */
#btnCargarRutaBaseServidor,
#btnGuardarMiPropuestaServidor,
#btnCargarMiPropuestaServidor{
  display:inline-block!important;
  margin-left:6px!important;
  padding:7px 13px!important;
  border-radius:18px!important;
  border:1px solid rgba(255,255,255,.65)!important;
  color:#fff!important;
  font-weight:800!important;
  cursor:pointer!important;
  white-space:nowrap!important;
}
#btnCargarRutaBaseServidor{background:linear-gradient(135deg,#00a8cc,#0077b6)!important}
#btnCargarRutaBaseServidor:hover{background:linear-gradient(135deg,#0096b8,#005f92)!important}
#btnGuardarMiPropuestaServidor{background:#2563eb!important}
#btnGuardarMiPropuestaServidor:hover{background:#1d4ed8!important}
#btnCargarMiPropuestaServidor{background:#7c3aed!important}
#btnCargarMiPropuestaServidor:hover{background:#6d28d9!important}

/* === Perfil del Egresado === */
.perfil-egresado-modal{max-width:980px;width:min(94vw,980px)}

.perfil-modal-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px}
.perfil-modal-topbar h2{margin:0}
.perfil-close-top{border:1px solid #b6c5d8;background:#f8fafc;border-radius:8px;padding:7px 12px;cursor:pointer;font-weight:700;color:#0f172a}
.perfil-close-top:hover{background:#e8f0fb}
.perfil-help{margin-top:-6px;color:#475569}
.perfil-principal-box,.perfil-propuesta-box{border:1px solid #dbe4ef;border-radius:14px;padding:14px;margin:12px 0;background:#f8fafc}
.perfil-section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px;color:#0f172a}
#perfilOwnerBadge,#perfilConteoPropuestas,#perfilPrincipalStatus,
#perfilIngresoOwnerBadge,#perfilIngresoConteoPropuestas,#perfilIngresoPrincipalStatus{font-size:.88rem;color:#64748b;font-weight:600}
.perfil-egresado-modal textarea{width:100%;box-sizing:border-box;resize:vertical;border:1px solid #cbd5e1;border-radius:10px;padding:10px;font:inherit;line-height:1.45;background:#fff}
.perfil-egresado-modal textarea:disabled{background:#eef2f7;color:#334155}
.perfil-actions-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}
.perfil-lista{display:grid;gap:10px;margin-top:10px;max-height:45vh;overflow:auto;padding-right:4px}
.perfil-empty{padding:16px;border:1px dashed #cbd5e1;border-radius:12px;color:#64748b;text-align:center;background:#f8fafc}
.perfil-card{border:1px solid #dbe4ef;border-radius:14px;padding:12px;background:#fff;box-shadow:0 6px 18px rgba(15,23,42,.06)}
.perfil-card-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:8px}
.perfil-card-head small{display:block;color:#64748b;font-size:.78rem;margin-top:2px}
.perfil-votes{white-space:nowrap;background:#e0f2fe;color:#075985;border-radius:999px;padding:5px 10px;font-weight:800;font-size:.9rem}
.perfil-card-text{white-space:normal;color:#1e293b;line-height:1.45;margin-bottom:10px}
.perfil-card-actions{display:flex;gap:8px;flex-wrap:wrap}
.perfil-card-actions button,.perfil-actions-row button{border-radius:9px;border:1px solid #b6c5d8;background:#f8fafc;padding:7px 10px;cursor:pointer;font-weight:700}
.perfil-card-actions button:hover,.perfil-actions-row button:hover{background:#e8f0fb}
.perfil-card-actions .danger,#btnBorrarPropuestasNoElegidas.danger{background:#fff1f2;border-color:#fecdd3;color:#9f1239}

/* === Malla Curricular === */
.malla-curricular-modal{
  width:min(98vw,1440px);
  max-width:98vw;
  max-height:96vh;
  padding:0;
  overflow:hidden;
}
#mallaCurricularForm{
  margin:0;
  padding:14px 16px 12px;
  max-height:96vh;
  overflow-y:auto;
}
#mallaCurricularForm h2{margin:0 0 6px;}
.malla-help{margin:0 0 10px;color:#475569;}
.malla-admin-box,.malla-view-box{border:1px solid #d7e0ea;border-radius:14px;padding:12px;margin:10px 0;background:#fff;}
.malla-view-box{
  width:100%;
  max-width:100%;
  overflow:visible;
}
.malla-section-title{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:8px;color:#0f172a;flex-wrap:wrap;}
.malla-section-title span{font-size:12px;color:#64748b;font-weight:500;}
.malla-upload-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.malla-web-viewer{
  border:1px solid #e2e8f0;
  border-radius:12px;
  background:#f8fafc;
  padding:14px;
  width:100%;
  max-width:100%;
  min-height:72vh;
  max-height:none;
  overflow-x:auto;
  overflow-y:visible;
  line-height:1.55;
  color:#111827;
}
.malla-web-viewer,.malla-web-viewer *{box-sizing:border-box;}
.malla-web-viewer h1,.malla-web-viewer h2,.malla-web-viewer h3{color:#0f172a;margin:.75em 0 .45em;}
.malla-web-viewer p{max-width:100%;overflow-wrap:anywhere;}
.malla-web-viewer table{
  border-collapse:collapse;
  width:100%!important;
  max-width:100%!important;
  table-layout:auto;
  margin:10px 0;
  background:#fff;
}
.malla-web-viewer th,.malla-web-viewer td{
  border:1px solid #cbd5e1;
  padding:7px;
  vertical-align:top;
  overflow-wrap:anywhere;
  word-break:normal;
}
.malla-web-viewer th{background:#e2e8f0;}
.malla-web-viewer img{max-width:100%!important;height:auto!important;}
.malla-web-viewer pre{white-space:pre-wrap;overflow-wrap:anywhere;}
.malla-web-viewer section,.malla-web-viewer div{max-width:100%;}
.malla-empty{padding:24px;text-align:center;color:#64748b;background:#fff;border:1px dashed #cbd5e1;border-radius:12px;}
#mallaStatus{display:block;margin-top:8px;color:#475569;}
@media(max-width:900px){
  .malla-curricular-modal{width:99vw;max-width:99vw;max-height:98vh;}
  #mallaCurricularForm{padding:10px;}
  .malla-web-viewer{padding:10px;min-height:70vh;}
  .malla-web-viewer th,.malla-web-viewer td{padding:6px;font-size:13px;}
}

/* Control de acceso visual: sin sesión o sin sala activa no se muestran controles de edición. */
body.rc-no-room #curriculum,
body.rc-no-room .footer {
  display: none !important;
}
body.rc-no-room .toolbar > *:not(#btnAcerca) {
  display: none !important;
}
body.rc-no-room .toolbar {
  justify-content: flex-end;
}
.rc-access-placeholder {
  margin: 28px auto;
  max-width: 760px;
  padding: 24px 28px;
  border: 1px solid #d6dce5;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15,23,42,.08);
  text-align: center;
  color: #334155;
  font-size: 16px;
}
.rc-access-placeholder strong {
  display: block;
  color: #0f172a;
  font-size: 20px;
  margin-bottom: 8px;
}
body.rc-room-active .rc-access-placeholder {
  display: none !important;
}
#btnVerPerfilGanador.perfil-winner-btn{background:#ecfeff;border:1px solid #67e8f9;color:#0e7490;border-radius:9px;padding:7px 10px;cursor:pointer;font-weight:700;margin-left:8px}
#btnVerPerfilGanador.perfil-winner-btn:hover{background:#cffafe}
#btnRegresarPropuestas.perfil-back-btn{background:#f8fafc;border:1px solid #b6c5d8;color:#334155;border-radius:9px;padding:7px 10px;cursor:pointer;font-weight:700;margin-left:8px}
#btnRegresarPropuestas.perfil-back-btn:hover{background:#e8f0fb}
.serial-detail{grid-column:1 / -1;font-size:.78rem;margin-top:-4px;color:#64748b}

.serial-tools{display:flex;align-items:center;gap:12px;margin:8px 0 12px 0;padding:8px 0;border-bottom:1px solid #cbd5e1;}
.serial-tools button{font-weight:700;}
.serial-colors-row{grid-template-columns:1fr 70px auto!important;align-items:center}.serial-colors-row small{grid-column:1 / -1;text-align:left}.serial-colors-row label{text-align:left;margin:4px 0 0 0}.serial-colors-row input[type=color]{height:32px;padding:0;width:70px}

/* === Matriz Comparativa Internacional === */
.matriz-comparativa-modal{width:min(96vw,1380px);max-height:92vh;}
.matriz-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:10px 0 12px;padding:10px;background:#f6f8fb;border:1px solid #dce3ef;border-radius:10px;}
.matriz-toolbar label{display:flex;flex-direction:column;gap:4px;font-size:.9rem;color:#344054;font-weight:600;}
.matriz-toolbar select,.matriz-toolbar input{min-width:240px;padding:8px 10px;border:1px solid #b8c2d2;border-radius:8px;background:#fff;font-size:.95rem;}
.matriz-resumen{font-size:.88rem;color:#475467;margin-left:auto;padding:8px 10px;background:#fff;border:1px solid #e5e7eb;border-radius:8px;}
.matriz-table-wrap{max-height:68vh;overflow:auto;border:1px solid #cfd8e3;border-radius:10px;background:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.5);}
.matriz-table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-size:.88rem;}
.matriz-table th,.matriz-table td{border-right:1px solid #d7dee9;border-bottom:1px solid #d7dee9;padding:8px 10px;vertical-align:top;max-width:360px;white-space:pre-wrap;line-height:1.35;}
.matriz-table th{position:sticky;top:0;z-index:3;background:#123c69;color:#fff;text-align:left;font-weight:700;box-shadow:0 1px 0 rgba(0,0,0,.15);}
.matriz-table th:first-child,.matriz-table td:first-child{position:sticky;left:0;z-index:2;box-shadow:1px 0 0 #d7dee9;background:#f8fbff;}
.matriz-table th:first-child{z-index:4;background:#123c69;color:#fff;}
.matriz-table tbody tr:nth-child(even) td{background:#fbfdff;}
.matriz-table tbody tr:hover td{background:#eef6ff;}
.matriz-title-note{margin:6px 0 10px;padding:8px 10px;border-left:4px solid #123c69;background:#eef4fb;color:#123c69;border-radius:6px;font-weight:700;}
.matriz-empty{padding:24px;text-align:center;color:#667085;}

/* === Matriz Comparativa Internacional: carga Excel y maximizar === */
.matriz-head{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:6px;}
.matriz-head h2{margin:0;}
.matriz-max-btn{border:1px solid #8aa4c4;background:#eef6ff;color:#123c69;border-radius:8px;padding:7px 10px;font-weight:700;cursor:pointer;}
.matriz-max-btn:hover{background:#dbeeff;}
.matriz-admin-box{margin:8px 0 10px;}
.matriz-meta-info{font-size:.86rem;color:#475467;margin:4px 0 8px;}
.matriz-fullscreen{width:100vw!important;height:100vh!important;max-width:100vw!important;max-height:100vh!important;margin:0!important;border-radius:0!important;}
.matriz-fullscreen::backdrop{background:rgba(15,23,42,.28);}
.matriz-fullscreen #matrizComparativaForm{height:100%;display:flex;flex-direction:column;}
.matriz-fullscreen .matriz-table-wrap{flex:1;max-height:none;min-height:0;}
.matriz-fullscreen .matriz-toolbar{flex-shrink:0;}
.matriz-fullscreen .modal-actions{flex-shrink:0;}

/* === Ajustes de cabecera para Malla y Matriz === */
.malla-head{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:6px;}
.malla-head h2{margin:0;}
.modal-top-actions{display:flex;align-items:center;gap:8px;}
.modal-close-top{border:1px solid #cbd5e1;background:#f8fafc;color:#334155;border-radius:8px;padding:7px 10px;font-weight:700;cursor:pointer;}
.modal-close-top:hover{background:#e8f0fb;}
.malla-fullscreen{width:100vw!important;height:100vh!important;max-width:100vw!important;max-height:100vh!important;margin:0!important;border-radius:0!important;}
.malla-fullscreen::backdrop{background:rgba(15,23,42,.28);}
.malla-fullscreen #mallaCurricularForm{height:100%;display:flex;flex-direction:column;overflow:hidden;}
.malla-fullscreen .malla-admin-box{flex-shrink:0;}
.malla-fullscreen .malla-view-box{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden;}
.malla-fullscreen .malla-web-viewer{flex:1;min-height:0;max-height:none;overflow:auto;}
.malla-fullscreen .modal-actions{flex-shrink:0;}

/* === Barra de herramientas organizada por grupos === */
.toolbar-organizada{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  padding:8px 10px;
}
.toolbar-menus{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}
.toolbar-menu{
  position:relative;
  display:inline-block;
}
.toolbar-menu > summary{
  list-style:none;
  cursor:pointer;
  user-select:none;
  padding:7px 12px;
  border:1px solid #8fa7b3;
  border-radius:8px;
  background:linear-gradient(#ffffff,#eef5f7);
  font-weight:700;
  color:#123;
  box-shadow:0 1px 2px rgba(0,0,0,.08);
}
.toolbar-menu > summary::-webkit-details-marker{display:none;}
.toolbar-menu[open] > summary{
  background:linear-gradient(#0f827c,#0b6f75);
  color:white;
  border-color:#0b6f75;
}
.toolbar-menu-panel{
  position:absolute;
  top:calc(100% + 4px);
  left:0;
  z-index:1000;
  min-width:245px;
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:8px;
  background:#fff;
  border:1px solid #9db1bd;
  border-radius:10px;
  box-shadow:0 8px 22px rgba(0,0,0,.18);
}
.toolbar-menu-panel button{
  width:100%;
  text-align:left;
  padding:7px 10px;
  border-radius:7px;
}
.toolbar-organizada .view-switch{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border:1px solid #c7d3dc;
  border-radius:999px;
  background:#f8fbfc;
  white-space:nowrap;
}
.toolbar-organizada .view-switch label{
  display:inline-flex;
  align-items:center;
  gap:3px;
}
.toolbar-organizada .view-switch-label{
  font-weight:700;
}
@media (max-width: 950px){
  .toolbar-organizada .view-switch{margin-left:0; width:100%; justify-content:flex-start; flex-wrap:wrap; border-radius:8px;}
  .toolbar-menu-panel{min-width:220px;}
}


/* === Selector de visualización siempre visible debajo de menús === */
.toolbar-organizada{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
  padding:8px 10px;
}
.toolbar-organizada .toolbar-menus{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  width:100%;
}
.toolbar-organizada .view-switch{
  margin-left:0!important;
  display:inline-flex!important;
  align-items:center;
  gap:10px;
  padding:5px 10px;
  border:1px solid #c7d3dc;
  border-radius:999px;
  background:#f8fbfc;
  white-space:nowrap;
  width:auto;
  max-width:100%;
}
.toolbar-organizada .view-switch label{
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin:0;
}
.toolbar-organizada .view-switch-label{
  font-weight:700;
}
@media (max-width: 800px){
  .toolbar-organizada .view-switch{
    width:100%;
    flex-wrap:wrap;
    border-radius:8px;
  }
}

.perfil-fullscreen{width:100vw!important;height:100vh!important;max-width:100vw!important;max-height:100vh!important;margin:0!important;border-radius:0!important;}
.perfil-fullscreen::backdrop{background:rgba(15,23,42,.28);}
.perfil-fullscreen #perfilEgresadoForm,
.perfil-fullscreen #perfilIngresoForm{height:100%;display:flex;flex-direction:column;overflow:hidden;}
.perfil-fullscreen .perfil-principal-box,.perfil-fullscreen .perfil-propuesta-box{flex-shrink:0;}
.perfil-fullscreen section:last-of-type{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden;}
.perfil-fullscreen .perfil-lista{flex:1;max-height:none;min-height:0;overflow:auto;}
.perfil-fullscreen .modal-actions{flex-shrink:0;}

/* === Toolbar compacta: menús y visualización en una sola fila === */
.toolbar-organizada{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  padding:6px 10px!important;
}
.toolbar-organizada .toolbar-menus{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  flex-wrap:wrap!important;
  width:auto!important;
  flex:0 0 auto!important;
}
.toolbar-organizada .view-switch{
  margin-left:4px!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:9px!important;
  padding:5px 10px!important;
  border:1px solid #c7d3dc!important;
  border-radius:999px!important;
  background:#f8fbfc!important;
  white-space:nowrap!important;
  width:auto!important;
  max-width:none!important;
  flex:0 0 auto!important;
}
.toolbar-organizada .view-switch::before{
  content:"";
  display:inline-block;
  width:1px;
  height:22px;
  background:#b8c6d0;
  margin-right:4px;
}
.toolbar-organizada .view-switch label{
  display:inline-flex!important;
  align-items:center!important;
  gap:4px!important;
  margin:0!important;
}
.toolbar-organizada .view-switch-label{
  font-weight:700!important;
}
@media (max-width: 1100px){
  .toolbar-organizada .view-switch{
    margin-left:0!important;
    flex-wrap:wrap!important;
    border-radius:8px!important;
  }
  .toolbar-organizada .view-switch::before{display:none;}
}


/* === Ajuste final: cápsula de visualización sin separador y con fondo tenue === */
.toolbar-organizada .view-switch{
  margin-left:8px!important;
  background:rgba(15,118,110,.08)!important;
  border:1px solid rgba(15,118,110,.28)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85);
}
.toolbar-organizada .view-switch::before{
  content:none!important;
  display:none!important;
}


/* === Barra compacta para Mi propuesta personal === */
.proposal-actionbar{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  padding:6px 10px 2px;
}
.proposal-actionbar button{
  padding:7px 13px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.65);
  color:#fff;
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
}
.toolbar-menu-panel .toggle.active, #btnMiPropuestaActual.active{
  background:#1f6f63!important;
  color:#fff!important;
  font-weight:800!important;
}

/* Separador interno para agrupar opciones dentro de menús */
.toolbar-menu-separator{
  height:1px;
  margin:4px 2px;
  background:linear-gradient(to right, transparent, #cfd8dc, transparent);
}

.hours-credits-row{display:grid;grid-template-columns:1fr 120px;gap:10px;align-items:end}.hours-credits-row label{margin-bottom:12px}.legend-credits{display:flex;align-items:center;margin-left:12px;padding:2px 8px;border:1px solid #b6c2cc;border-radius:14px;background:#fff;font-size:12px;font-weight:700;color:#1f2937;white-space:nowrap}


.legend-hover-tooltip{
  position:fixed;
  z-index:99999;
  display:none;
  background:#fff;
  color:#111827;
  border:1px solid #94a3b8;
  border-radius:12px;
  padding:10px 12px;
  box-shadow:0 12px 28px rgba(15,23,42,.22);
  font-size:13px;
  pointer-events:none;
  min-width:180px;
}
.legend-tip-head{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:6px;
}
.legend-tip-dot{
  width:30px;
  height:30px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.35);
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.65);
  flex:0 0 auto;
}
.legend-tip-credits{
  font-weight:700;
  color:#0f766e;
  padding-left:40px;
}


.subject-options-row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:22px;
  margin-top:8px;
  font-weight:700;
}
.subject-options-row label{
  display:inline-flex !important;
  flex-direction:row !important;
  align-items:center;
  gap:6px;
  font-weight:700;
  white-space:nowrap;
}
.subject-options-row input[type="checkbox"]{
  width:16px;
  height:16px;
}
.card.dashed-card{
  border-style:dashed !important;
  border-width:2px !important;
}


.show-hidden-label{
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-left:10px;
  font-weight:700;
  white-space:nowrap;
}
.show-hidden-label input{
  width:14px;
  height:14px;
}
.card.hidden-card-visible{
  opacity:.55;
  filter:saturate(.65);
  outline:2px dashed rgba(30,41,59,.65);
  outline-offset:-4px;
}
.card.hidden-card-visible::before{
  content:"Oculta";
  position:absolute;
  top:4px;
  left:6px;
  background:rgba(255,255,255,.86);
  color:#334155;
  border:1px solid rgba(51,65,85,.35);
  border-radius:999px;
  padding:1px 7px;
  font-size:10px;
  font-weight:800;
  z-index:2;
}


.official-modal{width:min(1100px,96vw)}
.validation-modal{width:min(850px,96vw)}
.official-table-wrap{max-height:70vh;overflow:auto;border:1px solid #cbd5e1;border-radius:8px}
.official-table{width:100%;border-collapse:collapse;background:#fff}
.official-table th,.official-table td{border:1px solid #cbd5e1;padding:7px 9px;font-size:12px;text-align:left;vertical-align:top}
.official-table th{background:#e2e8f0;color:#0f172a;position:sticky;top:0;z-index:1}
.official-hidden{opacity:.55;background:#f8fafc}
.validation-summary{margin:8px 0 14px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:10px;background:#f8fafc}
.muted{color:#475569;font-size:13px}

/* Flechas dinámicas de seriación: solo se dibujan en la vista Seriación */
.curriculum{position:relative;}
.seriation-arrows-layer{position:absolute;left:0;top:0;z-index:60;pointer-events:none;overflow:visible;animation:seriationArrowFade .18s ease-out;}
.seriation-arrow-path{
  fill:none;
  stroke:#2f5f8f;
  stroke-width:1.15;
  stroke-linecap:round;
  stroke-linejoin:round;
  filter:drop-shadow(0 1px 1px rgba(15,23,42,.12));
  opacity:.82;
}
.seriation-arrow-head{
  fill:#2f5f8f;
  opacity:.85;
}
.seriation-arrow-node{
  fill:#d14343;
  stroke:#ffffff;
  stroke-width:1;
  opacity:.95;
}
@keyframes seriationArrowFade{from{opacity:0}to{opacity:1}}

/* Área de Trabajo Local: pestaña segura para archivos y escenarios locales. */
.rc-local-review-mode #workspacePanel{display:none!important;}
.rc-local-review-bar{
  margin:10px 12px 12px;
  padding:12px 14px;
  border:1px solid #fed7aa;
  border-left:6px solid #f97316;
  background:#fff7ed;
  border-radius:14px;
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  box-shadow:0 2px 8px rgba(15,23,42,.08);
}
.rc-local-review-bar div{display:flex;flex-direction:column;gap:2px;min-width:260px;flex:1;}
.rc-local-review-bar strong{color:#9a3412;font-size:15px;}
.rc-local-review-bar small{color:#7c2d12;}
.rc-local-review-bar button{background:#f97316;color:white;border-color:#ea580c;font-weight:700;}
.rc-local-chip{background:#ffedd5;border:1px solid #fdba74;color:#7c2d12;border-radius:999px;padding:6px 10px;font-weight:700;font-size:12px;}
.rc-local-switch{display:flex;align-items:center;gap:6px;font-weight:700;color:#7c2d12;background:#fff;border:1px solid #fed7aa;border-radius:999px;padding:6px 10px;}

/* Menú Editar profesional */
#menuEditarPanel button{display:flex;align-items:center;justify-content:space-between;gap:18px;min-width:245px;text-align:left;}
#menuEditarPanel button kbd{font:11px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;background:#f1f5f9;border:1px solid #cbd5e1;border-bottom-width:2px;border-radius:5px;color:#334155;padding:2px 6px;white-space:nowrap;}
#menuEditarPanel button:disabled kbd{opacity:.45;}
.rc-floating-copy-ghost{position:fixed;z-index:99999;pointer-events:none;opacity:.72;transform:translate(14px,14px);min-width:170px;max-width:240px;background:#dbeafe;color:#0f172a;border:2px dashed #1d4ed8;border-radius:14px;box-shadow:0 12px 26px rgba(15,23,42,.22);padding:10px 12px;font-weight:700;}
.rc-floating-copy-ghost .small{font-size:11px;font-weight:600;opacity:.75;margin-top:4px;}
body.rc-floating-copy-active .semester{outline:2px dashed rgba(29,78,216,.22);outline-offset:4px;}
body.rc-floating-copy-active .semester:hover{outline-color:rgba(29,78,216,.7);background:rgba(219,234,254,.35);}
.rc-history-list{max-height:420px;overflow:auto;margin-top:12px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;}
.rc-history-item{display:flex;gap:10px;align-items:flex-start;padding:9px 11px;border-bottom:1px solid #e5e7eb;font-size:13px;}
.rc-history-item:last-child{border-bottom:0;}
.rc-history-time{color:#64748b;font-size:12px;white-space:nowrap;}


/* CURRIA v2.1.0-alpha1 · Barra Inteligente de Estado */
.curria-security-status{margin-left:auto;font-weight:700;border:1px solid transparent;border-radius:999px;padding:3px 10px;white-space:nowrap;background:#f8fafc;color:#334155;box-shadow:inset 0 0 0 1px rgba(148,163,184,.15)}
.curria-security-status.protegido{background:#ecfdf5;color:#047857;border-color:#a7f3d0}
.curria-security-status.pendiente{background:#fff7ed;color:#c2410c;border-color:#fed7aa}
.curria-security-status.protegiendo{background:#fefce8;color:#a16207;border-color:#fde68a}
.curria-security-status.error{background:#fef2f2;color:#b91c1c;border-color:#fecaca}
.statusbar{gap:10px;align-items:center}
@media(max-width:800px){.curria-security-status{display:inline-block;margin-top:6px;margin-left:0}}

.rc-history-toolbar{display:flex;gap:12px;flex-wrap:wrap;margin:10px 0 6px;color:#475569;font-size:13px;}
.rc-history-action{width:100%;border:0;background:#fff;text-align:left;cursor:pointer;font-family:inherit;}
.rc-history-action:hover{background:#eff6ff;}
.rc-history-restore{margin-left:auto;color:#1d4ed8;font-weight:700;font-size:12px;white-space:nowrap;}
.rc-history-muted{color:#64748b;background:#f8fafc;}
.rc-history-redo-list{max-height:180px;}

/* === CURRIA v2.2.0-alpha4 · Barra de estado profesional === */
.footer{padding-bottom:0;background:#0f172a;border-top:1px solid rgba(148,163,184,.35);box-shadow:0 -6px 22px rgba(15,23,42,.18);z-index:1000}
.footer .legend{background:#f8fafc;color:#0f172a;border-top:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb}
.statusbar.curria-pro-statusbar{display:flex;align-items:center;gap:8px;justify-content:flex-start;flex-wrap:nowrap;background:linear-gradient(90deg,#0f172a,#111827);color:#e5e7eb;border-top:0;padding:7px 10px;font-size:12px;min-height:34px;box-sizing:border-box;overflow-x:auto;scrollbar-width:thin}
.curria-pro-message{font-weight:600;color:#f8fafc;min-width:170px;max-width:34vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:auto}
.curria-pro-chip{display:inline-flex;align-items:center;gap:5px;border:1px solid rgba(148,163,184,.24);border-radius:999px;padding:3px 9px;background:rgba(255,255,255,.07);color:#dbeafe;white-space:nowrap;line-height:1.2;transition:background .18s ease,color .18s ease,border-color .18s ease,transform .16s ease}
.curria-pro-chip.curria-ok{background:rgba(16,185,129,.14);border-color:rgba(16,185,129,.35);color:#a7f3d0}
.curria-pro-chip.curria-saved{background:rgba(59,130,246,.14);border-color:rgba(59,130,246,.35);color:#bfdbfe}
.curria-pro-chip.curria-warn{background:rgba(245,158,11,.16);border-color:rgba(245,158,11,.42);color:#fde68a}
.curria-pro-chip.curria-saving{background:rgba(14,165,233,.16);border-color:rgba(14,165,233,.42);color:#bae6fd;animation:curriaSavingPulse 1.1s ease-in-out infinite}
.curria-pro-chip.curria-error{background:rgba(239,68,68,.16);border-color:rgba(239,68,68,.42);color:#fecaca}
.curria-pro-button{font:inherit;cursor:pointer}
.curria-pro-button:hover{background:rgba(255,255,255,.14);transform:translateY(-1px)}
.curria-pro-version{margin-left:4px;text-align:right;font-weight:800;color:#fff;border-left:1px solid rgba(148,163,184,.3);padding-left:10px;white-space:nowrap;line-height:1.05}
.curria-pro-version small{font-weight:500;color:#94a3b8;font-size:10px}
.curria-pro-pulse{animation:curriaStatusPulse .5s ease-out 1}
.curria-history-pulse{box-shadow:0 0 0 1px rgba(59,130,246,.15),0 0 14px rgba(59,130,246,.2)}
.curria-security-status{display:none!important}
@keyframes curriaSavingPulse{0%,100%{filter:brightness(1)}50%{filter:brightness(1.32)}}
@keyframes curriaStatusPulse{0%{color:#fff;text-shadow:0 0 10px rgba(255,255,255,.35)}100%{color:#f8fafc;text-shadow:none}}
@media(max-width:900px){.statusbar.curria-pro-statusbar{gap:6px}.curria-pro-message{min-width:140px;max-width:44vw}.curria-pro-version{display:none}.curria-pro-chip{padding:3px 7px}}

/* CURRIA v2.2.0-alpha5 - History checkpoints */
.rc-history-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:10px 0 14px;}
.rc-history-checkpoint-btn{background:#f59e0b;color:#111827;border:0;border-radius:10px;padding:8px 12px;font-weight:700;cursor:pointer;}
.rc-history-checkpoint-btn:hover{filter:brightness(.95);}
.rc-history-checkpoints{border:1px solid rgba(245,158,11,.35);border-radius:12px;padding:8px;background:rgba(245,158,11,.07);margin-bottom:14px;}
.rc-history-checkpoint{border-left:4px solid #f59e0b!important;}
.rc-history-note{font-size:12px;color:#475569;margin-top:4px;line-height:1.35;}

/* CURRIA v2.2.0-alpha6 - Hitos Curriculares */
#menuProyecto summary{font-weight:700;}
.rc-history-milestone{border-left:5px solid #f59e0b;background:linear-gradient(90deg,#fffbeb,#ffffff);}
.rc-history-milestone strong{font-size:20px;}
.rc-history-note{margin-top:4px;color:#475569;font-size:12px;line-height:1.35;}
.rc-history-checkpoint-btn{background:#f59e0b!important;color:#111827!important;font-weight:800!important;border-color:#d97706!important;}

/* CURRIA v2.2.0-alpha6.2 - Historial y Trazabilidad Curricular */
.rc-history-dialog form{max-width:980px;}
.rc-history-intro{color:#475569;margin-top:4px;line-height:1.45;}
.rc-history-stats{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:12px 0 16px;}
.rc-history-stats span{background:#f8fafc;border:1px solid #cbd5e1;border-radius:999px;padding:6px 10px;font-size:13px;color:#334155;}
.rc-history-section{display:grid;gap:10px;margin:10px 0 18px;max-height:420px;overflow:auto;padding:4px;}
.rc-history-checkpoints{border:0;background:transparent;padding:0;}
.rc-history-card{width:100%;border:1px solid #dbe4ef;border-radius:14px;background:#fff;text-align:left;font-family:inherit;color:#0f172a;padding:12px 14px;box-shadow:0 1px 2px rgba(15,23,42,.05);transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease,background .12s ease;}
.rc-history-card:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(15,23,42,.09);cursor:pointer;}
.rc-history-card-head{display:flex;align-items:flex-start;gap:11px;}
.rc-history-icon{width:34px;height:34px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:#fff7ed;border:1px solid #fed7aa;font-size:18px;flex:0 0 auto;}
.rc-history-action-number{width:34px;height:34px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8;font-weight:900;flex:0 0 auto;}
.rc-history-card-title{display:flex;flex-direction:column;gap:2px;min-width:0;}
.rc-history-kicker{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#64748b;font-weight:800;}
.rc-history-card-title strong{font-size:15px;line-height:1.25;color:#0f172a;}
.rc-history-click{margin-left:auto;align-self:center;background:#eef2ff;color:#3730a3;border:1px solid #c7d2fe;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:800;white-space:nowrap;opacity:.86;}
.rc-history-milestone-card{border-left:6px solid #f59e0b;background:linear-gradient(90deg,#fffbeb 0,#ffffff 42%);}
.rc-history-milestone-card:hover{border-color:#f59e0b;background:linear-gradient(90deg,#fef3c7 0,#ffffff 50%);}
.rc-history-action-card{border-left:6px solid #3b82f6;background:linear-gradient(90deg,#eff6ff 0,#ffffff 42%);}
.rc-history-action-card:hover{border-color:#2563eb;background:linear-gradient(90deg,#dbeafe 0,#ffffff 50%);}
.rc-history-card-note{margin:10px 0 6px 45px;color:#334155;font-size:13px;line-height:1.45;white-space:pre-wrap;}
.rc-history-action-detail{font-weight:600;color:#1e293b;}
.rc-history-meta{display:flex;gap:12px;flex-wrap:wrap;margin:8px 0 0 45px;color:#64748b;font-size:12px;}
.rc-history-empty{border:1px dashed #cbd5e1;border-radius:12px;padding:16px;color:#64748b;background:#f8fafc;}
.rc-history-muted{background:#f8fafc;color:#64748b;}
.rc-history-checkpoint-btn{background:#f59e0b!important;color:#111827!important;border:1px solid #d97706!important;border-radius:999px!important;padding:8px 13px!important;font-weight:900!important;}
.rc-history-checkpoint-btn:hover{filter:brightness(.97);transform:translateY(-1px);}

/* CURRIA Dialog Engine v2.2.0-alpha7 */
.curria-dialog-overlay{position:fixed;inset:0;background:rgba(15,23,42,.42);backdrop-filter:blur(3px);z-index:999999;display:flex;align-items:center;justify-content:center;padding:24px;animation:curriaFadeIn .14s ease-out;}
.curria-dialog-overlay.curria-dialog-leaving{animation:curriaFadeOut .12s ease-in forwards;}
.curria-dialog{width:min(560px,calc(100vw - 36px));background:#ffffff;border:1px solid rgba(12,99,112,.22);border-radius:20px;box-shadow:0 24px 80px rgba(15,23,42,.28);overflow:hidden;animation:curriaDialogIn .16s ease-out;font-family:inherit;color:#082f3a;}
.curria-dialog-header{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:22px 24px 16px;background:linear-gradient(135deg,#e6fffb 0,#f8fafc 58%,#ffffff 100%);border-bottom:1px solid rgba(12,99,112,.12);}
.curria-dialog-header h2{margin:0;font-size:22px;line-height:1.2;color:#063b46;}
.curria-dialog-header p{margin:6px 0 0;color:#475569;font-size:13px;line-height:1.35;}
.curria-dialog-close{border:0;background:rgba(15,23,42,.08);color:#0f172a;border-radius:999px;width:34px;height:34px;font-weight:900;cursor:pointer;font-size:16px;}
.curria-dialog-close:hover{background:rgba(15,23,42,.15);}
.curria-dialog-body{padding:20px 24px 8px;}
.curria-field{display:block;margin:0 0 16px;}
.curria-field span{display:block;font-weight:800;color:#0f172a;margin-bottom:7px;font-size:13px;}
.curria-field input,.curria-field select,.curria-field textarea{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:12px;padding:10px 12px;font-family:inherit;font-size:14px;background:#fff;color:#0f172a;outline:none;transition:border-color .12s ease,box-shadow .12s ease,background .12s ease;}
.curria-field textarea{resize:vertical;min-height:110px;line-height:1.45;}
.curria-field input:focus,.curria-field select:focus,.curria-field textarea:focus{border-color:#0891b2;box-shadow:0 0 0 4px rgba(8,145,178,.13);}
.curria-field-error{border-color:#dc2626!important;box-shadow:0 0 0 4px rgba(220,38,38,.12)!important;}
.curria-dialog-actions{display:flex;justify-content:flex-end;gap:10px;padding:16px 24px 22px;border-top:1px solid #e2e8f0;background:#f8fafc;}
.curria-btn{border:0;border-radius:999px;padding:10px 18px;font-weight:900;cursor:pointer;font-family:inherit;min-width:104px;}
.curria-btn-primary{background:#08798a;color:white;box-shadow:0 4px 12px rgba(8,121,138,.24);}
.curria-btn-primary:hover{background:#06687a;}
.curria-btn-secondary{background:#e2e8f0;color:#0f172a;}
.curria-btn-secondary:hover{background:#cbd5e1;}
.curria-confirm-box{display:flex;gap:14px;align-items:flex-start;border:1px solid #cbd5e1;background:#f8fafc;border-radius:16px;padding:16px;}
.curria-confirm-icon{width:42px;height:42px;border-radius:14px;background:#e0f2fe;color:#0369a1;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:900;flex:0 0 auto;}
.curria-confirm-box strong{font-size:16px;color:#0f172a;}
.curria-confirm-box p{margin:6px 0 0;color:#475569;line-height:1.4;}
@keyframes curriaFadeIn{from{opacity:0}to{opacity:1}}
@keyframes curriaFadeOut{from{opacity:1}to{opacity:0}}
@keyframes curriaDialogIn{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}


/* CURRIA v2.2.0-alpha8 - Timeline visual de Hitos Curriculares */
.rc-timeline-dialog form{max-width:1100px;}
.rc-timeline-wrap{position:relative;margin:22px 0 18px;padding:28px 14px 18px;overflow-x:auto;border:1px solid #dbe4ef;border-radius:18px;background:linear-gradient(180deg,#f8fafc,#ffffff);}
.rc-timeline-line{position:absolute;left:48px;right:48px;top:72px;height:4px;border-radius:999px;background:linear-gradient(90deg,#f59e0b,#14b8a6,#3b82f6,#8b5cf6);opacity:.55;}
.rc-timeline-nodes{position:relative;display:flex;gap:18px;align-items:flex-start;min-width:max-content;padding:0 16px;}
.rc-timeline-node{position:relative;width:185px;min-height:128px;border:1px solid #dbe4ef;border-radius:18px;background:#fff;text-align:center;padding:10px 12px 12px;font-family:inherit;color:#0f172a;box-shadow:0 2px 8px rgba(15,23,42,.06);cursor:pointer;transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease;background .14s ease;}
.rc-timeline-node:hover{transform:translateY(-3px);box-shadow:0 14px 28px rgba(15,23,42,.13);border-color:#f59e0b;background:#fffbeb;}
.rc-timeline-dot{display:flex;align-items:center;justify-content:center;width:42px;height:42px;margin:0 auto 8px;border-radius:50%;background:#fff7ed;border:2px solid #f59e0b;font-size:22px;box-shadow:0 0 0 4px #fff;}
.rc-timeline-index{position:absolute;top:8px;right:10px;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:#0f766e;color:white;font-size:12px;font-weight:900;}
.rc-timeline-node strong{display:block;font-size:14px;line-height:1.25;margin:2px 0 4px;color:#0f172a;}
.rc-timeline-node small{display:block;text-transform:uppercase;letter-spacing:.06em;font-size:10px;font-weight:900;color:#64748b;}
.rc-timeline-node em{display:block;font-style:normal;font-size:11px;color:#64748b;margin-top:8px;}
.rc-timeline-help{font-size:12px;color:#64748b;margin:6px 4px 14px;}
.rc-timeline-detail-card{display:flex;gap:16px;align-items:flex-start;border:1px solid #dbe4ef;border-radius:18px;background:linear-gradient(90deg,#fffbeb,#fff);padding:16px;}
.rc-timeline-detail-icon{width:52px;height:52px;border-radius:18px;background:#fff7ed;border:1px solid #fed7aa;display:flex;align-items:center;justify-content:center;font-size:28px;flex:0 0 auto;}
.rc-timeline-detail-card h3{margin:3px 0 8px;color:#0f172a;font-size:20px;}
.rc-timeline-detail-card p{margin:0 0 8px;color:#334155;line-height:1.5;white-space:pre-wrap;}
.rc-timeline-muted{color:#94a3b8!important;font-style:italic;}
.rc-timeline-detail-meta{margin-left:0!important;}

/* CURRIA v2.2.0-alpha8.1 — Timeline Curricular profesional */
.rc-timeline-dialog form{max-width:1160px;min-width:min(1060px,94vw);}
.rc-timeline-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:14px;}
.rc-timeline-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end;}
.rc-timeline-count{display:inline-flex;align-items:center;gap:6px;border:1px solid #cbd5e1;border-radius:999px;background:#f8fafc;color:#334155;font-weight:800;padding:7px 11px;font-size:13px;}
.rc-timeline-hero{display:flex;justify-content:space-between;gap:20px;align-items:center;border:1px solid #dbe4ef;border-radius:18px;background:linear-gradient(135deg,#0f766e,#0f172a);color:#fff;padding:16px 18px;margin:10px 0 16px;box-shadow:0 10px 22px rgba(15,23,42,.16);}
.rc-timeline-hero h3{margin:3px 0 0;font-size:20px;color:#fff;}
.rc-timeline-label{text-transform:uppercase;letter-spacing:.08em;font-size:11px;font-weight:900;color:#a7f3d0;}
.rc-timeline-legend{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;font-size:12px;}
.rc-timeline-legend span{border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.12);border-radius:999px;padding:6px 9px;white-space:nowrap;}
.rc-timeline-wrap{position:relative;margin:16px 0 14px;padding:22px 12px;overflow-x:auto;border:1px solid #dbe4ef;border-radius:20px;background:linear-gradient(180deg,#f8fafc,#fff);}
.rc-timeline-track{position:relative;display:flex;align-items:stretch;gap:0;min-width:max-content;padding:8px 8px 6px;}
.rc-timeline-stage{position:relative;width:210px;min-height:178px;margin:0 8px;border:1px solid #dbe4ef;border-radius:20px;background:#fff;text-align:left;padding:60px 14px 14px;font-family:inherit;color:#0f172a;box-shadow:0 2px 10px rgba(15,23,42,.07);cursor:pointer;transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease,background .14s ease;}
.rc-timeline-stage:hover{transform:translateY(-4px);box-shadow:0 18px 32px rgba(15,23,42,.14);border-color:#f59e0b;background:#fffbeb;}
.rc-timeline-rail{position:absolute;left:-16px;right:-16px;top:35px;height:4px;background:linear-gradient(90deg,#f59e0b,#14b8a6,#3b82f6);opacity:.48;z-index:0;}
.rc-timeline-stage.is-first .rc-timeline-rail{left:50%;}
.rc-timeline-stage.is-last .rc-timeline-rail{right:50%;}
.rc-timeline-dot{position:absolute;top:14px;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:#fff7ed;border:3px solid #f59e0b;font-size:24px;box-shadow:0 0 0 7px #fff;z-index:2;}
.rc-timeline-index{position:absolute;top:10px;right:11px;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:#0f766e;color:white;font-size:12px;font-weight:900;z-index:3;}
.rc-timeline-category{display:inline-flex;align-items:center;width:max-content;max-width:100%;text-transform:uppercase;letter-spacing:.06em;font-size:10px;font-weight:900;color:#0f766e;background:#ecfeff;border:1px solid #a5f3fc;border-radius:999px;padding:4px 8px;margin-bottom:8px;}
.rc-timeline-stage strong{display:block;font-size:15px;line-height:1.25;margin:0 0 7px;color:#0f172a;}
.rc-timeline-stage em{display:block;font-style:normal;font-size:12px;color:#64748b;margin-top:7px;}
.rc-timeline-mini-note{display:block;margin-top:9px;font-size:12px;line-height:1.35;color:#475569;background:#f8fafc;border-radius:10px;padding:8px;}
.rc-timeline-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px dashed #cbd5e1;border-radius:20px;background:linear-gradient(180deg,#f8fafc,#fff);padding:34px 18px;margin:12px 0;}
.rc-timeline-empty-icon{width:62px;height:62px;border-radius:22px;display:flex;align-items:center;justify-content:center;background:#fff7ed;border:1px solid #fed7aa;font-size:32px;margin-bottom:10px;}
.rc-timeline-empty h3{margin:0 0 6px;color:#0f172a;font-size:20px;}
.rc-timeline-empty p{max-width:620px;margin:0;color:#64748b;line-height:1.5;}
.rc-timeline-help{font-size:12px;color:#64748b;margin:8px 4px 14px;}
.rc-timeline-detail-card{display:flex;gap:16px;align-items:flex-start;border:1px solid #dbe4ef;border-radius:20px;background:linear-gradient(90deg,#fffbeb,#fff);padding:18px;box-shadow:0 6px 18px rgba(15,23,42,.08);}
.rc-timeline-detail-icon{width:58px;height:58px;border-radius:20px;background:#fff7ed;border:1px solid #fed7aa;display:flex;align-items:center;justify-content:center;font-size:30px;flex:0 0 auto;}
.rc-timeline-detail-content{min-width:0;}
.rc-timeline-detail-card h3{margin:4px 0 10px;color:#0f172a;font-size:22px;}
.rc-timeline-detail-card p{margin:0 0 10px;color:#334155;line-height:1.55;white-space:pre-wrap;}
.rc-timeline-muted{color:#94a3b8!important;font-style:italic;}
.rc-timeline-detail-meta{margin-left:0!important;}
@media(max-width:760px){.rc-timeline-dialog form{min-width:92vw}.rc-timeline-head,.rc-timeline-hero{flex-direction:column;align-items:stretch}.rc-timeline-actions,.rc-timeline-legend{justify-content:flex-start}.rc-timeline-stage{width:190px}}

/* === CURRIA v2.2.0-alpha8.2: Timeline Engine / Evolución del Plan === */
.rc-timeline-fullscreen{
  width:min(1280px,96vw)!important;
  max-width:1280px!important;
  height:min(820px,92vh)!important;
  max-height:92vh!important;
  padding:0!important;
  border:0!important;
  border-radius:22px!important;
  overflow:hidden!important;
  box-shadow:0 28px 90px rgba(15,23,42,.32)!important;
}
.rc-timeline-fullscreen form{height:100%;display:flex;flex-direction:column;margin:0;max-width:none!important;min-width:0!important;}
.rc-roadmap-shell{height:100%;display:flex;flex-direction:column;background:#f8fafc;color:#0f172a;}
.rc-roadmap-header{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;padding:26px 30px 20px;background:linear-gradient(135deg,#073b45 0%,#0f766e 56%,#0ea5a4 100%);color:#fff;}
.rc-roadmap-header h2{margin:4px 0 6px;font-size:30px;line-height:1.1;color:#fff;}
.rc-roadmap-header p{margin:0;color:#d9fffb;font-size:14px;line-height:1.45;max-width:760px;}
.rc-roadmap-actions{display:flex;gap:10px;align-items:center;justify-content:flex-end;flex-wrap:wrap;min-width:max-content;}
.rc-roadmap-actions .rc-history-checkpoint-btn{background:#f59e0b!important;border-color:#fbbf24!important;color:#111827!important;box-shadow:0 8px 22px rgba(0,0,0,.16);}
.rc-roadmap-stage{flex:1;display:grid;grid-template-columns:minmax(390px,1.15fr) minmax(360px,.85fr);gap:18px;min-height:0;padding:20px 22px 14px;}
.rc-roadmap-left,.rc-roadmap-right{min-height:0;border:1px solid #dbe4ef;border-radius:20px;background:#fff;box-shadow:0 4px 18px rgba(15,23,42,.06);overflow:hidden;}
.rc-roadmap-left{display:flex;flex-direction:column;}
.rc-roadmap-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid #e2e8f0;background:linear-gradient(180deg,#fff,#f8fafc);}
.rc-roadmap-title-row strong{font-size:16px;color:#0f172a;}
.rc-roadmap-title-row span{font-size:12px;color:#64748b;font-weight:700;}
.rc-roadmap-track{position:relative;display:flex;flex-direction:column;gap:0;padding:18px 18px 24px;overflow:auto;}
.rc-roadmap-track:before{content:"";position:absolute;left:49px;top:30px;bottom:26px;width:4px;border-radius:999px;background:linear-gradient(180deg,#f59e0b,#14b8a6,#3b82f6,#8b5cf6);opacity:.48;}
.rc-roadmap-node{position:relative;display:grid;grid-template-columns:62px 1fr;gap:12px;align-items:center;width:100%;min-height:92px;margin:0 0 10px;padding:13px 14px 13px 0;border:1px solid #e2e8f0;border-radius:18px;background:#fff;text-align:left;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease,background .15s ease;box-shadow:0 2px 10px rgba(15,23,42,.045);}
.rc-roadmap-node:hover{transform:translateX(4px);border-color:#f59e0b;background:#fffbeb;box-shadow:0 14px 28px rgba(15,23,42,.11);}
.rc-roadmap-node.is-selected{border-color:#0f766e;background:linear-gradient(90deg,#ecfeff,#fff);box-shadow:0 14px 32px rgba(15,118,110,.18);}
.rc-roadmap-node-dot{position:relative;z-index:2;grid-column:1;justify-self:center;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:#fff7ed;border:3px solid #f59e0b;font-size:23px;box-shadow:0 0 0 7px #fff;}
.rc-roadmap-node.is-selected .rc-roadmap-node-dot{background:#ccfbf1;border-color:#0f766e;}
.rc-roadmap-node-index{position:absolute;left:16px;top:8px;z-index:3;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:999px;background:#0f766e;color:#fff;font-size:11px;font-weight:900;}
.rc-roadmap-node-body{min-width:0;display:flex;flex-direction:column;gap:4px;}
.rc-roadmap-node-category{width:max-content;max-width:100%;font-size:10px;font-weight:900;letter-spacing:.07em;text-transform:uppercase;color:#0f766e;background:#ecfeff;border:1px solid #a5f3fc;border-radius:999px;padding:4px 8px;}
.rc-roadmap-node strong{font-size:15px;line-height:1.25;color:#0f172a;overflow:hidden;text-overflow:ellipsis;}
.rc-roadmap-node em{font-style:normal;color:#64748b;font-size:12px;font-weight:700;}
.rc-roadmap-connector{display:none;}
.rc-roadmap-right{display:flex;align-items:stretch;justify-content:stretch;background:linear-gradient(180deg,#ffffff,#f8fafc);}
#rcTimelineDetailBox{width:100%;padding:18px;overflow:auto;}
.rc-roadmap-detail-empty{display:flex;min-height:100%;align-items:center;justify-content:center;flex-direction:column;text-align:center;color:#64748b;padding:32px;}
.rc-roadmap-detail-empty div{width:68px;height:68px;border-radius:24px;background:#fff7ed;border:1px solid #fed7aa;display:flex;align-items:center;justify-content:center;font-size:34px;margin-bottom:12px;}
.rc-roadmap-detail-empty h3{margin:0 0 6px;color:#0f172a;font-size:22px;}
.rc-roadmap-detail-card{display:flex;gap:16px;align-items:flex-start;min-height:100%;border:1px solid #dbe4ef;border-radius:20px;background:linear-gradient(135deg,#fffbeb 0%,#fff 42%,#ecfeff 100%);padding:20px;box-shadow:inset 0 1px 0 rgba(255,255,255,.8);}
.rc-roadmap-detail-icon{width:60px;height:60px;border-radius:22px;background:#fff7ed;border:1px solid #fed7aa;display:flex;align-items:center;justify-content:center;font-size:32px;flex:0 0 auto;}
.rc-roadmap-detail-main{min-width:0;flex:1;}
.rc-roadmap-kicker{display:inline-flex;align-items:center;text-transform:uppercase;letter-spacing:.08em;font-size:11px;font-weight:900;color:#0f766e;background:#ecfeff;border:1px solid #a5f3fc;border-radius:999px;padding:5px 9px;margin-bottom:10px;}
.rc-roadmap-detail-main h3{font-size:25px;line-height:1.16;margin:0 0 12px;color:#0f172a;}
.rc-roadmap-detail-main p{font-size:14px;line-height:1.55;color:#334155;margin:0 0 14px;white-space:pre-wrap;}
.rc-roadmap-meta{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 18px;color:#475569;font-size:12px;font-weight:700;}
.rc-roadmap-meta span{border:1px solid #e2e8f0;background:#fff;border-radius:999px;padding:6px 9px;}
.rc-roadmap-detail-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px;}
.rc-roadmap-detail-actions button{border:1px solid #cbd5e1;background:#fff;border-radius:999px;padding:9px 12px;font-weight:800;cursor:pointer;color:#334155;}
.rc-roadmap-detail-actions button.primary{background:#0f766e;border-color:#0f766e;color:#fff;box-shadow:0 8px 18px rgba(15,118,110,.22);}
.rc-roadmap-detail-actions button:disabled{opacity:.55;cursor:not-allowed;box-shadow:none;}
.rc-roadmap-empty{display:flex;flex:1;min-height:360px;align-items:center;justify-content:center;flex-direction:column;text-align:center;border:1px dashed #cbd5e1;border-radius:18px;background:linear-gradient(180deg,#f8fafc,#fff);padding:34px;margin:18px;}
.rc-roadmap-empty h3{font-size:22px;margin:6px 0;color:#0f172a;}
.rc-roadmap-empty p{max-width:560px;color:#64748b;line-height:1.5;margin:0;}
.rc-roadmap-footer{display:flex;justify-content:space-between;gap:16px;padding:10px 24px 0;color:#64748b;font-size:12px;font-weight:700;}
.rc-timeline-fullscreen .dialog-actions{padding:12px 24px 20px;background:#f8fafc;border-top:0;}
@media (max-width:900px){.rc-roadmap-stage{grid-template-columns:1fr;}.rc-roadmap-right{min-height:280px}.rc-roadmap-header{flex-direction:column}.rc-roadmap-actions{justify-content:flex-start}.rc-timeline-fullscreen{height:94vh!important}}

/* === CURRIA v2.2.0-alpha8.6: Timeline UI Final === */
.rc-timeline-fullscreen{
  width:min(1480px,96vw)!important;
  max-width:calc(100vw - 24px)!important;
  height:min(900px,90vh)!important;
  max-height:calc(100vh - 54px)!important;
  transition:none!important;
}
.rc-timeline-fullscreen.is-maximized{
  width:99vw!important;
  max-width:99vw!important;
  height:96vh!important;
  max-height:96vh!important;
  border-radius:14px!important;
}
.rc-roadmap-header{padding:22px 26px 18px!important;align-items:center!important;}
.rc-roadmap-header h2{font-size:28px!important;}
.rc-roadmap-window-actions{display:flex;align-items:center;gap:8px;margin-left:auto;}
.rc-window-btn{width:36px;height:36px;border-radius:12px;border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.14);color:#fff;font-weight:900;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.12);}
.rc-window-btn:hover{background:rgba(255,255,255,.24);transform:translateY(-1px);}
.rc-roadmap-stage{grid-template-columns:minmax(340px,.82fr) minmax(520px,1.18fr)!important;gap:20px!important;padding:20px 24px 16px!important;}
.rc-roadmap-left,.rc-roadmap-right{border-radius:22px!important;}
.rc-roadmap-title-row{padding:14px 16px!important;align-items:center!important;}
.rc-roadmap-title-row>div{display:flex;flex-direction:column;gap:2px;}
.rc-roadmap-title-row .rc-history-checkpoint-btn{padding:8px 12px!important;border-radius:999px!important;font-size:12px!important;white-space:nowrap;}
.rc-roadmap-track{padding:18px 14px 28px 18px!important;gap:0!important;}
.rc-roadmap-track:before{left:45px!important;top:34px!important;bottom:34px!important;width:3px!important;background:linear-gradient(180deg,#0f766e,#3b82f6,#8b5cf6,#f59e0b)!important;opacity:.58!important;}
.rc-roadmap-node{grid-template-columns:54px 1fr!important;min-height:76px!important;margin:0 0 8px!important;padding:10px 12px 10px 0!important;border-radius:16px!important;}
.rc-roadmap-node:hover{transform:translateX(3px)!important;}
.rc-roadmap-node.is-selected{box-shadow:0 12px 30px rgba(15,118,110,.20), inset 4px 0 0 #0f766e!important;}
.rc-roadmap-node-dot{width:38px!important;height:38px!important;font-size:20px!important;box-shadow:0 0 0 6px #fff!important;}
.rc-roadmap-node-index{left:9px!important;top:5px!important;width:20px!important;height:20px!important;font-size:10px!important;}
.rc-roadmap-node-category{font-size:9px!important;padding:3px 7px!important;}
.rc-roadmap-node strong{font-size:14px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.rc-roadmap-node em{font-size:11px!important;}
.rc-roadmap-node.cat-comite .rc-roadmap-node-dot{border-color:#0f766e;background:#ccfbf1;}
.rc-roadmap-node.cat-comite .rc-roadmap-node-category{color:#0f766e;background:#ecfeff;border-color:#99f6e4;}
.rc-roadmap-node.cat-academia .rc-roadmap-node-dot{border-color:#2563eb;background:#dbeafe;}
.rc-roadmap-node.cat-academia .rc-roadmap-node-category{color:#1d4ed8;background:#eff6ff;border-color:#bfdbfe;}
.rc-roadmap-node.cat-consejo .rc-roadmap-node-dot{border-color:#7c3aed;background:#ede9fe;}
.rc-roadmap-node.cat-consejo .rc-roadmap-node-category{color:#6d28d9;background:#f5f3ff;border-color:#ddd6fe;}
.rc-roadmap-node.cat-version .rc-roadmap-node-dot{border-color:#f59e0b;background:#ffedd5;}
.rc-roadmap-node.cat-version .rc-roadmap-node-category{color:#b45309;background:#fffbeb;border-color:#fde68a;}
.rc-roadmap-node.cat-otro .rc-roadmap-node-dot{border-color:#64748b;background:#f1f5f9;}
.rc-roadmap-node.cat-otro .rc-roadmap-node-category{color:#475569;background:#f8fafc;border-color:#cbd5e1;}
#rcTimelineDetailBox{padding:20px!important;}
.rc-roadmap-detail-card{display:grid!important;grid-template-columns:76px 1fr!important;gap:18px!important;padding:24px!important;background:linear-gradient(135deg,#ffffff 0%,#f8fafc 55%,#ecfeff 100%)!important;}
.rc-roadmap-detail-card.cat-comite{border-top:5px solid #0f766e!important;}
.rc-roadmap-detail-card.cat-academia{border-top:5px solid #2563eb!important;}
.rc-roadmap-detail-card.cat-consejo{border-top:5px solid #7c3aed!important;}
.rc-roadmap-detail-card.cat-version{border-top:5px solid #f59e0b!important;}
.rc-roadmap-detail-card.cat-otro{border-top:5px solid #64748b!important;}
.rc-roadmap-detail-icon{width:66px!important;height:66px!important;border-radius:24px!important;font-size:34px!important;}
.rc-roadmap-detail-main h3{font-size:28px!important;margin-bottom:14px!important;}
.rc-roadmap-meta-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin:12px 0 18px;}
.rc-roadmap-meta-cards span{display:flex;flex-direction:column;gap:3px;border:1px solid #e2e8f0;background:#fff;border-radius:16px;padding:11px 12px;color:#64748b;font-size:12px;}
.rc-roadmap-meta-cards strong{font-size:13px;color:#0f172a;font-weight:900;}
.rc-roadmap-description{border:1px solid #e2e8f0;background:#fff;border-radius:18px;padding:15px 16px;margin:10px 0 16px;}
.rc-roadmap-description h4{margin:0 0 8px;color:#0f172a;font-size:14px;}
.rc-roadmap-description p{margin:0!important;}
.rc-roadmap-detail-actions button{padding:10px 14px!important;}
.rc-roadmap-footer{padding:8px 26px 0!important;}
@media (max-width:900px){.rc-roadmap-stage{grid-template-columns:1fr!important}.rc-roadmap-detail-card{grid-template-columns:1fr!important}.rc-roadmap-window-actions{align-self:flex-start}.rc-timeline-fullscreen{height:94vh!important}}

/* CURRIA Modal Window Engine v1 - draggable/resizable for large modules */
dialog.rc-window-managed{
  position:fixed!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  max-width:none!important;
  max-height:none!important;
  overflow:visible!important;
}
dialog.rc-window-managed::backdrop{background:rgba(15,23,42,.34);backdrop-filter:blur(2px);}
dialog.rc-window-managed>form{
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  min-width:0!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:24px!important;
  overflow:hidden!important;
  box-shadow:0 28px 90px rgba(15,23,42,.34)!important;
  display:flex!important;
  flex-direction:column!important;
  background:#f8fafc!important;
}
dialog.rc-window-managed .rc-roadmap-shell{height:100%!important;min-height:0!important;}
dialog.rc-window-managed .rc-roadmap-header{cursor:grab;user-select:none;}
dialog.rc-window-managed .rc-roadmap-header:active{cursor:grabbing;}
dialog.rc-window-managed.is-maximized{
  left:2vw!important;
  top:2vh!important;
  width:96vw!important;
  height:94vh!important;
}
dialog.rc-window-managed.is-maximized .rc-window-resize{display:none!important;}
body.rc-window-dragging,body.rc-window-dragging *{cursor:grabbing!important;user-select:none!important;}
body.rc-window-resizing,body.rc-window-resizing *{user-select:none!important;}
body.rc-window-resizing .rc-window-resize{pointer-events:auto!important;}
.rc-window-resize{position:absolute;z-index:60;display:block;background:transparent;pointer-events:auto;touch-action:none;}
.rc-window-resize-n{left:18px;right:18px;top:-8px;height:16px;cursor:ns-resize;}
.rc-window-resize-s{left:18px;right:18px;bottom:-8px;height:16px;cursor:ns-resize;}
.rc-window-resize-e{top:18px;bottom:18px;right:-8px;width:16px;cursor:ew-resize;}
.rc-window-resize-w{top:18px;bottom:18px;left:-8px;width:16px;cursor:ew-resize;}
.rc-window-resize-ne{right:-10px;top:-10px;width:26px;height:26px;cursor:nesw-resize;}
.rc-window-resize-nw{left:-10px;top:-10px;width:26px;height:26px;cursor:nwse-resize;}
.rc-window-resize-se{right:-12px;bottom:-12px;width:30px;height:30px;cursor:nwse-resize;}
.rc-window-resize-sw{left:-10px;bottom:-10px;width:26px;height:26px;cursor:nesw-resize;}
.rc-window-resize-se::after{
  content:"";position:absolute;right:6px;bottom:6px;width:12px;height:12px;
  border-right:3px solid rgba(15,118,110,.55);border-bottom:3px solid rgba(15,118,110,.55);border-radius:0 0 5px 0;
}
@media(max-width:760px){
 dialog.rc-window-managed{left:3vw!important;top:3vh!important;width:94vw!important;height:92vh!important;}
 .rc-window-resize{display:none!important;}
}


/* === CURRIA v2.2.0-alpha8.7.3: límites más amplios para ventanas redimensionables === */
dialog.rc-window-managed.rc-timeline-fullscreen{
  max-width:calc(100vw - 24px)!important;
  max-height:calc(100vh - 54px)!important;
}
dialog.rc-window-managed.rc-timeline-fullscreen:not(.is-maximized){
  min-width:min(720px, calc(100vw - 24px))!important;
}


/* === CURRIA v2.2.0-alpha8.7.4: ventana inicial normal y resize real === */
dialog.rc-window-managed.rc-timeline-fullscreen:not(.is-maximized){
  width: min(1180px, 82vw) !important;
  height: min(760px, 82vh) !important;
  max-width: calc(100vw - 24px) !important;
  max-height: calc(100vh - 54px) !important;
}
dialog.rc-window-managed.rc-timeline-fullscreen.is-maximized{
  left: 2vw !important;
  top: 2vh !important;
  width: 96vw !important;
  height: 94vh !important;
}

/* === CURRIA v2.2.0-alpha9: Compare Engine básico de Hitos === */
.rc-compare-dialog{max-width:1120px;width:min(1120px,94vw)}
.rc-compare-controls{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end;margin:14px 0 18px}
.rc-compare-controls label{display:flex;flex-direction:column;gap:6px;font-weight:700;color:#334155;font-size:13px}
.rc-compare-controls select{min-height:38px;border:1px solid #cbd5e1;border-radius:10px;padding:8px 10px;background:white;color:#0f172a;min-width:0}
.rc-compare-controls .primary{height:38px;border:0;border-radius:10px;padding:0 16px;background:#2563eb;color:white;font-weight:800;cursor:pointer;box-shadow:0 8px 20px rgba(37,99,235,.18)}
.rc-compare-placeholder{border:1px dashed #cbd5e1;border-radius:14px;padding:26px;text-align:center;background:#f8fafc;color:#64748b}
.rc-compare-placeholder.error{color:#b91c1c;background:#fef2f2;border-color:#fecaca}
.rc-compare-results{display:flex;flex-direction:column;gap:14px}
.rc-compare-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;background:linear-gradient(135deg,#0f172a,#1e3a8a);color:white;border-radius:16px;padding:16px 18px;box-shadow:0 16px 34px rgba(15,23,42,.18)}
.rc-compare-heading span{font-size:12px;text-transform:uppercase;letter-spacing:.08em;opacity:.78}.rc-compare-heading h3{margin:3px 0 0;font-size:20px}.rc-compare-heading h3 em{font-style:normal;opacity:.7;font-size:15px}.rc-compare-heading strong{white-space:nowrap;background:rgba(255,255,255,.14);padding:8px 12px;border-radius:999px}
.rc-compare-summary{display:flex;flex-wrap:wrap;gap:8px}.rc-compare-summary span{border-radius:999px;padding:7px 10px;font-weight:800;font-size:12px;background:#f8fafc;border:1px solid #e2e8f0}.rc-compare-summary .add{color:#047857}.rc-compare-summary .remove{color:#b91c1c}.rc-compare-summary .move{color:#a16207}.rc-compare-summary .core{color:#1d4ed8}.rc-compare-summary .credits{color:#7e22ce}
.rc-compare-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.rc-compare-grid section{border:1px solid #e2e8f0;border-radius:14px;background:white;padding:14px;box-shadow:0 8px 22px rgba(15,23,42,.06)}.rc-compare-grid section:last-child{grid-column:1/-1}.rc-compare-grid h4{margin:0 0 10px;font-size:15px;color:#0f172a}.rc-compare-grid ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.rc-compare-grid li{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;border:1px solid #f1f5f9;background:#f8fafc;border-radius:10px;padding:9px 10px}.rc-compare-grid li strong{color:#0f172a}.rc-compare-grid li span{font-size:12px;color:#475569;text-align:right;white-space:nowrap}.rc-compare-empty{color:#64748b;font-size:13px;background:#f8fafc;border-radius:10px;padding:10px;border:1px dashed #e2e8f0}
@media(max-width:800px){.rc-compare-controls{grid-template-columns:1fr}.rc-compare-grid{grid-template-columns:1fr}.rc-compare-grid section:last-child{grid-column:auto}.rc-compare-heading{flex-direction:column}.rc-compare-grid li{flex-direction:column}.rc-compare-grid li span{text-align:left;white-space:normal}}

/* CURRIA v2.3.0-alpha9.1 - Compare UI Engine */
.rc-roadmap-node{position:relative;display:block!important;padding:0!important;overflow:visible!important;}
.rc-roadmap-node-main{position:relative;display:grid;grid-template-columns:54px 1fr;gap:12px;align-items:center;width:100%;min-height:76px;padding:10px 48px 10px 0;border:0;background:transparent;text-align:left;cursor:pointer;color:inherit;}
.rc-roadmap-node-main:hover{background:transparent;}
.rc-compare-pick{position:absolute;right:10px;top:50%;transform:translateY(-50%);z-index:5;display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:10px;border:1px solid #cbd5e1;background:#fff;color:#334155;font-size:16px;font-weight:900;cursor:pointer;box-shadow:0 1px 4px rgba(15,23,42,.08);}
.rc-compare-pick:hover{border-color:#0f766e;background:#ecfeff;color:#0f766e;}
.rc-compare-pick.is-checked{background:#0f766e;color:white;border-color:#0f766e;box-shadow:0 6px 16px rgba(15,118,110,.25);}
.rc-roadmap-node.is-compare-selected{border-color:#2563eb!important;background:linear-gradient(90deg,#eff6ff,#fff)!important;box-shadow:0 12px 28px rgba(37,99,235,.14), inset 4px 0 0 #2563eb!important;}
.rc-compare-select-help{margin:10px 0 12px;padding:10px 12px;border-radius:14px;background:linear-gradient(90deg,#f8fafc,#eff6ff);border:1px solid #dbeafe;color:#334155;display:flex;flex-direction:column;gap:2px;font-size:12px;}
.rc-compare-select-help strong{color:#1e3a8a;font-size:13px;}
.rc-compare-selection-bar{margin:12px 0 0;padding:11px;border-radius:14px;background:#0f172a;color:#e2e8f0;display:flex;gap:10px;align-items:center;justify-content:space-between;min-height:44px;font-size:12px;}
.rc-compare-selection-bar span{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.rc-compare-selection-bar strong{color:#fff;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.14);padding:4px 8px;border-radius:999px;}
.rc-compare-selection-bar em{font-style:normal;color:#93c5fd;font-weight:900;}
.rc-compare-selection-bar small{color:#cbd5e1;}
.rc-compare-selection-bar button{border:0;border-radius:999px;padding:8px 12px;font-weight:900;cursor:pointer;background:#22c55e;color:#052e16;box-shadow:0 6px 16px rgba(34,197,94,.25);}
.rc-compare-mode-panel{height:100%;display:flex;flex-direction:column;gap:12px;}
.rc-compare-mode-kicker{display:inline-flex;align-self:flex-start;align-items:center;gap:6px;padding:7px 11px;border-radius:999px;background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;}
.rc-compare-mode-actions{display:flex;gap:10px;margin-top:4px;}
.rc-compare-mode-actions button{border:1px solid #cbd5e1;border-radius:12px;background:#fff;padding:9px 12px;font-weight:800;cursor:pointer;}
.rc-compare-mode-actions button:hover:not(:disabled){background:#f8fafc;border-color:#0f766e;color:#0f766e;}
.rc-compare-mode-actions button:disabled{opacity:.55;cursor:not-allowed;}
.rc-compare-results{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:16px;box-shadow:0 12px 28px rgba(15,23,42,.08);}
.rc-compare-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px;}
.rc-compare-heading span{font-size:11px;font-weight:900;color:#0f766e;text-transform:uppercase;letter-spacing:.08em;}
.rc-compare-heading h3{margin:4px 0 0;font-size:18px;color:#0f172a;}
.rc-compare-heading h3 em{font-style:normal;color:#64748b;font-size:14px;margin:0 6px;}
.rc-compare-heading>strong{white-space:nowrap;background:#0f172a;color:#fff;border-radius:999px;padding:8px 12px;font-size:13px;}
.rc-compare-summary{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 14px;}
.rc-compare-summary span{border-radius:999px;padding:6px 9px;font-size:12px;font-weight:900;background:#f8fafc;border:1px solid #e2e8f0;}
.rc-compare-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;}
.rc-compare-grid section{border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc;padding:12px;min-height:110px;}
.rc-compare-grid h4{margin:0 0 8px;font-size:13px;color:#0f172a;}
.rc-compare-grid ul{margin:0;padding-left:16px;display:flex;flex-direction:column;gap:8px;}
.rc-compare-grid li strong{display:block;font-size:13px;color:#0f172a;}
.rc-compare-grid li span{display:block;font-size:12px;color:#64748b;margin-top:2px;}
.rc-compare-empty{font-size:12px;color:#64748b;background:#fff;border:1px dashed #cbd5e1;border-radius:12px;padding:10px;}

/* CURRIA v2.3.0-alpha9.2 - Compare UI polish */
.rc-timeline-dialog .rc-timeline-label{letter-spacing:.08em;text-transform:uppercase;opacity:.9}
.rc-new-hito-compact{font-size:12px;padding:8px 13px!important;border-radius:999px!important}
.rc-roadmap-node.is-compare-selected{box-shadow:0 0 0 2px rgba(37,99,235,.22),0 12px 26px rgba(37,99,235,.12)!important;border-color:#2563eb!important}
.rc-roadmap-node.is-compare-selected .rc-roadmap-node-main{background:linear-gradient(90deg,#eff6ff,#f8fafc)}
.rc-compare-pick{font-family:system-ui,-apple-system,Segoe UI,sans-serif!important;border-radius:999px!important;min-width:34px!important;width:auto!important;height:32px!important;padding:0 9px!important;font-size:13px!important;background:#fff!important;color:#0f172a!important;transition:transform .12s ease,box-shadow .12s ease,background .12s ease!important}
.rc-compare-pick:hover{transform:translateY(-50%) scale(1.05)!important}
.rc-compare-pick.is-checked{color:#fff!important;border-color:transparent!important;box-shadow:0 8px 18px rgba(15,23,42,.20)!important}
.rc-compare-pick.is-a{background:#2563eb!important}
.rc-compare-pick.is-b{background:#7c3aed!important}
.rc-compare-selection-bar{background:linear-gradient(90deg,#0f172a,#111827)!important;border:1px solid rgba(255,255,255,.08)}
.rc-ab-chip{display:inline-flex;align-items:center;gap:5px;color:white!important;border:1px solid rgba(255,255,255,.12)!important}
.rc-ab-chip.a{background:#2563eb!important}.rc-ab-chip.b{background:#7c3aed!important}
.rc-compare-results-v2{background:#fff!important;border:1px solid #e2e8f0!important;border-radius:20px!important;padding:16px!important;box-shadow:0 14px 34px rgba(15,23,42,.08)!important}
.rc-compare-hero{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:18px 20px;border-radius:20px;background:linear-gradient(135deg,#0f766e,#1e3a8a);color:#fff;box-shadow:0 18px 34px rgba(15,118,110,.22);margin-bottom:14px}
.rc-compare-hero-left span{display:block;text-transform:uppercase;letter-spacing:.1em;font-size:11px;font-weight:900;opacity:.85}
.rc-compare-hero-left h3{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:5px 0 4px;font-size:20px;line-height:1.25}
.rc-compare-hero-left h3 b{font-weight:900}.rc-compare-hero-left h3 em{font-style:normal;opacity:.8;font-size:20px}.rc-compare-hero-left p{margin:0;color:rgba(255,255,255,.86);font-size:12px}
.rc-compare-diff-total{min-width:116px;border-radius:18px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.20);padding:12px;text-align:center}
.rc-compare-diff-total strong{display:block;font-size:32px;line-height:1;font-weight:950}.rc-compare-diff-total span{font-size:12px;text-transform:uppercase;letter-spacing:.06em;font-weight:900;opacity:.9}
.rc-compare-dashboard{display:grid;grid-template-columns:repeat(5,minmax(110px,1fr));gap:10px;margin:12px 0 16px}
.rc-compare-metric{border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc;padding:12px 10px;text-align:center;box-shadow:0 8px 18px rgba(15,23,42,.04)}
.rc-compare-metric strong{display:block;font-size:26px;line-height:1;font-weight:950;color:#0f172a}.rc-compare-metric span{display:block;margin-top:5px;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;color:#475569}
.rc-compare-metric.add{border-color:#bbf7d0;background:#f0fdf4}.rc-compare-metric.remove{border-color:#fecdd3;background:#fff1f2}.rc-compare-metric.move{border-color:#fde68a;background:#fffbeb}.rc-compare-metric.core{border-color:#bfdbfe;background:#eff6ff}.rc-compare-metric.credits{border-color:#ddd6fe;background:#f5f3ff}
.rc-compare-grid section{position:relative;overflow:hidden}.rc-compare-grid section:before{content:'';position:absolute;left:0;top:0;bottom:0;width:5px;background:#cbd5e1}.rc-compare-grid section.add:before{background:#22c55e}.rc-compare-grid section.remove:before{background:#f43f5e}.rc-compare-grid section.move:before{background:#f59e0b}.rc-compare-grid section.core:before{background:#3b82f6}.rc-compare-grid section.credits:before{background:#8b5cf6}
@media(max-width:1100px){.rc-compare-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}.rc-compare-hero{flex-direction:column;align-items:flex-start}.rc-compare-diff-total{align-self:stretch}}


/* CURRIA v2.3.0-alpha9.4 - Compare UI selector refinements */
.rc-compare-pick{
  width:26px!important;
  min-width:26px!important;
  height:26px!important;
  padding:0!important;
  border-radius:999px!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:950!important;
  background:#fff!important;
  color:#64748b!important;
  border:1px solid #cbd5e1!important;
  box-shadow:0 2px 8px rgba(15,23,42,.08)!important;
}
.rc-compare-pick:hover{
  transform:translateY(-50%) scale(1.04)!important;
  background:#f8fafc!important;
  border-color:#94a3b8!important;
}
.rc-compare-pick.is-checked{
  color:#fff!important;
  border-color:transparent!important;
  box-shadow:0 8px 18px rgba(15,23,42,.20)!important;
}
.rc-compare-pick.is-a{background:#2563eb!important;}
.rc-compare-pick.is-b{background:#7c3aed!important;}
.rc-compare-pick.is-checked::before{content:'';}
.rc-compare-selection-bar{gap:12px!important;}
.rc-compare-breadcrumb{display:flex;align-items:center;gap:8px;min-width:0;}
.rc-ab-chip{display:inline-flex!important;align-items:center!important;gap:7px!important;border-radius:999px!important;padding:5px 9px!important;font-size:12px!important;font-weight:900!important;white-space:nowrap!important;}
.rc-ab-chip span{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:20px!important;height:20px!important;border-radius:50%!important;background:rgba(255,255,255,.22)!important;color:#fff!important;font-size:11px!important;line-height:1!important;}
.rc-ab-chip.a{background:#2563eb!important;color:#fff!important;}
.rc-ab-chip.b{background:#7c3aed!important;color:#fff!important;}
.rc-compare-selection-bar em{font-size:15px!important;color:#bfdbfe!important;}
.rc-roadmap-node.is-compare-selected .rc-compare-pick{transform:translateY(-50%) scale(1.03)!important;}


/* CURRIA v2.3.0-alpha9.5 - Compare UI final polish */
.rc-timeline-left-tools{
  display:flex;
  justify-content:flex-start;
  padding:10px 16px 6px;
  border-bottom:1px solid rgba(226,232,240,.75);
  background:linear-gradient(180deg,#ffffff,#f8fafc);
}
.rc-timeline-left-tools .rc-new-hito-compact{
  padding:8px 14px!important;
  font-size:12px!important;
  box-shadow:0 7px 16px rgba(245,158,11,.18)!important;
}
.rc-roadmap-title-row .rc-new-hito-compact{display:none!important;}
.rc-compare-pick{
  min-width:82px!important;
  width:auto!important;
  height:26px!important;
  padding:0 10px!important;
  border-radius:999px!important;
  font-size:11px!important;
  font-weight:900!important;
  letter-spacing:.01em!important;
  background:#fff!important;
  color:#475569!important;
  border:1px solid #cbd5e1!important;
  box-shadow:0 2px 8px rgba(15,23,42,.07)!important;
}
.rc-compare-pick:hover{
  transform:translateY(-50%) scale(1.02)!important;
  background:#eff6ff!important;
  border-color:#60a5fa!important;
  color:#1d4ed8!important;
}
.rc-compare-pick.is-checked{
  min-width:24px!important;
  width:24px!important;
  height:24px!important;
  padding:0!important;
  font-size:11px!important;
  color:#fff!important;
  border-color:transparent!important;
  box-shadow:0 6px 14px rgba(15,23,42,.18)!important;
}
.rc-compare-pick.is-a{background:#2563eb!important;}
.rc-compare-pick.is-b{background:#7c3aed!important;}
.rc-roadmap-node-main{padding-right:104px!important;}
.rc-roadmap-node.is-compare-selected .rc-roadmap-node-main{padding-right:48px!important;}
.rc-roadmap-node.is-compare-selected .rc-compare-pick{transform:translateY(-50%) scale(1.00)!important;}
.rc-compare-selection-bar{
  padding:12px 14px!important;
  gap:14px!important;
  align-items:center!important;
}
.rc-compare-breadcrumb{
  flex:1 1 auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  min-width:0!important;
}
.rc-compare-selection-bar em{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:28px!important;
  min-width:28px!important;
  height:22px!important;
  border-radius:999px!important;
  background:rgba(147,197,253,.14)!important;
  color:#bfdbfe!important;
  font-size:14px!important;
}
.rc-ab-chip{
  padding:5px 10px!important;
  gap:7px!important;
  max-width:145px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.rc-ab-chip span{
  width:18px!important;
  height:18px!important;
  font-size:10px!important;
  flex:0 0 auto!important;
}
@media(max-width:900px){
  .rc-compare-pick{min-width:72px!important;font-size:10px!important;}
  .rc-roadmap-node-main{padding-right:92px!important;}
  .rc-compare-selection-bar{flex-direction:column!important;align-items:stretch!important;}
  .rc-compare-selection-bar button{width:100%!important;}
}

/* CURRIA v2.3.0-alpha9.6 - Pulido final Compare UI Engine */
.rc-compare-pick{
  min-width:26px!important;
  width:auto!important;
  height:24px!important;
  padding:0 7px!important;
  border-radius:999px!important;
  font-size:10.5px!important;
  line-height:1!important;
  font-weight:900!important;
  box-shadow:0 3px 9px rgba(15,23,42,.12)!important;
}
.rc-compare-pick:not(.is-checked){
  min-width:62px!important;
  height:24px!important;
  padding:0 8px!important;
  font-size:10px!important;
  background:#fff!important;
  border-color:#cbd5e1!important;
  color:#334155!important;
}
.rc-compare-pick.is-a,
.rc-compare-pick.is-b{
  min-width:24px!important;
  width:24px!important;
  height:24px!important;
  padding:0!important;
  font-size:11px!important;
  box-shadow:0 5px 13px rgba(15,23,42,.18)!important;
}
.rc-compare-selection-bar{
  padding:10px 12px!important;
  min-height:46px!important;
  border-radius:16px!important;
  gap:12px!important;
}
.rc-compare-selection-bar button,
#btnRunInlineCompare{
  min-height:38px!important;
  padding:10px 18px!important;
  border-radius:999px!important;
  font-size:12px!important;
  font-weight:950!important;
  letter-spacing:.01em!important;
  box-shadow:0 8px 18px rgba(34,197,94,.28)!important;
  transform:translateZ(0);
}
.rc-compare-selection-bar button:hover,
#btnRunInlineCompare:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(34,197,94,.34)!important;
}
.rc-compare-breadcrumb{
  gap:10px!important;
  align-items:center!important;
}
.rc-compare-selection-bar .rc-ab-chip{
  padding:5px 9px!important;
  border-radius:999px!important;
  line-height:1!important;
}
.rc-compare-selection-bar .rc-ab-chip span{
  min-width:16px!important;
  height:16px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin-right:5px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.22)!important;
  font-size:10px!important;
}
.rc-compare-selection-bar em{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:22px!important;
  font-size:15px!important;
  color:#bfdbfe!important;
}
.rc-compare-hero-final .rc-compare-hero-left span{
  font-size:11px!important;
  letter-spacing:.12em!important;
}
.rc-compare-hero-final .rc-compare-hero-left h3{
  gap:9px!important;
  margin-top:6px!important;
}
.rc-ab-letter{
  display:inline-flex;
  width:18px;
  height:18px;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  font-size:11px;
  font-weight:950;
  color:#fff;
  vertical-align:middle;
}
.rc-ab-letter.a{background:#2563eb;}
.rc-ab-letter.b{background:#7c3aed;}
.rc-compare-diff-total{
  transform:translateZ(0);
}
.rc-compare-metric{
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.rc-compare-metric:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 24px rgba(15,23,42,.10);
}

/* CURRIA v2.3.0-alpha10 - Visual Compare Engine */
.rc-compare-metric{appearance:none;border:1px solid transparent;cursor:pointer;font:inherit;text-align:center;transition:transform .14s ease, box-shadow .14s ease, filter .14s ease;}
.rc-compare-metric:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(15,23,42,.14);filter:brightness(1.02)}
.rc-compare-grid section[data-vc-kind]{cursor:pointer;transition:transform .14s ease, box-shadow .14s ease;}
.rc-compare-grid section[data-vc-kind]:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(15,23,42,.13)}
.rc-visual-compare-banner{position:fixed;left:18px;right:18px;bottom:48px;z-index:9998;display:flex;align-items:center;justify-content:space-between;gap:16px;background:linear-gradient(135deg,#0f172a,#164e63);color:#fff;border:1px solid rgba(255,255,255,.16);border-radius:16px;padding:12px 16px;box-shadow:0 16px 38px rgba(15,23,42,.38);font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;}
.rc-visual-compare-banner>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.rc-visual-compare-banner strong{font-size:13px;text-transform:uppercase;letter-spacing:.08em}
.rc-visual-compare-banner span{font-size:13px;opacity:.95;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rc-visual-compare-banner button{border:1px solid rgba(255,255,255,.35);background:#fff;color:#0f172a;border-radius:999px;padding:8px 13px;font-weight:800;cursor:pointer;white-space:nowrap}
.card.rc-vc-card{z-index:80;transform:translateY(-1px);box-shadow:0 0 0 4px rgba(255,255,255,.74),0 12px 28px rgba(15,23,42,.24)!important;outline-offset:3px!important;}
.card.rc-vc-card::after{content:attr(data-compare-label);position:absolute;left:10px;right:10px;bottom:-15px;z-index:5;border-radius:999px;padding:3px 7px;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;font-size:11px;font-weight:900;letter-spacing:.01em;text-align:center;color:#111827;background:#fff;border:1px solid rgba(15,23,42,.16);box-shadow:0 5px 12px rgba(15,23,42,.2)}
.card.rc-vc-moved{outline:5px solid #fbbf24!important;}
.card.rc-vc-moved::after{background:#fffbeb;border-color:#f59e0b;color:#92400e}
.card.rc-vc-added{outline:5px solid #22c55e!important;}
.card.rc-vc-added::after{background:#ecfdf5;border-color:#22c55e;color:#166534}
.card.rc-vc-removed{outline:5px solid #f43f5e!important;filter:grayscale(.15) brightness(.95);}
.card.rc-vc-removed::after{background:#fff1f2;border-color:#f43f5e;color:#9f1239}
.card.rc-vc-core{outline:5px solid #3b82f6!important;}
.card.rc-vc-core::after{background:#eff6ff;border-color:#3b82f6;color:#1d4ed8}
.card.rc-vc-credits{outline:5px solid #8b5cf6!important;}
.card.rc-vc-credits::after{background:#f5f3ff;border-color:#8b5cf6;color:#6d28d9}
body.rc-visual-compare-active .footer{padding-bottom:54px}
body.rc-visual-compare-active .curriculum{padding-bottom:150px}
@media(max-width:900px){.rc-visual-compare-banner{left:8px;right:8px;bottom:42px;align-items:flex-start;flex-direction:column}.rc-visual-compare-banner span{white-space:normal}}
/* CURRIA v2.3.0-alpha10.1 - Visual Compare Engine: acciones claras */
.rc-compare-metric[data-vc-kind],
.rc-compare-grid section[data-vc-kind]{cursor:pointer;}
.rc-compare-metric[data-vc-kind]:hover{filter:brightness(.98);transform:translateY(-1px);}
.rc-compare-grid section[data-vc-kind]::after{content:'Ver en malla';display:inline-flex;margin-top:8px;font-size:11px;font-weight:800;color:#0f766e;background:#ecfeff;border:1px solid #99f6e4;border-radius:999px;padding:4px 9px;}
#btnRunInlineCompare{min-width:168px;}

/* CURRIA v2.3.0-alpha10.2 - Visual Compare conectado */
.card.rc-vc-pulse{animation:rcVcPulse 1.2s ease-in-out 1;}
@keyframes rcVcPulse{0%{transform:scale(1);filter:brightness(1)}35%{transform:scale(1.045);filter:brightness(1.08)}100%{transform:scale(1);filter:brightness(1)}}
.rc-visual-compare-banner{bottom:62px;}

/* CURRIA v2.3.0-alpha10.3 - Visual Compare prominente */
.rc-visual-compare-banner{
  top:104px!important;
  bottom:auto!important;
  left:18px!important;
  right:18px!important;
  z-index:9998;
  display:grid!important;
  grid-template-columns:minmax(280px,1fr) auto;
  align-items:center;
  gap:18px;
  background:linear-gradient(135deg,#78350f 0%,#92400e 22%,#0f766e 72%,#0f172a 100%)!important;
  border:1px solid rgba(255,255,255,.22)!important;
  border-radius:18px!important;
  padding:14px 16px!important;
  box-shadow:0 20px 50px rgba(15,23,42,.34)!important;
}
.rc-vc-banner-main{display:flex;flex-direction:column;gap:3px;min-width:0;color:#fff}
.rc-vc-kicker{font-size:12px;font-weight:950;letter-spacing:.12em;text-transform:uppercase;opacity:.92}
.rc-vc-title{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:950;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rc-vc-title strong{font-size:18px!important;text-transform:none!important;letter-spacing:0!important;max-width:260px;overflow:hidden;text-overflow:ellipsis}
.rc-vc-title span{opacity:.9;font-size:22px;font-weight:900}
.rc-vc-subtitle{font-size:13px;opacity:.95;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rc-vc-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.rc-vc-kind-btn{border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.13);color:#fff;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:900;cursor:pointer;display:inline-flex;align-items:center;gap:6px;box-shadow:inset 0 1px 0 rgba(255,255,255,.22);transition:transform .12s ease, background .12s ease, box-shadow .12s ease}
.rc-vc-kind-btn:hover{transform:translateY(-1px);background:rgba(255,255,255,.22)}
.rc-vc-kind-btn.is-active{background:#fff;color:#0f172a;box-shadow:0 9px 20px rgba(15,23,42,.22)}
.rc-vc-kind-btn b{min-width:18px;height:18px;border-radius:999px;background:rgba(15,23,42,.18);display:inline-flex;align-items:center;justify-content:center;font-size:11px;padding:0 5px}
.rc-vc-kind-btn.is-active b{background:#0f766e;color:#fff}
.rc-vc-exit{border:0!important;background:#fff!important;color:#0f172a!important;border-radius:999px!important;padding:8px 13px!important;font-weight:950!important;cursor:pointer!important;box-shadow:0 8px 18px rgba(15,23,42,.2)!important}
body.rc-visual-compare-active #curriculum .card:not(.rc-vc-card){opacity:.28;filter:saturate(.35) grayscale(.18);transition:opacity .18s ease,filter .18s ease}
body.rc-visual-compare-active #curriculum .semester{background:rgba(15,23,42,.05)}
body.rc-visual-compare-active #curriculum{padding-top:88px!important;padding-bottom:30px!important}
body.rc-visual-compare-active .footer{padding-bottom:0!important}
.card.rc-vc-card{opacity:1!important;filter:none!important;transform:translateY(-2px) scale(1.018)!important;box-shadow:0 0 0 6px rgba(255,255,255,.94),0 20px 44px rgba(15,23,42,.36)!important}
.card.rc-vc-card::before{content:'Visual Compare';position:absolute;top:-12px;left:10px;z-index:8;border-radius:999px;padding:3px 8px;background:#0f172a;color:#fff;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;font-size:10px;font-weight:950;letter-spacing:.06em;text-transform:uppercase;box-shadow:0 6px 14px rgba(15,23,42,.24)}
.card.rc-vc-card::after{bottom:-18px!important;font-size:12px!important;padding:4px 9px!important}
.card.rc-vc-moved::before{content:'🟡 Movida'}
.card.rc-vc-added::before{content:'🟢 Agregada'}
.card.rc-vc-removed::before{content:'🔴 Eliminada'}
.card.rc-vc-core::before{content:'🔵 Cambio de Core'}
.card.rc-vc-credits::before{content:'🟣 Créditos'}
@media(max-width:1100px){.rc-visual-compare-banner{grid-template-columns:1fr;top:86px!important}.rc-vc-toolbar{justify-content:flex-start}.rc-vc-title{white-space:normal}.rc-vc-subtitle{white-space:normal}body.rc-visual-compare-active #curriculum{padding-top:160px!important}}


/* CURRIA v2.3.0-alpha10.4 - Visual Compare UX claro */
.rc-visual-compare-banner{
  top:92px!important;
  bottom:auto!important;
  left:14px!important;
  right:14px!important;
  display:grid!important;
  grid-template-columns:minmax(260px,1fr) auto!important;
  align-items:center!important;
  gap:12px!important;
  padding:9px 12px!important;
  border-radius:14px!important;
  min-height:64px!important;
  background:linear-gradient(135deg,#0f766e 0%,#0f172a 100%)!important;
  box-shadow:0 16px 36px rgba(15,23,42,.28)!important;
}
.rc-vc-kicker{font-size:11px!important;letter-spacing:.14em!important;}
.rc-vc-title{font-size:16px!important;gap:8px!important;}
.rc-vc-title strong{font-size:16px!important;max-width:210px!important;}
.rc-vc-title span{font-size:18px!important;}
.rc-vc-subtitle{font-size:12px!important;}
.rc-vc-toolbar{gap:6px!important;}
.rc-vc-kind-btn{padding:6px 9px!important;font-size:11px!important;}
.rc-vc-exit{padding:7px 12px!important;font-size:12px!important;}
body.rc-visual-compare-active #curriculum{padding-top:76px!important;background:rgba(15,23,42,.05)!important;}
body.rc-visual-compare-active #curriculum .card:not(.rc-vc-card){opacity:.22!important;filter:saturate(.25) grayscale(.25) brightness(.92)!important;}
body.rc-visual-compare-active #curriculum .semester{position:relative;background:rgba(15,23,42,.08)!important;border-color:rgba(15,23,42,.16)!important;}
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-origin,
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-dest{
  background:rgba(255,251,235,.86)!important;
  border:2px solid rgba(245,158,11,.72)!important;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.75),0 8px 22px rgba(245,158,11,.16)!important;
}
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-origin::before,
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-dest::before{
  content:attr(data-vc-sem-badge);
  position:absolute;
  left:92px;
  top:-11px;
  z-index:30;
  border-radius:999px;
  padding:4px 10px;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  font-size:11px;
  line-height:1;
  font-weight:950;
  letter-spacing:.08em;
  color:#78350f;
  background:#fef3c7;
  border:1px solid #f59e0b;
  box-shadow:0 6px 14px rgba(146,64,14,.18);
}
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-dest::before{
  color:#064e3b;background:#d1fae5;border-color:#10b981;
}
.card.rc-vc-card{
  opacity:1!important;
  filter:none!important;
  z-index:120!important;
  transform:translateY(-3px) scale(1.055)!important;
  box-shadow:0 0 0 7px rgba(255,255,255,.98),0 0 0 12px rgba(251,191,36,.24),0 24px 52px rgba(15,23,42,.42)!important;
}
.card.rc-vc-card .name{font-weight:900!important;text-shadow:none!important;}
.card.rc-vc-card .code{font-weight:950!important;}
.card.rc-vc-moved{
  background:linear-gradient(135deg,#fef3c7 0%,#fde68a 48%,#fbbf24 100%)!important;
  color:#3b2502!important;
  border:3px solid #f59e0b!important;
  outline:5px solid #facc15!important;
}
.card.rc-vc-core{background:linear-gradient(135deg,#dbeafe,#93c5fd)!important;color:#0f172a!important;border:3px solid #2563eb!important;}
.card.rc-vc-added{background:linear-gradient(135deg,#dcfce7,#86efac)!important;color:#064e3b!important;border:3px solid #16a34a!important;}
.card.rc-vc-removed{background:linear-gradient(135deg,#ffe4e6,#fb7185)!important;color:#450a0a!important;border:3px solid #e11d48!important;}
.card.rc-vc-credits{background:linear-gradient(135deg,#f3e8ff,#c4b5fd)!important;color:#2e1065!important;border:3px solid #7c3aed!important;}
.card.rc-vc-card::before{
  top:-20px!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  font-size:12px!important;
  padding:5px 12px!important;
  border-radius:999px!important;
}
.card.rc-vc-origin-card::before{content:'🟡 ORIGEN'!important;background:#92400e!important;color:#fff!important;}
.card.rc-vc-dest-card::before{content:'🟢 DESTINO'!important;background:#047857!important;color:#fff!important;}
.card.rc-vc-moved:not(.rc-vc-origin-card):not(.rc-vc-dest-card)::before{content:'🟡 MATERIA MOVIDA'!important;background:#92400e!important;color:#fff!important;}
.card.rc-vc-card::after{
  bottom:-24px!important;
  left:6px!important;
  right:6px!important;
  padding:6px 10px!important;
  font-size:12px!important;
  border-width:2px!important;
}
.card.rc-vc-card[data-compare-role]::after{content:attr(data-compare-role) ' · ' attr(data-compare-label)!important;}
.card.rc-vc-pulse{animation:rcVcPulseStrong 1.25s ease-in-out 1!important;}
@keyframes rcVcPulseStrong{0%{transform:scale(1)}35%{transform:scale(1.09);box-shadow:0 0 0 10px rgba(250,204,21,.42),0 28px 62px rgba(15,23,42,.46)}100%{transform:translateY(-3px) scale(1.055)}}
@media(max-width:1100px){
 .rc-visual-compare-banner{top:84px!important;grid-template-columns:1fr!important;}
 body.rc-visual-compare-active #curriculum{padding-top:150px!important;}
}

/* CURRIA v2.3.0-alpha10.5 - Visual Compare UX final compacto */
.rc-visual-compare-banner{
  top:82px!important;
  left:12px!important;
  right:12px!important;
  min-height:0!important;
  height:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:8px 12px!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,#0f766e 0%,#0f172a 100%)!important;
  box-shadow:0 14px 34px rgba(15,23,42,.26)!important;
}
.rc-visual-compare-banner .rc-vc-banner-main{
  flex:0 1 430px!important;
  gap:1px!important;
  min-width:260px!important;
}
.rc-visual-compare-banner .rc-vc-kicker{
  font-size:10px!important;
  line-height:1.05!important;
  letter-spacing:.13em!important;
}
.rc-visual-compare-banner .rc-vc-title{
  font-size:15px!important;
  line-height:1.12!important;
  gap:7px!important;
}
.rc-visual-compare-banner .rc-vc-title strong{
  font-size:15px!important;
  max-width:170px!important;
}
.rc-visual-compare-banner .rc-vc-title span{
  font-size:16px!important;
}
.rc-visual-compare-banner .rc-vc-subtitle{
  font-size:11.5px!important;
  line-height:1.2!important;
  max-width:100%!important;
}
.rc-visual-compare-banner .rc-vc-toolbar{
  flex:1 1 auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  min-width:0!important;
}
.rc-vc-kind-strip{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:7px!important;
  flex-wrap:nowrap!important;
  min-width:0!important;
  overflow-x:auto!important;
  scrollbar-width:thin;
  padding:2px 1px!important;
}
.rc-vc-kind-strip::-webkit-scrollbar{height:5px;}
.rc-vc-kind-strip::-webkit-scrollbar-thumb{background:rgba(255,255,255,.35);border-radius:99px;}
.rc-visual-compare-banner .rc-vc-kind-btn{
  flex:0 0 auto!important;
  white-space:nowrap!important;
  padding:5px 8px!important;
  font-size:10.5px!important;
  line-height:1!important;
  min-height:26px!important;
}
.rc-visual-compare-banner .rc-vc-kind-btn b{
  min-width:17px!important;
  height:17px!important;
  font-size:10px!important;
}
.rc-visual-compare-banner .rc-vc-exit{
  flex:0 0 auto!important;
  padding:6px 12px!important;
  min-height:28px!important;
  font-size:11px!important;
}
body.rc-visual-compare-active #curriculum{
  padding-top:66px!important;
}
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-origin::before,
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-dest::before{
  font-size:11px!important;
  letter-spacing:.035em!important;
  text-transform:none!important;
  padding:5px 11px!important;
}
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-origin::after,
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-dest::after{
  content:'\2193';
  position:absolute;
  left:58px;
  top:50%;
  transform:translateY(-50%);
  z-index:28;
  width:26px;
  height:26px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fef3c7;
  border:1px solid #f59e0b;
  color:#92400e;
  font-weight:950;
  box-shadow:0 6px 14px rgba(146,64,14,.18);
}
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-origin::after{
  content:'\2191';
}
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-dest::after{
  background:#d1fae5;
  border-color:#10b981;
  color:#047857;
}
.card.rc-vc-card{
  animation:rcVcCardEnter .28s ease-out 1;
}
@keyframes rcVcCardEnter{
  0%{transform:translateY(0) scale(.98);}
  100%{transform:translateY(-3px) scale(1.055);}
}
@media(max-width:1200px){
 .rc-visual-compare-banner{
   top:82px!important;
   align-items:flex-start!important;
   flex-direction:column!important;
 }
 .rc-visual-compare-banner .rc-vc-banner-main{flex:0 0 auto!important;width:100%!important;}
 .rc-visual-compare-banner .rc-vc-toolbar{width:100%!important;justify-content:flex-start!important;}
 .rc-vc-kind-strip{justify-content:flex-start!important;}
 body.rc-visual-compare-active #curriculum{padding-top:124px!important;}
}


/* CURRIA v2.3.0-alpha10.6 - Pulido final Visual Compare UX
   Solo refina apariencia: no modifica Firebase, Hitos, roles ni restauración. */
.rc-visual-compare-banner{
  top:78px!important;
  left:14px!important;
  right:14px!important;
  padding:7px 11px!important;
  border-radius:16px!important;
  min-height:58px!important;
  background:
    linear-gradient(135deg, rgba(15,118,110,.96), rgba(15,23,42,.97)),
    radial-gradient(circle at 12% 50%, rgba(250,204,21,.22), transparent 34%)!important;
  border:1px solid rgba(255,255,255,.22)!important;
  box-shadow:0 14px 32px rgba(15,23,42,.24), inset 0 1px 0 rgba(255,255,255,.16)!important;
  backdrop-filter:blur(10px)!important;
  -webkit-backdrop-filter:blur(10px)!important;
}
.rc-visual-compare-banner .rc-vc-banner-main{
  flex:0 1 390px!important;
  display:grid!important;
  grid-template-columns:auto 1fr!important;
  grid-template-areas:"kicker kicker" "title title" "sub sub"!important;
  gap:0!important;
}
.rc-visual-compare-banner .rc-vc-kicker{
  grid-area:kicker!important;
  opacity:.82!important;
  font-size:9.5px!important;
  font-weight:950!important;
  letter-spacing:.15em!important;
  text-transform:uppercase!important;
}
.rc-visual-compare-banner .rc-vc-title{
  grid-area:title!important;
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  min-width:0!important;
  line-height:1.05!important;
}
.rc-visual-compare-banner .rc-vc-title strong{
  font-size:14.5px!important;
  letter-spacing:.01em!important;
  text-transform:none!important;
  max-width:165px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.rc-visual-compare-banner .rc-vc-title span{
  opacity:.72!important;
  font-size:15px!important;
}
.rc-visual-compare-banner .rc-vc-subtitle{
  grid-area:sub!important;
  font-size:11px!important;
  opacity:.9!important;
  line-height:1.15!important;
}
.rc-vc-kind-strip{
  gap:6px!important;
}
.rc-visual-compare-banner .rc-vc-kind-btn{
  border:1px solid rgba(255,255,255,.22)!important;
  background:rgba(255,255,255,.10)!important;
  color:#fff!important;
  border-radius:999px!important;
  padding:5px 8px!important;
  font-size:10.5px!important;
  min-height:28px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12)!important;
}
.rc-visual-compare-banner .rc-vc-kind-btn:hover{
  background:rgba(255,255,255,.18)!important;
  transform:translateY(-1px)!important;
}
.rc-visual-compare-banner .rc-vc-kind-btn.is-active{
  background:#fff!important;
  color:#0f172a!important;
  border-color:#fff!important;
  box-shadow:0 8px 18px rgba(15,23,42,.22)!important;
}
.rc-visual-compare-banner .rc-vc-kind-btn b{
  background:rgba(15,23,42,.12)!important;
  color:inherit!important;
  margin-left:5px!important;
}
.rc-visual-compare-banner .rc-vc-exit{
  background:#fff!important;
  color:#0f172a!important;
  border:0!important;
  border-radius:999px!important;
  font-weight:950!important;
  box-shadow:0 8px 18px rgba(15,23,42,.20)!important;
}
.rc-visual-compare-banner .rc-vc-exit:hover{
  transform:translateY(-1px)!important;
  filter:brightness(1.04)!important;
}
body.rc-visual-compare-active #curriculum{
  padding-top:62px!important;
  background:linear-gradient(180deg, rgba(15,23,42,.075), rgba(15,23,42,.035))!important;
}
body.rc-visual-compare-active #curriculum .semester{
  transition:opacity .18s ease, filter .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease!important;
}
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-origin,
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-dest{
  background:rgba(255,251,235,.95)!important;
  border:2px solid rgba(245,158,11,.78)!important;
  box-shadow:0 10px 26px rgba(245,158,11,.14), inset 0 0 0 2px rgba(255,255,255,.80)!important;
}
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-dest{
  background:rgba(236,253,245,.96)!important;
  border-color:rgba(16,185,129,.78)!important;
  box-shadow:0 10px 26px rgba(16,185,129,.13), inset 0 0 0 2px rgba(255,255,255,.80)!important;
}
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-origin::before,
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-dest::before{
  left:92px!important;
  top:-14px!important;
  padding:6px 13px!important;
  font-size:11.5px!important;
  letter-spacing:.015em!important;
  border-radius:999px!important;
  box-shadow:0 8px 18px rgba(15,23,42,.18)!important;
}
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-origin::after,
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-dest::after{
  left:54px!important;
  width:30px!important;
  height:30px!important;
  font-size:18px!important;
  box-shadow:0 8px 18px rgba(15,23,42,.18)!important;
}
.card.rc-vc-card{
  opacity:1!important;
  filter:none!important;
  z-index:160!important;
  border-width:3px!important;
  transform:translateY(-4px) scale(1.065)!important;
  box-shadow:
    0 0 0 7px rgba(255,255,255,.98),
    0 0 0 13px rgba(250,204,21,.25),
    0 26px 58px rgba(15,23,42,.44)!important;
}
.card.rc-vc-core{box-shadow:0 0 0 7px rgba(255,255,255,.98),0 0 0 13px rgba(59,130,246,.24),0 26px 58px rgba(15,23,42,.42)!important;}
.card.rc-vc-added{box-shadow:0 0 0 7px rgba(255,255,255,.98),0 0 0 13px rgba(34,197,94,.24),0 26px 58px rgba(15,23,42,.42)!important;}
.card.rc-vc-removed{box-shadow:0 0 0 7px rgba(255,255,255,.98),0 0 0 13px rgba(244,63,94,.24),0 26px 58px rgba(15,23,42,.42)!important;}
.card.rc-vc-credits{box-shadow:0 0 0 7px rgba(255,255,255,.98),0 0 0 13px rgba(124,58,237,.24),0 26px 58px rgba(15,23,42,.42)!important;}
.card.rc-vc-origin-card::before,
.card.rc-vc-dest-card::before{
  content:attr(data-compare-role)!important;
  top:-22px!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  padding:6px 13px!important;
  font-size:11.5px!important;
  letter-spacing:.02em!important;
  text-transform:none!important;
  border:1px solid rgba(255,255,255,.32)!important;
  box-shadow:0 8px 18px rgba(15,23,42,.22)!important;
}
.card.rc-vc-origin-card::before{background:#92400e!important;color:#fff!important;}
.card.rc-vc-dest-card::before{background:#047857!important;color:#fff!important;}
.card.rc-vc-moved:not(.rc-vc-origin-card):not(.rc-vc-dest-card)::before{
  content:'Materia movida'!important;
  background:#92400e!important;
  color:#fff!important;
}
.card.rc-vc-card[data-compare-role]::after{
  content:attr(data-compare-label)!important;
  bottom:-25px!important;
  left:10px!important;
  right:10px!important;
  padding:6px 10px!important;
  font-size:12px!important;
  line-height:1!important;
  border-radius:999px!important;
  border-width:2px!important;
  box-shadow:0 8px 18px rgba(15,23,42,.18)!important;
}
.card.rc-vc-pulse{animation:rcVcPulseFinal 1.18s ease-in-out 1!important;}
@keyframes rcVcPulseFinal{
  0%{transform:translateY(0) scale(.98);}
  30%{transform:translateY(-5px) scale(1.09);}
  100%{transform:translateY(-4px) scale(1.065);}
}
@media(max-width:1200px){
 .rc-visual-compare-banner{top:82px!important;}
 body.rc-visual-compare-active #curriculum{padding-top:124px!important;}
 .rc-visual-compare-banner .rc-vc-title strong{max-width:260px!important;}
}
@media(max-width:760px){
 .rc-visual-compare-banner{left:8px!important;right:8px!important;padding:8px!important;}
 body.rc-visual-compare-active #curriculum{padding-top:145px!important;}
 body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-origin::before,
 body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-dest::before{left:78px!important;font-size:10.5px!important;}
}


/* CURRIA v2.3.0-alpha10.7 - Visual Compare polish final
   Ajuste visual final: barra más compacta, etiquetas más visibles y materia protagonista. */
.rc-visual-compare-banner{
  top:66px!important;
  left:10px!important;
  right:10px!important;
  min-height:46px!important;
  padding:5px 10px!important;
  border-radius:13px!important;
  gap:10px!important;
  background:
    linear-gradient(135deg, rgba(15,118,110,.97), rgba(15,23,42,.98))!important;
  box-shadow:0 10px 24px rgba(15,23,42,.22), inset 0 1px 0 rgba(255,255,255,.14)!important;
}
.rc-visual-compare-banner .rc-vc-banner-main{
  flex:0 1 360px!important;
  min-width:245px!important;
}
.rc-visual-compare-banner .rc-vc-kicker{
  font-size:8.8px!important;
  line-height:1!important;
  letter-spacing:.16em!important;
  opacity:.8!important;
}
.rc-visual-compare-banner .rc-vc-title{
  font-size:13.5px!important;
  line-height:1.05!important;
  gap:6px!important;
}
.rc-visual-compare-banner .rc-vc-title strong{
  font-size:13.5px!important;
  max-width:150px!important;
}
.rc-visual-compare-banner .rc-vc-title span{
  font-size:13px!important;
}
.rc-visual-compare-banner .rc-vc-subtitle{
  font-size:10.2px!important;
  line-height:1.12!important;
}
.rc-visual-compare-banner .rc-vc-toolbar{
  gap:7px!important;
}
.rc-vc-kind-strip{
  gap:5px!important;
  padding:1px!important;
}
.rc-visual-compare-banner .rc-vc-kind-btn{
  min-height:24px!important;
  padding:4px 7px!important;
  font-size:9.8px!important;
  letter-spacing:.005em!important;
}
.rc-visual-compare-banner .rc-vc-kind-btn b{
  min-width:16px!important;
  height:16px!important;
  font-size:9px!important;
  margin-left:4px!important;
}
.rc-visual-compare-banner .rc-vc-exit{
  min-height:25px!important;
  padding:5px 11px!important;
  font-size:10.5px!important;
}
body.rc-visual-compare-active #curriculum{
  padding-top:52px!important;
}
body.rc-visual-compare-active #curriculum .card:not(.rc-vc-card){
  opacity:.18!important;
  filter:saturate(.22) grayscale(.28) brightness(.9)!important;
}
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-origin,
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-dest{
  border-width:2px!important;
}
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-origin::before,
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-dest::before{
  left:88px!important;
  top:-15px!important;
  padding:7px 15px!important;
  font-size:12px!important;
  font-weight:1000!important;
  letter-spacing:.01em!important;
  border-width:2px!important;
  box-shadow:0 10px 22px rgba(15,23,42,.20)!important;
}
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-origin::before{
  background:#fff7ed!important;
  color:#7c2d12!important;
  border-color:#fb923c!important;
}
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-dest::before{
  background:#ecfdf5!important;
  color:#065f46!important;
  border-color:#10b981!important;
}
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-origin::after,
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-dest::after{
  left:52px!important;
  width:32px!important;
  height:32px!important;
  font-size:19px!important;
  border-width:2px!important;
}
.card.rc-vc-card{
  transform:translateY(-5px) scale(1.075)!important;
  border-width:4px!important;
  outline-offset:3px!important;
  box-shadow:
    0 0 0 6px rgba(255,255,255,.98),
    0 0 0 15px rgba(250,204,21,.34),
    0 0 28px rgba(251,191,36,.72),
    0 30px 62px rgba(15,23,42,.48)!important;
}
.card.rc-vc-moved{
  outline:6px solid #f59e0b!important;
  border-color:#d97706!important;
}
.card.rc-vc-core{
  box-shadow:0 0 0 6px rgba(255,255,255,.98),0 0 0 15px rgba(59,130,246,.32),0 0 28px rgba(59,130,246,.55),0 30px 62px rgba(15,23,42,.46)!important;
}
.card.rc-vc-added{
  box-shadow:0 0 0 6px rgba(255,255,255,.98),0 0 0 15px rgba(34,197,94,.32),0 0 28px rgba(34,197,94,.52),0 30px 62px rgba(15,23,42,.46)!important;
}
.card.rc-vc-removed{
  box-shadow:0 0 0 6px rgba(255,255,255,.98),0 0 0 15px rgba(244,63,94,.32),0 0 28px rgba(244,63,94,.52),0 30px 62px rgba(15,23,42,.46)!important;
}
.card.rc-vc-credits{
  box-shadow:0 0 0 6px rgba(255,255,255,.98),0 0 0 15px rgba(124,58,237,.32),0 0 28px rgba(124,58,237,.52),0 30px 62px rgba(15,23,42,.46)!important;
}
.card.rc-vc-card::before{
  top:-26px!important;
  padding:7px 15px!important;
  font-size:12px!important;
  font-weight:1000!important;
  border-width:2px!important;
}
.card.rc-vc-card[data-compare-role]::after{
  bottom:-27px!important;
  padding:7px 12px!important;
  font-size:12px!important;
  font-weight:1000!important;
}
.card.rc-vc-pulse{
  animation:rcVcPulseUltra .95s ease-in-out 1!important;
}
@keyframes rcVcPulseUltra{
  0%{transform:translateY(0) scale(.97);filter:brightness(1);}
  35%{transform:translateY(-7px) scale(1.105);filter:brightness(1.08);}
  100%{transform:translateY(-5px) scale(1.075);filter:brightness(1);}
}
@media(max-width:1200px){
 .rc-visual-compare-banner{top:74px!important;}
 body.rc-visual-compare-active #curriculum{padding-top:116px!important;}
 .rc-visual-compare-banner .rc-vc-title strong{max-width:230px!important;}
}
@media(max-width:760px){
 body.rc-visual-compare-active #curriculum{padding-top:142px!important;}
 .rc-visual-compare-banner .rc-vc-banner-main{min-width:0!important;}
}


/* CURRIA v2.3.0-alpha10.8 - Microajustes finales Visual Compare
   Origen rojo, destino verde más visible y materia protagonista. */
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-origin{
  background:rgba(255,241,242,.96)!important;
  border:3px solid rgba(244,63,94,.88)!important;
  box-shadow:
    0 0 0 3px rgba(244,63,94,.10),
    0 12px 28px rgba(244,63,94,.17),
    inset 0 0 0 2px rgba(255,255,255,.82)!important;
}
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-dest{
  background:rgba(236,253,245,.98)!important;
  border:3px solid rgba(16,185,129,.95)!important;
  box-shadow:
    0 0 0 4px rgba(16,185,129,.18),
    0 0 26px rgba(16,185,129,.23),
    0 12px 28px rgba(16,185,129,.15),
    inset 0 0 0 2px rgba(255,255,255,.88)!important;
}
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-origin::before{
  background:#fff1f2!important;
  color:#9f1239!important;
  border-color:#f43f5e!important;
  box-shadow:0 10px 22px rgba(244,63,94,.23)!important;
}
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-dest::before{
  background:#ecfdf5!important;
  color:#047857!important;
  border-color:#10b981!important;
  box-shadow:0 10px 22px rgba(16,185,129,.24)!important;
}
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-origin::after{
  background:#fff1f2!important;
  border-color:#f43f5e!important;
  color:#be123c!important;
}
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-dest::after{
  background:#d1fae5!important;
  border-color:#10b981!important;
  color:#047857!important;
  box-shadow:
    0 0 0 4px rgba(16,185,129,.16),
    0 10px 22px rgba(16,185,129,.22)!important;
}

/* La materia con diferencia queda inequívocamente como protagonista */
.card.rc-vc-card{
  transform:translateY(-6px) scale(1.085)!important;
  border-width:4px!important;
  outline-offset:4px!important;
}
.card.rc-vc-moved{
  outline:7px solid #f59e0b!important;
  border-color:#b45309!important;
  box-shadow:
    0 0 0 7px rgba(255,255,255,.99),
    0 0 0 18px rgba(251,191,36,.36),
    0 0 36px rgba(251,191,36,.82),
    0 34px 70px rgba(15,23,42,.54)!important;
}
.card.rc-vc-dest-card{
  box-shadow:
    0 0 0 7px rgba(255,255,255,.99),
    0 0 0 18px rgba(16,185,129,.30),
    0 0 36px rgba(16,185,129,.56),
    0 34px 70px rgba(15,23,42,.52)!important;
}
.card.rc-vc-origin-card{
  box-shadow:
    0 0 0 7px rgba(255,255,255,.99),
    0 0 0 18px rgba(244,63,94,.30),
    0 0 36px rgba(244,63,94,.52),
    0 34px 70px rgba(15,23,42,.52)!important;
}
.card.rc-vc-origin-card::before{
  content:'🔴 SALIÓ DE AQUÍ'!important;
  background:#be123c!important;
  color:#fff!important;
}
.card.rc-vc-dest-card::before{
  content:'🟢 LLEGÓ AQUÍ'!important;
  background:#047857!important;
  color:#fff!important;
}
.card.rc-vc-card[data-compare-role]::after{
  font-size:12.5px!important;
  bottom:-29px!important;
  box-shadow:0 10px 22px rgba(15,23,42,.24)!important;
}
@keyframes rcVcPulseUltra{
  0%{transform:translateY(0) scale(.98);filter:brightness(1);}
  35%{transform:translateY(-8px) scale(1.12);filter:brightness(1.10);}
  100%{transform:translateY(-6px) scale(1.085);filter:brightness(1);}
}

/* CURRIA v2.3.0-alpha10.9 - CIERRE VISUAL COMPARE v1.0
   Últimos microajustes: barra más compacta, salir a la derecha,
   glow más elegante y microanimación de foco. */
.rc-visual-compare-banner{
  top:82px!important;
  min-height:54px!important;
  padding:7px 12px!important;
  border-radius:12px!important;
  grid-template-columns:minmax(210px,auto) minmax(520px,1fr)!important;
  gap:10px!important;
  align-items:center!important;
  box-shadow:0 12px 32px rgba(15,23,42,.28)!important;
}
.rc-vc-banner-main{
  gap:0!important;
  justify-content:center!important;
}
.rc-vc-kicker{
  font-size:10px!important;
  line-height:1.05!important;
  letter-spacing:.13em!important;
}
.rc-vc-title{
  font-size:14px!important;
  line-height:1.05!important;
  gap:7px!important;
}
.rc-vc-title strong{
  font-size:14px!important;
  max-width:190px!important;
}
.rc-vc-title span{
  font-size:15px!important;
  line-height:1!important;
}
.rc-vc-subtitle{
  font-size:10.5px!important;
  line-height:1.1!important;
}
.rc-vc-toolbar{
  width:100%!important;
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
}
.rc-vc-kind-strip{
  flex:1 1 auto!important;
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  flex-wrap:wrap!important;
}
.rc-vc-kind-btn{
  padding:4px 9px!important;
  font-size:10.5px!important;
  line-height:1!important;
  min-height:22px!important;
  gap:5px!important;
}
.rc-vc-kind-btn b{
  min-width:16px!important;
  height:16px!important;
  font-size:10px!important;
}
.rc-vc-exit{
  margin-left:auto!important;
  flex:0 0 auto!important;
  padding:5px 14px!important;
  min-height:24px!important;
  font-size:11px!important;
  align-self:center!important;
}
body.rc-visual-compare-active #curriculum{
  padding-top:70px!important;
}

/* Badges de semestre: verde para llegada, rojo para salida, con presencia limpia. */
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-dest::before,
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-origin::before{
  font-size:11px!important;
  padding:4px 12px!important;
  border-width:2px!important;
  letter-spacing:.02em!important;
  transform:translateY(-2px)!important;
}
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-dest{
  box-shadow:
    0 0 0 4px rgba(16,185,129,.20),
    0 0 30px rgba(16,185,129,.25),
    0 10px 22px rgba(16,185,129,.13),
    inset 0 0 0 2px rgba(255,255,255,.90)!important;
}
body.rc-visual-compare-active #curriculum .semester.rc-vc-sem-origin{
  box-shadow:
    0 0 0 4px rgba(244,63,94,.17),
    0 0 28px rgba(244,63,94,.20),
    0 10px 22px rgba(244,63,94,.13),
    inset 0 0 0 2px rgba(255,255,255,.86)!important;
}

/* Materia protagonista: glow más fino, estilo premium. */
.card.rc-vc-card{
  transform:translateY(-5px) scale(1.04)!important;
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease!important;
  will-change:transform,box-shadow!important;
}
.card.rc-vc-moved{
  box-shadow:
    0 0 0 6px rgba(255,255,255,.98),
    0 0 0 16px rgba(251,191,36,.30),
    0 0 44px rgba(251,191,36,.78),
    0 28px 58px rgba(15,23,42,.48)!important;
}
.card.rc-vc-dest-card{
  box-shadow:
    0 0 0 6px rgba(255,255,255,.98),
    0 0 0 16px rgba(16,185,129,.28),
    0 0 44px rgba(16,185,129,.52),
    0 28px 58px rgba(15,23,42,.46)!important;
}
.card.rc-vc-origin-card{
  box-shadow:
    0 0 0 6px rgba(255,255,255,.98),
    0 0 0 16px rgba(244,63,94,.28),
    0 0 44px rgba(244,63,94,.50),
    0 28px 58px rgba(15,23,42,.46)!important;
}

/* Microinteracción final: aparece, respira y queda fija. */
.card.rc-vc-pulse{
  animation:rcVcFinalFocus .62s cubic-bezier(.2,.8,.2,1) 1!important;
}
@keyframes rcVcFinalFocus{
  0%{transform:translateY(0) scale(1);filter:brightness(1);}
  45%{transform:translateY(-7px) scale(1.08);filter:brightness(1.10);}
  100%{transform:translateY(-5px) scale(1.04);filter:brightness(1);}
}

@media(max-width:1200px){
  .rc-visual-compare-banner{
    top:74px!important;
    grid-template-columns:1fr!important;
    gap:5px!important;
  }
  .rc-vc-toolbar{
    justify-content:space-between!important;
  }
  body.rc-visual-compare-active #curriculum{
    padding-top:96px!important;
  }
}
@media(max-width:760px){
  .rc-visual-compare-banner{
    left:8px!important;
    right:8px!important;
    top:66px!important;
    padding:8px 10px!important;
  }
  .rc-vc-kind-strip{
    justify-content:flex-start!important;
  }
  .rc-vc-exit{
    margin-left:0!important;
  }
  body.rc-visual-compare-active #curriculum{
    padding-top:126px!important;
  }
}




/* === CURRIA Navigator v1.0 · Navegación inteligente entre diferencias === */
.rc-vc-toolbar{
  align-items:center !important;
  justify-content:flex-end !important;
  gap:10px !important;
}
.rc-vc-nav{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  height:28px;
  padding:3px 6px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
  white-space:nowrap;
}
.rc-vc-nav-btn{
  width:24px;
  height:22px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.94);
  color:#0f172a;
  font-size:11px;
  font-weight:950;
  line-height:1;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 10px rgba(15,23,42,.18);
  transition:transform .14s ease, background .14s ease, box-shadow .14s ease, opacity .14s ease;
}
.rc-vc-nav-btn:hover:not(:disabled){
  transform:translateY(-1px) scale(1.04);
  background:#ffffff;
  box-shadow:0 7px 16px rgba(15,23,42,.24);
}
.rc-vc-nav-btn:disabled{
  opacity:.45;
  cursor:not-allowed;
  box-shadow:none;
}
.rc-vc-counter{
  min-width:48px;
  padding:3px 7px;
  border-radius:999px;
  background:rgba(15,23,42,.36);
  color:#ffffff;
  font-size:11px;
  font-weight:950;
  text-align:center;
  letter-spacing:.02em;
}
.card.rc-vc-current-flash{
  animation:rcVcCurrentFocus .9s cubic-bezier(.2,.9,.2,1) 1;
  z-index:120 !important;
}
@keyframes rcVcCurrentFocus{
  0%{transform:scale(1);filter:brightness(1);}
  28%{transform:scale(1.055);filter:brightness(1.08);}
  62%{transform:scale(1.025);filter:brightness(1.04);}
  100%{transform:scale(1);filter:brightness(1);}
}
@media(max-width:1100px){
  .rc-vc-toolbar{gap:6px !important;}
  .rc-vc-nav{order:3;}
  .rc-vc-kind-strip{max-width:calc(100vw - 260px);overflow:auto;}
}

/* === CURRIA v2.4.0-alpha2 · Navigator UX polish ===
   Navegación entre diferencias con contador legible, flechas con estado real,
   scroll/foco suave y pop visual sobre la materia activa. */
.rc-vc-nav{
  height:30px!important;
  padding:3px 5px!important;
  gap:5px!important;
  background:rgba(255,255,255,.13)!important;
  border:1px solid rgba(255,255,255,.24)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 8px 18px rgba(15,23,42,.12)!important;
}
.rc-vc-nav-btn{
  width:27px!important;
  height:24px!important;
  padding:0!important;
  border:1px solid rgba(255,255,255,.72)!important;
  background:#ffffff!important;
  color:#0f172a!important;
  font-size:18px!important;
  font-weight:950!important;
  line-height:1!important;
  box-shadow:0 7px 16px rgba(15,23,42,.22)!important;
}
.rc-vc-nav-btn:hover:not(:disabled){
  transform:translateY(-1px) scale(1.06)!important;
  box-shadow:0 10px 20px rgba(15,23,42,.30)!important;
}
.rc-vc-nav-btn:disabled{
  opacity:.30!important;
  filter:grayscale(1)!important;
  background:rgba(226,232,240,.78)!important;
  color:#64748b!important;
  border-color:rgba(255,255,255,.26)!important;
  cursor:not-allowed!important;
  transform:none!important;
  box-shadow:none!important;
}
.rc-vc-counter{
  min-width:112px!important;
  height:24px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:3px 10px!important;
  background:rgba(15,23,42,.44)!important;
  border:1px solid rgba(255,255,255,.18)!important;
  color:#fff!important;
  font-size:11px!important;
  font-weight:950!important;
  letter-spacing:.01em!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08)!important;
}
.card.rc-vc-current{
  z-index:220!important;
}
.card.rc-vc-current::after{
  box-shadow:0 12px 26px rgba(15,23,42,.32)!important;
}
.card.rc-vc-current-flash{
  animation:rcVcNavigatorPop .72s cubic-bezier(.18,.9,.22,1) 1!important;
}
@keyframes rcVcNavigatorPop{
  0%{transform:translateY(-4px) scale(1.02);filter:brightness(1);}
  42%{transform:translateY(-10px) scale(1.105);filter:brightness(1.12);}
  72%{transform:translateY(-6px) scale(1.065);filter:brightness(1.04);}
  100%{transform:translateY(-5px) scale(1.04);filter:brightness(1);}
}
@media(max-width:1100px){
  .rc-vc-counter{min-width:96px!important;font-size:10.5px!important;}
  .rc-vc-nav-btn{width:25px!important;height:23px!important;}
}


/* === CURRIA v2.4.0-alpha3 · Navigator con nombre de materia y foco activo === */
.rc-vc-nav{
  min-height:42px!important;
  height:auto!important;
  padding:4px 6px!important;
  gap:7px!important;
  background:rgba(255,255,255,.15)!important;
  border:1px solid rgba(255,255,255,.30)!important;
}
.rc-vc-nav-center{
  min-width:170px;
  max-width:310px;
  display:grid;
  grid-template-columns:1fr;
  gap:1px;
  align-items:center;
  justify-items:center;
  line-height:1.08;
}
.rc-vc-counter{
  min-width:auto!important;
  height:auto!important;
  padding:2px 8px!important;
  font-size:10px!important;
  letter-spacing:.06em!important;
  text-transform:uppercase!important;
  background:rgba(15,23,42,.50)!important;
}
.rc-vc-active-subject{
  max-width:300px;
  color:#fff;
  font-size:12px;
  font-weight:950;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  text-shadow:0 1px 2px rgba(15,23,42,.35);
}
.rc-vc-active-detail{
  max-width:300px;
  color:rgba(255,255,255,.88);
  font-style:normal;
  font-size:10.5px;
  font-weight:850;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.card.rc-vc-card:not(.rc-vc-current){
  opacity:.66!important;
  filter:saturate(.72) brightness(.98)!important;
  transform:translateY(-1px) scale(.995)!important;
  box-shadow:0 0 0 4px rgba(255,255,255,.70),0 10px 24px rgba(15,23,42,.22)!important;
}
.card.rc-vc-current{
  opacity:1!important;
  filter:none!important;
  z-index:260!important;
  transform:translateY(-6px) scale(1.055)!important;
  box-shadow:0 0 0 7px rgba(255,255,255,.96),0 0 0 13px rgba(250,204,21,.30),0 30px 70px rgba(15,23,42,.48)!important;
}
.card.rc-vc-current::before{
  box-shadow:0 10px 22px rgba(15,23,42,.35)!important;
}
.card.rc-vc-current::after{
  box-shadow:0 13px 30px rgba(15,23,42,.38)!important;
}
.card.rc-vc-current-flash{
  animation:rcVcNavigatorSubjectPop .92s cubic-bezier(.18,.9,.22,1) 1!important;
}
@keyframes rcVcNavigatorSubjectPop{
  0%{transform:translateY(-3px) scale(1.02);filter:brightness(1);}
  38%{transform:translateY(-12px) scale(1.12);filter:brightness(1.14);box-shadow:0 0 0 9px rgba(255,255,255,.95),0 0 0 17px rgba(250,204,21,.42),0 34px 78px rgba(15,23,42,.52);}
  70%{transform:translateY(-7px) scale(1.07);filter:brightness(1.05);}
  100%{transform:translateY(-6px) scale(1.055);filter:brightness(1);}
}
@media(max-width:1100px){
  .rc-vc-nav-center{min-width:140px;max-width:230px;}
  .rc-vc-active-subject{max-width:220px;font-size:11px;}
  .rc-vc-active-detail{max-width:220px;font-size:10px;}
}


/* HOTFIX v2.4.25: evita barras verticales internas por el overflow horizontal de cada semestre */
.cards{
  overflow-x:auto !important;
  overflow-y:hidden !important;
}


/* ==========================================================================
   CURRIA - Color de materia solo lectura en formulario

   NO eliminar #fColor ni #btnCambiarColor.
   #fColor sigue existiendo por compatibilidad con app.js, pero visualmente
   funciona solo como muestra del color asignado por la paleta.
   #btnCambiarColor permanece en el DOM oculto para evitar romper referencias
   históricas del sistema.
   ========================================================================== */
.subject-meta-row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px 18px;
  margin:8px 0 10px;
}
.color-readonly-row{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-width:0;
  font-size:12px;
  font-weight:700;
  color:#334155;
  white-space:nowrap;
}
.color-readonly-label{
  font-weight:800;
}
.color-readonly-row input[type="color"]{
  width:46px !important;
  height:24px !important;
  padding:1px !important;
  margin:0 !important;
  border:1px solid #94a3b8 !important;
  border-radius:7px !important;
  background:#fff !important;
  opacity:1 !important;
  cursor:default !important;
  pointer-events:none !important;
}
.color-readonly-row input[type="color"]::-webkit-color-swatch-wrapper{
  padding:0;
}
.color-readonly-row input[type="color"]::-webkit-color-swatch{
  border:0;
  border-radius:5px;
}
.color-readonly-row input[type="color"]::-moz-color-swatch{
  border:0;
  border-radius:5px;
}
.compat-hidden-control,
#btnCambiarColor.compat-hidden-control{
  display:none !important;
}
.subject-meta-row .subject-options-row{
  margin-top:0;
}


/* === CURRIA · Justificación de Seriación === */
.seriation-justification-field textarea{
  min-height:92px;
  line-height:1.4;
  resize:vertical;
}
#btnSeriacionGenerada{
  position:relative;
}
#btnSeriacionGenerada::before{
  content:"🔗";
  margin-right:6px;
}


/* CURRIA: opción para unidades que forman parte de la ruta pero no cuentan como materia */
.subject-options-row .no-es-materia-option{font-weight:800;color:#7c2d12;background:#fff7ed;border:1px solid #fed7aa;border-radius:8px;padding:6px 8px;}
.subject-options-row .no-es-materia-option input{accent-color:#c2410c;}


/* ================================================================
   CURRIA · VISUALIZACIÓN GLOBAL DE SERIACIÓN
   Versión visual 1.0 · Septiembre 2026

   IMPORTANTE:
   - Exclusivo para el radio superior "Visualización > Seriación".
   - NO modifica Áreas de Formación.
   - NO modifica Core Disciplinar.
   - NO modifica Departamentos.
   - NO modifica el menú "Vistas > Seriación".
   - La clase .curria-seriation-global-mode será activada por app.js
     únicamente cuando corresponda.
   ================================================================ */


/* ------------------------------------------------
   CONTENEDOR DE LA VISTA
   ------------------------------------------------ */

.curria-seriation-global-mode{
  position:relative;
}


/* Las materias quedan visualmente sobrias.
   El protagonismo de la seriación estará en las líneas. */
.curria-seriation-global-mode .card{
  transition:
    opacity .18s ease,
    filter .18s ease,
    box-shadow .18s ease,
    outline-color .18s ease,
    transform .18s ease;
}


/* En esta nueva visualización NO utilizamos el parpadeo antiguo. */
.curria-seriation-global-mode .card.prereq{
  animation:none !important;
}


/* Evita que serial-hit / serial-dim dominen visualmente
   cuando estemos usando el nuevo mapa global. */
.curria-seriation-global-mode .card.serial-hit,
.curria-seriation-global-mode .card.serial-dim{
  filter:none;
}


/* ------------------------------------------------
   CAPA SVG GLOBAL
   ------------------------------------------------ */

.curria-seriation-global-layer{
  position:absolute;
  left:0;
  top:0;
  z-index:60;
  overflow:visible;
  pointer-events:none;
}


/* El grupo completo de cada relación.
   JavaScript asignará --curria-serial-color. */
.curria-seriation-edge{
  --curria-serial-color:#2563eb;
  opacity:.74;
  transition:opacity .18s ease;
}


/* ------------------------------------------------
   HALO BLANCO
   ------------------------------------------------ */

/*
   Se dibuja debajo de cada flecha.

   Su propósito es separar visualmente las líneas cuando
   existen cruces, haciendo mucho más fácil seguir una ruta.
*/
.curria-seriation-halo{
  fill:none;
  stroke:rgba(255,255,255,.96);
  stroke-width:5.2px;
  stroke-linecap:round;
  stroke-linejoin:round;
  pointer-events:none;
}


/* ------------------------------------------------
   LÍNEA PRINCIPAL
   ------------------------------------------------ */

.curria-seriation-path{
  fill:none;
  stroke:var(--curria-serial-color);
  stroke-width:2.15px;
  stroke-linecap:round;
  stroke-linejoin:round;

  /*
     Vector-effect evita que cambie demasiado el grosor
     si posteriormente se escala/exporta el SVG.
  */
  vector-effect:non-scaling-stroke;

  /*
     Sombra mínima para separar la línea del fondo,
     sin hacerla pesada.
  */
  filter:drop-shadow(0 1px 1px rgba(15,23,42,.12));

  transition:
    opacity .18s ease,
    stroke-width .18s ease,
    filter .18s ease;
}


/* ------------------------------------------------
   PUNTA DE FLECHA
   ------------------------------------------------ */

.curria-seriation-arrow-head{
  fill:var(--curria-serial-color);
  stroke:#ffffff;
  stroke-width:.7px;
  opacity:.97;

  filter:drop-shadow(0 1px 1px rgba(15,23,42,.18));

  transition:
    opacity .18s ease,
    filter .18s ease;
}


/* ------------------------------------------------
   PUNTOS DE CONEXIÓN
   ------------------------------------------------ */

.curria-seriation-node{
  fill:var(--curria-serial-color);
  stroke:#ffffff;
  stroke-width:1.4px;
  opacity:.96;

  filter:drop-shadow(0 1px 1px rgba(15,23,42,.18));
}


/* Nodo de salida de una materia */
.curria-seriation-node-origin{
  r:3.3px;
}


/* Nodo donde llega la relación */
.curria-seriation-node-destination{
  r:3.8px;
}


/* ------------------------------------------------
   ESTADO GENERAL
   ------------------------------------------------ */

/*
   Todas las seriaciones aparecen desde el inicio,
   pero con una intensidad moderada para evitar ruido.
*/
.curria-seriation-edge{
  opacity:.72;
}


/* ------------------------------------------------
   ENFOQUE / HOVER
   ------------------------------------------------ */

/*
   Cuando una materia o trayectoria está siendo explorada,
   las relaciones ajenas se atenúan.
*/
.curria-seriation-edge.is-muted{
  opacity:.10;
}


/*
   Relación perteneciente a la materia/ruta enfocada.
*/
.curria-seriation-edge.is-focused{
  opacity:1;
}


/* Línea enfocada un poco más gruesa. */
.curria-seriation-edge.is-focused .curria-seriation-path{
  stroke-width:3.15px;
  filter:
    drop-shadow(0 1px 1px rgba(15,23,42,.18))
    drop-shadow(0 0 3px rgba(255,255,255,.85));
}


/* Halo algo mayor en la trayectoria enfocada. */
.curria-seriation-edge.is-focused .curria-seriation-halo{
  stroke-width:6.4px;
}


/* Punta más visible en la trayectoria enfocada. */
.curria-seriation-edge.is-focused .curria-seriation-arrow-head{
  opacity:1;
  filter:
    drop-shadow(0 1px 1px rgba(15,23,42,.22))
    drop-shadow(0 0 2px rgba(255,255,255,.90));
}


/* ------------------------------------------------
   HOVER DIRECTO DE FLECHA
   ------------------------------------------------ */

/*
   El SVG global podrá habilitar temporalmente pointer-events
   sobre la línea de interacción creada en app.js.
*/
.curria-seriation-hit-area{
  fill:none;
  stroke:transparent;
  stroke-width:12px;
  pointer-events:stroke;
  cursor:pointer;
}


/* Cuando el usuario pasa directamente sobre una relación. */
.curria-seriation-edge.is-hovered{
  opacity:1;
}


.curria-seriation-edge.is-hovered .curria-seriation-path{
  stroke-width:3.45px;
  filter:
    drop-shadow(0 2px 2px rgba(15,23,42,.22))
    drop-shadow(0 0 3px rgba(255,255,255,.92));
}


.curria-seriation-edge.is-hovered .curria-seriation-halo{
  stroke-width:6.8px;
}


/* ------------------------------------------------
   MATERIAS: ESTADO DE EXPLORACIÓN
   ------------------------------------------------ */

/*
   Cuando existe un hover o selección, las materias
   que no pertenecen a la trayectoria permanecen visibles
   pero pasan a segundo plano.
*/
.curria-seriation-global-mode .card.curria-seriation-card-muted{
  opacity:.34;
  filter:saturate(.55) brightness(1.03);
}


/* Materias pertenecientes a la trayectoria. */
.curria-seriation-global-mode .card.curria-seriation-card-focus{
  opacity:1;
  filter:none;
  z-index:64;

  box-shadow:
    0 0 0 2px rgba(255,255,255,.95),
    0 0 0 4px var(--curria-focus-color,#2563eb),
    0 8px 18px rgba(15,23,42,.16);
}


/* Materia directamente explorada. */
.curria-seriation-global-mode .card.curria-seriation-card-active{
  opacity:1;
  filter:none;
  z-index:66;

  transform:translateY(-1px);

  box-shadow:
    0 0 0 2px rgba(255,255,255,.98),
    0 0 0 5px var(--curria-focus-color,#2563eb),
    0 10px 24px rgba(15,23,42,.20);
}


/* ------------------------------------------------
   SELECCIÓN MEDIANTE CLIC
   ------------------------------------------------ */

/*
   Sustituye el aspecto agresivo del selected genérico
   únicamente dentro de esta visualización.
*/
.curria-seriation-global-mode .card.selected{
  outline:2px solid var(--curria-focus-color,#2563eb) !important;
  outline-offset:3px;

  box-shadow:
    0 0 0 2px rgba(255,255,255,.96),
    0 0 0 5px color-mix(
      in srgb,
      var(--curria-focus-color,#2563eb) 72%,
      transparent
    ) !important;
}


/* ------------------------------------------------
   ANIMACIÓN DE ENTRADA
   ------------------------------------------------ */

.curria-seriation-global-layer{
  animation:curriaSeriationGlobalFade .24s ease-out both;
}


@keyframes curriaSeriationGlobalFade{
  from{
    opacity:0;
  }

  to{
    opacity:1;
  }
}


/* ------------------------------------------------
   ACCESIBILIDAD
   ------------------------------------------------ */

/*
   Si el sistema operativo solicita menos movimiento,
   eliminamos animaciones/transiciones innecesarias.
*/
@media (prefers-reduced-motion:reduce){

  .curria-seriation-global-layer,
  .curria-seriation-edge,
  .curria-seriation-path,
  .curria-seriation-arrow-head,
  .curria-seriation-global-mode .card{
    animation:none !important;
    transition:none !important;
  }

}


/* ------------------------------------------------
   PANTALLAS PEQUEÑAS
   ------------------------------------------------ */

@media (max-width:800px){

  /*
     En pantallas pequeñas aumentamos ligeramente el grosor,
     porque la reducción visual puede hacer difícil seguir
     relaciones muy delgadas.
  */
  .curria-seriation-path{
    stroke-width:2.45px;
  }

  .curria-seriation-halo{
    stroke-width:5.8px;
  }

  .curria-seriation-edge.is-focused .curria-seriation-path{
    stroke-width:3.35px;
  }

}


/* ------------------------------------------------
   EXPORTACIÓN / IMPRESIÓN
   ------------------------------------------------ */

/*
   Las rutas deben conservar claridad también al exportar
   o imprimir.
*/
@media print{

  .curria-seriation-edge{
    opacity:.88 !important;
  }

  .curria-seriation-edge.is-muted{
    opacity:.32 !important;
  }

  .curria-seriation-path{
    filter:none !important;
  }

  .curria-seriation-arrow-head{
    filter:none !important;
  }

}


/* ================================================================
   FIN · CURRIA VISUALIZACIÓN GLOBAL DE SERIACIÓN
   ================================================================ */