/* =====================================================
   ARCHIVO GENERAL SAN JUAN — shared.css
   Tokens, reset y componentes comunes a todas las páginas.
   Importar ANTES del CSS específico de cada página.
   ===================================================== */

/* ─── Tokens ─────────────────────────────────────────────────────────── */
:root {
  --cp:     oklch(68.5% 0.19 51);
  --cp-dk:  oklch(55%   0.19 40);
  --cp-act: oklch(49%   0.22 35);
  --cp-lt:  oklch(84.42% 0.18 85.5);
  --ca:     oklch(65%   0.22 44);

  --cbg:    oklch(98.5% 0.01 70);
  --csurf:  oklch(100%  0    0);
  --cmuted: oklch(96%   0.01 70);
  --cfooter:oklch(25.6% 0    0);

  --ct:     oklch(19.2% 0    0);
  --ct2:    oklch(48.8% 0    0);
  --ct3:    oklch(47%   0    0);
  --cton:   oklch(100%  0    0);

  --cbrd:   oklch(40%   0.01 70 / 0.16);
  --cbrd2:  oklch(40%   0.01 70 / 0.30);

  --cok:    oklch(53%   0.14 145);
  --cok-dk: oklch(40%   0.14 145);
  --cwarn:  oklch(75%   0.16 85);
  --cerr:   oklch(57.81% 0.25 29.23);

  --cpill-bg: oklch(93% 0.006 70);

  --cfooter-text:    oklch(74%   0    0);
  --cfooter-link:    oklch(72%   0    0);
  --cfooter-head:    oklch(88%   0    0);
  --cfooter-tagline: oklch(82%   0.03 70);
  --cfooter-div:     oklch(100%  0    0 / 0.08);

  --fu: 'Ubuntu', system-ui, sans-serif;
  --fb: 'Lora', Georgia, serif;

  --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ─── Reset ──────────────────────────────────────────────────────────── */
[hidden] { display: none !important; }

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--fu);
  background: var(--cbg);
  color: var(--ct);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

:focus-visible {
  outline: 3px solid oklch(from var(--cp) l c h / 0.65);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─── Skip link ──────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: 0;
  left: 16px;
  z-index: 9999;
  background: var(--cp-dk);
  color: var(--cton);
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  font-family: var(--fu);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-100%);
  transition: transform 0.15s;
}

.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Institutional header ───────────────────────────────────────────── */
.inst-header {
  background: var(--csurf);
  border-bottom: 1px solid var(--cbrd);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
}

.inst-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.inst-brand img { height: 34px; }

.inst-sep {
  width: 1px;
  height: 22px;
  background: var(--cbrd2);
  flex-shrink: 0;
}

.inst-meta { line-height: 1.25; }

.inst-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ct3);
}

.inst-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ct);
}

.inst-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.inst-right img {
  height: 28px;
  opacity: 0.85;
}



/* ─── Search pill (M3 Search Bar) ────────────────────────────────────── */
.search-pill {
  width: 100%;
  display: flex;
  align-items: center;
  background: var(--cpill-bg);
  border: 1.5px solid transparent;
  border-radius: 9999px;
  padding: 0 6px 0 20px;
  box-shadow: none;
  transition: box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.search-pill:focus-within {
  background: var(--csurf);
  box-shadow:
    0 2px 8px oklch(0% 0 0 / 0.1),
    0 6px 20px oklch(0% 0 0 / 0.08);
  outline: none;
}

.search-pill .lead-icon {
  width: 20px;
  height: 20px;
  color: var(--ct3);
  flex-shrink: 0;
  margin-right: 12px;
}

.search-pill input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--fu);
  font-size: 16px;
  color: var(--ct);
  padding: 14px 0;
  caret-color: var(--cp);
  min-width: 0;
}

.search-pill input::placeholder { color: var(--ct3); }

.pill-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ct3);
  padding: 8px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
}

.pill-btn:hover {
  background: var(--cmuted);
  color: var(--ct2);
}

.pill-btn svg {
  width: 18px;
  height: 18px;
}

.pill-divider {
  width: 1px;
  height: 20px;
  background: var(--cbrd2);
  margin: 0 4px;
  flex-shrink: 0;
}

.pill-search-btn {
  background: var(--cp);
  color: var(--cton);
  border: none;
  border-radius: 9999px;
  padding: 8px 16px;
  font-family: var(--fu);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
  flex-shrink: 0;
  margin: 4px;
}

.pill-search-btn:hover { background: var(--cp-dk); }

.pill-search-btn svg {
  width: 16px;
  height: 16px;
}

