/* =========================================================
   Entregas de cursos · diseño blanco
   ========================================================= */
:root {
  --fondo: #f5f6f8;
  --hoja: #ffffff;
  --tinta: #121621;
  --tinta-2: #353b4a;
  --tenue: #6b7385;
  --linea: #e6e8ee;
  --linea-2: #f0f1f5;
  --acento: #4a58dd;
  --acento-2: #3b48c4;
  --acento-suave: #eef0fd;
  --ok: #128a48;
  --ok-suave: #e7f6ee;
  --aviso: #b26a00;
  --aviso-suave: #fff4e0;
  --mal: #cf2d22;
  --mal-suave: #fdecea;
  --r-xl: 18px;
  --r-lg: 14px;
  --r: 10px;
  --sombra: 0 1px 2px rgba(18, 22, 33, .04), 0 4px 16px rgba(18, 22, 33, .04);
  --sombra-alta: 0 12px 40px rgba(18, 22, 33, .14);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fondo); color: var(--tinta);
  font: 14.5px/1.55 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--acento); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; margin: 0; }
h2 { font-size: 1.02rem; font-weight: 700; margin: 0 0 .35rem; letter-spacing: -.01em; }
h3 { font-size: .95rem; font-weight: 700; margin: 0; }
p { margin: 0 0 .75rem; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .85em; background: var(--linea-2); padding: .12em .4em; border-radius: 6px; word-break: break-all; }
small { display: block; color: var(--tenue); font-size: .8rem; font-weight: 400; }
.tenue { color: var(--tenue); }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ico { flex: none; display: inline-block; vertical-align: middle; }
:focus-visible { outline: 3px solid rgba(74, 88, 221, .35); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }

