/* ============================================================================
   CoViOSE 2 — hoja de estilos
   Marca: teal "agua" (identidad OSE) sobre papel cálido. El color pleno se
   reserva para el sistema de categorías del muro, que es la pieza distintiva.
   ========================================================================== */

/* El atributo `hidden` debe ganar SIEMPRE, incluso sobre reglas con `display`
   propio (p. ej. los botones .btn). Sin esto, los controles que ocultamos por
   JavaScript (Usuarios / Categorías / Nuevo aviso) se siguen viendo. */
[hidden] { display: none !important; }

:root {
  --agua:       #115E67;
  --agua-2:     #0C474E;
  --agua-3:     #2A8C97;
  --agua-soft:  #E4EFEF;
  --paper:      #FAF8F3;
  --paper-2:    #F2EEE5;
  --surface:    #FFFFFF;
  --tinta:      #18211F;
  --humo:       #5C6967;
  --linea:      #E7E1D5;
  --linea-2:    #D8D1C2;
  --danger:     #C0392B;

  --radius:     16px;
  --radius-sm:  10px;
  --shadow-sm:  0 1px 2px rgba(24,33,31,.05), 0 2px 8px rgba(24,33,31,.04);
  --shadow-md:  0 4px 14px rgba(24,33,31,.08), 0 12px 32px rgba(24,33,31,.06);
  --maxw:       1140px;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--tinta);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0; }
p { margin: 0 0 1em; }
a { color: var(--agua); text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: var(--agua); color: #fff; }

:focus-visible {
  outline: 3px solid var(--agua-3);
  outline-offset: 2px;
  border-radius: 4px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--agua);
  margin: 0 0 .7rem;
}

.muted { color: var(--humo); font-weight: 400; }

/* ============================== HEADER ================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .7rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(250,248,243,.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--linea);
}

.brand { display: flex; align-items: center; gap: .65rem; color: var(--agua); }
.brand-mark { display: grid; place-items: center; color: var(--agua); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--tinta); letter-spacing: -.01em; }
.brand-text small { font-size: .7rem; color: var(--humo); letter-spacing: .02em; }

.site-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.site-nav a {
  color: var(--tinta); font-weight: 500; font-size: .95rem;
  padding: .25rem 0; position: relative;
}
.site-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--agua); transition: width .22s ease;
}
.site-nav a:hover::after { width: 100%; }

.admin-toggle { margin-left: 0; }
.site-nav + .admin-toggle { margin-left: 1.4rem; }

/* =============================== HERO =================================== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  border-bottom: 1px solid var(--linea);
}
.hero-ripple {
  position: absolute; inset: 0;
  background:
    repeating-radial-gradient(circle at 88% 18%,
      transparent 0, transparent 46px,
      rgba(17,94,103,.06) 46px, rgba(17,94,103,.06) 48px);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 88% 18%, #000 0%, transparent 62%);
          mask-image: radial-gradient(circle at 88% 18%, #000 0%, transparent 62%);
}
.hero-inner {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3.2rem, 9vw, 6.5rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 7vw, 5rem);
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(2.4rem, 6.2vw, 4.4rem);
  letter-spacing: -.02em;
  margin-bottom: 1.1rem;
}
.hero h1 .ose {
  color: var(--agua);
  position: relative;
}
.hero h1 .dos { color: var(--agua-3); font-style: italic; font-weight: 700; }

.hero-lead {
  max-width: 46ch; font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--humo);
}
.hero-meta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.chip-link {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--surface); border: 1px solid var(--linea);
  padding: .55rem .9rem; border-radius: 999px;
  font-size: .9rem; font-weight: 500; color: var(--tinta);
  box-shadow: var(--shadow-sm); transition: transform .15s ease, border-color .15s ease;
}
.chip-link:hover { transform: translateY(-1px); border-color: var(--agua-3); }
.chip-ico { font-size: 1rem; }

/* ============================= SECTIONS ================================= */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 6vw, 5.5rem) clamp(1rem, 4vw, 2.5rem); }
.section-alt { max-width: none; background: var(--paper-2); border-block: 1px solid var(--linea); }
.section-alt > * { max-width: var(--maxw); margin-inline: auto; }

.section-head { margin-bottom: 2.2rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; letter-spacing: -.015em; max-width: 22ch; }

/* ---------- El complejo ---------- */
.complejo-grid {
  display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.complejo-prose p { font-size: 1.06rem; margin-bottom: 1.1em; }
.complejo-prose strong { font-weight: 700; }

.ficha {
  background: var(--surface); border: 1px solid var(--linea);
  border-radius: var(--radius); padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm); position: sticky; top: 92px;
}
.ficha-title {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--agua); margin-bottom: 1rem;
}
.ficha dl { margin: 0; display: grid; gap: .9rem; }
.ficha dl > div { display: grid; gap: .15rem; padding-bottom: .9rem; border-bottom: 1px solid var(--linea); }
.ficha dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.ficha dt { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--humo); }
.ficha dd { margin: 0; font-weight: 600; font-size: 1.02rem; }
.ficha-foot { margin: 1.2rem 0 0; font-size: .78rem; color: var(--humo); line-height: 1.5; }