/* ─── Sidebar / filters panel ────────────────────────────────────────── */
.results-sidebar {
  position: sticky;
  min-width: 0;
  width: 100%;
}

.sidebar-panel {
  background: var(--csurf);
  border: 1px solid var(--cbrd);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.sidebar-head {
  font-family: var(--fu);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ct3);
}

.sf-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sf-label {
  font-family: var(--fu);
  font-size: 12px;
  font-weight: 600;
  color: var(--ct2);
}

.sf-input {
  border: 1px solid var(--cbrd2);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--fu);
  font-size: 16px;
  color: var(--ct);
  background: var(--cbg);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}

.sf-input:focus {
  border-color: var(--cp);
  box-shadow: 0 0 0 3px oklch(from var(--cp) l c h / 0.15);
}

select.sf-input {
  appearance: auto;
  cursor: pointer;
  max-width: 100%;
}

.sf-hr {
  height: 1px;
  background: var(--cbrd);
}

.btn-apply {
  background: var(--cp);
  color: var(--cton);
  border: none;
  border-radius: 9999px;
  padding: 10px 20px;
  font-family: var(--fu);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  width: 100%;
}

.btn-apply:hover { background: var(--cp-dk); }

.btn-clear-link {
  background: none;
  border: none;
  font-family: var(--fu);
  font-size: 13px;
  color: var(--ct3);
  cursor: pointer;
  text-align: center;
  width: 100%;
  transition: color 0.15s;
}

.btn-clear-link:hover { color: var(--cp-dk); }

/* ─── Results layout ─────────────────────────────────────────────────── */
.results-body {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 24px 56px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.results-main {
  min-width: 0;
  overflow: clip;
}

.results-meta {
  font-family: var(--fb);
  font-size: 13px;
  color: var(--ct3);
  margin-bottom: 24px;
}

/* ─── Result items ───────────────────────────────────────────────────── */
.result-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--cbrd);
  border-radius: 4px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: background 0.12s;
  position: relative;
}

.result-item:first-child { padding-top: 0; }

.result-item:last-child,
.todo-section .result-item:last-of-type {
  border-bottom: none;
}

.result-item:hover::before {
  content: '';
  position: absolute;
  inset: 0 -12px;
  background: oklch(0% 0 0 / 0.03);
  border-radius: 6px;
  pointer-events: none;
}

.result-main {
  flex: 1;
  min-width: 0;
}

