/* Emunah Kapital · cuestionario. Paleta y tipografía de emunahkapital.addcloude.es */
:root {
  --gold: #B08A4B; --gold-soft: #CBA968; --gold-dark: #8C6C38; --gold-wash: #F5EEDF;
  --green: #4B7A5F; --green-wash: #E7F0EA;
  --red: #9A4B3C; --red-wash: #F6E7E3;
  --navy: #16263F; --navy-deep: #0F1C2F; --navy-soft: #24395A;
  --ink: #16263F; --ink-soft: #2B3B54; --body: #5B6470;
  --paper: #FAF8F4; --cream: #F2EEE7; --white: #FFFFFF; --line: #E4DED2; --gray: #8A8578;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radio: 12px;
  --sombra: 0 1px 2px rgba(22,38,63,.06), 0 8px 24px -12px rgba(22,38,63,.18);
  --foco: 0 0 0 3px rgba(176,138,75,.45);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper);
  line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: normal; color: var(--navy); line-height: 1.2; margin: 0; }
a { color: var(--gold-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--foco); border-radius: 6px; }
.oculto { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- botones y formularios ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-height: 44px;
  padding: .55em 1.15em; border-radius: 999px; border: 1px solid var(--navy); background: var(--navy);
  color: var(--white); font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .1s; }
