/* Aspecto «Cuaderno + Archivador» (papel pautado, margen, espiral, pestañas de colores). Sin rosa. */
*{box-sizing:border-box;margin:0}
html{scrollbar-gutter:stable}
html,body{max-width:100%;overflow-x:hidden}
body{background:#e8dfca;font-family:P052,"Palatino Linotype",Palatino,Georgia,serif;color:#1f3a68;font-size:18px;min-height:100dvh}
#estado{position:sticky;top:0;z-index:5;height:30px;line-height:30px;padding:0 12px;font-size:14px;font-family:system-ui,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#estado.ok{background:#dcebd2;color:#1f5a2a}
#estado.off{background:#f7dfb8;color:#7a4210}
.p{width:100%;max-width:412px;margin:0 auto;min-height:calc(100dvh - 30px);position:relative;background:#f6efdc;background-image:repeating-linear-gradient(transparent 0 31px,#b9c8dd 31px 32px);background-position:0 8px;padding:0 0 24px 58px;overflow:hidden}
.p:before{content:"";position:absolute;left:44px;top:0;bottom:0;width:2px;background:#c8553d;opacity:.75}
.esp{position:absolute;left:10px;top:0;bottom:0;width:22px;display:flex;flex-direction:column;justify-content:space-around;padding:20px 0}
.esp i{width:20px;height:20px;border-radius:50%;background:#3a3126;box-shadow:inset 2px 2px 3px #000a,0 0 0 3px #f6efdc}
main{position:relative;min-width:0;padding-right:8px} /* margen mínimo a la derecha: nada pegado al borde */
h1{font-family:Z003,"URW Chancery L","Apple Chancery",cursive;font-weight:400;font-size:52px;line-height:1;padding-top:16px;color:#1f3a68}
h1 span{background:linear-gradient(transparent 58%,#f2d45c 58% 90%,transparent 90%);padding:0 6px;margin-left:-6px}
h2{font-size:26px;line-height:1.15;margin:14px 0 6px;padding-right:10px}
.sub{font-size:15px;margin:6px 0 10px;color:#4a5b78;font-style:italic;padding-right:10px}
.volver{background:none;border:0;color:#4a5b78;font:inherit;font-size:16px;padding:12px 8px 4px 0;cursor:pointer;min-height:44px}
input[type=search],textarea{display:block;width:calc(100% - 12px);font:inherit;font-size:17px;color:#1f3a68;background:#fffaf0;border:1.5px solid #1f3a6866;border-radius:10px;padding:10px 12px;margin:6px 0}
textarea{height:110px;resize:none}
.f{display:flex;align-items:center;min-height:72px;position:relative;border-bottom:1px dashed #1f3a6866;width:100%;background:none;border-top:0;border-left:0;border-right:0;padding:0;font:inherit;color:inherit;text-align:left;cursor:pointer}
.f:last-child{border-bottom:0}
.n{font-family:Z003,"URW Chancery L","Apple Chancery",cursive;font-size:24px;width:28px;color:#c8553d;flex:none}
.t{flex:1;min-width:0;padding-right:8px}.t b{display:block;font-size:21px;font-weight:700;line-height:1.15;overflow-wrap:anywhere}
.t em{font-style:normal;font-size:15px;color:#4a5b78;display:block;line-height:1.25;overflow-wrap:anywhere}
.tab{flex:none;width:60px;height:56px;border-radius:16px 0 0 16px;display:flex;align-items:center;justify-content:center;box-shadow:-3px 3px 0 #0002,inset 0 2px 0 #fff4}
.tab svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.c1{background:#c99a2e;color:#2b2208}.c2{background:#7f8c3c;color:#1e2308}.c3{background:#3f5f7d;color:#fbf6ea}.c4{background:#b4553a;color:#fbf6ea}.c5{background:#3a7a78;color:#fbf6ea}.c6{background:#8a6b3e;color:#fbf6ea}.c7{background:#7b2d26;color:#fbf6ea}
.rojo .t b{color:#b83a22}
.f[disabled]{opacity:.55;cursor:default}
/* test */
#avance,#reloj{font-size:15px;color:#4a5b78;font-style:italic;padding-right:10px;display:flex;justify-content:space-between}
#pregunta{font-size:21px;line-height:1.3;font-weight:700;margin:8px 10px 10px 0;overflow-wrap:anywhere}
.ops{display:flex;flex-direction:column;gap:10px;padding-right:12px}
.op{display:block;width:100%;text-align:left;font:inherit;font-size:18px;line-height:1.25;color:#1f3a68;background:#fffaf0;border:1.5px solid #1f3a68;border-radius:12px;padding:12px 14px;min-height:48px;box-shadow:2px 3px 0 #1f3a6833;cursor:pointer;overflow-wrap:anywhere}
.op:active{background:#f2d45c}
.btn{font:inherit;font-size:18px;font-weight:700;color:#fbf6ea;background:#1f3a68;border:0;border-radius:12px;padding:12px 18px;min-height:48px;margin:10px 12px 10px 0;cursor:pointer}
.btn[disabled]{opacity:.5}
#nota{font-size:34px;font-weight:700;margin:14px 10px 2px 0}
#guardada{font-size:15px;color:#1f5a2a;font-family:system-ui,sans-serif;margin-bottom:8px}
.fallo,.hallazgo,.peticion,.nota-fila{border-bottom:1px dashed #1f3a6866;padding:8px 10px 8px 0;font-size:16px;line-height:1.3;overflow-wrap:anywhere}
.fallo b{display:block;font-size:17px}.fallo i{color:#4a5b78}
.hallazgo{background:none;border-top:0;border-left:0;border-right:0;width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer;display:block}
.chip{display:inline-block;font-family:system-ui,sans-serif;font-size:13px;font-weight:700;border-radius:999px;padding:2px 10px;margin-bottom:3px}
.chip.apuntado{background:#e7dcc0;color:#4a3a1a}.chip.en_curso{background:#cfe0ef;color:#1f3a68}.chip.hecho{background:#dcebd2;color:#1f5a2a}
.vacio{color:#4a5b78;font-style:italic;padding:10px 10px 0 0}

/* pestañas Estudiar / Practicar */
.tabs{display:flex;gap:8px;padding-right:12px;margin:6px 0 4px}
.tabs button{flex:1;min-width:0;font:inherit;font-size:18px;font-weight:700;color:#1f3a68;background:#fffaf0;border:1.5px solid #1f3a68;border-radius:12px 12px 0 0;min-height:44px;cursor:pointer}
.tabs button.on{background:#1f3a68;color:#fbf6ea}
/* lectura */
.lectura{font-size:17px;line-height:1.65;margin:6px 10px 0 0;padding:6px 14px 16px;background:#fcf8ec;border-radius:14px;box-shadow:0 1px 0 #0001;color:#2b3345;overflow-wrap:anywhere;word-break:normal}
.lectura h1,.lectura h2,.lectura h3{color:#1f3a68}.lectura hr{border:0;border-top:1px solid #1f3a6826;margin:16px 0}
.lectura pre,.lectura pre code{font-family:inherit;white-space:pre-line}.lectura pre{background:#f3ecd8;border-radius:10px;padding:10px 12px;line-height:1.7;margin:10px 0}
.lectura h1,.lectura h2,.lectura h3{font-size:22px;line-height:1.2;margin:16px 0 6px}
.lectura h3{font-size:19px}
.lectura p,.lectura ul,.lectura ol{margin:8px 0}.lectura ul,.lectura ol{padding-left:22px}
.lectura table,.lectura thead,.lectura tbody,.lectura tr,.lectura td,.lectura th{display:block;width:100%}
.lectura thead{display:none}
.lectura tr{border:1.5px solid #1f3a6855;border-radius:10px;background:#fffaf0;padding:6px 10px;margin:8px 0}
.lectura td{padding:2px 0;border:0}
.lectura td:first-child{font-weight:700}
.lectura pre,.lectura code{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px}
.audio-fila{padding:8px 12px 8px 0;border-bottom:1px dashed #1f3a6866}.audio-fila b{display:block;font-size:17px;margin-bottom:4px}
.audio-fila audio{width:100%;max-width:100%;height:40px}
#tarjeta{font-size:23px;line-height:1.3;min-height:150px;background:#fffaf0;border:1.5px solid #1f3a68;border-radius:14px;padding:18px 14px;margin:8px 12px 6px 0;box-shadow:2px 3px 0 #1f3a6833;overflow-wrap:anywhere}
#guardada.aviso{color:#7a4210}
.respuesta{margin-top:6px;padding:6px 8px;background:#1f3a681a;border-radius:6px;white-space:pre-wrap}

/* Inicio «Mosaico» (elegido por Ruth): teselas de color, sin rosa */
.g{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-right:12px;margin:10px 0}
.tes{border:0;font:inherit;font-family:"Trebuchet MS",system-ui,sans-serif;border-radius:24px;padding:14px;min-height:112px;display:flex;flex-direction:column;justify-content:space-between;color:#fff;text-align:left;cursor:pointer;box-shadow:0 5px 0 #0002}
.tes i{font-style:normal;font-size:38px}.tes b{font-size:20px;line-height:1.1;overflow-wrap:anywhere}.tes small{display:block;font-weight:400;font-size:13px;opacity:1;margin-top:3px}
.tes.k1{background:#2f6fd0}.tes.k2{background:#1f7a52}.tes.k3{background:#7a55c8}.tes.k4{background:#b83a22}.tes.k5{background:#0b6f80}.tes.k6{background:#8a6500}
.ask{width:calc(100% - 12px);border:0;font:inherit;font-family:"Trebuchet MS",system-ui,sans-serif;background:#17324d;color:#fff;border-radius:20px;padding:14px 16px;display:flex;gap:12px;align-items:center;font-weight:700;text-align:left;cursor:pointer;margin-bottom:12px}
.ask small{display:block;font-weight:400;opacity:.85}.ask .mano{font-size:28px}
