/* Modal de mensajes */
.modal-de-los-mensajes {
  position: fixed;
  top: 60px; /* justo debajo del icono */
  right: 10px; /* margen a la derecha */
  width: 320px; /* ancho tipo card */
  max-height: 400px; /* altura máxima */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
  display: none; /* inicialmente oculta */
  z-index: 9999;
}

/* ocultar scrollbars en todos los navegadores */
.modal-de-los-mensajes::-webkit-scrollbar { display: none; }
.modal-de-los-mensajes { -ms-overflow-style: none; scrollbar-width: none; }

/* Cada casilla de mensaje */
.casilla-mensaje {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  margin-bottom: 10px;
  background: rgba(240,240,240,0.8);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.casilla-mensaje:hover {
  background: rgba(220,220,220,0.9);
}

/* Fila principal: video + nombre */
.fila-usuario-mensaje {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Video circular usuario */
.div-video-user-mensaje {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.div-video-user-mensaje video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Nombre + verificado */
.info-usuario-mensaje {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
}

.info-usuario-mensaje .verificado {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

/* Detalles secundarios: país, ciudad, código postal */
.detalles-usuario-mensaje {
  font-size: 12px;
  color: #555;
}

/* Vista previa del mensaje */
.vista-previa-mensaje {
  margin-top: 6px;
  font-size: 13px;
  color: #333;
}

/* Media query para móviles */
@media (max-width: 768px){
  .modal-de-los-mensajes {
    width: 90%;
    right: 5%;
    top: 60px;
    max-height: 60%;
  }
}