/* Spotlight de BC alCubo. Usa las variables de app.css (teal para títulos, rosa para subtítulos). */
html.spot-on { overflow: hidden; }
.spot { border: 0; padding: 0; background: transparent; width: min(760px, calc(100vw - 24px)); max-width: none; max-height: none; margin: 9vh auto auto; overflow: visible; }
.spot::backdrop { background: rgba(15, 42, 53, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.spot[open] .spot-box { animation: spot-in .18s ease-out; }
@keyframes spot-in { from { opacity: 0; transform: translateY(-8px) scale(.985); } }
.spot-box { background: var(--white); border-radius: 18px; box-shadow: 0 24px 80px rgba(10, 30, 40, .35), 0 0 0 1px rgba(28, 100, 120, .12); overflow: hidden; display: flex; flex-direction: column; max-height: 80vh; }

.spot-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--gray-100); }
.spot-head .spark { flex: none; }
.spot-on .spot-head .spark { animation: spot-spin 6s linear infinite; }
@keyframes spot-spin { to { transform: rotate(360deg); } }
.spot-head input { flex: 1; min-width: 0; font: inherit; font-size: 1.2rem; font-weight: 500; border: 0; outline: none; color: var(--gray-800); background: transparent; }
.spot-head input::placeholder { color: var(--gray-400); }
.spot-x { font: inherit; font-size: .72rem; font-weight: 700; color: var(--gray-600); background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: 6px; padding: 3px 8px; cursor: pointer; }

