/* Estilos compartidos del nuevo home / login / preinscripcion */
:root {
  --ink: #1c1824;
  --ink-soft: #5d566b;
  --paper: #f7f5f2;
  --card: #ffffff;
  --line: #e4e0ea;
  --accent: #6d3fc4;
  --accent-hover: #5a32a6;
  --accent-soft: #efe8fb;
  --error-bg: #fdecec;
  --error-ink: #9b1c1c;
  --ok-bg: #e9f6ee;
  --ok-ink: #1d6b3a;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

/* ---------- Home ---------- */

.home {
  min-height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  position: relative;
  isolation: isolate;
}

.home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/dev/prod/content/login/Edificio.jpg") center / cover no-repeat;
}

.home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 14, 32, .55) 0%, rgba(20, 14, 32, .78) 100%);
}

.home-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.home-card {
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border-radius: 20px;
  padding: 40px 32px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
  text-align: center;
}

.home-card .logo {
  width: 190px;
  max-width: 70%;
  height: auto;
  margin-bottom: 32px;
}

.home-card h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 8px;
}

.home-card p.lead {
  color: var(--ink-soft);
  margin: 0 0 28px;
  font-size: 1rem;
}

.choice {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  margin-bottom: 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  transition: border-color .15s, background .15s, transform .15s;
}

.choice:hover, .choice:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
  outline: none;
}

.choice .ico {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.35rem;
}

.choice.primary .ico { background: var(--accent); color: #fff; }

.choice strong { display: block; font-size: 1.02rem; font-weight: 700; }
.choice span.sub { display: block; font-size: .88rem; color: var(--ink-soft); margin-top: 2px; }
.choice .arrow { margin-left: auto; color: var(--ink-soft); font-size: 1.1rem; }

.home-footer {
  color: rgba(255, 255, 255, .75);
  text-align: center;
  font-size: .82rem;
  padding: 16px;
}

/* ---------- Login (pantalla dividida) ---------- */

.split {
  min-height: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.split-image {
  position: relative;
  background-color: #2a2233;
  background-position: center;
  background-size: cover;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
}

.split-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 14, 32, .35) 0%, rgba(20, 14, 32, .15) 40%, rgba(20, 14, 32, .75) 100%);
}

.split-image > * { position: relative; z-index: 1; }

.split-image .logo { width: 170px; height: auto; }

.split-image blockquote {
  margin: 0;
  max-width: 420px;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.01em;
}

.split-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--card);
}

.form-box { width: 100%; max-width: 380px; }

.form-box .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .9rem;
  margin-bottom: 32px;
}

.form-box .back:hover { color: var(--accent); }

.form-box h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -.015em;
  margin: 0 0 6px;
}

.form-box p.lead { color: var(--ink-soft); margin: 0 0 28px; }

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 6px;
}

.field .hint { font-weight: 400; color: var(--ink-soft); font-size: .82rem; }

.input-wrap { position: relative; }

.field input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.toggle-pass {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.15rem;
  padding: 6px 8px;
  cursor: pointer;
}

.row-between {
  display: flex;
  justify-content: flex-end;
  margin: -6px 0 22px;
}

.link-btn {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
}

.link-btn:hover { text-decoration: underline; }

.btn-main {
  width: 100%;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background .15s;
}

.btn-main:hover { background: var(--accent-hover); }
.btn-main:disabled { opacity: .7; cursor: wait; }

.alert {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: .92rem;
  line-height: 1.45;
  margin-bottom: 20px;
  display: none;
}

.alert.error { background: var(--error-bg); color: var(--error-ink); }
.alert.ok { background: var(--ok-bg); color: var(--ok-ink); }
.alert a { color: inherit; font-weight: 700; }

.form-foot {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--ink-soft);
  text-align: center;
}

.form-foot a { font-weight: 600; text-decoration: none; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .split-image { min-height: 200px; padding: 24px 16px; }
  .split-image blockquote { display: none; }
  .split-image .logo { width: 140px; }
  .split-form { padding: 32px 16px 40px; align-items: flex-start; }
  .form-box .back { margin-bottom: 20px; }
}

