/* Creador de actividades del docente (creador.js) */
#vista-creador[hidden] { display: none; }
.cur-crear { text-decoration: none; background: #e7f0ff !important; }
.cur-head-btns { flex-wrap: wrap; justify-content: flex-end; }
.cr-link { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; }
.cr-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 16px; }
.cr-barra .big-btn { font-size: 1.05rem; padding: 12px 18px; }
.cr-aviso { margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; background: #e3f6ea; color: #14603a; font-weight: 700; }
.cr-lista { display: flex; flex-direction: column; gap: 10px; }
.cr-act { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: #fffdf7; color: #1c2433; }
.cr-act-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #f1eee4; font-size: 1.5rem; }
.cr-act-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cr-act-txt b { font: 800 1.05rem "Montserrat", sans-serif; }
.cr-act-txt small { color: #6b7385; font-size: .78rem; }
.cr-act-est { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .8rem; color: #3a4252; font-weight: 600; }
.cr-act-est em { font-style: normal; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.cr-pub { background: #e3f6ea; color: #1f8a4c; }
.cr-borr { background: #fff1d6; color: #9a6200; }
.cr-act-btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 360px; }
.cr-act-btns .user-out { background: #f1eee4; }
.cr-borrar { color: #c0392b !important; }
@media (max-width: 760px) { .cr-act { grid-template-columns: auto minmax(0, 1fr); } .cr-act-btns { grid-column: 1 / -1; justify-content: flex-start; max-width: none; } }
.cr-guia { padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, .1); }
.cr-guia h2 { margin: 0 0 8px; font: 800 1.3rem "Baloo 2", sans-serif; }
.cr-guia ol { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; }
.cr-guia p { margin: 0; opacity: .85; font-size: .88rem; }

.cr-tipos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.cr-tipo { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 2px solid transparent; border-radius: 18px; background: #fffdf7; color: #1c2433; text-align: left; cursor: pointer; font: 500 .86rem "Montserrat", sans-serif; transition: transform .15s, border-color .15s; }
.cr-tipo:hover, .cr-tipo:focus-visible { transform: translateY(-3px); border-color: #fb8500; outline: none; }
.cr-tipo-ico { font-size: 1.8rem; }
.cr-tipo b { font: 800 1.05rem "Montserrat", sans-serif; }
.cr-tipo small { color: #6b7385; font-style: italic; }

.cr-editor { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .cr-editor { grid-template-columns: 1fr; } }
.cr-pasos { position: sticky; top: 12px; padding: 16px 18px; border-radius: 18px; background: #1c2433; color: #fff; }
.cr-pasos h2 { margin: 0 0 8px; font: 800 1.2rem "Baloo 2", sans-serif; color: #ffd166; }
.cr-pasos h3 { margin: 14px 0 6px; font: 800 .8rem "Montserrat", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #ffd166; }
.cr-pasos ol, .cr-pasos ul { margin: 0; padding-left: 20px; display: grid; gap: 7px; font-size: .86rem; line-height: 1.45; }
@media (max-width: 860px) { .cr-pasos { position: static; } }
.cr-form { display: flex; flex-direction: column; gap: 14px; }
.cr-paso { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: 18px; background: #fffdf7; color: #1c2433; }
.cr-paso h2 { display: flex; align-items: center; gap: 10px; margin: 0; font: 800 1.15rem "Baloo 2", sans-serif; }
.cr-paso h2 span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fb8500; color: #1c1300; font-size: .95rem; }
.cr-paso label, .cr-lbl { display: flex; flex-direction: column; gap: 5px; font: 700 .82rem "Montserrat", sans-serif; color: #3a4252; }
.cr-paso input:not([type=radio]):not([type=checkbox]), .cr-paso textarea, .cr-paso select {
  width: 100%; padding: 10px 12px; border: 1px solid #e2dccb; border-radius: 10px; background: #fff; font: 500 .92rem "Montserrat", sans-serif; color: #1c2433; }
.cr-paso input:focus, .cr-paso textarea:focus, .cr-paso select:focus { outline: 2px solid #4d7cfe; border-color: transparent; }
.cr-paso textarea { resize: vertical; }
.cr-item { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid #eee7d6; border-radius: 14px; background: #fcfaf3; }
.cr-item + .cr-item { margin-top: 8px; }
.cr-item-cab { display: flex; align-items: center; justify-content: space-between; font-size: .9rem; }
.cr-mini { margin: 4px 0 0; font-size: .78rem; color: #6b7385; font-weight: 600; }
.cr-op { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.cr-op input[type=radio], .cr-vf input, .cr-modo input { width: 18px; height: 18px; accent-color: #1f8a4c; }
.cr-vf, .cr-modo { display: flex; flex-wrap: wrap; gap: 16px; font-weight: 700; }
.cr-modo { padding: 10px 12px; border-radius: 12px; background: #f1eee4; margin-bottom: 8px; }
.cr-vf label, .cr-modo label { flex-direction: row !important; align-items: center; gap: 6px !important; font-size: .9rem !important; }
.cr-x { width: 30px; height: 30px; border: 0; border-radius: 8px; background: #f1eee4; color: #5a6274; cursor: pointer; font-size: .8rem; }
.cr-x:hover:not(:disabled) { background: #fde8e8; color: #c0392b; }
.cr-x:disabled { opacity: .35; cursor: default; }
.cr-mas { align-self: flex-start; margin-top: 8px; padding: 9px 14px; border: 2px dashed #e0c48a; border-radius: 12px; background: #fff8e8; color: #8a5a00; font: 800 .86rem "Montserrat", sans-serif; cursor: pointer; }
.cr-mas-chico { margin-top: 2px; padding: 5px 10px; font-size: .78rem; }
.cr-mas:hover { background: #fff1d6; }
.cr-2col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 30px; gap: 8px; align-items: center; margin-top: 6px; }
.cr-2col-cab { font: 800 .74rem "Montserrat", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #6b7385; }
.cr-orden { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto auto; gap: 6px; align-items: center; margin-top: 6px; }
.cr-num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #1c2433; color: #fff; font-weight: 800; font-size: .8rem; }
.cr-fila-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cr-fila-btns .user-out { background: #e7f0ff; }
.cr-vista { padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px dashed #d9d2bf; line-height: 2; font-size: .92rem; }
.cr-hueco { display: inline-block; min-width: 60px; padding: 0 8px; border-radius: 6px; background: #fff1d6; border-bottom: 2px solid #fb8500; color: #8a4600; font-weight: 800; line-height: 1.6; }
.cr-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 200px)); gap: 12px; }
.cr-ayuda { margin: 0; font-size: .86rem; color: #5a6274; }
.cr-acciones { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cr-acciones .user-out { background: #f1eee4; padding: 10px 14px; }
.cr-acciones .cr-probar { background: #e7f0ff; }
.cr-acciones .big-btn { font-size: 1rem; padding: 12px 18px; }
.cr-msg { text-align: left; }

.cr-res { width: min(860px, 96vw); }
.cr-res h2 { margin: 0 0 6px; font: 800 1.4rem "Baloo 2", sans-serif; }
.cr-res .prg-wrap { max-height: 60vh; overflow: auto; }
.cr-resp summary { cursor: pointer; color: #2563eb; font-size: .8rem; font-weight: 700; }
.cr-resp p { margin: 6px 0; padding: 8px 10px; border-radius: 8px; background: #f6f2e7; white-space: pre-wrap; font-size: .86rem; }
.cr-res audio { display: block; margin-top: 6px; width: 240px; max-width: 100%; height: 34px; }

/* Bloque «Actividades de tu profe» dentro del libro del estudiante */
.act-profe { margin-top: 18px; padding: 14px; border-radius: 18px; background: #fff8e8; border: 2px dashed #f5c26b; }
.act-profe-h { margin-top: 0 !important; }
.act-profe-h small { font-weight: 600; opacity: .75; }
/* Encabezado de la tarjeta del curso: el nombre no se parte y los botones bajan si no caben */
.cur-card header { flex-wrap: wrap; align-items: flex-start; }
.cur-card header h3 { white-space: nowrap; }
.cur-head-btns { flex: 1 1 auto; }
