/* Aprende: píldoras, plan de estudio y ¿Puedo comer esto? (carril F8), sobre base.css.
   Prefijos: apr- (inicio y listas de Aprende), pl- (lector de píldora), cm- (¿Puedo comer esto?).
   Solo tokens de base.css: el tema Noche sale solo; lo que cambia en Noche, al final. */

/* ---------- Veredictos (sí / con precaución / mejor no): color + icono + texto, nunca solo color ---------- */
.v-si { --v-bg: var(--sage-soft); --v-ink: var(--sage-ink); --v-solid: var(--sage-ink); --v-on: var(--on-sage); }
.v-precaucion { --v-bg: var(--now-bg); --v-ink: var(--now-ink); --v-solid: var(--now-ink); --v-on: var(--surface); }
.v-no { --v-bg: var(--peach-soft); --v-ink: var(--peach-ink); --v-solid: var(--peach-ink); --v-on: var(--surface); }
.cm-badge { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--v-solid); color: var(--v-on); }
.cm-badge .ico { stroke-width: 2.4; }
.cm-badge-sm { width: 22px; height: 22px; }

/* ---------- Aprende: inicio ---------- */
.apr .screen-head { margin-bottom: 12px; }
.apr-search { position: relative; display: flex; align-items: center; margin-bottom: 16px; }
.apr-q { padding-left: 44px; padding-right: 48px; min-height: 48px; border-radius: 999px; background: var(--surface); }
.apr-q-lupa { position: absolute; left: 15px; color: var(--ink-3); pointer-events: none; }
.apr-q-clear { position: absolute; right: 2px; border-radius: 50%; }
.apr-results[hidden], .apr-home[hidden] { display: none; }
.apr-home { display: flex; flex-direction: column; }
.apr-home > .card + .card, .apr-home > .card + .apr-today, .apr-home > .apr-today + .card { margin-top: 12px; }
.apr-sec { margin-top: 10px; }
.apr-when { margin: -2px 0 4px; }

/* Tu píldora de hoy (lo diario: compacta, con el plan plegado al pie) */
.apr-today { position: relative; padding: 14px 16px 4px; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-1);
  background: linear-gradient(165deg, var(--sage-wash) 0%, var(--surface) 62%); }