/* --------- Ubicación + contacto --------- */
.map-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }
.map-wrap { display: flex; flex-direction: column; gap: .6rem; }
#map {
  height: 420px; width: 100%;
  border-radius: var(--radius); border: 1px solid var(--linea-2);
  box-shadow: var(--shadow-sm); background: var(--agua-soft); z-index: 0;
}
.map-link { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; color: var(--humo); }
.map-link:hover { color: var(--agua); }

.contact-cards { display: flex; flex-direction: column; gap: .8rem; }
.contact-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface); border: 1px solid var(--linea);
  border-radius: var(--radius-sm); padding: 1rem 1.2rem;
  box-shadow: var(--shadow-sm); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.contact-card:hover { transform: translateY(-2px); border-color: var(--agua-3); box-shadow: var(--shadow-md); }
.contact-ico { font-size: 1.5rem; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; flex: none; }
.contact-ico-wa { color: #25D366; }
.contact-body { display: flex; flex-direction: column; }
.contact-label { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--humo); }
.contact-value { font-weight: 600; font-size: 1.05rem; color: var(--tinta); }
.contact-note { margin: .6rem .2rem 0; font-size: .82rem; color: var(--humo); }

/* =============================== MURO =================================== */
.muro-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.muro-actions { display: flex; gap: .6rem; }

.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2rem; }
.filter-chip {
  --cat: var(--humo);
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1px solid var(--linea-2); background: var(--surface);
  padding: .42rem .85rem; border-radius: 999px;
  font-size: .85rem; font-weight: 600; color: var(--tinta);
  cursor: pointer; transition: all .15s ease;
}
.filter-chip .dot { width: .62rem; height: .62rem; border-radius: 50%; background: var(--cat); }
.filter-chip:hover { border-color: var(--cat); }
.filter-chip[aria-selected="true"] {
  background: var(--cat); border-color: var(--cat); color: #fff;
}
.filter-chip[aria-selected="true"] .dot { background: rgba(255,255,255,.85); }

/* ------- Tarjetas de aviso ------- */
.messages { display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .messages { grid-template-columns: repeat(2, 1fr); } }

.msg-card {
  --cat: var(--agua);
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--linea);
  border-left: 5px solid var(--cat);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem 1.2rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: .85rem;
  animation: rise .42s ease both;
}
.msg-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 64px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--cat) 9%, transparent), transparent);
  pointer-events: none;
}
.msg-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; position: relative; }

.badge {
  display: inline-flex; align-items: center; gap: .45rem;
  background: color-mix(in srgb, var(--cat) 14%, #fff);
  color: color-mix(in srgb, var(--cat) 78%, #000);
  border: 1px solid color-mix(in srgb, var(--cat) 30%, transparent);
  padding: .28rem .7rem; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .02em;
}
.badge .b-ico { font-size: .95rem; line-height: 1; }
.badge-none { background: var(--paper-2); color: var(--humo); border-color: var(--linea-2); }

.msg-tools { display: flex; gap: .3rem; }
.icon-btn {
  border: 1px solid var(--linea-2); background: var(--surface);
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
  display: grid; place-items: center; color: var(--humo);
  transition: all .15s ease; font-size: .95rem;
}
.icon-btn:hover { color: var(--tinta); border-color: var(--agua-3); }
.icon-btn.danger:hover { color: var(--danger); border-color: var(--danger); }

.msg-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.18; }
.msg-body { color: #303a38; white-space: pre-wrap; word-break: break-word; }
.msg-body a { text-decoration: underline; }

.msg-images { display: grid; gap: .5rem; }
.msg-images.n1 { grid-template-columns: 1fr; }
.msg-images.n2 { grid-template-columns: 1fr 1fr; }
.msg-images.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.msg-images.n3 .gi:first-child { grid-row: span 2; }
.gi { border-radius: 10px; overflow: hidden; border: 1px solid var(--linea); background: var(--paper-2); cursor: zoom-in; }
.gi img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .3s ease; }
.msg-images.n1 .gi img { aspect-ratio: 16/9; max-height: 420px; }
.gi:hover img { transform: scale(1.03); }

.msg-meta {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .03em;
  color: var(--humo); margin-top: auto; padding-top: .3rem;
  display: flex; gap: .6rem; align-items: center;
}
.msg-meta .edited { font-style: italic; }

.empty { text-align: center; color: var(--humo); padding: 3rem 1rem; font-size: 1.05rem; }

/* ============================== BOTONES ================================= */
.btn {
  font-family: var(--font-body); font-weight: 600; font-size: .92rem;
  border-radius: 10px; padding: .6rem 1.1rem; cursor: pointer;
  border: 1px solid transparent; transition: all .15s ease; line-height: 1;
  display: inline-flex; align-items: center; gap: .4rem;
}
.btn-primary { background: var(--agua); color: #fff; }
.btn-primary:hover { background: var(--agua-2); }
.btn-soft { background: var(--agua-soft); color: var(--agua-2); }
.btn-soft:hover { background: #d6e6e6; }
.btn-ghost { background: transparent; color: var(--tinta); border-color: var(--linea-2); }
.btn-ghost:hover { border-color: var(--agua-3); color: var(--agua-2); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a52f23; }

/* ============================== MODALES ================================= */
.modal { border: none; padding: 0; background: transparent; max-width: 96vw; }
.modal::backdrop { background: rgba(20,28,27,.45); backdrop-filter: blur(2px); }
.modal[open] { animation: pop .2s ease; }

.modal-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 1.8rem; width: 420px; max-width: 92vw;
  box-shadow: var(--shadow-md);
}
.modal-card-wide { width: 560px; }
.modal-card h3 { font-size: 1.4rem; font-weight: 700; }
.modal-sub { color: var(--humo); margin: .35rem 0 1.3rem; font-size: .95rem; }
.modal-foot { display: flex; justify-content: flex-end; gap: .7rem; margin-top: 1.5rem; }

.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field > span { font-size: .82rem; font-weight: 600; color: var(--tinta); }
.field input[type="text"], .field input[type="password"], .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--tinta);
  border: 1px solid var(--linea-2); border-radius: 10px; padding: .65rem .8rem;
  background: var(--paper); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--agua); box-shadow: 0 0 0 3px rgba(42,140,151,.18);
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.55; }