.btn:hover { background: var(--navy-soft); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.sec { background: transparent; color: var(--navy); border-color: var(--line); }
.btn.sec:hover { border-color: var(--navy); background: var(--white); }
.btn.oro { background: var(--gold); border-color: var(--gold); }
.btn.oro:hover { background: var(--gold-dark); }
.btn.peq { min-height: 34px; padding: .3em .9em; font-size: .85rem; }
.btn.texto { background: none; border: none; color: var(--gold-dark); padding: .3em .4em; min-height: 0; }
.campo { display: grid; gap: .35rem; margin-bottom: 1rem; }
.campo label, .etq { font-size: .8rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .02em; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: .6em .85em; border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: var(--foco); }
textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.avisos { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.aviso { padding: .7rem 1rem; border-radius: 10px; background: var(--green-wash); color: var(--green); font-size: .92rem; }
.aviso.error { background: var(--red-wash); color: var(--red); }

/* ---------- acceso ---------- */
.acceso { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(1200px 600px at 50% -10%, #24395A 0%, var(--navy-deep) 60%); }
.acceso .tarjeta { width: 100%; max-width: 400px; background: var(--paper); border-radius: 18px;
  padding: 2rem 1.75rem; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.acceso .marca { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin-bottom: 1.5rem; text-align: center; }
.acceso .marca img { width: 56px; height: 56px; }
.acceso .marca h1 { font-size: 1.15rem; letter-spacing: .18em; }
.acceso .marca p { margin: 0; font-size: .8rem; color: var(--gray); letter-spacing: .12em; text-transform: uppercase; }
.acceso .btn { width: 100%; margin-top: .5rem; }
.acceso .qr { display: flex; justify-content: center; margin: 1rem 0; }
.acceso .qr svg { width: 200px; height: 200px; background: var(--white); border-radius: 10px; padding: 6px; }
.acceso .secreto { font-family: ui-monospace, Menlo, monospace; font-size: .8rem; word-break: break-all;
  background: var(--cream); padding: .5rem .7rem; border-radius: 8px; color: var(--ink-soft); }
.acceso p.ayuda { font-size: .9rem; color: var(--body); }
input.codigo { text-align: center; font-size: 1.5rem; letter-spacing: .35em; font-variant-numeric: tabular-nums; }

/* ---------- panel ---------- */
.cabecera { background: var(--navy); color: var(--white); }
.cabecera .dentro { max-width: 1120px; margin: 0 auto; padding: .7rem 16px; display: flex; align-items: center; gap: 1rem; }
.cabecera a.logo { display: flex; align-items: center; gap: .6rem; color: var(--white); text-decoration: none; }
.cabecera a.logo img { width: 34px; height: 34px; }
.cabecera a.logo span { font-family: var(--serif); letter-spacing: .16em; font-size: .95rem; }
.cabecera .yo { margin-left: auto; display: flex; align-items: center; gap: .75rem; font-size: .85rem; color: #C4CEDC; }
.cabecera .yo form { margin: 0; }
.cabecera .yo button { background: none; border: 1px solid rgba(255,255,255,.25); color: var(--white);
  border-radius: 999px; padding: .3em .9em; cursor: pointer; font-size: .8rem; }
.pagina { max-width: 1120px; margin: 0 auto; padding: 1.5rem 16px 4rem; }
.titulo-pag { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; }
.titulo-pag h1 { font-size: 1.9rem; }
.titulo-pag .acciones { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
.miga { font-size: .85rem; margin-bottom: .4rem; display: block; }
.vacio { text-align: center; padding: 3rem 1rem; color: var(--body); background: var(--white);
  border: 1px dashed var(--line); border-radius: var(--radio); }

.lista-clientes { display: grid; gap: .6rem; }
.fila-cliente { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; align-items: center;
  padding: 1rem 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radio);
  text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.fila-cliente:hover { border-color: var(--gold-soft); box-shadow: var(--sombra); }
.fila-cliente .nombre { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); }
.fila-cliente .meta { font-size: .82rem; color: var(--gray); }
.etapas { display: flex; gap: 4px; grid-column: 1 / -1; }
.etapas i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.etapas i.hecha { background: var(--gold); }
.etapas i.curso { background: var(--gold-soft); opacity: .6; }
.chip { display: inline-block; font-size: .75rem; font-weight: 600; padding: .25em .7em; border-radius: 999px;
  background: var(--cream); color: var(--ink-soft); white-space: nowrap; }
.chip.oro { background: var(--gold-wash); color: var(--gold-dark); }
.chip.verde { background: var(--green-wash); color: var(--green); }
.chip.rojo { background: var(--red-wash); color: var(--red); }

.subnav { position: sticky; top: 0; z-index: 5; background: rgba(250,248,244,.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line); margin: 0 -16px 1.5rem; padding: 0 16px; overflow-x: auto; }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; white-space: nowrap; }
.subnav a { display: block; padding: .8rem 0; font-size: .88rem; font-weight: 600; color: var(--body); text-decoration: none; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--navy); border-bottom-color: var(--gold); }

.rejilla { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .rejilla.dos { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.caja { background: var(--white); border: 1px solid var(--line); border-radius: var(--radio); padding: 1.25rem 1.3rem; scroll-margin-top: 60px; }
.caja > h2 { font-size: 1.3rem; margin-bottom: .9rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.caja > h2 .chip { font-family: var(--sans); }
.caja .pie-caja { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.interno { border-left: 3px solid var(--gold); }
.aviso-interno { font-size: .78rem; color: var(--gold-dark); margin: -.4rem 0 .9rem; }

.fases { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.fase-tarjeta { border: 1px solid var(--line); border-radius: var(--radio); padding: 1rem; background: var(--paper); display: grid; gap: .6rem; }
.fase-tarjeta h3 { font-size: 1.05rem; }
.fase-tarjeta .modalidad { display: flex; gap: .4rem; }
.fase-tarjeta .modalidad label { flex: 1; text-align: center; font-size: .82rem; padding: .45rem; border: 1px solid var(--line);
  border-radius: 8px; cursor: pointer; background: var(--white); }
.fase-tarjeta .modalidad input { position: absolute; opacity: 0; }
.fase-tarjeta .modalidad input:checked + span { color: var(--navy); font-weight: 700; }
.fase-tarjeta .modalidad label:has(input:checked) { border-color: var(--gold); background: var(--gold-wash); }
.fase-tarjeta .detalle { font-size: .82rem; color: var(--gray); }

.perfil { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; margin-bottom: .8rem; }
.perfil strong { font-family: var(--serif); font-weight: normal; font-size: 1.5rem; color: var(--navy); }
.perfil .media { font-size: .85rem; color: var(--gray); }
.componentes { font-size: .8rem; color: var(--body); margin: 0 0 1rem; padding: 0; list-style: none; display: grid; gap: .15rem; }
.alertas { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.alertas li { padding: .7rem .85rem; border-radius: 10px; background: var(--gold-wash); font-size: .9rem; }
.alertas li b { color: var(--gold-dark); margin-right: .35rem; }
.alertas li .accion { display: block; color: var(--ink-soft); font-size: .84rem; margin-top: .2rem; }
.en-directo { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; color: var(--green); font-family: var(--sans); }
.en-directo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: latido 1.6s infinite; }
@keyframes latido { 50% { opacity: .25; } }

.respuestas { display: grid; gap: .1rem; }
.resp { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.resp:last-child { border-bottom: none; }
.resp .bloque { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; }
.resp .preg { font-weight: 600; color: var(--navy); font-size: .93rem; margin: .1rem 0 .3rem; }
.resp dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .15rem; font-size: .9rem; }
@media (min-width: 640px) { .resp dl.filas { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .25rem 1rem; } }
.resp dt { color: var(--body); }
.resp dd { margin: 0; color: var(--ink); }
.resp .falta { color: var(--gray); font-style: italic; }
.resp .nota-p { margin-top: .4rem; font-size: .85rem; background: var(--cream); border-radius: 8px; padding: .45rem .7rem; color: var(--ink-soft); }
.resp .nota-p::before { content: "Nota de la sesión · "; font-weight: 700; color: var(--gold-dark); }

.ficha-campo { display: grid; gap: .3rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.ficha-campo:last-of-type { border-bottom: none; }
.ficha-campo .cab { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.ficha-campo .cab b { font-size: .9rem; color: var(--navy); }
.ficha-campo .valor { white-space: pre-line; font-size: .92rem; color: var(--ink-soft); }
.ficha-campo textarea { min-height: 46px; font-size: .92rem; }
@media (min-width: 760px) { .ficha-campo { grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
  .ficha-campo .cab { padding-top: .6rem; } }

.notas-lista { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; }
.notas-lista li { background: var(--paper); border-radius: 10px; padding: .7rem .9rem; font-size: .9rem; white-space: pre-line; }
.notas-lista .autor { display: block; font-size: .75rem; color: var(--gray); margin-bottom: .2rem; white-space: normal; }
.actividad { list-style: none; margin: 0; padding: 0; font-size: .82rem; color: var(--body); display: grid; gap: .3rem; max-height: 320px; overflow: auto; }
.actividad time { color: var(--gray); margin-right: .4rem; font-variant-numeric: tabular-nums; }
.compartir { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.compartir form { margin: 0; }
details.editar summary { cursor: pointer; font-weight: 600; color: var(--gold-dark); font-size: .9rem; }
details.editar[open] summary { margin-bottom: 1rem; }
.form-2 { display: grid; gap: 0 1rem; grid-template-columns: minmax(0,1fr); }
@media (min-width: 640px) { .form-2 { grid-template-columns: 1fr 1fr; } }
.peligro { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.peligro .btn { color: var(--red); border-color: var(--red-wash); }

/* ================= pantalla de sesión ================= */
body.sesion { background: var(--paper); min-height: 100vh; display: flex; flex-direction: column; }
.s-top { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.s-top .dentro { display: flex; align-items: center; gap: .8rem; padding: .6rem 16px; max-width: 1280px; margin: 0 auto; }
.s-top img { width: 30px; height: 30px; }
.s-top .tit { font-family: var(--serif); color: var(--navy); font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-top .tit small { font-family: var(--sans); color: var(--gray); font-size: .78rem; margin-left: .4rem; }
.s-top .derecha { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.guardado { font-size: .78rem; color: var(--gray); min-width: 6.5em; text-align: right; transition: color .2s; }
.guardado.ok { color: var(--green); }
.guardado.error { color: var(--red); font-weight: 600; }
.modo { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line); background: var(--white);
  border-radius: 999px; padding: .35em .85em; font-size: .8rem; font-weight: 600; cursor: pointer; color: var(--ink-soft); }
.modo[aria-pressed=true] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.modo .punto { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.modo[aria-pressed=true] .punto { background: var(--gold-soft); }
.progreso { display: flex; gap: 3px; padding: 0 16px 0; max-width: 1280px; margin: 0 auto; }
.progreso button { flex: 1; height: 5px; border: none; padding: 0; border-radius: 3px; background: var(--line); cursor: pointer; transition: background .25s; }
.progreso button.hecha { background: var(--gold-soft); }
.progreso button.actual { background: var(--gold); }
.progreso-espacio { height: 8px; }

.s-cuerpo { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1280px; width: 100%; margin: 0 auto; }
@media (min-width: 1000px) { .s-cuerpo { grid-template-columns: 240px minmax(0, 1fr); }
  .s-cuerpo.con-notas { grid-template-columns: 240px minmax(0, 1fr) 300px; } }
.s-indice { display: none; padding: 1.5rem 0 1.5rem 16px; }
@media (min-width: 1000px) { .s-indice { display: block; } }
.s-indice ol { list-style: none; margin: 0; padding: 0; position: sticky; top: 90px; }
.s-indice .grupo { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; margin: .9rem 0 .25rem .6rem; }
.s-indice button { width: 100%; text-align: left; display: flex; gap: .5rem; align-items: flex-start; border: none; background: none;
  padding: .4rem .6rem; border-radius: 8px; font-size: .82rem; color: var(--body); cursor: pointer; line-height: 1.3; }
.s-indice button:hover { background: var(--cream); }
.s-indice button.actual { background: var(--white); color: var(--navy); font-weight: 600; box-shadow: var(--sombra); }
.s-indice .marca { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line); margin-top: 1px; display: grid; place-items: center; font-size: 10px; color: var(--white); }
.s-indice .completa .marca { background: var(--gold); border-color: var(--gold); }
.s-indice .parcial .marca { border-color: var(--gold); background: linear-gradient(90deg, var(--gold) 50%, transparent 50%); }

.s-pantalla { padding: 2rem 16px 7rem; min-width: 0; outline: none; }
.s-pantalla:focus, .s-pantalla:focus-visible { box-shadow: none; }
.al-final .s-indice, .al-final .s-notas { visibility: hidden; }
@media (max-width: 560px) {
  .s-top .dentro { gap: .5rem; }
  .s-top .tit small, .guardado.ok { display: none; }
  .modo { white-space: nowrap; padding: .35em .7em; }
}
.s-hoja { max-width: 760px; margin: 0 auto; }
.s-hoja.entra { animation: entra .32s cubic-bezier(.2,.7,.2,1); }
.s-hoja.entra-atras { animation: entra-atras .32s cubic-bezier(.2,.7,.2,1); }
@keyframes entra { from { opacity: 0; transform: translateX(24px); } }
@keyframes entra-atras { from { opacity: 0; transform: translateX(-24px); } }
@media (prefers-reduced-motion: reduce) { .s-hoja.entra, .s-hoja.entra-atras { animation: none; } }
.s-bloque { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; margin-bottom: .6rem; }
.s-preg { font-size: clamp(1.45rem, 3.2vw, 2.05rem); margin-bottom: .7rem; }
.s-preg.larga { font-size: clamp(1.2rem, 2.4vw, 1.55rem); line-height: 1.4; }
.s-instr { color: var(--body); margin: 0 0 1.25rem; font-size: .98rem; }
.s-ayuda { display: flex; gap: .6rem; align-items: flex-start; background: var(--cream); border-radius: 10px; padding: .7rem .9rem; font-size: .9rem; color: var(--ink-soft); margin: 0 0 1.4rem; }
.s-ayuda::before { content: "i"; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--navy); color: var(--white);
  font: italic 700 .75rem/20px var(--serif); text-align: center; margin-top: 1px; }
.s-sub { margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px dashed var(--line); }
.s-sub h2 { font-size: 1.2rem; margin-bottom: .8rem; }
.s-sub.aparece { animation: aparece .3s ease-out; }
@keyframes aparece { from { opacity: 0; transform: translateY(-6px); } }

.opciones { display: grid; gap: .55rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .opciones.dos-col { grid-template-columns: 1fr 1fr; } }
.opcion { position: relative; display: flex; align-items: center; gap: .8rem; min-height: 56px; padding: .75rem 1rem;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radio); cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s, transform .1s; }
.opcion:hover { border-color: var(--gold-soft); }
.opcion:active { transform: scale(.995); }
.opcion input { position: absolute; opacity: 0; pointer-events: none; }
.opcion .tecla { flex: none; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line); display: grid; place-items: center;
  font-size: .75rem; font-weight: 700; color: var(--gray); background: var(--paper); }
.opcion .txt { flex: 1; font-size: 1rem; color: var(--ink); }
.opcion .check { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: all .15s; }
.opcion.multi .check { border-radius: 6px; }
.opcion.sel { border-color: var(--gold); background: var(--gold-wash); box-shadow: 0 0 0 1px var(--gold) inset; }
.opcion.sel .tecla { background: var(--gold); border-color: var(--gold); color: var(--white); }
.opcion.sel .check { background: var(--gold); border-color: var(--gold); }
.opcion.sel .check::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--white); border-top: none; border-right: none; transform: rotate(-45deg) translate(1px, -1px); }
.opcion:has(input:focus-visible) { box-shadow: var(--foco); }
.opcion.apagada { opacity: .45; cursor: not-allowed; }
.opcion.lvj .txt { color: var(--gold-dark); font-style: italic; }
.estrella { flex: none; border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: .2em .65em; font-size: .78rem; cursor: pointer; color: var(--gray); }
.estrella.on { background: var(--navy); border-color: var(--navy); color: var(--gold-soft); font-weight: 700; }
.contador { font-size: .82rem; color: var(--gray); margin: .6rem 0 0; }
.otro-texto { grid-column: 1 / -1; margin: -.15rem 0 .2rem; }
.opciones.compactas { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.opciones.compactas .opcion { min-height: 48px; padding: .55rem .85rem; }
.opciones.compactas .txt { font-size: .95rem; }

.balanzas { display: grid; gap: .9rem; }
.balanza { background: var(--white); border: 1px solid var(--line); border-radius: var(--radio); padding: 1rem 1rem .9rem; transition: border-color .2s; }
.balanza.hecha { border-color: var(--gold-soft); }
.balanza .extremos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; font-size: .9rem; color: var(--ink-soft); margin-bottom: .7rem; }
.balanza .extremos span:last-child { text-align: right; }
.balanza .extremos .fuerte { color: var(--navy); font-weight: 600; }
.escala { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; height: 44px; }
.escala::before { content: ""; position: absolute; left: 10%; right: 10%; top: 50%; height: 2px; background: var(--line); transform: translateY(-50%); }
.escala label { position: relative; display: grid; place-items: center; height: 44px; cursor: pointer; }
.escala input { position: absolute; opacity: 0; }
.escala .bola { width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 2px solid var(--line); transition: all .15s; }
.escala label:nth-child(3) .bola { width: 14px; height: 14px; }
.escala label:hover .bola { border-color: var(--gold-soft); }
.escala input:checked + .bola { width: 28px; height: 28px; background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px var(--gold-wash); }
.escala input:focus-visible + .bola { box-shadow: var(--foco); }
.balanza .pie-bal { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-top: .45rem; }
.balanza .lectura { font-size: .82rem; color: var(--gray); min-height: 1.2em; }
.chip-lvj { border: 1px dashed var(--gold-soft); background: none; color: var(--gold-dark); border-radius: 999px; padding: .3em .8em; font-size: .8rem; cursor: pointer; white-space: nowrap; }
.chip-lvj[aria-pressed=true] { background: var(--gold-wash); border-style: solid; font-weight: 700; }

.triaje { display: grid; gap: .7rem; }
.tri-fila { background: var(--white); border: 1px solid var(--line); border-radius: var(--radio); padding: .85rem 1rem; transition: border-color .2s; }
.tri-fila.hecha { border-color: var(--gold-soft); }
.tri-fila .txt { font-size: 1rem; margin-bottom: .6rem; }
.tri-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; }
.tri-cols label { position: relative; display: grid; place-items: center; text-align: center; min-height: 44px; padding: .35rem .3rem; border: 1px solid var(--line);
  border-radius: 9px; font-size: .8rem; line-height: 1.2; cursor: pointer; background: var(--paper); transition: all .15s; }
.tri-cols input { position: absolute; opacity: 0; }
.tri-cols label:has(input:checked) { color: var(--white); font-weight: 700; }
.tri-cols label.imp:has(input:checked) { background: var(--navy); border-color: var(--navy); }
.tri-cols label.suma:has(input:checked) { background: var(--gold); border-color: var(--gold); }
.tri-cols label.igual:has(input:checked) { background: var(--gray); border-color: var(--gray); }
.tri-cols label.evitar:has(input:checked) { background: var(--red); border-color: var(--red); }
.tri-cols label:has(input:focus-visible) { box-shadow: var(--foco); }
.tri-resumen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; margin-top: 1.2rem; }
.tri-resumen div { border-radius: 10px; background: var(--cream); padding: .6rem .75rem; font-size: .8rem; }
.tri-resumen b { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: .2rem; }

.casilla { display: inline-flex; align-items: center; gap: .55rem; margin-top: .7rem; cursor: pointer; font-size: .95rem; }
.casilla input { width: 20px; height: 20px; accent-color: var(--gold); }

.glos { border: none; background: none; padding: 0; font: inherit; color: inherit; cursor: help;
  text-decoration: underline dotted var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.glos-pop { position: absolute; z-index: 30; max-width: 300px; background: var(--navy); color: var(--white); border-radius: 10px; padding: .7rem .9rem;
  font-size: .86rem; line-height: 1.45; box-shadow: 0 12px 30px -10px rgba(0,0,0,.45); animation: aparece .18s ease-out; }
.glos-pop b { color: var(--gold-soft); display: block; margin-bottom: .15rem; font-family: var(--serif); font-weight: normal; font-size: .95rem; }

.s-notas { display: none; }
.con-notas .s-notas { display: block; padding: 1.5rem 16px 7rem 0; }
.s-notas .caja-notas { position: sticky; top: 90px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radio); padding: 1rem; }
.s-notas h2 { font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; margin-bottom: .3rem; }
.s-notas p { font-size: .8rem; color: var(--gray); margin: 0 0 .6rem; }
.s-notas textarea { min-height: 200px; font-size: .92rem; }
@media (max-width: 999px) { .con-notas .s-notas { padding: 0 16px 7rem; } .s-notas .caja-notas { position: static; } }

.s-pie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: rgba(250,248,244,.94); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.s-pie .dentro { max-width: 760px; margin: 0 auto; padding: .7rem 16px calc(.7rem + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: .75rem; }
.s-pie .paso { font-size: .82rem; color: var(--gray); margin: 0 auto; text-align: center; }
.s-pie .btn { min-width: 110px; }
.atajos { font-size: .72rem; color: var(--gray); }
@media (max-width: 640px) { .atajos { display: none; } }

.repaso .resp { padding: .9rem 0; }
.repaso .resp .cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.repaso .falta-obl { color: var(--red); font-weight: 600; font-size: .85rem; }
.repaso-pie { margin-top: 1.5rem; padding: 1.2rem; border-radius: var(--radio); background: var(--white); border: 1px solid var(--line); display: grid; gap: .8rem; justify-items: start; }

.gracias { text-align: center; padding: 3rem 0; }
.gracias img { width: 72px; height: 72px; margin-bottom: 1.5rem; }
.gracias h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.gracias p { color: var(--body); font-size: 1.1rem; max-width: 34em; margin: 0 auto 1rem; }
.gracias .lema { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); margin-top: 2rem; }

.modal-fondo { position: fixed; inset: 0; z-index: 50; background: rgba(15,28,47,.55); display: grid; place-items: center; padding: 16px; animation: aparece .2s; }
.modal { background: var(--paper); border-radius: 16px; padding: 1.5rem; max-width: 420px; width: 100%; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.modal h2 { font-size: 1.3rem; margin-bottom: .6rem; }
.modal p { color: var(--body); margin: 0 0 1.2rem; }
.modal .botones { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