/* PDF panel (Scholar-style) */
.result-pdf-panel {
  flex-shrink: 0;
  width: 112px;
  border: 1px solid var(--cbrd);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.result-pdf-panel:hover {
  border-color: oklch(from var(--cp) l c h / 0.5);
  box-shadow: 0 2px 8px oklch(0% 0 0 / 0.07);
}

.result-pdf-thumb {
  background: oklch(from var(--cp) l c h / 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  border-bottom: 1px solid var(--cbrd);
  color: var(--cp-dk);
}

.result-pdf-thumb svg {
  width: 28px;
  height: 28px;
}

.result-pdf-label {
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.result-pdf-badge {
  font-family: var(--fu);
  font-size: 11px;
  font-weight: 700;
  color: var(--cok-dk);
  background: oklch(from var(--cok) l c h / 0.1);
  border-radius: 3px;
  padding: 1px 5px;
  align-self: flex-start;
  letter-spacing: 0.04em;
}

.result-pdf-src {
  font-family: var(--fu);
  font-size: 10px;
  color: var(--ct3);
  line-height: 1.3;
  word-break: break-all;
}

.result-source {
  font-size: 12px;
  color: var(--ct3);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.source-favicon {
  width: 16px;
  height: 16px;
  background: var(--cmuted);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.source-favicon svg {
  width: 9px;
  height: 9px;
  color: var(--cp);
}

.result-title {
  font-family: var(--fu);
  font-size: 17px;
  font-weight: 600;
  color: var(--cp-dk);
  text-decoration: none;
  display: block;
  line-height: 1.35;
  margin-bottom: 7px;
  transition: color 0.15s;
}

.result-title:hover {
  color: var(--cp-act);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.result-author {
  font-family: var(--fu);
  font-size: 13px;
  color: var(--ct3);
  margin-bottom: 6px;
}

.result-snippet {
  font-family: var(--fb);
  font-size: 16px;
  color: var(--ct2);
  line-height: 1.65;
  max-width: 65ch;
  margin-bottom: 10px;
}

.result-item mark {
  background: oklch(from var(--cp-lt) l c h / 0.45);
  color: inherit;
  border-radius: 2px;
  padding: 0 2px;
  font-style: normal;
}

.result-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.meta-item {
  font-family: var(--fu);
  font-size: 12px;
  color: var(--ct3);
}

.meta-sep {
  font-size: 11px;
  color: var(--ct3);
  user-select: none;
}

.result-tag {
  font-family: var(--fu);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 9999px;
  background: oklch(from var(--cp) l c h / 0.09);
  color: var(--cp-act);
  letter-spacing: 0.02em;
}

.result-tag--digital {
  background: oklch(from var(--cok) l c h / 0.1);
  color: var(--cok-dk);
}

/* Persona vinculada chips */
.persona-vinculada-row { margin: 6px 0 8px; }

.pv-label {
  display: block;
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ct3);
  margin-bottom: 5px;
  font-weight: 500;
}

.pv-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.persona-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: oklch(from var(--cp) l c h / 0.08);
  border: 1px solid oklch(from var(--cp) l c h / 0.25);
  border-radius: 20px;
  padding: 5px 12px 5px 8px;
  font-size: 0.82rem;
}

.pc-icon { width: 14px; height: 14px; color: var(--cp); flex-shrink: 0; }
.pc-dni  { font-family: monospace; font-weight: 700; font-size: 0.8rem; color: var(--cp-dk); }
.pc-sep  { color: var(--ct3); font-size: 0.8rem; }
.pc-nombre { font-weight: 600; font-size: 0.8rem; color: var(--ct); letter-spacing: 0.02em; }

.result-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.result-copia {
  font-family: var(--fu);
  font-size: 13px;
  font-weight: 600;
  color: oklch(32% 0.13 40);
  background: oklch(from var(--cp-lt) l c h / 0.35);
  border: none;
  border-radius: 9999px;
  padding: 7px 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.result-copia:hover { background: oklch(from var(--cp-lt) l c h / 0.55); }

.result-copia svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.result-archivo {
  font-family: var(--fu);
  font-size: 13px;
  font-weight: 500;
  color: var(--cp-dk);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s;
  white-space: nowrap;
}

.result-archivo:hover {
  color: var(--cp-act);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.result-archivo svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* ─── Filter button (mobile, base) ──────────────────────────────────── */
.btn-filter-open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  font-family: var(--fu);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ct2);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s, border-color 0.15s;
  min-height: 44px;
}

.btn-filter-open:hover { color: var(--ct); }

.btn-filter-open.has-filters {
  color: var(--cp-dk);
  border-bottom-color: var(--cp-dk);
  font-weight: 700;
}

.btn-filter-open svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* ─── Bottom sheet overlay & panel ──────────────────────────────────── */
.filter-overlay {
  position: fixed;
  inset: 0;
  background: oklch(0% 0 0 / 0.45);
  z-index: 400;
}

.filter-overlay.entering { animation: fIn  0.20s ease forwards; }
.filter-overlay.leaving  { animation: fOut 0.22s ease forwards; }

.filter-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--csurf);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 32px oklch(0% 0 0 / 0.14);
  z-index: 500;
  max-height: 82dvh;
}

.filter-sheet:not([hidden]) {
  display: flex;
  flex-direction: column;
}

.filter-sheet.entering { animation: sUp   0.26s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
.filter-sheet.leaving  { animation: sDown 0.22s cubic-bezier(0.5, 0, 0.75, 0) forwards; }

@keyframes fIn   { from { opacity: 0 } to { opacity: 1 } }
@keyframes fOut  { from { opacity: 1 } to { opacity: 0 } }
@keyframes sUp   { from { transform: translateY(100%) } to { transform: translateY(0) } }
@keyframes sDown { from { transform: translateY(0) } to { transform: translateY(100%) } }

.sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--cbrd2);
  border-radius: 9999px;
  margin: 12px auto 0;
  flex-shrink: 0;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--cbrd);
  flex-shrink: 0;
}

.sheet-title {
  font-family: var(--fu);
  font-size: 15px;
  font-weight: 700;
  color: var(--ct);
}

.sheet-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ct3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 8px;
  min-width: 44px;
  min-height: 44px;
  transition: background 0.12s, color 0.12s;
}

.sheet-close:hover {
  background: var(--cmuted);
  color: var(--ct);
}

.sheet-close svg {
  width: 20px;
  height: 20px;
}

.sheet-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sheet-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--cbrd);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.btn-sheet-apply {
  background: var(--cp);
  color: var(--cton);
  border: none;
  border-radius: 9999px;
  padding: 13px 20px;
  font-family: var(--fu);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  width: 100%;
}

.btn-sheet-apply:hover { background: var(--cp-dk); }