.form-error { color: var(--danger); font-size: .85rem; margin: 0; }

/* Gestor de imágenes en el editor */
.img-manager { display: flex; flex-wrap: wrap; gap: .6rem; }
.img-thumb {
  position: relative; width: 92px; height: 92px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--linea-2); background: var(--paper-2);
}
.img-thumb img { width: 100%; height: 100%; object-fit: cover; }
.img-thumb .img-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: .45rem; font-size: .66rem; line-height: 1.25; font-weight: 600;
  color: var(--agua-2); background: var(--agua-soft); overflow: hidden; word-break: break-word;
}
.img-thumb button {
  position: absolute; top: 3px; right: 3px; width: 22px; height: 22px;
  border-radius: 50%; border: none; cursor: pointer;
  background: rgba(20,28,27,.78); color: #fff; font-size: .8rem; line-height: 1;
  display: grid; place-items: center;
}
.img-add {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px dashed var(--linea-2); border-radius: 10px;
  padding: .55rem .9rem; cursor: pointer; font-size: .85rem; font-weight: 600;
  color: var(--agua); background: var(--paper); margin-top: .7rem; width: fit-content;
  transition: all .15s ease;
}
.img-add:hover { border-color: var(--agua-3); background: var(--agua-soft); }
.img-add[hidden] { display: none; }

/* Gestor de categorías */
.cat-list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .5rem; max-height: 320px; overflow: auto; }
.cat-row {
  --cat: var(--humo);
  display: flex; align-items: center; gap: .7rem;
  border: 1px solid var(--linea); border-left: 4px solid var(--cat);
  border-radius: 10px; padding: .55rem .7rem; background: var(--paper);
}
.cat-row .c-emoji { font-size: 1.15rem; width: 1.6rem; text-align: center; }
.cat-row .c-name { font-weight: 600; flex: 1; }
.cat-row .c-name input { font: inherit; border: 1px solid var(--linea-2); border-radius: 6px; padding: .25rem .4rem; width: 100%; background: #fff; }
.cat-row input[type="color"] { width: 30px; height: 30px; padding: 0; border: 1px solid var(--linea-2); border-radius: 6px; background: none; cursor: pointer; }

.cat-new { border-top: 1px solid var(--linea); padding-top: 1.2rem; }
.cat-new h4 { font-size: 1rem; margin-bottom: .8rem; }
.cat-new-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.cat-new-row #catName { flex: 1; min-width: 140px; font-family: var(--font-body); font-size: .95rem; border: 1px solid var(--linea-2); border-radius: 10px; padding: .6rem .7rem; background: var(--paper); }
.cat-new-row input[type="color"] { width: 42px; height: 42px; padding: 0; border: 1px solid var(--linea-2); border-radius: 10px; background: none; cursor: pointer; }
.emoji-btn { width: 42px; height: 42px; border: 1px solid var(--linea-2); border-radius: 10px; background: var(--paper); font-size: 1.3rem; cursor: pointer; }
.emoji-btn:hover { border-color: var(--agua-3); }

.emoji-pop {
  display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .7rem;
  background: var(--paper); border: 1px solid var(--linea); border-radius: 10px; padding: .6rem;
}
.emoji-pop[hidden] { display: none; }
.emoji-pop button { font-size: 1.25rem; background: none; border: none; cursor: pointer; padding: .25rem; border-radius: 8px; }
.emoji-pop button:hover { background: var(--agua-soft); }

/* Lightbox */
.lightbox { border: none; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(12,16,15,.88); }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; object-fit: contain; }
.lightbox-close {
  position: fixed; top: 18px; right: 22px; width: 42px; height: 42px;
  border-radius: 50%; border: none; cursor: pointer; font-size: 1.1rem;
  background: rgba(255,255,255,.15); color: #fff; backdrop-filter: blur(4px);
}
.lightbox-close:hover { background: rgba(255,255,255,.28); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(8px);
  background: var(--tinta); color: #fff; padding: .8rem 1.2rem; border-radius: 12px;
  font-size: .92rem; font-weight: 500; box-shadow: var(--shadow-md); z-index: 200;
  opacity: 0; transition: opacity .25s ease, transform .25s ease; pointer-events: none;
  max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--danger); }