.apr-today.is-rest { background: linear-gradient(165deg, var(--sunk) 0%, var(--surface) 62%); }
.apr-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--sage-ink); }
.apr-eyebrow.is-rest { color: var(--ink-2); }
.apr-today-main { display: flex; align-items: flex-end; gap: 12px; margin: 6px -8px 0; padding: 6px 8px 10px; border-radius: 16px; color: inherit; text-decoration: none; }
.apr-today-main:hover .apr-today-title { color: var(--sage-ink); }
.apr-today-main:focus-visible { outline-offset: -2px; }
.apr-today-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.apr-today-title { display: block; font-size: 19px; line-height: 1.28; font-weight: 800; letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; transition: color .2s; }
.apr-today-sum { font-size: 14px; line-height: 1.45; color: var(--ink-2); font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.apr-today-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.apr-today-go { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--sage-soft); color: var(--sage-ink); font-size: 15px; font-weight: 800; transition: transform .15s var(--ease); }
.apr-today-go.is-main { background: var(--sage-ink); color: var(--on-sage); box-shadow: 0 6px 16px rgba(63, 94, 72, .2); }
.apr-today-main:active .apr-today-go { transform: scale(.97); }
.apr-today-also { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: -4px -8px 4px; padding: 0 8px; border-radius: 12px; color: inherit; text-decoration: none; font-size: 14px; }
.apr-today-also:hover { background: color-mix(in srgb, var(--sunk) 60%, transparent); }
.apr-today-also-k { flex: none; font-weight: 800; color: var(--ink-2); }
.apr-today-also-t { flex: 1; min-width: 0; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apr-today.is-done .apr-today-title { margin: 6px 0 4px; }
.apr-next { display: flex; align-items: center; gap: 10px; min-height: 52px; margin: 4px -8px 6px; padding: 6px 8px; border-radius: 14px; color: inherit; text-decoration: none; }
.apr-next:hover { background: color-mix(in srgb, var(--sunk) 60%, transparent); }
.apr-next-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.apr-next-k { font-size: 13px; font-weight: 800; color: var(--sage-ink); }
.apr-next-title { font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.apr-next-min { flex: none; font-size: 13px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* El plan y el progreso de los dos: una línea que se despliega */
.apr-plan { margin: 0 -16px; border-top: 1px solid var(--line); }
.apr-plan-row { display: flex; align-items: center; }
.apr-plan-row .apr-plan-line { flex: 1; min-width: 0; }
.apr-plan-elegir { flex: none; margin-right: 10px; }
.apr-plan.is-elegir .apr-plan-line { border-radius: 0 0 0 22px; }
.apr-plan-line { width: 100%; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px 0 16px; text-align: left; font-size: 14px; font-weight: 600; color: var(--ink-2); border-radius: 0 0 22px 22px; }
.apr-plan-line[aria-expanded="true"] { border-radius: 0; }
.apr-plan-line:hover { background: color-mix(in srgb, var(--sunk) 45%, transparent); }
.apr-plan-line:focus-visible { outline-offset: -3px; }
.apr-plan-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--sage-strong); }
.apr-plan-dot.is-justo { background: var(--now-dot); }
/* Sin ritmo todavía: círculo vacío neutro (no es un aviso). */
.apr-plan-dot.is-elegir { background: transparent; box-shadow: inset 0 0 0 2px var(--ink-3); }
.apr-plan-dot.is-corto { background: var(--peach-strong); }
.apr-plan-sum { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apr-plan-sum strong { font-weight: 800; color: var(--ink); }
.apr-plan.is-justo .apr-plan-sum strong { color: var(--now-ink); }
.apr-plan.is-corto .apr-plan-sum strong { color: var(--peach-ink); }
.apr-plan-more { flex: none; font-size: 13px; font-weight: 800; color: var(--sage-ink); }
.apr-plan-chev { flex: none; color: var(--ink-2); transition: transform .25s var(--ease); }
.apr-plan-line[aria-expanded="true"] .apr-plan-chev { transform: rotate(180deg); }
.apr-plan-panel { padding: 2px 16px 16px; animation: apr-open .22s var(--ease); }
.apr-plan-panel[hidden] { display: none; }
@keyframes apr-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.apr-plan-msg { font-size: 15px; line-height: 1.45; color: var(--ink); font-weight: 600; }
.apr-plan-ritmo { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.apr-plan-ritmo .btn { margin-right: -10px; }
.apr-plan-dos-t { margin-top: 10px; font-size: 13px; font-weight: 800; color: var(--ink-2); }

/* ¿Puedo comer…? (un campo con cámara, como en Hoy) */
.apr-comer { margin-top: 12px; }
.apr-comer-form { display: flex; align-items: center; gap: 4px; min-height: 52px; padding: 2px 4px 2px 14px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line-2); transition: border-color .2s, box-shadow .2s; }
.apr-comer-form:focus-within { border-color: var(--sage-strong); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sage) 25%, transparent); }
.apr-comer-ico { flex: none; color: var(--peach-ink); }
.apr-comer-input { flex: 1; min-width: 0; min-height: 46px; padding: 0 6px; border: 0; background: transparent; font-size: 16px; font-weight: 700; color: var(--ink); -webkit-appearance: none; appearance: none; }
.apr-comer-input::placeholder { color: var(--ink-3); opacity: 1; }
.apr-comer-input:focus { outline: none; }
.apr-comer-input::-webkit-search-cancel-button { display: none; }
.apr-comer-cam { color: var(--sage-ink); }
.apr-comer-last { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 4px 0 -4px; padding: 0 6px; border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.apr-comer-last > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apr-comer-last:hover { background: var(--sunk); color: var(--ink); }

/* Lo que leyó la otra persona */
.apr-pareja { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.apr-pareja-item { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px; border-radius: 16px; background: var(--peach-wash); color: var(--ink); text-decoration: none; }
.apr-pareja-item:hover { box-shadow: inset 0 0 0 1.5px var(--peach); }
.apr-pareja-text { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; line-height: 1.4; }

/* Filas de píldoras */
.apr-rows { list-style: none; display: flex; flex-direction: column; }
.apr-row { position: relative; }
.apr-rows > .apr-row + .apr-row::before { content: ""; position: absolute; left: 56px; right: 8px; top: 0; height: 1px; background: var(--line); }
.apr-row-link { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 4px 10px 6px; border-radius: 14px; color: inherit; text-decoration: none; transition: background .2s; }
.apr-row-link:hover { background: color-mix(in srgb, var(--sunk) 60%, transparent); }
.apr-row-link:focus-visible { outline-offset: -2px; }
.apr-row-lead { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--sage-wash); color: var(--sage-ink); }
.apr-row-lead.done { border-radius: 50%; background: var(--sage-ink); color: var(--on-sage); }
.apr-row-lead.done .ico { stroke-width: 2.4; }
.apr-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.apr-row-title { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.apr-row.is-done .apr-row-title { color: var(--ink-2); }
.apr-row-sub { font-size: 14px; font-weight: 600; color: var(--ink-2); line-height: 1.35; }
.apr-row-state { color: var(--sage-ink); font-weight: 800; }
.apr-row-chips { margin-top: 3px; }
.apr-row-end { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.apr-row-chev { color: var(--ink-3); }
.apr-fav-mark { color: var(--peach-ink); display: inline-flex; }
.apr-fav-mark .ico path { fill: currentColor; }
.apr-partner { position: relative; display: inline-flex; }
.apr-partner-check { position: absolute; right: -4px; bottom: -3px; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-ink); color: var(--on-sage); box-shadow: 0 0 0 2px var(--bg); }
.apr-partner-check .ico { stroke-width: 3; }
.apr-preo .apr-row-lead { background: var(--peach-wash); color: var(--peach-ink); }

/* Temas */
.apr-temas { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.apr-tema { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; transition: border-color .2s, background .2s; }
.apr-tema .ico { color: var(--sage-ink); }
.apr-tema:hover { border-color: var(--sage); background: var(--sage-wash); }
.apr-tema.is-key { background: var(--peach-wash); border-color: transparent; color: var(--peach-ink); font-weight: 800; }
.apr-tema.is-key .ico { color: var(--peach-ink); }
.apr-tema.is-key:hover { box-shadow: inset 0 0 0 1.5px var(--peach); }
.apr-tema.is-fav .ico { color: var(--peach-ink); }

/* Etapas */
.apr-etapas { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.apr-etapa { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: border-color .2s; }
.apr-etapa:hover { border-color: var(--line-2); }
.apr-etapa.is-now { border-color: color-mix(in srgb, var(--now-dot) 45%, var(--line)); }
.apr-etapa-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.apr-etapa-name { font-size: 16px; font-weight: 800; color: var(--ink); }
.apr-etapa-sub { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.apr-etapa-when { font-weight: 800; }
.apr-etapa-when.tone-now { color: var(--now-ink); }
.apr-etapa-when.tone-peach { color: var(--peach-ink); }
.apr-etapa-n { font-variant-numeric: tabular-nums; }
.apr-etapa .bar { margin-top: 4px; }
.apr-fold { margin-top: 8px; }
.apr-fold > .fold-body { padding: 0 8px 8px; }

/* Cómo vais los dos */
.apr-dos-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.apr-dos-row { display: flex; align-items: flex-start; gap: 12px; }
.apr-dos-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.apr-dos-name { font-size: 15px; font-weight: 800; color: var(--ink); }
.apr-dos-n { font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.apr-etapa-dos { margin: 0 0 6px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.apr-crosslink { display: flex; align-items: center; gap: 10px; min-height: 56px; margin-top: 18px; padding: 10px 14px; border-radius: 16px; background: var(--peach-wash); color: var(--peach-ink); font-weight: 800; text-decoration: none; }
.apr-crosslink span { flex: 1; }

/* Hoja del ritmo */
.apr-sheet-lead { font-size: 15px; color: var(--ink-2); line-height: 1.45; margin-bottom: 16px; }
.apr-sheet-block { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.apr-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.apr-choice { min-height: 44px; min-width: 72px; padding: 0 16px; border-radius: 999px; background: var(--sunk); color: var(--ink); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; transition: background .2s, color .2s, transform .15s var(--ease); }
.apr-choice:hover { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.apr-choice.on { background: var(--sage-ink); color: var(--on-sage); font-weight: 800; }
.apr-choice:active { transform: scale(.96); }
.apr-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.apr-day { min-height: 48px; border-radius: 14px; background: var(--sunk); color: var(--ink); font-size: 16px; font-weight: 800; transition: background .2s, color .2s, transform .15s var(--ease); }
.apr-day:hover { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.apr-day.on { background: var(--sage-ink); color: var(--on-sage); }
.apr-day:active { transform: scale(.94); }
.apr-preview { margin-top: 22px; padding: 14px 16px; border-radius: 16px; background: var(--sage-wash); }
.apr-preview.is-tight { background: var(--now-bg); }
.apr-preview-head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--sage-ink); }
.apr-preview.is-tight .apr-preview-head { color: var(--now-ink); }
.apr-preview-line { margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--ink); }
.apr-preview-msg { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--ink-2); line-height: 1.45; }

/* ---------- Lector de píldora ---------- */
.pl { --pl-top: calc(var(--topbar-h) + var(--safe-t)); }
.pl-bar { position: sticky; top: var(--pl-top); z-index: 15; margin: -8px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter); background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
html.offline .pl-bar { top: calc(var(--pl-top) + 34px); }
.pl-bar-in { display: flex; align-items: center; gap: 2px; min-height: 52px; max-width: 40rem; margin: 0 auto; }
.pl-back { margin-left: -10px; color: var(--ink); }
.pl-bar-title { flex: 1; min-width: 0; padding: 0 6px; font-size: 15px; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s var(--ease); }
.pl-bar.show-title .pl-bar-title { opacity: 1; transform: none; }
.pl-voice { display: inline-flex; align-items: center; gap: 2px; }
.pl-voice[hidden] { display: none; }
.pl-voice-btn.is-on { background: var(--sage-soft); color: var(--sage-ink); border-radius: 50%; }
.pl-fav { color: var(--ink-2); }
.pl-fav.is-on { color: var(--peach-ink); }
.pl-fav.is-on .ico path { fill: currentColor; }
.pl-fav.is-on .ico { animation: pl-heart .38s var(--spring); }
@keyframes pl-heart { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
.pl-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); overflow: hidden; }
.pl-progress-fill { display: block; height: 100%; background: var(--sage-strong); transform: scaleX(0); transform-origin: 0 50%; transition: transform .12s linear; }

.pl-art { max-width: 40rem; margin: 0 auto; padding-top: 18px; }
.pl-head { padding-bottom: 6px; }
.pl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.pl-tag { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--sage-wash); color: var(--sage-ink); font-size: 13px; font-weight: 800; text-decoration: none; }
.pl-tag:hover { box-shadow: inset 0 0 0 1.5px var(--sage); }
.pl-min { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 0 4px; }
.pl-title { margin-top: 14px; font-size: 28px; line-height: 1.18; font-weight: 800; letter-spacing: -.02em; color: var(--ink); overflow-wrap: anywhere; }
.pl-lead { margin-top: 10px; font-size: 18px; line-height: 1.5; font-weight: 600; color: var(--ink-2); }
.pl-chips { margin-top: 14px; }
.pl-unverified { display: flex; gap: 8px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--now-bg); color: var(--now-ink); font-size: 14px; font-weight: 700; line-height: 1.45; }
.pl-unverified .ico { flex: none; margin-top: 1px; }
.pl-pareja { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--ink-2); }

/* Cuerpo: lectura cómoda */
.pl-body, .pl-sec { font-size: 17px; line-height: 1.55; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.pl-body { margin-top: 18px; display: flex; flex-direction: column; gap: 18px; }
.pl-p { margin: 0; }
.pl-body strong { font-weight: 800; }
.pl-h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.pl-h2 .ico { color: var(--sage-ink); }
.pl-h3 { font-size: 18px; line-height: 1.35; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.pl-h4 { font-size: 15px; font-weight: 800; color: var(--ink-2); }
.pl-list ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pl-list li { position: relative; padding-left: 22px; }
.pl-list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--sage-strong); }
.pl-call { padding: 14px 16px 16px; border-radius: 18px; }
.pl-call p + p { margin-top: 8px; }
.pl-call-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 14px; font-weight: 800; letter-spacing: .01em; }
.pl-tip { background: var(--sage-wash); }
.pl-tip .pl-call-head { color: var(--sage-ink); }
.pl-criterio { background: var(--sunk); border-left: 3px solid var(--sage-strong); border-radius: 6px 18px 18px 6px; }
.pl-criterio .pl-call-head { color: var(--sage-ink); }
.pl-cita { background: var(--peach-wash); }
.pl-cita .pl-call-head { color: var(--peach-ink); }
.pl-cita-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pl-cita-list li { position: relative; padding-left: 20px; }
.pl-cita-list li::before { content: "?"; position: absolute; left: 2px; top: 0; font-weight: 800; color: var(--peach-ink); }
.pl-evid { background: var(--sunk); border-left: 3px solid var(--line-2); border-radius: 6px 18px 18px 6px; font-size: 16px; }
.pl-evid .pl-call-head { color: var(--ink-2); }
.pl-evid p:not(.pl-call-head) { color: var(--ink); }

/* Dudas frecuentes (plegables una a una) */
.pl-faq { display: flex; flex-direction: column; gap: 6px; }
.pl-faq-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pl-faq-all { flex: none; min-height: 44px; padding: 0 8px; border-radius: 10px; font-size: 14px; font-weight: 800; color: var(--sage-ink); }
.pl-faq-all:hover { background: var(--sage-wash); }
.pl-faq-list { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.pl-faq-item + .pl-faq-item { border-top: 1px solid var(--line); }
.pl-faq-h { margin: 0; font: inherit; }
.pl-faq-q { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 14px 12px 16px; text-align: left; font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.pl-faq-q:hover { background: color-mix(in srgb, var(--sunk) 55%, transparent); }
.pl-faq-q:focus-visible { outline-offset: -3px; }
.pl-faq-q-text { flex: 1; min-width: 0; }
.pl-faq-chev { flex: none; color: var(--ink-2); transition: transform .25s var(--ease); }
.pl-faq-q[aria-expanded="true"] .pl-faq-chev { transform: rotate(180deg); }
.pl-faq-q[aria-expanded="true"] { color: var(--sage-ink); }
.pl-faq-a { padding: 0 16px 16px; font-size: 16px; line-height: 1.55; color: var(--ink); animation: pl-open .22s var(--ease); }
.pl-faq-a[hidden] { display: none; }
@keyframes pl-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Lo que se está leyendo en voz alta */
.pl-p, .pl-list, .pl-call, .pl-faq-item, .pl-head, .pl-myth, .pl-practica { transition: background-color .3s, box-shadow .3s; }
.pl .is-speaking { background-color: color-mix(in srgb, var(--sage-soft) 70%, transparent); box-shadow: 0 0 0 8px color-mix(in srgb, var(--sage-soft) 70%, transparent); border-radius: 8px; }
.pl .pl-call.is-speaking, .pl .pl-myth.is-speaking { box-shadow: 0 0 0 3px var(--sage); }
.pl .pl-faq-item.is-speaking { box-shadow: inset 4px 0 0 var(--sage-strong); border-radius: 0; }

/* En la práctica, mitos, pregunta rápida, fuentes */
.pl-sec { margin-top: 30px; }
.pl-steps { list-style: none; counter-reset: paso; display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.pl-steps li { counter-increment: paso; display: flex; gap: 12px; align-items: flex-start; }
.pl-steps li::before { content: counter(paso); flex: none; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-soft); color: var(--sage-ink); font-size: 14px; font-weight: 800; line-height: 1; }
.pl-mitos { display: flex; flex-direction: column; gap: 10px; }
.pl-mitos .pl-h2 { margin-bottom: 2px; }
.pl-myth { border-radius: 18px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.pl-myth-m, .pl-myth-r { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; font-size: 16px; line-height: 1.5; }
.pl-myth-m { color: var(--ink-2); background: var(--bg); }
.pl-myth-m > span:last-child { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-2) 45%, transparent); text-decoration-thickness: 1.5px; }
.pl-myth-k { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pl-myth-m .pl-myth-k { color: var(--peach-ink); }
.pl-myth-r .pl-myth-k { color: var(--sage-ink); }
.pl-quiz { padding: 18px 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.pl-quiz-prev { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.pl-quiz-q { margin-top: 10px; font-size: 17px; font-weight: 700; line-height: 1.45; color: var(--ink); }
.pl-quiz-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.pl-quiz-opt { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--bg); border: 1.5px solid var(--line-2); text-align: left; font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--ink); transition: border-color .2s, background .2s, opacity .2s, transform .15s var(--ease); }
.pl-quiz-opt:hover:not(:disabled) { border-color: var(--sage); background: var(--sage-wash); }
.pl-quiz-opt:active:not(:disabled) { transform: scale(.985); }
.pl-quiz-opt:disabled { opacity: 1; cursor: default; }
.pl-quiz-mark { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--sunk); color: var(--ink-2); font-size: 14px; font-weight: 800; }
.pl-quiz-text { flex: 1; min-width: 0; }
.pl-quiz-opt.is-right { border-color: var(--sage-strong); background: var(--sage-soft); }
.pl-quiz-opt.is-right .pl-quiz-mark { background: var(--sage-ink); color: var(--on-sage); }
.pl-quiz-opt.is-wrong { border-color: var(--peach-strong); background: var(--peach-wash); }
.pl-quiz-opt.is-wrong .pl-quiz-mark { background: var(--peach-ink); color: var(--surface); }
.pl-quiz-opt.is-right .ico, .pl-quiz-opt.is-wrong .ico { stroke-width: 2.6; }
.pl-quiz-opt.is-dim { opacity: .6; }
.pl-quiz-fb { margin-top: 14px; padding: 14px 16px; border-radius: 16px; font-size: 16px; line-height: 1.5; animation: pl-open .25s var(--ease); }
.pl-quiz-fb.is-ok { background: var(--sage-wash); }
.pl-quiz-fb.is-ko { background: var(--peach-wash); }
.pl-quiz-fb-t { font-weight: 800; margin-bottom: 4px; }
.pl-quiz-fb.is-ok .pl-quiz-fb-t { color: var(--sage-ink); }
.pl-quiz-fb.is-ko .pl-quiz-fb-t { color: var(--peach-ink); }
.pl-quiz-again { margin-top: 4px; font-size: 14px; }
.pl-src { padding-top: 18px; border-top: 1px solid var(--line); }
.pl-src ul { list-style: none; display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.pl-src-link { display: flex; flex-direction: column; gap: 1px; min-height: 44px; justify-content: center; padding: 6px 0; font-size: 14px; line-height: 1.4; color: var(--ink); text-decoration: none; }
.pl-src-link:hover .pl-src-t { text-decoration: underline; }
.pl-src-t { font-weight: 700; color: var(--sage-ink); }
.pl-src-host { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }

/* Cierre: «Ya la he aprendido», el pequeño momento y la siguiente */
.pl-end { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.pl-learn { min-height: 56px; font-size: 16px; border-radius: 16px; }
.pl-end-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-end-row .btn { flex: 1 1 160px; }
.pl-done { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; background: var(--sage-wash); }
.pl-done.is-new { animation: pl-pop .45s var(--spring); }
@keyframes pl-pop { 0% { transform: scale(.96); opacity: .4; } 100% { transform: none; opacity: 1; } }
.pl-done-ico { flex: none; width: 48px; height: 48px; }
.pl-done-svg { width: 48px; height: 48px; overflow: visible; }
.pl-done-ring { fill: var(--sage-ink); stroke: var(--sage-ink); stroke-width: 2; }
.pl-done-check { fill: none; stroke: var(--on-sage); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.pl-done-svg.draw .pl-done-ring { fill-opacity: 0; stroke-dasharray: 1; stroke-dashoffset: 1; animation: pl-ring .5s var(--ease) forwards, pl-fill .25s var(--ease) .42s forwards; }
.pl-done-svg.draw .pl-done-check { stroke-dasharray: 1; stroke-dashoffset: 1; animation: pl-draw .32s var(--ease) .55s forwards; }
@keyframes pl-ring { to { stroke-dashoffset: 0; } }
@keyframes pl-fill { to { fill-opacity: 1; } }
@keyframes pl-draw { to { stroke-dashoffset: 0; } }
.pl-done-text { flex: 1; min-width: 0; }
.pl-done-t { font-size: 18px; font-weight: 800; color: var(--sage-ink); }
.pl-done-sub { font-size: 14px; font-weight: 600; color: var(--ink-2); line-height: 1.4; margin-top: 2px; }
.pl-undo { flex: none; font-size: 14px; color: var(--ink-2); }
.pl-next { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; background: var(--surface); border: 1.5px solid var(--line-2); color: inherit; text-decoration: none; transition: border-color .2s, transform .15s var(--ease); }
.pl-next:hover { border-color: var(--sage); }
.pl-next:active { transform: scale(.99); }
.pl-next-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pl-next-k { font-size: 13px; font-weight: 800; color: var(--sage-ink); }
.pl-next-t { font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.pl-next-sub { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pl-next-go { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-ink); color: var(--on-sage); }

/* ---------- ¿Puedo comer esto? ---------- */
.cm .screen-head { margin-bottom: 6px; }
.cm-mode { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 5px 12px 5px 10px; border-radius: 999px; background: var(--peach-wash); color: var(--peach-ink); font-size: 14px; font-weight: 700; line-height: 1.3; }
.cm-mode .ico { flex: none; }
.cm-mode[hidden] { display: none; }
.cm-form { display: flex; align-items: center; gap: 4px; min-height: 56px; padding: 2px 4px 2px 14px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line-2); transition: border-color .2s, box-shadow .2s; }
.cm-form:focus-within { border-color: var(--sage-strong); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sage) 25%, transparent); }
.cm-ico { flex: none; color: var(--peach-ink); }
.cm-input { flex: 1; min-width: 0; min-height: 50px; padding: 0 6px; border: 0; background: transparent; font-size: 17px; font-weight: 700; color: var(--ink); -webkit-appearance: none; appearance: none; }
.cm-input::placeholder { color: var(--ink-3); opacity: 1; font-weight: 600; }
.cm-input:focus { outline: none; }
.cm-input::-webkit-search-cancel-button { display: none; }
.cm-clear { border-radius: 50%; }
.cm-cam { color: var(--sage-ink); }
.cm-result { margin-top: 20px; }
.cm-thumb { flex: none; width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--sunk); box-shadow: 0 0 0 1px var(--line); }
.cm-thumb[hidden] { display: none; }
.cm-loading { display: flex; align-items: center; gap: 14px; min-height: 88px; padding: 12px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; font-weight: 700; color: var(--ink-2); }
.cm-dots { display: inline-flex; gap: 5px; }
.cm-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--sage-strong); animation: cm-breathe 1.2s ease-in-out infinite; }
.cm-dots span:nth-child(2) { animation-delay: .15s; }
.cm-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes cm-breathe { 0%, 100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
.cm-error { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; background: var(--now-bg); }
.cm-error-t { flex: 1 1 220px; display: flex; gap: 8px; font-size: 15px; font-weight: 700; color: var(--now-ink); line-height: 1.45; }
.cm-error-t .ico { flex: none; margin-top: 2px; }
.cm-none { padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.cm-none-t { font-size: 17px; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.cm-none-sub { margin: 4px 0 12px; font-size: 15px; font-weight: 600; color: var(--ink-2); line-height: 1.45; }
.cm-ask { padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.cm-ask-photo { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cm-ask-t { font-size: 20px; font-weight: 800; color: var(--ink); }
.cm-cands { list-style: none; display: flex; flex-direction: column; margin: 10px -6px 4px; }
.cm-cand { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 6px; border-radius: 14px; text-align: left; }
.cm-cands li + li .cm-cand { box-shadow: 0 -1px 0 var(--line); border-radius: 0 0 14px 14px; }
.cm-cand:hover { background: var(--sunk); }
.cm-cand-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cm-cand-name { font-size: 16px; font-weight: 800; color: var(--ink); }
.cm-cand-v { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.cm-cand-chev { color: var(--ink-3); }
.cm-none-of { font-size: 14px; }
.cm-visto { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 700; color: var(--ink-2); line-height: 1.4; }
.cm-visto .ico { flex: none; margin-top: 1px; }

/* La respuesta */
.cm-ans { border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); overflow: hidden; animation: cm-in .28s var(--ease); scroll-margin-top: calc(var(--topbar-h) + var(--safe-t) + 16px); }
@keyframes cm-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cm-ans-head { display: flex; align-items: center; gap: 14px; padding: 18px 18px 16px; background: var(--v-bg); }
.cm-ans-ico { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--v-solid); color: var(--v-on); }
.cm-ans-ico .ico { stroke-width: 2.4; }
.cm-ans-titles { flex: 1; min-width: 0; }
.cm-ans-v { font-size: 24px; line-height: 1.15; font-weight: 800; letter-spacing: -.015em; color: var(--v-ink); }
.cm-ans-t { margin-top: 2px; font-size: 17px; line-height: 1.3; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.cm-ans-body { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 6px; }
.cm-part p { font-size: 16px; line-height: 1.55; color: var(--ink); font-weight: 500; }
.cm-part p + p { margin-top: 6px; }
.cm-lab { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 13px; font-weight: 800; letter-spacing: .03em; color: var(--ink-2); }
.cm-como { padding: 12px 14px; border-radius: 16px; background: var(--sage-wash); }
.cm-como .cm-lab { color: var(--sage-ink); }
.cm-dep { border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.cm-dep > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 0 14px; font-size: 15px; font-weight: 800; color: var(--ink); cursor: pointer; border-radius: 16px; }
.cm-dep > summary::-webkit-details-marker { display: none; }
.cm-dep-chev { color: var(--ink-2); transition: transform .25s var(--ease); }
.cm-dep[open] .cm-dep-chev { transform: rotate(180deg); }
.cm-dep-body { padding: 0 14px 14px; }
.cm-dep-body p { font-size: 15px; line-height: 1.55; color: var(--ink); font-weight: 500; }
.cm-nota { display: flex; gap: 8px; padding: 12px 14px; border-radius: 16px; background: var(--sunk); font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.45; }
.cm-nota > .ico { flex: none; margin-top: 2px; color: var(--ink-2); }
.cm-matrona { display: flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 800; color: var(--sage-ink); }
.cm-matrona .ico { flex: none; }
.cm-src ul { list-style: none; display: flex; flex-direction: column; }
.cm-src-link { display: flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 4px 0; font-size: 14px; line-height: 1.4; text-decoration: none; }
.cm-src-t { font-weight: 700; color: var(--sage-ink); }
.cm-src-link:hover .cm-src-t { text-decoration: underline; }
.cm-src-host { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cm-ans-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 10px; padding: 12px 18px 14px; border-top: 1px solid var(--line); }
.cm-origin { flex: 1 1 200px; font-size: 13px; font-weight: 600; color: var(--ink-2); line-height: 1.4; }
.cm-ans-head .cm-thumb { width: 56px; height: 56px; }

/* Toxoplasma e historial */
.cm-sub { margin: 0 0 6px 2px; font-size: 14px; font-weight: 800; color: var(--ink-2); }
.cm-quick { margin-bottom: 22px; }
.cm-quick-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.cm-quick-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line-2); font-size: 15px; font-weight: 700; color: var(--ink); transition: background .15s, border-color .15s, transform .15s var(--ease); }
.cm-quick-chip:hover { background: var(--sage-wash); border-color: var(--sage-strong); }
.cm-quick-chip:active { transform: scale(.97); }
.cm-hist { margin-top: 2px; }
.cm-hist-toggle { margin-left: 6px; font-size: 14px; }
.cm-toxo { padding: 12px 14px 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.cm-toxo .cm-lab { margin-bottom: 8px; }
.cm-hist-list { list-style: none; display: flex; flex-direction: column; }
.cm-hist-row { position: relative; display: flex; align-items: center; gap: 4px; }
.cm-hist-list > .cm-hist-row + .cm-hist-row::before { content: ""; position: absolute; left: 50px; right: 8px; top: 0; height: 1px; background: var(--line); }
.cm-hist-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 6px; border-radius: 14px; text-align: left; }
.cm-hist-main:hover { background: color-mix(in srgb, var(--sunk) 60%, transparent); }
.cm-hist-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cm-hist-title { font-size: 16px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-hist-sub { font-size: 14px; font-weight: 600; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-hist-del { color: var(--ink-3); }
.cm-hist-del:hover { color: var(--late-ink); }

/* ---------- Noche ---------- */
html[data-theme="noche"] .apr-today { background: linear-gradient(165deg, var(--sage-wash) 0%, var(--surface) 70%); box-shadow: none; }
html[data-theme="noche"] .apr-today.is-rest { background: var(--surface); }
html[data-theme="noche"] .pl-quiz, html[data-theme="noche"] .cm-ans { box-shadow: none; }
html[data-theme="noche"] .pl-myth-m { background: var(--sunk); }

/* ---------- Tableta y escritorio ---------- */
@media (min-width: 760px) {
  .apr-today { padding: 24px 24px 22px; }
  .apr-today-title { font-size: 25px; }
  .apr-today-sum { font-size: 16px; }
  .pl-title { font-size: 34px; }
  .pl-lead { font-size: 19px; }
  .pl-body, .pl-sec { font-size: 18px; }
  .pl-faq-a, .pl-myth-m, .pl-myth-r, .pl-quiz-fb { font-size: 17px; }
  .pl-quiz { padding: 22px 22px 20px; }
  .cm-ans-v { font-size: 26px; }
}
@media (max-width: 380px) {
  .apr-today { padding: 18px 14px 16px; }
  .apr-today-title { font-size: 20px; }
  .pl-title { font-size: 26px; }
  .cm-ans-head { padding: 16px 14px 14px; gap: 12px; }
  .cm-ans-ico { width: 48px; height: 48px; }
  .cm-ans-body { padding: 14px 14px 4px; }
  .cm-ans-foot { padding: 12px 14px 14px; }
}

/* ---------- Sin movimiento: solo fundidos ---------- */
@media (prefers-reduced-motion: reduce) {
  .pl-done-svg .pl-done-ring, .pl-done-svg .pl-done-check { stroke-dashoffset: 0 !important; fill-opacity: 1 !important; animation: none !important; }
  .cm-dots span { animation: none; opacity: .7; }
  .pl-progress-fill { transition: none; }
}

/* --- v3: multimedia, preguntas, ancla --- */
.pl-hero { margin: 0 calc(-1 * var(--gutter, 16px)) 18px; }
.pl-hero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--sunk); }
@media (min-width: 640px) { .pl-hero { margin: 0 0 20px; } .pl-hero img { border-radius: 22px; } }
.pl-fig, .pl-video, .pl-anim { margin: 4px 0; }
.pl-fig img { display: block; width: 100%; height: auto; border-radius: 18px; background: var(--sunk); }
.pl-fig figcaption, .pl-video figcaption { margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.pl-video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--sunk); }
.pl-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pl-video-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: var(--sunk); display: grid; place-items: center; }
.pl-video-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pl-video-btn { position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--sage-ink); box-shadow: 0 6px 20px rgba(46, 56, 51, .28); }
.pl-video-play:focus-visible { outline: 3px solid var(--sage-ink); outline-offset: -3px; }
.pl-video figcaption { display: flex; flex-direction: column; gap: 2px; }
.pl-video-t { font-weight: 700; color: var(--ink); }
.pl-video-yt { font-size: 14px; }
.pl-quiz-card + .pl-quiz-card { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.pl-quiz-n { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.pl-quiz-acts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; }
.pl-quiz-ver { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.pl-quiz-sum { margin-top: 8px; font-weight: 800; color: var(--sage-ink); }
.pl-quiz-more { margin-top: 18px; font-size: 15px; }
.is-flash { animation: pl-flash 2.2s ease-out; }
@keyframes pl-flash { 0%, 40% { box-shadow: 0 0 0 4px var(--peach); } 100% { box-shadow: 0 0 0 4px transparent; } }
@media (prefers-reduced-motion: reduce) { .is-flash { animation: none; box-shadow: 0 0 0 3px var(--peach); } }

/* ── Modo test (#test) ── */
.tst { display: flex; flex-direction: column; gap: 14px; padding-bottom: 24px; }
.tst-sum { padding: 18px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.tst-sum-big { margin: 0; font-size: 32px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.tst-sum-t { margin: 2px 0 10px; font-size: 15px; color: var(--ink-2); }
.tst-sum-s { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
.tst-bar, .tst-prog { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.tst-bar span, .tst-prog span { display: block; height: 100%; border-radius: 99px; background: var(--sage); transition: width .3s var(--ease); }
.tst-list { display: flex; flex-direction: column; gap: 10px; }
.tst-h2 { margin: 6px 0 0; font-size: 18px; font-weight: 800; color: var(--ink); }
.tst-opt { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line-2); color: var(--ink); text-decoration: none; }
.tst-opt.is-main { border-color: var(--sage); background: var(--sage-wash); }
.tst-opt-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tst-opt-t { font-size: 16px; font-weight: 800; }
.tst-opt-s { font-size: 14px; color: var(--ink-2); }
.tst-opt-go { color: var(--ink-3); display: inline-flex; }
.tst-from { margin: 0; font-size: 13px; color: var(--ink-3); }
.tst-q { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.35; color: var(--ink); }
.tst-ver { display: inline-block; margin-top: 6px; }
.tst-next, .tst-end { margin-top: 4px; }
.tst-end { display: flex; flex-direction: column; gap: 10px; }
.tst-fallos { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tst-fallo-q { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--ink); }

/* ── Animaciones propias (SVG/CSS) ── */
.anim { margin: 14px 0; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.anim svg { width: 100%; max-width: 320px; height: auto; }
.anim-cap { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.anim .a-sage { fill: var(--sage); }
.anim .a-peach { fill: #F2B79A; }
.anim .a-terra { fill: #C9774F; }
.anim .a-line { fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; }
@keyframes an-breath { 0%, 100% { transform: scale(.62); } 40%, 55% { transform: scale(1); } }
@keyframes an-wave { 0%, 100% { transform: scaleY(.15); } 50% { transform: scaleY(1); } }
@keyframes an-grow { from { transform: scale(.45); } to { transform: scale(1); } }
@keyframes an-lift { 0%, 100% { transform: translateY(8px); } 50% { transform: translateY(-8px); } }
@keyframes an-rock { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.an-breath { transform-origin: center; transform-box: fill-box; animation: an-breath 9s ease-in-out infinite; }
.an-wave { transform-origin: bottom; transform-box: fill-box; animation: an-wave 4s ease-in-out infinite; }
.an-grow { transform-origin: center; transform-box: fill-box; animation: an-grow 6s ease-in-out infinite alternate; }
.an-lift { animation: an-lift 4s ease-in-out infinite; }
.an-rock { transform-origin: center; transform-box: fill-box; animation: an-rock 5s ease-in-out infinite; }
.anim .a-txt { fill: var(--ink); font: 700 17px var(--font); }
.anim .a-txt-md { font-size: 14px; }
.anim .a-txt-sm { font-size: 11.5px; font-weight: 600; fill: var(--ink-2); }
.anim .a-ring { fill: none; stroke: var(--sage-strong); stroke-width: 3; stroke-dasharray: 4 6; stroke-linecap: round; opacity: .7; }
.anim .a-ring-fill { fill: var(--sage); fill-opacity: .55; stroke: var(--sage-ink); stroke-width: 3; }
.anim .a-mouth { fill: none; stroke: var(--peach-ink); stroke-width: 3; stroke-linecap: round; }
.anim .a-open { fill: var(--peach-ink); }
.anim .a-lips { fill: var(--peach-strong); stroke: var(--peach-ink); stroke-width: 2; stroke-linejoin: round; }
@keyframes an-lbl-in { 0%, 44% { opacity: 1; } 50%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes an-lbl-out { 0%, 44% { opacity: 0; } 50%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes an-squeeze { 0% { transform: scale(1); } 8%, 31% { transform: translateY(-6px) scale(.6); } 38%, 100% { transform: scale(1); } }
@keyframes an-lbl-in-c { 0%, 31% { opacity: 1; } 36%, 98% { opacity: 0; } 100% { opacity: 1; } }
@keyframes an-lbl-out-c { 0%, 31% { opacity: 0; } 36%, 98% { opacity: 1; } 100% { opacity: 0; } }
@keyframes an-fr { 0%, 30% { opacity: 1; } 34%, 100% { opacity: .4; } }
.an-lbl-in { animation: an-lbl-in 9s ease-in-out infinite; }
.an-lbl-out { animation: an-lbl-out 9s ease-in-out infinite; }
.an-lbl-in-c { animation: an-lbl-in-c 15s ease-in-out infinite; }
.an-lbl-out-c { animation: an-lbl-out-c 15s ease-in-out infinite; }
.an-squeeze { transform-origin: center; transform-box: fill-box; animation: an-squeeze 15s ease-in-out infinite; }
.an-fr { opacity: .4; animation: an-fr 9s ease-in-out infinite; }
.an-fr2 { animation-delay: 3s; }
.an-fr3 { animation-delay: 6s; }
.an-lbl-static, .an-lbl-static-c { display: none; }
@media (prefers-reduced-motion: reduce) {
  .an-breath, .an-wave, .an-grow, .an-lift, .an-rock { animation: none; transform: none; }
  .an-squeeze { animation: none; transform: translateY(-6px) scale(.6); }
  .an-fr { animation: none; opacity: 1; }
  .an-lbl-in, .an-lbl-out, .an-lbl-in-c, .an-lbl-out-c { display: none; animation: none; }
  .an-lbl-static, .an-lbl-static-c { display: block; }
}

/* --- Esquemas multimedia: componentes HTML/CSS responsivos (pasos, sí/no, línea, tabla, señales) --- */
.pl-esq { margin: 8px 0; padding: 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; max-width: 100%; }
.pl-esq .pl-esq-titulo { margin: 0 0 12px; font-size: 17px; font-weight: 800; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
.pl-esq .pl-esq-pie { margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
.pl-esq ol, .pl-esq ul { list-style: none; margin: 0; padding: 0; }
.pl-esq p { margin: 0; overflow-wrap: anywhere; }
.pl-esq-t { font-weight: 800; color: var(--ink); line-height: 1.3; }
.pl-esq .pl-esq-d { margin-top: 3px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }

/* pasos: círculo numerado; una columna en móvil, rejilla de 2-4 columnas desde 720 px */
.pl-esq-pasos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; counter-reset: paso; }
.pl-esq-paso { position: relative; counter-increment: paso; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; min-width: 0; padding: 14px 14px 14px 58px; border-radius: 14px; background: var(--sage-wash); }
.pl-esq-paso::before { content: counter(paso); position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-ink); color: var(--on-sage); font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.pl-esq-img { display: block; width: 100%; height: auto; max-width: 100%; border-radius: 10px; background: var(--sunk); object-fit: cover; }
@media (min-width: 720px) {
  .pl-esq-pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-esq-paso { padding: 14px; padding-top: 58px; }
}
@media (min-width: 1000px) { .pl-esq-pasos { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }

/* sí / no: dos tarjetas, apiladas en móvil; icono y texto además del color */
.pl-esq-sino, .pl-esq-senales { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) { .pl-esq-sino, .pl-esq-senales { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pl-esq-card { min-width: 0; padding: 14px; border-radius: 14px; background: var(--sage-wash); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.pl-esq-card.is-no, .pl-esq-card.is-atencion { background: var(--peach-wash); }
.pl-esq-card.is-si, .pl-esq-card.is-calma { box-shadow: inset 0 0 0 1.5px var(--sage-strong); }
.pl-esq-card.is-no, .pl-esq-card.is-atencion { box-shadow: inset 0 0 0 1.5px var(--peach-strong); }
.pl-esq-ch { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 16px; font-weight: 800; line-height: 1.25; color: var(--sage-ink); }
.pl-esq-card.is-no .pl-esq-ch, .pl-esq-card.is-atencion .pl-esq-ch { color: var(--peach-ink); }
.pl-esq-ch .ico { flex: none; }
.pl-esq-ul { display: grid; gap: 8px; }
.pl-esq-ul li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.pl-esq-ul li::before { position: absolute; left: 0; top: 0; width: 18px; text-align: center; font-weight: 800; color: var(--sage-ink); content: "•"; }
.pl-esq-card.is-si .pl-esq-ul li::before { content: "✓" / ""; }
.pl-esq-card.is-no .pl-esq-ul li::before { content: "✕" / ""; color: var(--peach-ink); }
.pl-esq-card.is-atencion .pl-esq-ul li::before { content: "!" / ""; color: var(--peach-ink); }

/* línea temporal: siempre vertical, sin desbordes */
.pl-esq-linea { position: relative; display: grid; gap: 14px; }
.pl-esq-linea::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line-2); }
.pl-esq-hito { position: relative; min-width: 0; padding-left: 30px; }
.pl-esq-hito::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 4px var(--sage-strong); }
.pl-esq .pl-esq-cuando { display: inline-block; margin-bottom: 3px; padding: 1px 9px; border-radius: 999px; font-size: 13px; font-weight: 800; background: var(--sage-soft); color: var(--sage-ink); }
@media (min-width: 720px) { .pl-esq-linea { padding-left: 4px; } }

/* tabla: en móvil cada fila es una tarjeta con la etiqueta de su columna */
.pl-esq-tabla { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; color: var(--ink); }
.pl-esq-tabla th, .pl-esq-tabla td { padding: 10px 12px; text-align: left; vertical-align: top; overflow-wrap: anywhere; border-bottom: 1px solid var(--line); }
.pl-esq-tabla thead th { font-size: 14px; font-weight: 800; color: var(--sage-ink); background: var(--sage-wash); border-bottom: 1.5px solid var(--line-2); }
.pl-esq-tabla tbody th { font-weight: 800; }
@media (max-width: 719px) {
  .pl-esq-tabla, .pl-esq-tabla tbody, .pl-esq-tabla tr, .pl-esq-tabla th, .pl-esq-tabla td { display: block; }
  .pl-esq-tabla thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pl-esq-tabla tr { margin-bottom: 10px; border-radius: 14px; background: var(--sage-wash); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
  .pl-esq-tabla tr:last-child { margin-bottom: 0; }
  .pl-esq-tabla th, .pl-esq-tabla td { border-bottom: 1px solid var(--line); padding: 8px 12px; }
  .pl-esq-tabla tr > :last-child { border-bottom: 0; }
  .pl-esq-tabla tbody th { font-size: 16px; }
  .pl-esq-tabla td::before, .pl-esq-tabla tbody th::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 800; color: var(--ink-2); }
  .pl-esq-tabla tbody th::before { content: none; }
}
