/* Cuenta · contenido de la página Mi cuenta */
/* Cuenta */
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 2rem; }
.profile-top { display: flex; align-items: center; gap: 1.2rem; }
.big-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--lav); color: #fff; display: grid; place-items: center; font: 500 2rem var(--sans); flex: none; }
.profile-top h2 { font-size: 1.7rem; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.dl { margin: 1.6rem 0 0; display: grid; gap: .9rem; }
.dl div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; color: var(--title); font-weight: 500; text-align: right; overflow-wrap: anywhere; }
@media (max-width: 900px) { .account-grid { grid-template-columns: 1fr; } }

/* ===== Perfil de Mi cuenta: la portada es el fondo de todo el bloque ===== */
.cuenta-hero { position: relative; padding: 0; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(300px, 36vw, 420px); overflow: hidden; background: #252866; }
.cuenta-cover { position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #252866 0%, #5051AE 60%, #7775D6 100%); }
.cuenta-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cuenta-cover::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18,20,46,.82) 0%, rgba(18,20,46,.45) 55%, rgba(18,20,46,.12) 100%); }

.cuenta-hero-body { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: 1fr 1fr;
  align-items: end; padding: 2rem clamp(1rem, 3vw, 2.5rem) 2.2rem; }
.cuenta-lado { min-width: 0; }
.cuenta-lado-perfil { display: flex; gap: 1.4rem; align-items: center; }
.cuenta-lado-redes { border-left: 1px solid rgba(255,255,255,.3); padding: .4rem 4.5rem .2rem 2rem; }

.cuenta-avatar { width: 132px; height: 132px; border-radius: 50%; flex: none; overflow: hidden;
  display: grid; place-items: center; background: var(--lav); color: #fff; font: 500 3rem var(--sans);
  border: 4px solid rgba(255,255,255,.9); box-shadow: 0 8px 24px -10px rgba(0,0,0,.6); }