.btn-sheet-clear {
  background: none;
  border: none;
  font-family: var(--fu);
  font-size: 13px;
  color: var(--ct3);
  cursor: pointer;
  text-align: center;
  padding: 6px;
  transition: color 0.15s;
}

.btn-sheet-clear:hover { color: var(--cp-dk); }


/* ─── Botón GSJ (formularios y CTAs de página completa) ─────────────── */
.gsj-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--fu);
  font-size: 15px;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  padding: 12px 28px;
  min-height: 44px;
  border: 1.5px solid transparent;
}

.gsj-button--primary {
  background: var(--cp);
  color: var(--cton);
  border-color: var(--cp);
}

.gsj-button--primary:hover { background: var(--cp-dk); border-color: var(--cp-dk); }

.gsj-button--outline {
  background: transparent;
  color: var(--ct2);
  border-color: var(--cbrd2);
}

.gsj-button--outline:hover {
  background: var(--cmuted);
  color: var(--ct);
}

.gsj-button--sm {
  padding: 8px 18px;
  font-size: 13px;
  min-height: 44px;
}

.btn-full { width: 100%; }

/* ─── Footer ─────────────────────────────────────────────────────────── */
.footer-tagline {
  font-family: var(--fb);
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  color: var(--cfooter-tagline);
  text-align: center;
  padding: 36px 24px 28px;
  border-bottom: 1px solid var(--cfooter-div);
  letter-spacing: 0.01em;
}

footer {
  background: var(--cfooter);
  color: var(--cfooter-text);
  font-size: 14px;
  padding: 18px 24px;
  text-align: center;
  margin-top: auto;
}

footer a {
  color: var(--cfooter-link);
  text-decoration: underline;
}

footer a:hover { color: oklch(95% 0 0); }

.footer-grid {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  text-align: left;
  padding: 36px 24px 24px;
}

.footer-col-head {
  font-family: var(--fu);
  font-weight: 700;
  color: var(--cfooter-head);
  margin-bottom: 10px;
  font-size: 13px;
}

.footer-col-body {
  line-height: 1.8;
}

.footer-copy {
  border-top: 1px solid var(--cfooter-div);
  padding: 16px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--cfooter-link);
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 20px 20px;
  }
}

/* ─── Responsive compartido ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .results-body {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 24px;
  }
  .results-sidebar { display: none !important; }
}

@media (max-width: 560px) {
  .inst-meta,
  .inst-sep { display: none; }
}

/* ─── Búsqueda por voz ───────────────────────────────────────────────── */

/* Botón activo: naranja + glow pulsante */
.pill-btn[aria-pressed="true"] {
  color: var(--cton);
  background: var(--cp);
  animation: voice-btn-pulse 1.5s ease-in-out infinite;
}

.pill-btn[aria-pressed="true"] svg {
  animation: voice-mic-pulse 1.1s ease-in-out infinite;
}

@keyframes voice-btn-pulse {
  0%, 100% { box-shadow: 0 0 0 3px oklch(from var(--cp) l c h / 0.30); }
  50%       { box-shadow: 0 0 0 9px oklch(from var(--cp) l c h / 0.06); }
}

@keyframes voice-mic-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.22); }
}

/* Flash naranja en el input al recibir texto por voz */
.search-pill input.voice-filled {
  animation: voice-fill-flash 0.65s ease-out forwards;
}

@keyframes voice-fill-flash {
  0%   { background: oklch(from var(--cp) l c h / 0.14); }
  100% { background: transparent; }
}

/* Snackbar de estado ─────────────────────────────────────────────────── */
.voice-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  z-index: 9000;
  font-family: var(--fu);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 20px 11px 14px;
  border-radius: 9999px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ct);
  color: var(--cton);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 4px 20px oklch(0% 0 0 / 0.24);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.voice-toast.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Punto naranja parpadeante (solo estado "escuchando") */
.voice-toast::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--cp);
  flex-shrink: 0;
  animation: voice-dot 1s ease-in-out infinite;
}

@keyframes voice-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.15; }
}

/* Estado "result": fondo levemente más claro, sin punto */
.voice-toast[data-state="result"]::before { display: none; }

/* Estado "error": rojo, sin punto */
.voice-toast[data-state="error"] {
  background: var(--cerr);
}
.voice-toast[data-state="error"]::before { display: none; }

/* ─── Reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .filter-overlay,
  .filter-sheet { animation: none !important; }

  .pill-btn[aria-pressed="true"]     { animation: none; }
  .pill-btn[aria-pressed="true"] svg { animation: none; }
  .search-pill input.voice-filled    { animation: none; }
  .voice-toast                       { transition: opacity 0.1s; }
  .voice-toast::before               { animation: none; }
}