@media (max-width: 480px) {
  .home-card { padding: 32px 20px 24px; }
}

/* ---------- Preinscripcion por pasos ---------- */

.wizard-page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.wizard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
}

.wizard-top .logo { width: 130px; height: auto; display: block; }

.wizard-top .tag {
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Indicador de pasos */
.stepper {
  max-width: 980px;
  width: 100%;
  margin: 8px auto 0;
  padding: 0 24px;
}

.stepper ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.stepper li {
  flex: 1 1 0;
  position: relative;
  text-align: center;
  font-size: .75rem;
  font-weight: 600;
  color: var(--ink-soft);
  min-width: 0;
}

.stepper li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: calc(-50% + 10px);
  right: calc(50% + 10px);
  height: 2px;
  background: var(--line);
}

.stepper li:first-child::before { display: none; }
.stepper li.done::before, .stepper li.current::before { background: var(--accent); }

.stepper .dot {
  display: block;
  width: 16px;
  height: 16px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--line);
  position: relative;
  z-index: 1;
  transition: background .2s, border-color .2s, transform .2s;
}

.stepper li.done .dot { background: var(--accent); border-color: var(--accent); }
.stepper li.current .dot {
  border-color: var(--accent);
  background: var(--card);
  box-shadow: 0 0 0 4px var(--accent-soft);
  transform: scale(1.15);
}
.stepper li.current { color: var(--accent); }
.stepper li.done { color: var(--ink); }

.stepper .lbl {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 2px;
}

.stepper-mobile {
  display: none;
  font-size: .88rem;
  color: var(--ink-soft);
  margin-top: 10px;
  text-align: center;
}

.stepper-mobile strong { color: var(--accent); }

/* Tarjeta del paso */
.wizard-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 28px 16px 48px;
}

.wizard-card {
  width: 100%;
  max-width: 640px;
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(28, 24, 36, .04), 0 12px 40px rgba(28, 24, 36, .06);
  padding: 40px 40px 32px;
}

.step { display: none; }
.step.active { display: block; animation: entrar .28s ease-out; }