.spot-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px; }
.spot-chips:not(:empty) { padding: 10px 18px 0; }
.spot-chips span { font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; animation: chip-in .2s ease-out; }
@keyframes chip-in { from { opacity: 0; transform: translateY(3px); } }
.chip-i { background: linear-gradient(90deg, var(--teal), var(--pink)); color: #fff; }
.chip-a { background: var(--teal-pale); color: var(--teal-dark); }
.chip-o { background: var(--pink-pale); color: #b0236b; }
.chip-c { background: #fff7e6; color: #8a5a00; }
.spot-chips kbd, .spot-foot kbd { font: inherit; font-size: .68rem; font-weight: 700; padding: 0 5px; border-radius: 4px; border: 1px solid var(--gray-200); background: var(--gray-50); color: var(--gray-600); }

.spot-body { overflow: auto; padding: 6px 10px 12px; flex: 1; overscroll-behavior: contain; }
.spot-body h3 { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); padding: 14px 10px 6px; }
.spot-body h3 small { color: var(--gray-400); font-weight: 700; margin-left: 4px; }

/* respuesta */
.spot-answer { margin: 10px 6px 4px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(135deg, var(--teal-pale) 0%, var(--pink-pale) 100%); border: 1px solid rgba(28, 100, 120, .12); }
.spot-think .th-title { display: flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 700; color: var(--teal-dark); }
.th-toggle { margin-left: auto; font: inherit; font-size: .75rem; font-weight: 600; color: var(--gray-600); background: none; border: 0; cursor: pointer; text-decoration: underline; }
.orb { width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(from 0deg, var(--teal), var(--pink), var(--teal-light, #2a8099), var(--teal)); animation: spot-spin 1s linear infinite; flex: none; }
.th-title.done .orb { animation: none; background: var(--teal); box-shadow: inset 0 0 0 3px var(--teal-pale); }
.shimmer { background: linear-gradient(90deg, var(--teal-dark) 0%, var(--pink) 50%, var(--teal-dark) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.4s linear infinite; }
.th-title.done .shimmer { animation: none; background: none; color: var(--gray-600); font-weight: 600; }
@keyframes shimmer { to { background-position: -200% 0; } }
.th-steps { list-style: none; margin: 8px 0 2px 24px; display: grid; gap: 4px; }
.th-steps li { font-size: .84rem; color: var(--gray-600); position: relative; padding-left: 18px; animation: chip-in .2s ease-out; }
.th-steps li::before { content: ""; position: absolute; left: 0; top: .45em; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--pink); border-right-color: transparent; animation: spot-spin .7s linear infinite; }
.th-steps li.done::before { content: "✓"; border: 0; animation: none; top: 0; width: auto; height: auto; color: var(--teal); font-weight: 800; font-size: .8rem; }
.spot-reply { margin-top: 10px; }
.spot-reply .lead { font-size: 1rem; line-height: 1.55; color: var(--gray-800); }
.spot-reply .lead b { color: var(--teal-dark); }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--pink); vertical-align: -2px; margin-left: 1px; animation: blink .8s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.spot-reply .actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.conf { font-size: .75rem; font-weight: 700; color: var(--teal); background: rgba(255,255,255,.7); padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(28,100,120,.15); }
.route { margin: 10px 0 0 20px; display: grid; gap: 4px; font-size: .95rem; }
.route a { font-weight: 600; color: var(--teal-dark); }
.route .free { font-size: .72rem; font-weight: 700; color: var(--pink); }
.follow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 14px; }
.follow span { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); margin-right: 4px; }
.follow button, .spot-sugs button { font: inherit; font-size: .86rem; text-align: left; cursor: pointer; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--gray-200); background: var(--white); color: var(--teal-dark); transition: border-color .15s, background .15s; }
.follow button:hover, .spot-sugs button:hover { border-color: var(--teal); background: var(--teal-pale); }

/* resultados */
.spot-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--gray-800); }
.spot-item.on { background: var(--teal-pale); box-shadow: inset 3px 0 0 var(--pink); }
.spot-item .ic { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--gray-100); color: var(--teal); }
.spot-item.on .ic { background: var(--white); }
.ic.t-error { color: #c2410c; } .ic.t-glosario { color: #7c3aed; } .ic.t-atajo { color: var(--pink); }
.spot-item .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.spot-item b { font-weight: 650; color: var(--teal-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-item small { font-size: .82rem; color: var(--gray-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-item mark { background: none; color: var(--pink); font-weight: 750; }
.spot-item small mark { font-weight: 650; }
.spot-item .ar { flex: none; font-size: .72rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .05em; }
.lock { font-style: normal; color: var(--pink-light); font-size: .6rem; vertical-align: 1px; }
.spot-none { padding: 18px 10px; color: var(--gray-600); }

.spot-hi { padding: 16px 10px 2px; color: var(--gray-600); }
.spot-hi b { color: var(--teal-dark); }
.spot-sugs { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 10px; }

.spot-foot { display: flex; gap: 16px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--gray-100); background: var(--gray-50); font-size: .76rem; color: var(--gray-600); }
.spot-brand { margin-left: auto; font-weight: 700; color: var(--teal-dark); }
.spot-brand b { color: var(--pink); }

/* disparadores en la página */
.spot-trigger { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 640px; margin-top: 28px; font: inherit; font-size: 1.05rem; text-align: left; cursor: text; padding: 16px 18px; border-radius: var(--radius); border: 2px solid transparent; background: var(--white); color: var(--gray-400); box-shadow: var(--shadow-md); }
.spot-trigger:hover, .spot-trigger:focus-visible { border-color: var(--pink); outline: none; }
.spot-trigger span { flex: 1; }
.spot-trigger kbd, .nav-search kbd { font: inherit; font-size: .75rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--gray-200); color: var(--gray-600); background: var(--gray-50); }
.nav-search { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; color: rgba(255,255,255,.85); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 6px 8px 6px 14px; }
.nav-search:hover { background: rgba(255,255,255,.18); color: #fff; }
.nav-search kbd { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.25); color: #fff; }
.trigger-hints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.trigger-hints button { font: inherit; font-size: .85rem; cursor: pointer; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 5px 12px; }
.trigger-hints button:hover { background: rgba(255,255,255,.22); }

@media (max-width: 640px) {
  .spot { margin-top: 12px; width: calc(100vw - 16px); }
  .spot-box { max-height: calc(100vh - 24px); }
  .spot-foot span:not(.spot-brand) { display: none; }
  .spot-item .ar { display: none; }
  .nav-search span, .nav-search kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .spot-head .spark, .orb, .shimmer, .th-steps li::before { animation: none !important; }
}
.th-steps[hidden], .spot-answer[hidden] { display: none; }
