/* Aula epimedik — diseño sereno y elegante */
:root {
  --navy: #0a2942; --navy-2: #143a5c; --sky: #5dade2; --gold: #d9b44a; --gold-soft: #f4e6b8; --green: #6fcf97;
  --bg: #f7f4ee; --card: #ffffff; --text: #1b2b3c; --muted: #6b7a89; --line: #ebe5da; --rosa: #e8a0a8;
  --serif: "Montserrat", system-ui, sans-serif; --teal: #63bcb2; --sans: "Montserrat", system-ui, sans-serif;
  --radius: 22px; --shadow: 0 1px 2px rgba(10,41,66,.04), 0 12px 32px rgba(10,41,66,.06);
}
html[data-theme="dark"] { --bg: #0c1825; --card: #132538; --text: #edf2f7; --muted: #9fb0c2; --line: #213a54; --gold-soft: #3a3320; --shadow: none; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; letter-spacing: .1px; }
a { color: inherit; }
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.oculto { display: none !important; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 10px; letter-spacing: -.6px; }
h1 { font-size: 32px; }
h2 { font-size: 23px; }
h3 { font-size: 19px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: var(--gold); }

/* barra superior */
.top { position: sticky; top: 0; z-index: 20; background: rgba(247,244,238,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding: 14px 20px; display: flex; align-items: center; gap: 12px; }
html[data-theme="dark"] .top { background: rgba(12,24,37,.88); }
.top .marca { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; line-height: 1.1; }
.top .marca img { height: 26px; }
.top .marca small { display: block; font-family: var(--sans); font-weight: 600; font-size: 10px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; margin-top: 2px; }
.top .stats { margin-left: auto; display: flex; gap: 8px; font-size: 13px; font-weight: 600; }
.chip { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }

/* navegación inferior */
.nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); display: flex; justify-content: space-around; padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); }
html[data-theme="dark"] .nav { background: rgba(19,37,56,.94); }
.nav button { background: none; border: 0; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .4px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 14px; }
.nav button span { font-size: 21px; filter: grayscale(1); opacity: .6; transition: .2s; }
.nav button.activo { color: var(--navy); }
.nav button.activo span { filter: none; opacity: 1; }
html[data-theme="dark"] .nav button.activo { color: var(--gold); }