@keyframes entrar {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.step .kicker {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}

.step h2 {
  font-size: 1.7rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.015em;
  margin: 0 0 8px;
}

.step .help { color: var(--ink-soft); margin: 0 0 28px; line-height: 1.5; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 0 12px; }
.grid-doc { display: grid; grid-template-columns: 150px 1fr; gap: 0 16px; }

.field select,
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="password"] {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  -webkit-appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235d566b' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.field input[type="number"]::-webkit-inner-spin-button,
.field input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.field input[type="number"] { -moz-appearance: textfield; }

.field.invalid input, .field.invalid select { border-color: #d14343; }
.field .err { display: none; color: #b42318; font-size: .84rem; margin-top: 6px; }
.field.invalid .err { display: block; }

.opt { font-weight: 400; color: var(--ink-soft); font-size: .82rem; }

.note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--accent-soft);
  color: #3d2670;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: .92rem;
  line-height: 1.45;
  margin: 4px 0 18px;
}

.note i { margin-top: 1px; }
.note.warn { background: #fff4e0; color: #7a4a00; }
.note.bad { background: var(--error-bg); color: var(--error-ink); }
.note a { color: inherit; font-weight: 700; }

/* Opciones en tarjetas (nivel, turno) */
.options { display: grid; gap: 12px; }
.options.two { grid-template-columns: 1fr 1fr; }

.opt-card { position: relative; display: block; cursor: pointer; }
.opt-card input { position: absolute; opacity: 0; pointer-events: none; }

.opt-card .box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s, background .15s, box-shadow .15s;
  height: 100%;
}

.opt-card:hover .box { border-color: #c9bde3; }
.opt-card input:focus-visible + .box { box-shadow: 0 0 0 4px var(--accent-soft); }
.opt-card input:checked + .box { border-color: var(--accent); background: var(--accent-soft); }

.opt-card .ico {
  flex: 0 0 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--accent);
  font-size: 1.25rem;
}

.opt-card input:checked + .box .ico { background: var(--accent); color: #fff; }
.opt-card strong { display: block; font-size: 1rem; }
.opt-card .sub { display: block; font-size: .86rem; color: var(--ink-soft); margin-top: 2px; line-height: 1.4; }

/* Instrumentos */
.instrumentos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.inst { position: relative; cursor: pointer; display: block; }
.inst input { position: absolute; opacity: 0; pointer-events: none; }

.inst .box {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--line);
  background: #fff;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}

.inst:hover .box { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(28, 24, 36, .1); }
.inst input:focus-visible + .box { box-shadow: 0 0 0 4px var(--accent-soft); }
.inst input:checked + .box { border-color: var(--accent); }

.inst .icono {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  color: #3a3445;
  background: var(--paper);
  transition: color .15s, background .15s;
}

.inst .icono svg { width: 58%; height: auto; max-height: 82%; }
.inst .icono .bi { font-size: 2.4rem; }
.inst:hover .icono { color: var(--ink); }
.inst input:checked + .box .icono { color: var(--accent); background: var(--accent-soft); }

.inst .nombre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: .92rem;
}

.inst .check {
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: .8rem;
  background: #fff;
}

.inst input:checked + .box .check { background: var(--accent); border-color: var(--accent); }
.inst input:checked + .box .nombre { color: var(--accent); }

.contador { font-size: .9rem; color: var(--ink-soft); margin: 14px 0 0; min-height: 1.4em; }

/* Carga de archivos */
.drop {
  display: block;
  border: 2px dashed #cfc6df;
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop i { font-size: 1.8rem; color: var(--accent); }
.drop strong { display: block; margin-top: 6px; }
.drop span { display: block; font-size: .85rem; color: var(--ink-soft); margin-top: 4px; }

.archivos { list-style: none; padding: 0; margin: 12px 0 0; }
.archivos li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: .9rem;
}
.archivos li .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archivos li .s { color: var(--ink-soft); font-size: .82rem; }
.archivos li button { border: 0; background: none; color: var(--ink-soft); cursor: pointer; font-size: 1rem; padding: 2px 4px; }
.archivos li button:hover { color: #b42318; }

.check-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 22px;
  font-size: .95rem;
  cursor: pointer;
}

.check-line input { width: 20px; height: 20px; accent-color: var(--accent); margin: 1px 0 0; flex: 0 0 20px; }

/* Botones de navegacion */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.btn-ghost {
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  border: 0;
  background: none;
  color: var(--ink-soft);
  padding: 12px 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-ghost:hover { color: var(--ink); }
.btn-ghost[hidden] { display: none; }

.wizard-nav .btn-main { width: auto; padding: 14px 28px; display: inline-flex; align-items: center; gap: 8px; }

.kbd-hint { font-size: .8rem; color: var(--ink-soft); margin-right: auto; margin-left: 12px; }
.kbd-hint kbd {
  font-family: inherit;
  font-size: .75rem;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 6px;
  background: var(--paper);
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pantalla final */
.fin { text-align: center; padding: 12px 0 4px; }
.fin .ok-ico {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ok-bg);
  color: var(--ok-ink);
  font-size: 2.2rem;
}
.fin h2 { font-size: 1.8rem; font-weight: 700; letter-spacing: -.015em; margin: 0 0 12px; }
.fin p { color: var(--ink-soft); line-height: 1.55; margin: 0 auto 14px; max-width: 460px; }
.fin .btn-main { width: auto; padding: 14px 32px; text-decoration: none; display: inline-block; margin-top: 12px; }

@media (max-width: 720px) {
  .stepper .lbl { display: none; }
  .stepper li.current .lbl { display: none; }
  .stepper-mobile { display: block; }
  .wizard-card { padding: 28px 20px 24px; border-radius: 16px; }
  .step h2 { font-size: 1.4rem; }
  .instrumentos { grid-template-columns: repeat(2, 1fr); }
  .options.two { grid-template-columns: 1fr; }
  .kbd-hint { display: none; }
  .wizard-top { padding: 14px 16px; }
  .wizard-top .logo { width: 110px; }
  .stepper { padding: 0 16px; }
}

@media (max-width: 480px) {
  .grid-2, .grid-doc { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1.5fr 1.2fr; gap: 0 8px; }
}

/* Empezar de nuevo + modal de confirmacion */
.top-actions { display: flex; align-items: center; gap: 8px; }

.btn-reset {
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  border: 0;
  background: none;
  color: var(--ink-soft);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-reset:hover { color: var(--ink); background: #ece8f1; }

.modal {
  border: 0;
  border-radius: 18px;
  padding: 28px 28px 24px;
  width: calc(100% - 32px);
  max-width: 400px;
  text-align: center;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}

.modal::backdrop { background: rgba(20, 14, 32, .45); }

.modal-ico {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--error-bg);
  color: var(--error-ink);
  font-size: 1.4rem;
}

.modal h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 8px; }
.modal p { color: var(--ink-soft); margin: 0 0 22px; line-height: 1.5; }
.modal-btns { display: flex; gap: 10px; }
.modal-btns > * { flex: 1; }

.btn-sec {
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.btn-sec:hover { border-color: #c9bde3; }
.btn-danger { background: #c0392b; }
.btn-danger:hover { background: #a93226; }

@media (max-width: 480px) {
  .btn-reset span { display: none; }
  .btn-reset { padding: 8px; font-size: 1.05rem; }
}

/* Recuperar contraseña */
.sent-ico {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.9rem;
  margin-bottom: 22px;
}

.note-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--paper);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.btn-link { display: block; text-align: center; text-decoration: none; }

/* Selector con buscador (pais / provincia) */
.combo { position: relative; }

.field .combo input.combo-input {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235d566b' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.combo-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 260px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(28, 24, 36, .14);
}

.combo-opt {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: .95rem;
}

.combo-opt.hl { background: var(--accent-soft); }
.combo-opt.sel { font-weight: 700; color: var(--accent); }
.combo-empty { padding: 10px 12px; color: var(--ink-soft); font-size: .9rem; }

/* Nivel superior */
.sup-bloque { margin-bottom: 22px; }
.sup-bloque h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 4px;
}
.sup-bloque .req { font-size: .86rem; color: var(--ink-soft); margin: 0 0 12px; }
.sup-bloque + .sup-bloque { padding-top: 20px; border-top: 1px solid var(--line); }
.options.tres { grid-template-columns: repeat(3, 1fr); }
.options.tres .opt-card .box { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
.options.tres .opt-card .ico { flex: 0 0 auto; width: 36px; height: 36px; font-size: 1.05rem; }
.modo-carrera { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.modo-carrera .mini { width: 34px; height: 34px; flex: 0 0 34px; color: var(--ink); }
.modo-carrera .mini svg { width: 100%; height: 100%; }
.modo-carrera strong { display: block; font-size: 1rem; }
.modo-carrera span { display: block; font-size: .84rem; color: var(--ink-soft); }
.instrumentos.compactos { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.instrumentos.compactos .nombre { font-size: .84rem; padding: 8px 10px; }
.instrumentos.compactos .check { flex-basis: 18px; height: 18px; font-size: .7rem; }

@media (max-width: 720px) {
  .options.tres { grid-template-columns: 1fr; }
  .options.tres .opt-card .box { flex-direction: row; align-items: center; }
  .instrumentos.compactos { grid-template-columns: repeat(2, 1fr); }
}
.siu-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  max-width: 460px;
  margin: 8px auto 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: #3d2670;
  line-height: 1.5;
  font-size: .95rem;
}
.siu-box i { font-size: 1.2rem; margin-top: 1px; }
.fin .btn-siu { font-size: 1.05rem; padding: 16px 32px; display: inline-flex; align-items: center; gap: 10px; margin: 4px 0 18px; }

/* Cursos de extension */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.h2-chico { font-size: 1.35rem !important; margin-bottom: 20px !important; }
.ext-sep { height: 1px; background: var(--line); margin: 32px 0 28px; }

.ext-buscar .input-wrap i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-soft);
}
.ext-buscar input[type="text"] { padding-left: 40px !important; }

.ext-lista {
  display: grid;
  gap: 8px;
  max-height: 440px;
  overflow-y: auto;
  padding: 2px;
  margin: 0 -2px;
}

.ext-curso {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.ext-curso:hover { border-color: #c9bde3; }
.ext-curso input { position: absolute; opacity: 0; pointer-events: none; }
.ext-curso .check {
  flex: 0 0 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line);
  display: grid; place-items: center; color: #fff; font-size: .8rem; background: #fff;
}
.ext-curso.sel { border-color: var(--accent); background: var(--accent-soft); }
.ext-curso.sel .check { background: var(--accent); border-color: var(--accent); }
.ext-curso .des { font-size: .95rem; line-height: 1.35; }
.ext-curso:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--accent-soft); }
.ext-vacio { color: var(--ink-soft); font-size: .92rem; padding: 8px 2px; }

.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  resize: vertical;
  color: var(--ink);
}
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.ext-resumen { list-style: none; padding: 0; margin: 0 auto 18px; max-width: 420px; text-align: left; }
.ext-resumen li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; color: var(--ink);
}
.ext-resumen li i { color: var(--accent); margin-top: 2px; }
.btn-ghost { text-decoration: none; }

/* SIU Guarani */
:root { --siu: #1f6fd1; --siu-hover: #1a5fb4; }

.sep-linea { height: 1px; background: var(--line); margin: 20px 0 20px; }

.choice.siu {
  background: var(--siu);
  border-color: var(--siu);
  color: #fff;
  margin-bottom: 0;
}
.choice.siu:hover, .choice.siu:focus-visible { background: var(--siu-hover); border-color: var(--siu-hover); }
.choice.siu .ico { background: #fff; }
.choice.siu .ico img { display: block; }
.choice.siu .sub, .choice.siu .arrow { color: rgba(255, 255, 255, .85); }

.links-login { flex-direction: column; align-items: flex-end; gap: 10px; }
.link-siu {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--siu);
  text-decoration: none;
}
.link-siu:hover { text-decoration: underline; }
.link-siu img { border-radius: 3px; }
.link-siu .bi { font-size: .78rem; }
.foot-siu { margin-top: 14px; }

/* Home: titulo de grupo y boton deshabilitado */
.grupo-titulo {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: left;
  margin: 0 0 10px 2px;
}
.choice.disabled { cursor: not-allowed; opacity: .6; background: var(--paper); }
.choice.disabled:hover { transform: none; border-color: var(--line); background: var(--paper); }
.choice.disabled .ico { background: #e6e2ec; color: var(--ink-soft); }
.grupo-titulo { margin-bottom: 4px; }
.grupo-sub { font-size: .86rem; line-height: 1.45; color: var(--ink-soft); text-align: left; margin: 0 0 12px 2px; }
.foot-siu { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.foot-siu .grupo-titulo, .foot-siu .grupo-sub { text-align: center; margin-left: 0; }

/* Home: pie con links institucionales (discreto, sobre la foto) */
.pie {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  flex-wrap: wrap;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 24px 18px;
  font-size: .82rem;
}
.pie a { color: rgba(255, 255, 255, .78); text-decoration: none; transition: color .15s; }
.pie a:hover, .pie a:focus-visible { color: #fff; text-decoration: underline; }
.pie-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pie-redes { display: flex; gap: 16px; font-size: 1.05rem; }
.pie-redes a:hover { text-decoration: none; }

@media (max-width: 720px) {
  .pie { justify-content: center; text-align: center; padding: 12px 16px 18px; }
  .pie-links { justify-content: center; gap: 6px 14px; }
}

/* Mis datos */
.perfil-box {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 12px; background: var(--paper); margin: 4px 0 8px;
}
.perfil-ico {
  flex: 0 0 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 1.3rem;
}
.perfil-box strong { display: block; font-size: 1.05rem; }
.perfil-box span { color: var(--ink-soft); font-size: .9rem; }
.perfil-nota { font-size: .84rem; color: var(--ink-soft); margin: 0 0 26px; }
.sup-bloque h3 .opt { font-weight: 400; }
.grid-3.redes { grid-template-columns: 1fr 1fr 1fr; }
input:disabled, select:disabled { background: var(--paper) !important; color: var(--ink-soft) !important; cursor: not-allowed; }
@media (max-width: 600px) { .grid-3.redes { grid-template-columns: 1fr; } }
