/* --- Contenido de lectura --- */
.content h2{font-size:1.05rem;margin:0 0 12px;color:#fff}
.content h3{font-size:.92rem;margin:20px 0 8px;color:#eaf3ff}
.content p{line-height:1.55;color:#dce8f5;margin:0 0 14px}
.content ul,.content ol{margin:0 0 14px;padding-left:22px;line-height:1.55;color:#dce8f5}
.content li{margin-bottom:6px}
.text-block{margin-bottom:22px}

/* --- Vídeo responsive 16:9 --- */
.video-wrapper{position:relative;width:100%;padding-bottom:56.25%;height:0;overflow:hidden;border-radius:10px;background:#000;margin-bottom:22px;box-shadow:0 8px 22px #0007}
.video-wrapper iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* --- Wizard: pasos y navegación --- */
.step[hidden]{display:none}
.progress-wrap{margin-bottom:20px}
.progress-label{display:flex;justify-content:space-between;color:var(--muted);font-size:.78rem;margin-bottom:8px}
progress.progress-bar{width:100%;height:10px;border-radius:6px;overflow:hidden;appearance:none;border:0}
progress.progress-bar::-webkit-progress-bar{background:#062544;border-radius:6px}
progress.progress-bar::-webkit-progress-value{background:linear-gradient(90deg,var(--blue),var(--blue-2));border-radius:6px}
progress.progress-bar::-moz-progress-bar{background:linear-gradient(90deg,var(--blue),var(--blue-2));border-radius:6px}
.wizard-nav{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:26px}
.wizard-nav .save{width:100%}
.wizard-nav .save.prev{background:linear-gradient(135deg,#2c5a8f,#1c3a5e)}
.wizard-nav.single{grid-template-columns:1fr}
.submit-final{margin-top:26px}

/* --- Textareas (no vienen en el style.css base) --- */
textarea{width:100%;min-height:120px;border:1px solid #ffffff18;border-radius:9px;background:linear-gradient(135deg,#164b83,#103762);color:#fff;padding:13px 15px;font:inherit;font-size:1rem;line-height:1.5;resize:vertical;outline:none;box-shadow:inset 0 1px 3px #0003}
textarea::placeholder{color:#b9cbe0}
textarea:focus{border-color:#4b9cff;box-shadow:0 0 0 3px #3187e533}
.field textarea{margin-top:2px}

/* --- Clasificación de escenas (radio-card 3 opciones) --- */
.escena-texto{white-space:pre-wrap;background:#062544;border:1px solid #ffffff14;border-radius:9px;padding:14px;margin-bottom:14px;line-height:1.5;font-size:.94rem}
.radio-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}
.radio-card{position:relative}
.radio-card input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.radio-card span{display:flex;align-items:center;justify-content:center;min-height:52px;text-align:center;border:1px solid #4386ca;border-radius:9px;background:#062544;color:#dce8f5;font-size:.85rem;font-weight:700;padding:8px 6px}
.radio-card input:checked+span{background:linear-gradient(135deg,#2583ed,#1766cf);color:#fff;border-color:#1766cf}
.radio-card input:focus-visible+span{outline:3px solid #8fc6ff;outline-offset:2px}
.referencia{font-size:.8rem;color:#b9cbe0;background:#00234a05;border-left:3px solid #3290ff;padding:8px 12px;margin:0 0 24px}

/* --- Bloques colapsables del cuestionario Paso 2 --- */
details.checklist-block{border:1px solid #ffffff18;border-radius:10px;margin-bottom:16px;background:#00234a;overflow:hidden}
details.checklist-block summary{list-style:none;cursor:pointer;padding:14px 16px;font-weight:750;color:#fff;display:flex;justify-content:space-between;align-items:center;gap:10px}
details.checklist-block summary::-webkit-details-marker{display:none}
details.checklist-block summary::after{content:'+';font-size:1.3rem;line-height:1}
details.checklist-block[open] summary::after{content:'−'}
.checklist-items{padding:0 16px 16px}
.checklist-item{border-top:1px solid #ffffff14;padding:16px 0}
.checklist-item:first-child{border-top:0}
.checklist-check{display:flex;align-items:flex-start;gap:12px;margin-bottom:10px}
.checklist-check input[type=checkbox]{width:26px;height:26px;flex:none;accent-color:#3290ff;margin-top:1px}
.checklist-check label{line-height:1.4;font-size:.92rem;color:#eaf3ff}
.checklist-scale{margin-left:38px}
.checklist-scale .scale{font-size:.7rem}
.checklist-otros{margin-top:12px}

/* --- Tabla de creencias/derechos (con casillas de verificación, responsive) --- */
.tabla-instruccion{font-size:.82rem;color:#b9cbe0;margin:-6px 0 12px}
.table-scroll{width:100%;overflow-x:auto;margin-bottom:20px;border-radius:9px;border:1px solid #ffffff18}
table.creencias{width:100%;min-width:560px;border-collapse:collapse;font-size:.85rem}
table.creencias th{background:#0b315d;color:#fff;text-align:left;padding:10px 12px;position:sticky;top:0}
table.creencias td{padding:8px 10px;border-top:1px solid #ffffff14;vertical-align:top;color:#dce8f5}
table.creencias tr:nth-child(even) td{background:#00234a99}
.cell-check{display:flex;align-items:flex-start;gap:10px;cursor:pointer}
.cell-check input[type=checkbox]{width:24px;height:24px;flex:none;margin-top:1px;accent-color:#3290ff}
.cell-check span{line-height:1.4}

/* --- Mis tareas: acciones extra por tarjeta --- */
.task-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.task-actions a,.task-actions button{text-decoration:none}
.task-status{display:inline-block;padding:3px 10px;border-radius:20px;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.03em}
.task-status.en_progreso{background:#4b3b0c;color:#ffd977}
.task-status.finalizado{background:#0a774f;color:#bdf5da}

@media(max-width:400px){.radio-cards{grid-template-columns:1fr;}.checklist-scale{margin-left:0}}

/* --- Ver tarea: resumen en una sola página (igual que el PDF) --- */
.back-link{border:0;background:transparent;color:#8fc6ff;font:inherit;font-weight:700;padding:0 0 16px;cursor:pointer}
.resultado-meta{color:var(--muted);font-size:.8rem;margin:-6px 0 20px}
.resultado-paso{font-size:.95rem;background:#0b315d;padding:8px 12px;border-left:4px solid #3290ff;margin:22px 0 10px;color:#fff}
.resultado-paso:first-of-type{margin-top:0}
.resultado-pregunta{margin-bottom:14px}
.resultado-etiqueta{font-weight:700;margin:0 0 4px;color:#eaf3ff}
.resultado-respuesta{margin:0 0 8px;color:#dce8f5;white-space:pre-wrap}
#resultado-contenido ul{margin:0 0 8px;padding-left:20px;color:#dce8f5}
#resultado-contenido li{margin-bottom:4px}