.cuenta-nombres { min-width: 0; }
.cuenta-nombre { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; overflow-wrap: anywhere; margin: 0;
  color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.cuenta-usuario { color: rgba(255,255,255,.85); margin-top: .25rem; font-size: 1.02rem; overflow-wrap: anywhere;
  text-shadow: 0 1px 8px rgba(0,0,0,.45); }

.cuenta-stats { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
  color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.cuenta-stats li { display: inline-flex; align-items: center; gap: .4rem; font-size: .95rem; }
.cuenta-stats svg { width: 17px; height: 17px; flex: none; }
.cuenta-stats b { font-weight: 600; }
.cuenta-stats span { color: rgba(255,255,255,.85); }

.cuenta-redes-titulo { font-size: 1.15rem; font-weight: 500; margin: 0 0 .9rem; max-width: none; color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.cuenta-lado-redes .muted { color: rgba(255,255,255,.8); }
.cuenta-redes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.cuenta-red { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .95rem; border-radius: 999px;
  background: rgba(255,255,255,.16); color: #fff; font-size: .92rem; font-weight: 500; text-decoration: none;
  border: 1px solid rgba(255,255,255,.3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .15s, transform .15s; }
.cuenta-red svg { width: 18px; height: 18px; flex: none; }
.cuenta-red:hover { background: rgba(255,255,255,.3); transform: translateY(-1px); }

.cuenta-edit { position: absolute; z-index: 2; right: clamp(1rem, 3vw, 2rem); bottom: 1.2rem; width: 46px; height: 46px;
  display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff;
  border: 1px solid rgba(255,255,255,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .15s, transform .15s; }
.cuenta-edit svg { width: 20px; height: 20px; }
.cuenta-edit:hover { background: var(--lav); transform: translateY(-1px); }

@media (max-width: 760px) {
  .cuenta-hero { min-height: 0; padding-top: 5rem; }
  .cuenta-hero-body { grid-template-columns: 1fr; gap: 1.4rem; }
  .cuenta-lado-perfil { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .cuenta-lado-redes { border-left: 0; border-top: 1px solid rgba(255,255,255,.3); padding: 1.2rem 3.5rem 0 0; }
}

/* ===== Contenido de Mi cuenta: izquierda (sobre mí, siguiendo, seguidores) y derecha (el resto) ===== */
.cuenta-cols { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 2rem; align-items: start; }
.cuenta-col-izq { display: grid; gap: 1.2rem; }
.cuenta-col-der { min-width: 0; }
.cuenta-bloque { margin-top: 2.4rem; }
.cuenta-col-der > .cuenta-bloque:first-child { margin-top: 0; }
.cuenta-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.3rem 1.4rem; }
.cuenta-panel h3 { font-size: 1.15rem; margin: 0 0 .8rem; display: flex; align-items: center; gap: .55rem; }
.cuenta-count { display: inline-block; padding: .05rem .6rem; border-radius: 999px; background: var(--soft);
  color: var(--title); font: 600 .8rem var(--sans); }
.cuenta-bio { white-space: pre-line; overflow-wrap: anywhere; }
.cuenta-personas { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.cuenta-personas li { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.cuenta-mini { width: 40px; height: 40px; border-radius: 50%; flex: none; overflow: hidden; display: grid; place-items: center;
  background: var(--lav); color: #fff; font: 600 1rem var(--sans); }
.cuenta-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cuenta-persona { display: grid; min-width: 0; line-height: 1.25; }
.cuenta-persona b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cuenta-persona small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cuenta-mas { margin: .8rem 0 0; color: var(--muted); font-size: .9rem; }

/* Accesos */
.cuenta-accesos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.cuenta-acceso { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; padding: 1.1rem 1.2rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; color: var(--title); text-decoration: none;
  transition: transform .15s, border-color .15s, box-shadow .15s; }
.cuenta-acceso:hover { transform: translateY(-2px); border-color: var(--lav); box-shadow: 0 12px 34px -18px rgba(37,40,102,.35); }
.cuenta-acceso-ico { width: 44px; height: 44px; margin-bottom: .5rem; display: grid; place-items: center; border-radius: 12px;
  background: var(--soft); color: var(--lav); transition: background .15s, color .15s; }
.cuenta-acceso-ico svg { width: 24px; height: 24px; }
.cuenta-acceso:hover .cuenta-acceso-ico { background: var(--lav); color: #fff; }
.cuenta-acceso[data-pendiente] { opacity: .7; }
.cuenta-acceso b { font-weight: 600; overflow-wrap: anywhere; line-height: 1.25; }
.cuenta-acceso small { color: var(--muted); font-size: .85rem; }
.cuenta-acceso.destacado { background: var(--btn); border-color: var(--btn); }
.cuenta-acceso.destacado b, .cuenta-acceso.destacado small { color: var(--btn-text); }

@media (max-width: 900px) {
  .cuenta-cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cuenta-accesos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== Mis obras y listas: tres bloques ===== */
.mo-bloque { margin-top: 1.4rem; padding: 1.2rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.mo-cab { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.mo-cab h3 { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--title); }
.mo-crear-form { margin: 0; }
.mo-crear { display: inline-flex; align-items: center; padding: .45rem 1.1rem; border: 0; border-radius: 999px; background: var(--btn);
  color: var(--btn-text); font: 600 .9rem var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s, opacity .15s; }
.mo-crear:hover { transform: translateY(-1px); opacity: .92; }
.mo-vacio { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1.6rem 1rem .8rem; text-align: center; color: var(--muted); }
.mo-vacio svg { width: 38px; height: 38px; color: var(--lav); }
.mo-vacio p { margin: 0; font-size: .98rem; }
.mo-cab-acciones { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.mo-vermas { display: inline-flex; align-items: center; text-decoration: none; padding: .42rem 1.05rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--title);
  font: 600 .85rem var(--sans); cursor: pointer; transition: border-color .15s, color .15s; }
.mo-vermas:hover { border-color: var(--lav); color: var(--lav); }

/* Obras: 5 portadas por fila, título debajo (esquema). Lo que pasa de 5 se oculta hasta pulsar "Ver más". */
.mo-grid { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.2rem .9rem; }
.mo-grid.mo-colapsable:not(.abierto) .mo-extra { display: none; }
.mo-obra { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.mo-portada { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px; background: var(--lav); color: #fff;
  border: 1px solid var(--line); box-shadow: 0 8px 20px -14px rgba(37,40,102,.55); transition: transform .15s, box-shadow .15s; }
.mo-portada:hover, .mo-portada:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 28px -14px rgba(37,40,102,.6); }
.mo-portada img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mo-inicial { position: absolute; inset: 0; display: grid; place-items: center; font: 600 2.4rem var(--serif, Georgia, serif); }
.mo-titulo { color: var(--title); font-weight: 600; font-size: .92rem; line-height: 1.25; text-decoration: none; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mo-titulo:hover { text-decoration: underline; }
@media (max-width: 700px) { .mo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 440px) { .mo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.mo-aviso { margin: 1rem 0 0; padding: .7rem 1rem; border-radius: 12px; font-size: .92rem; background: rgba(30,107,58,.1); color: #1e6b3a; border: 1px solid rgba(30,107,58,.25); }
.mo-aviso.error { background: rgba(170,40,40,.08); color: #a82828; border-color: rgba(170,40,40,.25); }

/* Etiqueta del nivel de autor */
.nivel-autor { display: inline-flex; align-items: center; gap: .3rem; width: fit-content; padding: .12rem .65rem;
  border-radius: 999px; font: 600 .78rem var(--sans); letter-spacing: .02em; text-decoration: none;
  background: var(--gold, #F2B84B); color: #292936; }
.nivel-autor svg { width: 13px; height: 13px; flex: none; }
.cuenta-nombres .nivel-autor { margin-top: .5rem; text-shadow: none; }

/* Página "Mis obras" (Ver más) */
.mo-pagina-cab { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.mo-pagina-cab h1 { margin: 0; }
.mo-volver { color: var(--lav); font-weight: 600; text-decoration: none; }
.mo-volver:hover { text-decoration: underline; }

/* Mis listas: nombre + Pública/Privada a la izquierda, Ver más a la derecha */
.cuenta-bloque > h2 .cuenta-count { vertical-align: middle; }
.mo-cab-titulo { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; min-width: 0; }
.mo-visib { padding: .12rem .7rem; border-radius: 999px; font: 600 .75rem var(--sans); background: rgba(30,107,58,.12); color: #1e6b3a; }
.mo-visib.privada { background: var(--soft); color: var(--title); }
:root[data-theme="dark"] .mo-visib:not(.privada) { color: #7BE0A9; background: rgba(123,224,169,.12); }
.mo-lista-desc { margin: .5rem 0 0; color: var(--muted); font-size: .9rem; }

/* Saldo de monedas (panel izquierdo) */
.cuenta-saldo { display: flex; align-items: center; gap: .9rem; }
.cuenta-saldo-ico { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--gold, #F2B84B); color: #292936; }
.cuenta-saldo-ico svg { width: 28px; height: 28px; }
.cuenta-saldo-num { display: block; color: var(--title); font: 600 1.8rem/1.1 var(--sans); }
.cuenta-saldo small { color: var(--muted); font-size: .85rem; }
.cuenta-saldo-link { display: inline-block; margin-top: .9rem; color: var(--lav); font-size: .88rem; font-weight: 600; text-decoration: none; }
.cuenta-saldo-link:hover { text-decoration: underline; }


/* ==== AGREGAR AL FINAL DE webapp/assets/cuenta/cuenta.css ==== */
/* Pestañas Info / Feed */
.cuenta-tabs { display: flex; gap: 2.2rem; padding: 0 1rem; border-bottom: 1px solid var(--line); }
.cuenta-tab-btn { background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px;
  padding: .9rem .2rem .7rem; cursor: pointer; font: 500 1.05rem var(--sans); color: var(--muted, #6b6e9a); }
.cuenta-tab-btn:hover, .cuenta-tab-btn:focus-visible { color: var(--title); }
.cuenta-tab-btn.activa { color: var(--title); border-bottom-color: var(--lav); }
[hidden] { display: none !important; }

/* ===== Feed del perfil =====
   REEMPLAZA en cuenta.css todo el bloque que empieza en "/* Feed *\/" (desde ".cuenta-feed {"
   hasta ".feed-texto {...}") por este contenido. Mantiene [hidden] y las pesta...as como est...n. */
.cuenta-feed { max-width: 760px; }
.feed-lista { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.2rem; }
.feed-vacio { margin-top: 1.4rem; }

.feed-tarjeta { background: var(--panel, #fff); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.1rem 1.2rem; box-sizing: border-box; }

/* Cabecera: avatar + sobrenombre / @usuario (+ likes a la derecha) */
.feed-cab { display: flex; align-items: center; gap: .8rem; }
.feed-avatar { width: 46px; height: 46px; flex: none; border-radius: 50%; overflow: hidden; display: grid;
  place-items: center; background: var(--lav); color: #fff; font: 600 1.1rem var(--sans); }
.feed-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feed-avatar-s { width: 32px; height: 32px; font-size: .85rem; }
.feed-quien { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.feed-sobrenombre { font: 600 1rem var(--sans); color: var(--title); overflow-wrap: anywhere; }
.feed-usuario { font: 400 .86rem var(--sans); color: var(--muted); }
.feed-quien time { font: 400 .78rem var(--sans); color: var(--muted); }
.feed-likes { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem;
  border: 1px solid var(--line); border-radius: 999px; font: 500 .88rem var(--sans); color: var(--title); white-space: nowrap; }
.feed-likes svg { width: 16px; height: 16px; fill: currentColor; stroke: currentColor; }

/* Cuadro para escribir (sin publicaciones o con ellas) */
.feed-compositor { display: flex; flex-direction: column; gap: .8rem; }
.feed-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.feed-compositor textarea { width: 100%; resize: vertical; min-height: 7rem; padding: .9rem 1rem; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: inherit; font: 400 1rem var(--sans); }
.feed-compositor textarea::placeholder { text-align: center; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.feed-compositor textarea:focus { outline: 2px solid var(--lav); outline-offset: 1px; }
.feed-compositor textarea:focus::placeholder { color: transparent; }
.feed-barra { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.feed-adjuntar { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .9rem; border: 1px solid var(--line);
  border-radius: 999px; cursor: pointer; font: 500 .9rem var(--sans); color: var(--title); }
.feed-adjuntar:hover, .feed-adjuntar:focus-within { border-color: var(--lav); }
.feed-adjuntar svg { width: 18px; height: 18px; }
.feed-archivo { font: 400 .82rem var(--sans); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14rem; }
.feed-contador { margin-left: auto; font: 400 .85rem var(--sans); color: var(--muted); }
.feed-publicar { padding: .5rem 1.5rem; border-radius: 999px; cursor: pointer; font: 600 .95rem var(--sans);
  background: var(--btn, #4a5ad8); color: var(--btn-text, #fff); border: 1px solid var(--btn, #4a5ad8); }
.feed-publicar:hover { filter: brightness(1.1); }
.feed-error { margin: 0; color: #c0392b; font-size: .9rem; }

/* Publicaci...n */
.feed-cuerpo { margin-top: .9rem; }
.feed-texto { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.feed-texto a { color: var(--link); text-decoration: underline; }
.feed-imagen { display: block; max-width: 100%; max-height: 480px; margin-top: .7rem; border-radius: 12px; object-fit: contain; }

/* Comenta algo... + coraz...n */
.feed-interaccion { display: flex; align-items: stretch; gap: .6rem; margin-top: 1rem; }
.feed-comentar { flex: 1; min-width: 0; display: flex; align-items: center; gap: .3rem; padding: 0 .4rem 0 .9rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.feed-comentar:focus-within { outline: 2px solid var(--lav); outline-offset: 1px; }
.feed-comentar input { flex: 1; min-width: 0; border: 0; background: none; color: inherit; font: 400 .95rem var(--sans); padding: .6rem 0; outline: none; }
.feed-comentar-login { padding: .6rem .9rem; text-decoration: none; color: var(--muted); font: 400 .95rem var(--sans); }
.feed-enviar { background: none; border: 0; cursor: pointer; color: var(--title); padding: .4rem; display: grid; place-items: center; }
.feed-enviar svg { width: 18px; height: 18px; }
.feed-enviar:disabled { opacity: .5; cursor: default; }
.feed-corazon { flex: none; width: 46px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--title); cursor: pointer; display: grid; place-items: center; padding: 0; }
.feed-corazon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; }
.feed-corazon:hover { border-color: var(--lav); }
.feed-corazon.activo { color: #e0457b; border-color: #e0457b; }
.feed-corazon.activo svg { fill: currentColor; }
.feed-com-error { margin-top: .5rem; }

/* Pie: Comentarios (n) + eliminar */
.feed-pie { display: flex; align-items: center; gap: .8rem; margin-top: .8rem; }
.feed-toggle-com { background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; padding: .35rem .9rem;
  font: 500 .9rem var(--sans); color: var(--title); }
.feed-toggle-com:hover, .feed-toggle-com[aria-expanded="true"] { border-color: var(--lav); }
.feed-borrar-form { margin-left: auto; }
.feed-borrar { background: none; border: 0; cursor: pointer; font: 400 .82rem var(--sans); color: var(--muted); }
.feed-borrar:hover { color: #c0392b; text-decoration: underline; }

/* Lista de comentarios (con respuestas anidadas) */
.feed-comentarios { list-style: none; margin: .8rem 0 0; padding: .8rem 0 0; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 1rem; }
.feed-com { display: flex; align-items: flex-start; gap: .6rem; }
.feed-com-cuerpo { min-width: 0; flex: 1; }
.feed-com-cab { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .55rem; font: 400 .85rem var(--sans); color: var(--muted); }
.feed-com-nombre { color: var(--title); font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; }
a.feed-com-nombre { text-decoration: none; }
a.feed-com-nombre:hover { text-decoration: underline; }
.feed-com-usuario { color: var(--muted); }
.feed-com-resp-a { padding: .05rem .55rem; border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; color: var(--muted); }
.feed-com-cab time { font-size: .74rem; margin-left: auto; }
.feed-com-like { display: inline-flex; align-items: center; gap: .25rem; padding: .1rem .45rem; border: 1px solid var(--line);
  border-radius: 999px; background: none; cursor: pointer; color: var(--title); text-decoration: none; font: 500 .78rem var(--sans); }
.feed-com-like:hover { border-color: var(--lav); }
.feed-com-like svg { width: 13px; height: 13px; fill: none; stroke: currentColor; }
.feed-com-like.activo { color: #e0457b; border-color: #e0457b; }
.feed-com-like.activo svg { fill: currentColor; }
.feed-com-like-n:empty { display: none; }
.feed-com-texto { margin: .25rem 0 0; white-space: pre-line; overflow-wrap: anywhere; font-size: .95rem; }
.feed-com-acc { display: flex; align-items: center; gap: .9rem; margin-top: .3rem; }
.feed-com-responder, .feed-com-borrar { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none;
  font: 500 .8rem var(--sans); color: var(--muted); }
.feed-com-responder:hover { color: var(--title); text-decoration: underline; }
.feed-com-borrar { font-weight: 400; }
.feed-com-borrar:hover { color: #c0392b; text-decoration: underline; }

/* Respuestas: sangria con linea vertical a la izquierda */
.feed-respuestas { list-style: none; margin: .8rem 0 0 .3rem; padding: 0 0 0 .9rem; border-left: 2px solid var(--line);
  display: flex; flex-direction: column; gap: 1rem; }
.feed-respuestas:empty { display: none; }

/* Cuadro para responder */
.feed-responder-form { display: flex; align-items: center; gap: .3rem; margin-top: .6rem; padding: 0 .4rem 0 .8rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.feed-responder-form:focus-within { outline: 2px solid var(--lav); outline-offset: 1px; }
.feed-responder-form input { flex: 1; min-width: 0; border: 0; background: none; color: inherit; font: 400 .9rem var(--sans); padding: .45rem 0; outline: none; }

@media (max-width: 520px) {
  .feed-tarjeta { padding: .9rem; }
  .feed-likes { padding: .3rem .6rem; font-size: .8rem; }
  .feed-archivo { max-width: 8rem; }
}

/* ===== Feed: stickers en comentarios, vista previa de la imagen y estabilidad del corazon ===== */

/* Imagen de la publicacion: se reserva alto mientras carga para que el corazon no salte al terminar de cargar */
.feed-imagen-enlace { display: block; }
.feed-imagen { min-height: 120px; background: var(--soft); }

/* Vista previa de la imagen antes de publicar */
.feed-previa { position: relative; align-self: flex-start; max-width: 100%; }
.feed-previa[hidden] { display: none; }
.feed-previa img { display: block; max-width: 100%; max-height: 260px; border-radius: 12px; border: 1px solid var(--line); object-fit: contain; background: var(--soft); }
.feed-previa-quitar { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--title); font-size: 1rem; line-height: 1; }
.feed-previa-quitar:hover { border-color: #c0392b; color: #c0392b; }

/* Boton de stickers y sticker elegido dentro de la caja "Comenta algo..." */
.feed-stk-btn { background: none; border: 0; cursor: pointer; color: var(--muted); padding: .4rem; display: grid; place-items: center; }
.feed-stk-btn:hover, .feed-stk-btn[aria-expanded="true"] { color: var(--title); }
.feed-stk-btn svg { width: 20px; height: 20px; }
.feed-stk-previa { position: relative; flex: none; display: inline-flex; margin-right: .2rem; }
.feed-stk-previa[hidden] { display: none; }
.feed-stk-previa img { display: block; width: 32px; height: 32px; object-fit: contain; }
.feed-stk-quitar { position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--title); font-size: .7rem; line-height: 1; }

/* Panel de stickers (uno solo, se mueve al formulario que lo pide) */
.feed-stk-panel { margin-top: .6rem; padding: .5rem; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.feed-stk-panel[hidden] { display: none; }
.feed-stk-tabs { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .5rem; }
.feed-stk-tab { padding: .25rem .7rem; border-radius: 999px; cursor: pointer; font: 500 .8rem var(--sans); border: 1px solid var(--line); background: transparent; color: var(--muted); }
.feed-stk-tab.activa { background: var(--surface); color: var(--title); border-color: var(--lav); }
.feed-stk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: .3rem; max-height: 11rem; overflow-y: auto; }
.feed-stk-grid[hidden] { display: none; }
.feed-stk-item { padding: .2rem; border: 1px solid transparent; border-radius: 10px; background: transparent; cursor: pointer; }
.feed-stk-item:hover, .feed-stk-item:focus-visible { background: var(--surface); border-color: var(--line); }
.feed-stk-item img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.feed-stk-vacio { margin: 0; color: var(--muted); font-size: .9rem; }

/* Sticker dentro de un comentario */
.feed-com-sticker { display: block; margin-top: .3rem; width: 96px; height: 96px; object-fit: contain; }
/* Perfil de otra persona: boton Seguir / Siguiendo, centrado bajo la foto */
.cuenta-avatar-col { display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.cuenta-seguir { display: inline-flex; align-items: center; justify-content: center; min-width: 8.5rem; padding: .5rem 1.3rem;
  box-sizing: border-box; border: 1px solid #fff; border-radius: 999px; background: #fff; color: #252866;
  font: 600 .92rem var(--sans); text-decoration: none; text-shadow: none; cursor: pointer;
  box-shadow: 0 8px 18px -10px rgba(0,0,0,.6); transition: transform .15s, background .2s, color .2s; }
.cuenta-seguir:hover { transform: translateY(-1px); background: #E9E7FF; }
.cuenta-seguir.es-siguiendo { background: rgba(18,20,46,.55); color: #fff; border-color: rgba(255,255,255,.75); }
.cuenta-seguir.es-siguiendo:hover { background: rgba(18,20,46,.8); }
.cuenta-seguir:focus-visible { outline: 3px solid #CBC9F4; outline-offset: 2px; }
.cuenta-seguir:disabled { opacity: .7; cursor: progress; transform: none; }