/* Misma identidad que la web (crema + naranja). Sin variables CSS, sin gap y sin fuentes externas
   para que funcione bien en navegadores internos antiguos (WeChat, 抖音, 小红书). */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #FBF8F3; color: #292524; font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; min-height: 100vh; }
[hidden] { display: none !important; }

.serif, h1, h2, h3, .logo { font-family: Georgia, "Playfair Display", "Songti SC", "Noto Serif SC", serif; }

/* cabecera */
.cab { background: #FBF8F3; border-bottom: 1px solid #fde3c8; }
.cab-in { max-width: 680px; margin: 0 auto; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 22px; font-weight: 700; color: #292524; text-decoration: none; }
.logo b { color: #ea580c; }
.volver { font-size: 13px; color: #78716c; text-decoration: none; }

.principal { max-width: 680px; margin: 0 auto; padding: 22px 16px 56px; }
.card { background: #fff; border: 1px solid #e7e5e4; border-radius: 22px; padding: 24px 20px; margin-bottom: 18px; box-shadow: 0 8px 24px rgba(124, 45, 18, .08); }
.card.suave { background: #fff7ed; border-color: #fed7aa; box-shadow: none; }

h1 { font-size: 28px; line-height: 1.3; margin: 6px 0 10px; }
h2 { font-size: 20px; line-height: 1.35; margin: 0 0 12px; }
h3 { font-size: 16px; margin: 0 0 6px; }
p { margin: 0 0 10px; }
.kicker { font-size: 13px; letter-spacing: .08em; color: #c2410c; }
.muted { color: #78716c; }
.chico { font-size: 13px; }

/* botones */
.btn { display: block; width: 100%; border: 0; border-radius: 999px; background: #c2410c; color: #fff; font: inherit; font-weight: 700; font-size: 16px; padding: 14px 20px; min-height: 50px; text-align: center; text-decoration: none; cursor: pointer; margin-top: 12px; box-shadow: 0 6px 16px rgba(154, 52, 18, .28); }
.btn:active { opacity: .85; }
.btn.sec { background: #fff; color: #c2410c; border: 2px solid #fed7aa; box-shadow: none; }
.btn[disabled] { background: #d6d3d1; box-shadow: none; cursor: not-allowed; color: #fff; }

/* cabecera de pregunta */
.nivelchips { display: flex; margin: 0 0 14px; }
.chip { white-space: nowrap; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #f5f5f4; color: #a8a29e; margin-right: 6px; }
.chip.hecho { background: #dcfce7; color: #15803d; }
.chip.actual { background: #c2410c; color: #fff; }
.estado-prog { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 8px; }
.nivel-actual { font-weight: 700; font-size: 16px; color: #9a3412; }
.quedan { font-size: 14px; font-weight: 700; color: #44403c; }
.progreso { height: 8px; background: #f5f5f4; border-radius: 99px; overflow: hidden; }
.progreso i { display: block; height: 100%; background: #ea580c; border-radius: 99px; }
.meta { font-size: 13px; color: #78716c; margin: 8px 0 18px; }

.enunciado { font-family: Georgia, serif; font-size: 21px; line-height: 1.5; font-weight: 700; margin: 0 0 18px; }
.hueco { display: inline-block; min-width: 56px; border-bottom: 3px dashed #fdba74; margin: 0 4px; height: 1em; vertical-align: baseline; }
.ayuda { font-size: 14px; color: #78716c; margin: -8px 0 14px; }

/* opción múltiple */
.opt { display: flex; align-items: center; width: 100%; text-align: left; font: inherit; background: #fff; border: 2px solid #e7e5e4; border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; min-height: 54px; cursor: pointer; color: #292524; }
.opt .letra { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #f5f5f4; color: #78716c; font-size: 13px; font-weight: 700; text-align: center; line-height: 28px; margin-right: 12px; }
.opt.sel { border-color: #c2410c; background: #fff7ed; }
.opt.sel .letra { background: #c2410c; color: #fff; }
.opt.nose { color: #78716c; border-style: dashed; }

/* huecos */
.entrada { width: 100%; font: inherit; font-size: 18px; padding: 14px 16px; border: 2px solid #e7e5e4; border-radius: 16px; background: #fff; color: #292524; margin-bottom: 10px; -webkit-appearance: none; appearance: none; }
.entrada:focus { outline: 0; border-color: #c2410c; }
.entrada[disabled] { background: #f5f5f4; }

/* ordenar */
.consigna { font-size: 15px; font-weight: 700; color: #44403c; margin: 0 0 8px; }
.original { font-family: Georgia, serif; font-size: 19px; font-weight: 700; background: #fffaf5; border-left: 4px solid #fdba74; border-radius: 0 12px 12px 0; padding: 10px 14px; margin: 0 0 14px; }
.ilustracion { text-align: center; margin: 0 0 14px; }
.ilustracion img { display: inline-block; width: 100%; max-width: 300px; height: auto; border-radius: 16px; border: 1px solid #f5f5f4; }
.entrada.larga { font-size: 17px; }
.acentos { margin: 0 0 4px; }
.tecla { display: inline-block; min-width: 40px; height: 40px; margin: 0 6px 6px 0; font: inherit; font-size: 18px; color: #292524; background: #fff; border: 2px solid #e7e5e4; border-radius: 10px; cursor: pointer; }
.tecla:active { background: #ffedd5; border-color: #fdba74; }
.linea { min-height: 62px; border: 2px dashed #fdba74; border-radius: 16px; background: #fffaf5; padding: 8px 8px 0; margin-bottom: 14px; }
.banco { margin-bottom: 14px; padding-top: 2px; }
.ficha { display: inline-block; font: inherit; font-size: 17px; background: #fff; border: 2px solid #e7e5e4; border-radius: 12px; padding: 8px 14px; margin: 0 8px 8px 0; cursor: pointer; color: #292524; }
.ficha.puesta { background: #fff7ed; border-color: #c2410c; }
.ficha[disabled] { opacity: .35; }
.limpiar { background: none; border: 0; color: #c2410c; font: inherit; font-size: 14px; padding: 4px 0 10px; cursor: pointer; text-decoration: underline; }

/* resultado */
.nivel-grande { font: 700 72px/1.05 Georgia, serif; color: #c2410c; text-align: center; margin: 4px 0; }
.estado { font-size: 19px; font-weight: 700; text-align: center; margin: 0 0 12px; }
.aviso { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 14px; padding: 10px 14px; font-size: 14px; color: #7c2d12; margin: 12px 0; }
.tema { padding: 12px 0; border-top: 1px solid #f5f5f4; }
.tema:first-of-type { border-top: 0; }
.tema-cab { display: flex; justify-content: space-between; align-items: baseline; }
.tema-nombre { font-weight: 700; padding-right: 10px; }
.tema-pct { font-weight: 700; white-space: nowrap; }
.barra { height: 10px; background: #f5f5f4; border-radius: 99px; overflow: hidden; margin: 6px 0; }
.barra i { display: block; height: 100%; border-radius: 99px; }
.f-fuerte i { background: #16a34a; } .f-fuerte .etq { background: #dcfce7; color: #15803d; }
.f-medio i { background: #f59e0b; } .f-medio .etq { background: #fef3c7; color: #92400e; }
.f-reforzar i { background: #ea580c; } .f-reforzar .etq { background: #ffedd5; color: #9a3412; }
.f-pocos i { background: #d6d3d1; } .f-pocos .etq { background: #f5f5f4; color: #78716c; }
.etq { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.consejo { font-size: 14px; color: #44403c; background: #fffaf5; border-left: 3px solid #fdba74; padding: 8px 12px; margin-top: 8px; border-radius: 0 10px 10px 0; }

/* código y oferta */
.codigo { width: 100%; font: 700 22px/1.3 "SF Mono", Menlo, Consolas, monospace; text-align: center; letter-spacing: .04em; padding: 14px 10px; border: 2px dashed #fdba74; border-radius: 16px; background: #fffaf5; color: #7c2d12; -webkit-user-select: text; user-select: text; -webkit-appearance: none; appearance: none; }
.bloque-codigo { border-top: 1px solid #f5f5f4; margin-top: 16px; padding-top: 16px; }
.qr { display: block; width: 190px; max-width: 70%; margin: 12px auto 4px; border-radius: 12px; border: 1px solid #e7e5e4; }
.centro { text-align: center; }
.rev { padding: 12px 0; border-top: 1px solid #f5f5f4; font-size: 15px; }
.rev b { color: #15803d; }
.rev .tu { color: #b91c1c; }
.link { display: block; background: none; border: 0; font: inherit; font-weight: 700; color: #c2410c; padding: 4px 0; cursor: pointer; text-decoration: underline; }

@media (min-width: 640px) {
  .principal { padding-top: 36px; }
  .card { padding: 32px 36px; }
  h1 { font-size: 34px; }
}