/* =============================== FOOTER ================================= */
.site-footer {
  background: var(--tinta); color: #cfd6d4;
  padding: 2.4rem clamp(1rem, 4vw, 2.5rem);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
}
.foot-brand { display: flex; flex-direction: column; gap: .25rem; }
.foot-brand strong { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.foot-brand span { font-size: .85rem; }
.foot-legal { margin: 0; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em; color: #9aa5a3; }

/* ============================= ANIMACIONES ============================== */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pop  { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

/* ============================= RESPONSIVE =============================== */
@media (max-width: 860px) {
  .complejo-grid { grid-template-columns: 1fr; }
  .ficha { position: static; }
  .map-grid { grid-template-columns: 1fr; }
  #map { height: 320px; }
  .site-nav { display: none; }
}

@media (max-width: 520px) {
  .messages { grid-template-columns: 1fr; }
  .modal-card { padding: 1.4rem; }
  .hero-meta { gap: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ===================================================================== */
/* ===============  AÑADIDOS: mapa de fondo, 2ª página, usuarios ======== */
/* ===================================================================== */

/* Fondo tipo mapa de Montevideo (capa decorativa) */
.bg-map {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url('/montevideo.svg') center / cover no-repeat;
  opacity: .55;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 48%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 48%, transparent 100%);
}
.hero-inner { z-index: 1; }

/* Enlace "Novedades" destacado en la nav */
.site-nav a.nav-cta { background: var(--agua); color: #fff; padding: .35rem .9rem; border-radius: 999px; font-weight: 600; }
.site-nav a.nav-cta::after { display: none; }
.site-nav a.nav-cta:hover { background: var(--agua-2); }
.site-nav a.nav-cta.active { background: var(--agua-2); }

/* Cabecera de la página Novedades */
.page-head { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); border-bottom: 1px solid var(--linea); }
.page-head-inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: clamp(2.4rem, 6vw, 4rem) clamp(1rem, 4vw, 2.5rem) clamp(2rem, 4vw, 3rem); }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .5rem; }
.page-lead { color: var(--humo); font-size: 1.05rem; margin: 0; }

/* Barra de filtros + acciones del muro */
.muro-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.muro-bar .filters { margin-bottom: 0; }
.muro-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* Autoría en las tarjetas */
.msg-author { font-weight: 600; color: var(--tinta); }
.msg-meta { flex-wrap: wrap; }

/* Gestor de usuarios */
.user-list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .5rem; max-height: 340px; overflow: auto; }
.user-row { display: flex; align-items: center; justify-content: space-between; gap: .7rem; border: 1px solid var(--linea); border-radius: 10px; padding: .6rem .8rem; background: var(--paper); }
.u-info { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.u-name { font-weight: 600; }
.u-role { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 999px; }
.u-role.admin { background: rgba(17,94,103,.14); color: var(--agua); }
.u-role.editor { background: var(--paper-2); color: var(--humo); }
.u-you { font-size: .68rem; color: var(--humo); font-style: italic; }
.u-actions { display: flex; gap: .3rem; }
.user-new-grid { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: .5rem; align-items: center; }
.user-new-grid input, .user-new-grid select { font-family: var(--font-body); font-size: .95rem; border: 1px solid var(--linea-2); border-radius: 10px; padding: .6rem .7rem; background: var(--paper); color: var(--tinta); }
.user-new-grid input:focus, .user-new-grid select:focus { outline: none; border-color: var(--agua); box-shadow: 0 0 0 3px rgba(42,140,151,.18); }
@media (max-width: 560px) { .user-new-grid { grid-template-columns: 1fr 1fr; } }