/* ---------- Marco ---------- */
.marco { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.lateral {
  background: var(--hoja); border-right: 1px solid var(--linea);
  padding: 1.25rem .9rem; display: flex; flex-direction: column; gap: 1.5rem;
  position: sticky; top: 0; height: 100vh;
}
.marca { display: flex; align-items: center; gap: .65rem; color: var(--tinta); font-weight: 800; font-size: 1.05rem; padding: .25rem .5rem; text-decoration: none !important; }
.marca small { font-weight: 500; font-size: .75rem; color: var(--tenue); }
.marca-logo { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--acento); color: #fff; }
.lateral nav { display: flex; flex-direction: column; gap: 2px; }
.lateral nav a {
  display: flex; align-items: center; gap: .7rem; color: var(--tinta-2); font-weight: 500;
  padding: .62rem .75rem; border-radius: var(--r); text-decoration: none;
}
.lateral nav a .ico { color: var(--tenue); }
.lateral nav a:hover { background: var(--linea-2); }
.lateral nav a.activo { background: var(--acento-suave); color: var(--acento); font-weight: 650; }
.lateral nav a.activo .ico { color: var(--acento); }
.lateral nav a span { flex: 1; }
.globo { background: var(--aviso); color: #fff; border-radius: 99px; font-size: .72rem; padding: .05rem .5rem; font-weight: 700; }
.quien { margin-top: auto; display: flex; align-items: center; gap: .6rem; padding: .7rem; border: 1px solid var(--linea); border-radius: var(--r-lg); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--acento-suave); color: var(--acento); display: grid; place-items: center; font-weight: 700; flex: none; }
.quien-nombre { flex: 1; min-width: 0; font-weight: 600; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.boton-icono { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--tenue); border: 0; background: none; cursor: pointer; }
.boton-icono:hover { background: var(--linea-2); color: var(--tinta); text-decoration: none; }
.boton-icono.peligro:hover { background: var(--mal-suave); color: var(--mal); }
.boton-icono:disabled { opacity: .3; cursor: default; background: none; }

.contenido { padding: 2rem clamp(1rem, 3vw, 2.75rem) 4rem; max-width: 1240px; width: 100%; margin: 0 auto; }
.encabezado { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.encabezado p { margin: .3rem 0 0; color: var(--tenue); }
.volver { display: inline-flex; align-items: center; gap: .2rem; font-size: .85rem; color: var(--tenue); font-weight: 500; margin-bottom: .35rem; }
.volver:hover { color: var(--acento); text-decoration: none; }
.volver::before { content: ""; width: 7px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: .25rem; }
.acciones, .fila-botones { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.intro { max-width: 72ch; color: var(--tenue); margin: -.75rem 0 1.5rem; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border: 1px solid var(--acento); background: var(--acento); color: #fff;
  font: inherit; font-weight: 650; font-size: .9rem; padding: .62rem 1.05rem; border-radius: var(--r);
  cursor: pointer; text-decoration: none !important; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(74, 88, 221, .25); transition: background .15s, border-color .15s, box-shadow .15s;
}
.boton:hover { background: var(--acento-2); border-color: var(--acento-2); }
.boton:disabled { opacity: .5; cursor: not-allowed; }
.boton-suave { background: var(--hoja); color: var(--tinta); border-color: var(--linea); box-shadow: 0 1px 2px rgba(18, 22, 33, .05); }
.boton-suave:hover { background: var(--linea-2); border-color: var(--linea); }
.boton-grande { padding: .8rem 1.3rem; font-size: .95rem; width: 100%; }
.boton-chico { padding: .4rem .7rem; font-size: .82rem; }
.enlace { background: none; border: 0; padding: 0; color: var(--acento); font: inherit; font-weight: 600; cursor: pointer; }
.enlace-peligro { background: none; border: 0; padding: 0; color: var(--mal); font: inherit; font-weight: 600; cursor: pointer; }
.enlace-peligro:hover, .enlace:hover { text-decoration: underline; }

/* ---------- Formularios ---------- */
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--tinta); background: var(--hoja); width: 100%;
  border: 1px solid var(--linea); border-radius: var(--r); padding: .65rem .8rem; margin-top: .4rem;
  transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: #d4d7e0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 4px rgba(74, 88, 221, .12); }
input::placeholder, textarea::placeholder { color: #a3a9b7; }
textarea { resize: vertical; line-height: 1.55; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7385' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2.2rem; }
input[type=checkbox] { width: 18px; height: 18px; margin: 0 .55rem 0 0; accent-color: var(--acento); flex: none; }
input[type=file] { padding: .5rem; }
label { display: block; font-weight: 600; font-size: .86rem; color: var(--tinta-2); }
label small { margin-top: .35rem; }
label.check { display: flex; align-items: center; font-weight: 500; cursor: pointer; }
.etiqueta-campo { font-weight: 600; font-size: .86rem; margin: 0 0 .4rem; color: var(--tinta-2); }
.pila { display: flex; flex-direction: column; gap: 1.05rem; }
.angosto { max-width: 560px; }
hr { border: 0; border-top: 1px solid var(--linea); width: 100%; margin: .5rem 0; }
.rejilla-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ---------- Tarjetas ---------- */
.bloque { background: var(--hoja); border: 1px solid var(--linea); border-radius: var(--r-xl); padding: 1.5rem; box-shadow: var(--sombra); }
.bloque-cabeza { display: flex; align-items: flex-start; gap: .9rem; margin-bottom: 1.15rem; }
.bloque-cabeza p { margin: .15rem 0 0; color: var(--tenue); font-size: .88rem; }
.ficha-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--acento-suave); color: var(--acento); flex: none; }
.ficha-ico.verde { background: var(--ok-suave); color: var(--ok); }
.ficha-ico.ambar { background: var(--aviso-suave); color: var(--aviso); }
.ficha-ico.rojo { background: var(--mal-suave); color: var(--mal); }
.dos-columnas { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.columnas-7-5 { display: grid; grid-template-columns: 7fr 5fr; gap: 1.25rem; align-items: start; }
.secciones { display: flex; flex-direction: column; gap: 1.25rem; }

/* ---------- Avisos ---------- */
.toast {
  display: flex; align-items: flex-start; gap: .65rem; padding: .85rem 1rem; border-radius: var(--r-lg);
  margin: 0 0 1.25rem; border: 1px solid; font-weight: 500; animation: entrar .25s ease-out;
}
.toast span { flex: 1; }
.toast-ok { background: var(--ok-suave); border-color: #c4ebd5; color: #0d5f33; }
.toast-mal { background: var(--mal-suave); border-color: #f7cdc9; color: #8f1d15; }
.toast-cerrar { background: none; border: 0; font-size: 1.3rem; line-height: 1; color: inherit; opacity: .6; cursor: pointer; padding: 0 .2rem; }
@keyframes entrar { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }
.nota { padding: .8rem 1rem; border-radius: var(--r-lg); margin: 0 0 1.25rem; border: 1px solid; }
.nota-ok { background: var(--ok-suave); border-color: #c4ebd5; color: #0d5f33; }
.nota-mal { background: var(--mal-suave); border-color: #f7cdc9; color: #8f1d15; }
.nota-falta { background: var(--aviso-suave); border-color: #f6dfb2; color: #7a4a00; }

/* ---------- Chips ---------- */
.chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; font-weight: 650; padding: .2rem .65rem; border-radius: 99px; white-space: nowrap; }
.chip-ok { background: var(--ok-suave); color: var(--ok); }
.chip-mal { background: var(--mal-suave); color: var(--mal); }
.chip-falta { background: var(--aviso-suave); color: var(--aviso); }
.chip-neutro { background: var(--linea-2); color: var(--tenue); }
.chip-acento { background: var(--acento-suave); color: var(--acento); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.sin-punto::before { display: none; }

/* ---------- Resumen (Entregas) ---------- */
.cifras { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.cifras > * { background: var(--hoja); border: 1px solid var(--linea); border-radius: var(--r-xl); padding: 1.1rem 1.2rem; box-shadow: var(--sombra); color: inherit; text-decoration: none !important; }
.cifras b { display: block; font-size: 1.85rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cifras span { color: var(--tenue); font-size: .82rem; }
.cifras .alerta { background: var(--aviso-suave); border-color: #f6dfb2; }
.cifras .alerta b { color: var(--aviso); }
.cifras a:hover { border-color: #d4d7e0; }

.filtros { display: grid; grid-template-columns: 2fr 1.3fr 1.1fr 1fr auto; gap: .6rem; margin-bottom: 1rem; align-items: center; }
.filtros input, .filtros select { margin: 0; }

/* ---------- Tablas ---------- */
.tabla-envoltura { overflow-x: auto; background: var(--hoja); border: 1px solid var(--linea); border-radius: var(--r-xl); box-shadow: var(--sombra); }
.tabla { width: 100%; border-collapse: collapse; }
.tabla th { text-align: left; font-size: .76rem; font-weight: 650; color: var(--tenue); padding: .85rem 1.1rem; background: #fafbfc; border-bottom: 1px solid var(--linea); white-space: nowrap; }
.tabla td { padding: .85rem 1.1rem; border-bottom: 1px solid var(--linea-2); vertical-align: middle; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla tbody tr[data-href] { cursor: pointer; }
.tabla tbody tr:hover { background: #fafbff; }
.tabla .apagado { opacity: .55; }
.tabla small { margin-top: .1rem; }
.fuerte { font-weight: 650; color: var(--tinta); }
.fuerte:hover { color: var(--acento); text-decoration: none; }

.rastro { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.rastro li { width: 12px; height: 12px; border-radius: 50%; background: var(--hoja); border: 2px solid #d5d9e2; position: relative; flex: none; }
.rastro li + li { margin-left: 16px; }
.rastro li + li::before { content: ""; position: absolute; right: 100%; top: 50%; width: 18px; height: 2px; background: #d5d9e2; transform: translateY(-50%); }
.rastro li.hecho { background: var(--acento); border-color: var(--acento); }
.rastro li.hecho + li.hecho::before { background: var(--acento); }
.rastro li.mal { background: var(--mal); border-color: var(--mal); }
.leyenda { font-size: .8rem; color: var(--tenue); display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; margin-top: .9rem; }
.leyenda .p { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #d5d9e2; display: inline-block; margin-left: .4rem; }
.leyenda .p.hecho { background: var(--acento); border-color: var(--acento); }
.leyenda .p.mal { background: var(--mal); border-color: var(--mal); }

.vacio { background: var(--hoja); border: 1.5px dashed #d5d9e2; border-radius: var(--r-xl); padding: 2.5rem 2rem; text-align: center; }
.vacio p { margin: .3rem auto; max-width: 52ch; }
.vacio .ficha-ico { margin: 0 auto .8rem; width: 48px; height: 48px; }
.paginas { display: flex; gap: 1rem; margin: 1rem 0; }

/* ---------- Ficha de entrega ---------- */
.pasos-grandes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.pasos-grandes > div { background: var(--hoja); border: 1px solid var(--linea); border-radius: var(--r-xl); padding: 1rem 1.1rem; box-shadow: var(--sombra); position: relative; overflow: hidden; }
.pasos-grandes > div::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--linea); }
.pasos-grandes > div.hecho::before { background: var(--acento); }
.pasos-grandes span { display: block; font-size: .78rem; color: var(--tenue); font-weight: 600; }
.pasos-grandes b { display: block; font-size: 1.05rem; margin-top: .15rem; }
.historial { list-style: none; margin: 0; padding: 0; }
.historial li { padding: .45rem 0 .75rem 1.4rem; position: relative; font-size: .9rem; border-left: 2px solid var(--linea-2); margin-left: 5px; }
.historial li::before { content: ""; position: absolute; left: -7px; top: .6rem; width: 12px; height: 12px; border-radius: 50%; background: var(--hoja); border: 2px solid #d5d9e2; }
.historial .h-apertura::before, .historial .h-clic::before { border-color: var(--acento); background: var(--acento); }
.historial .h-correo::before { border-color: var(--ok); }
.historial time { display: block; color: var(--tenue); font-size: .76rem; }
.borrar { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--linea-2); }

/* ---------- Copiar ---------- */
.copiable { display: flex; gap: .5rem; align-items: stretch; margin: 0; }
.copiable code { flex: 1; padding: .7rem .85rem; background: var(--fondo); border: 1px solid var(--linea); border-radius: var(--r); display: flex; align-items: center; font-size: .82rem; }

/* ---------- Pestañas (segmentos) ---------- */
.pestanas { display: inline-flex; gap: 2px; padding: 4px; background: var(--linea-2); border-radius: 12px; margin-bottom: 1.25rem; flex-wrap: wrap; }
.pestanas a, .pestanas button {
  display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border-radius: 9px; border: 0; background: none;
  color: var(--tenue); font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; text-decoration: none !important;
}
.pestanas a:hover, .pestanas button:hover { color: var(--tinta); }
.pestanas .activo { background: var(--hoja); color: var(--tinta); box-shadow: 0 1px 3px rgba(18, 22, 33, .1); }
.pestanas small { display: inline; background: var(--linea); color: var(--tinta-2); border-radius: 99px; padding: 0 .45rem; font-weight: 700; font-size: .72rem; }

/* ---------- Desplegables ---------- */
.desplegable { border: 1px solid var(--linea); border-radius: var(--r-lg); background: var(--hoja); }
.desplegable > summary { cursor: pointer; font-weight: 650; padding: .9rem 1.1rem; list-style: none; display: flex; align-items: center; gap: .6rem; }
.desplegable > summary::-webkit-details-marker { display: none; }
.desplegable > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--tenue); border-bottom: 2px solid var(--tenue); transform: rotate(45deg); transition: transform .2s; }
.desplegable[open] > summary::after { transform: rotate(-135deg); }
.desplegable > :not(summary) { padding: 0 1.1rem 1.1rem; }

/* ---------- Ventana modal ---------- */
dialog.modal { border: 0; padding: 0; border-radius: var(--r-xl); box-shadow: var(--sombra-alta); width: min(520px, calc(100vw - 2rem)); color: var(--tinta); }
dialog.modal::backdrop { background: rgba(18, 22, 33, .4); backdrop-filter: blur(2px); }
.modal-cabeza { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--linea-2); }
.modal-cuerpo { padding: 1.4rem; }
.modal-pie { display: flex; justify-content: flex-end; gap: .6rem; padding: 1rem 1.4rem; border-top: 1px solid var(--linea-2); background: #fafbfc; border-radius: 0 0 var(--r-xl) var(--r-xl); }

/* ---------- Páginas públicas y acceso ---------- */
.acceso { display: grid; place-items: center; min-height: 100vh; padding: 1.25rem; background: radial-gradient(1200px 500px at 50% -10%, #e9ecff 0%, var(--fondo) 60%); }
.caja-acceso { width: 100%; max-width: 420px; background: var(--hoja); border: 1px solid var(--linea); border-radius: 22px; padding: 2rem; box-shadow: var(--sombra-alta); }
.caja-acceso h1 { font-size: 1.45rem; margin-bottom: .4rem; }
.caja-ancha { max-width: 480px; }
.caja-acceso .marca { padding: 0; margin-bottom: 1.4rem; }
.exito-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-suave); color: var(--ok); margin-bottom: 1rem; }
.avance-inst { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: flex; gap: .4rem; font-size: .8rem; counter-reset: i; }
.avance-inst li { flex: 1; border-top: 4px solid var(--linea); padding-top: .45rem; color: var(--tenue); counter-increment: i; border-radius: 2px; }
.avance-inst li::before { content: counter(i) ". "; }
.avance-inst li.actual { border-color: var(--acento); color: var(--tinta); font-weight: 650; }
.avance-inst li.hecho { border-color: var(--acento); }

/* ---------- Conexiones ---------- */
.estados { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.estado { display: flex; align-items: center; gap: .85rem; background: var(--hoja); border: 1px solid var(--linea); border-radius: var(--r-xl); padding: 1rem 1.1rem; box-shadow: var(--sombra); }
.estado b { display: block; font-size: .95rem; }
.estado small { margin: 0; }
.burbuja-chat { background: #efeae2; border-radius: var(--r-lg); padding: 1rem; }
.burbuja { position: relative; background: #fff; border-radius: 12px 12px 12px 4px; padding: .7rem .85rem 1.3rem; max-width: 92%; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); font-size: .9rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.burbuja::after { content: "12:00 ✓✓"; position: absolute; right: .6rem; bottom: .3rem; font-size: .68rem; color: #8a94a6; }
.burbuja mark { background: var(--acento-suave); color: var(--acento); border-radius: 4px; padding: 0 .25rem; font-weight: 650; }
.burbuja .pie-burbuja { display: block; color: #8a94a6; font-size: .78rem; margin-top: .35rem; }
.pasos-num { list-style: none; counter-reset: n; padding: 0; margin: 0 0 1.1rem; display: grid; gap: .55rem; }
.pasos-num li { counter-increment: n; display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; }
.pasos-num li::before { content: counter(n); width: 24px; height: 24px; border-radius: 50%; background: var(--acento-suave); color: var(--acento); font-weight: 700; font-size: .78rem; display: grid; place-items: center; flex: none; }
.fila-enlace { display: grid; grid-template-columns: 2fr 1fr auto; gap: .75rem; align-items: end; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--linea-2); }
.fila-usuario { display: flex; justify-content: space-between; align-items: center; gap: .7rem; padding: .65rem 0; border-bottom: 1px solid var(--linea-2); }
.fila-usuario:last-of-type { border-bottom: 0; }
.fila-usuario .usuario-nombre { flex: 1; min-width: 0; }
.estado-campo { display: inline-flex; font-size: .74rem; font-weight: 650; color: var(--ok); background: var(--ok-suave); border-radius: 99px; padding: .05rem .5rem; margin-left: .4rem; vertical-align: middle; }

/* ---------- Cursos ---------- */
.cursos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1rem; }
.curso-card { display: flex; flex-direction: column; gap: .9rem; background: var(--hoja); border: 1px solid var(--linea); border-radius: var(--r-xl); padding: 1.25rem; box-shadow: var(--sombra); color: inherit; text-decoration: none !important; transition: border-color .15s, box-shadow .15s, transform .15s; }
.curso-card:hover { border-color: #cfd4ff; box-shadow: 0 8px 24px rgba(74, 88, 221, .1); transform: translateY(-1px); }
.curso-card.apagado { opacity: .6; }
.curso-cabeza { display: flex; gap: .8rem; align-items: center; }
.curso-letra { width: 44px; height: 44px; border-radius: 13px; background: var(--acento-suave); color: var(--acento); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; flex: none; }
.curso-card h3 { font-size: 1rem; line-height: 1.3; }
.curso-datos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; padding-top: .9rem; border-top: 1px solid var(--linea-2); }
.curso-datos b { display: block; font-size: 1.1rem; }
.curso-datos span { font-size: .74rem; color: var(--tenue); }
.curso-nuevo { border: 1.5px dashed #cfd4ff; background: #fafbff; box-shadow: none; align-items: center; justify-content: center; text-align: center; min-height: 170px; color: var(--acento); font-weight: 650; }
.curso-nuevo .ficha-ico { width: 46px; height: 46px; border-radius: 50%; }

.materiales { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.material { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border: 1px solid var(--linea); border-radius: var(--r-lg); background: var(--hoja); transition: border-color .15s; }
.material:hover { border-color: #d4d7e0; }
.mat-tipo { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex: none; font-size: .62rem; font-weight: 800; letter-spacing: .02em; }
.mat-tipo.t-archivo { background: #eef3ff; color: #3554d1; }
.mat-tipo.t-pdf { background: #fdecea; color: #c2271d; }
.mat-tipo.t-ppt { background: #fff1e6; color: #c25500; }
.mat-tipo.t-xls { background: #e7f6ee; color: #12753e; }
.mat-tipo.t-doc { background: #e9f0ff; color: #2b5bd7; }
.mat-tipo.t-img { background: #f3ecff; color: #7342d6; }
.mat-tipo.t-video { background: #ffeceb; color: #e0251b; }
.mat-tipo.t-enlace { background: var(--linea-2); color: var(--tinta-2); }
.mat-datos { flex: 1; min-width: 0; }
.mat-datos form { margin: 0; }
.mat-datos input { margin: 0; padding: .25rem .45rem; border-color: transparent; background: transparent; font-weight: 650; border-radius: 7px; }
.mat-datos input:hover { border-color: var(--linea); }
.mat-datos input:focus { background: var(--hoja); }
.mat-datos small { padding-left: .45rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mat-acciones { display: flex; gap: .15rem; }
.mat-acciones form { margin: 0; }
.mat-acciones .boton-icono { width: 32px; height: 32px; }

.agregar .pestanas { display: flex; width: 100%; }
.agregar .pestanas button { flex: 1; justify-content: center; }
.zona-subir { position: relative; border: 2px dashed #cfd4ff; border-radius: var(--r-lg); background: #fafbff; padding: 1.6rem 1rem; text-align: center; transition: background .15s, border-color .15s; cursor: pointer; }
.zona-subir:hover, .zona-subir.encima { background: var(--acento-suave); border-color: var(--acento); }
.zona-subir input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.zona-subir .ficha-ico { margin: 0 auto .6rem; width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: var(--sombra); }
.zona-subir b { display: block; }
.lista-elegidos { list-style: none; margin: .75rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; text-align: left; }
.lista-elegidos li { display: flex; justify-content: space-between; gap: .5rem; font-size: .84rem; padding: .45rem .65rem; border-radius: 8px; background: var(--linea-2); }
.lista-elegidos li.rechazado { background: var(--mal-suave); color: var(--mal); }
.aviso-video { display: flex; gap: .65rem; align-items: flex-start; background: var(--aviso-suave); border: 1px solid #f6dfb2; color: #6b4100; padding: .8rem .9rem; border-radius: var(--r-lg); font-size: .86rem; }
.aviso-video .ico { color: var(--aviso); margin-top: .1rem; }
.vista-video { display: flex; gap: .8rem; align-items: center; padding: .6rem; border: 1px solid var(--linea); border-radius: var(--r-lg); }
.vista-video img { width: 120px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; background: var(--linea-2); }
.vista-correo { width: 100%; height: 640px; border: 1px solid var(--linea); border-radius: var(--r-lg); background: #eef0f4; }
.zona-peligro { margin-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.25rem; border: 1px solid #f7cdc9; border-radius: var(--r-lg); background: #fffafa; }
.zona-peligro p { margin: 0; font-size: .88rem; }

/* ---------- Plantillas ---------- */
.en-uso { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.75rem; }
.en-uso .bloque { display: flex; gap: .9rem; align-items: flex-start; padding: 1.2rem 1.3rem; }
.en-uso .uso-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.en-uso .uso-texto > span { font-size: .78rem; color: var(--tenue); font-weight: 600; }
.en-uso b { font-size: 1rem; }
.en-uso .chip { align-self: flex-start; }
.seccion-titulo { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 .9rem; }
.seccion-titulo h2 { margin: 0; }
.plantillas { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; align-items: start; }
.plantilla { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.plantilla > header { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; padding: 1rem 1.2rem .8rem; }
.plantilla > header b { flex-basis: 100%; font-size: .95rem; word-break: break-all; }
.plantilla .burbuja-chat { border-radius: 0; flex: 1; }
.plantilla > footer { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .85rem 1.2rem; border-top: 1px solid var(--linea-2); }
.var-fila { display: grid; grid-template-columns: 70px 1fr; gap: .6rem; align-items: center; }
.var-fila > span { font-weight: 700; color: var(--acento); background: var(--acento-suave); border-radius: 8px; text-align: center; padding: .55rem 0; margin-top: .4rem; font-size: .85rem; }
.var-fila .fijo { grid-column: 2; }

/* ---------- Varios ---------- */
.lista-pendientes { margin: 0 0 1.25rem; padding: 1rem 1.2rem; background: var(--aviso-suave); border: 1px solid #f6dfb2; border-radius: var(--r-xl); }
.lista-pendientes p { margin: 0 0 .4rem; font-weight: 700; color: #6b4100; }
.lista-pendientes ul { margin: 0; padding-left: 1.2rem; color: #6b4100; }
.avisos details { background: var(--hoja); border: 1px solid var(--linea); border-radius: var(--r-lg); margin-bottom: .5rem; }
.avisos summary { padding: .7rem 1rem; cursor: pointer; display: flex; gap: 1rem; flex-wrap: wrap; align-items: baseline; }
.avisos pre { margin: 0; padding: 1rem; border-top: 1px solid var(--linea); overflow-x: auto; font-size: .8rem; background: var(--fondo); }

/* ---------- Móvil ---------- */
@media (max-width: 1100px) {
  .cifras { grid-template-columns: repeat(3, 1fr); }
  .columnas-7-5 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .dos-columnas, .estados, .en-uso { grid-template-columns: 1fr; }
  .filtros { grid-template-columns: 1fr 1fr; }
  .filtros input { grid-column: span 2; }
  .pasos-grandes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .marco { grid-template-columns: 1fr; }
  .lateral { position: sticky; z-index: 5; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: .7rem .9rem; gap: .5rem; border-right: 0; border-bottom: 1px solid var(--linea); }
  .lateral nav { flex-direction: row; overflow-x: auto; width: 100%; order: 3; gap: .25rem; }
  .lateral nav a { white-space: nowrap; padding: .5rem .7rem; }
  .quien { margin: 0 0 0 auto; padding: .3rem; border: 0; }
  .quien-nombre { display: none; }
  .cifras { grid-template-columns: 1fr 1fr; }
  .rejilla-2, .fila-enlace { grid-template-columns: 1fr; }
  .contenido { padding-top: 1.25rem; }
}
.boton-burbuja { max-width: 92%; margin-top: 4px; background: #fff; border-radius: 10px; padding: .55rem; text-align: center; color: #0a7cff; font-weight: 600; font-size: .88rem; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); display: flex; align-items: center; justify-content: center; gap: .35rem; }
