/* Comunidad: selector de eventos y muro de publicaciones en cascada */
.share-bar { box-shadow: none; }
.feed-wrap { margin-top: 48px; }
.feed-wrap .list-head h2 { font-size: 24px; margin-top: 8px; }

.feed-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin: 8px 0 16px; }
.feed-head:empty { display: none; }
.feed-head h3 { font-size: 20px; margin-top: 6px; }

/* Muro tipo collage: columnas que se rellenan de arriba hacia abajo */
.feed { columns: 2 280px; column-gap: 16px; }
.nota {
  break-inside: avoid; margin-bottom: 16px;
  border: 1px solid var(--line); border-top: 3px solid var(--c1, var(--accent));
  border-radius: 14px; background: var(--raised); padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.nota header { display: flex; gap: 10px; align-items: center; }
.nota header > div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.nota header b { font-size: 14px; overflow-wrap: anywhere; }
.nota .li-ico { color: var(--muted); }
.nota p { font-size: 14.5px; }
.nota-ev { display: inline-flex; gap: 6px; align-items: center; background: var(--surface); border: 0; border-radius: 8px; padding: 6px 10px; font-size: 13px; cursor: pointer; text-align: left; }
.nota-ev:hover { color: var(--accent); }
.nota-link { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--accent); text-decoration: none; }
.nota-link:hover { text-decoration: underline; }

/* "Lluvia": cada nota cae con un pequeño retraso. Solo transform y opacity (GPU). */
.feed.llueve .nota { animation: caer .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0ms); }
@keyframes caer { from { opacity: 0; transform: translateY(-28px) scale(.98); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) { .feed.llueve .nota { animation: none; } }

/* Intro más compacta */
.page-head.compact { padding-block: 32px 18px; }
.page-head.compact p { font-size: 14px; }

/* Distribución: lista de eventos | muro */
.feed-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 16px; }
.ev-filter { position: sticky; top: calc(var(--header-h) + 16px); border: 1px solid var(--line); border-radius: 16px; background: var(--raised); overflow: hidden; }
.ev-search { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.ev-search input { border: 0; outline: none; background: transparent; width: 100%; min-width: 0; color: var(--fg); }
.ev-list { max-height: 440px; overflow: auto; padding: 6px; display: flex; flex-direction: column; gap: 2px; overscroll-behavior: contain; }
.ev-group { font: 600 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 8px 4px; }
.ev-empty { padding: 12px 8px; }
.ev-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; border: 0; background: none; border-radius: 10px; padding: 8px 10px; cursor: pointer; width: 100%; }
.ev-item.todos { grid-template-columns: minmax(0, 1fr) auto; }
.ev-item span { display: flex; flex-direction: column; min-width: 0; }
.ev-item b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-item small { color: var(--muted); font-size: 12px; }
.ev-item em { font-style: normal; font: 600 12px var(--f-mono); color: var(--muted); background: var(--surface); border-radius: 999px; padding: 2px 8px; }
.ev-item:hover { background: var(--surface); }
.ev-item[aria-selected="true"] { background: var(--accent-soft); }
.ev-item[aria-selected="true"] b, .ev-item[aria-selected="true"] em { color: var(--accent); }

/* Vista previa estilo LinkedIn */
.li-preview { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.li-preview img, .li-ph { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; display: block; max-width: 100%; }
.li-ph { display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.li-ph .ico { width: 48px; height: 48px; opacity: .6; }
.li-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.li-body b { font-size: 14px; line-height: 1.3; }
.li-body p { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.li-brand { width: 18px; height: 18px; border-radius: 4px; background: #0a66c2; color: #fff; font: 700 11px/18px var(--f-body); text-align: center; }
.li-frame { width: 100%; height: 520px; border: 0; border-radius: 12px; background: var(--surface); }
.nota-txt { font-size: 14.5px; }
.nota-acts { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .feed-layout { grid-template-columns: minmax(0, 1fr); }
  .ev-filter { position: static; }
  .ev-list { max-height: 260px; }
}

/* Formulario centrado y muro a todo el ancho */
.com-top { max-width: 900px; }
.feed-layout { grid-template-columns: 260px minmax(0, 1fr); }
.feed { columns: 3 230px; }
@media (min-width: 1200px) { .feed { columns: 3 250px; } }
@media (max-width: 860px) { .feed-layout { grid-template-columns: minmax(0, 1fr); } }
