/* ============================================
   COMUNIDAD · AMIGOS · SOLICITUDES · BUSCAR
   ============================================ */
.amigos-page { background: var(--color-claro, #f6faf7); min-height: calc(100vh - 200px); padding: 40px 0 80px; }
.amigos-header { text-align: center; margin-bottom: 32px; }
.amigos-header h1 { color: var(--color-primario, #0F3D1E); font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 8px; }
.amigos-lead { color: #555; font-size: 1rem; margin: 0; }

.amigos-tabs {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5efe8;
  box-shadow: 0 2px 12px rgba(15,61,30,.05);
  margin-bottom: 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.amigos-tab {
  flex: 1 0 auto;
  padding: 10px 18px;
  border-radius: 8px;
  color: #666;
  font-size: .88rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: all .18s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.amigos-tab:hover { background: var(--color-claro); color: var(--color-primario); }
.amigos-tab.active { background: var(--color-primario, #0F3D1E); color: #fff; }
.amigos-count { opacity: .7; font-weight: 500; font-size: .78rem; }
.amigos-badge {
  background: #dc2626; color: #fff;
  padding: 2px 8px; border-radius: 999px;
  font-size: .7rem; font-weight: 700;
}

.amigos-body { min-height: 300px; }

.amigos-empty {
  background: #fff;
  border-radius: 16px;
  padding: 60px 32px;
  text-align: center;
  border: 1px solid #e5efe8;
}
.amigos-empty-icon {
  font-size: 3rem; color: var(--color-acento, #4CAF50); opacity: .5;
  margin-bottom: 14px;
}
.amigos-empty h3 { color: var(--color-primario, #0F3D1E); font-size: 1.25rem; margin: 0 0 8px; }
.amigos-empty p { color: #666; margin: 0 0 20px; }

.amigos-grid, .amigos-lista {
  display: grid;
  gap: 16px;
}
.amigos-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.amigos-lista {
  grid-template-columns: 1fr;
  max-width: 780px;
  margin: 0 auto;
}

.amigos-card {
  background: #fff;
  border: 1px solid #e5efe8;
  border-radius: 14px;
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  transition: box-shadow .2s, transform .2s;
}
.amigos-card:hover { box-shadow: 0 8px 24px rgba(15,61,30,.1); transform: translateY(-2px); }
.solicitud-card { grid-template-columns: auto 1fr auto; }

.amigos-card-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-claro);
  display: block;
  flex-shrink: 0;
}
.amigos-card-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.amigos-card-info { min-width: 0; }
.amigos-card-nombre {
  color: var(--color-primario, #0F3D1E);
  font-weight: 700;
  font-size: 1.05rem;
  display: block;
  margin-bottom: 4px;
  text-decoration: none;
}
.amigos-card-nombre:hover { color: var(--color-acento, #4CAF50); }
.amigos-card-pais { color: #666; font-size: .78rem; margin-bottom: 4px; }
.amigos-card-bio { color: #555; font-size: .85rem; margin: 4px 0 0; line-height: 1.4; }
.amigos-card-fecha { color: #999; font-size: .74rem; margin-top: 4px; }

.amigos-card-acciones {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  min-width: 130px;
}

.amigos-buscar { max-width: 640px; margin: 0 auto; }
.amigos-buscar-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  border: 1.5px solid #d5e3d9;
  border-radius: 12px;
  background: #fff;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  margin-bottom: 20px;
}
.amigos-buscar-input:focus { border-color: var(--color-acento, #4CAF50); box-shadow: 0 0 0 3px rgba(76,175,80,.15); }

.btn-danger-outline {
  background: transparent;
  color: #c62626;
  border: 1.5px solid #fca5a5;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.btn-danger-outline:hover { background: #fef2f2; border-color: #c62626; color: #991b1b; }

.btn.sent, .btn-outline.sent {
  background: #eef4f0;
  color: #4a6551;
  border-color: #d5e3d9;
  cursor: default;
  pointer-events: none;
}

.perfil-acciones-pub { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; align-items: center; }

.topbar-badge {
  display: inline-block;
  background: #dc2626;
  color: #fff;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: .68rem;
  font-weight: 700;
  margin-left: 4px;
}

@media (max-width: 640px) {
  .amigos-card {
    grid-template-columns: auto 1fr;
  }
  .amigos-card-acciones {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .amigos-card-acciones .btn { flex: 1; min-width: 100px; }
}

/* ============================================
   DASHBOARD FACEBOOK-STYLE (Fase 4B feed)
   ============================================ */
.eco-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 320px;
  gap: 20px;
  max-width: 1400px;
  margin: 20px auto 60px;
  padding: 0 20px;
  align-items: start;
}
.eco-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.eco-sidebar-right { gap: 16px; }
.eco-side-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #1a1a1a;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  transition: background .15s;
  position: relative;
}
.eco-side-item:hover { background: #f0f2f5; }
.eco-side-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #e8f5e9;
  color: var(--color-primario, #0F3D1E);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.eco-side-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.eco-side-user { font-weight: 600; padding: 10px 14px; }
.eco-side-badge {
  margin-left: auto;
  background: #c62828;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.eco-feed {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.eco-hero-portada {
  height: 180px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.eco-composer {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  border: 1px solid #eef0f2;
}
.eco-composer-top { display: flex; gap: 12px; align-items: flex-start; }
.eco-composer-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.eco-composer-input {
  flex: 1;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  background: #f0f2f5;
  border-radius: 22px;
  font-size: 1rem;
  color: #1a1a1a;
  outline: none;
  cursor: text;
  line-height: 1.4;
  word-wrap: break-word;
}
.eco-composer-input:focus { background: #e8ecf0; }
.eco-composer-input[data-empty="true"]::before {
  content: attr(data-placeholder);
  color: #65676b;
  pointer-events: none;
}
.eco-composer-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.eco-composer-preview {
  position: relative;
  width: 90px; height: 90px;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f2f5;
}
.eco-composer-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eco-composer-preview-x {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.eco-composer-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eef0f2;
}
.eco-composer-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 600;
  color: #444;
  transition: background .15s;
}
.eco-composer-btn:hover { background: #f0f2f5; }
.eco-composer-visib {
  padding: 8px 10px;
  border: 1px solid #dadde1;
  border-radius: 8px;
  background: #fff;
  font-size: .85rem;
  cursor: pointer;
  color: #444;
  margin-left: auto;
}
.eco-composer .btn-primary { padding: 8px 20px; }
.eco-composer-msg { margin-top: 8px; font-size: .85rem; min-height: 1em; }
.eco-composer-msg.ok { color: #2e7d32; }
.eco-composer-msg.err { color: #c62828; }

.eco-feed-list { display: flex; flex-direction: column; gap: 16px; }
.eco-feed-vacio {
  background: #fff;
  border-radius: 14px;
  padding: 60px 30px;
  text-align: center;
  color: #65676b;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  border: 1px solid #eef0f2;
}
.eco-feed-vacio-icon { color: #b0b6bd; margin-bottom: 12px; }
.eco-feed-vacio h3 { color: #1a1a1a; margin: 0 0 8px; font-size: 1.1rem; }
.eco-feed-vacio p { margin: 0 0 20px; font-size: .92rem; }

.eco-post {
  background: #fff;
  border-radius: 14px;
  padding: 16px 16px 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  border: 1px solid #eef0f2;
}
.eco-post-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.eco-post-avatar img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.eco-post-meta { flex: 1; min-width: 0; }
.eco-post-autor {
  display: block;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  font-size: .95rem;
}
.eco-post-autor:hover { text-decoration: underline; }
.eco-post-tiempo {
  font-size: .78rem;
  color: #65676b;
  margin-top: 2px;
}
.eco-post-menu-wrap { position: relative; }
.eco-post-menu {
  background: transparent;
  border: 0;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  color: #65676b;
  transition: background .15s;
}
.eco-post-menu:hover { background: #f0f2f5; color: #1a1a1a; }
.eco-post-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
  padding: 6px;
  min-width: 160px;
  display: none;
  z-index: 15;
  border: 1px solid #eef0f2;
}
.eco-post-menu-wrap.open .eco-post-menu-panel { display: block; }
.eco-post-menu-panel button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  color: #1a1a1a;
  font-size: .9rem;
  text-align: left;
}
.eco-post-menu-panel button:hover { background: #f0f2f5; }
.eco-post-contenido {
  font-size: 1rem;
  line-height: 1.5;
  color: #1a1a1a;
  margin-bottom: 12px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.eco-post-fotos {
  display: grid;
  gap: 4px;
  margin: 0 -16px 12px;
  border-top: 1px solid #eef0f2;
  border-bottom: 1px solid #eef0f2;
  background: #000;
}
.eco-post-fotos-1 { grid-template-columns: 1fr; background: transparent; }
.eco-post-fotos-1 .eco-post-foto {
  aspect-ratio: auto;
  max-height: 600px;
  min-height: 200px;
  background: #f0f2f5;
}
.eco-post-fotos-1 .eco-post-foto img {
  object-fit: contain;
  max-height: 600px;
  height: auto;
  width: 100%;
}
.eco-post-fotos-2 { grid-template-columns: 1fr 1fr; }
.eco-post-fotos-3 { grid-template-columns: 1fr 1fr; }
.eco-post-fotos-3 .eco-post-foto:first-child { grid-column: 1 / span 2; }
.eco-post-fotos-4 { grid-template-columns: 1fr 1fr; }
.eco-post-foto {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
}
.eco-post-foto img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.eco-post-foto:hover img { transform: scale(1.03); }

/* Videos en posts */
.eco-post-video-wrap { background: #000; }
.eco-post-video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.eco-post-fotos-1 .eco-post-video { aspect-ratio: 16/9; }

/* Preview de video en composer */
.eco-composer-preview-video video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.eco-composer-preview-badge {
  position: absolute;
  top: 4px; left: 4px;
  background: rgba(0,0,0,.7);
  color: #fff;
  border-radius: 50%;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem;
  pointer-events: none;
}
.eco-post-foto-mas {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eco-post-acciones {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid #eef0f2;
  margin: 0 -8px;
}
.eco-post-accion {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 4px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  color: #65676b;
  font-size: .85rem;
  font-weight: 600;
  transition: background .15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.eco-post-accion:hover:not(:disabled) { background: #f0f2f5; }
.eco-post-accion:disabled { opacity: .55; cursor: not-allowed; }

.eco-side-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid #eef0f2;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.eco-side-card h4 {
  margin: 0 0 12px;
  font-size: .85rem;
  color: #65676b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.eco-side-card p { margin: 4px 0; font-size: .85rem; color: #1a1a1a; }
.eco-side-info p strong { color: #65676b; font-weight: 600; }
.eco-notif-item {
  padding: 10px 0;
  border-bottom: 1px solid #f0f2f5;
  cursor: pointer;
}
.eco-notif-item:last-child { border-bottom: 0; }
.eco-notif-item.nueva { position: relative; }
.eco-notif-item.nueva::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  background: var(--color-acento, #4CAF50);
  border-radius: 50%;
}
.eco-notif-titulo { font-size: .88rem; font-weight: 600; color: #1a1a1a; }
.eco-notif-mensaje { font-size: .82rem; color: #65676b; margin-top: 2px; }
.eco-notif-tiempo { font-size: .75rem; color: #90a597; margin-top: 4px; }
.eco-sugerencia {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 8px;
  margin: 0 -8px;
  transition: background .15s;
}
.eco-sugerencia:hover { background: #f0f2f5; }
.eco-sugerencia-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.eco-sugerencia-nombre { font-size: .9rem; font-weight: 500; }

@media (max-width: 1100px) {
  .eco-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .eco-sidebar-right { display: none; }
}
@media (max-width: 800px) {
  .eco-layout {
    grid-template-columns: 1fr;
    padding: 0 12px;
    gap: 12px;
  }
  .eco-sidebar-left {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding: 8px 0;
    gap: 8px;
    scrollbar-width: none;
  }
  .eco-sidebar-left::-webkit-scrollbar { display: none; }
  .eco-side-item {
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
    font-size: .72rem;
    text-align: center;
    min-width: 70px;
    flex-shrink: 0;
  }
  .eco-side-user span { display: none; }
  .eco-side-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    margin: 0;
  }
  .eco-hero-portada { height: 120px; border-radius: 0; margin: 0 -12px; }
  .eco-composer, .eco-post { border-radius: 10px; }
  .eco-composer-toolbar { flex-wrap: wrap; }
  .eco-composer-visib { margin-left: 0; width: 100%; }
}

/* ============================================
   MENU USUARIO DROPDOWN (topbar)
   ============================================ */
.user-menu { position: relative; display: inline-block; }
.user-menu-trigger {
  padding: 0;
  border: 2px solid transparent;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: border-color .18s;
}
.user-menu-trigger:hover,
.user-menu.open .user-menu-trigger {
  border-color: var(--color-acento, #4CAF50);
}
.user-menu-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.user-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 1000;
  border: 1px solid #eef0f2;
}
.user-menu.open .user-menu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.user-menu-perfil {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  color: #1a1a1a;
  text-decoration: none;
  transition: background .15s;
}
.user-menu-perfil:hover { background: #f0f2f5; }
.user-menu-perfil-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.user-menu-perfil-nombre { font-size: 1rem; font-weight: 700; }
.user-menu-perfil-sub { font-size: .8rem; color: #65676b; margin-top: 2px; }
.user-menu-sep { height: 1px; background: #eef0f2; margin: 6px 4px; }
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: #1a1a1a;
  text-decoration: none;
  font-size: .92rem;
  border-radius: 8px;
  transition: background .15s;
}
.user-menu-item:hover { background: #f0f2f5; }
.user-menu-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #e8f5e9;
  color: var(--color-primario, #0F3D1E);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.user-menu-logout { color: #c62828; }
.user-menu-logout .user-menu-icon { background: #ffebee; color: #c62828; }

@media (max-width: 900px) {
  .user-menu-panel {
    position: fixed;
    top: 60px;
    right: 10px;
    left: 10px;
    min-width: 0;
  }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-host {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 420px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15), 0 2px 6px rgba(0,0,0,.08);
  border-left: 4px solid #90a597;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: auto;
  font-size: .92rem;
  color: #1a1a1a;
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: #fff;
}
.toast-msg { flex: 1; line-height: 1.4; }
.toast-x {
  background: transparent;
  border: 0;
  color: #999;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.toast-x:hover { color: #333; }
.toast-ok   { border-left-color: #2e7d32; }
.toast-ok   .toast-icon { background: #2e7d32; }
.toast-err  { border-left-color: #c62828; }
.toast-err  .toast-icon { background: #c62828; }
.toast-info { border-left-color: #1976d2; }
.toast-info .toast-icon { background: #1976d2; }
.toast-warn { border-left-color: #f57c00; }
.toast-warn .toast-icon { background: #f57c00; }
@media (max-width: 600px) {
  .toast-host { left: 10px; right: 10px; bottom: 10px; }
  .toast { min-width: 0; max-width: 100%; }
}

/* ============================================
   REACCIONES + COMENTARIOS
   ============================================ */
.eco-post-contador {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: .85rem;
  color: #65676b;
  border-bottom: 1px solid #eef0f2;
  margin: 0 -8px 6px;
}
.eco-post-contador-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 0;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
  color: inherit;
  font-size: inherit;
  transition: background .15s;
}
.eco-post-contador-btn:hover { background: #f0f2f5; text-decoration: underline; }
.reac-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #1a1a1a;
  text-decoration: none;
  transition: background .15s;
}
.reac-item:hover { background: #f0f2f5; }
.reac-item img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.reac-item-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.reac-item-info strong { font-size: .92rem; color: #1a1a1a; }
.reac-item-info small { font-size: .78rem; color: #65676b; }
.reac-item-emoji { font-size: 1.3rem; }
.eco-post-contador-emojis {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.eco-post-contador-emoji {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  margin-left: -6px;
}
.eco-post-contador-emoji:first-child { margin-left: 0; }
.eco-post-contador-num { margin-left: 4px; }
.eco-post-contador-com { margin-left: auto; }
.eco-post-contador-derecha {
  margin-left: auto;
  display: inline-flex;
  gap: 12px;
  color: #65676b;
  font-size: .82rem;
}

.eco-post-accion-wrap {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
}
.eco-post-accion-wrap .eco-post-accion { flex: 1 1 0; min-width: 0; width: 100%; }
.eco-reac-globo { font-size: 1.5rem; line-height: 1; }
.eco-vis-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  margin-top: -2px;
  object-fit: contain;
}
.eco-accion-num { font-weight: 700; font-size: .82rem; }
.eco-post-acciones .eco-post-accion { padding: 10px 8px; }
.eco-post-accion-reaccion {
  background: #e8f5e9;
  color: #2e7d32;
}
.eco-post-accion-reaccion:hover:not(:disabled) { background: #d4ebd4; }
.eco-post-accion-reaccion.activa { background: #e8f5e9; color: #2e7d32; }

.eco-reaccion-picker {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px) scale(.85);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px 16px 12px;
  margin-bottom: -8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.22), 0 2px 6px rgba(0,0,0,.08);
  display: flex;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, transform .22s cubic-bezier(.34,1.56,.64,1), visibility .22s;
  z-index: 100;
  pointer-events: none;
  max-width: 92vw;
}
.eco-post-accion-wrap:hover .eco-reaccion-picker,
.eco-post-accion-wrap.picker-open .eco-reaccion-picker,
.eco-reaccion-picker:hover { pointer-events: auto; }
@media (max-width: 900px) {
  .eco-reaccion-picker {
    left: 0;
    right: auto;
    transform: translateX(0) translateY(6px) scale(.85);
    padding: 6px 8px 14px 8px;
    margin-bottom: -8px;
    gap: 3px;
    max-width: calc(100vw - 32px);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .eco-reaccion-picker::-webkit-scrollbar { display: none; }
  .eco-post-accion-wrap:hover .eco-reaccion-picker,
  .eco-post-accion-wrap.picker-open .eco-reaccion-picker,
  .eco-reaccion-picker:hover {
    transform: translateX(0) translateY(0) scale(1);
  }
  .eco-reaccion-picker button {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.4rem !important;
    flex-shrink: 0;
    touch-action: manipulation;
  }
}
.eco-post-accion-wrap:hover .eco-reaccion-picker,
.eco-post-accion-wrap.picker-open .eco-reaccion-picker,
.eco-reaccion-picker:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
@media (min-width: 901px) {
  .eco-post-accion-wrap:hover .eco-reaccion-picker,
  .eco-post-accion-wrap.picker-open .eco-reaccion-picker,
  .eco-reaccion-picker:hover {
    transform: translateX(-50%) translateY(0) scale(1);
  }
}
@media (max-width: 900px) {
  .eco-post-accion-wrap:hover .eco-reaccion-picker,
  .eco-post-accion-wrap.picker-open .eco-reaccion-picker,
  .eco-reaccion-picker:hover {
    transform: translateX(0) translateY(0) scale(1);
  }
}
.eco-reaccion-picker button {
  border: 0;
  width: 44px; height: 44px;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1);
  padding: 0;
  line-height: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.15);
}
.eco-reaccion-picker button:hover {
  transform: scale(1.35) translateY(-6px);
  box-shadow: 0 6px 12px rgba(0,0,0,.25);
}
.eco-reaccion-picker button[title="Me inspira"]    { background: radial-gradient(circle at 30% 30%, #a5d6a7, #2e7d32 70%, #1b3d1e); }
.eco-reaccion-picker button[title="Me encanta"]    { background: radial-gradient(circle at 30% 30%, #ff8a80, #d32f2f 70%, #7f0000); }
.eco-reaccion-picker button[title="Me alegra"]     { background: radial-gradient(circle at 30% 30%, #fff59d, #f9a825 70%, #f57f17); }
.eco-reaccion-picker button[title="Me asombra"]    { background: radial-gradient(circle at 30% 30%, #ffcc80, #ef6c00 70%, #e65100); }
.eco-reaccion-picker button[title="Me duele"]      { background: radial-gradient(circle at 30% 30%, #d7ccc8, #6d4c41 70%, #3e2723); }
.eco-reaccion-picker button[title="Me alerta"]     { background: radial-gradient(circle at 30% 30%, #ef9a9a, #c62828 70%, #7f0000); }
.eco-reaccion-picker button[title="No me gusta"]   { background: radial-gradient(circle at 30% 30%, #90caf9, #1976d2 70%, #0d47a1); }
.eco-reaccion-picker button::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: .7rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s;
}
.eco-reaccion-picker button:hover::after { opacity: 1; }

.eco-comentarios {
  padding: 12px;
  border-top: 1px solid #eef0f2;
  margin: 0 -8px;
  display: none;
}
.eco-comentarios.abierto { display: block; }
.eco-comentario {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.eco-comentario-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.eco-comentario-body {
  flex: 1;
  min-width: 0;
}
.eco-comentario-bubble {
  background: #f0f2f5;
  border-radius: 16px;
  padding: 8px 14px;
  display: inline-block;
  max-width: 100%;
}
.eco-comentario-autor {
  font-weight: 700;
  font-size: .82rem;
  color: #1a1a1a;
  text-decoration: none;
  display: block;
}
.eco-comentario-autor:hover { text-decoration: underline; }
.eco-comentario-texto {
  font-size: .9rem;
  color: #1a1a1a;
  line-height: 1.4;
  margin-top: 2px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.eco-comentario-acciones {
  font-size: .75rem;
  color: #65676b;
  margin-top: 4px;
  padding-left: 12px;
  display: flex;
  gap: 12px;
}
.eco-comentario-acciones button {
  background: 0; border: 0; padding: 0;
  color: inherit; font-weight: 600; cursor: pointer;
}
.eco-comentario-acciones button:hover { text-decoration: underline; }
.eco-comentario-tiempo { color: #65676b; }
.eco-comentario-respuestas {
  margin-top: 10px;
  margin-left: 42px;
}

.eco-comment-composer {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.eco-comment-composer img {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.eco-comment-input {
  flex: 1;
  padding: 8px 14px;
  border: 0;
  background: #f0f2f5;
  border-radius: 18px;
  font-size: .92rem;
  color: #1a1a1a;
  resize: none;
  outline: none;
  font-family: inherit;
  min-height: 36px;
}
.eco-comment-input:focus { background: #e8ecf0; }
.eco-comment-send {
  background: transparent;
  border: 0;
  color: var(--color-acento, #4CAF50);
  cursor: pointer;
  padding: 0 8px;
  font-weight: 600;
}
.eco-comment-send:disabled { color: #ccc; cursor: not-allowed; }

.eco-comment-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: flex-end;
  background: #f0f2f5;
  border-radius: 18px;
  padding-right: 6px;
  transition: background .15s;
}
.eco-comment-input-wrap:focus-within { background: #e8ecf0; }
.eco-comment-input-wrap .eco-comment-input {
  background: transparent;
  padding-right: 4px;
}
.eco-comment-input-wrap .eco-comment-input:focus { background: transparent; }
.eco-comment-emoji-btn {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 4px 6px;
  font-size: 1.15rem;
  line-height: 1;
  opacity: .65;
  transition: opacity .15s, transform .15s;
  align-self: center;
}
.eco-comment-emoji-btn:hover { opacity: 1; transform: scale(1.15); }
.eco-emoji-picker {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  border: 1px solid #dadde1;
  border-radius: 12px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  z-index: 100;
  max-width: min(320px, 92vw);
}
.eco-emoji-picker button {
  background: transparent;
  border: 0;
  font-size: 1.35rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  line-height: 1;
  transition: background .12s;
}
.eco-emoji-picker button:hover { background: #f0f2f5; }
@media (max-width: 600px) {
  .eco-emoji-picker {
    grid-template-columns: repeat(6, 1fr);
    right: -20px;
  }
  .eco-emoji-picker button { font-size: 1.5rem; padding: 8px; }
}

/* Cita del post original (repost) */
.eco-post-cita {
  display: block;
  margin: 0 12px 12px;
  border: 1px solid #dadde1;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: background .12s;
}
.eco-post-cita:hover { background: #f6faf7; }
.eco-post-cita-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 6px;
}
.eco-post-cita-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.eco-post-cita-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.eco-post-cita-autor {
  font-weight: 600;
  font-size: .88rem;
  color: #050505;
}
.eco-post-cita-tiempo {
  font-size: .75rem;
  color: #65676b;
}
.eco-post-cita-contenido {
  padding: 0 12px 10px;
  font-size: .92rem;
  color: #1c1e21;
  line-height: 1.4;
}
.eco-post-cita-foto {
  position: relative;
  max-height: 320px;
  overflow: hidden;
  background: #000;
}
.eco-post-cita-foto img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}
.eco-post-cita-mas {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,.7);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: .8rem;
  font-weight: 600;
}
.eco-post-cita-borrada {
  margin: 0 12px 12px;
  padding: 14px 12px;
  border: 1px dashed #dadde1;
  border-radius: 10px;
  text-align: center;
  color: #65676b;
  font-size: .88rem;
  font-style: italic;
}

/* Modal compartir estilo social */
.eco-share-card {
  max-width: 500px;
  width: 100%;
  padding: 0 !important;
  overflow: hidden;
}
.eco-share-head {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 14px 20px;
  border-bottom: 1px solid #dadde1;
}
.eco-share-head h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #050505;
}
.eco-share-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #e4e6eb;
  border: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: .95rem;
  color: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s;
}
.eco-share-close:hover { background: #d8dadf; }
.eco-share-composer {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
}
.eco-share-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.eco-share-composer-body { flex: 1; min-width: 0; }
.eco-share-user {
  font-weight: 700;
  font-size: .95rem;
  color: #050505;
  margin-bottom: 6px;
}
.eco-share-selectors {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.eco-share-visib {
  font-size: .82rem;
  padding: 4px 10px;
  border: 1px solid #ccd0d5;
  border-radius: 6px;
  background: #f0f2f5;
  color: #050505;
  cursor: pointer;
  font-weight: 600;
}
.eco-share-input-wrap {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  background: #f0f2f5;
  border-radius: 10px;
  padding: 4px 6px 4px 12px;
  margin-bottom: 12px;
}
.eco-share-input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 6px 0;
  font-size: .95rem;
  color: #050505;
  resize: none;
  outline: none;
  font-family: inherit;
  min-height: 40px;
}
.eco-share-actions {
  display: flex;
  justify-content: flex-end;
}
.eco-share-submit {
  padding: 8px 20px !important;
  font-weight: 600;
  border-radius: 6px !important;
}
.eco-share-section {
  padding: 16px 20px 20px;
  border-top: 1px solid #dadde1;
}
.eco-share-section-title {
  font-size: .78rem;
  font-weight: 600;
  color: #65676b;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 12px;
}
.eco-share-circles {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.eco-share-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  min-width: 68px;
}
.eco-share-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  transition: transform .15s, box-shadow .15s;
}
.eco-share-circle:hover .eco-share-icon {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.eco-share-wa   { background: #25D366; }
.eco-share-facebook   { background: #1877F2; font-family: Georgia, serif; }
.eco-share-tw   { background: #000; }
.eco-share-mail { background: #ea4335; }
.eco-share-copy { background: #4b5563; }
.eco-share-label {
  font-size: .78rem;
  color: #050505;
  text-align: center;
}
@media (max-width: 480px) {
  .eco-share-circles { gap: 12px; justify-content: space-around; }
  .eco-share-circle { min-width: 60px; }
  .eco-share-icon { width: 48px; height: 48px; font-size: 1.3rem; }
  .eco-share-label { font-size: .72rem; }
}

