/* Inicio (index.html + dashboard.js). El layout compartido (menú, grilla, panel derecho,
   toast) viene de shell.css, que se carga antes: aquí va solo lo propio del inicio.
   Reporte frontend-quality, F19: antes era una copia inline de shell.css. */
.mark{width:43px;height:43px;border-radius:14px 18px 14px 22px;background:linear-gradient(135deg,#00d45a,#00b74a);color:#fff;display:grid;place-items:center;font-weight:900;font-size:20px;transform:rotate(-5deg)}
.brand{font-size:20px;font-weight:850;letter-spacing:-.7px}
.brand span{color:var(--green)}
.brand small{display:block;font-size:11px;color:#687386;margin-top:1px}
.banner{background:linear-gradient(105deg,#fff4dc,#f3ffe9);border-radius:20px;min-height:108px;padding:21px 28px;display:flex;align-items:center;justify-content:space-between}
.banner h1{font-size:25px;margin:0 0 6px;letter-spacing:-.7px}
.banner p{margin:0;color:#596579;font-size:13px}
.heroemoji{font-size:55px}
.home-stats{margin-top:18px;background:#fff;border:1px solid var(--border);box-shadow:var(--shadow);border-radius:14px;padding:12px 15px;display:grid;grid-template-columns:repeat(3,1fr)}
.stat{display:flex;align-items:center;justify-content:center;gap:10px;border-right:1px solid var(--border)}
.stat:last-child{border:0}
.stat b{display:block}
.stat small{color:#667085}
.title{margin:27px 0 16px}
.title h2{margin:0;color:#007f35;font-size:29px;letter-spacing:-1px}
.title p{margin:5px 0;color:var(--muted);font-size:13px}
.next{background:linear-gradient(120deg,#f4fff0,#fff);border:1.5px solid var(--green);border-radius:18px;padding:20px}
.badge{display:inline-block;background:#075d31;color:white;font-size:11px;font-weight:800;border-radius:10px;padding:5px 9px;margin-bottom:10px}
.nextrow{display:flex;align-items:center;gap:16px}
.java{width:58px;height:58px;border-radius:15px;background:#eef2ff;display:grid;place-items:center;font-size:31px;flex:none}
.next h3{margin:0;font-size:19px}
.next p{margin:4px 0;color:var(--muted);font-size:12px}
.bar{height:8px;background:#e8edf4;border-radius:20px;overflow:hidden;margin-top:11px}
.bar i{display:block;height:100%;background:var(--green);border-radius:20px}
.meta{display:flex;gap:16px;margin-top:12px;font-size:11px;color:#536174}
.btn{margin-left:auto;border:0;background:#008939;color:#fff;border-radius:25px;padding:12px 22px;font-weight:800;cursor:pointer;box-shadow:inset 0 -3px 0 rgba(0,0,0,.12)}
.section{margin:25px 0 12px;font-size:16px}
.module small{font-size:11px}
.mini{height:5px;background:#e9edf4;border-radius:10px;margin-top:10px}
.mini i{display:block;height:100%;background:var(--green);border-radius:10px}
.pstats{display:grid;grid-template-columns:repeat(3,1fr);text-align:center}
.pstats b{font-size:18px}
.pstats small{display:block;font-size:11px;color:#667085}
.rank{padding:12px 0;font-size:11px}
.link{display:block;text-align:center;color:#007f35;font-size:11px;font-weight:700;text-decoration:none;margin-top:13px}
@media(min-width:761px) and (max-width:1100px){
  .banner{padding-right:96px}
}
@media(max-width:760px){
  .banner{min-height:95px;padding:17px 18px}
  .banner h1{font-size:20px}
  .heroemoji{font-size:42px}
  .home-stats{margin-top:10px}
  .nextrow{flex-wrap:wrap;align-items:flex-start}
  .btn{width:100%;margin-left:0}
}
a.module:hover{transform:translateY(-2px)}
.module.locked .micon{opacity:.5;filter:grayscale(1)}
a.btn{display:inline-block;text-decoration:none;text-align:center}
.module .micon{font-size:22px}
.skel{background:#eef2f7;border-radius:8px;color:transparent!important;animation:pulse 1.2s infinite}
@keyframes pulse{50%{opacity:.5}}

/* Tarjeta "¿Nos ayudas a mejorar?" (dashboard.js, loadFeedbackCard) */
.feedback-card{display:flex;align-items:center;gap:16px;margin-top:18px;padding:18px 20px;border-radius:18px;background:#fff;border:1.5px solid var(--border);box-shadow:var(--shadow)}
.feedback-card[hidden]{display:none}
.feedback-icon{width:52px;height:52px;border-radius:15px;background:#fff7e6;display:grid;place-items:center;font-size:27px;flex:none}
.feedback-text{flex:1;min-width:0}
.feedback-text h3{margin:0;font-size:17px}
.feedback-text p{margin:4px 0 0;color:var(--muted);font-size:13px;line-height:1.45}
.feedback-actions{display:flex;flex-direction:column;gap:6px;flex:none}
.feedback-go{border:0;border-radius:22px;padding:10px 16px;background:#008939;color:#fff;font:inherit;font-weight:800;font-size:14px;cursor:pointer;box-shadow:inset 0 -3px 0 rgba(0,0,0,.12)}
.feedback-later{border:0;background:none;color:#475467;font:inherit;font-size:13px;font-weight:600;cursor:pointer;padding:4px}
.feedback-go:focus-visible,.feedback-later:focus-visible{outline:3px solid #19b5fe;outline-offset:2px}
@media (max-width:640px){
  .feedback-card{flex-wrap:wrap}
  .feedback-actions{flex-direction:row;width:100%;align-items:center}
  .feedback-go{flex:1}
}

/* Leyenda de vidas bajo Racha/Vidas/Gemas (common.js, renderHeartsNote): solo cuando el panel
   derecho "Tu progreso" está oculto (<= 1100 px, ver shell.css); en escritorio ya sale ahí. */
.home-hearts-note{margin:10px 4px 0}
@media(min-width:1101px){ .home-hearts-note{display:none} }