main { max-width: 1180px; margin: 0 auto; padding: 28px 24px 130px; }
@media (max-width: 600px) { main { padding: 20px 12px 130px; } .card { padding: 22px 18px; } }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 24px; margin-bottom: 20px; border: 1px solid var(--line); }
.card > h2:first-child, .card > h3:first-child { margin-bottom: 14px; }
.seccion { margin: 36px 0 16px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 15px 26px; font-weight: 700; font-size: 15px; letter-spacing: .3px; background: var(--navy); color: #fff; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.btn:active { transform: scale(.98); }
.btn.oro { background: var(--gold); color: var(--navy); box-shadow: 0 6px 18px rgba(217,180,74,.35); }
.btn.sec { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.btn.link { background: none; color: var(--muted); padding: 8px 0; font-weight: 600; }
.btn.ancho { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }

/* hero */
.hero { background: radial-gradient(120% 140% at 100% 0%, #1d4d75 0%, var(--navy) 55%); color: #fff; border: 0; padding: 34px 28px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); }
.hero .dia { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2.4px; color: var(--gold-soft); }
.hero h1 { color: #fff; margin-top: 10px; font-size: 40px; }
.hero p { color: rgba(255,255,255,.82); }
.barra { height: 6px; background: rgba(255,255,255,.14); border-radius: 999px; overflow: hidden; margin: 18px 0 8px; }
.barra i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-soft), var(--gold)); border-radius: 999px; transition: width .8s ease; }
.card .barra { background: var(--line); }
.hero small { color: rgba(255,255,255,.7); font-size: 13px; }
.continuar { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.continuar .label { font-size: 12px; color: rgba(255,255,255,.6); letter-spacing: 1px; text-transform: uppercase; }
.continuar b { display: block; font-family: var(--serif); font-size: 24px; font-weight: 600; margin: 4px 0 18px; }

/* camino de pilares */
.camino { display: grid; gap: 12px; }
.pilar { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-align: left; width: 100%; color: var(--text); box-shadow: var(--shadow); transition: transform .15s; }
.pilar:active { transform: scale(.99); }
.pilar .ico { font-size: 26px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); flex: none; border: 1px solid var(--line); }
.pilar.hecho .ico { background: var(--gold-soft); border-color: var(--gold); }
.pilar.bloq { opacity: .5; box-shadow: none; }
.pilar .info { flex: 1; min-width: 0; }
.pilar .info b { display: block; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.pilar .info small { font-size: 13px; }
.pilar .mini { height: 4px; background: var(--line); border-radius: 999px; margin-top: 10px; overflow: hidden; }
.pilar .mini i { display: block; height: 100%; background: var(--gold); }
.pilar .flecha { color: var(--muted); font-size: 20px; }

/* lecciones */
.lecciones { display: grid; gap: 10px; margin: 22px 0; }
.lec { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-align: left; width: 100%; font-weight: 600; font-size: 15px; }
.lec .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; font-size: 18px; flex: none; }
.lec.actual { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,180,74,.18); }
.lec .check { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 13px; flex: none; color: var(--muted); }
.lec.hecha .check { background: var(--gold); border-color: var(--gold); color: #fff; }
.volver { margin-bottom: 18px; }
.video { position: relative; aspect-ratio: 9 / 16; max-height: 78vh; margin: 0 auto; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video.horizontal { aspect-ratio: 16 / 9; width: 100%; max-height: none; }
.texto-leccion { margin-top: 20px; }
.video iframe, .video > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.nota { font-size: 13px; text-align: center; margin: 12px 0 0; }
.lectura { white-space: pre-line; font-size: 17px; line-height: 1.85; }
.lectura::first-line { font-size: 20px; font-weight: 700; color: var(--teal); }
.app-frame { width: 100%; height: 75vh; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.pasos { display: flex; gap: 12px; margin-top: 24px; }
.pasos .btn { flex: 1; }
.completada { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.completada span { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; }

/* estrellas y comunidad */
.estrellas { display: flex; gap: 4px; margin: 6px 0 14px; }
.estrellas button { background: none; border: 0; font-size: 32px; color: var(--line); padding: 0; transition: transform .1s; }
.estrellas button.on { color: var(--gold); }
.estrellas button:active { transform: scale(1.15); }
textarea, input[type=text], input[type=email], input[type=password] { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font: inherit; font-size: 16px; background: var(--bg); color: var(--text); outline: none; transition: border-color .2s; }
textarea:focus, input:focus { border-color: var(--gold); }
textarea { min-height: 96px; resize: vertical; }
.post .cab { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.post .cab b { font-weight: 700; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; font-size: 20px; flex: none; }
.post .tag { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; border-radius: 999px; padding: 4px 10px; background: var(--bg); color: var(--muted); margin-left: auto; }
.post .tag.noticia { background: var(--gold-soft); color: #7a5d10; }
.post .texto { white-space: pre-line; font-size: 16px; }
.post .acciones { display: flex; gap: 20px; margin-top: 16px; font-size: 14px; font-weight: 600; }
.post .acciones button { background: none; border: 0; color: var(--muted); padding: 0; }
.post .acciones button.on { color: #c9586b; }
.coments { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; display: grid; gap: 10px; font-size: 15px; }
.fcom { display: flex; gap: 8px; }
.fcom .btn { padding: 12px 18px; }

/* logros */
.nivel { display: flex; align-items: center; gap: 20px; }
.nivel .num { width: 76px; height: 76px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #f4e2a6, var(--gold)); color: var(--navy); font-family: var(--serif); font-size: 34px; font-weight: 700; display: grid; place-items: center; flex: none; box-shadow: 0 8px 20px rgba(217,180,74,.35); }
.nivel b { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.insignias { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; }
.insignia { text-align: center; padding: 16px 8px; border-radius: 16px; background: var(--bg); font-size: 12px; font-weight: 600; line-height: 1.35; }
.insignia span { font-size: 32px; display: block; margin-bottom: 6px; filter: grayscale(1); opacity: .3; }
.insignia.ok { background: var(--gold-soft); }
.insignia.ok span { filter: none; opacity: 1; }
.ranking ol { list-style: none; margin: 0; padding: 0; }
.ranking li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ranking li:last-child { border: 0; }
.ranking .pos { width: 22px; color: var(--muted); font-weight: 700; }
.ranking .pts { margin-left: auto; font-weight: 700; }
.caritas { display: flex; gap: 8px; }
.caritas button { flex: 1; border: 1px solid var(--line); background: var(--bg); border-radius: 14px; padding: 10px 0; font-size: 24px; transition: .15s; }
.caritas button.on { border-color: var(--gold); background: var(--gold-soft); transform: translateY(-2px); }
.fila-ci { margin: 18px 0 8px; font-weight: 600; font-size: 14px; letter-spacing: .3px; }
.grafica { display: flex; align-items: flex-end; gap: 8px; height: 110px; margin: 10px 0 20px; }
.grafica div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); }
.grafica i { width: 100%; max-width: 20px; border-radius: 8px 8px 3px 3px; }

/* Moraima */
.fab { position: fixed; right: 20px; bottom: 92px; z-index: 25; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .3px; padding: 14px 20px; box-shadow: 0 12px 30px rgba(10,41,66,.3); display: flex; align-items: center; gap: 8px; }
.fab i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); font-style: normal; }
.chat { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; z-index: 40; background: var(--bg); display: flex; flex-direction: column; border-left: 1px solid var(--line); box-shadow: -20px 0 50px rgba(10,41,66,.12); animation: entrar .25s ease; }
@keyframes entrar { from { transform: translateX(30px); opacity: 0; } }
body.chat-abierto #app { margin-right: 420px; }
body.chat-abierto .fab { display: none; }
body.chat-abierto .nav { right: 420px; }
@media (max-width: 900px) {
  .chat { top: auto; left: 0; width: 100%; height: 72vh; border-left: 0; border-radius: 24px 24px 0 0; overflow: hidden; box-shadow: 0 -20px 50px rgba(10,41,66,.25); animation: subir .25s ease; }
  @keyframes subir { from { transform: translateY(40px); opacity: 0; } }
  body.chat-abierto #app { margin-right: 0; }
  body.chat-abierto .nav { right: 0; }
}
.chat .cab { background: var(--navy); color: #fff; padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.chat .cab b { font-size: 18px; font-weight: 700; }
.chat .cab small { color: rgba(255,255,255,.65); }
.chat .cab .avatar { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.15); }
.chat .cab button { margin-left: auto; background: none; border: 0; color: #fff; font-size: 22px; opacity: .8; }
.msgs { flex: 1; overflow-y: auto; padding: 24px 20px; display: flex; flex-direction: column; gap: 12px; max-width: 900px; width: 100%; margin: 0 auto; }
.msg { max-width: 84%; padding: 13px 17px; border-radius: 20px; white-space: pre-line; font-size: 15px; line-height: 1.6; }
.msg.yo { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 6px; }
.msg.mo { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.chat form { display: flex; gap: 10px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); max-width: 900px; width: 100%; margin: 0 auto; }
.chat form input { flex: 1; }
.sugerencias { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 20px; max-width: 900px; margin: 0 auto; width: 100%; }
.sugerencias button { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; }

/* acceso */
.acceso { position: relative; min-height: 100vh; overflow: hidden; display: grid; place-items: center; padding: 32px 20px; background: #06192b; color: #fff; }
.luz { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; pointer-events: none; }
.luz.l1 { width: 520px; height: 520px; background: #1f5f93; top: -180px; left: -140px; }
.luz.l2 { width: 420px; height: 420px; background: #b8902e; bottom: -200px; right: -120px; opacity: .35; }
.acceso-grid { position: relative; width: 100%; max-width: 1040px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 820px) { .acceso-grid { grid-template-columns: 1fr; gap: 32px; } .acceso-marca { text-align: center; } .acceso-marca h1 { font-size: 46px !important; } }
.acceso-marca h1 { font-size: 64px; line-height: 1; color: #fff; margin: 14px 0 22px; font-weight: 800; letter-spacing: -2px; }
.acceso-marca h1 em { color: var(--teal); font-style: normal; }
.logo-pill { display: inline-block; background: #fff; border-radius: 18px; padding: 12px 18px; margin-bottom: 22px; }
.logo-pill img { height: 34px; display: block; }
.acceso-marca p { color: rgba(255,255,255,.72); font-size: 17px; max-width: 420px; }
@media (max-width: 820px) { .acceso-marca p { margin: 0 auto; } }
.programa-tag { display: inline-block; margin-top: 26px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 8px 16px; font-size: 13px; color: rgba(255,255,255,.75); }
.programa-tag span { color: var(--gold); font-weight: 700; }
.vidrio { position: relative; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border-radius: 28px; padding: 30px 28px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.vidrio.solo { max-width: 420px; width: 100%; }
.vidrio h2 { color: #fff; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: rgba(0,0,0,.25); border-radius: 999px; padding: 5px; margin-bottom: 24px; }
.tabs button { border: 0; background: none; color: rgba(255,255,255,.65); border-radius: 999px; padding: 11px; font-weight: 700; font-size: 14px; }
.tabs button.on { background: #fff; color: var(--navy); }
.campo { display: block; margin-bottom: 16px; }
.campo span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .6px; color: rgba(255,255,255,.7); margin: 0 0 7px 4px; }
.acceso .campo input { background: rgba(255,255,255,.95); border: 0; color: var(--navy); padding: 15px 18px; border-radius: 14px; font-size: 16px; }
.acceso .campo input:focus { box-shadow: 0 0 0 3px rgba(217,180,74,.5); }
.acceso .btn.oro { margin-top: 8px; padding: 17px; font-size: 16px; }
.olvide { display: block; margin: 16px auto 0; background: none; border: 0; color: rgba(255,255,255,.75); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.msg-acceso { min-height: 22px; margin: 14px 0 0; font-size: 14px; text-align: center; color: var(--gold-soft); }
.toast { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 14px 22px; border-radius: 16px; z-index: 50; box-shadow: 0 12px 30px rgba(0,0,0,.2); max-width: 90vw; text-align: center; font-weight: 600; font-size: 14px; }
.confeti { position: fixed; top: -10px; width: 9px; height: 13px; border-radius: 2px; z-index: 60; animation: caer 2.6s ease-in forwards; }
@keyframes caer { to { transform: translateY(105vh) rotate(720deg); opacity: .5; } }

/* vista administradora */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 22px 0; }
.kpi { margin: 0; text-align: center; padding: 22px 12px; }
.kpi b { display: block; font-size: 34px; font-weight: 800; color: var(--navy); letter-spacing: -1px; }
html[data-theme="dark"] .kpi b { color: var(--gold); }
.kpi span { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.alerta { border-color: #e8a0a8; background: #fdf3f4; }
html[data-theme="dark"] .alerta { background: #3a1f25; }
.tabla { display: grid; gap: 2px; overflow-x: auto; }
.tabla .fila { display: grid; grid-template-columns: 2.2fr .6fr 1.2fr 1.2fr 1.4fr; gap: 12px; align-items: center; padding: 12px 10px; border-radius: 12px; font-size: 14px; min-width: 640px; }
.tabla .fila.cab { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.tabla .fila:not(.cab):nth-child(even) { background: var(--bg); }
.tabla .fila.riesgo { box-shadow: inset 3px 0 0 #e8a0a8; }
.tabla small { display: block; color: var(--muted); font-size: 12px; }
.tabla .barra { margin: 0 0 4px; }

/* barra de líder */
.admin-bar { display: flex; gap: 8px; margin-left: 12px; }
.admin-bar .btn { padding: 9px 16px; font-size: 13px; }
@media (max-width: 700px) { .top { flex-wrap: wrap; } .admin-bar { order: 3; width: 100%; margin: 6px 0 0; } .admin-bar .btn { flex: 1; } }
body.modo-alumna .top { box-shadow: inset 0 -3px 0 var(--teal); }
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(6,25,43,.55); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; }
.editor { width: 100%; max-width: 640px; margin: 0; }
.cats { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.cats button { border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 14px; }
.cats button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.fijar-op { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.post-titulo { margin: 0 0 8px; }
.noticia { padding: 12px 0; border-bottom: 1px solid var(--line); }
.noticia:last-child { border: 0; }
.noticia b { display: block; margin-top: 2px; }
.noticia p { margin: 4px 0 0; color: var(--muted); }

.tema { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; width: 36px; height: 32px; font-size: 15px; }
html[data-theme="dark"] .acceso .campo input { background: rgba(255,255,255,.95); }

html[data-theme="dark"] .top .marca img { background: #fff; border-radius: 8px; padding: 3px 6px; }

/* actividades */
.sub { margin: 14px 4px 2px; font-size: 11px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); }
.lec.bloq { opacity: .5; }
.actividad { border-left: 4px solid var(--teal); }
.pasos-act { margin: 14px 0 6px; padding-left: 22px; font-size: 17px; }
.pasos-act li { margin-bottom: 10px; padding-left: 4px; }
.pasos-act li::marker { color: var(--teal); font-weight: 800; }

/* test de carga en ventana */
.test-modal { padding: 0; }
.test-caja { width: min(980px, 100%); height: min(92vh, 100%); background: var(--card); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
@media (max-width: 700px) { .test-caja { height: 100%; border-radius: 0; } }
.test-cab { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--navy); color: #fff; }
.test-cab small { display: block; color: rgba(255,255,255,.7); font-size: 12px; }
.test-cab .btn { padding: 10px 16px; font-size: 13px; flex: none; }
.test-caja iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.test-comp { display: flex; align-items: center; gap: 14px; margin: 14px 0; }
.test-res { flex: 1; text-align: center; background: var(--bg); border-radius: 16px; padding: 16px 8px; }
.test-res b { display: block; font-size: 34px; font-weight: 800; color: var(--navy); }
html[data-theme="dark"] .test-res b { color: var(--gold); }
.test-res span { display: block; font-weight: 600; text-transform: capitalize; }
.test-res small { color: var(--muted); font-size: 12px; }
.flecha-test { font-size: 26px; color: var(--teal); font-weight: 800; }
.test-premio { display: flex; gap: 14px; align-items: center; background: var(--gold-soft); border-radius: 16px; padding: 16px; font-size: 15px; }
.test-premio > :first-child { font-size: 36px; }
