/* Notas: filtros, lista por áreas y lector con imágenes (escritorio a tres columnas; móvil en una, lector a pantalla completa).
   Las clases .dot, .md, .reader* y .flt también las usan Metas y proyectos. */
.notes { display: grid; gap: 12px; align-items: start; }
.notes__filters { display: none; }
.flt { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 9px; border: 0; background: transparent; width: 100%; font-size: 13.5px; color: var(--ink-2); text-align: left; }
.flt[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.flt b { margin-left: auto; font-weight: 500; font-size: 12px; color: var(--muted); }
.flt svg { width: 16px; height: 16px; flex: none; }
.flt__sep { border-top: 1px solid var(--line-2); margin: 8px 4px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; background: var(--box-line); }
.dot--negocio { background: var(--area-negocio); }
.dot--salud { background: var(--area-salud); }
.dot--desarrollo { background: var(--area-desarrollo); }
.dot--relaciones { background: var(--area-relaciones); }

/* Lista */
.notes__listwrap { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.notes__list { padding: 0; overflow: hidden; }
.notes__list-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; }
.grp { display: flex; align-items: center; gap: 8px; padding: 10px 14px 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); background: var(--bg); border-top: 1px solid var(--line-2); }
.grp b { margin-left: auto; font-weight: 500; color: var(--muted); }
.nit { display: flex; gap: 10px; padding: 11px 14px; border: 0; border-top: 1px solid var(--line-2); background: transparent; width: 100%; text-align: left; color: var(--ink); align-items: flex-start; }
.nit[aria-pressed="true"] { background: var(--now-bg); }
.nit > svg { flex: none; margin-top: 2px; color: var(--muted); }
.nit__body { min-width: 0; display: flex; flex-direction: column; flex: 1; }
.nit__t { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.nit__m { font-size: 12px; color: var(--muted); margin-top: 2px; }
.nit__p { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nit__q { font-style: italic; font-size: 13.5px; overflow-wrap: anywhere; }
.notes__mcard { padding: 2px 14px; }
.notes__mcard .nit { padding: 11px 0; }
.notes__mcard .nit:first-child { border-top: 0; }
.notes__mcard .nit__t { font-size: 15px; }
.mgrp { display: flex; align-items: center; gap: 8px; margin: 0 4px 6px; font-size: 13px; font-weight: 700; }
.mgrp__more { margin-left: auto; border: 0; background: transparent; padding: 0; }

/* Cabecera: búsqueda y filtros del móvil */
.notes__search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); flex: 1 1 200px; max-width: 320px; }
.notes__search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 13px; color: var(--ink); width: 100%; min-width: 0; }
.notes__mfilters { display: flex; flex-direction: column; gap: 6px; }
.notes__chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.notes__chips .chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; flex: none; }
.notes__types { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; }
.typ { border: 0; background: transparent; padding: 4px 0; font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap; flex: none; border-bottom: 2px solid transparent; }
.typ[aria-pressed="true"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--accent); }
@media (max-width: 1023px) { .notes__search { max-width: none; } }

/* Frase de hoy (móvil) */
.quote-card { display: flex; flex-direction: column; gap: 8px; }
.quote-card__q { font-size: 17px; font-style: italic; line-height: 1.4; }
.quote-card__by { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; }
.quote-card .btn { background: transparent; color: var(--on-dark); border-color: var(--dark-2); }

/* Lector */
.reader { display: none; }
@media (max-width: 1023px) {
  .notes--reading .reader { display: flex; position: fixed; inset: 0; z-index: 8; overflow-y: auto; flex-direction: column; gap: 14px; padding: calc(12px + env(safe-area-inset-top)) 16px calc(40px + env(safe-area-inset-bottom)); border-radius: 0; border: 0; }
}
.reader__top { display: flex; align-items: center; gap: 8px; }
.reader__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.reader__title { min-width: 0; flex: 1 1 240px; }
.reader__kind { display: flex; align-items: center; gap: 6px; }
.reader h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin-top: 4px; overflow-wrap: anywhere; }
.reader__meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.reader__actions { display: flex; gap: 6px; flex: none; }
.reader__empty { display: grid; place-items: center; gap: 8px; color: var(--muted); padding: 60px 0; text-align: center; }
.reader__quote { font-size: 20px; line-height: 1.4; font-style: italic; }
.reader__by { display: block; margin-top: 6px; font-size: 12px; font-style: normal; color: var(--muted); }
.md { font-size: 15px; line-height: 1.6; display: flex; flex-direction: column; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.md p { margin: 0; }
.md h2 { font-size: 18px; font-weight: 700; margin-top: 6px; }
.md h3 { font-size: 15px; font-weight: 700; margin-top: 4px; }
.md h4 { font-size: 14px; font-weight: 700; }
.md ul, .md ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.md blockquote { margin: 0; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--bg); border-radius: 0 12px 12px 0; font-style: italic; }
.md code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.md figure { margin: 4px 0; }
.md img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); display: block; background: var(--surface-2); }
.md figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.editor { display: grid; gap: 12px; }
.editor textarea { min-height: 280px; line-height: 1.5; }
.editor__actions { display: flex; justify-content: flex-end; gap: 8px; }

@media (min-width: 1024px) {
  .notes { grid-template-columns: 196px 360px minmax(0, 1fr); gap: 20px; }
  .notes__filters { display: flex; flex-direction: column; gap: 2px; padding: 10px; }
  .notes__filters .h { padding: 4px 10px 6px; }
  .reader { display: flex; flex-direction: column; gap: 14px; padding: 22px 26px; min-height: 600px; }
  .notes__mcard, .mgrp { display: none; }
}
