/* (12/11/2026) Mapa mental «dibújalo conmigo» y «Cuéntale el tema al búho» (mapa-buho.js) */
.mm, .bh { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: auto 1fr auto; background: var(--paper); color: var(--ink); font-family: var(--text); }
.bh { grid-template-rows: auto 1fr; }
.mm-top { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: var(--surface); min-width: 0; }
.mm-x { flex: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 17px; cursor: pointer; }
.mm-x:hover { border-color: var(--ink-soft); }
.mm-tt { display: grid; min-width: 0; flex: none; max-width: 34%; }
.mm-tt .kicker { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 750; color: #6d5dfc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-tt b { font: 800 19px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-tabs { display: flex; gap: 6px; overflow-x: auto; flex: 1; min-width: 0; padding: 2px 12px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); }
.mm-tabs::-webkit-scrollbar { display: none; }
.mm-tab { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 7px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); font: 650 13px var(--text); cursor: pointer; }
.mm-tab i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 7%, transparent); font-size: 11.5px; font-weight: 800; color: var(--ink); }
.mm-tab.seen i { background: #0e9f8b; color: #fff; }
.mm-tab.on { border-color: #6d5dfc; color: var(--ink); background: color-mix(in srgb, #6d5dfc 9%, var(--surface)); }
.mm-tab.on i { background: #6d5dfc; color: #fff; }

.mm-body { overflow: auto; padding: 18px 24px 40px; position: relative; }
.mm-hint { max-width: 760px; margin: 0 auto 18px; padding: 11px 16px; border-radius: 14px; background: color-mix(in srgb, #ef7d22 9%, var(--surface)); border: 1px solid color-mix(in srgb, #ef7d22 30%, var(--line)); font-size: 15px; text-align: center; }
.mm-hint b { color: #c25e0b; }
.mm.recall .mm-hint { background: color-mix(in srgb, #6d5dfc 9%, var(--surface)); border-color: color-mix(in srgb, #6d5dfc 30%, var(--line)); }

.mm-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0 64px; max-width: 1380px; margin: 0 auto; min-height: 60vh; }
.mm-svg { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.mm-svg path { fill: none; stroke-linecap: round; }
.mm-svg path.an { stroke-dasharray: 1; stroke-dashoffset: 1; animation: mmDraw .55s cubic-bezier(.4, 0, .2, 1) forwards; }
.mm-svg path.an.leaf { animation-delay: calc(.45s + var(--i) * .32s); animation-duration: .35s; }
@keyframes mmDraw { to { stroke-dashoffset: 0; } }
.mm-stage .mm-col { display: grid; gap: 30px; align-content: center; position: relative; }
.mm-stage .mm-col.l { justify-items: end; }
.mm-stage .mm-col.r { justify-items: start; }
.mm-stage .mm-center { position: relative; z-index: 1; display: grid; gap: 4px; justify-items: center; text-align: center; max-width: 230px; padding: 20px 22px; border-radius: 26px; background: linear-gradient(135deg, #6d5dfc, #0e9f8b); color: #fff; box-shadow: 0 14px 30px -12px color-mix(in srgb, #6d5dfc 60%, transparent); opacity: 0; transform: scale(.8); transition: opacity .4s, transform .5s cubic-bezier(.2, 1.4, .4, 1); }
.mm-stage .mm-center.in { opacity: 1; transform: none; }
.mm-stage .mm-center b { font: 800 22px/1.15 var(--display); letter-spacing: -.01em; }
.mm-stage .mm-center span { font-size: 12.5px; opacity: .9; font-weight: 600; }

.mm-br { position: relative; z-index: 1; display: flex; align-items: center; gap: 38px; visibility: hidden; opacity: 0; transition: opacity .3s; }
.mm-br.l { flex-direction: row-reverse; }
.mm-br.in { visibility: visible; opacity: 1; }
.mm-bl { flex: none; display: inline-flex; align-items: center; gap: 8px; max-width: 190px; padding: 9px 14px 9px 9px; border-radius: 14px; background: color-mix(in srgb, var(--bc) 13%, var(--surface)); border: 2px solid var(--bc); font: 800 15px/1.2 var(--display); color: var(--ink); }
.mm-bl i { flex: none; font-style: normal; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--bc); color: #fff; font-size: 12.5px; }
.mm-br.anim .mm-bl { animation: mmPop .45s .25s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes mmPop { from { opacity: 0; transform: scale(.6); } }
.mm-leaves { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; max-width: 330px; }
.mm-br.l .mm-leaves { justify-items: end; text-align: right; }
.mm-stage .mm-leaf { position: relative; padding: 3px 4px 4px; border-bottom: 2.4px solid color-mix(in srgb, var(--bc) 75%, transparent); font-size: 14.5px; line-height: 1.3; cursor: default; }
.mm-stage .mm-leaf b { color: color-mix(in srgb, var(--bc) 70%, var(--ink)); font-weight: 800; }
.mm-br.anim .mm-leaf { animation: mmLeaf .4s calc(.6s + var(--i) * .32s) both; }
@keyframes mmLeaf { from { opacity: 0; transform: translateX(-10px); } }
.mm-br.l.anim .mm-leaf { animation-name: mmLeafL; }
@keyframes mmLeafL { from { opacity: 0; transform: translateX(10px); } }
.mm.recall .mm-leaf { cursor: pointer; }
.mm.recall .mm-leaf span { filter: blur(6px); opacity: .55; transition: filter .25s, opacity .25s; user-select: none; }
.mm.recall .mm-leaf.open span { filter: none; opacity: 1; }
.mm.recall .mm-leaf:not(.open)::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; color: var(--bc); }

.mm-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; }
.mm-side, .mm-nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mm-n { min-width: 44px; text-align: center; font-weight: 750; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.mm-b { padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 14.5px var(--text); cursor: pointer; }
.mm-b:hover:not(:disabled) { border-color: var(--ink-soft); }
.mm-b:disabled { opacity: .4; cursor: default; }
.mm-b.ghost { background: transparent; }
.mm-b.on { background: color-mix(in srgb, #6d5dfc 12%, var(--surface)); border-color: #6d5dfc; }
.mm-b.primary { background: var(--teal, #0e7c6b); border-color: transparent; color: #fff; box-shadow: 0 3px 0 color-mix(in srgb, var(--teal, #0e7c6b) 60%, #000); }
.mm-b.primary.go { background: linear-gradient(135deg, #6d5dfc, #0e9f8b); }
.mm-b.big { padding: 14px 26px; font-size: 16.5px; border-radius: 14px; }

/* Móvil y pantallas estrechas: árbol vertical (centro arriba, ramas en orden, hojas con borde de color) */
@media (max-width: 860px) {
  .mm-top { flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
  .mm-tt { max-width: calc(100% - 60px); flex: 1; }
  .mm-tabs { flex-basis: 100%; order: 3; }
  .mm-body { padding: 14px 16px 30px; }
  .mm-hint { font-size: 14px; }
  .mm-stage { display: flex; flex-direction: column; align-items: stretch; gap: 14px; min-height: 0; }
  .mm-svg { display: none; }
  .mm-stage .mm-col { display: contents; }
  .mm-stage .mm-center { order: 0; align-self: center; max-width: none; }
  .mm-br, .mm-br.l { flex-direction: column; align-items: flex-start; gap: 8px; display: none; }
  .mm-br.in { display: flex; }
  .mm-bl { max-width: none; }
  .mm-leaves, .mm-br.l .mm-leaves { justify-items: start; text-align: left; margin-left: 20px; padding-left: 14px; border-left: 2.5px solid var(--bc); max-width: none; }
  .mm-stage .mm-leaf { border-bottom: 0; padding: 2px 0; }
  .mm-br.l.anim .mm-leaf { animation-name: mmLeaf; }
  .mm-foot { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); justify-content: center; }
  .mm-side { order: 2; justify-content: center; }
  .mm-side .mm-b { padding: 8px 11px; font-size: 13px; }
  .mm-nav { width: 100%; justify-content: space-between; }
  .mm-nav .primary { flex: 1; }
}

/* ---------- Búho ---------- */
.bh-dots { list-style: none; display: flex; gap: 6px; margin: 0 0 0 auto; padding: 0; flex-wrap: wrap; justify-content: flex-end; }
.bh-dots li { width: 13px; height: 13px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 12%, transparent); cursor: pointer; }
.bh-dots li.good { background: var(--good, #16a34a); }
.bh-dots li.mid { background: #f2b33c; }
.bh-dots li.bad { background: var(--bad, #d64560); }
.bh-dots li.on { outline: 2.5px solid #6d5dfc; outline-offset: 2px; }
.bh-body { overflow: auto; padding: 22px 18px 50px; }
.bh-card { max-width: 860px; margin: 0 auto; padding: 26px 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.bh-intro { text-align: center; display: grid; justify-items: center; gap: 12px; padding: 34px 28px; background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, #ef9d22 12%, var(--surface)), var(--surface) 70%); }
.bh-intro h2 { margin: 0; font: 800 clamp(26px, 4vw, 36px)/1.1 var(--display); letter-spacing: -.02em; }
.bh-intro > p { margin: 0; max-width: 56ch; color: var(--ink-soft); font-size: 16px; line-height: 1.5; }
.bh-owl { flex: none; width: 74px; height: 74px; }
.bh-owl.big { width: 128px; height: 128px; animation: bhBob 3s ease-in-out infinite; }
.bh-owl-svg { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.bh-eyes { animation: bhBlink 4.5s infinite; transform-origin: 60px 50px; }
@keyframes bhBlink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
@keyframes bhBob { 50% { transform: translateY(-6px) rotate(-2deg); } }
.bh-legend { display: flex; gap: 10px; }
.bh-legend span, .bh-k { padding: 1px 6px; border-radius: 6px; font-weight: 700; }
.bh-legend .ok, .bh-k.ok { background: color-mix(in srgb, #16a34a 18%, transparent); color: color-mix(in srgb, #16a34a 75%, var(--ink)); box-shadow: inset 0 -2px 0 #16a34a; }
.bh-legend .ko, .bh-k.ko { background: color-mix(in srgb, #d64560 15%, transparent); color: color-mix(in srgb, #d64560 80%, var(--ink)); box-shadow: inset 0 -2px 0 #d64560; }
.bh-talk { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.bh-bubble { position: relative; flex: 1; padding: 14px 18px; border-radius: 18px; background: color-mix(in srgb, #ef9d22 10%, var(--surface)); border: 1px solid color-mix(in srgb, #ef9d22 35%, var(--line)); }
.bh-bubble::before { content: ""; position: absolute; left: -8px; top: 24px; width: 14px; height: 14px; background: inherit; border-left: inherit; border-bottom: inherit; transform: rotate(45deg); }
.bh-bubble .kicker { display: block; font-size: 11.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: #c25e0b; margin-bottom: 4px; }
.bh-bubble p { margin: 0; font: 700 18px/1.4 var(--display); min-height: 1.4em; }
.bh-answer { position: relative; }
.bh-answer textarea { width: 100%; box-sizing: border-box; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--text); resize: vertical; min-height: 140px; }
.bh-answer textarea:focus { outline: none; border-color: #6d5dfc; box-shadow: 0 0 0 3px color-mix(in srgb, #6d5dfc 18%, transparent); }
.bh-live { margin-top: 6px; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, #6d5dfc 8%, transparent); color: var(--ink-soft); font-style: italic; }
.bh-tools { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.bh-mic.on { background: #d64560; color: #fff; border-color: transparent; animation: bhPulse 1.4s infinite; }
@keyframes bhPulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, #d64560 20%, transparent); } }
.bh-lang { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.bh-lang button { padding: 7px 11px; border: 0; background: transparent; color: var(--ink-soft); font: 650 13px var(--text); cursor: pointer; }
.bh-lang button.on { background: color-mix(in srgb, #6d5dfc 14%, transparent); color: var(--ink); }
.bh-msg, .bh-note { font-size: 13.5px; color: var(--ink-soft); }
.bh-acts { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.bh-acts.center { justify-content: center; }
.bh-score { flex: none; width: 74px; height: 74px; border-radius: 50%; display: flex; align-items: baseline; justify-content: center; padding-top: 20px; box-sizing: border-box; gap: 1px; background: radial-gradient(closest-side, var(--surface) 76%, transparent 78%), conic-gradient(#16a34a var(--p), color-mix(in srgb, #d64560 35%, transparent) 0); }
.bh-score b { font: 800 24px var(--display); }
.bh-score span { font-weight: 700; color: var(--ink-soft); }
.bh-chips { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.bh-chips li { padding: 6px 11px; border-radius: 999px; font-size: 13.5px; font-weight: 700; }
.bh-chips .ok { background: color-mix(in srgb, #16a34a 14%, transparent); color: color-mix(in srgb, #16a34a 75%, var(--ink)); }
.bh-chips .ko { background: color-mix(in srgb, #d64560 12%, transparent); color: color-mix(in srgb, #d64560 80%, var(--ink)); }
.bh-cmp { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }
.bh-box { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); }
.bh-box .kicker { display: block; font-size: 11.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.bh-box p { margin: 0; font-size: 15.5px; line-height: 1.65; }
.bh-box.said mark { background: color-mix(in srgb, #16a34a 18%, transparent); color: inherit; border-radius: 4px; padding: 0 2px; }
.bh-link { margin-top: 10px; padding: 0; border: 0; background: none; color: #6d5dfc; font: 700 13.5px var(--text); text-decoration: underline; cursor: pointer; }
.bh-sum { list-style: none; margin: 8px 0 0; padding: 0; width: 100%; display: grid; gap: 6px; text-align: left; }
.bh-sum button { width: 100%; display: grid; grid-template-columns: 1fr 120px 46px; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 14px/1.35 var(--text); text-align: left; cursor: pointer; }
.bh-sum i { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--c) var(--p), color-mix(in srgb, var(--ink) 9%, transparent) 0); --c: #d64560; }
.bh-sum i.mid { --c: #f2b33c; }
.bh-sum i.good { --c: #16a34a; }
.bh-sum b { text-align: right; }
@media (max-width: 700px) {
  .bh-score { padding-top: 15px; }
  .bh-score b { font-size: 20px; }
  .bh-body { padding: 14px 12px 40px; }
  .bh-card { padding: 18px 16px; border-radius: 20px; }
  .bh-owl { width: 56px; height: 56px; }
  .bh-bubble p { font-size: 16px; }
  .bh-score { width: 60px; height: 60px; }
  .bh-cmp { grid-template-columns: 1fr; }
  .bh-dots { display: none; }
  .bh-sum button { grid-template-columns: 1fr 60px 40px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .mm *, .bh * { animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .01s !important; } }

/* Tarjeta de la página del tema */
.mb-card .stile .mb-new { margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: linear-gradient(135deg, #6d5dfc, #0e9f8b); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; vertical-align: 2px; }

/* (13/11/2026) Búho pixel art en imagen */
.px-owl-wrap { position: relative; display: block; width: 100%; }
.px-owl-img { display: block; width: 100%; height: auto; image-rendering: pixelated; user-select: none; }
.px-blink { position: absolute; inset: 0; opacity: 0; animation: pxBlinkImg 5s infinite; }
@keyframes pxBlinkImg { 0%, 93%, 97.5%, 100% { opacity: 0; } 94%, 97% { opacity: 1; } }
